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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Tw,xT,Vcg,TWT,$T,KK,BWf,Gw,Et,xq1,Uq1,nTt,J1,wyJ,NWJ,Dg,YtW,Xyc,tc1,Gwc,oTf,ht1,Dq1,RtJ,Q1t,W3y,nZ,Mc1,KZ,YJ,s1W,kJ,pyK,F0,X0,vTy,OKK,So,Qa,agT,Vo3,lvt,qN,HZJ,Tbq,BbJ,UNJ,IvJ,pZ,nJ1,dNJ,ww3,KWc,kE1,$h,FWy,Xwc,z3K,yBf,toy,nQ,YNy,HY,LWT,e3W,h3f,PZJ,DNg,Yh,SNN,R3w,QiT,cBq,bZt,qNy,pw1,ABw,vJ1,avy,iZN,lrT,VbJ,EP,Irw,UEt,PY,nhc,Ngt,dET,wYy,Dr,WWW,Zr,Sb,Ru,YPt,KVf,ju3,bE,LVJ,eBK,FVc,zBK,XYJ,yIW,tby,rIg,cY,Eht,ohw,PEK,RBw,gg,qPq,DEN,Mbc,pYy,AIt,ghy,OQ1,V6W,ICJ,HdN,BpK,xV1,dV3,Yqf,zMT,Gfc,DVq,e6,Sqt,QON,
cVW,Eq,oO,Ph,DC,RO,bY,sq,pd,AVw,Odg,CY1,gny,VdK,Hk,lKW,Bk,xE,U9,nk,Hk1,T4T,B4c,x01,U0y,$0w,d0w,wkK,N4J,jIf,N0,w4,Y93,LYT,e7w,FY1,kL1,Xkw,ye1,tdf,XU,zL,yJ,te,E9,GLK,Je,Jeg,Zkw,he,S9w,R7c,QI3,DK,cew,WYJ,bk1,ZK,sIt,RI,uUq,vEJ,QJ,Cwc,Okc,aKc,fKq,gEt,m0t,bw,iky,VPc,q0,l3T,I3W,M0,s9,pk,Ae,HGK,B$N,T$w,uw,U3K,npT,$3N,aI,g4,mY,iw,Vl,l4,d3f,wNT,N$t,K2c,jgJ,YLf,L2t,kPW,F2y,XN1,zPc,yHW,HN,tPc,rH1,GPt,$p,d$,Ept,hPf,P4t,D3g,SLf,RP1,Qgq,qLt,MPt,sgt,pNK,AH3,umK,vpf,f3t,KG,gpt,m3t,jP,iGf,Vkt,llW,Ilf,To1,LFq,eTJ,kNf,
zTf,yK1,zP,tkg,Eww,hT3,POK,Dx3,ZSw,SXt,RTJ,Q8N,cKt,bS3,qX3,JKf,Mkt,s8W,pvq,AKW,uGw,vwt,OSt,COf,alN,V_T,mxf,HNy,lnK,In1,xy1,Uyw,niK,TxK,dyq,Bxc,NxN,M3,sL,AH,Kmg,YSw,Lmt,Fm3,hst,zsg,XTT,t_J,G0f,y0J,Qxt,ZNc,c0w,Wm3,bNc,qSt,M_t,pTJ,sxW,ukJ,viW,ONc,C$t,fnf,myt,iNN,VNy,Ip1,lpT,jwf,Yo1,CG,L_q,F_c,XOw,z1K,y6y,tNf,GYg,EG1,J6W,Hv,oGt,R1y,xw,UX,bsK,MNq,gGW,xlt,Nx,$lf,K6J,wxy,NmK,ek,jvt,Y_W,em3,kU1,F6J,XxK,zmW,yqg,tOy,GUg,Ed1,ody,Jqy,Dlc,EX,hK,S_y,Rmf,Qv1,cqN,W6K,bA1,MOq,pxq,svT,sX,AK,iAt,OX,H01,CS,T0c,fS,xDy,
B0f,jSy,Lug,Fut,Xa3,y2w,tQ1,r2N,Ee1,h6N,PGN,V9,R6N,Wuy,b0N,qh3,MQt,sSt,c2c,Shc,Z0t,Ix,DDy,pat,nlg,d4J,K5c,BT,YZg,exN,kry,F51,XFK,dx,zx3,ttt,yFy,rFK,El1,Yi,SZt,QVJ,ZOg,bO1,sVy,pF1,ki,Fk,Xk,AFy,Cxt,z0,G0,m4y,J0,lUW,Tug,xKg,UKN,nzw,ox,$KT,dKw,wIg,K41,jX1,Ywq,L4y,kOq,PT,F4w,XIy,Zn,cT,tht,rlT,GOw,b$,ozt,hwt,DKf,u$,W4c,bCq,qwK,Mh1,sXt,ax,fN,gx,mm,uHt,V0,vzN,OCt,CgK,aUt,gzt,mKt,fUw,VXT,iCW,lhW,BSg,Iw,TSt,xzW,Ih3,UzN,TY,dz1,nAN,wUt,NSt,KKK,YAg,jag,LKc,FK1,eRy,zRT,JOt,hRf,Dzg,SAg,cOt,QaN,RRW,WKt,MX3,pUf,sa1,
AOt,vAf,O8t,Ls,gAq,FW,V1c,i8c,l8K,zY,y0,I8f,t6,HTy,B6J,UJq,dJc,N6t,w$w,ut,Kp1,xJw,X$T,z8T,ycT,fs,t1c,Gqt,EB1,l2,oBW,DJt,PJt,Qzg,ccy,WpN,bTt,M1w,vBT,sz3,Acy,uuw,OTw,a8T,CJ1,gBW,f81,$d,mJw,Vs1,lwy,BJK,eO,kd,xrK,Urt,Fi,w4W,tq,rm,GU,Ylt,E_,kVJ,hq,Fdy,X4y,zZf,y5K,ZY,tst,GVq,Eft,of3,PB3,Slt,QAc,pA,c5y,Wd1,bWy,qlJ,Ms1,sAg,p41,A5N,vx,OWK,CB3,aw3,fwf,gfy,mrf,iW3,VDt,lfT,Ifc,HYN,TPc,BP3,Vz,erg,kR3,lG,IS,Ha,FLc,XbJ,zrJ,yv3,tDt,rvJ,GR1,P3g,Dv1,ZY1,Szt,Rr1,Uh,$e,d0,w0,jQ,Ye,eQ,cvJ,Ff,bYW,zQ,qzJ,MDf,yz,sQt,pbt,
Avf,iYy,lR1,xeW,deN,$ec,V5J,w13,jjN,os1,X1q,S7f,yTT,ZmJ,ReJ,oS,cTT,Pa,bmJ,q7w,sj3,p1q,ATy,vsf,SQ,Cfg,aR3,fRT,gs3,mec,imW,Vz3,OmT,Htc,Tj1,Bjc,Qz,wXt,NjK,dRf,jNf,YIg,en1,kGJ,LcK,GGN,Jog,hnc,DRy,C0,WcW,coy,pXW,uoy,v7c,Otq,Ciw,aAt,fAK,Tr,BqW,nF3,HaN,Itq,Uit,mRW,dic,zLy,Ksw,j2y,YxW,DiN,Sxq,P8t,qxJ,hLy,g7N,ba3,Nq1,Xuf,ZaW,$iN,VU3,itN,ltw,Tqy,oFy,zr,lb3,Twq,H6K,Bw1,x7K,U73,Lwy,y9K,tMJ,St,Gb1,ojt,Z6f,D7q,RJ1,Q63,b6y,Wwg,qB1,s6T,ux,pKW,A93,vjt,uRW,OZ,gjg,fbt,ab3,lLJ,m71,ILq,Vnq,Hvg,aV,TvN,n9t,xZf,UZ1,dZg,
wlt,jJy,Nvg,YJw,FlN,Xlt,tnW,GKK,IX,HI,hg3,Pet,TO,BI,DZ1,Uw,nC,ZvJ,$z,SJy,du,Rgc,QJt,NK,cyy,WlK,bvf,qJT,MnJ,plq,sJJ,ux1,Cec,Ovf,aL3,fLt,Ayy,g91,V73,ivg,v9T,lkT,IkT,eh,Hl1,BEw,TET,xYw,UYJ,$Yf,n_f,dYt,FH,NEW,KSg,wAq,YHq,LSg,ejt,zjg,riw,hjK,SHq,XH,cic,WS1,zO,bly,GO,Ew,uzN,tl,hl,v_g,Olt,akW,fkt,mYt,VaN,lVt,IVt,Hj1,xUf,wnT,$Ut,Blg,NlJ,KMt,Sh,dUW,jtq,cI,Yk3,LMt,ef1,kpq,y3W,FMt,zf1,Ev1,J31,ZjJ,DU1,Qtw,stN,pnN,urf,Oj1,CQ1,fVt,gvt,mUt,Vuw,lNN,IN3,BUW,$aW,daK,xa1,NUc,jkJ,KJN,wiT,YYW,eKt,keN,FJt,Xi1,zKw,fC,gu,
lK,HU,rPJ,GeT,JPt,P_1,Tu,BU,DaW,xA,RKt,Qkw,cPw,n8,skt,vDg,C_g,aNy,fNT,gDN,mac,lxf,dS,IxT,BRq,wS,xIy,$It,dIN,wH1,nL1,eqg,XHt,k11,zqt,rmt,ELJ,oL1,Zgt,DIg,cmw,L8,WCg,bgq,eX,qRW,kA,M3N,smN,pHW,utT,AmK,vL3,OgT,CUT,axf,I43,TY1,x_1,BYq,igK,gLy,nNT,d_t,YON,LRT,yu1,ruq,yM,Gdy,JuN,oNq,Png,RXW,cuN,bH1,qOq,MTN,sBN,OHt,p_W,gNW,m_1,VJq,Gu,Ij1,Hht,T3J,B3N,xO1,UO1,nCt,dOf,w6K,hO,KqW,jCJ,Lq1,PU,Ym1,kAW,y4T,SX,tJ3,r4T,GA3,oCT,hNK,ECN,DOq,QCq,qmf,MJq,p8,sCJ,vC3,fjJ,C8,ih1,gC1,mOK,lEw,HDJ,TQt,nbN,wJN,dAJ,$AK,NQ1,jYg,
Ynt,XJ1,LfN,zDy,tST,yzw,hDg,ZDt,RDf,czN,MSt,CcJ,fE3,gbc,Vqt,IaT,TN1,hc,bJ,YMN,jRy,eiK,kZf,XdT,Fkf,zi1,yw3,qJ,Uef,wdg,Lk1,NNt,c$,GZN,EYg,Jwq,oYt,fT,hiW,g6,PWg,DhN,ZiN,SM3,VH,Ric,WkK,qMt,Mqt,CW1,fa1,gYy,mht,VKW,l0J,$f,H7f,Tt1,Btq,x$y,U$c,nUt,d$3,Ntt,jGy,Ydt,zp1,F1t,yrJ,Gjg,EU3,es,Jrt,oUf,hp3,Z7c,Rpc,SdW,crJ,b7q,zV,MKf,sG1,qd1,pqK,Arw,vUg,CFy,O7g,a0t,ue1,f0t,gUW,m$3,i71,Vlc,l$c,I$t,HnW,TFW,UBw,xBJ,ngJ,dBJ,$B1,yH,wVy,j7f,F8c,NFc,XVg,zdc,ytJ,tlg,DBq,SgT,Rdw,cty,W8W,Ss,s7W,vgt,C1y,RA,mBw,ggg,VWN,W4,lXW,
IXg,Hb3,BdK,x9f,U93,n6J,d9K,wfT,zlW,elf,Fhq,tWt,yM3,rMg,G43,JMT,hl1,D9t,Spf,AMN,Obg,aX1,fXT,g6c,m9N,ibc,l61,I6y,Be3,xX1,UXy,n4K,$Xg,dXt,wQW,NeT,Yf1,Lbt,eGN,gJ,md,iB,Vy,kFt,l3,Fbw,yfK,GF1,o43,DXT,RGc,ZRN,g4f,mXw,seg,ORc,a6t,Qeq,uIJ,Sff,pQf,zGy,bRt,Jfw,rfN,lS1,IST,HMK,P5N,cf1,Mfq,B9w,Uoq,dow,KGK,jH1,KY,yNc,zH1,EkK,hH3,DoT,SEt,RH1,WG1,qEN,bMW,p0w,uYN,mo1,fSg,OMf,gkt,CMN,iMN,Hz1,GR,Nct,$6J,jDT,YuJ,eSf,k91,Jv,Fat,y71,tyT,r7J,G9t,SuN,Zzq,Qy,sz,MyN,sD1,Av,p7T,A7N,uAK,vr3,Oz1,CLq,amW,fmN,gr1,m6t,iz3,VA3,
l5c,I5T,Hww,u3,TM1,BMy,xCN,UCK,nQt,$C1,dC1,wBN,NMc,KQT,j_c,Y5y,Oz,ecf,FQw,zct,rDy,JDc,oQT,hcw,DCJ,S5T,Rc1,Q_g,WQg,s_T,q5g,pBN,AD1,u1W,CSf,iw3,VGJ,IWg,$s,Tnq,U7,xsJ,Us3,d_,n3T,dsf,w2T,Nn1,w_,Lnq,kMt,rxT,tGK,E3K,Jxw,e5,ks,o3w,P63,ZPf,S6c,Q5W,cxt,Dsf,Wnt,p2f,OPT,C6c,FV,aWW,fWt,liy,g3c,iP3,V0c,WBf,STW,beW,qT3,spc,Adc,uLT,vXf,Oeq,Cpt,ait,gXc,mQ3,ieq,VCT,lQJ,HXT,BAc,n1y,NAT,Yst,e2N,Xsq,E7,z2t,yLg,tCJ,rLt,Gc1,JLt,o1f,h23,PTN,Dky,ZXJ,Ssy,R2t,QL1,cLq,Wzw,qsc,bXK,psW,u63,v13,hT,OXT,CTt,g1g,fQJ,DR,VLt,lsK,T2W,
xTW,B2f,HVN,$Tw,n$t,jyw,dTN,bf,N23,zoc,eog,kh3,FUf,XSJ,yCJ,rC3,tLN,qe,Me,DTT,E$t,Pdy,how,JCJ,o$c,Ro3,Qyc,WUy,cC3,syW,MLw,ul1,v$J,Cdf,asy,OVN,fst,mT1,g$3,Viw,HI3,aj,TZf,BZJ,ntT,KOy,FOK,g_,zEw,G6T,hE3,otK,Etf,JX3,HX,RE1,Dt1,ZIy,Q$T,WOt,cX1,Miq,s$T,AXN,u8w,vt1,OIf,CjT,fHw,gtf,jz,iIK,Lt,Vxw,lcW,By1,xwT,zG,Uww,$wf,kit,FoN,Koc,ekK,jrT,YFc,txf,r8K,y8t,Git,ER3,Phf,J8f,Dwc,Zxf,Jo,Rky,QrJ,c83,SFg,bx3,WoJ,oN,pCw,fcK,gRw,mwW,ixW,V4q,lZ1,BsK,HU1,TsK,IZw,UWJ,$Wg,dWt,KIg,j91,LI1,RN,euT,k3W,FIg,zuN,yQg,t4t,rQc,G31,
JQg,hut,Pbc,Sjc,ZUW,Q9w,RuK,cQJ,WIt,bUc,bi,M43,iUK,gu1,Iu1,HqJ,$L1,dL1,wEt,NLK,K$f,jsy,ehq,kBJ,F$N,XEw,tZt,rGT,GBw,EqJ,JGN,oqg,hhw,Pz3,DLw,Zq3,S2w,Qs3,cGt,W$f,q21,ss1,AGJ,Czy,OqN,vqK,uNw,xF,fuT,gqy,mLT,iqK,Izw,V2N,H2W,$F,TOt,lzw,BOW,xnf,UnJ,nIc,$nw,dn3,KEJ,NOT,wzW,Y$1,e51,kDq,FEy,t2J,rnt,La,GDw,EIt,Jn3,oIN,h5f,Pvt,Z2t,S$J,R5f,QMc,b21,WEq,Anf,cnT,kF,u$W,q$T,pzJ,CvN,fz1,le3,i2J,V$f,mnJ,gIT,GS,Iet,TXt,BXK,xf3,Ufy,noW,JU,o2,KyW,dfT,$f1,wmW,rZJ,yZJ,NXJ,z$3,Df3,ZBf,SCc,sx,R$1,Qqt,cZ3,qCW,sqc,AZy,vof,OBt,
Clg,mf3,goJ,iB3,lof,a2,T1y,B1T,xbf,Ub3,gq,ms,db3,K0W,F0t,tv1,rac,GCT,EK1,Ja1,h9T,Dbf,PAt,ZEg,ScK,R9K,Qlt,caK,W0g,bEg,qcc,Mv3,Tb,uK1,slT,BK,OEW,vKw,CAw,ldw,IdT,mbt,gKK,Vgq,iE1,U2q,nSW,$21,d2J,wGg,NzW,Kif,jEK,eYq,Yac,Lic,kWg,XGc,ykW,rkf,ESf,oSJ,Z$1,Sat,RYt,QEt,ckf,ww,b$1,Wiy,N7,qac,sEy,pGg,Akt,uPW,fdw,gSt,m2q,i$3,VBf,l2f,I2y,kj,TiT,BiW,xPT,n5f,UPy,$PW,wM3,Ni3,KZt,YKf,LZw,jht,y_W,Gkq,E5c,J_T,o5t,PoJ,hV1,RV3,Qht,c_y,WZt,qKt,b4K,shy,Co1,O41,f2f,g5J,mPT,Hp1,TKt,BK1,xdJ,$dT,n2t,Ud1,NKN,jFt,Ke1,YDy,R6,Lec,
eOW,zOt,XpJ,ygt,t9J,rgc,Ggt,o2f,Pmc,Dd3,ZpK,SD3,ROg,QFt,cgJ,bpt,Weg,qD3,sFt,M9w,pp3,Ag1,uC3,v21,Opq,aP1,fPt,g2f,mdt,ipW,Vp1,l_y,HJy,TaN,I_t,a6,Ujt,$jy,djW,w81,Naw,jft,Yif,X8T,zyg,EWy,oWT,hy1,ZJq,SiJ,Ry1,Qfg,csW,WXJ,qiN,Mp1,p8t,uqK,OJT,gWK,a_f,CCt,f_N,mjK,lOt,iJ1,VIf,Ho3,x5W,U5y,nxq,d5t,wLc,NBJ,jT3,Lgt,KgN,eQf,k_1,Fgw,XL3,zQ3,yh1,tIK,rht,G_W,JhW,Ex1,oxJ,hQN,PXt,D5c,ZoJ,SWJ,RQc,QTJ,boJ,qWc,ch1,WgT,pLf,vxN,Oo1,Trt,Vwt,HLt,BrJ,I7T,nv,xpt,Upy,$pN,NrJ,wDq,Krw,jc1,$9,wv,Lrg,eAy,jn,Y9,kz1,Frt,twt,EaK,oaK,
hAq,PaN,Dpw,ZLW,RA3,Qcw,cST,WrJ,bL3,qyf,MwJ,k9,scf,pDf,Xx,ASN,uwt,vaT,OLK,Cac,a7K,ty,rv,f7N,gaT,GK,mpf,iLN,VjK,lIw,HfN,TCW,xFN,woW,dFf,$FT,NCK,KPt,FPy,LPy,eFc,Ye1,kvt,Jy,tjc,rpK,Gvc,EMt,Jpc,hFf,Seg,DFN,oJ,PHf,bfN,Mjy,s3K,poq,Apf,udy,CHJ,aIy,gMN,mFW,if1,VF3,IDJ,HFy,T5f,xHt,UHt,n0N,dHf,wec,KAq,jZf,evK,FAt,zvT,Xef,tFN,rjf,G$f,E0J,JjT,hvW,Py1,DHK,cjN,WAw,bFf,qb1,sZN,cl,be,Wl,pec,Ajt,us3,v0g,aDc,Cyy,g0J,mHg,iFc,l9q,Bkt,U8y,nHN,$8N,MZ,d81,Nk3,KTq,LTw,e01,sJ,pv,Xr1,kIK,z0q,r$N,y$f,GI1,ue,J$c,oHy,D8T,Svy,
vl,Qd3,c$K,WTJ,b_1,qv1,MHy,sd1,vHw,O_W,f91,CVy,a9W,gHK,m8K,ITK,i_w,lTf,H11,TGJ,BGt,nmJ,$uJ,duN,wPg,NGt,ktc,e4t,rAw,JAt,IK,omt,kYf,h4f,Pu1,Z1f,R4q,QWt,pPf,AA3,UH,uDN,vm1,O11,Cut,aTT,gmT,i11,fTK,mu1,IMT,lMc,Tf1,BfT,x1c,U1q,n8T,$11,d1T,wtw,YQf,kJq,LDy,FDw,Xtc,z_K,dE,yRg,tVt,NY,GJq,rR1,E8w,JRg,h_N,Pst,Zy3,SQt,R_t,QP3,cRw,byy,sPT,uZw,Cs1,Oyy,aMc,fMg,iyq,$mg,HcK,wRt,N8y,jbT,YrW,eWt,kXy,FHt,XR3,zWg,yJ3,tRw,GXc,oyJ,hWw,PI1,Dm1,RWW,Sr3,bc3,qrt,MRK,sbW,pRK,u7K,hi,Ocw,S7,aGg,gyg,mmc,H31,BDf,$Gg,w53,ND3,j0N,
Y0c,Lvt,k5y,X5J,zz1,rE3,EP1,hzf,oPf,JEw,qY,DG3,Pk1,Z31,S0t,Rzt,Q03,cEW,WvW,b3t,Mec,s0W,p5t,uSK,CkN,AEq,vPf,aFw,fFq,gPN,mGy,V83,lyT,$g1,dgt,wWf,NH1,KtN,Ltt,OH,yWt,t8J,rW3,GyK,EZf,Cl,pS,RCc,gE,Q4W,s4K,M8t,mS,AWJ,z7c;_.I1=function(V,l){if(Error.captureStackTrace)Error.captureStackTrace(this,_.I1);else{var I=Error().stack;I&&(this.stack=I)}V&&(this.message=String(V));l!==void 0&&(this.cause=l)};
Tw=function(V){return(V&192)!==128};
xT=function(){throw Error("B");};
Vcg=function(V,l){l=String.fromCharCode.apply(null,l);return V==null?l:V+l};
TWT=function(V){var l=!1;l=l===void 0?!1:l;if(lgw){if(l&&(Igg?!V.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(V)))throw Error("C");V=(HK1||(HK1=new TextEncoder)).encode(V)}else{for(var I=0,H=new Uint8Array(3*V.length),T=0;T<V.length;T++){var x=V.charCodeAt(T);if(x<128)H[I++]=x;else{if(x<2048)H[I++]=x>>6|192;else{if(x>=55296&&x<=57343){if(x<=56319&&T<V.length){var n=V.charCodeAt(++T);if(n>=56320&&n<=57343){x=(x-55296)*1024+n-56320+65536;H[I++]=x>>18|
240;H[I++]=x>>12&63|128;H[I++]=x>>6&63|128;H[I++]=x&63|128;continue}else T--}if(l)throw Error("C");x=65533}H[I++]=x>>12|224;H[I++]=x>>6&63|128}H[I++]=x&63|128}}V=I===H.length?H:H.subarray(0,I)}return V};
$T=function(V){_.nK.setTimeout(function(){throw V;},0)};
_.Nq=function(V,l){return V.lastIndexOf(l,0)==0};
KK=function(V,l){var I=V.length-l.length;return I>=0&&V.indexOf(l,I)==I};
_.jc=function(V){return/^[\s\xa0]*$/.test(V)};
_.kT=function(V,l){return V.indexOf(l)!=-1};
_.XJ=function(V,l){return _.kT(V.toLowerCase(),l.toLowerCase())};
_.zw=function(){var V=_.nK.navigator;return V&&(V=V.userAgent)?V:""};
BWf=function(V){if(!yf||!t1)return!1;for(var l=0;l<t1.brands.length;l++){var I=t1.brands[l].brand;if(I&&_.kT(I,V))return!0}return!1};
Gw=function(V){return _.kT(_.zw(),V)};
Et=function(){return yf?!!t1&&t1.brands.length>0:!1};
xq1=function(){return Et()?!1:Gw("Opera")};
Uq1=function(){return Et()?!1:Gw("Trident")||Gw("MSIE")};
nTt=function(){return Et()?BWf("Microsoft Edge"):Gw("Edg/")};
J1=function(){return Gw("Firefox")||Gw("FxiOS")};
_.$qc=function(){return Gw("Safari")&&!(_.Py()||(Et()?0:Gw("Coast"))||xq1()||(Et()?0:Gw("Edge"))||nTt()||(Et()?BWf("Opera"):Gw("OPR"))||J1()||Gw("Silk")||Gw("Android"))};
_.Py=function(){return Et()?BWf("Chromium"):(Gw("Chrome")||Gw("CriOS"))&&!(Et()?0:Gw("Edge"))||Gw("Silk")};
_.dqK=function(){return Gw("Android")&&!(_.Py()||J1()||xq1()||Gw("Silk"))};
wyJ=function(V){var l={};V.forEach(function(I){l[I[0]]=I[1]});
return function(I){return l[I.find(function(H){return H in l})]||""}};
NWJ=function(V){var l=_.zw();if(V==="Internet Explorer"){if(Uq1())if((V=/rv: *([\d\.]*)/.exec(l))&&V[1])l=V[1];else{V="";var I=/MSIE +([\d\.]+)/.exec(l);if(I&&I[1])if(l=/Trident\/(\d.\d)/.exec(l),I[1]=="7.0")if(l&&l[1])switch(l[1]){case "4.0":V="8.0";break;case "5.0":V="9.0";break;case "6.0":V="10.0";break;case "7.0":V="11.0"}else V="7.0";else V=I[1];l=V}else l="";return l}var H=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");I=[];for(var T;T=H.exec(l);)I.push([T[1],T[2],T[3]||void 0]);
l=wyJ(I);switch(V){case "Opera":if(xq1())return l(["Version","Opera"]);if(Et()?BWf("Opera"):Gw("OPR"))return l(["OPR"]);break;case "Microsoft Edge":if(Et()?0:Gw("Edge"))return l(["Edge"]);if(nTt())return l(["Edg"]);break;case "Chromium":if(_.Py())return l(["Chrome","CriOS","HeadlessChrome"])}return V==="Firefox"&&J1()||V==="Safari"&&_.$qc()||V==="Android Browser"&&_.dqK()||V==="Silk"&&Gw("Silk")?(l=I[2])&&l[1]||"":""};
_.K3c=function(V){if(Et()&&V!=="Silk"){var l=t1.brands.find(function(I){return I.brand===V});
if(!l||!l.version)return NaN;l=l.version.split(".")}else{l=NWJ(V);if(l==="")return NaN;l=l.split(".")}return l.length===0?NaN:Number(l[0])};
Dg=function(){return yf?!!t1&&!!t1.platform:!1};
_.j11=function(){return Dg()?t1.platform==="Android":Gw("Android")};
YtW=function(){return Gw("iPhone")&&!Gw("iPod")&&!Gw("iPad")};
_.R1=function(){return YtW()||Gw("iPad")||Gw("iPod")};
_.L3N=function(){return Dg()?t1.platform==="macOS":Gw("Macintosh")};
_.etT=function(){return Dg()?t1.platform==="Windows":Gw("Windows")};
_.kwt=function(){return Dg()?t1.platform==="Chrome OS":Gw("CrOS")};
_.Qf=function(V){return V[V.length-1]};
_.cy=function(V,l,I){l=_.F3w(V,l,I);return l<0?null:typeof V==="string"?V.charAt(l):V[l]};
_.F3w=function(V,l,I){for(var H=V.length,T=typeof V==="string"?V.split(""):V,x=0;x<H;x++)if(x in T&&l.call(I,T[x],x,V))return x;return-1};
Xyc=function(V){for(var l=_.Wy,I=typeof V==="string"?V.split(""):V,H=V.length-1;H>=0;H--)if(H in I&&l.call(void 0,I[H],H,V))return H;return-1};
_.Mq=function(V,l){return _.qq(V,l)>=0};
_.ztN=function(V,l){_.Mq(V,l)||V.push(l)};
_.A1=function(V,l){l=_.qq(V,l);var I;(I=l>=0)&&_.y1J(V,l);return I};
_.y1J=function(V,l){Array.prototype.splice.call(V,l,1)};
_.uN=function(V){var l=V.length;if(l>0){for(var I=Array(l),H=0;H<l;H++)I[H]=V[H];return I}return[]};
_.fK=function(V,l){for(var I=1;I<arguments.length;I++){var H=arguments[I];if(_.vy(H)){var T=V.length||0,x=H.length||0;V.length=T+x;for(var n=0;n<x;n++)V[T+n]=H[n]}else V.push(H)}};
_.r1W=function(V,l,I,H){Array.prototype.splice.apply(V,tc1(arguments,1))};
tc1=function(V,l,I){return arguments.length<=2?Array.prototype.slice.call(V,l):Array.prototype.slice.call(V,l,I)};
Gwc=function(V,l){l=l||V;for(var I=0,H=0,T={};H<V.length;){var x=V[H++],n=_.m3(x)?"o"+_.iN(x):(typeof x).charAt(0)+x;Object.prototype.hasOwnProperty.call(T,n)||(T[n]=!0,l[I++]=x)}l.length=I};
_.J1y=function(V,l,I){I=I||_.ETf;for(var H=0,T=V.length,x;H<T;){var n=H+(T-H>>>1);var w=I(l,V[n]);w>0?H=n+1:(T=n,x=!w)}return x?H:-H-1};
_.Ii=function(V,l,I){if(!_.vy(V)||!_.vy(l)||V.length!=l.length)return!1;var H=V.length;I=I||oTf;for(var T=0;T<H;T++)if(!I(V[T],l[T]))return!1;return!0};
_.ETf=function(V,l){return V>l?1:V<l?-1:0};
oTf=function(V,l){return V===l};
ht1=function(V,l,I){l=Array.prototype.splice.call(V,l,1);Array.prototype.splice.call(V,I,0,l[0])};
Dq1=function(V){return PNc[V]||""};
RtJ=function(V){if(!ZKy)return _.TE(V);V=Stt.test(V)?V.replace(Stt,Dq1):V;V=atob(V);for(var l=new Uint8Array(V.length),I=0;I<V.length;I++)l[I]=V.charCodeAt(I);return l};
Q1t=function(V,l){V.__closure__error__context__984382||(V.__closure__error__context__984382={});V.__closure__error__context__984382.severity=l};
_.Bw=function(V){V=Error(V);Q1t(V,"warning");return V};
W3y=function(V,l){if(V!=null){var I;var H=(I=c11)!=null?I:c11={};I=H[V]||0;I>=l||(H[V]=I+1,V=Error(),Q1t(V,"incident"),$T(V))}};
nZ=function(V,l,I){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(I===void 0?0:I)&&Symbol.for&&V?Symbol.for(V):V!=null?Symbol(V):Symbol():l};
Mc1=function(V,l){db||_.NN in V||bKy(V,qtw);V[_.NN]|=l};
KZ=function(V,l){db||_.NN in V||bKy(V,qtw);V[_.NN]=l};
YJ=function(V,l){V[_.NN]&=~l};
s1W=function(V){if(4&V)return 512&V?512:1024&V?1024:0};
kJ=function(V){Mc1(V,34);return V};
pyK=function(V){Mc1(V,32);return V};
F0=function(){return typeof BigInt==="function"};
X0=function(V,l){return l===void 0?V.copyOnWrite!==A1g&&!!(2&(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.NN]|0)):!!(2&l)&&V.copyOnWrite!==A1g};
_.hB=function(V,l){if(V!=null)if(typeof V==="string")V=V?new tB(V,rb):_.GE();else if(V.constructor!==tB)if(uJW&&V!=null&&V instanceof Uint8Array)V=V.length?new tB(new Uint8Array(V),rb):_.GE();else{if(!l)throw Error();V=void 0}return V};
vTy=function(V,l){if(typeof l!=="number"||l<0||l>=V.length)throw Error();};
OKK=function(V,l,I){l=l&128?0:-1;var H=V.length,T;if(T=!!H)T=V[H-1],T=T!=null&&typeof T==="object"&&T.constructor===Object;for(var x=H+(T?-1:0),n=0;n<x;n++)I(n-l,V[n]);if(T){V=V[H-1];for(var w in V)!isNaN(w)&&I(+w,V[w])}};
So=function(V){return V&128?Pw:void 0};
_.Ri=function(V){return V};
Qa=function(V){V.isGuard_doNotManuallySetPrettyPlease=!0;return V};
agT=function(){var V=CNN;return Qa(function(l){for(var I in V)if(l===V[I]&&!/^[0-9]+$/.test(I))return!0;return!1})};
_.cw=function(V){var l=V;if(fgy(l)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(l))throw Error(String(l));}else if(gT1(l)&&!Number.isSafeInteger(l))throw Error(String(l));return mqT?BigInt(V):V=iKc(V)?V?"1":"0":fgy(V)?V.trim()||"0":String(V)};
Vo3=function(V,l){if(V.length>l.length)return!1;if(V.length<l.length||V===l)return!0;for(var I=0;I<V.length;I++){var H=V[I],T=l[I];if(H>T)return!1;if(H<T)return!0}};
lvt=function(V){var l=V>>>0;Ww=l;bZ=(V-l)/4294967296>>>0};
qN=function(V){if(V<0){lvt(-V);var l=_.U(IvJ(Ww,bZ));V=l.next().value;l=l.next().value;Ww=V>>>0;bZ=l>>>0}else lvt(V)};
HZJ=function(V,l){var I=l*4294967296+(V>>>0);return Number.isSafeInteger(I)?I:_.MN(V,l)};
Tbq=function(V,l){var I=l&2147483648;I&&(V=~V+1>>>0,l=~l>>>0,V==0&&(l=l+1>>>0));V=HZJ(V,l);return typeof V==="number"?I?-V:V:I?"-"+V:V};
_.MN=function(V,l){l>>>=0;V>>>=0;if(l<=2097151)var I=""+(4294967296*l+V);else F0()?I=""+(BigInt(l)<<BigInt(32)|BigInt(V)):(I=(V>>>24|l<<8)&16777215,l=l>>16&65535,V=(V&16777215)+I*6777216+l*6710656,I+=l*8147497,l*=2,V>=1E7&&(I+=V/1E7>>>0,V%=1E7),I>=1E7&&(l+=I/1E7>>>0,I%=1E7),I=l+BbJ(I)+BbJ(V));return I};
BbJ=function(V){V=String(V);return"0000000".slice(V.length)+V};
_.xNK=function(V,l){l&2147483648?F0()?V=""+(BigInt(l|0)<<BigInt(32)|BigInt(V>>>0)):(l=_.U(IvJ(V,l)),V=l.next().value,l=l.next().value,V="-"+_.MN(V,l)):V=_.MN(V,l);return V};
UNJ=function(V){if(V.length<16)qN(Number(V));else if(F0())V=BigInt(V),Ww=Number(V&BigInt(4294967295))>>>0,bZ=Number(V>>BigInt(32)&BigInt(4294967295));else{var l=+(V[0]==="-");bZ=Ww=0;for(var I=V.length,H=l,T=(I-l)%6+l;T<=I;H=T,T+=6)H=Number(V.slice(H,T)),bZ*=1E6,Ww=Ww*1E6+H,Ww>=4294967296&&(bZ+=Math.trunc(Ww/4294967296),bZ>>>=0,Ww>>>=0);l&&(l=_.U(IvJ(Ww,bZ)),V=l.next().value,l=l.next().value,Ww=V,bZ=l)}};
IvJ=function(V,l){l=~l;V?V=~V+1:l+=1;return[V,l]};
pZ=function(V){return Array.prototype.slice.call(V)};
_.AB=function(V,l){throw Error(l===void 0?"unexpected value "+V+"!":l);};
_.ai=function(V){if(V!=null&&typeof V!=="number")throw Error("I`"+typeof V+"`"+V);return V};
nJ1=function(V){if(V==null||typeof V==="number")return V;if(V==="NaN"||V==="Infinity"||V==="-Infinity")return Number(V)};
dNJ=function(V){if(V!=null&&typeof V!=="boolean")throw Error("J`"+_.$Nf(V)+"`"+V);return V};
ww3=function(V){if(V==null||typeof V==="boolean")return V;if(typeof V==="number")return!!V};
_.mW=function(V){switch(typeof V){case "bigint":return!0;case "number":return fZ(V);case "string":return Nbw.test(V);default:return!1}};
_.iZ=function(V){if(!fZ(V))throw _.Bw("enum");return V|0};
_.V6=function(V){return V==null?V:fZ(V)?V|0:void 0};
KWc=function(V){if(typeof V!=="number")throw _.Bw("int32");if(!fZ(V))throw _.Bw("int32");return V|0};
_.lE=function(V){return V==null?V:KWc(V)};
_.Iu=function(V){if(V==null)return V;if(typeof V==="string"&&V)V=+V;else if(typeof V!=="number")return;return fZ(V)?V|0:void 0};
_.jic=function(V){if(V==null)return V;if(typeof V==="string"&&V)V=+V;else if(typeof V!=="number")return;return fZ(V)?V>>>0:void 0};
kE1=function(V){var l=0;l=l===void 0?0:l;if(!_.mW(V))throw _.Bw("int64");var I=typeof V;switch(l){case 512:switch(I){case "string":return HY(V);case "bigint":return String(T2(64,V));default:return YNy(V)}case 1024:switch(I){case "string":return LWT(V);case "bigint":return _.cw(T2(64,V));default:return e3W(V)}case 0:switch(I){case "string":return HY(V);case "bigint":return _.cw(T2(64,V));default:return nQ(V)}default:return _.AB(l,"Unknown format requested type for int64")}};
$h=function(V){return V==null?V:kE1(V)};
FWy=function(V){if(V[0]==="-")return!1;var l=V.length;return l<20?!0:l===20&&Number(V.substring(0,6))<184467};
Xwc=function(V){var l=V.length;return V[0]==="-"?l<20?!0:l===20&&Number(V.substring(0,7))>-922337:l<19?!0:l===19&&Number(V.substring(0,6))<922337};
z3K=function(V){if(V<0){qN(V);var l=_.MN(Ww,bZ);V=Number(l);return dg(V)?V:l}l=String(V);if(FWy(l))return l;qN(V);return HZJ(Ww,bZ)};
yBf=function(V){if(Xwc(V))return V;UNJ(V);return _.xNK(Ww,bZ)};
toy=function(V){if(FWy(V))return V;UNJ(V);return _.MN(Ww,bZ)};
nQ=function(V){V=wg(V);dg(V)||(qN(V),V=Tbq(Ww,bZ));return V};
_.rBW=function(V){V=wg(V);return V>=0&&dg(V)?V:z3K(V)};
YNy=function(V){V=wg(V);if(dg(V))V=String(V);else{var l=String(V);Xwc(l)?V=l:(qN(V),V=_.xNK(Ww,bZ))}return V};
_.GET=function(V){V=wg(V);if(V>=0&&dg(V))V=String(V);else{var l=String(V);FWy(l)?V=l:(qN(V),V=_.MN(Ww,bZ))}return V};
HY=function(V){var l=wg(Number(V));if(dg(l))return String(l);l=V.indexOf(".");l!==-1&&(V=V.substring(0,l));return yBf(V)};
LWT=function(V){var l=wg(Number(V));if(dg(l))return _.cw(l);l=V.indexOf(".");l!==-1&&(V=V.substring(0,l));return F0()?_.cw(T2(64,BigInt(V))):_.cw(yBf(V))};
e3W=function(V){return dg(V)?_.cw(nQ(V)):_.cw(YNy(V))};
_.EJt=function(V){return dg(V)?_.cw(_.rBW(V)):_.cw(_.GET(V))};
_.JBK=function(V){var l=wg(Number(V));if(dg(l)&&l>=0)return String(l);l=V.indexOf(".");l!==-1&&(V=V.substring(0,l));return toy(V)};
_.oJc=function(V){var l=wg(Number(V));if(dg(l)&&l>=0)return _.cw(l);l=V.indexOf(".");l!==-1&&(V=V.substring(0,l));return F0()?_.cw((0,_.NE)(64,BigInt(V))):_.cw(toy(V))};
h3f=function(V,l){l=l===void 0?!1:l;var I=typeof V;if(V==null)return V;if(I==="bigint")return String(T2(64,V));if(_.mW(V))return I==="string"?HY(V):l?YNy(V):nQ(V)};
PZJ=function(V){if(V==null)return V;var l=typeof V;if(l==="bigint")return String(T2(64,V));if(_.mW(V)){if(l==="string")return HY(V);if(l==="number")return nQ(V)}};
DNg=function(V){if(V==null)return V;var l=typeof V;if(l==="bigint")return String((0,_.NE)(64,V));if(_.mW(V)){if(l==="string")return _.JBK(V);if(l==="number")return _.rBW(V)}};
_.jb=function(V){if(typeof V!=="string")throw Error();return V};
Yh=function(V){if(V!=null&&typeof V!=="string")throw Error();return V};
_.LQ=function(V){return V==null||typeof V==="string"?V:void 0};
SNN=function(V,l,I,H){if(V!=null&&typeof V==="object"&&V[kh]===FE)return V;if(!Array.isArray(V))return I?H&2?((V=l[ZZW])||(V=new l,kJ(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),V=l[ZZW]=V),l=V):l=new l:l=void 0,l;I=V[_.NN]|0;H=I|H&32|H&2;H!==I&&KZ(V,H);return new l(V)};
R3w=function(V,l,I){V=l?KWc(V):_.Iu(V);return V==null?I?0:void 0:V|0};
QiT=function(V){return V};
cBq=function(V){return V};
bZt=function(V,l,I,H,T,x){V=SNN(V,H,I,x);T&&(V=WWW(V));return V};
qNy=function(V){return[V,this.get(V)]};
pw1=function(){return Mot||(Mot=new XE(kJ([]),void 0,void 0,void 0,siW))};
ABw=function(V){var l=z2(y6);return l?V[l]:void 0};
vJ1=function(V,l){var I=z2(y6),H;db&&I&&((H=V[I])==null?void 0:H[l])!=null&&W3y(u0K,3)};
avy=function(V,l){var I=I===void 0?!1:I;if(z2(OZf)&&z2(y6)&&void 0===OZf){var H=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=H[y6];if(!T)return;if(T=T.reviveUnknownFields)try{T(H,l,CZJ);return}catch(x){$T(x)}}I&&(V=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(I=z2(y6))&&I in V&&(V=V[I])&&delete V[l])};
iZN=function(V,l,I,H,T){H=H===void 0?!1:H;T=T===void 0?!1:T;var x=[],n=V.length,w=4294967295,N=!1,L=!!(l&64),e=L?l&128?0:-1:void 0;if(!(l&1)){var k=n&&V[n-1];k!=null&&typeof k==="object"&&k.constructor===Object?(n--,w=n):k=void 0;if(L&&!(l&128)&&!T){N=!0;var X;w=((X=fv1)!=null?X:QiT)(w-e,e,V,k)+e}}X=void 0;for(var r=0;r<n;r++){var E=V[r];if(E!=null&&(E=I(E,H))!=null)if(L&&r>=w){var D=r-e,Z=void 0;((Z=X)!=null?Z:X={})[D]=E}else x[r]=E}if(k)for(var S in k)n=k[S],n!=null&&(n=I(n,H))!=null&&(r=+S,E=void 0,
L&&!Number.isNaN(r)&&(E=r+e)<w?x[E]=n:(r=void 0,((r=X)!=null?r:X={})[S]=n));X&&(N?x.push(X):x[w]=X);T&&(KZ(x,l&16761025|34),z2(y6)&&(V=ABw(V))&&V instanceof gJg&&(x[y6]=mNW(V)));return x};
lrT=function(V){V[0]=VbJ(V[0]);V[1]=VbJ(V[1]);return V};
VbJ=function(V){switch(typeof V){case "number":return Number.isFinite(V)?V:""+V;case "bigint":return(0,_.tI)(V)?Number(V):""+V;case "boolean":return V?1:0;case "object":if(Array.isArray(V)){var l=V[_.NN]|0;return V.length===0&&l&1?void 0:iZN(V,l,VbJ)}if(V[kh]===FE)return Irw(V);if(V instanceof tB){l=V.JSC$6680_value_;if(l==null)V="";else if(typeof l==="string")V=l;else{if(ZKy){for(var I="",H=0,T=l.length-10240;H<T;)I+=String.fromCharCode.apply(null,l.subarray(H,H+=10240));I+=String.fromCharCode.apply(null,
H?l.subarray(H):l);l=btoa(I)}else l=_.rg(l);V=V.JSC$6680_value_=l}return V}if(V instanceof XE)return V=V.size!==0?Array.from(G2.prototype.entries.call(V),lrT):void 0,V;return}return V};
EP=function(V,l){if(l){fv1=l==null||l===QiT||l[HQt]!==Tg1?QiT:l;try{return Irw(V)}finally{fv1=void 0}}return Irw(V)};
Irw=function(V){V=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return iZN(V,V[_.NN]|0,VbJ)};
UEt=function(V){switch(typeof V){case "boolean":return BgW||(BgW=[0,void 0,!0]);case "number":return V>0?void 0:V===0?xEt||(xEt=[0,void 0]):[-V,void 0];case "string":return[0,V];case "object":return V}};
PY=function(V,l,I){V=_.ou(V,l[0],l[1],I?1:2);l!==BgW&&I&&Mc1(V,2048);return V};
_.ou=function(V,l,I,H){H=H===void 0?0:H;if(V==null){var T=32;I?(V=[I],T|=128):V=[];l&&(T=T&-16760833|(l&1023)<<14)}else{if(!Array.isArray(V))throw Error("L");T=V[_.NN]|0;4096&T&&!(2&T)&&nhc();if(T&256)throw Error("N");if(T&64)return H!==0||T&4096||KZ(V,T|4096),V;if(I&&(T|=128,I!==V[0]))throw Error("O");a:{I=V;T|=64;var x=I.length;if(x){var n=x-1,w=I[n];if(w!=null&&typeof w==="object"&&w.constructor===Object){l=T&128?0:-1;n-=l;if(n>=1024)throw Error("Q");for(var N in w)x=+N,x<n&&(I[x+l]=w[N],delete w[N]);
T=T&-16760833|(n&1023)<<14;break a}}if(l){N=Math.max(l,x-(T&128?0:-1));if(N>1024)throw Error("R");T=T&-16760833|(N&1023)<<14}}}T|=64;H===0&&(T|=4096);KZ(V,T);return V};
nhc=function(){W3y($EK,5)};
Ngt=function(V,l){if(typeof V!=="object")return V;if(Array.isArray(V)){var I=V[_.NN]|0;return V.length===0&&I&1?void 0:dET(V,I,l)}if(V[kh]===FE)return wYy(V);if(V instanceof XE){l=V.arrayState;if(l&2)return V;if(!V.size)return;I=kJ(Array.from(G2.prototype.entries.call(V)));if(V.valueCtor)for(V=0;V<I.length;V++){var H=I[V],T=H[1];T==null||typeof T!=="object"?T=void 0:T[kh]===FE?T=wYy(T):Array.isArray(T)?T=dET(T,T[_.NN]|0,!!(l&32)):T=void 0;H[1]=T}return I}if(V instanceof tB)return V};
dET=function(V,l,I){if(l&2)return V;!I||8192&l||16&l?V=Dr(V,l,I&&!(l&16)):(Mc1(V,34),l&4&&Object.freeze(V));return V};
wYy=function(V){var l=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=l[_.NN]|0;return X0(V,I)?V:Dr(l,I)};
Dr=function(V,l,I){I!=null||(I=!!(34&l));return iZN(V,l,Ngt,I,!0)};
WWW=function(V){var l=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=l[_.NN]|0;if(!X0(V,I))return V;V=new V.constructor(Dr(l,I));YJ(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,2);return V};
Zr=function(V){if(V.copyOnWrite!==A1g)return!1;var l=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l=Dr(l,l[_.NN]|0);YJ(l,2);V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=l;V.copyOnWrite=void 0;return!0};
Sb=function(V){if(!Zr(V)&&X0(V,V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.NN]|0))throw Error();};
Ru=function(V,l,I,H,T){var x=I+(T?0:-1),n=V.length-1;if(n>=1+(T?0:-1)&&x>=n){var w=V[n];if(w!=null&&typeof w==="object"&&w.constructor===Object)return w[I]=H,l}if(x<=n)return V[x]=H,l;if(H!==void 0){var N;n=((N=l)!=null?N:l=V[_.NN]|0)>>14&1023||536870912;I>=n?H!=null&&(x={},V[n+(T?0:-1)]=(x[I]=H,x)):V[x]=H}return l};
_.WY=function(V,l,I,H,T){var x=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=x[_.NN]|0;H=X0(V,n)?1:H;T=!!T||H===3;H===2&&Zr(V)&&(x=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=x[_.NN]|0);V=KVf(x,l);var w=V===Q6?7:V[_.NN]|0,N=ju3(w,n);var L=4&N?!1:!0;if(L){4&N&&(V=pZ(V),w=0,N=cY(N,n),n=Ru(x,n,l,V));for(var e=0,k=0;e<V.length;e++){var X=I(V[e]);X!=null&&(V[k++]=X)}k<e&&(V.length=k);I=(N|4)&-513;N=I&=-1025;N&=-8193}N!==w&&(KZ(V,N),2&N&&Object.freeze(V));return V=YPt(V,N,x,
n,l,H,L,T)};
YPt=function(V,l,I,H,T,x,n,w){var N=l;x===1||(x!==4?0:2&l||!(16&l)&&32&H)?bE(l)||(l|=!V.length||n&&!(8192&l)||32&H&&!(8192&l||16&l)?2:256,l!==N&&KZ(V,l),Object.freeze(V)):(x===2&&bE(l)&&(V=pZ(V),N=0,l=cY(l,H),Ru(I,H,T,V)),bE(l)||(w||(l|=16),l!==N&&KZ(V,l)));return V};
KVf=function(V,l,I){V=qE(V,l,I);return Array.isArray(V)?V:Q6};
ju3=function(V,l){2&l&&(V|=2);return V|1};
bE=function(V){return!!(2&V)&&!!(4&V)||!!(256&V)};
LVJ=function(V){return _.hB(V,!0)};
eBK=function(V,l){var I=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=I[_.NN]|0;a:{var T=H;H=X0(V,H);!H&&Zr(V)&&(I=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=I[_.NN]|0);var x=qE(I,l);V=!1;if(x==null){if(H){l=pw1();break a}x=[]}else if(x.constructor===XE)if(x.arrayState&2&&!H)x=Array.from(G2.prototype.entries.call(x));else{l=x;break a}else Array.isArray(x)?V=!!((x[_.NN]|0)&2):x=[];if(H){if(!x.length){l=pw1();break a}V||(V=!0,kJ(x))}else if(V){V=!1;H=x;H=pZ(H);for(x=0;x<
H.length;x++){var n=H[x]=pZ(H[x]);Array.isArray(n[1])&&(n[1]=kJ(n[1]))}x=H}!V&&T&32&&pyK(x);V=new XE(x,void 0,R3w,R3w);Ru(I,T,l,V);l=V}return l};
_.pQ=function(V,l,I,H){Sb(V);var T=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=T[_.NN]|0;if(I==null)return Ru(T,x,l),V;var n=I===Q6?7:I[_.NN]|0,w=n,N=bE(n),L=N||Object.isFrozen(I);N||(n=0);L||(I=pZ(I),w=0,n=cY(n,x),L=!1);n|=5;var e;N=(e=s1W(n))!=null?e:0;for(e=0;e<I.length;e++){var k=I[e],X=H(k,N);Object.is(k,X)||(L&&(I=pZ(I),w=0,n=cY(n,x),L=!1),I[e]=X)}n!==w&&(L&&(I=pZ(I),n=cY(n,x)),KZ(I,n));Ru(T,x,l,I);return V};
_.AI=function(V,l,I,H,T){Sb(V);var x=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Ru(x,x[_.NN]|0,l,(H==="0"?Number(I)===0:I===H)?void 0:I,T);return V};
_.k2t=function(V,l,I){if(l&2)throw Error();var H=So(l),T=KVf(V,I,H),x=T===Q6?7:T[_.NN]|0,n=ju3(x,l);if(2&n||bE(n)||16&n)T=pZ(T),x=0,n=cY(n,l),Ru(V,l,I,T,H);n&=-13;n!==x&&KZ(T,n);return T};
FVc=function(V){if(db){var l;return(l=V[uE])!=null?l:V[uE]=new Map}if(uE in V)return V[uE];l=new Map;Object.defineProperty(V,uE,{value:l});return l};
zBK=function(V,l,I,H,T){var x=FVc(V),n=XYJ(x,V,l,I,T);n!==H&&(n&&(l=Ru(V,l,n,void 0,T)),x.set(I,H));return l};
XYJ=function(V,l,I,H,T){var x=V.get(H);if(x!=null)return x;for(var n=x=0;n<H.length;n++){var w=H[n];qE(l,w,T)!=null&&(x!==0&&(I=Ru(l,I,x,void 0,T)),x=w)}V.set(H,x);return x};
yIW=function(V,l,I,H,T){V=qE(V,H,T,function(x){return SNN(x,I,!1,l)});
if(V!=null)return V};
tby=function(V,l,I,H,T,x,n,w){var N=X0(V,I);x=N?1:x;n=!!n||x===3;N=w&&!N;(x===2||N)&&Zr(V)&&(l=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=l[_.NN]|0);V=KVf(l,T);var L=V===Q6?7:V[_.NN]|0,e=ju3(L,I);if(w=!(4&e)){var k=V,X=I,r=!!(2&e);r&&(X|=2);for(var E=!r,D=!0,Z=0,S=0;Z<k.length;Z++){var p=SNN(k[Z],H,!1,X);if(p instanceof H){if(!r){var Vf=X0(p);E&&(E=!Vf);D&&(D=Vf)}k[S++]=p}}S<Z&&(k.length=S);e|=4;e=D?e&-8193:e|8192;e=E?e|8:e&-9}e!==L&&(KZ(V,e),2&e&&Object.freeze(V));if(N&&!(8&e||!V.length&&
(x===1||(x!==4?0:2&e||!(16&e)&&32&I)))){bE(e)&&(V=pZ(V),e=cY(e,I),I=Ru(l,I,T,V));H=V;N=e;for(L=0;L<H.length;L++)k=H[L],e=WWW(k),k!==e&&(H[L]=e);N|=8;e=N=H.length?N|8192:N&-8193;KZ(V,e)}return V=YPt(V,e,l,I,T,x,w,n)};
rIg=function(V){V==null&&(V=void 0);return V};
cY=function(V,l){return V=(2&l?V|2:V&-3)&-273};
_.G2g=function(V,l,I,H,T){Sb(V);l=_.WY(V,l,T,2,!0);var x;T=(x=s1W(l===Q6?7:l[_.NN]|0))!=null?x:0;l.push(I(H,T));return V};
Eht=function(V,l,I,H,T,x,n){Sb(V);var w=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;V=tby(V,w,w[_.NN]|0,I,l,2,!0);if(x&&n)T!=null||(T=V.length-1),vTy(V,T),V.splice(T,x),V.length||YJ(V,8192);else{if(x){if(typeof T!=="number"||T<0||T>V.length)throw Error();}else H=H!=null?H:new I;T!=void 0?V.splice(T,x,H):V.push(H);T=I=V===Q6?7:V[_.NN]|0;X0(H)?(I&=-9,V.length===1&&(I&=-8193)):I|=8192;I!==T&&KZ(V,I)}};
ohw=function(V,l){if(typeof V==="string")return new OP(RtJ(V),l);if(Array.isArray(V))return new OP(new Uint8Array(V),l);if(V.constructor===Uint8Array)return new OP(V,!1);if(V.constructor===ArrayBuffer)return V=new Uint8Array(V),new OP(V,!1);if(V.constructor===tB)return l=JIw(V)||new Uint8Array(0),new OP(l,!0,V);if(V instanceof Uint8Array)return V=V.constructor===Uint8Array?V:new Uint8Array(V.buffer,V.byteOffset,V.byteLength),new OP(V,!1);throw Error();};
_.CQ=function(){var V=function(){throw Error();};
Object.setPrototypeOf(V,V.prototype);return V};
PEK=function(V,l){var I=I===void 0?hB3:I;return new au(V,l,I)};
RBw=function(V,l,I,H,T){l=DEN(l,H);l!=null&&(I=_.ZQK(V,I),T(l,V),_.SPt(V,I))};
gg=function(V,l,I,H){var T=H[V];if(T)return T;T={};T.binaryFields=H;T.messageMetadata=UEt(H[0]);var x=H[1],n=1;x&&x.constructor===Object&&(T.extensions=x,x=H[++n],typeof x==="function"&&(T.isMessageSet=!0,Quf!=null||(Quf=x),cIf!=null||(cIf=H[n+1]),x=H[n+=2]));for(var w={};x&&Array.isArray(x)&&x.length&&typeof x[0]==="number"&&x[0]>0;){for(var N=0;N<x.length;N++)w[x[N]]=x;x=H[++n]}for(N=1;x!==void 0;){typeof x==="number"&&(N+=x,x=H[++n]);var L=void 0;if(x instanceof au)var e=x;else e=WVW,n--;x=void 0;
if((x=e)==null?0:x.$$isMsg){x=H[++n];L=H;var k=n;typeof x==="function"&&(x=x(),L[k]=x);L=x}x=H[++n];k=N+1;typeof x==="number"&&x<0&&(k-=x,x=H[++n]);for(;N<k;N++){var X=w[N];L?I(T,N,e,L,X):l(T,N,e,X)}}return H[V]=T};
qPq=function(V){return Array.isArray(V)?V[0]instanceof au?V:[bQq,V]:[V,void 0]};
DEN=function(V,l){if(V instanceof _.mV)return V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(V))return PY(V,l,!1)};
Mbc=function(V,l,I,H){var T=I.$$binaryReaderFn;V[l]=H?function(x,n,w){return T(x,n,w,H)}:T};
pYy=function(V,l,I,H,T){var x=I.$$binaryReaderFn,n,w;V[l]=function(N,L,e){return x(N,L,e,w||(w=gg(su1,Mbc,pYy,H).messageMetadata),n||(n=AIt(H)),T)}};
AIt=function(V){var l=V[uEt];if(l!=null)return l;var I=gg(su1,Mbc,pYy,V);l=I.isMessageSet?function(H,T){return Quf(H,T,I)}:function(H,T){for(var x=H[_.NN]|0;vhw(T)&&T.nextWireType_!=4;){var n=T.nextField_,w=I[n];
if(w==null){var N=I.extensions;N&&(N=N[n])&&(N=OQ1(N),N!=null&&(w=I[n]=N))}if(w==null||!w(T,H,n)){N=T;w=N.fieldCursor_;CEt(N);if(N.discardUnknownFields)var L=void 0;else{var e=N.decoder_.cursor_-w;N.decoder_.cursor_=w;L=arN(N.decoder_,e)}e=N=w=void 0;var k=H;L&&((w=(N=(e=k[y6])!=null?e:k[y6]=new gJg)[n])!=null?w:N[n]=[]).push(L)}}if(T=ABw(H))T.reviveUnknownFields=I.binaryFields[fr1];x&2048&&kJ(H);return!0};
V[uEt]=l;V[fr1]=ghy.bind(V);return l};
ghy=function(V,l,I,H){var T=this[su1],x=this[uEt],n=PY(void 0,T.messageMetadata,!1),w=ABw(V);if(w){var N=!1,L=T.extensions;if(L){T=function(E,D,Z){if(Z.length!==0)if(L[D])for(E=_.U(Z),D=E.next();!D.done;D=E.next()){D=mEt(D.value);try{N=!0,x(n,D)}finally{D.free()}}else H==null||H(V,D,Z)};
if(l==null)iQT(w,T);else if(w!=null){var e=w[l];e&&T(w,l,e)}if(N){var k=V[_.NN]|0;if(k&2&&k&4096&&(I==null||!I.reviveIntoImmutable))throw Error();var X=So(k),r=function(E,D){if(qE(V,E,X)!=null)switch(I==null?void 0:I.resolutionBehavior){case 1:return;default:throw Error();}D!=null&&(k=Ru(V,k,E,D,X));delete w[E]};
l==null?OKK(n,n[_.NN]|0,function(E,D){r(E,D)}):r(l,qE(n,l,X))}}}};
OQ1=function(V){V=qPq(V);var l=V[0].$$binaryReaderFn;if(V=V[1]){var I=AIt(V),H=gg(su1,Mbc,pYy,V).messageMetadata;return function(T,x,n){return l(T,x,n,H,I)}}return l};
V6W=function(V,l,I){V[l]=I.$$binaryWriterFn};
ICJ=function(V,l,I,H){var T,x,n=I.$$binaryWriterFn;V[l]=function(w,N,L){return n(w,N,L,x||(x=gg(lCc,V6W,ICJ,H).messageMetadata),T||(T=HdN(H)))}};
HdN=function(V){var l=V[Tpw];if(!l){var I=gg(lCc,V6W,ICJ,V);l=function(H,T){return BpK(H,T,I)};
V[Tpw]=l}return l};
BpK=function(V,l,I){OKK(V,V[_.NN]|0,function(H,T){if(T!=null){var x=xV1(I,H);x&&x(l,T,H)}});
(V=ABw(V))&&iQT(V,function(H,T,x){iE(l,l.encoder_.end());for(H=0;H<x.length;H++)iE(l,JIw(x[H])||new Uint8Array(0))})};
xV1=function(V,l){var I=V[l];if(I)return I;if(I=V.extensions)if(I=I[l]){I=qPq(I);var H=I[0].$$binaryWriterFn;if(I=I[1]){var T=HdN(I),x=gg(lCc,V6W,ICJ,I).messageMetadata;I=V.isMessageSet?cIf(x,T):function(n,w,N){return H(n,w,N,x,T)}}else I=H;
return V[l]=I}};
_.UV1=function(V,l,I){if(Array.isArray(l)){var H=l[_.NN]|0;if(H&4)return l;for(var T=0,x=0;T<l.length;T++){var n=V(l[T]);n!=null&&(l[x++]=n)}x<T&&(l.length=x);I&&(KZ(l,(H|5)&-1537),H&2&&Object.freeze(l));return l}};
_.V5=function(V,l,I){return new au(V,l,I)};
_.nng=function(V,l,I){return new au(V,l,I)};
_.lY=function(V,l,I){Ru(V,V[_.NN]|0,l,I,So(V[_.NN]|0))};
dV3=function(V,l,I){l=nJ1(l);l!=null&&(_.IO(V,I,1),V=V.encoder_,I=$Vt||($Vt=new DataView(new ArrayBuffer(8))),I.setFloat64(0,+l,!0),Ww=I.getUint32(0,!0),bZ=I.getUint32(4,!0),_.Hh(V,Ww),_.Hh(V,bZ))};
_.Uq=function(V,l,I){l=PZJ(l);if(l!=null){switch(typeof l){case "string":whc(l)}if(l!=null)switch(_.IO(V,I,0),typeof l){case "number":V=V.encoder_;qN(l);Npf(V,Ww,bZ);break;case "bigint":I=BigInt.asUintN(64,l);I=new Kxc(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));Npf(V.encoder_,I.JSC$6738_lo,I.JSC$6738_hi);break;default:I=whc(l),Npf(V.encoder_,I.JSC$6738_lo,I.JSC$6738_hi)}}};
Yqf=function(V,l,I){l=_.Iu(l);l!=null&&l!=null&&(_.IO(V,I,0),_.jO1(V.encoder_,l))};
_.eMW=function(V,l,I){Lxq(V,I,DNg(l))};
_.kft=function(V,l,I){l=ww3(l);l!=null&&(_.IO(V,I,0),V.encoder_.JSC$6740_buffer_.push(l?1:0))};
_.Xh3=function(V,l,I){l=_.LQ(l);l!=null&&Fxg(V,I,TWT(l))};
zMT=function(V,l,I,H,T){l=DEN(l,H);l!=null&&(I=_.ZQK(V,I),T(l,V),_.SPt(V,I))};
_.yVK=function(V,l,I){l=l==null||typeof l=="string"||l instanceof tB?l:void 0;l!=null&&Fxg(V,I,ohw(l,!0).buffer)};
_.t61=function(V,l,I){l=_.Iu(l);l!=null&&(l=parseInt(l,10),_.IO(V,I,0),_.jO1(V.encoder_,l))};
_.nd=function(V,l){return function(I,H){var T={treatNewDataAsImmutable:!0};H&&Object.assign(T,H);I=mEt(I,void 0,void 0,T);try{var x=new V,n=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;AIt(l)(n,I);var w=x}finally{I.free()}return w}};
_.$n=function(V){return function(l){return rVt(l,V)}};
Gfc=function(V){return function(){return rVt(this,V)}};
_.EnT=function(V){return Qa(function(l){return l instanceof V&&!X0(l)})};
_.wp=function(V){return function(l){return JVt(V,l)}};
DVq=function(V,l){return onW({child:V,origin:l||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:hMq,getPayloadCase:function(I){return I.getPayloadCase()},
createInitMessage:function(I){var H=new Kd,T=new PYc;I=_.j6(T,1,I);return _.Yn(H,5,Ld,I)}})};
e6=function(V){return{valueOf:V}.valueOf()};
Sqt=function(){var V=null;if(!ZdW)return V;try{var l=function(I){return I};
V=ZdW.createPolicy("goog#html",{createHTML:l,createScript:l,createScriptURL:l})}catch(I){}return V};
QON=function(){RMw===void 0&&(RMw=Sqt());return RMw};
_.Xj=function(V){var l=QON();V=l?l.createScriptURL(V):V;return new kn(V)};
_.tV=function(V){if(V instanceof kn)return V.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
cVW=function(V){return V.toString().indexOf("`")===-1};
Eq=function(V){return new _.rp(WxJ,V)};
oO=function(V){return V instanceof _.rp};
_.hV=function(V){if(oO(V))return V.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
Ph=function(V){return new bdf(function(l){return l.substr(0,V.length+1).toLowerCase()===V+":"})};
DC=function(V,l){l=l===void 0?qqy:l;if(oO(V))return V;for(var I=0;I<l.length;++I){var H=l[I];if(H instanceof bdf&&H.isValid(V))return Eq(V)}};
_.S6=function(V,l){l=l===void 0?qqy:l;return DC(V,l)||ZC};
RO=function(V){var l=window;if(typeof MediaSource!=="undefined"&&V instanceof MediaSource||typeof l.ManagedMediaSource!=="undefined"&&V instanceof l.ManagedMediaSource)return Eq(URL.createObjectURL(V));l=V.type;l.toLowerCase()==="application/octet-stream"?l=!0:(l=l.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),l=(l==null?void 0:l.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(l[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(l[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(l[1])||/^font\/[\w-]+$/i.test(l[1])));if(!l)throw Error("da");return Eq(URL.createObjectURL(V))};
_.ch=function(V){for(var l=_.Q5.apply(1,arguments),I=[V[0]],H=0;H<l.length;H++)I.push(String(l[H])),I.push(V[H+1]);return Eq(I.join(""))};
_.sOt=function(V){if(!M6c){a:{var l=document.createElement("a");try{l.href=V}catch(I){V=void 0;break a}V=l.protocol;V=V===":"||V===""?"https:":V}return V}try{l=new URL(V)}catch(I){return"https:"}return l.protocol};
_.Wh=function(V){V instanceof _.rp?V=_.hV(V):V=phK.test(V)?V:void 0;return V};
bY=function(V,l){l=_.Wh(l);l!==void 0&&(V.href=l)};
sq=function(V){var l=QON();V=l?l.createHTML(V):V;return new MV(V)};
pd=function(V){if(V instanceof MV)return V.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.AV=function(V,l){V.src=_.tV(l).toString()};
AVw=function(V,l){V.setAttribute("sandbox","");for(var I=0;I<l.length;I++)V.sandbox.supports&&!V.sandbox.supports(l[I])||V.sandbox.add(l[I])};
_.vnt=function(V,l,I){V.removeAttribute("srcdoc");switch(l){case 0:if(I instanceof kn)throw new ujN("TrustedResourceUrl",0);AVw(V,[]);l=_.Wh(I);l!==void 0&&(V.src=l);break;case 1:if(!(I instanceof kn))throw new ujN(typeof I,1);AVw(V,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.AV(V,I);break;case 2:if(I instanceof kn)throw new ujN("TrustedResourceUrl",2);AVw(V,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
l=_.Wh(I);l!==void 0&&(V.src=l);break;default:_.AB(l)}};
_.uY=function(V,l,I,H){l=_.Wh(l);return l!==void 0?V.open(l,I,H):null};
_.vh=function(V){V=V===void 0?document:V;var l,I;V=(I=(l=V).querySelector)==null?void 0:I.call(l,"script[nonce]");return V==null?"":V.nonce||V.getAttribute("nonce")||""};
_.aO=function(V){var l=QON();V=l?l.createScript(V):V;return new _.Cd(V)};
Odg=function(V){if(V instanceof _.Cd)return V.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
CY1=function(V){var l=_.vh(V.ownerDocument);l&&V.setAttribute("nonce",l)};
_.fd=function(V,l){V.textContent=Odg(l);CY1(V)};
_.gp=function(V,l){V.src=_.tV(l);CY1(V)};
_.iY=function(V,l){if(V.nodeType===1&&/^(script|style)$/i.test(V.tagName))throw Error("da");V.innerHTML=pd(l)};
_.VJ=function(V,l,I,H){if(V.length===0)throw Error("da");V=V.map(function(x){if(x instanceof aCf)x=x.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return x});
var T=I.toLowerCase();if(V.every(function(x){return T.indexOf(x)!==0}))throw Error("ea`"+I);
l.setAttribute(I,H)};
_.lw=function(V,l,I){if(l instanceof kn)V.href=_.tV(l).toString(),V.rel=I;else{if(fCt.indexOf(I)===-1)throw Error("fa`"+I);l=_.Wh(l);l!==void 0&&(V.href=l,V.rel=I)}};
gny=function(V){return"function"==typeof _.II&&V instanceof _.II};
_.mV3=function(V){if(gny(V))return V.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.idK=function(V,l){l=_.Wh(l);l!==void 0&&(V.href=l)};
VdK=function(V,l){V&&(l=V.indexOf(l),0<=l&&V.splice(l,1))};
Hk=function(V){return typeof V==="function"};
lKW=function(V){return V instanceof TL||V&&"closed"in V&&Hk(V.remove)&&Hk(V.add)&&Hk(V.unsubscribe)};
Bk=function(){};
xE=function(V){IKT(function(){throw V;})};
U9=function(V){return V};
nk=function(){return Hk1(_.Q5.apply(0,arguments))};
Hk1=function(V){return V.length===0?U9:V.length===1?V[0]:function(l){return V.reduce(function(I,H){return H(I)},l)}};
T4T=function(V){var l;return(l=V!=null?V:void 0)!=null?l:Promise};
B4c=function(V,l){return new $E(function(I){var H=0;return l.schedule(function(){H===V.length?I.complete():(I.next(V[H++]),I.closed||this.schedule())})})};
x01=function(V,l){if(!V)throw Error("ga");return new $E(function(I){var H=new TL;H.add(l.schedule(function(){var T=V[Symbol.asyncIterator]();H.add(l.schedule(function(){var x=this;T.next().then(function(n){n.done?I.complete():(I.next(n.value),x.schedule())})}))}));
return H})};
U0y=function(V,l,I){l=l.schedule(function(){try{I.call(this)}catch(H){V.error(H)}},0);
V.add(l)};
$0w=function(V,l){return new $E(function(I){var H;I.add(l.schedule(function(){H=V[nEt]();U0y(I,l,function(){var T=H.next(),x=T.value;T.done?I.complete():(I.next(x),this.schedule())})}));
return function(){var T;return Hk((T=H)==null?void 0:T.return)&&H.return()}})};
d0w=function(V,l){return new $E(function(I){var H=new TL;H.add(l.schedule(function(){var T=V[d4]();H.add(T.subscribe({next:function(x){H.add(l.schedule(function(){return I.next(x)}))},
error:function(x){H.add(l.schedule(function(){return I.error(x)}))},
complete:function(){H.add(l.schedule(function(){return I.complete()}))}}))}));
return H})};
wkK=function(V,l){return new $E(function(I){return l.schedule(function(){return V.then(function(H){I.add(l.schedule(function(){I.next(H);I.add(l.schedule(function(){return I.complete()}))}))},function(H){I.add(l.schedule(function(){return I.error(H)}))})})})};
N4J=function(V){return new TypeError("ha`"+(V!==null&&typeof V==="object"?"an invalid object":"'"+V+"'"))};
jIf=function(V,l){if(V!=null){if(Hk(V[d4]))return d0w(V,l);if(KYN(V))return B4c(V,l);if(Hk(V==null?void 0:V.then))return wkK(V,l);if(Symbol.asyncIterator&&Hk(V==null?void 0:V[Symbol.asyncIterator]))return x01(V,l);if(Hk(V==null?void 0:V[nEt]))return $0w(V,l)}throw N4J(V);};
N0=function(V,l){return l?jIf(V,l):w4(V)};
w4=function(V){if(V instanceof $E)return V;if(V!=null){if(Hk(V[d4]))return Y93(V);if(KYN(V))return LYT(V);if(Hk(V==null?void 0:V.then))return e7w(V);if(Symbol.asyncIterator&&Hk(V==null?void 0:V[Symbol.asyncIterator]))return kL1(V);if(Hk(V==null?void 0:V[nEt]))return FY1(V)}throw N4J(V);};
Y93=function(V){return new $E(function(l){var I=V[d4]();if(Hk(I.subscribe))return I.subscribe(l);throw new TypeError("ia");})};
LYT=function(V){return new $E(function(l){for(var I=0;I<V.length&&!l.closed;I++)l.next(V[I]);l.complete()})};
e7w=function(V){return new $E(function(l){V.then(function(I){l.closed||(l.next(I),l.complete())},function(I){return l.error(I)}).then(null,xE)})};
FY1=function(V){return new $E(function(l){for(var I=V[nEt]();!l.closed;){var H=I.next(),T=H.value;H.done?l.complete():l.next(T)}return function(){return Hk(I==null?void 0:I.return)&&I.return()}})};
kL1=function(V){return new $E(function(l){Xkw(V,l).catch(function(I){return l.error(I)})})};
Xkw=function(V,l){var I,H,T,x,n,w;return _.d(function(N){switch(N.nextAddress){case 1:_.jd(N,2,3);var L=V[Symbol.asyncIterator];x=L!==void 0?L.call(V):new z7c(_.U(V));case 5:return _.K(N,x.next(),8);case 8:H=N.yieldResult;if(H.done){N.jumpTo(3);break}n=H.value;l.next(n);N.jumpTo(5);break;case 3:_.YE(N);_.Lk(N,9);if(!H||H.done||!(T=x.return)){N.jumpTo(9);break}return _.K(N,T.call(x),9);case 9:_.YE(N,0,0,1);if(I)throw I.error;_.ed(N,10,1);break;case 10:_.ed(N,4);break;case 2:w=_.kE(N);I={error:w};N.jumpTo(3);
break;case 4:l.complete(),_.FU(N)}})};
ye1=function(V,l){return l?B4c(V,l):LYT(V)};
tdf=function(V){return Hk(V[V.length-1])?V.pop():void 0};
XU=function(V){var l=V[V.length-1];return l&&Hk(l.schedule)?V.pop():void 0};
zL=function(){var V=_.Q5.apply(0,arguments),l=XU(V);return l?B4c(V,l):ye1(V)};
yJ=function(V){var l=Hk(V)?V:function(){return V};
return new $E(function(I){return I.error(l())})};
te=function(V){return function(l){if(Hk(l==null?void 0:l.lift))return l.lift(function(I){try{return V(I,this)}catch(H){this.error(H)}});
throw new TypeError("ja");}};
E9=function(){return te(function(V,l){var I=null;V._refCount++;var H=new r4(l,void 0,void 0,void 0,function(){if(!V||V._refCount<=0||0<--V._refCount)I=null;else{var T=V._connection,x=I;I=null;!T||x&&T!==x||T.unsubscribe();l.unsubscribe()}});
V.subscribe(H);H.closed||(I=V.connect())})};
GLK=function(){var V=re3;var l=l===void 0?0:l;return te(function(I,H){H.add(V.schedule(function(){return I.subscribe(H)},l))})};
Je=function(V){return te(function(l,I){var H=0;l.subscribe(new r4(I,function(T){I.next(V.call(void 0,T,H++))}))})};
Jeg=function(V){return Je(function(l){return EEy(l)?V.apply(null,_.oI(l)):V(l)})};
Zkw=function(V){if(V.length===1){var l=V[0];if(oE1(l))return{args:l,keys:null};if(l&&typeof l==="object"&&h7T(l)===PwN)return V=D0W(l),{args:V.map(function(I){return l[I]}),
keys:V}}return{args:V,keys:null}};
he=function(){var V=_.Q5.apply(0,arguments),l=XU(V),I=tdf(V);V=Zkw(V);var H=V.args,T=V.keys;if(H.length===0)return N0([],l);l=new $E(S9w(H,l,T?function(x){for(var n={},w=0;w<x.length;w++)n[T[w]]=x[w];return n}:U9));
return I?l.pipe(Jeg(I)):l};
S9w=function(V,l,I){I=I===void 0?U9:I;return function(H){R7c(l,function(){for(var T=V.length,x=Array(T),n=T,w=V.map(function(){return!1}),N=!0,L={i$jscomp$260:0};L.i$jscomp$260<T;L={i$jscomp$260:L.i$jscomp$260},L.i$jscomp$260++)R7c(l,function(e){return function(){N0(V[e.i$jscomp$260],l).subscribe(new Pk(H,function(k){x[e.i$jscomp$260]=k;
N&&(w[e.i$jscomp$260]=!0,N=!w.every(U9));N||H.next(I(x.slice()))},function(){return--n===0}))}}(L),H)},H)}};
R7c=function(V,l,I){V?I.add(V.schedule(l)):l()};
QI3=function(V,l,I,H){var T=[],x=0,n=0,w=!1,N=function(L){x++;w4(I(L,n++)).subscribe(new r4(l,function(e){l.next(e)},void 0,function(){x--;
for(var e={};T.length&&x<H;e={bufferedValue:void 0})e.bufferedValue=T.shift(),N(e.bufferedValue);!w||T.length||x||l.complete()}))};
V.subscribe(new r4(l,function(L){return x<H?N(L):T.push(L)},void 0,function(){w=!0;
!w||T.length||x||l.complete()}));
return function(){T=null}};
DK=function(V,l){var I=I===void 0?Infinity:I;if(Hk(l))return DK(function(H,T){return Je(function(x,n){return l(H,x,T,n)})(w4(V(H,T)))},I);
typeof l==="number"&&(I=l);return te(function(H,T){return QI3(H,T,V,I)})};
cew=function(V){V=V===void 0?Infinity:V;return DK(U9,V)};
WYJ=function(){var V=_.Q5.apply(0,arguments);return cew(1)(ye1(V,XU(V)))};
bk1=function(V){return new $E(function(l){w4(V()).subscribe(l)})};
ZK=function(V,l,I){if(Hk(I)){var H=I;I=void 0}if(H)return ZK(V,l,I).pipe(Jeg(H));H=_.U(Hk(V.addEventListener)&&Hk(V.removeEventListener)?q9g.map(function(n){return function(w){return V[n](l,w,I)}}):Hk(V.addListener)&&Hk(V.removeListener)?Mdf.map(sIt(V,l)):Hk(V.on)&&Hk(V.off)?pkJ.map(sIt(V,l)):[]);
var T=H.next().value,x=H.next().value;return!T&&KYN(V)?DK(function(n){return ZK(n,l,I)})(ye1(V)):new $E(function(n){if(!T)throw new TypeError("ka");
var w=function(){var N=_.Q5.apply(0,arguments);return n.next(1<N.length?N:N[0])};
T(w);return function(){return x(w)}})};
sIt=function(V,l){return function(I){return function(H){return V[I](l,H)}}};
RI=function(){var V=_.Q5.apply(0,arguments),l=XU(V);var I=typeof V[V.length-1]==="number"?V.pop():Infinity;return V.length?V.length===1?w4(V[0]):cew(I)(ye1(V,l)):Sd};
uUq=function(V){return V.length===1&&AeK(V[0])?V[0]:V};
vEJ=function(){var V=uUq(_.Q5.apply(0,arguments));return te(function(l,I){var H=[l].concat(_.oI(V)),T=function(){if(!I.closed)if(H.length>0){try{var x=w4(H.shift())}catch(w){T();return}var n=new r4(I,void 0,Bk,Bk);I.add(x.subscribe(n));n.add(T)}else I.complete()};
T()})};
QJ=function(V){return te(function(l,I){var H=0;l.subscribe(new r4(I,function(T){return V.call(void 0,T,H++)&&I.next(T)}))})};
Cwc=function(){var V=_.Q5.apply(0,arguments);V=uUq(V);return V.length===1?w4(V[0]):new $E(Okc(V))};
Okc=function(V){return function(l){for(var I=[],H={i$jscomp$263:0};I&&!l.closed&&H.i$jscomp$263<V.length;H={i$jscomp$263:H.i$jscomp$263},H.i$jscomp$263++)I.push(w4(V[H.i$jscomp$263]).subscribe(new r4(l,function(T){return function(x){if(I){for(var n=0;n<I.length;n++)n!==T.i$jscomp$263&&I[n].unsubscribe();I=null}l.next(x)}}(H))))}};
aKc=function(){var V=_.Q5.apply(0,arguments),l=tdf(V),I=uUq(V);return I.length?new $E(function(H){var T=I.map(function(){return[]}),x=I.map(function(){return!1});
H.add(function(){T=x=null});
for(var n={sourceIndex$jscomp$1:0};!H.closed&&n.sourceIndex$jscomp$1<I.length;n={sourceIndex$jscomp$1:n.sourceIndex$jscomp$1},n.sourceIndex$jscomp$1++)w4(I[n.sourceIndex$jscomp$1]).subscribe(new r4(H,function(w){return function(N){T[w.sourceIndex$jscomp$1].push(N);T.every(function(L){return L.length})&&(N=T.map(function(L){return L.shift()}),H.next(l?l.apply(null,_.oI(N)):N),T.some(function(L,e){return!L.length&&x[e]})&&H.complete())}}(n),void 0,function(w){return function(){x[w.sourceIndex$jscomp$1]=
!0;
!T[w.sourceIndex$jscomp$1].length&&H.complete()}}(n)));
return function(){T=x=null}}):Sd};
fKq=function(V){var l,I,H;return!!V&&typeof V.active==="boolean"&&typeof((l=V.clock)==null?void 0:l.now)==="function"&&((I=V.clock)==null?void 0:I.timeline)!==void 0&&!((H=V.lastMeasurement)==null||!H.timestamp)&&typeof V.equivalentTo==="function"&&typeof V.extrapolateToNow==="function"&&typeof V.extrapolateToTime==="function"&&typeof V.map==="function"&&typeof V.joinWith==="function"};
gEt=function(V){function l(I){return typeof I==="boolean"||typeof I==="string"||typeof I==="number"||I===void 0||I===null}
return l(V)?!0:Array.isArray(V)?V.every(l):typeof V==="object"?Object.keys(V).every(function(I){return typeof I==="string"})&&Object.values(V).every(function(I){return Array.isArray(I)?I.every(l):l(I)}):!1};
m0t=function(V){if(gEt(V))return V;if(fKq(V))return{lastMeasurement:{value:m0t(V.lastMeasurement.value),timestamp:ck(V.lastMeasurement.timestamp,new Wk(0,V.lastMeasurement.timestamp.timeline))},active:V.active};try{return JSON.parse(JSON.stringify(V))}catch(l){}return String(V)};
bw=function(V,l){return function(I){return new $E(function(H){return I.subscribe(function(T){V.timeExecution(l,function(){H.next(T)})()},function(T){V.timeExecution(l,function(){H.error(T)})()},function(){V.timeExecution(l,function(){H.complete()})()})})}};
iky=function(V,l){var I=!1;return new $E(function(H){var T=V.setTimeout(function(){I=!0;H.next(!0);H.complete()},l);
return function(){I||V.clearTimeout(T)}})};
VPc=function(V){V=V.global;if(V.fetchLater)return V.fetchLater.bind(V)};
q0=function(V){return te(function(l,I){var H=null,T=!1,x;H=l.subscribe(new r4(I,void 0,function(n){x=w4(V(n,q0(V)(l)));H?(H.unsubscribe(),H=null,x.subscribe(I)):T=!0}));
T&&(H.unsubscribe(),H=null,x.subscribe(I))})};
l3T=function(V,l,I){return function(H,T){var x=I,n=l,w=0;H.subscribe(new r4(T,function(N){var L=w++;n=x?V(n,N,L):(x=!0,N);T.next(n)},void 0,void 0))}};
I3W=function(V){V=V===void 0?null:V;return te(function(l,I){var H=!1;l.subscribe(new r4(I,function(T){H=!0;I.next(T)},void 0,function(){H||I.next(V);
I.complete()}))})};
M0=function(){return te(function(V,l){V.subscribe(new r4(l,Bk))})};
s9=function(V){return te(function(l,I){l.subscribe(new r4(I,function(){return I.next(V)}))})};
pk=function(V){return V<=0?function(){return Sd}:te(function(l,I){var H=0;
l.subscribe(new r4(I,function(T){++H<=V&&(I.next(T),V<=H&&I.complete())}))})};
Ae=function(V){var l=l===void 0?U9:l;var I;V=(I=V)!=null?I:HGK;return te(function(H,T){var x,n=!0;H.subscribe(new r4(T,function(w){var N=l(w);if(n||!V(x,N))n=!1,x=N,T.next(w)}))})};
HGK=function(V,l){return V===l};
B$N=function(V){V=V===void 0?T$w:V;return te(function(l,I){var H=!1;l.subscribe(new r4(I,function(T){H=!0;I.next(T)},void 0,function(){return H?I.complete():I.error(V())}))})};
T$w=function(){return new x3w};
uw=function(){var V=_.Q5.apply(0,arguments);return function(l){return WYJ(l,zL.apply(null,_.oI(V)))}};
U3K=function(V){return te(function(l,I){var H=0;l.subscribe(new r4(I,function(T){V.call(void 0,T,H++,l)||(I.next(!1),I.complete())},void 0,function(){I.next(!0);
I.complete()}))})};
npT=function(){return te(function(V,l){var I=[];V.subscribe(new r4(l,function(H){I.push(H);1<I.length&&I.shift()},void 0,function(){for(var H=_.U(I),T=H.next();!T.done;T=H.next())l.next(T.value);
l.complete()},function(){I=null}))})};
$3N=function(V,l){var I=arguments.length>=2;return function(H){return H.pipe(V?QJ(function(T,x){return V(T,x,H)}):U9,npT(),I?I3W(l):B$N(function(){return new x3w}))}};
aI=function(V){var l=Hk(V)?V:function(){return V};
return Hk()?te(function(I,H){var T=l();(void 0)(T).subscribe(H).add(I.subscribe(T))}):function(I){var H=new O9(I,l);
Hk(I==null?void 0:I.lift)&&(H.lift=I.lift);H.source=I;H.subjectFactory=l;return H}};
g4=function(V){var l=new fk(V,void 0,void 0);return function(I){return aI(function(){return l})(I)}};
mY=function(V,l){return te(l3T(V,l,arguments.length>=2))};
iw=function(){var V=_.Q5.apply(0,arguments),l=XU(V);return te(function(I,H){(l?WYJ(V,I,l):WYJ(V,I)).subscribe(H)})};
Vl=function(V){return te(function(l,I){var H=null,T=0,x=!1;l.subscribe(new r4(I,function(n){var w;(w=H)==null||w.unsubscribe();w=T++;w4(V(n,w)).subscribe(H=new r4(I,function(N){return I.next(N)},void 0,function(){H=null;
x&&!H&&I.complete()}))},void 0,function(){(x=!0,!H)&&I.complete()}))})};
l4=function(V,l){l=l===void 0?!1:l;return te(function(I,H){var T=0;I.subscribe(new r4(H,function(x){var n=V(x,T++);(n||l)&&H.next(x);!n&&H.complete()}))})};
d3f=function(V,l,I){var H=Hk(V)||l||I?{next:V,error:l,complete:I}:V;return H?te(function(T,x){T.subscribe(new r4(x,function(n){var w;(w=H.next)==null||w.call(H,n);x.next(n)},function(n){var w;
(w=H.error)==null||w.call(H,n);x.error(n)},function(){var n;
(n=H.complete)==null||n.call(H);x.complete()}))}):U9};
wNT=function(){var V=_.Q5.apply(0,arguments),l=tdf(V);return te(function(I,H){for(var T=V.length,x=Array(T),n=V.map(function(){return!1}),w=!1,N={i$jscomp$273:0};N.i$jscomp$273<T;N={i$jscomp$273:N.i$jscomp$273},N.i$jscomp$273++)w4(V[N.i$jscomp$273]).subscribe(new r4(H,function(L){return function(e){x[L.i$jscomp$273]=e;
w||n[L.i$jscomp$273]||(n[L.i$jscomp$273]=!0,(w=n.every(U9))&&(n=null))}}(N),void 0,Bk));
I.subscribe(new r4(H,function(L){w&&(L=[L].concat(_.oI(x)),H.next(l?l.apply(null,_.oI(L)):L))}))})};
N$t=function(V){var l=[],I=0,H;for(H in V)l[I++]=H;return l};
K2c=function(V,l){for(var I in V)if(V[I]==l)return!0;return!1};
jgJ=function(V,l,I){for(var H in V)if(l.call(I,V[H],H,V))return H};
YLf=function(V){if(!V||typeof V!=="object")return V;if(typeof V.clone==="function")return V.clone();if(typeof Map!=="undefined"&&V instanceof Map)return new Map(V);if(typeof Set!=="undefined"&&V instanceof Set)return new Set(V);if(V instanceof Date)return new Date(V.getTime());var l=Array.isArray(V)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(V)||V instanceof DataView?{}:new V.constructor(V.length),I;for(I in V)l[I]=YLf(V[I]);return l};
L2t=function(V){var l=arguments.length;if(l==1&&Array.isArray(arguments[0]))return L2t.apply(null,arguments[0]);if(l%2)throw Error("oa");for(var I={},H=0;H<l;H+=2)I[arguments[H]]=arguments[H+1];return I};
kPW=function(V){var l=arguments.length;if(l==1&&Array.isArray(arguments[0]))return kPW.apply(null,arguments[0]);for(var I={},H=0;H<l;H++)I[arguments[H]]=!0;return I};
_.Ig=function(V){return new aCf(V[0].toLowerCase())};
F2y=function(V){try{return new URL(V,window.document.baseURI)}catch(l){return new URL("about:invalid")}};
XN1=function(V,l){var I=l.createRange();I.selectNode(l.body);V=sq(V);return I.createContextualFragment(pd(V))};
zPc=function(V){V=V.nodeName;return typeof V==="string"?V:"FORM"};
yHW=function(V){V=V.nodeType;return V===1||typeof V!=="number"};
HN=function(V,l,I){V.setAttribute(l,I)};
tPc=function(V){return V.parts.map(function(l){var I=l.descriptor;return""+l.url+(I?" "+I:"")}).join(" , ")};
_.TP=function(V){var l=_.Q5.apply(1,arguments);if(l.length===0)return _.Xj(V[0]);for(var I=V[0],H=0;H<l.length;H++)I+=encodeURIComponent(l[H])+V[H+1];return _.Xj(I)};
_.UL=function(V,l){V=_.tV(V).toString();var I=V.split(/[?#]/),H=/[?]/.test(V)?"?"+I[1]:"";return rH1(I[0],H,/[#]/.test(V)?"#"+(H?I[2]:I[1]):"",l)};
rH1=function(V,l,I,H){function T(n,w){n!=null&&(Array.isArray(n)?n.forEach(function(N){return T(N,w)}):(l+=x+encodeURIComponent(w)+"="+encodeURIComponent(n),x="&"))}
var x=l.length?"&":"?";H.constructor===Object&&(H=Object.entries(H));Array.isArray(H)?H.forEach(function(n){return T(n[1],n[0])}):H.forEach(T);
return _.Xj(V+l+I)};
GPt=function(V){V=V.global;if(V.PendingGetBeacon)return V.PendingGetBeacon};
$p=function(V){return function(l){return l.pipe(Ept(V,aI(new nG)))}};
d$=function(V){return function(l){return l.pipe(Ept(V,g4(1)))}};
Ept=function(V,l){function I(H){return new $E(function(T){return H.subscribe(function(x){w$(V,function(){return void T.next(x)},3)},function(x){w$(V,function(){return void T.error(x)},3)},function(){w$(V,function(){return void T.complete()},3)})})}
return nk(I,GLK(),l,E9(),I)};
hPf=function(V){var l=JHW(V);return l===null?new N3(null):l.pipe(Je(function(I){I=I.serialize();if(opc)I=_.nK.btoa(I);else{for(var H=[],T=0,x=0;x<I.length;x++){var n=I.charCodeAt(x);n>255&&(H[T++]=n&255,n>>=8);H[T++]=n}I=_.rg(H)}return I}),pk(1),d$(V.queue))};
P4t=function(V){var l=l===void 0?{}:l;if(typeof Event==="function")return new Event(V,l);if(typeof document!=="undefined"){var I=document.createEvent("CustomEvent");I.initCustomEvent(V,l.bubbles||!1,l.cancelable||!1,l.detail);return I}throw Error();};
D3g=function(V){return typeof V==="string"?document.getElementById(V):V};
SLf=function(V){var l=!1;l=l===void 0?!1:l;if(V.tagName==="IMG"){if(V.complete&&(!V.naturalWidth||!V.naturalHeight))return!0;var I;if(l&&((I=V.style)==null?void 0:I.display)==="none")return!0}var H,T;return ZGy.test((H=V.getAttribute("width"))!=null?H:"")&&ZGy.test((T=V.getAttribute("height"))!=null?T:"")};
RP1=function(V,l){if(V.tagName==="IMG")return V.naturalWidth&&V.naturalHeight?!0:!1;try{if(V.readyState)var I=V.readyState;else{var H,T;I=(H=V.contentWindow)==null?void 0:(T=H.document)==null?void 0:T.readyState}return I==="complete"}catch(x){return l===void 0?!1:l}};
Qgq=function(V){V||(V=function(l,I,H){l.addEventListener(I,H)});
return V};
qLt=function(V,l){var I=cHf();I=I===void 0?new W2t:I;if(V=D3g(V)){var H=Qgq(H);for(var T=!1,x=function(Z){T||(T=!0,l(Z))},n,w=2,N=0;N<bG1.length;++N)if(bG1[N]===V.tagName){w=3;
n=[V];break}n||(n=V.querySelectorAll(bG1.join(",")));var L=0,e=0,k=!0,X=V=!1;N={};for(var r=0;r<n.length;N={isImg:void 0},r++){var E=n[r];if(!SLf(E))if(N.isImg=E.tagName==="IMG",RP1(E,I.crossDomainLoadedDefault))V=!0,N.isImg&&(k=!0);else{L++;var D=function(Z){return function(S){L--;!L&&k&&x(w);Z.isImg&&(S=S&&S.type==="error",e--,S||(k=!0),!e&&X&&k&&x(w))}}(N);
H(E,"load",D);N.isImg&&(e++,H(E,"error",D))}}e===0&&(k=!0);n=null;n=_.nK.document.readyState==="complete";if(L===0&&!V&&n)w=5;else if(L||!V){H(_.nK,"load",function(){!I.pendingImagesBlockLoad||!e&&k?x(4):X=!0});
return}x(w)}};
MPt=function(V,l,I){if(V)for(var H=0;V!=null&&H<500&&!I(V);++H)V=l(V)};
sgt=function(V,l){MPt(V,function(I){try{return I===I.parent?null:I.parent}catch(H){}return null},l)};
pNK=function(V,l){if(V.tagName=="IFRAME")l(V);else{V=V.querySelectorAll("IFRAME");for(var I=0;I<V.length&&!l(V[I]);++I);}};
AH3=function(V){return(V=V.ownerDocument)&&(V.parentWindow||V.defaultView)||null};
umK=function(V,l,I){try{var H=JSON.parse(I.data)}catch(n){}if(typeof H==="object"&&H&&H.type==="creativeLoad"){var T=AH3(V);if(I.source&&T){var x;sgt(I.source,function(n){try{if(n.parent===T)return x=n,!0}catch(w){}});
x&&pNK(V,function(n){if(n.contentWindow===x)return l(H),!0})}}};
vpf=function(V){return typeof V==="string"?document.getElementById(V):V};
f3t=function(){var V={};return V[0]=_.TP(OGN,"current"),V[1]=_.TP(C4t),V[2]=_.TP(a3t),V};
KG=function(V,l){return V.left===l.left&&V.top===l.top&&V.width===l.width&&V.height===l.height};
gpt=function(V,l){return{left:Math.max(V.left,l.left),top:Math.max(V.top,l.top),width:Math.max(0,Math.min(V.left+V.width,l.left+l.width)-Math.max(V.left,l.left)),height:Math.max(0,Math.min(V.top+V.height,l.top+l.height)-Math.max(V.top,l.top))}};
m3t=function(V,l){return{left:Math.round(V.left+l.x),top:Math.round(V.top+l.y),width:V.width,height:V.height}};
jP=function(V,l,I,H){this.top=V;this.right=l;this.bottom=I;this.left=H};
iGf=function(V,l,I){if(V&&l!==null&&l!=l.top){if(!l.top)return new _.Yp(-12245933,-12245933);l=l.top}try{return(I===void 0?0:I)?(new _.Yp(l.innerWidth,l.innerHeight)).round():_.LG(l).round()}catch(H){return new _.Yp(-12245933,-12245933)}};
Vkt=function(V,l,I){try{if(V){if(!l.top)return new jP(-12245933,-12245933,-12245933,-12245933);l=l.top}var H=iGf(V,l,I),T=H.height,x=H.width;if(x===-12245933)return new jP(x,x,x,x);var n=eP(kp(l.document)),w=n.x,N=n.y;return new jP(N,w+x,N+T,w)}catch(L){return new jP(-12245933,-12245933,-12245933,-12245933)}};
llW=function(V){var l;return(l=V.google_tag_data)!=null?l:V.google_tag_data={}};
Ilf=function(V){var l,I;return typeof((l=V.navigator)==null?void 0:(I=l.userAgentData)==null?void 0:I.getHighEntropyValues)==="function"};
To1=function(V){if(!Ilf(V))return null;var l=llW(V);if(l.uach_promise)return l.uach_promise;V=V.navigator.userAgentData.getHighEntropyValues(HS1).then(function(I){l.uach!=null||(l.uach=I);return I});
return l.uach_promise=V};
LFq=function(V){var l;return BoK(xxf(Uxf(nwW($xJ(dxq(wvJ(No1(KFW(new j8T,V.architecture||""),V.bitness||""),V.mobile||!1),V.model||""),V.platform||""),V.platformVersion||""),V.uaFullVersion||""),((l=V.fullVersionList)==null?void 0:l.map(function(I){var H=new YXt;H=_.Fm(H,1,I.brand);return _.Fm(H,2,I.version)}))||[]),V.wow64||!1)};
eTJ=function(V){var l,I;return(I=(l=To1(V))==null?void 0:l.then(function(H){return LFq(H)}))!=null?I:null};
kNf=function(V,l){return new $E(function(I){var H=!1,T=Array(l.length);T.fill(void 0);var x=new Set,n=new Set,w=function(k,X){V.running?(T[X]=k,x.add(X),H||(H=!0,w$(V,function(){H=!1;I.next(_.uN(T))},1))):I.error(new Xm(X))},N=function(k,X){n.add(X);
x.add(X);w$(V,function(){I.error(k)},1)},L=function(k){n.add(k);
w$(V,function(){n.size===l.length&&I.complete()},1)},e=l.map(function(k,X){return k.subscribe(function(r){return void w(r,X)},function(r){return void N(r,X)},function(){return void L(X)})});
return function(){e.forEach(function(k){return void k.unsubscribe()})}})};
zTf=function(V,l,I){function H(){if(l.debugChannel){var Z=l.debugChannel,S=Z.next;var p={creativeId:l.debugNames.getName(I),requiredSignals:T,signals:Object.assign({},x),hasPrematurelyCompleted:n,errorMessage:w,erroredSignalKey:N};p={specMajor:2,specMinor:0,specPatch:0,timestamp:ck(l.timeProvider.now(),new Wk(0,l.timeProvider.timeline)),instanceId:l.debugNames.getName(l.symbol),creativeState:p};S.call(Z,p)}}
for(var T=Object.keys(V),x={},n=!1,w=null,N=null,L={},e=new Set,k=[],X=[],r=_.U(T),E=r.next(),D={};!E.done;D={key$jscomp$372:void 0},E=r.next())D.key$jscomp$372=E.value,E=V[D.key$jscomp$372],E instanceof N3?(L[D.key$jscomp$372]=E.value,e.add(D.key$jscomp$372),l.debugChannel&&(x[String(D.key$jscomp$372)]=m0t(E.value))):(E=E.pipe(Ae(function(Z,S){return fKq(Z)||fKq(S)?!1:Z===S}),Je(function(Z){return function(S){l.debugChannel&&(x[String(Z.key$jscomp$372)]=m0t(S),H());
var p={};return p[Z.key$jscomp$372]=S,p}}(D)),q0(function(Z){return function(S){if(S instanceof Xm)throw new FFq(String(Z.key$jscomp$372));
throw S;}}(D)),d3f(function(Z){return function(){e.add(Z.key$jscomp$372)}}(D),function(Z){return function(S){N=String(Z.key$jscomp$372);
w=String(S);H()}}(D),function(Z){return function(){e.has(Z.key$jscomp$372)||(n=!0,H())}}(D))),X.push(D.key$jscomp$372),k.push(E));
(V=Object.keys(x).length>0)&&H();r=kNf(l.queue,k).pipe(q0(function(Z){if(Z instanceof Xm)throw new Xvt(String(X[Z.inputObservableIndex]));throw Z;}),Je(function(Z){return Object.freeze(Object.assign.apply(Object,[{},
L].concat(_.oI(Z))))}));
return(k=k.length>0)&&V?RI(zL(Object.freeze(L)),r):k?r:zL(Object.freeze(L))};
yK1=function(V,l,I,H,T){return V.performanceMonitor.timeExecution.bind(V.performanceMonitor)(733,function(){var x={};try{return l.pipe(q0(function(n){H(Object.assign({},x,{error:n}));return Sd}),DK(function(n){try{var w=I(V,n)}catch(L){return H(Object.assign({},x,{error:L instanceof Error?L:String(L)})),Sd}var N={};
return zTf(w,V,n.symbol).pipe(d3f(function(L){N=L}),g4(1),E9()).pipe(T,q0(function(L){H(Object.assign({},N,{error:L}));
return Sd}),uw(void 0),Je(function(){return!0}))})).pipe(mY(function(n){return n+1},0),q0(function(n){H(Object.assign({},x,{error:n}));
return Sd}))}catch(n){return H(Object.assign({},x,{error:n})),Sd}})()};
zP=function(V){var l=new Map;if(typeof V!=="object"||V===null)return l;Object.values(V).forEach(function(I){I&&typeof I.extrapolateToNow==="function"&&(l.has(I.clock.timeline)||l.set(I.clock.timeline,I.clock.now()))});
return l};
tkg=function(V,l){return typeof V==="string"?encodeURIComponent(V):typeof V==="number"?String(V):Array.isArray(V)?V.map(function(I){return tkg(I,l)}).join(","):V instanceof Wk?V.toString():V&&typeof V.extrapolateToNow==="function"?tkg(V.extrapolateUsingTimestampMap(l).value,l):V===!0?"1":V===!1?"0":V===void 0||V===null?null:V instanceof rKW?GNJ(V):[V.top,
V.left,V.top+V.height,V.left+V.width].join()};
Eww=function(V,l){V=Object.entries(V).map(function(I){var H=_.U(I);I=H.next().value;H=H.next().value;H=tkg(H,l);return H===null?"":I+"="+H}).filter(function(I){return I!==""});
return V.length?V.join("&"):""};
hT3=function(V,l){var I=JKf,H=owf;l=l===void 0?.01:l;return function(T){l>0&&Math.random()<=l&&(V.global.HTMLFencedFrameElement&&V.global.fence&&typeof V.global.fence.reportEvent==="function"&&V.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),T=Object.assign({},T,{errorMessage:T.error instanceof Error&&T.error.message?T.error.message:String(T.error),errorStack:T.error instanceof Error&&T.error.stack?String(T.error.stack):null,errorName:T.error instanceof
Error&&T.error.name?String(T.error.name):null,errorContext:String(V.performanceMonitor.timedFunctionContext),errorEscapedQueryId:T.escapedQueryId}),I(Object.assign({},T,{payloadMapper:function(){return function(x){try{return H(Object.assign({},x))}catch(n){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),zP(T)).forEach(function(x){V.beaconFactory.makeBeacon(x).sendNow()}))}};
POK=function(){var V=_.Q5.apply(0,arguments);return function(l){var I=l.pipe(g4(1),E9());l=V.map(function(H){return I.pipe(H,uw(!0))});
return he(l).pipe(pk(1),M0())}};
Dx3=function(){var V=_.Q5.apply(0,arguments);return function(l){var I=l.pipe(g4(1),E9());l=V.map(function(H){return I.pipe(H,uw(!0))});
return RI.apply(null,_.oI(l)).pipe(pk(1),M0())}};
ZSw=function(V,l){return function(I){var H=I.pipe(g4(1),E9());I=H.pipe(V,uw(!0));H=H.pipe(nk(l,g4(),E9()),uw(!0));I=he([I,H]);return Cwc(I,H).pipe(pk(1),M0())}};
SXt=function(V,l,I){I(!0)};
RTJ=function(V,l){return nk(Vl(function(I){var H=V(I),T=l(I),x={};return H&&T&&x?new $E(function(n){T(H,x,function(w){n.next(Object.assign({},I,{canEmit:w}));n.complete()});
return function(){}}):yl}),QJ(function(I){return I.canEmit}))};
Q8N=function(V){var l={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(I){return I.pipe(Vl(function(H){return new $E(function(T){function x(){w.disconnect();N.unsubscribe()}
var n=V.MutationObserver;if(n&&H.ref!==void 0){var w=new n(function(L){T.next(L)});
w.observe(H.ref,l);var N=H.JSC$7206_released.subscribe(x);return x}})}))}};
cKt=function(V){if(V.measurementDeferralState===3)return null;if(V.timeOnScreenReason!==void 0){var l=V.creativeFound===!1?"n":null;if(l!==null)return l}return V.geometricMeasurementErrors instanceof tH?"msf":V.contextValidationErrors instanceof GP?"c":V.contextVisibilityKnown===!1?"pv":V.geometricMeasurementErrors||V.contextValidationErrors?"x":null};
bS3=function(V,l){return V.replace(WF3,function(I,H){try{var T=_.EL.get(l,H);if(T==null||T.toString()==null)return I;T=T.toString();if(T==""||!_.jc(T==null?"":String(T)))return encodeURIComponent(T).replace(/%2C/g,",")}catch(x){}return I})};
qX3=function(V,l){var I=Object.assign({},V),H=V.userAgentClientHints;I=(delete I.userAgentClientHints,I);I=V.payloadMapper(I);var T=Eww(I,l);return _.JH(V.urlPrefixes,function(x){var n="";typeof H==="string"&&(n="&"+Eww({uach:H},l));var w={};return bS3(x,(w.VIEWABILITY=T,w))+n})};
JKf=function(V,l){var I=V.payloadMapper(V),H=Eww(I,l);return H?_.JH(V.urlPrefixes,function(T){T=T.indexOf("?")>=0?T:T+"?";T="?&".indexOf(T.slice(-1))>=0?T:T+"&";return T+H}):V.urlPrefixes};
Mkt=function(){return nk(QJ(function(V){return V!==void 0}),Je(function(V){return V}))};
s8W=function(V){return nk(Je(function(){return!0}),iw(!1),d$(V))};
pvq=function(V){return V.length<=0?Sd:he(V.map(function(l){var I=0;return l.pipe(Je(function(H){return{index:I++,value:H}}))})).pipe(QJ(function(l){return l.every(function(I){return I.index===l[0].index})}),Je(function(l){return l.map(function(I){return I.value})}))};
AKW=function(V,l){V.currentState&&(V.previousState=V.currentState);V.currentState=l;V.previousState&&V.previousState.value?(l=Math.max(0,ck(l.timestamp,V.previousState.timestamp)),V.totalTime+=l,V.consecutiveTime+=l):V.consecutiveTime=0;return V};
uGw=function(){return nk(mY(AKW,{totalTime:0,consecutiveTime:0}),Je(function(V){return V.totalTime}))};
vwt=function(){return nk(mY(AKW,{totalTime:0,consecutiveTime:0}),Je(function(V){return V.consecutiveTime}))};
OSt=function(V,l){return function(I){return pvq(l.map(function(H){return I.pipe(V(H))}))}};
COf=function(){var V;return nk(d3f(function(l){return void(V=l.timestamp)}),vwt(),Je(function(l){return{timestamp:V,
value:Math.round(l)}}))};
alN=function(V,l){return KG(V.topWindowViewportExternalGeometry,l.topWindowViewportExternalGeometry)&&KG(V.elementGeometry,l.elementGeometry)&&KG(V.exposedViewportLocalGeometry,l.exposedViewportLocalGeometry)&&KG(V.intersectionGeometry,l.intersectionGeometry)&&V.elementGeometrySourceName===l.elementGeometrySourceName&&V.measurementRequests===l.measurementRequests&&V.viewportGeometrySourceName===l.viewportGeometrySourceName&&V.viewportLocalAppOffset.x===l.viewportLocalAppOffset.x&&V.viewportLocalAppOffset.y===
l.viewportLocalAppOffset.y};
V_T=function(V,l){return function(I){return function(H){var T=H.pipe(aI(new nG),E9());H=I.element.pipe(Ae());T=T.pipe(Je(function(x){return x.value}));
return he([H,T,l]).pipe(Je(function(x){var n=_.U(x);x=n.next().value;var w=n.next().value;n=n.next().value;if(x.ref===void 0)var N={top:0,left:0,width:0,height:0};else{N=x.ref.getBoundingClientRect();var L=x.ref,e=V.global,k=new _.og(0,0),X=hH(_.Z3(L));if(flf(X,"parent")){do{if(X==e)var r=_.SP(L);else r=gwc(L),r=new _.og(r.left,r.top);k.x+=r.x;k.y+=r.y}while(X&&X!=e&&X!=X.parent&&(L=X.frameElement)&&(X=X.parent))}N={top:k.y,left:k.x,width:N.width,height:N.height}}N=m3t(N,w.viewportLocalAppOffset);
e=gpt(N,w.exposedViewportLocalGeometry);k=V.timeProvider.now();X=Object;L=X.assign;if(n!==2||V.inCrossDomainIframe||e.width<=0||e.height<=0)var E=!1;else try{var D=V.document.elementFromPoint(e.left+e.width/2,e.top+e.height/2);E=D?!mxf(D,x):!1}catch(Z){E=!1}return{timestamp:k,value:L.call(X,{},w,{elementGeometrySourceName:"geo",intersectionGeometry:E?iS1.intersectionGeometry:e,elementGeometry:N})}}),$p(V.queue))}}};
mxf=function(V,l,I){I=I===void 0?0:I;return V.ref===void 0||l.ref===void 0?!1:V.ref===l.ref||_.Rg(l.ref,function(H){return H===V.ref})?!0:l.ref.ownerDocument&&l.ref.ownerDocument.defaultView&&l.ref.ownerDocument.defaultView===l.ref.ownerDocument.defaultView.top?!1:I<10&&l.ref.ownerDocument&&l.ref.ownerDocument.defaultView&&l.ref.ownerDocument.defaultView.frameElement?mxf(V,new Ql(l.ref.ownerDocument.defaultView.frameElement),I+1):!0};
HNy=function(V){return function(l){return l.pipe(V.ResizeObserver?lnK(V):In1(V),g4(1),E9())}};
lnK=function(V){return function(l){return l.pipe(Vl(function(I){var H=V.ResizeObserver;if(!H||I.ref===void 0)return zL(iS1.elementGeometry);var T=(new $E(function(x){function n(){I.ref!==void 0&&w.unobserve(I.ref);w.disconnect();N.unsubscribe()}
if(I.ref===void 0)return x.complete(),function(){};
var w=new H(function(L){L.forEach(function(e){x.next(e)})});
w.observe(I.ref);var N=I.JSC$7206_released.subscribe(n);return n})).pipe(bw(V.performanceMonitor,736),Je(function(x){return x.contentRect}));
return RI(zL(I.ref.getBoundingClientRect()),T)}),Ae(KG))}};
In1=function(V){return function(l){var I=l.pipe(Q8N(V)),H=V.onResize;I=RI(l.pipe(Je(function(){return P4t("resize")})),I,H);
return he(l,I).pipe(bw(V.performanceMonitor,737),Je(function(T){T=_.U(T).next().value;return T.ref===void 0?void 0:T.ref.getBoundingClientRect()}),Mkt(),Ae(KG))}};
xy1=function(V,l){var I=TxK(V,l).pipe(g4(1),E9());return function(H){return function(T){T=T.pipe(Vl(function(x){return x.element}),Ae());
return he([I,T]).pipe(Vl(function(x){var n=_.U(x);x=n.next().value;n=n.next().value;return Bxc(V,x.intersectionObserver,HNy(V),x.observations,H,x.flushRecords,n)}),$p(V.queue))}}};
Uyw=function(V){return Je(function(l){return l.value.viewportGeometrySourceName!=="nio"?l:Object.assign({},l,{value:Object.assign({},l.value,{exposedViewportLocalGeometry:cN(V,!0),topWindowViewportExternalGeometry:cN(V,!0)})})})};
niK=function(V,l){return zL(l).pipe(V,Je(function(){return l}))};
TxK=function(V,l){return V.timeProvider.timeline!==$y3?yJ(new tH(2)):V.MutationObserver?typeof IntersectionObserver==="undefined"?yJ(new tH(0)):(new $E(function(I){var H=new nG,T=new WN(H.next.bind(H),{threshold:[].concat(_.oI(l))});I.next({observations:H.pipe(bw(V.performanceMonitor,735)),intersectionObserver:T,flushRecords:function(x){x=T.takeRecords(x);x.length>0&&H.next(x)}})})).pipe(pk(1),g4(1),E9()):yJ(new tH(1))};
dyq=function(V){return jIf(V.sort(function(l,I){return l.time-I.time}),re3)};
Bxc=function(V,l,I,H,T,x,n){return new $E(function(w){function N(){E||(E=!0,n.ref!==void 0&&l.unobserve(T,n.ref),e.unsubscribe(),r.unsubscribe(),X.unsubscribe(),D.unsubscribe())}
if(n.ref!==void 0){wTN(l,T);l.observe(T,n.ref);var L=new b4({timestamp:V.timeProvider.now(),value:Object.assign({},iS1,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),e=H.pipe(DK(function(Z){return dyq(Z)}),QJ(function(Z){return Z.target===n.ref}),Je(function(Z){return{timestamp:new Wk(Z.time,$y3),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:Z.rootBounds||q3,topWindowViewportExternalGeometry:Z.rootBounds||cN(V,!0),measurementRequests:k,elementGeometrySourceName:"nio",intersectionGeometry:Z.intersectionRect,elementGeometry:Z.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:Z.isIntersecting,isV2Visible:Z.isVisible}}}),aI(L),E9()).subscribe(w),k=new nG,X=k.subscribe(function(){x(T);
w.next({timestamp:V.timeProvider.now(),value:L.value.value});n.ref!==void 0&&(l.unobserve(T,n.ref),l.observe(T,n.ref))}),r=niK(I,n).subscribe(function(){k.next()}),E=!1,D=n.JSC$7206_released.subscribe(function(){return N()});
return N}})};
NxN=function(V,l){var I=V.getOnBackgrounded().pipe(Je(function(){return"b"}));
return Cwc(l,I).pipe(pk(1),d$(V.queue))};
M3=function(V){return function(l){var I;return l.pipe(d3f(function(H){return void(I=H.timestamp)}),Je(function(H){return H.value}),V,Je(function(H){return{timestamp:I,
value:H}}))}};
sL=function(V,l,I){I=I===void 0?function(H,T){return H===T}:I;
return V.timestamp.equals(l.timestamp)&&I(V.value,l.value)};
AH=function(V,l){return l.pipe(Je(function(I){return new pG(V.timeProvider,{timestamp:V.timeProvider.now(),value:I})}))};
Kmg=function(V){return function(l){return l.pipe(wNT(V),Je(function(I){var H=_.U(I);I=H.next().value;H=H.next().value;var T=I.value;return{timestamp:I.timestamp,value:T>=1?!0:T<=0?!1:T>=H}}))}};
YSw=function(){return nk(QJ(function(V,l){return l>0}),jx3,iw(-1),Ae())};
Lmt=function(V,l,I){return V?he([l,I]).pipe(QJ(function(H){var T=_.U(H);H=T.next().value;T=T.next().value;return H.timestamp.equals(T.timestamp)}),Je(function(H){var T=_.U(H);
H=T.next().value;T=T.next().value;return H.value>T.value?H:T})):l};
Fm3=function(V){return function(l){var I=l.pipe(esf),H=l.pipe(k0f);return V instanceof $E?V.pipe(Vl(function(T){return Lmt(T,I,H)})):Lmt(V.value,I,H)}};
hst=function(V,l,I,H){var T=H.geometryIsOccluded,x=H.exposureThreshold,n=H.wasLargeAdAtRender,w=H.allowLargeAdThreshold,N=H.largeAdExposureThreshold,L=H.mayUseViewportShareExposure,e=H.hasMeasurementStarted;H=H.useIntersectionObserverV2;l=XTT(V,I,l);I=zsg(V,I);H=y0J(l,H);var k=t_J(V,T,L,l),X=k.pipe(Je(function(By){return By.value}),Ae(),d$(V),mY(function(By,lN){return Math.max(By,lN)},0)),r=k.pipe(Je(function(By){return By.value}),YSw(),d$(V)),E=l.pipe(r0T,Je(function(By){return By.value}),pk(2),
Ae(),d$(V));
n=G0f(V,l,n,w);var D=n.pipe(iw(!1),Ae(),Je(function(By){return By?N:x}));
w=k.pipe(Kmg(D),Ae(),d$(V));var Z=he([w,l]).pipe(QJ(function(By){var lN=_.U(By);By=lN.next().value;lN=lN.next().value;return By.timestamp.equals(lN.timestamp)}),Je(function(By){var lN=_.U(By);
By=lN.next().value;lN=lN.next().value;return{visible:By.value,geometry:lN.value.elementGeometry}}),mY(function(By,lN){return!lN.visible&&By.visible?By:lN},{visible:!1,
geometry:q3}),Je(function(By){return By.geometry}),iw(q3),d$(V),Ae(KG));
L=L instanceof $E?L.pipe(Ae(),s9()):yl;D=he([L,D]).pipe(s9());var S=l.pipe(QJ(function(By){return By.value.viewportGeometrySourceName!=="ns"&&By.value.elementGeometrySourceName!=="ns"}),mY(function(By){return By+1},0),iw(0),d$(V)),p=I.pipe(s9(!0),iw(!1),d$(V));
p=he([e,p]).pipe(Je(function(By){var lN=_.U(By);By=lN.next().value;lN=lN.next().value;return By&&!lN}),d$(V));
var Vf=l.pipe(Eiy,Ae()),C=Vf.pipe(Je(function(By){return By.value}),mY(function(By,lN){return Math.max(By,lN)},0),Ae(),d$(V));
V=Vf.pipe(Je(function(By){return By.value}),YSw(),d$(V));
return{shouldResetExposureSignals:L,shouldResetViewabilitySignals:D,geometrySignals:{readyGeometryWithDefault:l,measurementStrategy:l.pipe(J01),creativePosition:Z.pipe(Ae(KG)),visible:w.pipe(Ae(sL)),timestampedExposure:k.pipe(Ae(sL)),maximumExposure:X,minimumExposure:r,browserSize:l.pipe(oiN,Ae(_.Ii)),timestampedScreenShare:Vf,maxScreenShare:C,minScreenShare:V,geometricMeasurementErrors:I,measurementRequests:l.pipe(Je(function(By){return By.value.measurementRequests})),
isLargeAd:n,geometryIsOccluded:T,hasMeasurementStarted:e,geometryMeasurable:p,validMeasurementCount:S,loadTimeExposure:E,v2VisibilityBitVector:H}}};
zsg=function(V,l){return l.pipe(QJ(function(){return!1}),Je(function(I){return I}),q0(function(I){return u4(new N3(I),V)}))};
XTT=function(V,l,I){return l.pipe(vEJ(yl),d$(V)).pipe(Ae(function(H,T){return sL(H,T,alN)}),iw({timestamp:I.now(),
value:iS1}),d$(V))};
t_J=function(V,l,I,H){I=H.pipe(Fm3(I),M3(Je(function(T){return Math.round(T*100)/100})),d$(V));
return l instanceof N3?I:he([I,l]).pipe(Je(function(T){var x=_.U(T);T=x.next().value;x=x.next().value;return{timestamp:x.timestamp.maximum(T.timestamp),value:x.value?0:T.value}}),Ae(sL),d$(V))};
G0f=function(V,l,I,H){l=[l.pipe(Je(function(T){return T.value.elementGeometry.width*T.value.elementGeometry.height>=242500}))];
I instanceof $E&&l.push(I.pipe(Je(function(T){return!!T})));
I=he(l);return H?I.pipe(Je(function(T){return T.some(function(x){return x})}),iw(!1),Ae(),d$(V)):u4(new N3(!1),V)};
y0J=function(V,l){V=he([V,l]).pipe(Je(function(T){var x=_.U(T);T=x.next().value;if(x.next().value&&T.value.isIntersecting)return T.value.isV2Visible}),Ae());
var I=V.pipe(Je(function(T){return T===void 0?!0:T}),mY(function(T,x){return T||!x},!1)),H=V.pipe(mY(function(T,x){return x===void 0?T:x?!1:T!=null?T:!0},void 0),Je(function(T){return!!T}));
return he([l,aKc(V,I,H)]).pipe(Je(function(T){var x=_.U(T);T=x.next().value;var n=_.U(x.next().value);x=n.next().value;var w=n.next().value;n=n.next().value;var N=0;if(!T)return 0;if(x===void 0)return 16;x&&(N|=1);x||(N|=2);w&&(N|=4);n&&(N|=8);return N}))};
Qxt=function(V,l,I,H,T){var x=P$1.timeThresholdMs;var n=n===void 0?new Dy1(l,H):n;return(new $E(function(w){var N=I.pipe(iw(void 0),Vl(function(){return ZNc(T)})).pipe(Je(function(L){var e=L.value;
L=L.timestamp;var k=e.visible;e=e.consecutiveViewTime;var X=e>=x;X||!k?SSJ(n):(L=Math.max(0,ck(l.now(),L)),RsN(n,Math.max(0,x-e-L)));return X}),mY(function(L,e){return e||L},!1),Ae()).subscribe(w);
return function(){n.dispose();N.unsubscribe()}})).pipe(l4(function(w){return!w},!0),d$(V))};
ZNc=function(V){return pvq([V,V.pipe(COf())]).pipe(Je(function(l){var I=_.U(l);l=I.next().value;I=I.next().value;return{timestamp:l.timestamp,value:{visible:l.value,consecutiveViewTime:I.value}}}),Ae(function(l,I){return sL(l,I,function(H,T){return H.consecutiveViewTime===T.consecutiveViewTime&&H.visible===T.visible})}))};
c0w=function(){return nk(vwt(),mY(function(V,l){return Math.max(V,l)},0),Je(function(V){return Math.round(V)}))};
Wm3=function(V){return nk(Kmg(zL(V)),c0w())};
bNc=function(V,l){return l instanceof $E?l.pipe(Vl(function(I){return(I=I?15:null)?yJ(new tH(I)):V})):(l=l.value?15:null)?yJ(new tH(l)):V};
qSt=function(V){var l=new tH(13);if(V.length<1)return{chain:Sd,capturedErrors:Sd};var I=new nG,H=V[0];return{chain:V.slice(1).reduce(function(T,x){return T.pipe(q0(function(n){I.next(n);return x}))},H).pipe(q0(function(T){I.next(T);
return yJ(l)}),aI(new nG),E9()),
capturedErrors:I}};
M_t=function(V,l){var I=V.pipe(aI(new nG),E9());return Vl(function(H){return I.pipe(l(H))})};
pTJ=function(V,l){if(V.inCrossDomainIframe)return yJ(new tH(6));var I=new nG;return RI(zL({}),l,I).pipe(Je(function(){return{timestamp:V.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:sxW(V),topWindowViewportExternalGeometry:cN(V,!0),measurementRequests:I,viewportLocalAppOffset:{x:0,y:0}}}}),$p(V.queue))};
sxW=function(V){var l=cN(V,!1);if(!V.inIframe||!A0f(V.global.parent)||V.global.parent===V.global)return l;var I=new vN(V.global.parent,V.debugChannel);I.beaconFactory=V.beaconFactory;I=sxW(I);V=V.global.frameElement.getBoundingClientRect();return gpt(m3t(gpt(I,V),{x:l.left-V.left,y:l.top-V.top}),l)};
ukJ=function(V){if(V.prerendering)return 3;var l;return(l={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[V.visibilityState||V.webkitVisibilityState||V.mozVisibilityState||""])!=null?l:0};
viW=function(V){return V.document.JSC$7217_onVisibilityChange.pipe(Je(function(l){return l==="visible"}),Ae(),d$(V.queue))};
ONc=function(V,l,I){var H;return l.pipe(Ae(),Vl(function(T){return I.pipe(Je(function(){if(!H){H=!0;try{T.next()}finally{H=!1}}return!0}))}),iw(!1),d$(V.queue))};
C$t=function(V){return nk(M3(Je(function(l){return l>=1?!0:l<=0?!1:l>=V})),uGw(),Je(function(l){return Math.round(l)}))};
fnf=function(V,l,I,H,T){var x=anq;if(x.length>1)for(var n=0;n<x.length-1;n++)if(x[n]<x[n+1])throw Error();n=T.pipe(iw(void 0),Vl(function(){return I.pipe(COf())}),Ae(),d$(V));
T=T.pipe(iw(void 0),Vl(function(){return I.pipe(c0w())}),Ae(),d$(V));
return{totalMeasurementTime:H.pipe(iw(void 0),Vl(function(){return l.pipe(Je(function(w){return{timestamp:w.timestamp,value:!0}}),uGw())}),Ae(),d$(V)),
totalUnviewedTime:H.pipe(iw(void 0),Vl(function(){return l.pipe(Je(function(w){return{timestamp:w.timestamp,value:w.value===0}}),uGw())}),Ae(),d$(V)),
maxTimeOnScreen:H.pipe(iw(void 0),Vl(function(){return l.pipe(OSt(Wm3,x))}),Ae(_.Ii),d$(V)),
timeOnScreen:H.pipe(iw(void 0),Vl(function(){return l.pipe(OSt(C$t,x),Je(function(w){return w.map(function(N,L){return L>0?N-w[L-1]:N})}))}),Ae(_.Ii),d$(V)),
maxConsecutiveViewTime:T,consecutiveViewTime:n.pipe(Ae(sL),d$(V))}};
myt=function(V){var l=!0;l=l===void 0?!1:l;return nk(Vl(function(I){return giK(V.document,I,l)}),d$(V.queue))};
iNN=function(V,l,I){var H=I.pipe(Je(function(T){return{value:T,timestamp:V.timeProvider.now()}}),Ae(sL));
return l instanceof $E?l.pipe(Ae(),Vl(function(T){return T?u4(new N3({value:!1,timestamp:V.timeProvider.now()}),V.queue):H})):l.value===!1?H:new N3(!1)};
VNy=function(V,l,I,H,T,x,n){var w=P$1;l=l instanceof $E?l.pipe(iw(!1),Ae()):l;var N=!V.isMobile();I=iNN(V,I,H);V=n.measurableCreative.pipe(s8W(V.queue));return Object.assign({},w,{geometryIsOccluded:I,wasLargeAdAtRender:T,allowLargeAdThreshold:N,mayUseViewportShareExposure:l,hasMeasurementStarted:V,useIntersectionObserverV2:x})};
Ip1=function(V,l,I,H,T,x){var n=1;x=x===void 0?!0:x;n=n===void 0?.01:n;var w=w===void 0?V.timeProvider.intervalObservable(100).pipe(d$(V.queue)):w;return V.performanceMonitor.timeExecution(916,function(){return lpT(V,l.pipe($p(V.queue)),I.pipe($p(V.queue)),H,T,x,n,w)})()};
lpT=function(V,l,I,H,T,x,n,w){var N=viW(V).pipe(Je(function(e){return!e})),L=new HsJ(V,[new T7w(V,anq),
new B7w(V,w)]);w=POK(xSc,USJ);return yK1(V,l,function(e,k){var X=u4(new N3(k.element),e.queue).pipe(myt(e),d$(e.queue)),r={loadedElement:X,shouldMeasure:X.pipe(s9(!0)),measurableCreative:X.pipe(Je(function(By){var lN=lN===void 0?Symbol():lN;return Object.freeze({symbol:lN,element:u4(new N3(By),e.queue)})})),
creativeSearchResult:u4(new N3("mue"),e.queue)},E=new N3(!1),D=new N3(!1),Z=new N3(17),S=new N3(!1),p=new N3(!1),Vf=u4(OL,e.queue);E=L.buildGeometrySource(r,{inApp:E,useV2:!1,requestSource:u4(Z,e.queue)}).geometrySource;r=VNy(e,S,D,N,p,Vf,r);D=hst(e.queue,e.timeProvider,E,r);r=D.geometrySignals;S=D.shouldResetViewabilitySignals;D=fnf(e.queue,r.timestampedExposure,r.visible,D.shouldResetExposureSignals,S);S=Qxt(e.queue,e.timeProvider,S,r.measurementRequests,r.visible);p=I.pipe(QJ(function(By){return By===
k.element.ref}),Je(function(){return"ur"}));
Vf=iky(e.timeProvider,T).pipe(s9("t"));p=NxN(e,RI(p,Vf));Vf=ONc(e,r.measurementRequests,p.pipe(QJ(function(By){return By!==null})));
E=p.pipe(QJ(function(By){return By!==null}),Je(function(){return ukJ(e.global.document)===1}));
var C=nG3(e.document);return Object.assign({},{beaconFactory:new N3(e.beaconFactory),context:new N3(e),inferredPingId:new N3("lidar2"),timeOnScreenPingId:new N3("lidartos"),binaryContext:new N3(17),binaryVersion:new N3(H),requestSource:Z,contextValidationErrors:new N3(e.validate()?null:new GP),contextVisibilityKnown:new N3(C),payloadMapper:new N3(owf),endOfSessionReason:p,timeOnScreenReason:p,requestMeasurementOnEndOfSession:Vf,hasImpressionFired:$S1,crossDomainIframeState:new N3(e.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:OL,inFetchLaterBeaconExperiment:OL,isTurtlex:OL,turtlexReportEventData:new N3(""),reportFencedFrameEvent:yl,isViewableAttributionEnabled:OL,inViewableAttributionExperiment:new N3(0),fetchBeaconFactory:yl,supportsPendingBeacon:OL,supportsFetchLater:OL,emit:new N3(SXt),beginToRenderEvent:new N3(Symbol()),activeViewUnmeasurableEvent:new N3(Symbol()),activeViewViewableEvent:new N3(Symbol()),creativeFound:$S1,immediateUrlPrefixes:new N3(k.immediateUrls),timeOnScreenUrlPrefixes:new N3(k.timeOnScreenUrls),
cpmavUrls:yl,viewableRelayUrls:yl,measurementDeferralState:new N3(2),urlSerializer:new N3(qX3),viewUrlSerializer:new N3(dSK),isCreativeLoaded:X.pipe(s8W(e.queue)),pageVisible:N.pipe(Je(function(By){return!By})),
eosPageVisible:E,timestampedExposureHistory:r.timestampedExposure.pipe(mY(function(By,lN){By.push(lN);return By},[]))},r,{viewable:AH(e,S),
maxTimeOnScreen:AH(e,D.maxTimeOnScreen),timeOnScreen:AH(e,D.timeOnScreen),maxConsecutiveViewTime:AH(e,D.maxConsecutiveViewTime),consecutiveViewTime:D.consecutiveViewTime.pipe(Je(function(By){return new pG(e.timeProvider,By)})),
totalMeasurementTime:AH(e,D.totalMeasurementTime),totalUnviewedTime:AH(e,D.totalUnviewedTime),userAgentClientHints:hPf(e),clientOrderPingCounter:new N3(new rKW)})},hT3(V,n),Dx3(x?ZSw(w,wOy):ZSw(w,N73),K_T))};
jwf=function(V,l){return(V=(new RegExp("[^#]*[?&]"+l+"=([^&#]*)")).exec(V))?V[1]:null};
Yo1=function(V){var l=_.Q5.apply(1,arguments).filter(Boolean).join("&");if(!l)return V;var I=V.match(/[?&]adurl=/);return I?V.slice(0,I.index+1)+l+"&"+V.slice(I.index+1):V+(V.indexOf("?")<0?"?":"&")+l};
CG=function(V,l){return l?"&"+V+"="+encodeURIComponent(l):""};
L_q=function(){try{var V,l;return!!((V=window)==null?0:(l=V.top)==null?0:l.location.href)&&!1}catch(I){return!0}};
_.ag=function(V){V&&typeof V.dispose=="function"&&V.dispose()};
_.e11=function(V){for(var l=0,I=arguments.length;l<I;++l){var H=arguments[l];_.vy(H)?_.e11.apply(null,H):_.ag(H)}};
F_c=function(){var V=kYf();V=V===void 0?"bevasrsg":V;return new Promise(function(l){var I=window===window.top?window:L_q()?window:window.top,H=I[V],T;((T=H)==null?0:T.bevasrs)?l(new fG(H.bevasrs)):(H||(H={},H=(H.nqfbel=[],H),I[V]=H),H.nqfbel.push(function(x){l(new fG(x))}))})};
XOw=function(V){var l={c:V.vo,e:V.yIG,mc:V.iBW,me:V.xHk};V.eu&&(l.co={c:V.eu.b9i,a:V.eu.rOG,s:V.eu.cdY});return l};
z1K=function(V){var l,I,H={vo:V.c,yIG:V.e,iBW:(l=V.mc)!=null?l:!1,xHk:(I=V.me)!=null?I:!1};V.co&&(H.eu={b9i:V.co.c,rOG:V.co.a,cdY:V.co.s});return H};
y6y=function(V){return function(){var l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,V(),2);l=I.yieldResult;return I.return({f:function(){return l.eli()},
c:function(H){return l.dop(H)},
m:function(H){return l.t1(z1K(H))},
mws:function(H){return l.zq(z1K(H))}})})}};
tNf=function(V,l){var I=kYf();I=I===void 0?"bevasrsg":I;l={s:function(x){var n;return V.snapshot(Object.assign({},x.c&&{vo:x.c},x.s&&{mfI:x.s},{tah:(n=x.p)!=null?n:!0}))},
e:function(x){var n;return void((n=V.j1X)==null?void 0:n.call(V,x))},
c:function(x,n){return V.kEX(x,n)},
p:V.uGF,l:function(){return V.q1B()},
wpc:l?y6y(l):void 0};var H=window===window.top?window:L_q()?window:window.top,T=H[I];if(T){T.bevasrs=l;if(T.nqfbel!==void 0)for(I=_.U(T.nqfbel),H=I.next();!H.done;H=I.next())H=H.value,H(l);T.nqfbel=void 0}else T={},T=(T.bevasrs=l,T.nqfbel=void 0,T),H[I]=T};
GYg=function(V){var l=l===void 0?49:l;var I=[];_.m2(V,r6t,6,_.i4()).forEach(function(H){_.lO(H,2)<=l&&I.push(_.lO(H,1))});
return I};
EG1=function(V){var l=l===void 0?49:l;var I=[];_.m2(V,r6t,6,_.i4()).forEach(function(H){_.lO(H,2)>l&&I.push(_.lO(H,1))});
return I};
J6W=function(V){V.then(function(){},function(){})};
_.I8=function(V){return{fieldType:1,fieldName:V}};
Hv=function(V){return{fieldType:2,fieldName:V}};
_.TN=function(V){return{fieldType:3,fieldName:V}};
oGt=function(){function V(){T[0]=1732584193;T[1]=4023233417;T[2]=2562383102;T[3]=271733878;T[4]=3285377520;e=L=0}
function l(k){for(var X=n,r=0;r<64;r+=4)X[r/4]=k[r]<<24|k[r+1]<<16|k[r+2]<<8|k[r+3];for(r=16;r<80;r++)k=X[r-3]^X[r-8]^X[r-14]^X[r-16],X[r]=(k<<1|k>>>31)&4294967295;k=T[0];var E=T[1],D=T[2],Z=T[3],S=T[4];for(r=0;r<80;r++){if(r<40)if(r<20){var p=Z^E&(D^Z);var Vf=1518500249}else p=E^D^Z,Vf=1859775393;else r<60?(p=E&D|Z&(E|D),Vf=2400959708):(p=E^D^Z,Vf=3395469782);p=((k<<5|k>>>27)&4294967295)+p+S+Vf+X[r]&4294967295;S=Z;Z=D;D=(E<<30|E>>>2)&4294967295;E=k;k=p}T[0]=T[0]+k&4294967295;T[1]=T[1]+E&4294967295;
T[2]=T[2]+D&4294967295;T[3]=T[3]+Z&4294967295;T[4]=T[4]+S&4294967295}
function I(k,X){if(typeof k==="string"){k=unescape(encodeURIComponent(k));for(var r=[],E=0,D=k.length;E<D;++E)r.push(k.charCodeAt(E));k=r}X||(X=k.length);r=0;if(L==0)for(;r+64<X;)l(k.slice(r,r+64)),r+=64,e+=64;for(;r<X;)if(x[L++]=k[r++],e++,L==64)for(L=0,l(x);r+64<X;)l(k.slice(r,r+64)),r+=64,e+=64}
function H(){var k=[],X=e*8;L<56?I(w,56-L):I(w,64-(L-56));for(var r=63;r>=56;r--)x[r]=X&255,X>>>=8;l(x);for(r=X=0;r<5;r++)for(var E=24;E>=0;E-=8)k[X++]=T[r]>>E&255;return k}
for(var T=[],x=[],n=[],w=[128],N=1;N<64;++N)w[N]=0;var L,e;V();return{reset:V,update:I,digest:H,digestString:function(){for(var k=H(),X="",r=0;r<k.length;r++)X+="0123456789ABCDEF".charAt(Math.floor(k[r]/16))+"0123456789ABCDEF".charAt(k[r]%16);return X}}};
R1y=function(V,l){l=l===void 0?h1N:l;if(!Pt3){var I;V=(I=V.navigator)==null?void 0:I.userAgentData;if(!V||typeof V.getHighEntropyValues!=="function"||V.brands&&typeof V.brands.map!=="function")return Promise.reject(Error("ya"));DSq((V.brands||[]).map(function(T){var x=new ZsW;x=_.Fm(x,1,T.brand);return _.Fm(x,2,T.version)}));
typeof V.mobile==="boolean"&&_.Bv(So3,2,V.mobile);Pt3=V.getHighEntropyValues(l)}var H=new Set(l);return Pt3.then(function(T){var x=So3.clone();H.has("platform")&&_.Fm(x,3,T.platform);H.has("platformVersion")&&_.Fm(x,4,T.platformVersion);H.has("architecture")&&_.Fm(x,5,T.architecture);H.has("model")&&_.Fm(x,6,T.model);H.has("uaFullVersion")&&_.Fm(x,7,T.uaFullVersion);return x.serialize()}).catch(function(){return So3.serialize()})};
xw=function(V,l,I,H){this.initialValue_=V;this.maxValue_=l;this.currBaseValue_=this.currValue_=V;this.randomFactor_=I||0;this.backoffFactor_=H||2};
UX=function(V){this.src=V;this.listeners={};this.typeCount_=0};
bsK=function(){for(var V;V=Qwq.remove();){try{V.fn.call(V.scope)}catch(l){$T(l)}c6y.put(V)}W_1=!1};
_.qoT=function(V){switch(V){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}};
MNq=function(V){switch(V){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""}};
_.swq=function(){};
gGW=function(V){return{qKk:new pOq(V),errorCount:new A6f(V),eventCount:new uWW(V),eud:new vGc(V),y1d:new Os1(V),c4y:new Ctf(V),dMJ:new apN(V),vjk:new fp1(V)}};
xlt=function(V,l,I,H){V=mSq(isy(VOW(new _.nS(1828,"0"),V),new lYJ));l.length&&IY1(V,HAK(new TmW,l));H!==void 0&&(V.destinationUrl=H);var T=new Bmf(1828,"","",!1,"",V.build());_.$w(T,V);var x=new wo({flush:function(n){try{T.flush(n)}catch(w){I(w)}}});
x.addOnDisposeCallback(function(){setTimeout(function(){try{x.snapshotAndFlush()}finally{T.dispose()}})});
x.invocationLimit=1E5;x.flushInterval=3E4;x.JSC$7653_flushTimer.setInterval(3E4);return x};
Nx=function(){var V,l,I;return(I=(V=globalThis.performance)==null?void 0:(l=V.now)==null?void 0:l.call(V))!=null?I:Date.now()};
$lf=function(V,l,I){if(V.disable)return new Ul1;l=l?GYg(l):[];if(I)return I.gVk(l),I.share();V={k6:V.k6,jTI:V.y5J,erv:V.g2F,destinationUrl:V.destinationUrl,nCG:V.nCG,x3F:V.x3F};I=l;I=I===void 0?[]:I;return new ndt(V,I)};
_.dly=function(V){if(!V)return null;V=_.KS(V,4);return V===null||V===void 0?null:_.Xj(V)};
K6J=function(V,l){return l?wxy(l):V?NmK(V):Promise.resolve()};
wxy=function(V){return new Promise(function(l,I){var H=_.jk("SCRIPT"),T=_.dly(V);_.gp(H,T);H.onload=function(){_.Yw(H);l()};
H.onerror=function(){_.Yw(H);I(Error("Ja"))};
(LS("HEAD")[0]||document.documentElement).appendChild(H)})};
NmK=function(V){return new Promise(function(l){var I=_.jk("SCRIPT");if(V){var H=_.KS(V,6);H=H===null||H===void 0?null:_.aO(H)}else H=null;_.fd(I,H);(LS("HEAD")[0]||document.documentElement).appendChild(I);_.Yw(I);l()})};
ek=function(V,l,I){var H,T=new Promise(function(x){H=setTimeout(x,l)});
return Promise.race([V.finally(function(){return void clearTimeout(H)}),
T.then(I)])};
jvt=function(V,l){try{return globalThis.sessionStorage.setItem(V,l),!0}catch(I){return!1}};
Y_W=function(V,l,I,H){l=l===void 0?0:l;I=I===void 0?V.length:I;var T=0;for(H&&(T=Y_W(H));l<I;l++)H=typeof V==="string"?V.charCodeAt(l):V[l],T=L6t(31,T)+H|0;return T};
em3=function(V,l){return[Y_W(V,0,V.length>>1,l),Y_W(V,V.length>>1)]};
kU1=function(V){var l=_.U(em3(V,kw));V=l.next().value;l=l.next().value;return V.toString(16)+l.toString(16)};
F6J=function(V,l){var I=em3(l);V=new Uint32Array(V.buffer);l=V[0];var H=_.U(I);I=H.next().value;H=H.next().value;for(var T=1;T<V.length;T+=2){for(var x=l,n=T,w=I,N=H,L=0;L<22;L++)n=n>>>8|n<<24,n+=x|0,n^=w+38293,x=x<<3|x>>>29,x^=n,N=N>>>8|N<<24,N+=w|0,N^=L+38293,w=w<<3|w>>>29,w^=N;x=[x,n];V[T]^=x[0];T+1<V.length&&(V[T+1]^=x[1])}};
XxK=function(V,l,I,H,T){var x=(4-(kw.length+I.length)%4)%4,n=new Uint8Array(4+x+kw.length+4+I.length),w=new DataView(n.buffer),N=0;w.setUint32(N,Math.random()*4294967295);N=N+4+x;n.set(kw,N);N+=kw.length;w.setUint32(N,T);n.set(I,N+4);F6J(n,H);return V.insert(l,function(L){return void globalThis.sessionStorage.removeItem(L)})?jvt(l,_.rg(n))?"s":"t":"i"};
zmW=function(V,l){var I=globalThis.sessionStorage.getItem(V);if(!I)return["m"];try{var H=_.TE(I);F6J(H,l)}catch(T){return globalThis.sessionStorage.removeItem(V),["c"]}for(l=4;l<7&&H[l]===0;)l++;for(I=0;I<kw.length;I++)if(H[l++]!==kw[I])return globalThis.sessionStorage.removeItem(V),["d"];I=(new DataView(H.buffer)).getUint32(l);return Math.floor(Date.now()/1E3)>=I?(globalThis.sessionStorage.removeItem(V),["e"]):["a",new Uint8Array(H.buffer,l+4)]};
yqg=function(V){return globalThis.TextEncoder?(new TextEncoder).encode(V):_.FG(V)};
tOy=function(V){var l=V,I;return function(){if(l){var H=l;l=void 0;I=H.apply(this,arguments)}return I}};
GUg=function(V){return Qa(function(l){if(l instanceof V)return!0;var I,H,T=l==null?void 0:(I=l.ownerDocument)==null?void 0:(H=I.defaultView)==null?void 0:H[V.name];return rqy(T)&&l instanceof T})};
_.yo=function(V,l,I){_.XG.call(this);this.JSC$7865_listener_=V;this.JSC$7865_interval_=l||0;this.handler_=I;this.callback_=(0,_.zN)(this.JSC$7867_doAction_,this)};
_.tK=function(V){V=Ed1(V);return _.Xj(V)};
Ed1=function(V){return V===null?"null":V===void 0?"undefined":V};
ody=function(V){if(V&&V.focus)if(V!==document.activeElement)V.focus();else return Jqy(function(){return _.d(function(l){document.activeElement&&document.activeElement.blur();return l.return(Jqy(function(){V.focus()}))})})};
_.hm3=function(V){var l=l===void 0?5:l;setTimeout(function(){var I;return _.d(function(H){H.nextAddress==1&&(I=document.activeElement);if(H.nextAddress!=5)return(document.activeElement===I||document.activeElement===document.body)&&l>=0&&V?_.K(H,ody(V),5):H.jumpTo(0);if(document.activeElement===V)return H.return();V=V.parentElement;--l;return H.jumpTo(2)})},15)};
Jqy=function(V){return new Promise(function(l){requestAnimationFrame(function(){l(V())})})};
Dlc=function(V){if(_.ro)V(_.ro);else{var l;((l=P2K)!=null?l:P2K=[]).push(V)}};
EX=function(){!_.ro&&_.GN&&_.ZAJ(_.GN());return _.ro};
_.ZAJ=function(V){_.ro=V;var l;(l=P2K)==null||l.forEach(Dlc);P2K=void 0};
_.JK=function(V){_.ro&&_.ro.beforeLoadModuleCode(V)};
_.o8=function(){_.ro&&_.ro.JSC$8804_setLoaded()};
hK=function(V){return(0,_.tI)(V)?Number(V):String(V)};
S_y=function(V){this.action=V;this.wfv=!1};
Rmf=function(V,l){S_y.call(this,"set-drive-options");this.appId=V;this.appOrigin=l};
Qv1=function(V){S_y.call(this,"visibility");this.visible=V};
cqN=function(V,l,I){Pv.call(this,V,l,I)};
W6K=function(V){Dl.call(this,V)};
bA1=function(V){V=V&&V.getWindow()||window;return V.gadgets&&V.gadgets.rpc};
MOq=function(V,l){var I=l&&l.getWindow()||window;if(bA1(l))V();else if(q_T)q_T.push(V);else var H=q_T=[V],T=I.setInterval(function(){if(bA1(l)){I.clearInterval(T);for(var x=0;x<H.length;x++)H[x]();q_T=null}},100)};
pxq=function(V,l){var I=new Zl(V);_.$w(l,I);var H={passive:!1};l.listen(I,"mousewheel",function(T){return void svT(V,T)},H).listen(V,"scroll",function(T){return void svT(V,T)},H)};
svT=function(V,l){var I;a:{for(I=l.target;I;){if(I.nodeType==1){var H=_.Sk(I,"overflowY");if(H=="auto"||H=="scroll")break a}I=I.parentNode}I=null}if(!I||!_.R8(V,I)||I.scrollHeight==I.clientHeight||l.deltaY>0&&Math.abs(I.scrollTop-(I.scrollHeight-I.clientHeight))<=1||l.deltaY<0&&I.scrollTop==0)l.preventDefault(),l.stopPropagation()};
sX=function(V,l,I,H,T,x,n,w,N){w=w===void 0?!1:w;N=N===void 0?!1:N;Pv.call(this,void 0,void 0,void 0);Pv.call(this,x?x+" picker modal-dialog":"picker modal-dialog",!0,I);_.Qo(V,"protocol");this.iframeManager_=new Aqg;this.targetId_=cv();this.rpcToken_=cv();V=_.Wv(V);_.bO(V,"hostId");I=_.bO(V,"parent");this.useGapi_=!N&&!0||(I==null?void 0:I.includes("onepick.corp.google.com"));w&&_.qx(V,"fv2","true");this.setUrl(V.toString());this.preferredDialogWidth_=H;this.preferredDialogHeight_=T;H!==void 0||
T!==void 0?H=!0:(H=_.bO(_.Wv(V.toString()),"hostId"),uif||(uif=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),H=!uif.has(H));this.autoSizeDialog_=H;this.JSC$8058_gadgetsDomHelper_=n||this.JSC$8009_dom_;l&&(n=this.JSC$8058_gadgetsDomHelper_,l=_.bO(_.Wv(this.JSC$8060_url_),"grugl")=="true"?vdw:OAf,bA1(n)||(n=n||kp(document),H=n.createElement("SCRIPT"),_.gp(H,l),H.type="text/javascript",n.JSC$7235_document_.body.appendChild(H)));
V=V.toString();l=null;n=V.indexOf("/picker?");n>-1?l=V.substring(0,n+8-1):KK(V,"/picker")&&(l=V);l&&this.setRelayUrl(l+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(V=this.buttons_,V.JSC$8043_element_=this.buttonEl_,V.render()):_.iY(this.buttonEl_,C2g),_.Mx(this.buttonEl_,!!this.buttons_))};
_.mlq=function(V){var l=l===void 0?aYN:l;var I=_.iN(V),H=function(x){x=_.U(x);x.next();x=pS(x);return l(I,x)},T=function(x){var n=_.U(x);
x=n.next().value;n=pS(n);return V.apply(x,n)};
return function(){var x=_.Q5.apply(0,arguments),n=this||_.nK,w=fYJ.get(n);w||(w={},fYJ.set(n,w));return _.gdK(w,[this].concat(_.oI(x)),T,H)}};
AK=function(V){var l={};V=V.replace(/\r/g,"").split("\n");for(var I=0;I<V.length;I++){var H=V[I],T=H.indexOf(":");T<0||(l[H.substring(0,T)]=H.substring(T+2,H.length))}return l};
iAt=function(V,l,I){I=I===void 0?function(){}:I;
l=_.U(l);for(var H=l.next();!H.done;H=l.next()){var T=_.U(H.value);H=T.next().value;T=T.next().value;if(H instanceof Array&&H.includes(V)||H===V)return T()}return I()};
_.uO=function(V,l,I){I=I===void 0?function(){}:I;
return V?l():I()};
_.lBW=function(V){var l;return((l=VQy.documentOverride)!=null?l:V).__wizdispatcher};
OX=function(V){var l=_.vv;_.vv=V;return l};
H01=function(V,l){var I;if((I=V)==null?0:I.isDisposed)throw Error("ob`"+String(V.debugName));for(;V!==void 0;){I=V;if(I.retrieve)return I.retrieve(l,{optional:!0});V=V.parent}return IBq};
CS=function(V){return{"\u0275prov":{providedIn:"root",token:Symbol(V),factory:void 0,value:void 0}}};
_.a8=function(V){var l=OX(V);V={};return V[Symbol.dispose]=function(){OX(l)},V};
T0c=function(V,l){V.disposables||(V.disposables=[]);V.disposables.push(l)};
fS=function(V){var l=_.vv;l&&!l.isDisposed&&(T0c(l,function(){return void B0f(V)}),V.parent=l)};
xDy=function(V){if(V.disposables){for(var l=_.U(V.disposables),I=l.next();!I.done;I=l.next())I=I.value,I();V.disposables.length=0}};
B0f=function(V){if(!V.isDisposed){V.isDisposed=!0;var l;(l=V[Symbol.dispose])==null||l.call(V);delete V.parent;xDy(V)}};
jSy=function(V){var l={retrieve:function(I){switch(I.\u0275prov.token){case UDT.\u0275prov.token:var H=V.rootElement;break;case ne3.\u0275prov.token:H=V.modelRootElement;break;case $Dg.\u0275prov.token:H=V.appContext;break;case dDw.\u0275prov.token:H=V.rendererData;break;case wa3.\u0275prov.token:H=V.injectingConstructor;break;case N03.\u0275prov.token:H=V.dispatcher}if(H)I=H;else a:{for(H=l.parent;H;){var T=H;if(T.retrieve){I=T.retrieve(I);break a}H=H.parent}H=I.\u0275prov.token;T=Kuf[H];T!==void 0?
I=T:(T=I.\u0275prov.providedIn,I.\u0275prov.factory?(I=I.\u0275prov.factory(),H&&T==="root"&&(Kuf[H]=I)):I=IBq)}return I}};
fS(l);return l};
Lug=function(V){var l="";var I=_.nK._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById&&(V=document.getElementById(V))){var H=V.tagName.toUpperCase();if(H=="SCRIPT"||H=="LINK")l=V.src?V.src:V.getAttribute("href")}if(I&&l){if(I!=l)throw Error("wb`"+I+"`"+l);l=I}else l=I||l;if(!Yhq(l))throw Error("xb");return l};
Fut=function(){if(!e6q){e6q=!0;try{var V=Lug(_.nK._F_jsUrl?"":"base-js")}catch(H){return}var l=kQt(go(V)),I=Object.keys(l);I.length!==0&&Dlc(function(H){for(var T=_.U(I),x=T.next();!x.done;x=T.next()){x=x.value;for(var n=_.U(Object.keys(l[x])),w=n.next();!w.done;w=n.next())H.addExtraEdge(x,w.value)}})}};
Xa3=function(V,l,I){var H;return V&&l?V+"__"+l:(H=V!=null?V:l)!=null?H:I};
y2w=function(){var V=Object.assign({},z6t);Object.getOwnPropertyNames(z6t).forEach(function(l){mF[l]!==void 0&&(V[l]=mF[l])});
return V};
tQ1=function(V,l){if(mF.enablePerformanceTiming){var I,H;(H=(I=performance).mark)==null||H.call(I,V+"Start__"+l)}};
r2N=function(V,l){if(mF.enablePerformanceTiming){var I,H;(H=(I=performance).measure)==null||H.call(I,V+"__"+l,V+"Start__"+l)}};
Ee1=function(V,l){var I=Object.create(GQw);I.debugName=l;!_.vv||fS(I);l=OX(I);try{V(I)}finally{OX(l)}return function(){return void B0f(I)}};
h6N=function(V){return J2t(V)&&oeK in V};
PGN=function(V,l){return Object.is(V,l)};
V9=function(V){var l=iO;iO=V;return l};
R6N=function(V){if(l$)throw Error("da");if(iO!==null){var l=iO.nextProducerIndex++;DDy(iO);l<iO.producerNode.length&&iO.producerNode[l]!==V&&Ix(iO)&&Z0t(iO.producerNode[l],iO.producerIndexOfThis[l]);iO.producerNode[l]!==V&&(iO.producerNode[l]=V,iO.producerIndexOfThis[l]=Ix(iO)?Shc(V,iO,l):0);iO.producerLastReadVersion[l]=V.version}};
Wuy=function(V){if(!Ix(V)||V.dirty)if(V.dirty||V.lastCleanEpoch!==QSN)(V.producerMustRecompute(V)||c2c(V))&&V.producerRecomputeValue(V),V.dirty=!1,V.lastCleanEpoch=QSN};
b0N=function(V){if(V.liveConsumerNode!==void 0){var l=l$;l$=!0;try{for(var I=_.U(V.liveConsumerNode),H=I.next();!H.done;H=I.next()){var T=H.value;T.dirty||(V=void 0,T.dirty=!0,b0N(T),(V=T.consumerMarkedDirty)==null||V.call(T,T))}}finally{l$=l}}};
qh3=function(){var V;return((V=iO)==null?void 0:V.consumerAllowSignalWrites)!==!1};
MQt=function(V){V&&(V.nextProducerIndex=0);return V9(V)};
sSt=function(V,l){V9(l);if(V&&V.producerNode!==void 0&&V.producerIndexOfThis!==void 0&&V.producerLastReadVersion!==void 0){if(Ix(V))for(l=V.nextProducerIndex;l<V.producerNode.length;l++)Z0t(V.producerNode[l],V.producerIndexOfThis[l]);for(;V.producerNode.length>V.nextProducerIndex;)V.producerNode.pop(),V.producerLastReadVersion.pop(),V.producerIndexOfThis.pop()}};
c2c=function(V){DDy(V);for(var l=0;l<V.producerNode.length;l++){var I=V.producerNode[l],H=V.producerLastReadVersion[l];if(H!==I.version)return!0;Wuy(I);if(H!==I.version)return!0}return!1};
Shc=function(V,l,I){pat(V);if(V.liveConsumerNode.length===0&&V.producerNode!==void 0)for(var H=0;H<V.producerNode.length;H++)V.producerIndexOfThis[H]=Shc(V.producerNode[H],V,H);V.liveConsumerIndexOfThis.push(I);return V.liveConsumerNode.push(l)-1};
Z0t=function(V,l){pat(V);if(V.liveConsumerNode.length===1&&V.producerNode!==void 0)for(var I=0;I<V.producerNode.length;I++)Z0t(V.producerNode[I],V.producerIndexOfThis[I]);I=V.liveConsumerNode.length-1;V.liveConsumerNode[l]=V.liveConsumerNode[I];V.liveConsumerIndexOfThis[l]=V.liveConsumerIndexOfThis[I];V.liveConsumerNode.length--;V.liveConsumerIndexOfThis.length--;l<V.liveConsumerNode.length&&(I=V.liveConsumerIndexOfThis[l],V=V.liveConsumerNode[l],DDy(V),V.producerIndexOfThis[I]=l)};
Ix=function(V){var l,I;return V.consumerIsAlwaysLive||((I=V==null?void 0:(l=V.liveConsumerNode)==null?void 0:l.length)!=null?I:0)>0};
DDy=function(V){V.producerNode!=null||(V.producerNode=[]);V.producerIndexOfThis!=null||(V.producerIndexOfThis=[]);V.producerLastReadVersion!=null||(V.producerLastReadVersion=[])};
pat=function(V){V.liveConsumerNode!=null||(V.liveConsumerNode=[]);V.liveConsumerIndexOfThis!=null||(V.liveConsumerIndexOfThis=[])};
nlg=function(V){var l=Object.create(U4N);l.computation=V;V=function(){Wuy(l);R6N(l);if(l.value===HT)throw l.error;return l.value};
V[T0]=l;return V};
d4J=function(V){var l=Object.create($4q);l.value=V;V=function(){R6N(l);return l.value};
V[T0]=l;return V};
K5c=function(V,l){qh3()||wFy(V);if(!V.equal(V.value,l)){V.value=l;V.version++;QSN++;b0N(V);var I;(I=NTK)==null||I(V)}};
BT=function(V){var l=V9(null);try{return V()}finally{V9(l)}};
YZg=function(V){var l={};return l[jVg]=V,l};
_.xi=function(V,l,I){I=I===void 0?"":I;V=d4J(V);var H=V[T0];H.debugName=Xa3(l==null?void 0:l.debugName,I,"[signal]");(l==null?void 0:l.equals)!=null&&(H.equal=l.equals);return[V,function(T){tQ1("signalSet",H.debugName);try{if(T&&T[jVg]){var x=T[jVg];qh3()||wFy(H);K5c(H,x(H.value))}else K5c(H,T)}finally{r2N("signalSet",H.debugName)}}]};
exN=function(V,l){var I=_.U(_.xi(V,void 0,"cPpJzc"));V=I.next().value;I=I.next().value;V[L53]=I;V[US]=l;return V};
kry=function(V){return!!V&&typeof V==="object"&&Object.getPrototypeOf(V)===Object.prototype};
F51=function(V){return typeof V==="function"&&L53 in V&&typeof V[L53]==="function"};
XFK=function(V,l){Object.defineProperty(V,US,{get:function(){return l}})};
dx=function(V,l){if(nN(V)){var I=V.map(function(x){return dx(x,l)});
XFK(I,l);return I}if(kry(V)){I={};V=_.U(Object.entries(V));for(var H=V.next();!H.done;H=V.next()){var T=_.U(H.value);H=T.next().value;T=T.next().value;I[H]=dx(T,l)}XFK(I,l);return I}return exN(V,l)};
zx3=function(V){if(nN(V))return V.map(function(T){return zx3(T)});
if(kry(V)){var l={};V=_.U(Object.entries(V));for(var I=V.next();!I.done;I=V.next()){var H=_.U(I.value);I=H.next().value;H=H.next().value;l[I]=zx3(H)}return l}return F51(V)?V():V};
ttt=function(){var V={height:0,width:0};if(!kry(V))throw Error("Jb");var l=Symbol("Kb");return[dx(V,l),function(I,H){if(I[US]===l)if(typeof H==="function"){var T=[].concat(_.oI(zx3(I)));H=H(T)||T;yFy(I,[].concat(_.oI(H)))}else yFy(I,H);else throw Error("Lb");}]};
yFy=function(V,l){if(F51(V))V[L53](l);else if(nN(V)&&nN(l))l=dx(l,V[US]),V.length=0,V.push.apply(V,_.oI(l));else if((kry(V)||nN(V))&&(nN(l)||typeof l==="object"&&l!==null)){l=_.U(Object.entries(l));for(var I=l.next();!I.done;I=l.next()){var H=_.U(I.value);I=H.next().value;H=H.next().value;var T=V,x=T[I];Object.hasOwn(V,I)?yFy(x,H):T[I]=dx(H,V[US])}}else throw Error("Mb");};
rFK=function(V){return Object.create(Object.assign({},wx,V))};
El1=function(){var V;return(V=Grg)!=null?V:Grg=rFK({consumerAllowSignalWrites:!0})};
_.Ny=function(V,l,I){I=I===void 0?"":I;V=nlg(V);var H=V[T0];H.debugName=Xa3(l==null?void 0:l.debugName,I,"[computed]");(l==null?void 0:l.equals)!=null&&(H.equal=l.equals);return V};
Yi=function(V){var l=V9(JFy);try{V()}finally{V9(l)}};
SZt=function(V){if(!V.isDisposed){switch(V.effectType){case olt:hxt.schedule(V);break;case Px3:D41.schedule(V);break;default:_.AB(V.effectType)}V.hasRun||ZOg()}};
QVJ=function(V){Rxf.push(V);return function(){var l=Rxf.indexOf(V);l!==-1&&Rxf.splice(l,1)}};
ZOg=function(){for(var V=_.U(cFy),l=V.next();!l.done;l=V.next())l.value.flush()};
bO1=function(V){for(var l=_.U(V),I=l.next();!I.done;I=l.next()){var H=I.value;for(I=[H];H.parent!==void 0;)H=H.parent,W5g(H)&&V.has(H)&&I.push(H);for(;I.length>0;){H=_.Ri(I.pop());try{H.run()}finally{V.delete(H)}}}};
sVy=function(V){qZK--;if(V)Mtg.length=0;else if(!(qZK>0))for(;Mtg.length>0;){V=Mtg.shift();if(!V)throw Error("Nb");try{V()}catch(l){$T(l)}}};
pF1=function(V){var l=V.component;var I=V.debugInstance;V=V.fn;var H,T=(H=l.debugName)!=null?H:l.name;LN.push({name:I?T+" ("+I+")":T,isReactive:l.componentType!==e_});l=V();LN.pop();return l};
ki=function(){return LN[LN.length-1]};
Fk=function(){var V=LN[LN.length-1];return V?V.isReactive:!1};
Xk=function(V,l){l=l===void 0?{}:l;var I=LN.length;l.stack&&(LN=[].concat(_.oI(l.stack)));try{return V()}catch(x){V=x;AFy(V);if(V!==uvt){vlW=LN.slice();l=[];for(var H=_.vv;H;){var T=void 0;l.push((T=H.debugName)!=null?T:"[context]");T=void 0;H=(T=H.parent)!=null?T:null}OOK=l.reverse()}uvt=V;throw V;}finally{I=LN.length-I,I>0&&LN.splice(-I)}};
AFy=function(V){var l=LN;if(l.length!==0&&!V.componentStack){var I=l.slice(-20).reverse().map(function(H){return H.name}).join(" > ");
I=V.message+"\n\nComponent stack: "+I;try{V.componentStack=l.slice(),mF.enableComponentStacksInErrorMessages&&(V.stack&&(V.stack=V.stack.replace(V.message,I)),V.message=I)}catch(H){}}};
Cxt=function(V,l,I){l=Object.create(l);l.componentStack=LN.slice();l.effectFn=V;I&&(l.debugName=I);fS(l);return l};
z0=function(V,l,I){I=I===void 0?3:I;var H,T;var x=(T=(H=vlW)==null?void 0:H.slice())!=null?T:[];var n,w;H=(w=(n=OOK)==null?void 0:n.slice())!=null?w:[];l={componentStack:x,contextTrace:H,errorSeverity:I,featureFlags:y2w(),tagName:l};return[V,l]};
_.y9=function(V,l){V=Cxt(V,a1c,l);l=iO;if(W5g(l)&&l.effectType===Px3){var I;(I=mF.handleError)==null||I.call.apply(I,[mF].concat(_.oI(z0(Error("ub")))))}SZt(V)};
_.t0=function(V,l){V=Cxt(V,f13,l);SZt(V)};
_.rx=function(V){var l=_.vv;if(l){var I=LN.slice();T0c(l,function(){var H=V9(El1());try{Xk(function(){return void V()},{stack:I})}finally{V9(H)}})}};
G0=function(V,l){var I={};(l===void 0||l)&&fS(I);l=OX(I);try{V(I)}finally{OX(l)}return function(){return void B0f(I)}};
_.ES=function(V){return typeof V==="function"?V():(V==null?0:V[glJ])?V.get():V};
m4y=function(V){if(_.vv)throw Error("sb");G0(V,!1)};
J0=function(V,l){V=OX(V);try{return BT(l)}finally{OX(V)}};
lUW=function(V,l,I){if(Object.hasOwnProperty.call(iOg,V)&&(V=iOg[V],Object.hasOwnProperty.call(V,l)&&(V=V[l],V instanceof Array))){for(var H=null,T=!1,x=0,n=V.length;x<n;++x){var w=V[x],N=w.contingentAttribute;if(!N)return w.contract;H===null&&(H={});N=Object.hasOwnProperty.call(H,N)?H[N]:H[N]=I(N);if(N===w.requiredValue)return w.contract;N==null&&(T=!0)}if(T)return null}l=Vhc[l];return typeof l==="number"?l:null};
Tug=function(V,l,I){var H=null;(V=IUt[V])&&(H=V[l]);return typeof H!=="number"&&((V=IUt["*"])&&(H=V[l]),typeof H!=="number")?!1:!0===HCT[H][String(I).toLowerCase()]};
xKg=function(V,l){l=lUW(V.toLowerCase(),l,function(){var H;(H=mF.handleError)==null||H.call.apply(H,[mF].concat(_.oI(z0(Error("Sb"),V.toLowerCase()))))});
if(l===null)return null;var I;return(I=Buf[l])!=null?I:null};
UKN=function(V,l,I){if(I===null||I===void 0)return I;V=xKg(V,l);return V===null?I:V(l,I)};
nzw=function(){};
ox=function(V,l){for(;V.length>l;)V.pop()};
$KT=function(V){V=Array(V);ox(V,0);return V};
dKw=function(V,l,I){if(I==null)V.removeAttribute(l);else{var H;(H=l.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":l.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?V.setAttributeNS(H,l,I):V.setAttribute(l,I)}};
wIg=function(V,l,I){V[l]=I};
K41=function(V,l,I){V=V.style;if(typeof I==="string")V.cssText=I;else{V.cssText="";for(var H in I)if(Nu1.call(I,H)){l=V;var T=H,x=I[H];T.indexOf("-")>=0?l.setProperty(T,x):l[T]=x}}};
jX1=function(V,l,I){var H=typeof I;H==="object"||H==="function"?V[l]=I:dKw(V,l,I)};
Ywq=function(){var V=new nzw;V[h0.default]=jX1;V.style=K41;return V};
L4y=function(V,l,I,H){(H[l]||H[h0.default])(V,l,I)};
kOq=function(V,l,I){l=new ewK(l,I);return V.__incrementalDOMData=l};
PT=function(V,l){if(V.__incrementalDOMData)return V.__incrementalDOMData;var I=V.nodeType===1?V.localName:V.nodeName,H=V.nodeType===1?V.getAttribute("key"):null;l=kOq(V,I,V.nodeType===1?H||l:null);if(V.nodeType===1&&(V=V.attributes,I=V.length)){H=l._attrsArr||(l._attrsArr=$KT(I*2));for(var T=0,x=0;T<I;T+=1,x+=2){var n=V[T],w=n.value;H[x]=n.name;H[x+1]=w}}return l};
F4w=function(V,l,I,H,T){return l==I&&H==T};
XIy=function(V){for(var l=Dn,I=Zn();I!==V;){var H=I.nextSibling;l.removeChild(I);Rx.deleted.push(I);I=H}};
Zn=function(){return Q9?Q9.nextSibling:Dn.firstChild};
cT=function(){Q9=Zn()};
tht=function(V,l,I){cT();var H;a:{if(H=Q9){do{var T=H,x=V,n=l,w=PT(T,n);if(zwt(T,x,w.nameOrCtor,n,w.key))break a}while(l&&(H=H.nextSibling))}H=null}H||(V==="#text"?(I=WT.createTextNode(""),kOq(I,"#text",null),V=I):(H=WT,T=Dn,typeof V==="function"?H=new V:H=(T=V==="svg"?"http://www.w3.org/2000/svg":V==="math"?"http://www.w3.org/1998/Math/MathML":T==null||PT(T).nameOrCtor==="foreignObject"?null:T.namespaceURI)?H.createElementNS(T,V):H.createElement(V),kOq(H,V,l),V=H,I&&V.setAttribute("nonce",I)),Rx.created.push(V),
H=V);I=H;if(I!==Q9){if(yl1.indexOf(I)>=0)for(V=Dn,l=I.nextSibling,H=Q9;H!==null&&H!==I;)T=H.nextSibling,V.insertBefore(H,l),H=T;else Dn.insertBefore(I,Q9);Q9=I}};
rlT=function(V,l,I){tht(V,l,I);Dn=Q9;Q9=null;return Dn};
GOw=function(){XIy(null);Q9=Dn;Dn=Dn.parentNode};
b$=function(){Q9=Dn.lastChild};
ozt=function(V,l){l=l===void 0?{}:l;var I=l.matches===void 0?F4w:l.matches;return function(H,T,x){var n=Rx,w=WT,N=yl1,L=qy,e=My,k=Q9,X=Dn,r=zwt;WT=H.ownerDocument;Rx=new Ez1(H);zwt=I;qy=[];My=[];Q9=null;var E=Dn=H.parentNode,D,Z=Jl1.call(H);if((D=Z.nodeType===11||Z.nodeType===9?Z.activeElement:null)&&H.contains(D)){for(Z=[];D!==E;)Z.push(D),D=D.parentNode||(E?D.host:null);E=Z}else E=[];yl1=E;try{return V(H,T,x)}finally{H=Rx,sS&&H.deleted.length>0&&sS(H.deleted),WT=w,Rx=n,zwt=r,qy=L,My=e,Q9=k,Dn=X,
yl1=N}}};
hwt=function(V,l,I,H){pN.push(L4y);pN.push(V);pN.push(l);pN.push(I);pN.push(H)};
DKf=function(V,l,I){var H=My;l=l._attrsArr||(l._attrsArr=$KT(H.length));for(var T=!l.length||!1,x=0;x<H.length;x+=2){var n=H[x];if(T)l[x]=n;else if(l[x]!==n)break;var w=H[x+1];if(T||l[x+1]!==w)l[x+1]=w,hwt(V,n,w,I)}if(x<H.length||x<l.length){for(x=T=x;x<l.length;x+=2)A0[l[x]]=l[x+1];for(x=T;x<H.length;x+=2)T=H[x],n=H[x+1],A0[T]!==n&&hwt(V,T,n,I),l[x]=T,l[x+1]=n,delete A0[T];ox(l,H.length);for(var N in A0)hwt(V,N,void 0,I),delete A0[N]}V=PgN;PgN=I=pN.length;for(N=V;N<I;N+=5)(0,pN[N])(pN[N+1],pN[N+
2],pN[N+3],pN[N+4]);PgN=V;ox(pN,V);ox(H,0)};
u$=function(V){tht("#text",null);var l=Q9;var I=PT(l);if(I.text!==V){I=I.text=V;for(var H=1;H<arguments.length;H+=1)I=(0,arguments[H])(I);l.data!==I&&(l.data=I)}};
W4c=function(V,l,I){if(I===!1&&ZCt.has(l))dKw(V,l,null);else if(l!=="idomKey"&&l!=="skip"&&l!=="skipchildren"&&l!=="children"&&l!=="el"){if(l.startsWith("on"))if(l[2]===":"){if(I===void 0||I===null){var H;(H=mF.handleError)==null||H.call.apply(H,[mF].concat(_.oI(z0(Error("Yb`"+l),V.tagName))));V[l]=void 0;return}if(typeof I!=="object"||I===null)throw Error("Zb`"+l+"`"+typeof I);if(typeof I.getFn!=="function")throw Error("$b`"+l+"`"+Object.keys(I));var T=I.getFn(0),x=l.slice(3);if((H=Fk())&&V["on"+
x]===void 0)V.addEventListener(x,T),_.rx(function(){return void V.removeEventListener(x,T)});
else if(H||!SwJ.includes(x))V["on"+x]=T}else{Rwq(V,l,I);return}else if(l.startsWith("data-")&&typeof I==="string")try{I=QX3(I)}catch(n){I="zSoyz"}typeof I!=="function"||V._disposeEffects!=null?(mF.enableAttributeSanitization&&(I=UKN(V.tagName,l,I)),l==="style"?clf(V,l,I):l.startsWith("prop:")?(l=l.slice(5),V[l]=I):Rwq(V,l,I)):(V._signalProps||(V._signalProps=[]),V._signalValues||(V._signalValues=[]),V._signalProps.push(l))}};
bCq=function(V,l,I){I=(I===void 0?{}:I).isReactive;if(l==null?0:l.el){var H=l.el;if(typeof H==="function")H(V);else{var T;(T=H.onRender)==null||T.call(H,V);V._disposeRef||(V._disposeRef=function(){var x;(x=H.onUnmount)==null||x.call(H);delete V._disposeRef},I&&_.rx(function(){var x;
return void((x=V._disposeRef)==null?void 0:x.call(V))}))}}};
qwK=function(V){return J2t(V)&&vT in V};
Mh1=function(V){return qwK(V)?V[vT].flattened:V};
sXt=function(V,l){var I=_.Q5.apply(2,arguments),H;l=(H=l)!=null?H:{};H={};return H.type=V,H.props=l,H.children=I,H[OS]=!0,H};
_.CN=function(V){return V.children};
ax=function(V){var l=pIT!==sXt;pIT=V?Aly:sXt;return l};
fN=function(V){return _.m3(V)?"nodeType"in V:!1};
gx=function(){return document.createTextNode("")};
mm=function(V){V=document.createTextNode(String(V));V._isSignalTextNode=!0;return V};
uHt=function(V){var l=document.createElement("div");if(!(V instanceof MV)){if(V.contentKind!==i$)throw Error("Wb");V=sq(V.toString())}_.iY(l,V);V=_.U(l.childNodes);for(var I=V.next();!I.done;I=V.next())I.value._isSafeOrSanitizedHtmlNode=!0;return l};
V0=function(V){V=typeof V;return V==="string"||V==="number"||V==="boolean"};
vzN=function(V){return V instanceof kn||oO(V)||"function"==typeof _.II&&V instanceof _.II||!1};
OCt=function(V,l){var I=V.parentElement;if(!I)return l;I.replaceChild(l,V);return l};
CgK=function(V,l){var I=V[0].parentElement;if(I)if(V[0].previousSibling||V[V.length-1].nextSibling){I.insertBefore(l,V[0]);for(var H=V.length-1;H>=0;H--)I.removeChild(V[H])}else I.textContent="",I.appendChild(l);return l};
aUt=function(V,l){if(V[0].parentElement)for(var I=V[0].parentElement,H=l.length,T=V.length,x=H,n=0,w=0,N=V[T-1].nextSibling,L=null;n<T||w<x;)if(V[n]===l[w])n++,w++;else{for(;V[T-1]===l[x-1];)T--,x--;if(T===n)for(var e=x<H?w?l[w-1].nextSibling:l[x-w]:N;w<x;){var k=l[w++];I.insertBefore(k,e)}else if(x===w)for(;n<T;)e=V[n],L&&L.has(e)||I.removeChild(e),n++;else if(V[n]===l[x-1]&&l[w]===V[T-1])e=V[--T].nextSibling,I.insertBefore(l[w++],V[n++].nextSibling),I.insertBefore(l[--x],e),V[T]=l[x];else{if(!L)for(L=
new Map,e=w;e<x;)L.set(l[e],e++);e=L.get(V[n]);if(e==null)I.removeChild(V[n]),n++;else if(w<e&&e<x){k=n;for(var X=1,r=void 0;++k<T&&k<x&&(r=L.get(V[k]))!=null&&r===e+X;)X++;if(X>e-w)for(k=V[n];w<e;)I.insertBefore(l[w++],k);else I.replaceChild(l[w++],V[n++])}else n++}}return l};
gzt=function(V){if(Array.isArray(V)){if(V.length>1)throw Error("ic`"+V.length+"`"+V.map(fUw).join(", "));V=V[0]}if(V==null)return null;if(!(V instanceof _.Cd)){var l,I;if((l=window)==null?0:(I=l.trustedTypes)==null?0:I.isScript(V))throw Error("hc");if(String(V).trim().length===0)return null;throw Error("jc`"+fUw(V));}return V};
mKt=function(V){if(Array.isArray(V)){if(V.length>1)throw Error("kc`"+V.length+"`"+V.map(fUw).join(", "));V=V[0]}if(V==null)return null;if(!gny(V)){if(String(V).trim().length===0)return null;throw Error("lc`"+fUw(V));}return V};
fUw=function(V){return"("+typeof V+") "+(V!=null&&typeof V==="object"?V.constructor.name:typeof V)+" "+V};
VXT=function(V,l){return iCW(V,l)};
iCW=function(V,l){function I(){T=!1;qZK++;var x=H[0],n=H[vT].flattened,w=ax(!0);try{var N=V(),L=lhW(x,N,H);Array.isArray(L)||(H[vT].flattened=[L]);var e=H[vT].flattened;if(n&&(!Array.isArray(n)||n.length!==0)){var k=Array.isArray(n)?n[0]:n,X=k[lt],r=k._disposeEffects;k._disposeEffects=void 0;k=Array.isArray(e)?e[0]:e;k[lt]=X;k[lt]&&(k[lt].numNodes=k===e?1:e.length);k._disposeEffects=r}H[0]=L;sVy(!1)}catch(E){throw sVy(!0),E;}finally{ax(w)}}
var H=Ih3(),T=!0;_.y9(function(){(H8W==null?0:H8W.logger)&&!T?H8W.logger.logGraft(H[0],I):I()},l);
return H};
lhW=function(V,l,I){for(;typeof l==="function";)l=l();if(l!=null&&l[OS]){var H,T,x;(x=mF.handleError)==null||x.call.apply(x,[mF].concat(_.oI(z0(Error("mc`"+((H=l.type)==null?void 0:H.TAG_NAME)),(T=l.type)==null?void 0:T.TAG_NAME))))}if(V==null)return l==null?gx():V0(l)?mm(l):vzN(l)?mm(l.toString()):fN(l)?l:l.length===0?gx():TSt(l,I);if(fN(V)){if(l==null)return OCt(V,gx());if(V0(l))return BSg(V,l);if(vzN(l))return BSg(V,l.toString());if(fN(l))return OCt(V,l);if(l.length===0)return OCt(V,gx());l=TSt(l,
I);aUt([V],I[vT].flattened);return l}V=Iw(V);if(l==null)return CgK(V,gx());if(V0(l))return CgK(V,mm(l));if(vzN(l))return CgK(V,mm(l.toString()));if(fN(l))return aUt(V,[l])[0];if(l.length===0)return CgK(V,gx());l=TSt(l,I);aUt(V,I[vT].flattened);return l};
BSg=function(V,l){V.nodeType===Node.TEXT_NODE?V.textContent!==String(l)&&(V.textContent=String(l)):V=OCt(V,mm(l));return V};
Iw=function(V,l,I){return xzW(V,l!=null?l:[],I===void 0?!1:I)};
TSt=function(V,l){var I=Iw(V,void 0,!0);if(I.length===0)return gx();l[vT].flattened=I;return V};
xzW=function(V,l,I,H,T){l=l===void 0?[]:l;I=I===void 0?!1:I;T=T===void 0?-1:T;if(V==null)return l;if(V instanceof HO)return V=V.render(),xzW(V,l,I,H,T);if(fN(l)&&l.nodeType===Node.ELEMENT_NODE)switch(l.tagName){case "SCRIPT":I=gzt(V);I!==null&&_.fd(l,I);return;case "STYLE":I=mKt(V);I!==null&&(l.textContent=_.mV3(I));return}V0(V)&&(V=mm(V),H&&I&&(H[T]=V));if(V!=null&&V.contentKind===i$||V instanceof MV){I=uHt(V);I=Array.from(I.childNodes);I=_.U(I);for(V=I.next();!V.done;V=I.next())UzN(l,V.value);return l}vzN(V)&&
(V=mm(V.toString()),H&&I&&(H[T]=V));if(fN(V))return UzN(l,V);if(Array.isArray(V)){for(var x=0;x<V.length;x++)xzW(V[x],l,I,V,x);return l}if(typeof V==="function"){V=iCW(V,"qmF2ne")[0];if(Array.isArray(V)){I=_.U(V);for(V=I.next();!V.done;V=I.next())UzN(l,V.value);return l}H&&I&&(H[T]=V);return UzN(l,V)}if(V!=null&&V[OS]){H=ax(!0);T=pIT;try{x=T.apply(null,[V.type,V.props].concat(_.oI(V.children)))}finally{ax(H)}return xzW(x,l,I)}var n;(n=mF.handleError)==null||n.call.apply(n,[mF].concat(_.oI(z0(Error("nc")))));
return l};
Ih3=function(V){var l={};l=Object.assign([],(l[vT]={flattened:[]},l));if(!V)return l;l[0]=TSt(V,l);return l};
UzN=function(V,l){Array.isArray(V)?V.push(l):V.appendChild(l);return V};
TY=function(V){if(!mF.enableLazyTsx)return V;if(Array.isArray(V)){for(var l=0;l<V.length;l++)V[l]=TY(V[l]);return V}return V instanceof HO?(V=V.render(),TY(V)):V};
dz1=function(V,l){var I,H,T=nAN(V),x=function(r){H=r;r=ax(!0);var E=V9(Uo);tQ1("render",T);try{I=TY(V(l))}finally{r2N("render",T),V9(E),ax(r)}};
x=mF.enableContextPerComponent?Ee1(x,T):G0(x,mF.alwaysTrackContexts||!!_.vv);h6N(H);if(!l.renderedFromIdom){var n=OX(H);try{return $zT(V,l,I),I}finally{OX(n)}}!qwK(I)&&Array.isArray(I)&&(I=Ih3(I));var w=Mh1(I);n=Array.isArray(w)?w[0]:w;var N=!1;if(n){var L,e=(L=l==null?void 0:l.idomKey)!=null?L:V;L=w!==n;n._disposeEffects=x;var k=n[lt]||{},X=qwK(I)?I:k.sourceDynamicRange;Object.assign(k,{key:e,numNodes:L?w.length:1,context:H,higherOrder:!!n[lt],sourceDynamicRange:X});n[lt]=k}else N=!0;(function(){var r=
OX(H);try{$zT(V,l,w)}finally{OX(r)}})();
N&&x();return I};
nAN=function(V){var l,I;return(I=(l=V.debugName)!=null?l:V.name)!=null?I:"[component]"};
wUt=function(V){var l={},I;for(I in V)l={prev$jscomp$24:void 0,next$jscomp$25:void 0},l.prev$jscomp$24=ns[I],l.next$jscomp$25=V[I],ns[I]=function(H){return function(){var T=_.Q5.apply(0,arguments);H.prev$jscomp$24.apply(null,_.oI(T));H.next$jscomp$25.apply(null,_.oI(T))}}(l)};
NSt=function(){if(Fk())throw Error("oc");return $G};
KKK=function(V,l){if(!V.__unmounted&&l){V.__unmounted=!0;try{V.didUnmount()}catch(T){var I,H;(H=mF.handleError)==null||H.call.apply(H,[mF].concat(_.oI(z0(T,(I=V.JSC$8127___type)==null?void 0:I.TAG_NAME))))}ns.didUnmount(V);V.el=null;l.__instance&&delete l.__instance}};
YAg=function(V,l,I){V._signalProps!=null&&V._disposeEffects==null&&((I===void 0?0:I)?V._disposeEffects=G0(function(){return void jag(V,l)},mF.alwaysTrackContexts||!!_.vv):jag(V,l))};
jag=function(V,l){_.y9(function(){for(var I=V._signalProps,H=V._signalValues,T=0;T<I.length;T++){var x=I[T],n=l[x]();H[T]!==n&&(H[T]=n,W4c(V,x,n))}},"e3YVbb")};
LKc=function(V,l,I){var H,T=[];V._disposeEffects=G0(function(){_.y9(function(){var x=I();if(x===null||x===void 0)x="";if(V0(x)||x===null)H!=null||(H=document.createTextNode("")),H.parentNode!==V&&(H._isSignalTextNode=!0,V.insertBefore(H,l)),H.textContent=String(x);else if(x!=null&&x.contentKind===i$||x instanceof MV){for(var n=T.length>0?T[T.length-1].nextSibling:l,w=_.U(T),N=w.next();!N.done;N=w.next())V.removeChild(N.value);x=uHt(x);T=Array.from(x.childNodes);x=_.U(T);for(w=x.next();!w.done;w=x.next())V.insertBefore(w.value,
n)}else throw N=(w=(n=ki())==null?void 0:n.name)!=null?w:"unknown",Error("dc`"+N+"`"+typeof x);},"VvDgC")},mF.alwaysTrackContexts||!!_.vv)};
FK1=function(V,l){var I=_.Q5.apply(2,arguments);l!=null||(l={});return!mF.enableLazyTsx||ki()!=null&&!Fk()?eRy(V,l,I):new kuN(V,l,I)};
eRy=function(V,l,I){if(V===_.CN)return I;if(typeof V==="function")return ki()&&!Fk()&&(l.renderedFromIdom=!0),pF1({component:V,debugInstance:l.debugInstance,fn:function(){var x=XU3(V,l,I);if(x)return x;I.length>0&&(l.children=I.length===1?I[0]:I);x=l;if(V.componentType!==e_)var n=!1;else{x||(x={});var w=new d7(x,V),N=V9(Uo);try{n=w.render(x)}finally{V9(N)}n instanceof HTMLElement&&(n.__instance=w,w.el=n,w.JSC$8127___type=V,V.TAG_NAME=n.tagName.toLowerCase(),ns.didPatch(w))}return n===!1?dz1(V,l):
n}});
var H=zRT(V,l),T;for(T in l)W4c(H,T,l[T]);YAg(H,l);Iw(I,H);bCq(H,l,{isReactive:!0});yOy(H,l);return H};
zRT=function(V,l){V=(tXc.has(V.toLowerCase())?0:rOJ.has(V.startsWith("svg:")?V.replace("svg:",""):V))?document.createElementNS("http://www.w3.org/2000/svg",V.startsWith("svg:")?V.replace("svg:",""):V):Guy(V,l)||document.createElement(V);V[EA1]=!0;return V};
JOt=function(V){if(V){var l;(l=V._disposeRef)==null||l.call(V);var I;(I=V._disposeEffects)==null||I.call(V);V.__instance&&V.__instance instanceof w7&&(l=V.__instance,KKK(l,V),l instanceof d7&&l.disposeEffects());for(l=0;l<V.childNodes.length;l++)JOt(V.childNodes[l])}};
hRf=function(V){oAK.push(V)===1&&requestAnimationFrame(function(){setTimeout(function(){var l=[].concat(_.oI(oAK));oAK=[];l=_.U(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;try{for(var H=0;H<I.length;H++)JOt(I[H])}catch(T){H=I=void 0,(H=(I=mF).handleError)==null||H.call.apply(H,[I].concat(_.oI(z0(T))))}}})})};
_.Y=function(V,l){return pIT.apply(null,[V,l].concat(_.oI(_.Q5.apply(2,arguments))))};
Dzg=function(){var V=document.body.firstElementChild;window.ng||V.__ngContext__||(V.__ngContext__={},V.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=PKT)};
_.NS=function(V){var l=V.cond;if(l===void 0)return V.else&&V.else();var I=_.Ny(function(){return!!l()},void 0,"y0Xknf"),H=function(){var T=l();
if(!T){var x;(x=mF.handleError)==null||x.call.apply(x,[mF].concat(_.oI(z0(Z8g.nonNullableCondIsNull()))))}return T};
return VXT(function(){var T=I(),x;G0(function(){var n=V9(Uo);try{x=TY(T?V.then(H):V.else&&V.else())}finally{V9(n)}},!0);
return x},V.debugInstance)};
SAg=function(V){return _.NS(V)};
_.Ks=function(V){return V.keyBy==="INDEX"?RRW(V):QaN(V)};
cOt=function(V){V=_.U(V);for(var l=V.next();!l.done;l=V.next()){var I=void 0;(I=l.value)==null||I()}};
QaN=function(V){var l=V.keyBy===void 0||V.keyBy==="REFERENCE",I=l?function(e){return e}:V.keyBy,H=[],T=[],x=[],n=[],w=[],N=[],L=!0;
_.rx(function(){cOt(n)});
return VXT(function(){var e=V.each(),k=e.length;if(k===0){if(H.length===0&&!L)return x;cOt(n);H=e;T=[];for(e=0;e<H.length;e++)T.push(I(H[e]));x=[];n=[];w=[];N=[];V.fallback&&(n[0]=WKt(function(){x[0]=TY(V.fallback())}));
L=!1;return x}for(var X=new b8w,r=H.length-1;r>=0;r--)X.push(T[r],r);r=Array(k);for(var E=Array(k),D=Array(k),Z=Array(k),S=Array(l?0:k),p={i$jscomp$486:0};p.i$jscomp$486<k;p={i$jscomp$486:p.i$jscomp$486,item$jscomp$105:void 0,key$jscomp$517:void 0},p.i$jscomp$486++){p.item$jscomp$105=e[p.i$jscomp$486];p.key$jscomp$517=I(p.item$jscomp$105);var Vf=X.pop(p.key$jscomp$517);Vf!=null?(D[p.i$jscomp$486]=x[Vf],E[p.i$jscomp$486]=T[Vf],r[p.i$jscomp$486]=n[Vf],Z[p.i$jscomp$486]=w[Vf],l||(S[p.i$jscomp$486]=N[Vf]),
Yi(function(C){return function(){Z[C.i$jscomp$486](C.i$jscomp$486);if(!l)S[C.i$jscomp$486](C.item$jscomp$105)}}(p)),delete n[Vf]):r[p.i$jscomp$486]=WKt(function(C){return function(){var By=_.U(_.xi(C.i$jscomp$486,void 0,"g4fKif")),lN=By.next().value;
By=By.next().value;Z[C.i$jscomp$486]=By;E[C.i$jscomp$486]=C.key$jscomp$517;if(l)D[C.i$jscomp$486]=TY(V.children(C.item$jscomp$105,lN));else{var wW=_.U(_.xi(C.item$jscomp$105,void 0,"Ile0Kc"));By=wW.next().value;wW=wW.next().value;S[C.i$jscomp$486]=wW;D[C.i$jscomp$486]=TY(V.children(By,lN))}}}(p))}cOt(n);
H=e;T=E;x=D;n=r;w=Z;N=S;L=!1;return D},V.debugInstance)};
RRW=function(V){var l=[],I=[],H=[],T=[],x=!1;_.rx(function(){for(var n=_.U(T),w=n.next();!w.done;w=n.next())w=w.value,w()});
return VXT(function(){var n=V.each();x&&n.length>0&&(T.pop()(),l.pop(),x=!1);for(var w=Array(n.length),N={i$jscomp$487:0};N.i$jscomp$487<n.length;N={i$jscomp$487:N.i$jscomp$487},N.i$jscomp$487++)if(N.i$jscomp$487<l.length)l[N.i$jscomp$487]!==n[N.i$jscomp$487]&&(Yi(function(e){return function(){return void I[e.i$jscomp$487](n[e.i$jscomp$487])}}(N)),l[N.i$jscomp$487]=n[N.i$jscomp$487]),w[N.i$jscomp$487]=H[N.i$jscomp$487];
else{var L=WKt(function(e){return function(){l[e.i$jscomp$487]=n[e.i$jscomp$487];var k=_.U(_.xi(n[e.i$jscomp$487],void 0,"C53T8b")),X=k.next().value;k=k.next().value;I[e.i$jscomp$487]=k;w[e.i$jscomp$487]=TY(V.children(X,e.i$jscomp$487))}}(N));
T[N.i$jscomp$487]=L}for(;l.length>n.length;)l.pop(),T.pop()(),I.pop();n.length===0&&!x&&V.fallback&&(N=WKt(function(){w[0]=TY(V.fallback())}),T[0]=N,x=!0);
return H=w},V.debugInstance)};
WKt=function(V){var l=_.vv;return G0(function(I){var H=V9(Uo);try{I.parent=l,V(I)}finally{V9(H)}},!1)};
_.jN=function(V){return V};
_.qAK=function(V){return{isDefault:!0,children:V.children}};
_.YG=function(V){var l=MX3(V),I=_.Ny(function(){return sa1(l)},void 0,"BHmkEe");
return VXT(function(){var H=I(),T;G0(function(){var x=V9(Uo);try{T=TY(H())}finally{V9(x)}});
return T},V.debugInstance)};
MX3=function(V){V=V.children;return Array.isArray(V)?V:[V]};
pUf=function(V){var l=V.props;V=V.getChildren()[0];return l.when?{when:l.when,children:V}:{isDefault:!0,children:V}};
sa1=function(V){var l=function(){return null};
V=_.U(V);for(var I=V.next();!I.done;I=V.next())if(I=I.value,I!=null&&I[OS]&&(I=I.type===_.qAK?{isDefault:!0,children:I.children[0]}:{when:I.props.when,children:I.children[0]}),I instanceof HO&&(I=pUf(I)),I.isDefault)l=I.children;else if(I.when())return I.children;return l};
AOt=function(V){var l=null,I;return{value:null,onRender:function(H){if(I&&H!==I){var T;(T=l)==null||T();I._disposeRef=void 0}I=H;l=V(H)||null},
onUnmount:function(){var H;(H=l)==null||H();l=null}}};
vAf=function(V){var l=NSt();if(l==null)throw ub1.PRIMITIVE_INVALID_HOOK_CALL();var I=l.hookCounter++;l.hooks||(l.hooks=[]);var H=l.hooks;H[I]||(H[I]={key:V,host:l});if(V!==H[I].key){var T,x;V=((T=l.JSC$8127___type)==null?void 0:T.name)||((x=l.functionComponent)==null?void 0:x.name);throw ub1.OUT_OF_ORDER_HOOK_CALL(V);}return H[I]};
O8t=function(V,l){return!V||V.length!==(l==null?void 0:l.length)||V.some(function(I,H){return I!==l[H]})};
Ls=function(V,l){var I=vAf("onChange"),H=NSt();O8t(I.deps,l)&&(I.deps=l,I.pendingEffect=V,H.__syncEffects||(H.__syncEffects=[]),H.__syncEffects.push(I))};
gAq=function(V,l){var I;l!=null?I=l:I=_.lBW(document).getAppContext();I.get(CKc).JSC$25223_getEventTarget().dispatchEvent(new ahT(fhy,V,i$))};
_.eN=function(V,l){var I=I===void 0?{enableDevtools:!1}:I;var H=Xk(function(){var T=V9(Uo);try{return G0(function(){var x=_.lBW(_.Z3(V)),n;var w=jSy({appContext:I.appContext||(x==null?void 0:(n=x.getOptionalAppContext)==null?void 0:n.call(x)),dispatcher:x});x=OX(w);w=ax(!0);qZK++;try{Iw(l(),V),sVy(!1)}catch(N){throw sVy(!0),N;}finally{ax(w),OX(x)}},!1)}finally{V9(T)}});
V[mzw]=!0;I.legacyTriggerSoyRendererEvents&&gAq(V,I.appContext);return function(){V.textContent="";H();V[mzw]=!1}};
_.kG=function(V){if(W5g(iO)){var l;(l=mF.handleError)==null||l.call.apply(l,[mF].concat(_.oI(z0(Error("cc")))))}var I=_.vv,H=LN.slice();Promise.resolve().then(function(){I&&!I.isDisposed&&Xk(function(){var T=OX(I);try{V()}finally{OX(T)}},{stack:H})})};
FW=function(V,l){Ls(function(){return BT(V)},l)};
_.XW=function(V){Fk()?_.kG(function(){BT(V)}):Ls(function(){return BT(V)},[])};
V1c=function(V){var l=[].concat(_.oI(V));V.length=0;V=_.U(l);for(l=V.next();!l.done;l=V.next()){l=l.value;i8c(l);var I=l.pendingEffect;l.pendingEffect=null;if(I=I==null?void 0:I())l.pendingCleanup=I}};
i8c=function(V){var l=V.pendingCleanup;V.pendingCleanup=null;l==null||l()};
l8K=function(V,l){if(Fk())return V();var I=vAf("useMemoInternal");O8t(I.deps,l)&&(I.deps=l,I.value=V());return I.value};
zY=function(V,l){return l8K(V,l)};
y0=function(V){return l8K(V,[])};
I8f=function(){var V=_.Q5.apply(0,arguments),l=y0(function(){return V.map(function(I){return _.xi(I,void 0,"iAOe9b")})});
FW(function(){for(var I=0;I<V.length;I++)(0,l[I][1])(V[I])},V);
return l.map(function(I){return _.U(I).next().value})};
t6=function(V){return y0(function(){return{value:V}})};
_.GY=function(V,l){if(!V)return null;V=Object.keys(V);V=_.U(V);for(var I=V.next();!I.done;I=V.next()){I=I.value;var H=I.toLowerCase();if(H.indexOf(l,H.length-l.length)>-1)return I}return null};
_.ow=function(){var V=arguments,l=_.Eo;V.length>1?l[V[0]]=V[1]:V.length===1&&Object.assign(l,V[0])};
_.h6=function(V,l){return V in _.Eo?_.Eo[V]:l};
_.PO=function(V,l){return!!_.h6(V,l)};
HTy=function(V){var l=_.Eo.EXPERIMENT_FLAGS;return l?l[V]:void 0};
B6J=function(V){T6g.forEach(function(l){return l(V)})};
_.Zp=function(V){return V&&window.yterr?function(){try{return V.apply(this,arguments)}catch(l){_.Dp(l)}}:V};
_.Dp=function(V){var l=_.SN("yt.logging.errors.log");l?l(V,"ERROR",void 0,void 0,void 0,void 0,void 0):(l=_.h6("ERRORS",[]),l.push([V,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.ow("ERRORS",l));B6J(V)};
_.Rw=function(V,l,I,H,T){var x=_.SN("yt.logging.errors.log");x?x(V,"WARNING",l,I,H,void 0,T):(x=_.h6("ERRORS",[]),x.push([V,"WARNING",l,I,H,void 0,T]),_.ow("ERRORS",x))};
UJq=function(V,l){l=V.split(l);for(var I={},H=0,T=l.length;H<T;H++){var x=l[H].split("=");if(x.length===1&&x[0]||x.length===2)try{var n=xJw(x[0]||""),w=xJw(x[1]||"");if(n in I){var N=I[n];Array.isArray(N)?_.fK(N,w):I[n]=[N,w]}else I[n]=w}catch(X){var L=X,e=x[0],k=String(UJq);L.args=[{key:e,value:x[1],query:V,method:nB1===k?"unchanged":k}];$J1.hasOwnProperty(e)||_.Rw(L)}}return I};
dJc=function(V){var l=[];_.EL.forEach(V,function(I,H){var T=_.Q0(H);_.cO(Array.isArray(I)?I:[I],function(x){x==""?l.push(T):l.push(T+"="+_.Q0(x))})});
return l.join("&")};
_.WO=function(V){V.charAt(0)==="?"&&(V=V.substring(1));return UJq(V,"&")};
_.bt=function(V){return V.indexOf("?")!==-1?(V=(V||"").split("#")[0],V=V.split("?",2),_.WO(V.length>1?V[1]:V[0])):{}};
_.qS=function(V,l){return w$w(V,l||{},!0)};
N6t=function(V,l){return w$w(V,l||{},!1)};
w$w=function(V,l,I){var H=V.split("#",2);V=H[0];H=H.length>1?"#"+H[1]:"";var T=V.split("?",2);V=T[0];T=_.WO(T[1]||"");for(var x in l)if(I||!_.EL.containsKey(T,x))T[x]=l[x];return _.MS(V,T)+H};
ut=function(V){if(!l)var l=window.location.href;var I=_.so(V)[1]||null,H=_.ps(V);return I&&H?A6(V,l):H?_.ps(l)===H&&(Number(_.so(l)[4]||null)||null)===(Number(_.so(V)[4]||null)||null):!0};
_.jzy=function(V){V=Kp1(V);return V===null?!1:V[0]==="com"&&V[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Kp1=function(V){V=_.ps(V);return V!==null?V.split(".").reverse():null};
xJw=function(V){return V&&V.match(Y41)?V:vO(V)};
_.Cs=function(V){return new Lpf(V)};
_.F=function(){e8t||(e8t=new kqt);return e8t};
X$T=function(V){var l=_.aw,I,H;_.d(function(T){I=_.F();return(H=I.resolve(_.Cs(l)))?(V(H),T.return(Promise.resolve(H))):T.return(I.resolve(new FpJ(l)).then(function(x){V(x);return x}))})};
_.z=function(V){V=fs(V);return typeof V==="string"&&V==="false"?!1:!!V};
_.g7=function(V,l){V=fs(V);return V===void 0&&l!==void 0?l:Number(V||0)};
z8T=function(V){V=fs(V);return Array.isArray(V)?_.JH(V,function(l){return Number(l||0)}):[Number(V||0)]};
_.m_=function(V){V=fs(V);return V!==void 0?String(V):""};
_.V7=function(V){V=fs(V);return Array.isArray(V)?_.JH(V,function(l){return String(l||"")}):[String(V||"")]};
ycT=function(){return _.h6("EXPERIMENTS_TOKEN","")};
fs=function(V){return _.h6("EXPERIMENT_FLAGS",{})[V]};
t1c=function(){for(var V=[],l=_.h6("EXPERIMENTS_FORCED_FLAGS",{}),I=_.U(Object.keys(l)),H=I.next();!H.done;H=I.next())H=H.value,V.push({key:H,value:String(l[H])});I=_.h6("EXPERIMENT_FLAGS",{});H=_.U(Object.keys(I));for(var T=H.next();!T.done;T=H.next())T=T.value,T.startsWith("force_")&&l[T]===void 0&&V.push({key:T,value:String(I[T])});return V};
Gqt=function(){if(!rcT)return null;var V=rcT();return"open"in V?V:null};
EB1=function(V){switch(l2(V)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
l2=function(V){return V&&"status"in V?V.status:-1};
_.Iv=function(V,l){typeof V==="function"&&(V=_.Zp(V));return window.setTimeout(V,l)};
_.Hx=function(V,l){typeof V==="function"&&(V=_.Zp(V));return window.setInterval(V,l)};
_.TU=function(V){window.clearTimeout(V)};
oBW=function(V){V=_.bt(V);for(var l=_.U(Jcw),I=l.next();!I.done;I=l.next())if(V[I.value]!==void 0)return!0;return!1};
DJt=function(V,l,I,H,T,x,n,w){I=I===void 0?"GET":I;H=H===void 0?"":H;w=w===void 0?!1:w;var N=Gqt();if(!N)return null;var L=function(){(N&&"readyState"in N?N.readyState:0)===4&&l&&_.Zp(l)(N)};
"onloadend"in N?N.addEventListener("loadend",L,!1):N.onreadystatechange=L;_.z("debug_forward_web_query_parameters")&&(V=h8t(V,window.location.search));N.open(I,V,!0);x&&(N.responseType=x);n&&(N.withCredentials=!0);I=I==="POST"&&(window.FormData===void 0||!(H instanceof FormData));if(T=PJt(V,T))for(var e in T)N.setRequestHeader(e,T[e]),"content-type"===e.toLowerCase()&&(I=!1);I&&N.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(w&&"setAttributionReporting"in XMLHttpRequest.prototype){V=
{eventSourceEligible:!0,triggerEligible:!1};try{N.setAttributionReporting(V)}catch(k){_.Rw(k)}}N.send(H);return N};
PJt=function(V,l){l=l===void 0?{}:l;var I=ut(V),H=_.h6("INNERTUBE_CLIENT_NAME"),T=_.z("web_ajax_ignore_global_headers_if_set"),x;for(x in ZTc){var n=_.h6(ZTc[x]),w=x==="X-Goog-AuthUser"||x==="X-Goog-PageId";x!=="X-Goog-Visitor-Id"||n||(n=_.h6("VISITOR_DATA"));var N;if(!(N=!n)){if(!(N=I||(_.ps(V)?!1:!0))){N=V;var L;if(L=_.z("add_auth_headers_to_remarketing_google_dot_com_ping")&&x==="Authorization"&&(H==="TVHTML5"||H==="TVHTML5_UNPLUGGED"||H==="TVHTML5_SIMPLY"))L=Kp1(N),L=L===null?!1:L[1]==="google"?
!0:L[2]==="google"?L[0]==="au"&&L[1]==="com"?!0:L[0]==="uk"&&L[1]==="co"?!0:!1:!1;L&&(N=_.Bx(N)||"",N=N.split("/"),N="/"+(N.length>1?N[1]:""),L=N==="/pagead");N=L?!0:!1}N=!N}N||T&&l[x]!==void 0||H==="TVHTML5_UNPLUGGED"&&w||(l[x]=n)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];if(I||!_.ps(V))l["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(I||!_.ps(V)){try{var e=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(k){}e&&(l["X-YouTube-Time-Zone"]=
e)}document.location.hostname.endsWith("youtubeeducation.com")||!I&&_.ps(V)||(l["X-YouTube-Ad-Signals"]=dJc(S41()));return l};
_.R81=function(V,l){var I=_.ps(V);_.z("debug_handle_relative_url_for_query_forward_killswitch")||!I&&ut(V)&&(I=document.location.hostname);var H=_.Bx(V);H=(I=I&&(I.endsWith("youtube.com")||I.endsWith("youtube-nocookie.com")))&&H&&H.startsWith("/api/");if(!I||H)return V;var T=_.WO(l),x={};_.cO(Jcw,function(n){T[n]&&(x[n]=T[n])});
return N6t(V,x)};
Qzg=function(V,l){l.method="POST";l.postParams||(l.postParams={});return _.xd(V,l)};
ccy=function(V,l){var I=_.h6("XSRF_FIELD_NAME"),H;l.headers&&(H=l.headers["Content-Type"]);return!l.excludeXsrf&&(!_.ps(V)||l.withCredentials||_.ps(V)===document.location.hostname)&&l.method==="POST"&&(!H||H==="application/x-www-form-urlencoded")&&!(l.postParams&&l.postParams[I])};
_.xd=function(V,l){var I=l.format||"JSON";V=WpN(V,l);var H=bTt(V,l),T=!1,x=q4W(V,function(N){if(!T){T=!0;w&&_.TU(w);var L=EB1(N),e=null,k=400<=N.status&&N.status<500,X=500<=N.status&&N.status<600;if(L||k||X)e=M1w(V,I,N,l.convertToSafeHtml);L&&(L=sz3(I,N,e));e=e||{};k=l.context||_.nK;L?l.onSuccess&&l.onSuccess.call(k,N,e):l.onError&&l.onError.call(k,N,e);l.onFinish&&l.onFinish.call(k,N,e)}},l.method,H,l.headers,l.responseType,l.withCredentials);
H=l.timeout||0;if(l.onTimeout&&H>0){var n=l.onTimeout;var w=_.Iv(function(){T||(T=!0,x.abort(),_.TU(w),n.call(l.context||_.nK,x))},H)}return x};
WpN=function(V,l){l.includeDomain&&(V=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+V);var I=_.h6("XSRF_FIELD_NAME");if(l=l.urlParams)l[I]&&delete l[I],V=_.qS(V,l);return V};
bTt=function(V,l){var I=_.h6("XSRF_FIELD_NAME"),H=_.h6("XSRF_TOKEN"),T=l.postBody||"",x=l.postParams;ccy(V,l)&&(x||(x={}),x[I]=H);(_.z("ajax_parse_query_data_only_when_filled")&&x&&Object.keys(x).length>0||x)&&typeof T==="string"&&(T=_.WO(T),_.EL.extend(T,x),T=l.postBodyFormat&&l.postBodyFormat==="JSON"?JSON.stringify(T):_.U_(T));x=T||x&&!_.EL.isEmpty(x);!p$c&&x&&l.method!=="POST"&&(p$c=!0,_.Dp(Error("Ic")));return T};
M1w=function(V,l,I,H){var T=null;switch(l){case "JSON":try{var x=I.responseText}catch(n){throw H=Error("Jc"),H.params=V,_.Rw(H),n;}V=I.getResponseHeader("Content-Type")||"";x&&V.indexOf("json")>=0&&(x.substring(0,5)===")]}'\n"&&(x=x.substring(5)),T=JSON.parse(x));break;case "XML":if(V=(V=I.responseXML)?Acy(V):null)T={},_.cO(V.getElementsByTagName("*"),function(n){T[n.tagName]=uuw(n)})}H&&vBT(T);
return T};
vBT=function(V){if(_.m3(V))for(var l in V)l==="html_content"||KK(l,"_html")?V[l]=sq(V[l]):vBT(V[l])};
sz3=function(V,l,I){if(l&&l.status===204)return!0;switch(V){case "JSON":return!!I;case "XML":return Number(I&&I.return_code)===0;case "RAW":return!0;default:return!!I}};
Acy=function(V){return V?(V=("responseXML"in V?V.responseXML:V).getElementsByTagName("root"))&&V.length>0?V[0]:null:null};
uuw=function(V){var l="";_.cO(V.childNodes,function(I){l+=I.nodeValue});
return l};
OTw=function(V){if(V.name==="JavaException")return!0;V=V.stack;return V.includes("chrome://")||V.includes("chrome-extension://")||V.includes("moz-extension://")};
_.nA=function(V){_.XG.call(this);this.JSC$8299_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!V};
a8T=function(V,l){var I=V.length,H=0,T=function(){return V.charCodeAt(H++)};
do{var x=CJ1(T);if(x===Infinity)break;var n=x>>3;switch(x&7){case 0:x=CJ1(T);if(n===l)return x;break;case 1:if(n===l)return;H+=8;break;case 2:x=CJ1(T);if(n===l)return V.substr(H,x);H+=x;break;case 5:if(n===l)return;H+=4;break;default:return}}while(H<I)};
CJ1=function(V){var l=V(),I=l&127;if(l<128)return I;l=V();I|=(l&127)<<7;if(l<128)return I;l=V();I|=(l&127)<<14;if(l<128)return I;l=V();return l<128?I|(l&127)<<21:Infinity};
gBW=function(V,l,I,H){if(V)if(Array.isArray(V)){var T=H;for(H=0;H<V.length&&!(V[H]&&(T+=f81(H,V[H],l,I),T>500));H++);H=T}else if(typeof V==="object")for(T in V){if(V[T]){var x=T;var n=V[T],w=l,N=I;x=typeof n!=="string"||x!=="clickTrackingParams"&&x!=="trackingParams"?0:(n=a8T(atob(n.replace(/-/g,"+").replace(/_/g,"/")),2))?f81(x+".ve",n,w,N):0;H+=x;H+=f81(T,V[T],l,I);if(H>500)break}}else I[l]=$d(V),H+=I[l].length;else I[l]=$d(V),H+=I[l].length;return H};
f81=function(V,l,I,H){I+="."+V;V=$d(l);H[I]=V;return I.length+V.length};
$d=function(V){try{return(typeof V==="string"?V:String(JSON.stringify(V))).substr(0,500)}catch(l){return"unable to serialize "+typeof V+" ("+l.message+")"}};
mJw=function(V){switch(V){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}};
_.wm=function(V,l,I,H,T){_.dm.set(V,l,{maxAge:I,path:"/",domain:H===void 0?"youtube.com":H,secure:T===void 0?!1:T})};
_.iTN=function(V,l,I){_.dm.remove(V,l===void 0?"/":l,I===void 0?"youtube.com":I)};
_.Nl=function(){if(_.z("embeds_web_enable_cookie_detection_fix")){if(!_.nK.navigator.cookieEnabled)return!1}else if(!_.dm.isEnabled())return!1;if(!_.dm.isEmpty())return!0;_.z("embeds_web_enable_cookie_detection_fix")?_.dm.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.dm.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.dm.get("TESTCOOKIESENABLED")!=="1")return!1;_.dm.remove("TESTCOOKIESENABLED");return!0};
Vs1=function(){var V=_.nK.navigator;return V?V.connection:void 0};
lwy=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(V){}};
_.HWK=function(){var V=Vs1();if(V){var l=IwN[V.type||"unknown"]||"CONN_UNKNOWN";V=IwN[V.effectiveType||"unknown"]||"CONN_UNKNOWN";l==="CONN_CELLULAR_UNKNOWN"&&V!=="CONN_UNKNOWN"&&(l=V);if(l!=="CONN_UNKNOWN")return l;if(V!=="CONN_UNKNOWN")return V}};
BJK=function(){var V=Vs1();if(V!=null&&V.effectiveType)return TJw.hasOwnProperty(V.effectiveType)?TJw[V.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.jO=function(){try{return _.KA(),!0}catch(V){return!1}};
_.KA=function(V){if(_.h6("DATASYNC_ID")!==void 0)return _.h6("DATASYNC_ID");throw new _.Yd("Datasync ID not set",V===void 0?"unknown":V);};
_.LA=function(V){this.mechanism=V};
eO=function(V){this.mechanism=V};
kd=function(V){this.storage_=V;this.cachedIsStorageAvailable_=null};
xrK=function(){var V=null;try{V=_.nK.localStorage||null}catch(l){}kd.call(this,V)};
Urt=function(){var V=null;try{V=_.nK.sessionStorage||null}catch(l){}kd.call(this,V)};
Fi=function(V,l){this.mechanism_=V;this.JSC$8401_prefix_=l+"::"};
_.nfN=function(V){var l=new xrK;return l.isAvailable()?V?new Fi(l,V):l:null};
_.$rt=function(V){var l=new Urt;return l.isAvailable()?V?new Fi(l,V):l:null};
w4W=function(){var V;return(V=drt())==null?void 0:V.get("LAST_RESULT_ENTRY_KEY",!0)};
_.y7=function(V){NJ1||(_.Xi?_.Xi.logError(V):(_.zU.push({type:"ERROR",payload:V}),_.zU.length>10&&_.zU.shift()))};
tq=function(V,l){NJ1||(_.Xi?_.Xi.logEvent(V,l):(_.zU.push({type:"EVENT",eventType:V,payload:l}),_.zU.length>10&&_.zU.shift()))};
rm=function(V){if(V.indexOf(":")>=0)throw Error("Qc");};
GU=function(V){return V.substr(0,V.indexOf(":"))||V};
Ylt=function(){return(KdT||jA3)&&E_("applewebkit")&&!E_("version")&&(!E_("safari")||E_("gsa/"))};
E_=function(V){var l=_.zw();return l?l.toLowerCase().indexOf(V)>=0:!1};
kVJ=function(V,l,I,H){l=GU(l);var T=V instanceof Error?V:Error("Rc`"+V);if(T instanceof Jq)return T;V={objectStoreNames:I,dbName:l,dbVersion:H};if(T.name==="QuotaExceededError")return new Jq("QUOTA_EXCEEDED",V);if(_.ov&&T.name==="UnknownError")return new Jq("QUOTA_MAYBE_EXCEEDED",V);if(T instanceof LdN)return new Jq("MISSING_INDEX",Object.assign({},V,{objectStore:T.objectStore,index:T.index}));if(T.name==="InvalidStateError"&&eZK.some(function(x){return T.message.includes(x)}))return new Jq("EXECUTE_TRANSACTION_ON_CLOSED_DB",
V);
if(T.name==="AbortError")return new Jq("UNKNOWN_ABORT",V,T.message);T.args=[Object.assign({},V,{name:"IdbError",originalName:T.name})];T.level="WARNING";return T};
hq=function(V,l,I){var H=w4W();return new Jq("IDB_NOT_SUPPORTED",{context:{caller:V,publicName:l,version:I,hasSucceededOnce:H==null?void 0:H.hasSucceededOnce}})};
Fdy=function(V){if(!V)throw Error();throw V;};
X4y=function(V){return V};
zZf=function(V,l,I){var H=function(){try{V.removeEventListener("success",T),V.removeEventListener("error",x)}catch(n){}},T=function(){l(V.result);
H()},x=function(){I(V.error);
H()};
V.addEventListener("success",T);V.addEventListener("error",x)};
y5K=function(V){return new Promise(function(l,I){zZf(V,l,I)})};
ZY=function(V){return new Px(new DY(function(l,I){zZf(V,l,I)}))};
tst=function(V,l){return new Px(new DY(function(I,H){var T=function(){var x=V?l(V):null;x?x.then(function(n){V=n;T()},H):I()};
T()}))};
GVq=function(V,l,I){return new Promise(function(H,T){var x=l!==void 0?self.indexedDB.open(V,l):self.indexedDB.open(V);var n=I.blocked,w=I.blocking,N=I.terminated,L=I.upgrade,e=I.closed,k,X=function(){k||(k=new SO(x.result,{closed:e}));return k};
x.addEventListener("upgradeneeded",function(r){try{if(r.newVersion===null)throw Error("Wc");if(x.transaction===null)throw Error("Xc");r.dataLoss&&r.dataLoss!=="none"&&tq("IDB_DATA_CORRUPTED",{reason:r.dataLossMessage||"unknown reason",dbName:GU(V)});var E=X(),D=new r5N(x.transaction);L&&L(E,function(Z){return r.oldVersion<Z&&r.newVersion>=Z},D);
D.done.catch(function(Z){T(Z)})}catch(Z){T(Z)}});
x.addEventListener("success",function(){var r=x.result;w&&r.addEventListener("versionchange",function(){w(X())});
r.addEventListener("close",function(){tq("IDB_UNEXPECTEDLY_CLOSED",{dbName:GU(V),dbVersion:r.version});N&&N()});
H(X())});
x.addEventListener("error",function(){T(x.error)});
n&&x.addEventListener("blocked",function(){n()})})};
Eft=function(V,l,I){I=I===void 0?{}:I;return GVq(V,l,I)};
_.Q7=function(V,l){l=l===void 0?{}:l;var I,H,T,x;return _.d(function(n){if(n.nextAddress==1)return _.jd(n,2),I=self.indexedDB.deleteDatabase(V),H=l,(T=H.blocked)&&I.addEventListener("blocked",function(){T()}),_.K(n,y5K(I),4);
if(n.nextAddress!=2)return _.Rv(n,0);x=_.kE(n);throw kVJ(x,V,"",-1);})};
of3=function(V,l){var I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,_.cx(J5w,l),2);I=H.yieldResult;return H.return(_.Wx(I,["databases"],{enableRetries:!0,mode:"readwrite"},function(T){var x=T.objectStore("databases");return x.get(V.actualName).then(function(n){if(n?V.actualName!==n.actualName||V.publicName!==n.publicName||V.userIdentifier!==n.userIdentifier:1)return x.put(V).then(function(){})})}))})};
_.b2=function(V,l){var I;return _.d(function(H){if(H.nextAddress==1)return V?_.K(H,_.cx(J5w,l),2):H.return();I=H.yieldResult;return H.return(I.delete("databases",V))})};
_.hZW=function(V,l){var I,H;return _.d(function(T){return T.nextAddress==1?(I=[],_.K(T,_.cx(J5w,l),2)):T.nextAddress!=3?(H=T.yieldResult,_.K(T,_.Wx(H,["databases"],{enableRetries:!0,mode:"readonly"},function(x){I.length=0;return ql(x.objectStore("databases"),{},function(n){V(n.getValue())&&I.push(n.getValue());return n.continue()})}),3)):T.return(I)})};
PB3=function(V,l){return _.hZW(function(I){return I.publicName===V&&I.userIdentifier!==void 0},l)};
Slt=function(){var V,l,I,H;return _.d(function(T){switch(T.nextAddress){case 1:V=w4W();if((l=V)==null?0:l.hasSucceededOnce)return T.return(!0);var x;if(x=Dry)x=/WebKit\/([0-9]+)/.exec(_.zw()),x=!!(x&&parseInt(x[1],10)>=600);x&&(x=/WebKit\/([0-9]+)/.exec(_.zw()),x=!(x&&parseInt(x[1],10)>=602));if(x||_.Ml)return T.return(!1);try{if(I=self,!(I.indexedDB&&I.IDBIndex&&I.IDBKeyRange&&I.IDBObjectStore))return T.return(!1)}catch(n){return T.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return T.return(!1);
_.jd(T,2);H={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.K(T,of3(H,ZW3),4);case 4:return _.K(T,_.b2("yt-idb-test-do-not-use",ZW3),5);case 5:return T.return(!0);case 2:return _.kE(T),T.return(!1)}})};
QAc=function(){if(RZJ!==void 0)return RZJ;NJ1=!0;return RZJ=Slt().then(function(V){NJ1=!1;var l;if((l=drt())!=null&&l.expiringStorage_){var I;l={hasSucceededOnce:((I=w4W())==null?void 0:I.hasSucceededOnce)||V};var H;(H=drt())==null||H.set("LAST_RESULT_ENTRY_KEY",l,2592E3,!0)}return V})};
pA=function(){return _.SN("ytglobal.idbToken_")||void 0};
_.u2=function(){var V=pA();return V?Promise.resolve(V):QAc().then(function(l){(l=l?ZW3:void 0)&&_.Aq("ytglobal.idbToken_",l);return l})};
c5y=function(V){if(!_.jO())throw V=new Jq("AUTH_INVALID",{dbName:V}),_.y7(V),V;var l=_.KA();return{actualName:V+":"+l,publicName:V,userIdentifier:l}};
Wd1=function(V,l,I,H){var T,x,n,w,N,L;return _.d(function(e){switch(e.nextAddress){case 1:return x=(T=Error().stack)!=null?T:"",_.K(e,_.u2(),2);case 2:n=e.yieldResult;if(!n)throw w=hq("openDbImpl",V,l),_.z("ytidb_async_stack_killswitch")||(w.stack=w.stack+"\n"+x.substring(x.indexOf("\n")+1)),_.y7(w),w;rm(V);N=I?{actualName:V,publicName:V,userIdentifier:void 0}:c5y(V);_.jd(e,3);return _.K(e,of3(N,n),5);case 5:return _.K(e,Eft(N.actualName,l,H),6);case 6:return e.return(e.yieldResult);case 3:return L=
_.kE(e),_.jd(e,7),_.K(e,_.b2(N.actualName,n),9);case 9:_.Rv(e,8);break;case 7:_.kE(e);case 8:throw L;}})};
bWy=function(V,l,I){I=I===void 0?{}:I;return Wd1(V,l,!1,I)};
qlJ=function(V,l,I){I=I===void 0?{}:I;return Wd1(V,l,!0,I)};
Ms1=function(V,l){l=l===void 0?{}:l;var I,H;return _.d(function(T){if(T.nextAddress==1)return _.K(T,_.u2(),2);if(T.nextAddress!=3){I=T.yieldResult;if(!I)return T.return();rm(V);H=c5y(V);return _.K(T,_.Q7(H.actualName,l),3)}return _.K(T,_.b2(H.actualName,I),0)})};
sAg=function(V,l,I){V=V.map(function(H){return _.d(function(T){return T.nextAddress==1?_.K(T,_.Q7(H.actualName,l),2):_.K(T,_.b2(H.actualName,I),0)})});
return Promise.all(V).then(function(){})};
p41=function(V){var l=l===void 0?{}:l;var I,H;return _.d(function(T){if(T.nextAddress==1)return _.K(T,_.u2(),2);if(T.nextAddress!=3){I=T.yieldResult;if(!I)return T.return();rm(V);return _.K(T,PB3(V,I),3)}H=T.yieldResult;return _.K(T,sAg(H,l,I),0)})};
A5N=function(V,l){l=l===void 0?{}:l;var I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,_.u2(),2);if(H.nextAddress!=3){I=H.yieldResult;if(!I)return H.return();rm(V);return _.K(H,_.Q7(V,l),3)}return _.K(H,_.b2(V,I),0)})};
vx=function(V,l){return u3N(V,l)};
OWK=function(V){return _.cx(vfK(),V)};
CB3=function(V,l,I,H){var T,x,n;return _.d(function(w){switch(w.nextAddress){case 1:return T={config:V,hashData:l,timestamp:H!==void 0?H:(0,_.O_)()},_.K(w,OWK(I),2);case 2:return x=w.yieldResult,_.K(w,x.clear("hotConfigStore"),3);case 3:return _.K(w,x.put("hotConfigStore",T),4);case 4:return n=w.yieldResult,w.return(n)}})};
aw3=function(V,l,I,H,T){var x,n,w;return _.d(function(N){switch(N.nextAddress){case 1:return x={config:V,hashData:l,configData:I,timestamp:T!==void 0?T:(0,_.O_)()},_.K(N,OWK(H),2);case 2:return n=N.yieldResult,_.K(N,n.clear("coldConfigStore"),3);case 3:return _.K(N,n.put("coldConfigStore",x),4);case 4:return w=N.yieldResult,N.return(w)}})};
fwf=function(V){var l,I;return _.d(function(H){return H.nextAddress==1?_.K(H,OWK(V),2):H.nextAddress!=3?(l=H.yieldResult,I=void 0,_.K(H,_.Wx(l,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(T){return _.CA(T.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(x){I=x.getValue()})}),3)):H.return(I)})};
gfy=function(V){var l,I;return _.d(function(H){return H.nextAddress==1?_.K(H,OWK(V),2):H.nextAddress!=3?(l=H.yieldResult,I=void 0,_.K(H,_.Wx(l,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(T){return _.CA(T.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(x){I=x.getValue()})}),3)):H.return(I)})};
mrf=function(){return _.d(function(V){return _.K(V,p41("ytGcfConfig"),0)})};
iW3=function(){return"INNERTUBE_API_KEY"in _.Eo&&"INNERTUBE_API_VERSION"in _.Eo};
_.av=function(){return{innertubeApiKey:_.h6("INNERTUBE_API_KEY"),innertubeApiVersion:_.h6("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.h6("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.h6("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.h6("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.h6("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.h6("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.h6("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.h6("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.PO("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.PO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.h6("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.xvc=function(V){var l={client:{hl:V.innertubeContextHostLanguage,gl:V.innertubeContextGeoLocation,clientName:V.innertubeContextClientName,clientVersion:V.innertubeContextClientVersion,configInfo:V.innertubeContextClientConfigInfo}};navigator.userAgent&&(l.client.userAgent=String(navigator.userAgent));var I=_.nK.devicePixelRatio;I&&I!=1&&(l.client.screenDensityFloat=String(I));I=ycT();I!==""&&(l.client.experimentsToken=I);I=t1c();I.length>0&&(l.request={internalExperimentFlags:I});VDt(V,void 0,l);
lfT(void 0,l);Ifc(void 0,l);HYN(V,void 0,l);TPc(void 0,l);_.z("start_client_gcf")&&BP3(void 0,l);_.h6("DELEGATED_SESSION_ID")&&!_.z("pageid_as_header_web")&&(l.user={onBehalfOfUser:_.h6("DELEGATED_SESSION_ID")});!_.z("fill_delegate_context_in_gel_killswitch")&&(V=_.h6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(l.user=Object.assign({},l.user,{serializedDelegationContext:V}));V=_.h6("INNERTUBE_CONTEXT");var H;if(_.z("enable_persistent_device_token")&&(V==null?0:(H=V.client)==null?0:H.rolloutToken)){var T;
l.client.rolloutToken=V==null?void 0:(T=V.client)==null?void 0:T.rolloutToken}H=Object;T=H.assign;V=l.client;I={};for(var x=_.U(Object.entries(_.WO(_.h6("DEVICE","")))),n=x.next();!n.done;n=x.next()){var w=_.U(n.value);n=w.next().value;w=w.next().value;n==="cbrand"?I.deviceMake=w:n==="cmodel"?I.deviceModel=w:n==="cbr"?I.browserName=w:n==="cbrver"?I.browserVersion=w:n==="cos"?I.osName=w:n==="cosver"?I.osVersion=w:n==="cplatform"&&(I.platform=w)}l.client=T.call(H,V,I);return l};
VDt=function(V,l,I){V=V.innertubeContextClientName;if(V==="WEB"||V==="MWEB"||V===1||V===2)if(l){I=_.fA(l,UvT,96)||new UvT;var H=nVW();H=Object.keys($vg).indexOf(H);H=H===-1?null:H;H!==null&&_.gm(I,3,H);_.j6(l,96,I)}else I&&(I.client.mainAppWebInfo=(H=I.client.mainAppWebInfo)!=null?H:{},I.client.mainAppWebInfo.webDisplayMode=nVW())};
lfT=function(V,l){var I=_.SN("yt.embedded_player.embed_url");I&&(V?(l=_.fA(V,dvq,7)||new dvq,_.Fm(l,4,I),_.j6(V,7,l)):l&&(l.thirdParty={embedUrl:I}))};
Ifc=function(V,l){var I;if(_.z("web_log_memory_total_kbytes")&&((I=_.nK.navigator)==null?0:I.deviceMemory)){var H;I=(H=_.nK.navigator)==null?void 0:H.deviceMemory;V?_.m6(V,95,$h(I*1E6)):l&&(l.client.memoryTotalKbytes=""+I*1E6)}};
HYN=function(V,l,I){if(V.appInstallData)if(l){var H;I=(H=_.fA(l,i2,62))!=null?H:new i2;_.Fm(I,6,V.appInstallData);_.j6(l,62,I)}else I&&(I.client.configInfo=I.client.configInfo||{},I.client.configInfo.appInstallData=V.appInstallData)};
TPc=function(V,l){var I=_.HWK();I&&(V?_.gm(V,61,wb3[I]):l&&(l.client.connectionType=I));_.z("web_log_effective_connection_type")&&(I=BJK())&&(V?_.gm(V,94,NPT[I]):l&&(l.client.effectiveConnectionType=I))};
_.Yzq=function(V,l,I){I=I===void 0?{}:I;var H={};_.h6("EOM_VISITOR_DATA")?H={"X-Goog-EOM-Visitor-Id":_.h6("EOM_VISITOR_DATA")}:H={"X-Goog-Visitor-Id":I.visitorData||_.h6("VISITOR_DATA","")};if(l&&l.includes("www.youtube-nocookie.com"))return H;l=I.authorization||_.h6("AUTHORIZATION");l||(V?l="Bearer "+_.SN("gapi.auth.getToken")().access_token:(KLy.instance||(KLy.instance=new KLy),V=jQw(),_.z("pageid_as_header_web")||delete V["X-Goog-PageId"],H=Object.assign({},H,V)));l&&(H.Authorization=l);return H};
BP3=function(V,l){var I=LLT();if(I){var H=I.coldConfigData,T=I.coldHashData;I=I.hotHashData;if(V){var x;l=(x=_.fA(V,i2,62))!=null?x:new i2;H=_.Fm(l,1,H);_.Fm(H,3,T).setHotHashData(I);_.j6(V,62,l)}else l&&(l.client.configInfo=l.client.configInfo||{},H&&(l.client.configInfo.coldConfigData=H),T&&(l.client.configInfo.coldHashData=T),I&&(l.client.configInfo.hotHashData=I))}};
Vz=function(V){for(var l=V.length;--l>=0;)V[l]=0};
erg=function(V,l,I,H,T){this.static_tree=V;this.extra_bits=l;this.extra_base=I;this.elems=H;this.max_length=T;this.has_stree=V&&V.length};
kR3=function(V,l){this.dyn_tree=V;this.max_code=0;this.stat_desc=l};
lG=function(V,l){V.pending_buf[V.pending++]=l&255;V.pending_buf[V.pending++]=l>>>8&255};
IS=function(V,l,I){V.bi_valid>16-I?(V.bi_buf|=l<<V.bi_valid&65535,lG(V,V.bi_buf),V.bi_buf=l>>16-V.bi_valid,V.bi_valid+=I-16):(V.bi_buf|=l<<V.bi_valid&65535,V.bi_valid+=I)};
Ha=function(V,l,I){IS(V,I[l*2],I[l*2+1])};
FLc=function(V,l){var I=0;do I|=V&1,V>>>=1,I<<=1;while(--l>0);return I>>>1};
XbJ=function(V,l,I){var H=Array(16),T=0,x;for(x=1;x<=15;x++)H[x]=T=T+I[x-1]<<1;for(I=0;I<=l;I++)T=V[I*2+1],T!==0&&(V[I*2]=FLc(H[T]++,T))};
zrJ=function(V){var l;for(l=0;l<286;l++)V.dyn_ltree[l*2]=0;for(l=0;l<30;l++)V.dyn_dtree[l*2]=0;for(l=0;l<19;l++)V.bl_tree[l*2]=0;V.dyn_ltree[512]=1;V.opt_len=V.static_len=0;V.last_lit=V.matches=0};
yv3=function(V){V.bi_valid>8?lG(V,V.bi_buf):V.bi_valid>0&&(V.pending_buf[V.pending++]=V.bi_buf);V.bi_buf=0;V.bi_valid=0};
tDt=function(V,l,I){yv3(V);lG(V,I);lG(V,~I);TQ.arraySet(V.pending_buf,V.window,l,I,V.pending);V.pending+=I};
rvJ=function(V,l,I,H){var T=l*2,x=I*2;return V[T]<V[x]||V[T]===V[x]&&H[l]<=H[I]};
GR1=function(V,l,I){for(var H=V.heap[I],T=I<<1;T<=V.heap_len;){T<V.heap_len&&rvJ(l,V.heap[T+1],V.heap[T],V.depth)&&T++;if(rvJ(l,H,V.heap[T],V.depth))break;V.heap[I]=V.heap[T];I=T;T<<=1}V.heap[I]=H};
P3g=function(V,l,I){var H=0;if(V.last_lit!==0){do{var T=V.pending_buf[V.d_buf+H*2]<<8|V.pending_buf[V.d_buf+H*2+1];var x=V.pending_buf[V.l_buf+H];H++;if(T===0)Ha(V,x,l);else{var n=Ba[x];Ha(V,n+256+1,l);var w=EVw[n];w!==0&&(x-=Jvy[n],IS(V,x,w));T--;n=T<256?xe[T]:xe[256+(T>>>7)];Ha(V,n,I);w=oVT[n];w!==0&&(T-=hrT[n],IS(V,T,w))}}while(H<V.last_lit)}Ha(V,256,l)};
Dv1=function(V,l){var I=l.dyn_tree,H=l.stat_desc.static_tree,T=l.stat_desc.has_stree,x=l.stat_desc.elems,n,w=-1;V.heap_len=0;V.heap_max=573;for(n=0;n<x;n++)I[n*2]!==0?(V.heap[++V.heap_len]=w=n,V.depth[n]=0):I[n*2+1]=0;for(;V.heap_len<2;){var N=V.heap[++V.heap_len]=w<2?++w:0;I[N*2]=1;V.depth[N]=0;V.opt_len--;T&&(V.static_len-=H[N*2+1])}l.max_code=w;for(n=V.heap_len>>1;n>=1;n--)GR1(V,I,n);N=x;do n=V.heap[1],V.heap[1]=V.heap[V.heap_len--],GR1(V,I,1),H=V.heap[1],V.heap[--V.heap_max]=n,V.heap[--V.heap_max]=
H,I[N*2]=I[n*2]+I[H*2],V.depth[N]=(V.depth[n]>=V.depth[H]?V.depth[n]:V.depth[H])+1,I[n*2+1]=I[H*2+1]=N,V.heap[1]=N++,GR1(V,I,1);while(V.heap_len>=2);V.heap[--V.heap_max]=V.heap[1];n=l.dyn_tree;N=l.max_code;H=l.stat_desc.static_tree;T=l.stat_desc.has_stree;x=l.stat_desc.extra_bits;var L=l.stat_desc.extra_base,e=l.stat_desc.max_length,k,X=0;for(k=0;k<=15;k++)V.bl_count[k]=0;n[V.heap[V.heap_max]*2+1]=0;for(l=V.heap_max+1;l<573;l++){var r=V.heap[l];k=n[n[r*2+1]*2+1]+1;k>e&&(k=e,X++);n[r*2+1]=k;if(!(r>
N)){V.bl_count[k]++;var E=0;r>=L&&(E=x[r-L]);var D=n[r*2];V.opt_len+=D*(k+E);T&&(V.static_len+=D*(H[r*2+1]+E))}}if(X!==0){do{for(k=e-1;V.bl_count[k]===0;)k--;V.bl_count[k]--;V.bl_count[k+1]+=2;V.bl_count[e]--;X-=2}while(X>0);for(k=e;k!==0;k--)for(r=V.bl_count[k];r!==0;)H=V.heap[--l],H>N||(n[H*2+1]!==k&&(V.opt_len+=(k-n[H*2+1])*n[H*2],n[H*2+1]=k),r--)}XbJ(I,w,V.bl_count)};
ZY1=function(V,l,I){var H,T=-1,x=l[1],n=0,w=7,N=4;x===0&&(w=138,N=3);l[(I+1)*2+1]=65535;for(H=0;H<=I;H++){var L=x;x=l[(H+1)*2+1];++n<w&&L===x||(n<N?V.bl_tree[L*2]+=n:L!==0?(L!==T&&V.bl_tree[L*2]++,V.bl_tree[32]++):n<=10?V.bl_tree[34]++:V.bl_tree[36]++,n=0,T=L,x===0?(w=138,N=3):L===x?(w=6,N=3):(w=7,N=4))}};
Szt=function(V,l,I){var H,T=-1,x=l[1],n=0,w=7,N=4;x===0&&(w=138,N=3);for(H=0;H<=I;H++){var L=x;x=l[(H+1)*2+1];if(!(++n<w&&L===x)){if(n<N){do Ha(V,L,V.bl_tree);while(--n!==0)}else L!==0?(L!==T&&(Ha(V,L,V.bl_tree),n--),Ha(V,16,V.bl_tree),IS(V,n-3,2)):n<=10?(Ha(V,17,V.bl_tree),IS(V,n-3,3)):(Ha(V,18,V.bl_tree),IS(V,n-11,7));n=0;T=L;x===0?(w=138,N=3):L===x?(w=6,N=3):(w=7,N=4)}}};
Rr1=function(V){var l=4093624447,I;for(I=0;I<=31;I++,l>>>=1)if(l&1&&V.dyn_ltree[I*2]!==0)return 0;if(V.dyn_ltree[18]!==0||V.dyn_ltree[20]!==0||V.dyn_ltree[26]!==0)return 1;for(I=32;I<256;I++)if(V.dyn_ltree[I*2]!==0)return 1;return 0};
Uh=function(V,l,I){V.pending_buf[V.d_buf+V.last_lit*2]=l>>>8&255;V.pending_buf[V.d_buf+V.last_lit*2+1]=l&255;V.pending_buf[V.l_buf+V.last_lit]=I&255;V.last_lit++;l===0?V.dyn_ltree[I*2]++:(V.matches++,l--,V.dyn_ltree[(Ba[I]+256+1)*2]++,V.dyn_dtree[(l<256?xe[l]:xe[256+(l>>>7)])*2]++);return V.last_lit===V.lit_bufsize-1};
$e=function(V,l){V.msg=n0[l];return l};
d0=function(V){for(var l=V.length;--l>=0;)V[l]=0};
w0=function(V){var l=V.state,I=l.pending;I>V.avail_out&&(I=V.avail_out);I!==0&&(TQ.arraySet(V.output,l.pending_buf,l.pending_out,I,V.next_out),V.next_out+=I,l.pending_out+=I,V.total_out+=I,V.avail_out-=I,l.pending-=I,l.pending===0&&(l.pending_out=0))};
jQ=function(V,l){var I=V.block_start>=0?V.block_start:-1,H=V.strstart-V.block_start,T=0;if(V.level>0){V.strm.data_type===2&&(V.strm.data_type=Rr1(V));Dv1(V,V.l_desc);Dv1(V,V.d_desc);ZY1(V,V.dyn_ltree,V.l_desc.max_code);ZY1(V,V.dyn_dtree,V.d_desc.max_code);Dv1(V,V.bl_desc);for(T=18;T>=3&&V.bl_tree[QQ1[T]*2+1]===0;T--);V.opt_len+=3*(T+1)+5+5+4;var x=V.opt_len+3+7>>>3;var n=V.static_len+3+7>>>3;n<=x&&(x=n)}else x=n=H+5;if(H+4<=x&&I!==-1)IS(V,l?1:0,3),tDt(V,I,H);else if(V.strategy===4||n===x)IS(V,2+(l?
1:0),3),P3g(V,ND,K0);else{IS(V,4+(l?1:0),3);I=V.l_desc.max_code+1;H=V.d_desc.max_code+1;T+=1;IS(V,I-257,5);IS(V,H-1,5);IS(V,T-4,4);for(x=0;x<T;x++)IS(V,V.bl_tree[QQ1[x]*2+1],3);Szt(V,V.dyn_ltree,I-1);Szt(V,V.dyn_dtree,H-1);P3g(V,V.dyn_ltree,V.dyn_dtree)}zrJ(V);l&&yv3(V);V.block_start=V.strstart;w0(V.strm)};
Ye=function(V,l){V.pending_buf[V.pending++]=l};
eQ=function(V,l){V.pending_buf[V.pending++]=l>>>8&255;V.pending_buf[V.pending++]=l&255};
cvJ=function(V,l){var I=V.max_chain_length,H=V.strstart,T=V.prev_length,x=V.nice_match,n=V.strstart>V.w_size-262?V.strstart-(V.w_size-262):0,w=V.window,N=V.w_mask,L=V.prev,e=V.strstart+258,k=w[H+T-1],X=w[H+T];V.prev_length>=V.good_match&&(I>>=2);x>V.lookahead&&(x=V.lookahead);do{var r=l;if(w[r+T]===X&&w[r+T-1]===k&&w[r]===w[H]&&w[++r]===w[H+1]){H+=2;for(r++;w[++H]===w[++r]&&w[++H]===w[++r]&&w[++H]===w[++r]&&w[++H]===w[++r]&&w[++H]===w[++r]&&w[++H]===w[++r]&&w[++H]===w[++r]&&w[++H]===w[++r]&&H<e;);
r=258-(e-H);H=e-258;if(r>T){V.match_start=l;T=r;if(r>=x)break;k=w[H+T-1];X=w[H+T]}}}while((l=L[l&N])>n&&--I!==0);return T<=V.lookahead?T:V.lookahead};
Ff=function(V){var l=V.w_size,I;do{var H=V.window_size-V.lookahead-V.strstart;if(V.strstart>=l+(l-262)){TQ.arraySet(V.window,V.window,l,l,0);V.match_start-=l;V.strstart-=l;V.block_start-=l;var T=I=V.hash_size;do{var x=V.head[--T];V.head[T]=x>=l?x-l:0}while(--I);T=I=l;do x=V.prev[--T],V.prev[T]=x>=l?x-l:0;while(--I);H+=l}if(V.strm.avail_in===0)break;T=V.strm;I=V.window;x=V.strstart+V.lookahead;var n=T.avail_in;n>H&&(n=H);n===0?I=0:(T.avail_in-=n,TQ.arraySet(I,T.input,T.next_in,n,x),T.state.wrap===
1?T.adler=WLW(T.adler,I,n,x):T.state.wrap===2&&(T.adler=ke(T.adler,I,n,x)),T.next_in+=n,T.total_in+=n,I=n);V.lookahead+=I;if(V.lookahead+V.insert>=3)for(H=V.strstart-V.insert,V.ins_h=V.window[H],V.ins_h=(V.ins_h<<V.hash_shift^V.window[H+1])&V.hash_mask;V.insert&&!(V.ins_h=(V.ins_h<<V.hash_shift^V.window[H+3-1])&V.hash_mask,V.prev[H&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=H,H++,V.insert--,V.lookahead+V.insert<3););}while(V.lookahead<262&&V.strm.avail_in!==0)};
bYW=function(V,l){for(var I;;){if(V.lookahead<262){Ff(V);if(V.lookahead<262&&l===0)return 1;if(V.lookahead===0)break}I=0;V.lookahead>=3&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+3-1])&V.hash_mask,I=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart);I!==0&&V.strstart-I<=V.w_size-262&&(V.match_length=cvJ(V,I));if(V.match_length>=3)if(I=Uh(V,V.strstart-V.match_start,V.match_length-3),V.lookahead-=V.match_length,V.match_length<=V.max_lazy_match&&V.lookahead>=3){V.match_length--;
do V.strstart++,V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+3-1])&V.hash_mask,V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart;while(--V.match_length!==0);V.strstart++}else V.strstart+=V.match_length,V.match_length=0,V.ins_h=V.window[V.strstart],V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+1])&V.hash_mask;else I=Uh(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++;if(I&&(jQ(V,!1),V.strm.avail_out===0))return 1}V.insert=V.strstart<2?V.strstart:2;return l===4?(jQ(V,
!0),V.strm.avail_out===0?3:4):V.last_lit&&(jQ(V,!1),V.strm.avail_out===0)?1:2};
zQ=function(V,l){for(var I,H;;){if(V.lookahead<262){Ff(V);if(V.lookahead<262&&l===0)return 1;if(V.lookahead===0)break}I=0;V.lookahead>=3&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+3-1])&V.hash_mask,I=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart);V.prev_length=V.match_length;V.prev_match=V.match_start;V.match_length=2;I!==0&&V.prev_length<V.max_lazy_match&&V.strstart-I<=V.w_size-262&&(V.match_length=cvJ(V,I),V.match_length<=5&&(V.strategy===1||V.match_length===3&&
V.strstart-V.match_start>4096)&&(V.match_length=2));if(V.prev_length>=3&&V.match_length<=V.prev_length){H=V.strstart+V.lookahead-3;I=Uh(V,V.strstart-1-V.prev_match,V.prev_length-3);V.lookahead-=V.prev_length-1;V.prev_length-=2;do++V.strstart<=H&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+3-1])&V.hash_mask,V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart);while(--V.prev_length!==0);V.match_available=0;V.match_length=2;V.strstart++;if(I&&(jQ(V,!1),V.strm.avail_out===0))return 1}else if(V.match_available){if((I=
Uh(V,0,V.window[V.strstart-1]))&&jQ(V,!1),V.strstart++,V.lookahead--,V.strm.avail_out===0)return 1}else V.match_available=1,V.strstart++,V.lookahead--}V.match_available&&(Uh(V,0,V.window[V.strstart-1]),V.match_available=0);V.insert=V.strstart<2?V.strstart:2;return l===4?(jQ(V,!0),V.strm.avail_out===0?3:4):V.last_lit&&(jQ(V,!1),V.strm.avail_out===0)?1:2};
qzJ=function(V,l){for(var I,H,T,x=V.window;;){if(V.lookahead<=258){Ff(V);if(V.lookahead<=258&&l===0)return 1;if(V.lookahead===0)break}V.match_length=0;if(V.lookahead>=3&&V.strstart>0&&(H=V.strstart-1,I=x[H],I===x[++H]&&I===x[++H]&&I===x[++H])){for(T=V.strstart+258;I===x[++H]&&I===x[++H]&&I===x[++H]&&I===x[++H]&&I===x[++H]&&I===x[++H]&&I===x[++H]&&I===x[++H]&&H<T;);V.match_length=258-(T-H);V.match_length>V.lookahead&&(V.match_length=V.lookahead)}V.match_length>=3?(I=Uh(V,1,V.match_length-3),V.lookahead-=
V.match_length,V.strstart+=V.match_length,V.match_length=0):(I=Uh(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++);if(I&&(jQ(V,!1),V.strm.avail_out===0))return 1}V.insert=0;return l===4?(jQ(V,!0),V.strm.avail_out===0?3:4):V.last_lit&&(jQ(V,!1),V.strm.avail_out===0)?1:2};
MDf=function(V,l){for(var I;;){if(V.lookahead===0&&(Ff(V),V.lookahead===0)){if(l===0)return 1;break}V.match_length=0;I=Uh(V,0,V.window[V.strstart]);V.lookahead--;V.strstart++;if(I&&(jQ(V,!1),V.strm.avail_out===0))return 1}V.insert=0;return l===4?(jQ(V,!0),V.strm.avail_out===0?3:4):V.last_lit&&(jQ(V,!1),V.strm.avail_out===0)?1:2};
yz=function(V,l,I,H,T){this.good_length=V;this.max_lazy=l;this.nice_length=I;this.max_chain=H;this.func=T};
sQt=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 TQ.Buf16(1146);this.dyn_dtree=new TQ.Buf16(122);this.bl_tree=new TQ.Buf16(78);d0(this.dyn_ltree);d0(this.dyn_dtree);d0(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new TQ.Buf16(16);this.heap=new TQ.Buf16(573);d0(this.heap);this.heap_max=this.heap_len=0;this.depth=new TQ.Buf16(573);d0(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};
pbt=function(V,l){if(!V||!V.state||l>5||l<0)return V?$e(V,-2):-2;var I=V.state;if(!V.output||!V.input&&V.avail_in!==0||I.status===666&&l!==4)return $e(V,V.avail_out===0?-5:-2);I.strm=V;var H=I.last_flush;I.last_flush=l;if(I.status===42)if(I.wrap===2)V.adler=0,Ye(I,31),Ye(I,139),Ye(I,8),I.gzhead?(Ye(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),Ye(I,I.gzhead.time&255),Ye(I,I.gzhead.time>>8&255),Ye(I,I.gzhead.time>>16&255),Ye(I,I.gzhead.time>>
24&255),Ye(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),Ye(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(Ye(I,I.gzhead.extra.length&255),Ye(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(V.adler=ke(V.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(Ye(I,0),Ye(I,0),Ye(I,0),Ye(I,0),Ye(I,0),Ye(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),Ye(I,3),I.status=113);else{var T=8+(I.w_bits-8<<4)<<8;T|=(I.strategy>=2||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6;I.strstart!==0&&(T|=
32);I.status=113;eQ(I,T+(31-T%31));I.strstart!==0&&(eQ(I,V.adler>>>16),eQ(I,V.adler&65535));V.adler=1}if(I.status===69)if(I.gzhead.extra){for(T=I.pending;I.gzindex<(I.gzhead.extra.length&65535)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>T&&(V.adler=ke(V.adler,I.pending_buf,I.pending-T,T)),w0(V),T=I.pending,I.pending!==I.pending_buf_size));)Ye(I,I.gzhead.extra[I.gzindex]&255),I.gzindex++;I.gzhead.hcrc&&I.pending>T&&(V.adler=ke(V.adler,I.pending_buf,I.pending-T,T));I.gzindex===I.gzhead.extra.length&&
(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){T=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>T&&(V.adler=ke(V.adler,I.pending_buf,I.pending-T,T)),w0(V),T=I.pending,I.pending===I.pending_buf_size)){var x=1;break}x=I.gzindex<I.gzhead.name.length?I.gzhead.name.charCodeAt(I.gzindex++)&255:0;Ye(I,x)}while(x!==0);I.gzhead.hcrc&&I.pending>T&&(V.adler=ke(V.adler,I.pending_buf,I.pending-T,T));x===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===
91)if(I.gzhead.comment){T=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>T&&(V.adler=ke(V.adler,I.pending_buf,I.pending-T,T)),w0(V),T=I.pending,I.pending===I.pending_buf_size)){x=1;break}x=I.gzindex<I.gzhead.comment.length?I.gzhead.comment.charCodeAt(I.gzindex++)&255:0;Ye(I,x)}while(x!==0);I.gzhead.hcrc&&I.pending>T&&(V.adler=ke(V.adler,I.pending_buf,I.pending-T,T));x===0&&(I.status=103)}else I.status=103;I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&w0(V),
I.pending+2<=I.pending_buf_size&&(Ye(I,V.adler&255),Ye(I,V.adler>>8&255),V.adler=0,I.status=113)):I.status=113);if(I.pending!==0){if(w0(V),V.avail_out===0)return I.last_flush=-1,0}else if(V.avail_in===0&&(l<<1)-(l>4?9:0)<=(H<<1)-(H>4?9:0)&&l!==4)return $e(V,-5);if(I.status===666&&V.avail_in!==0)return $e(V,-5);if(V.avail_in!==0||I.lookahead!==0||l!==0&&I.status!==666){H=I.strategy===2?MDf(I,l):I.strategy===3?qzJ(I,l):t2[I.level].func(I,l);if(H===3||H===4)I.status=666;if(H===1||H===3)return V.avail_out===
0&&(I.last_flush=-1),0;if(H===2&&(l===1?(IS(I,2,3),Ha(I,256,ND),I.bi_valid===16?(lG(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)):l!==5&&(IS(I,0,3),tDt(I,0,0),l===3&&(d0(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),w0(V),V.avail_out===0))return I.last_flush=-1,0}if(l!==4)return 0;if(I.wrap<=0)return 1;I.wrap===2?(Ye(I,V.adler&255),Ye(I,V.adler>>8&255),Ye(I,V.adler>>16&255),Ye(I,V.adler>>24&255),Ye(I,
V.total_in&255),Ye(I,V.total_in>>8&255),Ye(I,V.total_in>>16&255),Ye(I,V.total_in>>24&255)):(eQ(I,V.adler>>>16),eQ(I,V.adler&65535));w0(V);I.wrap>0&&(I.wrap=-I.wrap);return I.pending!==0?0:1};
Avf=function(V){if(!(this instanceof Avf))return new Avf(V);V=this.options=TQ.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},V||{});V.raw&&V.windowBits>0?V.windowBits=-V.windowBits:V.gzip&&V.windowBits>0&&V.windowBits<16&&(V.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new uMy;this.strm.avail_out=0;var l=this.strm;var I=V.level,H=V.method,T=V.windowBits,x=V.memLevel,n=V.strategy;if(l){var w=1;I===-1&&(I=6);T<0?(w=0,T=-T):T>15&&
(w=2,T-=16);if(x<1||x>9||H!==8||T<8||T>15||I<0||I>9||n<0||n>4)l=$e(l,-2);else{T===8&&(T=9);var N=new sQt;l.state=N;N.strm=l;N.wrap=w;N.gzhead=null;N.w_bits=T;N.w_size=1<<N.w_bits;N.w_mask=N.w_size-1;N.hash_bits=x+7;N.hash_size=1<<N.hash_bits;N.hash_mask=N.hash_size-1;N.hash_shift=~~((N.hash_bits+3-1)/3);N.window=new TQ.Buf8(N.w_size*2);N.head=new TQ.Buf16(N.hash_size);N.prev=new TQ.Buf16(N.w_size);N.lit_bufsize=1<<x+6;N.pending_buf_size=N.lit_bufsize*4;N.pending_buf=new TQ.Buf8(N.pending_buf_size);
N.d_buf=N.lit_bufsize;N.l_buf=3*N.lit_bufsize;N.level=I;N.strategy=n;N.method=H;if(l&&l.state){l.total_in=l.total_out=0;l.data_type=2;I=l.state;I.pending=0;I.pending_out=0;I.wrap<0&&(I.wrap=-I.wrap);I.status=I.wrap?42:113;l.adler=I.wrap===2?0:1;I.last_flush=0;if(!vVT){H=Array(16);for(x=n=0;x<28;x++)for(Jvy[x]=n,T=0;T<1<<EVw[x];T++)Ba[n++]=x;Ba[n-1]=x;for(x=n=0;x<16;x++)for(hrT[x]=n,T=0;T<1<<oVT[x];T++)xe[n++]=x;for(n>>=7;x<30;x++)for(hrT[x]=n<<7,T=0;T<1<<oVT[x]-7;T++)xe[256+n++]=x;for(T=0;T<=15;T++)H[T]=
0;for(T=0;T<=143;)ND[T*2+1]=8,T++,H[8]++;for(;T<=255;)ND[T*2+1]=9,T++,H[9]++;for(;T<=279;)ND[T*2+1]=7,T++,H[7]++;for(;T<=287;)ND[T*2+1]=8,T++,H[8]++;XbJ(ND,287,H);for(T=0;T<30;T++)K0[T*2+1]=5,K0[T*2]=FLc(T,5);OYf=new erg(ND,EVw,257,286,15);C3W=new erg(K0,oVT,0,30,15);afK=new erg([],ffc,0,19,7);vVT=!0}I.l_desc=new kR3(I.dyn_ltree,OYf);I.d_desc=new kR3(I.dyn_dtree,C3W);I.bl_desc=new kR3(I.bl_tree,afK);I.bi_buf=0;I.bi_valid=0;zrJ(I);I=0}else I=$e(l,-2);I===0&&(l=l.state,l.window_size=2*l.w_size,d0(l.head),
l.max_lazy_match=t2[l.level].max_lazy,l.good_match=t2[l.level].good_length,l.nice_match=t2[l.level].nice_length,l.max_chain_length=t2[l.level].max_chain,l.strstart=0,l.block_start=0,l.lookahead=0,l.insert=0,l.match_length=l.prev_length=2,l.match_available=0,l.ins_h=0);l=I}}else l=-2;if(l!==0)throw Error(n0[l]);V.header&&(l=this.strm)&&l.state&&l.state.wrap===2&&(l.state.gzhead=V.header);if(V.dictionary){var L;typeof V.dictionary==="string"?L=gVJ(V.dictionary):mvf.call(V.dictionary)==="[object ArrayBuffer]"?
L=new Uint8Array(V.dictionary):L=V.dictionary;V=this.strm;x=L;n=x.length;if(V&&V.state)if(L=V.state,l=L.wrap,l===2||l===1&&L.status!==42||L.lookahead)l=-2;else{l===1&&(V.adler=WLW(V.adler,x,n,0));L.wrap=0;n>=L.w_size&&(l===0&&(d0(L.head),L.strstart=0,L.block_start=0,L.insert=0),I=new TQ.Buf8(L.w_size),TQ.arraySet(I,x,n-L.w_size,L.w_size,0),x=I,n=L.w_size);I=V.avail_in;H=V.next_in;T=V.input;V.avail_in=n;V.next_in=0;V.input=x;for(Ff(L);L.lookahead>=3;){x=L.strstart;n=L.lookahead-2;do L.ins_h=(L.ins_h<<
L.hash_shift^L.window[x+3-1])&L.hash_mask,L.prev[x&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=x,x++;while(--n);L.strstart=x;L.lookahead=2;Ff(L)}L.strstart+=L.lookahead;L.block_start=L.strstart;L.insert=L.lookahead;L.lookahead=0;L.match_length=L.prev_length=2;L.match_available=0;V.next_in=H;V.input=T;V.avail_in=I;L.wrap=l;l=0}else l=-2;if(l!==0)throw Error(n0[l]);this._dict_set=!0}};
iYy=function(V,l){l=l||{};l.gzip=!0;l=new Avf(l);l.push(V,!0);if(l.err)throw l.msg||n0[l.err];return l.result};
lR1=function(V,l){var I=V5J();I&&I.publish.call(I,V.toString(),V,l)};
xeW=function(V,l,I){var H=V5J();if(!H)return 0;var T=H.subscribe(V.toString(),function(x,n){var w=_.SN("ytPubsub2Pubsub2SkipSubKey");w&&w==T||(w=function(){if(IRg[T])try{if(n&&V instanceof Hm3&&V!=x)try{var N=V.dataClass,L=n;if(!L.args||!L.version)throw Error("Zc");try{if(!N.version_){var e=new N;N.version_=e.version}var k=N.version_}catch(X){}if(!k||L.version!=k)throw Error("$c");try{n=Reflect.construct(N,_.uN(L.args))}catch(X){throw X.message="yt.pubsub2.Data.deserialize(): "+X.message,X;}}catch(X){throw X.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+V.toString()+": "+X.message,X;}l.call(I||window,n)}catch(X){_.Dp(X)}},T_1[V.toString()]?_.SN("yt.scheduler.instance")?_.r0.addLowPriorityJob(w):_.Iv(w,0):w())});
IRg[T]=!0;B_1[V.toString()]||(B_1[V.toString()]=[]);B_1[V.toString()].push(T);return T};
deN=function(){var V=Uef,l=xeW(nsw,function(I){V.apply(void 0,arguments);$ec(l)});
return l};
$ec=function(V){var l=V5J();l&&(typeof V==="number"&&(V=[V]),_.cO(V,function(I){l.unsubscribeByKey(I);delete IRg[I]}))};
V5J=function(){return _.SN("ytPubsub2Pubsub2Instance")};
w13=function(V,l,I){I=I===void 0?{sampleRate:.1}:I;Math.random()<Math.min(.02,I.sampleRate/100)&&lR1("meta_logging_csi_event",{timerName:V,timelineData:l})};
_.N_J=function(V){return V?(V=V.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.aO(V):null:null};
_.GQ=function(V){return V?(V=V.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Xj(V):null:null};
jjN=function(){Kjq||(Kjq=_.GQ(_.h6("WORKER_SERIALIZATION_URL")));return Kjq||void 0};
_.Ljc=function(){var V=jjN();Y7q||V===void 0||(Y7q=new Worker(_.tV(V),void 0));return Y7q};
_.ee1=function(){return typeof Worker==="function"&&jjN()?!0:!1};
_.zeN=function(){if(_.ee1()&&!koW){var V=function(I){I=I.data;if(I.op==="gzippedGelBatch"){var H=Fjf.get(I.key);H&&(X1q(I.gzippedBatch,H.latencyPayload,H.url,H.options,H.sendFn),Fjf.delete(I.key))}},l=_.Ljc();
l&&(l.addEventListener("message",V),l.onerror=function(){Fjf.clear()},koW=!0)}};
os1=function(V,l,I,H,T){T=T===void 0?!1:T;var x={startTime:(0,_.O_)(),ticks:{},infos:{}};if(Eh)try{var n=yTT(l);if(n!=null&&(n>t5q||n<rTf))H(V,I);else{if(_.z("gzip_gel_with_worker")&&(_.z("initial_gzip_use_main_thread")&&!Got||!_.z("initial_gzip_use_main_thread"))){koW||_.zeN();var w=_.Ljc();if(w&&!T){Fjf.set(Esy,{latencyPayload:x,url:V,options:I,sendFn:H});w.postMessage({op:"gelBatchToGzip",serializedBatch:l,key:Esy});Esy++;return}}var N=iYy(JTN(l));X1q(N,x,V,I,H)}}catch(L){_.Rw(L),H(V,I)}else H(V,
I)};
X1q=function(V,l,I,H,T){Got=!1;var x=(0,_.O_)();l.ticks.gelc=x;J2++;_.z("disable_compression_due_to_performance_degredation")&&x-l.startTime>=he1&&(PfT++,_.z("abandon_compression_after_N_slow_zips")?J2===_.g7("compression_disable_point")&&PfT>Dew&&(Eh=!1):Eh=!1);ZmJ(l);H.headers||(H.headers={});H.headers["Content-Encoding"]="gzip";H.postBody=V;H.postParams=void 0;T(I,H)};
S7f=function(V){var l=l===void 0?!1:l;var I=I===void 0?!1:I;var H=(0,_.O_)(),T={startTime:H,ticks:{},infos:{}},x=l?_.SN("yt.logging.gzipForFetch",!1):!0;if(Eh&&x){if(!V.body)return V;try{var n=I?V.body:typeof V.body==="string"?V.body:JSON.stringify(V.body);x=n;if(!I&&typeof n==="string"){var w=yTT(n);if(w!=null&&(w>t5q||w<rTf))return V;I=l?{level:1}:void 0;x=iYy(JTN(n),I);var N=(0,_.O_)();T.ticks.gelc=N;if(l){J2++;if((_.z("disable_compression_due_to_performance_degredation")||_.z("disable_compression_due_to_performance_degradation_lr"))&&
N-H>=he1)if(PfT++,_.z("abandon_compression_after_N_slow_zips")||_.z("abandon_compression_after_N_slow_zips_lr")){l=PfT/J2;var L=Dew/_.g7("compression_disable_point");J2>0&&J2%_.g7("compression_disable_point")===0&&l>=L&&(Eh=!1)}else Eh=!1;ZmJ(T)}}V.headers=Object.assign({},{"Content-Encoding":"gzip"},V.headers||{});V.body=x;return V}catch(e){return _.Rw(e),V}}else return V};
yTT=function(V){try{return(new Blob(V.split(""))).size}catch(l){return _.Rw(l),null}};
ZmJ=function(V){_.z("gel_compression_csi_killswitch")||!_.z("log_gel_compression_latency")&&!_.z("log_gel_compression_latency_lr")||w13("gel_compression",V,{sampleRate:.1})};
ReJ=function(){this.blockSize=-1};
oS=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var V=1;V<this.blockSize;++V)this.pad_[V]=0;this.total_=this.inbuf_=0;this.reset()};
cTT=function(V){V=Object.assign({},V);delete V.Authorization;var l=Qjy();if(l){var I=new oS;I.update(_.h6("INNERTUBE_API_KEY"));I.update(l);V.hash=_.rg(I.digest(),3)}return V};
Pa=function(){Wjy||(Wjy=new _.h2("yt.innertube"));return Wjy};
bmJ=function(V,l,I,H){if(H)return null;H=Pa().get("nextId",!0)||1;var T=Pa().get("requests",!0)||{};T[H]={method:V,request:l,authState:cTT(I),requestTime:Math.round((0,_.O_)())};Pa().set("nextId",H+1,86400,!0);Pa().set("requests",T,86400,!0);return H};
q7w=function(V){var l=Pa().get("requests",!0)||{};delete l[V];Pa().set("requests",l,86400,!0)};
sj3=function(V){var l=Pa().get("requests",!0);if(l){for(var I in l){var H=l[I];if(!(Math.round((0,_.O_)())-H.requestTime<6E4)){var T=H.authState,x=cTT(_.Yzq(!1));_.EL.equals(T,x)&&(T=H.request,"requestTimeMs"in T&&(T.requestTimeMs=Math.round((0,_.O_)())),M5q(V,H.method,T,{}));delete l[I]}}Pa().set("requests",l,86400,!0)}};
p1q=function(V){var l;return(V=V==null?void 0:(l=V.error)==null?void 0:l.code)&&V>=400&&V<=599?!1:!0};
ATy=function(V){var l;V=V==null?void 0:(l=V.error)==null?void 0:l.code;return!(V!==400&&V!==415)};
vsf=function(){if(uVW)return uVW();var V={};uVW=vx("LogsDatabaseV2",{objectStores:(V.LogsRequestsStore={addedAtVersion:2},V),shared:!1,upgrade:function(l,I,H){I(2)&&DB(l,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});I(3);I(5)&&(H=H.objectStore("LogsRequestsStore"),H.JSC$8460_wrapped.indexNames.contains("newRequest")&&H.JSC$8460_wrapped.deleteIndex("newRequest"),ZB(H,"newRequestV2",["status","interface","timestamp"]));I(7)&&l.JSC$8445_wrapped.objectStoreNames.contains("sapisid")&&l.JSC$8445_wrapped.deleteObjectStore("sapisid");
I(9)&&l.JSC$8445_wrapped.objectStoreNames.contains("SWHealthLog")&&l.JSC$8445_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return uVW()};
SQ=function(V){return _.cx(vsf(),V)};
Cfg=function(V,l){var I,H,T,x;return _.d(function(n){if(n.nextAddress==1)return I={startTime:(0,_.O_)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.K(n,SQ(l),2);if(n.nextAddress!=3)return H=n.yieldResult,T=Object.assign({},V,{options:JSON.parse(JSON.stringify(V.options)),interface:_.h6("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.K(n,H.put("LogsRequestsStore",T),3);x=n.yieldResult;I.ticks.tc=(0,_.O_)();OmT(I);return n.return(x)})};
aR3=function(V,l){var I,H,T,x,n,w,N,L;return _.d(function(e){if(e.nextAddress==1)return I={startTime:(0,_.O_)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.K(e,SQ(l),2);if(e.nextAddress!=3)return H=e.yieldResult,T=_.h6("INNERTUBE_CONTEXT_CLIENT_NAME",0),x=[V,T,0],n=[V,T,(0,_.O_)()],w=IDBKeyRange.bound(x,n),N="prev",_.z("use_fifo_for_networkless")&&(N="next"),L=void 0,_.K(e,_.Wx(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(k){return _.CA(k.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:w,direction:N},function(X){X.getValue()&&(L=X.getValue(),V==="NEW"&&(L.status="QUEUED",X.update(L)))})}),3);
I.ticks.tc=(0,_.O_)();OmT(I);return e.return(L)})};
fRT=function(V,l){var I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,SQ(l),2);I=H.yieldResult;return H.return(_.Wx(I,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(T){var x=T.objectStore("LogsRequestsStore");return x.get(V).then(function(n){if(n)return n.status="QUEUED",x.put(n).then(function(){return n})})}))})};
gs3=function(V,l,I,H){I=I===void 0?!0:I;var T;return _.d(function(x){if(x.nextAddress==1)return _.K(x,SQ(l),2);T=x.yieldResult;return x.return(_.Wx(T,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(n){var w=n.objectStore("LogsRequestsStore");return w.get(V).then(function(N){return N?(N.status="NEW",I&&(N.sendCount+=1),H!==void 0&&(N.options.compress=H),w.put(N).then(function(){return N})):Px.resolve(void 0)})}))})};
mec=function(V,l){var I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,SQ(l),2);I=H.yieldResult;return H.return(I.delete("LogsRequestsStore",V))})};
imW=function(V){var l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,SQ(V),2);l=H.yieldResult;I=(0,_.O_)()-2592E6;return _.K(H,_.Wx(l,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(T){return ql(T.objectStore("LogsRequestsStore"),{},function(x){if(x.getValue().timestamp<=I)return x.delete().then(function(){return x.continue()})})}),0)})};
Vz3=function(){_.d(function(V){return _.K(V,p41("LogsDatabaseV2"),0)})};
OmT=function(V){_.z("nwl_csi_killswitch")||w13("networkless_performance",V,{sampleRate:1})};
_.IAJ=function(V){return _.cx(lAK(),V)};
Htc=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return _.K(H,_.IAJ(V),2);l=H.yieldResult;I=(0,_.O_)()-2592E6;return _.K(H,_.Wx(l,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(T){return ql(T.objectStore("SWHealthLog"),{},function(x){if(x.getValue().timestamp<=I)return x.delete().then(function(){return x.continue()})})}),0)})};
Tj1=function(V){var l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,_.IAJ(V),2);l=I.yieldResult;return _.K(I,l.clear("SWHealthLog"),0)})};
_.RS=function(V,l,I,H,T,x,n){T=T===void 0?"":T;x=x===void 0?!1:x;n=n===void 0?!1:n;if(V)if(I&&!E_("cobalt"))_.Rw(new _.Yd("Legacy referrer-scrubbed ping detected")),V&&Bjc(V,void 0,{scrubReferrer:!0});else if(T)DJt(V,l,"POST",T,H);else if(_.h6("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||H||n)DJt(V,l,"GET","",H,void 0,x,n);else{b:{try{c:{var w=new xR3({url:V});if(jwf(w.JSC$7346_url_,"dsh")==="1")var N=null;else{var L=jwf(w.JSC$7346_url_,"ae");if(L==="1"){var e=jwf(w.JSC$7346_url_,"adurl");if(e)try{N={version:3,
directUrl:decodeURIComponent(e),asyncUrl:Yo1(w.JSC$7346_url_,"act=1","ri=1",URy(w))};break c}catch(E){}}N=L==="2"?{version:4,directUrl:Yo1(w.JSC$7346_url_,"dct=1","suid="+w.suid_,""),asyncUrl:Yo1(w.JSC$7346_url_,"act=1","ri=1","suid="+w.suid_)}:null}}if(N){var k=_.Bx(V);var X=!(!k||!k.endsWith("/aclk")||_.Qo(V,"ri")!=="1");break b}}catch(E){}X=!1}if(X){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(V,"")){var r=!0;break b}}catch(E){}r=!1}r?(l&&l(),I=!0):I=!1}else I=
!1;I||Bjc(V,l)}};
Bjc=function(V,l,I){I=I===void 0?{}:I;var H=new Image,T=""+n73++;$R1[T]=H;H.onload=H.onerror=function(){l&&$R1[T]&&l();delete $R1[T]};
I.scrubReferrer&&(H.referrerPolicy="no-referrer");H.src=V};
Qz=function(V,l){dRf(V,l==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
wXt=function(V){var l;return((l=document.featurePolicy)==null?0:l.allowedFeatures().includes("attribution-reporting"))?V+"&nis=6":V+"&nis=5"};
NjK=function(V){if(!V)return!1;try{var l;if(((l=_.WO(V))==null?void 0:l.asm)==="4")return!0}catch(I){_.Dp(I)}return!1};
dRf=function(V,l){l?(V=wXt(V),_.RS(V,void 0,void 0,void 0,"",!0,!0)):_.RS(V)};
jNf=function(){KcJ||(KcJ=new _.h2("yt.offline"));return KcJ};
YIg=function(V){if(_.z("offline_error_handling")){var l=jNf().get("errors",!0)||{};l[V.message]={name:V.name,stack:V.stack};V.level&&(l[V.message].level=V.level);jNf().set("errors",l,2592E3,!0)}};
en1=function(V,l,I,H){H=H===void 0?!1:H;l=_.z("web_fp_via_jspb")?Object.assign({},l):l;_.z("use_cfr_monitor")&&LcK(V,l);if(_.z("use_request_time_ms_header"))l.headers&&ut(V)&&(l.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.O_)())));else{var T;if((T=l.postParams)==null?0:T.requestTimeMs)l.postParams.requestTimeMs=Math.round((0,_.O_)())}I&&Object.keys(l).length===0?_.RS(V):l.compress?l.postBody?(typeof l.postBody!=="string"&&(l.postBody=JSON.stringify(l.postBody)),os1(V,l.postBody,
l,_.xd,H)):os1(V,JSON.stringify(l.postParams),l,Qzg,H):_.xd(V,l)};
kGJ=function(V,l){_.z("use_event_time_ms_header")&&ut(V)&&(l.headers||(l.headers={}),l.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.O_)())));return l};
_.XXJ=function(){Fcw||(Fcw=new _.ca({logOfflineErrors:!0,enablePolling:!0}));return Fcw};
LcK=function(V,l){var I=l.onError?l.onError:function(){};
l.onError=function(T,x){Wa().requestComplete(V,!1);I(T,x)};
var H=l.onSuccess?l.onSuccess:function(){};
l.onSuccess=function(T,x){Wa().requestComplete(V,!0);H(T,x)}};
_.znK=function(){return _.ps(document.location.toString())!=="www.youtube-nocookie.com"};
_.roW=function(){return _.SN("ytNetworklessLoggingInitializationOptions")?_.yoK.isNwlInitialized:_.tzK};
GGN=function(V,l){if(_.z("polymer_on_demand_shady_dom")){var I;var H=(I=V.__shady_native_firstElementChild)!=null?I:V.firstElementChild}else H=V.firstElementChild;for(;H;){if(V=l(H)?H:GGN(H,l))return V;H=H.nextElementSibling}return null};
Jog=function(){var V=document;if("visibilityState"in V)return V.visibilityState;var l=E71+"VisibilityState";if(l in V)return V[l]};
_.o7J=function(V,l){var I;bG(V,function(H){I=l[H];return!!I});
return I};
_.MD=function(V){var l=hnc(V);l?l.focus():_.qD(V)};
hnc=function(V){return(V=GGN(V,function(l){return _.sh(l)?Pig(l)&&!!l.offsetParent:!1}))?V:null};
_.qD=function(V,l){V.hasAttribute("tabindex")||V.setAttribute("tabindex","-1");V.focus(l)};
DRy=function(V,l,I,H){H=H===void 0?{}:H;V.addEventListener&&(l!="mouseenter"||"onmouseenter"in document?l!="mouseleave"||"onmouseenter"in document?l=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(l="MozMousePixelScroll"):l="mouseout":l="mouseover");return _.EL.findKey(p0,function(T){var x=typeof T[4]==="boolean"&&T[4]==!!H,n=_.m3(T[4])&&_.m3(H)&&_.EL.equals(T[4],H);return!!T.length&&T[0]==V&&T[1]==l&&T[2]==I&&(x||n)})};
_.Oh=function(V,l,I,H){H=H===void 0?{}:H;if(!V||!V.addEventListener&&!V.attachEvent)return"";var T=DRy(V,l,I,H);if(T)return T;T=++Zty.count+"";var x=!(l!="mouseenter"&&l!="mouseleave"||!V.addEventListener||"onmouseenter"in document);var n=x?function(w){w=new va(w);if(!_.Rg(w.relatedTarget,function(N){return N==V},!0))return w.currentTarget=V,w.type=l,I.call(V,w)}:function(w){w=new va(w);
w.currentTarget=V;return I.call(V,w)};
n=_.Zp(n);V.addEventListener?(l=="mouseenter"&&x?l="mouseover":l=="mouseleave"&&x?l="mouseout":l=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(l="MozMousePixelScroll"),SIy()||typeof H==="boolean"?V.addEventListener(l,n,H):V.addEventListener(l,n,!!H.capture)):V.attachEvent("on"+l,n);p0[T]=[V,l,I,n,H];return T};
_.QN1=function(V,l,I){var H=H===void 0?{}:H;var T=_.Oh(V,l,function(){_.Rn1(T);I.apply(V,arguments)},H)};
_.Rn1=function(V){V&&(typeof V=="string"&&(V=[V]),_.cO(V,function(l){if(l in p0){var I=p0[l],H=I[0],T=I[1],x=I[3];I=I[4];H.removeEventListener?SIy()||typeof I==="boolean"?H.removeEventListener(T,x,I):H.removeEventListener(T,x,!!I.capture):H.detachEvent&&H.detachEvent("on"+T,x);delete p0[l]}}))};
C0=function(V){this.callback_=V;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(V=0;V<4;V++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Oh(window,"mousemove",(0,_.zN)(this.onMouseMove_,this));this.timerId_=_.Hx((0,_.zN)(this.checkPosition_,this),25)};
WcW=function(){var V={};var l=V.preferMobileEvents===void 0?!1:V.preferMobileEvents;V=V.enableScrollEventListener===void 0?!0:V.enableScrollEventListener;if(_.SN("_lact",window)==null){var I=parseInt(_.h6("LACT"),10);I=isFinite(I)?Date.now()-Math.max(I,0):-1;_.Aq("_lact",I,window);_.Aq("_fact",I,window);I==-1&&_.aS();_.Oh(document,"keydown",_.aS);_.Oh(document,"keyup",_.aS);_.Oh(document,"mousedown",_.aS);_.Oh(document,"mouseup",_.aS);l?_.Oh(window,"touchmove",function(){coy("touchmove",200)},{passive:!0}):
(_.Oh(window,"resize",function(){coy("resize",200)}),V&&_.Oh(window,"scroll",function(){coy("scroll",200)}));
new C0(function(){coy("mouse",100)});
_.Oh(document,"touchstart",_.aS,{passive:!0});_.Oh(document,"touchend",_.aS,{passive:!0})}};
coy=function(V,l){bt3[V]||(bt3[V]=!0,_.r0.addLowPriorityJob(function(){_.aS();bt3[V]=!1},l))};
_.aS=function(){_.SN("_lact",window)==null&&WcW();var V=Date.now();_.Aq("_lact",V,window);_.SN("_fact",window)==-1&&_.Aq("_fact",V,window);(V=_.SN("ytglobal.ytUtilActivityCallback_"))&&V()};
_.f0=function(){var V=_.SN("_lact",window);return V==null?-1:Math.max(Date.now()-V,0)};
_.VC=function(V,l,I){var H=_.g0();if(H&&l){var T=H.subscribe(V,function(){var x=arguments,n=function(){mu[T]&&l.apply&&typeof l.apply=="function"&&l.apply(I||window,x)};
try{_.qIt[V]?n():_.Iv(n,0)}catch(w){_.Dp(w)}},I);
mu[T]=!0;iG[V]||(iG[V]=[]);iG[V].push(T);return T}return 0};
_.Mz1=function(V){var l=_.g0();l&&(typeof V==="number"?V=[V]:typeof V==="string"&&(V=[parseInt(V,10)]),_.cO(V,function(I){l.unsubscribeByKey(I);delete mu[I]}))};
_.sNy=function(V,l){var I=_.g0();I&&I.publish.apply(I,arguments)};
_.AoK=function(V){var l=_.g0();if(l)if(l.clear(V),V)pXW(V);else for(var I in iG)pXW(I)};
_.g0=function(){return _.nK.ytPubsubPubsubInstance};
pXW=function(V){iG[V]&&(V=iG[V],_.cO(V,function(l){mu[l]&&delete mu[l]}),V.length=0)};
uoy=function(){var V,l;return"h5vcc"in lx&&((V=lx.h5vcc.traceEvent)==null?0:V.traceBegin)&&((l=lx.h5vcc.traceEvent)==null?0:l.traceEnd)?1:"performance"in lx&&lx.performance.mark&&lx.performance.measure?2:0};
v7c=function(V){var l=uoy();switch(l){case 1:lx.h5vcc.traceEvent.traceBegin("YTLR",V);break;case 2:lx.performance.mark(V+"-start");break;case 0:break;default:_.AB(l,"unknown trace type")}};
Otq=function(V){var l=uoy();switch(l){case 1:lx.h5vcc.traceEvent.traceEnd("YTLR",V);break;case 2:l=V+"-start";var I=V+"-end";lx.performance.mark(I);lx.performance.measure(V,l,I);break;case 0:break;default:_.AB(l,"unknown trace type")}};
Ciw=function(V){var l,I;(I=(l=window).onerror)==null||I.call(l,V.message,"",0,0,V)};
aAt=function(V){if(_.z("web_lifecycle_error_handling_killswitch"))return V();try{return V()}catch(l){Ciw(l)}};
fAK=function(V){return[V.auth===void 0?"undefined":V.auth,V.isJspb===void 0?"undefined":V.isJspb,V.cttAuthInfo===void 0?"undefined":V.cttAuthInfo,V.tier===void 0?"undefined":V.tier].join("/")};
_.y=function(V,l){if(V)return V[l.name]};
_.IV=function(V){return V};
Tr=function(){var V=_.SN("yt.logging.ims");V||(V=new HF,_.Aq("yt.logging.ims",V));return V};
BqW=function(V,l){if(V.endpoint==="log_event"){g7N(V);var I=mRW(V),H=itN(V.payload)||"",T=VU3(H),x=200;if(T){if(T.enabled===!1&&!_.z("web_payload_policy_disabled_killswitch"))return;x=ltw(T.tier);if(x===400){Itq(V,l);return}}BF[I]=!0;I={cttAuthInfo:I,isJspb:!1,tier:x};Tr().storePayload(I,V.payload);HaN(l,!1,I,Tqy(H))}};
nF3=function(V,l,I){if(l.endpoint==="log_event"){g7N(void 0,l);var H=mRW(l,!0),T=VU3(V),x=200;if(T){if(T.enabled===!1&&!_.z("web_payload_policy_disabled_killswitch"))return;x=ltw(T.tier);if(x===400){Uit(V,l,I);return}}BF[H]=!0;H={cttAuthInfo:H,isJspb:!0,tier:x};Tr().storePayload(H,EP(l.payload));HaN(I,!0,H,Tqy(V))}};
HaN=function(V,l,I,H){l=l===void 0?!1:l;H=H===void 0?!1:H;V&&(xl=new V);V=_.g7("tvhtml5_logging_max_batch_ads_fork")||_.g7("tvhtml5_logging_max_batch")||_.g7("web_logging_max_batch")||100;var T=(0,_.O_)(),x=$iN(l,I.tier),n=x.lastDebounceQueueFromLogTimeMs;H&&(x.useVideoStatsEndPoint=!0);H=0;I&&(H=Tr().getSequenceCount(I));var w=function(){dic({writeThenSend:!0},l,I.tier)};
H>=1E3?w():H>=V?wuN||(wuN=Nq1(function(){w();wuN=void 0},0)):T-n>=10&&(Ksw(l,I.tier),x.lastDebounceQueueFromLogTimeMs=T)};
Itq=function(V,l){if(V.endpoint==="log_event"){_.z("more_accurate_gel_parser")&&Tr().storePayload({isJspb:!1},V.payload);g7N(V);var I=mRW(V),H=new Map;H.set(I,[V.payload]);var T=itN(V.payload)||"";l&&(xl=new l);return new _.UZ(function(x,n){xl&&xl.isReady()?j2y(H,xl,x,n,{bypassNetworkless:!0},!0,Tqy(T)):x()})}};
Uit=function(V,l,I){if(l.endpoint==="log_event"){g7N(void 0,l);var H=mRW(l,!0),T=new Map;T.set(H,[EP(l.payload)]);I&&(xl=new I);return new _.UZ(function(x){xl&&xl.isReady()?YxW(T,xl,x,{bypassNetworkless:!0},!0,Tqy(V)):x()})}};
mRW=function(V,l){var I="";if(V.dangerousLogToVisitorSession)I="visitorOnlyApprovedKey";else if(V.cttAuthInfo){if(l===void 0?0:l){l=V.cttAuthInfo.token;I=V.cttAuthInfo;var H=new LsJ;I.videoId?H.setVideoId(I.videoId):I.playlistId&&nO(H,2,eLJ,Yh(I.playlistId));kSf[l]=H}else l=V.cttAuthInfo,I={},l.videoId?I.videoId=l.videoId:l.playlistId&&(I.playlistId=l.playlistId),FsJ[V.cttAuthInfo.token]=I;I=V.cttAuthInfo.token}return I};
dic=function(V,l,I){V=V===void 0?{}:V;l=l===void 0?!1:l;new _.UZ(function(H,T){var x=$iN(l,I),n=x.useVideoStatsEndPoint;x.useVideoStatsEndPoint=!1;Xuf(x.queueTimer);Xuf(x.queueMaxTimer);x.queueMaxTimer=0;xl&&xl.isReady()?I===void 0&&_.z("enable_web_tiered_gel")?zLy(H,T,V,l,300,n):zLy(H,T,V,l,I,n):(Ksw(l,I),H())})};
zLy=function(V,l,I,H,T,x){var n=xl;I=I===void 0?{}:I;H=H===void 0?!1:H;T=T===void 0?200:T;x=x===void 0?!1:x;var w=new Map,N=new Map,L={isJspb:H,cttAuthInfo:void 0,tier:T},e={isJspb:H,cttAuthInfo:void 0};if(H){l=_.U(Object.keys(BF));for(T=l.next();!T.done;T=l.next())T=T.value,N=_.z("enable_web_tiered_gel")?Tr().smartExtractMatchingEntries({keys:[L,e],sizeLimit:1E3}):Tr().extractMatchingEntries({isJspb:!0,cttAuthInfo:T}),N.length>0&&w.set(T,N),(_.z("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.z("web_fp_via_jspb_and_json"))&&
delete BF[T];YxW(w,n,V,I,!1,x)}else{w=_.U(Object.keys(BF));for(L=w.next();!L.done;L=w.next())L=L.value,e=_.z("enable_web_tiered_gel")?Tr().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:L,tier:T},{isJspb:!1,cttAuthInfo:L}],sizeLimit:1E3}):Tr().extractMatchingEntries({isJspb:!1,cttAuthInfo:L}),e.length>0&&N.set(L,e),(_.z("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.z("web_fp_via_jspb_and_json"))&&delete BF[L];j2y(N,n,V,l,I,!1,x)}};
Ksw=function(V,l){V=V===void 0?!1:V;l=l===void 0?200:l;var I=function(){dic({writeThenSend:!0},V,l)},H=$iN(V,l),T=H===yUw||H===tUJ?5E3:rUN;
_.z("web_gel_timeout_cap")&&!H.queueMaxTimer&&(T=Nq1(function(){I()},T),H.queueMaxTimer=T);
Xuf(H.queueTimer);T=_.h6("LOGGING_BATCH_TIMEOUT",_.g7("web_gel_debounce_ms",1E4));_.z("shorten_initial_gel_batch_timeout")&&GSt&&(T=EFw);T=Nq1(function(){_.g7("gel_min_batch_size")>0?Tr().getSequenceCount({cttAuthInfo:void 0,isJspb:V,tier:l})>=JUt&&I():I()},T);
H.queueTimer=T};
j2y=function(V,l,I,H,T,x,n){T=T===void 0?{}:T;var w=Math.round((0,_.O_)()),N=V.size,L=oFy(n);V=_.U(V);var e=V.next();for(n={};!e.done;n={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},e=V.next()){var k=_.U(e.value);e=k.next().value;k=k.next().value;n.batchRequest=_.EL.unsafeClone({context:_.xvc(l.config_||_.av())});if(!_.vy(k)&&!_.z("throw_err_when_logevent_malformed_killswitch")){H();break}n.batchRequest.events=k;
(k=FsJ[e])&&hLy(n.batchRequest,e,k);delete FsJ[e];n.dangerousLogToVisitorSession=e==="visitorOnlyApprovedKey";P8t(n.batchRequest,w,n.dangerousLogToVisitorSession);DiN(T);n.onSuccess$jscomp$3=function(X){_.z("start_client_gcf")&&_.r0.addLowPriorityJob(function(){return _.d(function(r){return _.K(r,ZaW(X),0)})});
N--;N||I()};
n.networkFailures=0;n.onError$jscomp$5=function(X){return function(){X.networkFailures++;if(T.bypassNetworkless&&X.networkFailures===1)try{M5q(l,L,X.batchRequest,Sxq({writeThenSend:!0},X.dangerousLogToVisitorSession,X.onSuccess$jscomp$3,X.onError$jscomp$5,x)),GSt=!1}catch(r){_.Dp(r),H()}N--;N||I()}}(n);
try{M5q(l,L,n.batchRequest,Sxq(T,n.dangerousLogToVisitorSession,n.onSuccess$jscomp$3,n.onError$jscomp$5,x)),GSt=!1}catch(X){_.Dp(X),H()}}};
YxW=function(V,l,I,H,T,x){H=H===void 0?{}:H;var n=Math.round((0,_.O_)()),w={value:V.size},N=new Map([].concat(_.oI(V)));N=_.U(N);for(var L=N.next();!L.done;L=N.next()){var e=_.U(L.value).next().value,k=V.get(e);L=new RLK;var X=l.config_||_.av(),r=new $l,E=new Q21;_.Fm(E,1,X.innertubeContextHostLanguage);_.Fm(E,2,X.innertubeContextGeoLocation);_.gm(E,16,X.innertubeContextClientNameFieldNumber);_.Fm(E,17,X.innertubeContextClientVersion);if(X.innertubeContextClientConfigInfo){var D=X.innertubeContextClientConfigInfo,
Z=new i2;D.coldConfigData&&_.Fm(Z,1,D.coldConfigData);D.appInstallData&&_.Fm(Z,6,D.appInstallData);D.coldHashData&&_.Fm(Z,3,D.coldHashData);D.hotHashData&&Z.setHotHashData(D.hotHashData);_.j6(E,62,Z)}(D=_.nK.devicePixelRatio)&&D!=1&&_.m6(E,65,_.ai(D));D=ycT();D!==""&&_.Fm(E,54,D);D=t1c();if(D.length>0){Z=new cUw;for(var S=0;S<D.length;S++){var p=new dT;p.setKey(D[S].key);nO(p,2,Ws3,Yh(D[S].value));wT(Z,15,dT,p)}_.j6(r,5,Z)}VDt(X,E);lfT(r);Ifc(E);HYN(X,E);TPc(E);_.z("start_client_gcf")&&BP3(E);_.h6("DELEGATED_SESSION_ID")&&
!_.z("pageid_as_header_web")&&(X=new N4,_.Fm(X,3,_.h6("DELEGATED_SESSION_ID")));!_.z("fill_delegate_context_in_gel_killswitch")&&(D=_.h6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Z=_.fA(r,N4,3)||new N4,X=r,D=_.Fm(Z,18,D),_.j6(X,3,D));X=E;D=_.U(Object.entries(_.WO(_.h6("DEVICE",""))));for(Z=D.next();!Z.done;Z=D.next())S=_.U(Z.value),Z=S.next().value,S=S.next().value,Z==="cbrand"?_.Fm(X,12,S):Z==="cmodel"?_.Fm(X,13,S):Z==="cbr"?_.Fm(X,87,S):Z==="cbrver"?_.Fm(X,88,S):Z==="cos"?_.Fm(X,18,
S):Z==="cosver"?_.Fm(X,19,S):Z==="cplatform"&&_.gm(X,42,mJw(S));r.setClient(E);_.j6(L,1,r);if(E=kSf[e])a:{if(_.KS(E,KO(E,eLJ,1)))r=1;else if(E.getPlaylistId())r=2;else break a;_.j6(L,4,E);E=L.getContext()||new $l;X=_.fA(E,N4,3)||new N4;D=new jt;D.setToken(e);_.gm(D,1,r);wT(X,12,jt,D);_.j6(E,3,X)}delete kSf[e];e=e==="visitorOnlyApprovedKey";ba3()||_.Yl(L,2,n);!e&&(r=_.h6("EVENT_ID"))&&(E=qxJ(),X=new MUq,_.Fm(X,1,r),_.Yl(X,2,E),_.j6(L,5,X));DiN(H);if(_.z("jspb_serialize_with_worker")&&(r=_.Ljc())&&
H.writeThenSend){_.s2t.set(puf,{client:l,resolve:I,networklessOptions:H,isIsolated:T,useVSSEndpoint:x,dangerousLogToVisitorSession:e,requestsOutstanding:w});r.postMessage({op:"gelBatchToSerialize",batchRequest:EP(L),clientEvents:k,key:puf});puf++;break}if(k){r=[];for(E=0;E<k.length;E++)try{r.push(new LO(k[E]))}catch(Vf){_.Dp(new _.Yd("Transport failed to deserialize "+String(k[E])))}k=r}else k=[];k=_.U(k);for(r=k.next();!r.done;r=k.next())wT(L,3,LO,r.value);k={startTime:(0,_.O_)(),ticks:{},infos:{}};
L=L.serialize();k.ticks.geljspc=(0,_.O_)();_.z("log_jspb_serialize_latency")&&w13("gel_jspb_serialize",k,{sampleRate:.1});_.AUT(L,l,I,H,T,x,e,w)}};
_.AUT=function(V,l,I,H,T,x,n,w){H=H===void 0?{}:H;w=w===void 0?{value:0}:w;x=oFy(x);H=Sxq(H,n,function(N){_.z("start_client_gcf")&&_.r0.addLowPriorityJob(function(){return _.d(function(L){return _.K(L,ZaW(N),0)})});
w.value--;w.value||I()},function(){w.value--;
w.value||I()},T);
H.headers["Content-Type"]="application/json+protobuf";H.postBodyFormat="JSPB";H.postBody=V;M5q(l,x,"",H);GSt=!1};
DiN=function(V){_.z("always_send_and_write")&&(V.writeThenSend=!1)};
Sxq=function(V,l,I,H,T){V={retry:!0,onSuccess:I,onError:H,networklessOptions:V,dangerousLogToVisitorSession:l,bypassMonitoring:!!T,headers:{},postBodyFormat:"",postBody:"",compress:_.z("compress_gel")||_.z("compress_gel_lr")};ba3()&&(V.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.O_)())));return V};
P8t=function(V,l,I){ba3()||(V.requestTimeMs=String(l));_.z("unsplit_gel_payloads_in_logs")&&(V.unsplitGelPayloadsInLogs=!0);!I&&(l=_.h6("EVENT_ID"))&&(I=qxJ(),V.serializedClientEventId={serializedEventId:l,clientCounter:String(I)})};
qxJ=function(){var V=_.h6("BATCH_CLIENT_COUNTER")||0;V||(V=Math.floor(Math.random()*65535/2));V++;V>65535&&(V=1);_.ow("BATCH_CLIENT_COUNTER",V);return V};
hLy=function(V,l,I){if(I.videoId)var H="VIDEO";else if(I.playlistId)H="PLAYLIST";else return;V.credentialTransferTokenTargetId=I;V.context=V.context||{};V.context.user=V.context.user||{};V.context.user.credentialTransferTokens=[{token:l,scope:H}]};
g7N=function(V,l){var I=_.m_("il_payload_scraping")==="enable_il_payload_scraping";if(!_.SN("yt.logging.transport.enableScrapingForTest"))if(I)upT=[],_.Aq("yt.logging.transport.enableScrapingForTest",!0),_.Aq("yt.logging.transport.scrapedPayloadsForTesting",upT),_.Aq("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Aq("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Aq("yt.logging.transport.scrapeClientEvent",!0);else return;I=_.SN("yt.logging.transport.scrapedPayloadsForTesting");var H=_.SN("yt.logging.transport.payloadToScrape");l&&(l=_.SN("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(l.payload)())&&I.push(l);l=_.SN("yt.logging.transport.scrapeClientEvent");if(H&&H.length>=1)for(var T=0;T<H.length;T++)if(V&&V.payload[H[T]])if(l)I.push(V.payload);else{var x=void 0;I.push(((x=V)==null?void 0:x.payload)[H[T]])}_.Aq("yt.logging.transport.scrapedPayloadsForTesting",
I)};
ba3=function(){return _.z("use_request_time_ms_header")||_.z("lr_use_request_time_ms_header")};
Nq1=function(V,l){return _.z("transport_use_scheduler")===!1?_.Iv(V,l):_.z("logging_avoid_blocking_during_navigation")||_.z("lr_logging_avoid_blocking_during_navigation")?_.et(_.r0,function(){if(_.vFt().currentState==="none")V();else{var I={};_.vFt().install((I.none={callback:V},I))}},l):_.et(_.r0,V,l)};
Xuf=function(V){_.z("transport_use_scheduler")?_.r0.cancelJob(V):_.TU(V)};
ZaW=function(V){var l,I,H,T,x,n,w,N,L,e;return _.d(function(k){return k.nextAddress==1?(H=(l=V)==null?void 0:(I=l.responseContext)==null?void 0:I.globalConfigGroup,T=_.y(H,OaK),n=(x=H)==null?void 0:x.hotHashData,w=_.y(H,C8w),L=(N=H)==null?void 0:N.coldHashData,(e=_.F().resolve(_.Cs(Fv)))?n?T?_.K(k,atK(e,n,T),2):_.K(k,atK(e,n),2):k.jumpTo(2):k.return()):L?w?_.K(k,fty(e,L,w),0):_.K(k,fty(e,L),0):k.jumpTo(0)})};
$iN=function(V,l){l=l===void 0?200:l;return V?l===300?yUw:gFg:l===300?tUJ:mig};
VU3=function(V){if(_.z("enable_web_tiered_gel")){V=iaW[V||""];var l,I,H,T=_.F().resolve(_.Cs(Fv))==null?void 0:(l=VMN())==null?void 0:(I=l.loggingHotConfig)==null?void 0:(H=I.eventLoggingConfig)==null?void 0:H.payloadPolicies;if(T)for(l=0;l<T.length;l++)if(T[l].payloadNumber===V)return T[l]}};
itN=function(V){V=Object.keys(V);V=_.U(V);for(var l=V.next();!l.done;l=V.next())if(l=l.value,iaW[l])return l};
ltw=function(V){switch(V){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}};
Tqy=function(V){return V==="gelDebuggingEvent"};
oFy=function(V){return(V===void 0?0:V)&&_.z("vss_through_gel_video_stats")?"video_stats":"log_event"};
zr=function(V,l,I,H){H=H===void 0?{}:H;var T={},x=Math.round(H.timestamp||(0,_.O_)());T.eventTimeMs=x<Number.MAX_SAFE_INTEGER?x:0;T[V]=l;V=_.f0();T.context={lastActivityMs:String(H.timestamp||!isFinite(V)?-1:V)};H.sequenceGroup&&!_.z("web_gel_sequence_info_killswitch")&&(V=T.context,l=H.sequenceGroup,l={index:lb3(l),groupKey:l},V.sequence=l,H.endOfSequence&&delete Xv[H.sequenceGroup]);(H.sendIsolatedPayload?Itq:BqW)({endpoint:"log_event",payload:T,cttAuthInfo:H.cttAuthInfo,dangerousLogToVisitorSession:H.dangerousLogToVisitorSession},
I)};
lb3=function(V){Xv[V]=V in Xv?Xv[V]+1:0;return Xv[V]};
_.tF=function(V,l,I){I=I===void 0?{}:I;var H=yC;_.PO("ytLoggingEventsDefaultDisabled",!1)&&yC===yC&&(H=null);zr(V,l,H,I)};
_.rT=function(){if(_.z("web_fp_via_jspb")){var V=!0;V=V===void 0?!1:V;var l=IbK;IbK=[];if(l){l=_.U(l);for(var I=l.next();!I.done;I=l.next())I=I.value,V?zr(I.payloadName,I.payload,yC,I.options):_.tF(I.payloadName,I.payload,I.options)}dic(void 0,!0);if(!_.z("web_fp_via_jspb_and_json"))return}dic(void 0,!1)};
Twq=function(V,l){var I;if((I=l)==null?0:I.componentStack)return l;if(V=V.componentStack)l||(l={}),l.componentStack=H6K(V);return l};
H6K=function(V){return V.slice(0,void 0).map(function(l){return l.name}).join(" > ")};
Bw1=function(){_.cO(_.h6("ERRORS")||[],function(V){_.Gr.apply(null,V)});
_.ow("ERRORS",[])};
_.oV=function(V){_.Gr(V)};
_.hF=function(V){_.Gr(V,"WARNING")};
x7K=function(V){V instanceof Error?_.Gr(V):(V=_.m3(V)?JSON.stringify(V):String(V),V=new _.Yd(V),V.name="RejectedPromiseError",_.hF(V))};
U73=function(V,l,I,H,T,x){l=l===void 0?"Unknown file":l;I=I===void 0?0:I;var n=!1,w=HTy("log_window_onerror_fraction");if(w&&Math.random()<w)n=!0;else{w=document.getElementsByTagName("script");for(var N=0,L=w.length;N<L;N++)if(w[N].src.indexOf("/debug-")>0){n=!0;break}}n&&(n=!1,T?n=!0:(typeof V==="string"?w=V:ErrorEvent&&V instanceof ErrorEvent?(n=!0,w=V.message,l=V.filename,I=V.lineno,H=V.colno):(w="Unknown error",l="Unknown file",I=0),T=new _.Yd(w),T.name="UnhandledWindowError",T.message=w,T.fileName=
l,T.lineNumber=I,isNaN(H)?delete T.columnNumber:T.columnNumber=H),_.z("wiz_enable_component_stack_propagation_killswitch")||(x=Twq(T,x)),x&&_.PF(T,x),n?_.Gr(T):_.hF(T))};
_.Gr=function(V,l,I,H,T,x,n,w){x=x===void 0?{}:x;x.name=I||_.h6("INNERTUBE_CONTEXT_CLIENT_NAME",1);x.version=H||_.h6("INNERTUBE_CONTEXT_CLIENT_VERSION");I=x;l=l===void 0?"ERROR":l;n=n===void 0?!1:n;l=l===void 0?"ERROR":l;n=n===void 0?!1:n;if(V&&(V.hasOwnProperty("level")&&V.level&&(l=V.level),_.z("console_log_js_exceptions")&&(H=[],H.push("Name: "+V.name),H.push("Message: "+V.message),V.hasOwnProperty("params")&&H.push("Error Params: "+JSON.stringify(V.params)),V.hasOwnProperty("args")&&H.push("Error args: "+
JSON.stringify(V.args)),H.push("File name: "+V.fileName),H.push("Stacktrace: "+V.stack),H=H.join("\n"),window.console.log(H,V)),!(njg>=5))){H=[];T=_.U($7q);for(x=T.next();!x.done;x=T.next()){x=x.value;try{x()&&H.push(x())}catch(Z){}}H=[].concat(_.oI(d7N),_.oI(H));var N=wKf(V);T=N.message||"Unknown Error";x=N.name||"UnknownError";var L=N.stack||V.stacktrace||"Not available";if(L.startsWith(x+": "+T)){var e=L.split("\n");e.shift();L=e.join("\n")}e=N.lineNumber||"Not available";N=N.fileName||"Not available";
var k=0;if(V.hasOwnProperty("args")&&V.args&&V.args.length)for(var X=0;X<V.args.length&&!(k=gBW(V.args[X],"params."+X,I,k),k>=500);X++);else if(V.hasOwnProperty("params")&&V.params){var r=V.params;if(typeof V.params==="object")for(X in r){if(r[X]){var E="params."+X,D=$d(r[X]);I[E]=D;k+=E.length+D.length;if(k>500)break}}else I.params=$d(r)}if(H.length)for(X=0;X<H.length&&!(k=gBW(H[X],"params.context."+X,I,k),k>=500);X++);navigator.vendor&&!I.hasOwnProperty("vendor")&&(I["device.vendor"]=navigator.vendor);
X={message:T,name:x,lineNumber:e,fileName:N,stack:L,params:I,sampleWeight:1};I=Number(V.columnNumber);isNaN(I)||(X.lineNumber=X.lineNumber+":"+I);if(V.level==="IGNORED")V=0;else a:{V=Nwf();I=_.U(V.messageWeights);for(H=I.next();!H.done;H=I.next())if(H=H.value,X.message&&X.message.match(H.messageRegExp)){V=H.weight;break a}V=_.U(V.callbackWeights);for(I=V.next();!I.done;I=V.next())if(I=I.value,I.callback(X)){V=I.weight;break a}V=1}X.sampleWeight=V;V=_.U(Kwt);for(I=V.next();!I.done;I=V.next())if(I=
I.value,I.patternsForType[X.name])for(T=_.U(I.patternsForType[X.name]),H=T.next();!H.done;H=T.next())if(x=H.value,H=X.message.match(x.regexp)){X.params["params.error.original"]=H[0];T=x.groups;x={};for(e=0;e<T.length;e++)x[T[e]]=H[e+1],X.params["params.error."+T[e]]=H[e+1];X.message=I.messageFn(x);break}X.params||(X.params={});V=Nwf();X.params["params.errorServiceSignature"]="msg="+V.messageWeights.length+"&cb="+V.callbackWeights.length;X.params["params.serviceWorker"]="false";_.nK.document&&_.nK.document.querySelectorAll&&
(X.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new D1(j6N,"sample")).constructor!==D1&&(X.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(X);if(X.sampleWeight!==0&&!YBq.has(X.message)){if(n&&_.z("web_enable_error_204"))Lwy(l===void 0?"ERROR":l,X);else{l=l===void 0?"ERROR":l;l==="ERROR"?(eJJ.publish("handleError",X),_.z("record_app_crashed_web")&&kbK===0&&X.sampleWeight===1&&(kbK++,n={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.z("report_client_error_with_app_crash_ks")||(n.systemHealth={crashData:{clientError:{logMessage:{message:X.message}}}}),_.tF("appCrashed",n)),Fwc++):l==="WARNING"&&eJJ.publish("handleWarning",X);if(_.z("kevlar_gel_error_routing")){n=l;w=w===void 0?{}:w;b:{V=_.U(XKT);for(I=V.next();!I.done;I=V.next())if(E_(I.value.toLowerCase())){V=!0;break b}V=!1}if(V)w=void 0;else{I={stackTrace:X.stack};X.fileName&&(I.filename=X.fileName);V=X.lineNumber&&X.lineNumber.split?X.lineNumber.split(":"):[];V.length!==
0&&(V.length!==1||isNaN(Number(V[0]))?V.length!==2||isNaN(Number(V[0]))||isNaN(Number(V[1]))||(I.lineNumber=Number(V[0]),I.columnNumber=Number(V[1])):I.lineNumber=Number(V[0]));V={level:"ERROR_LEVEL_UNKNOWN",message:X.message,errorClassName:X.name,sampleWeight:X.sampleWeight};n==="ERROR"?V.level="ERROR_LEVEL_ERROR":n==="WARNING"&&(V.level="ERROR_LEVEL_WARNNING");I={isObfuscated:!0,browserStackInfo:I};w.pageUrl=window.location.href;w.kvPairs=[];_.h6("FEXP_EXPERIMENTS")&&(w.experimentIds=_.h6("FEXP_EXPERIMENTS"));
H=_.h6("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!HTy("web_disable_gel_stp_ecatcher_killswitch")&&H)for(T=_.U(Object.keys(H)),x=T.next();!x.done;x=T.next())x=x.value,w.kvPairs.push({key:x,value:String(H[x])});if(H=X.params)for(T=_.U(Object.keys(H)),x=T.next();!x.done;x=T.next())x=x.value,w.kvPairs.push({key:"client."+x,value:String(H[x])});H=_.h6("SERVER_NAME");T=_.h6("SERVER_VERSION");H&&T&&(w.kvPairs.push({key:"server.name",value:H}),w.kvPairs.push({key:"server.version",value:T}));w={errorMetadata:w,
stackTrace:I,logMessage:V}}w&&(_.tF("clientError",w),(n==="ERROR"||_.z("errors_flush_gel_always_killswitch"))&&_.rT())}_.z("suppress_error_204_logging")||Lwy(l,X)}try{YBq.add(X.message)}catch(Z){}njg++}}};
Lwy=function(V,l){var I=l.params||{};V={urlParams:{a:"logerror",t:"jserror",type:l.name,msg:l.message.substr(0,250),line:l.lineNumber,level:V,"client.name":I.name},postParams:{url:_.h6("PAGE_NAME",window.location.href),file:l.fileName},method:"POST"};I.version&&(V["client.version"]=I.version);if(V.postParams){l.stack&&(V.postParams.stack=l.stack);l=_.U(Object.keys(I));for(var H=l.next();!H.done;H=l.next())H=H.value,V.postParams["client."+H]=I[H];if(I=_.h6("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(l=
_.U(Object.keys(I)),H=l.next();!H.done;H=l.next())H=H.value,V.postParams[H]=I[H];(I=_.h6("LAVA_VERSION"))&&(V.postParams["lava.version"]=I);I=_.h6("SERVER_NAME");l=_.h6("SERVER_VERSION");I&&l&&(V.postParams["server.name"]=I,V.postParams["server.version"]=l)}_.xd(_.h6("ECATCHER_REPORT_HOST","")+"/error_204",V)};
_.zJw=function(V,l){l=l===void 0?"ERROR":l;var I=I===void 0?{}:I;var H=_.SN("ytbin.polymer.shared.lib.tampering.info");H&&(H=H())&&(I["params.tamperingInfo"]=H.sort().join(","));_.Gr(V,l,void 0,void 0,!0,I)};
_.PF=function(V){var l=_.Q5.apply(1,arguments);V.args||(V.args=[]);Array.isArray(V.args)&&V.args.push.apply(V.args,_.oI(l))};
y9K=function(V){V.level="IGNORED"};
tMJ=function(V,l){d7N.push(V);l();d7N.pop()};
St=function(V,l){for(var I in l)l.hasOwnProperty(I)&&(V=_.Z1(V,I,l[I]));return V};
_.r93=function(V,l,I){I=I===void 0?!1:I;if(!V)return null;if(V.adInfoDialogEndpoint||V.backstageImageUploadEndpoint||V.confirmDialogEndpoint||V.clientActionEndpoint||V.createBackstagePostDialogEndpoint||V.createCommentReplyDialogEndpoint||V.flowEndpoint||V.guideBuilderEndpoint||V.liveChatDialogEndpoint||V.modalEndpoint||V.openPopupAction||V.shareEndpoint||V.shareEntityEndpoint||V.showLiveChatItemEndpoint||V.subscriptionManagerEndpoint||V.unlimitedCreateFamilyEndpoint||V.unlimitedFamilyFlowEndpoint||
V.updateCommentDialogEndpoint||V.updateCommentReplyDialogEndpoint||V.userFeedbackEndpoint||V.videoEditorEndpoint||V.ypcCancelSurveyEndpoint)return l=_.g7("polymer_report_client_url_requested_rate"),!I&&Math.random()<l&&_.hF(new _.Yd("urlForEndpoint used on client endpoint",V)),null;var H=_.g7("polymer_report_missing_web_navigation_endpoint_rate");if(V.liveChatEndpoint||V.liveChatReplayEndpoint)H=0;if(!V.commandMetadata&&!V.clickTrackingParams&&Math.random()<H){var T={},x;for(x in V)T[x]="1";_.hF(new _.Yd("Missing navigation data",
T))}T="";if(V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.url)T=V.commandMetadata.webCommandMetadata.url;else if(V.searchEndpoint)Math.random()<H&&_.hF(new _.Yd("Should not manually handle search",V)),T="/results?search_query="+encodeURIComponent(V.searchEndpoint.query).replace(/%20/g,"+"),V.searchEndpoint.params&&(T+="&sp="+V.searchEndpoint.params);else if(V.watchEndpoint)Math.random()<H&&_.hF(new _.Yd("Should not manually handle watch",V)),T="/watch?v="+
V.watchEndpoint.videoId,V.watchEndpoint.playlistId&&(T+="&list="+V.watchEndpoint.playlistId),V.watchEndpoint.index&&(T+="&index="+V.watchEndpoint.index),V.watchEndpoint.startTimeSeconds&&(T+="&t="+V.watchEndpoint.startTimeSeconds);else if(V.browseEndpoint)H=V.browseEndpoint.browseId,(x=V.browseEndpoint.canonicalBaseUrl)?T=x:H&&(T=H.substr(0,2),T=T==="FE"?H==="FEwhat_to_watch"?"/":H==="FEmy_videos"?"/my_videos":"/feed/"+H.substr(2):T==="VL"?"/playlist?list="+H.substr(2):"/channel/"+H),T&&V.browseEndpoint.query&&
(T=St(T+"/search",{query:V.browseEndpoint.query})),T&&V.browseEndpoint.params&&(T=St(T,{params:V.browseEndpoint.params}));else{if(V.urlEndpoint)return V.urlEndpoint.url;V.signInEndpoint?(T="https://accounts.google.com/ServiceLogin",H={},_.EL.extend(H,l||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),l=H):V.uploadEndpoint?T="//www.youtube.com/upload":V.liveChatEndpoint?(T=V.liveChatEndpoint,H=_.EL.clone(T),_.m3(T.continuation)&&(x=Object.keys(T.continuation)[0],
H.continuation=T.continuation[x].continuation),T=St("/youtubei/v1/live_chat/get_live_chat",H)):V.liveChatReplayEndpoint?(T=_.EL.clone(V.liveChatReplayEndpoint),T.currentPlayerState&&(_.EL.extend(T,T.currentPlayerState),delete T.currentPlayerState),T=St("/youtubei/v1/live_chat/get_live_chat_replay",T)):V.liveChatItemContextMenuEndpoint?T=St("/youtubei/v1/live_chat/get_item_context_menu",V.liveChatItemContextMenuEndpoint):V.liveChatPurchaseMessageEndpoint?T=St("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
V.liveChatPurchaseMessageEndpoint):V.openSuperStickerBuyFlowCommand?T=St("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",V.openSuperStickerBuyFlowCommand):V.videoEditEndpoint?T=St("/edit",{video_id:V.videoEditEndpoint.videoId}):V.liveDashboardEndpoint?T=V.liveDashboardEndpoint.videoId?St("/live_dashboard",{v:V.liveDashboardEndpoint.videoId}):"/live_dashboard":V.signalNavigationEndpoint&&V.signalNavigationEndpoint.signal&&V.signalNavigationEndpoint.signal==="WEBCAM"?T="/webcam":V.getPdgBuyFlowCommand&&
(T=St(V.getPdgBuyFlowCommand.buyflowApiPath,{params:V.getPdgBuyFlowCommand.params}))}return T||I?St(T,l||{}):(_.hF(new _.Yd("Error: Can't construct url for endpoint","keys:"+Object.keys(V).sort().join(","),V)),null)};
Gb1=function(V){if(V){if(V.browseEndpoint)return!!V.browseEndpoint.nofollow;if(V.watchEndpoint)return!!V.watchEndpoint.nofollow;if(V.urlEndpoint)return!!V.urlEndpoint.nofollow}return!1};
_.J9w=function(V,l){var I=l+V,H=Ejy.get(I);if(H)return H;V=l+"-"+V.replace(/([A-Z])/g,"-$1").toLowerCase();Ejy.set(I,V);return V};
ojt=function(V){var l=_.GY(V,"action")||_.GY(V,"command")||_.GY(V,"endpoint");if(!l)return null;l=_.J9w(l,"yt");_.y(V,_.RV)&&(l+="-"+_.y(V,_.RV).signal.toLowerCase().replace(/_/g,"-"));return l};
Z6f=function(V){try{var l=Object.keys(V)}catch(T){return[]}for(var I=0;I<l.length;I++){var H=l[I];if(hJK.test(H)||PPg.test(H))return D7q(V[H])}return[]};
D7q=function(V){return V.command?[V.command]:V.onExecutionAction?[V.onExecutionAction]:V.onResponseReceivedCommand?[V.onResponseReceivedCommand]:V.updateFlowCommand?[V.updateFlowCommand]:V.clientActions?V.clientActions:V.action?[V.action]:V.actions||V.commands||V.onResponseReceivedActions||V.onResponseReceivedCommands||V.onResponseReceivedEndpoints||[]};
RJ1=function(V,l){l=l===void 0?!1:l;var I=_.F().resolve(_.Cs(QC));I||(I=new SBT,_.F().addProvider({provide:QC,useValue:I}));return I&&V&&!_.EL.isEmpty(V)?I.getUrl(V,l):""};
Q63=function(V,l,I){I=I===void 0?"":I;if(l){V.data=l;var H=RJ1(l);H?(bY(V,H),Gb1(l)||!ut(H)?V.rel="nofollow":V.removeAttribute("rel"),_.y(l,_.cF)&&_.y(l,_.cF).target==="TARGET_NEW_WINDOW"?V.target="_blank":I?V.target=I:V.removeAttribute("target")):(V.removeAttribute("href"),V.removeAttribute("rel"),V.removeAttribute("target"))}};
_.M4=function(V,l){var I=_.vv;if(Fk())c9t(V,function(){var x=_.Q5.apply(0,arguments);J0(I,function(){l.apply(null,_.oI(x))})});
else{var H=_.WF.getInstance(),T=t6(l);Ls(function(){T.value=l});
_.XW(function(){var x={},n=_.bx(H,(x[V]=function(){var w=_.Q5.apply(0,arguments);J0(I,function(){T.value.apply(T,_.oI(w))})},x));
return function(){var w={};_.q4(H,(w[V]="",w),n)}})}};
_.sZ=function(V){return Fk()?Wwg(V):b6y(V)};
_.pO=function(V){return Fk()?Wwg(V):b6y(V)};
b6y=function(V){return y0(function(){return Wwg(V)})};
Wwg=function(V){var l=AOt(function(I){l.value&&l.value===I||(l.__count=l.__count?l.__count+1:1);l.value=I;var H=function(){var T=V9(null);try{return V==null?void 0:V(I)}finally{V9(T)}}();
return function(){H==null||H();l.value=null}});
return l};
qB1=function(V){var l=_.vv,I=LN.slice();return{getFn:function(){return function(H){l.isDisposed||Xk(function(){return BT(function(){return V(H)})},{stack:I})!==!0&&H.stopPropagation()}}}};
_.AF=function(V,l,I){if(Fk())MMW(V,l,function(T){var x=V9(null);try{I(T)}finally{V9(x)}});
else{var H=t6(I);Ls(function(){H.value=I});
_.XW(function(){var T=V.value;if(T){var x=function(n){H.value(n)};
T.addEventListener(l,x,void 0);return function(){T?T.removeEventListener(l,x,void 0):s6T(V)}}s6T(V)})}};
s6T=function(V){var l;(l=mF.handleError)==null||l.call.apply(l,[mF].concat(_.oI(z0(ub1.LOG_NULL_EL_REF_VALUE(),V.__expectedTagName,2))))};
ux=function(V){if(typeof V.children==="function")return V.children(),null;V=_.U(V.children);for(var l=V.next();!l.done;l=V.next())l=l.value,l();return null};
pKW=function(V){var l;return((l=V.prototype)==null?void 0:l.render)===void 0};
A93=function(V){V=V.items.map(V.children);return V.length>0&&typeof V[0]==="string"?V.join(""):V};
vjt=function(V,l,I){I=I===void 0?!1:I;Xk(function(){return uRW(V,l,I)})};
uRW=function(V,l,I){I=((I===void 0?0:I)?O6N:vF)(V,function(){OZ(l)});
return I===null?V:I};
OZ=function(V){if(V!==void 0&&V!==null)if(V instanceof HO)for(var l=Dn;Zn()!=null&&EA1 in Zn()&&l.contains(Zn());)cT();else if(Array.isArray(V))for(l=_.U(V),V=l.next();!V.done;V=l.next())OZ(V.value);else if(V instanceof kn||"function"==typeof _.II&&V instanceof _.II)u$(V.toString());else if(fN(V)){if(Zn()!==V){var I,H;l=(H=(I=ki())==null?void 0:I.name)!=null?H:"unknown";throw Error("gc`"+V.tagName+"`"+l);}cT()}else if(V!=null&&V.contentKind===i$||V instanceof MV)for(l=uHt(V),l=Array.from(l.childNodes),
l=_.U(l),V=l.next();!V.done;V=l.next())Dn.appendChild(V.value),cT();else if(oO(V)&&(V=V.toString()),I=typeof V,I==="boolean"||I==="number"||I==="string")u$(V);else if(typeof V==="function"){l=Dn;var T=Zn();T&&(T._isSignalTextNode||T._isSafeOrSanitizedHtmlNode)||LKc(l,T,V);cT()}else if(V.type===A93)OZ(V.type(Object.assign({},V.props,{children:V.children[0]})));else{ns.beforeVisit(V);if(typeof V.type==="string"){a:{V.__open||rlT(V.type,V.props.idomKey);T=Dn;for(l in V.props)if(V.props[l]!==CPt){var x=
V.props[l];I=My;I.push(l);I.push(x)}l=mF.attributes;l=l===void 0?CO:l;x=Dn;I=PT(x);DKf(x,I,l);YAg(T,V.props,!0);if((V.props.skip||V.props.skipchildren)&&Dn.hasChildNodes())b$();else{if(V.type==="style"&&mKt(V.children)===null){b$();l=void 0;break a}OZ(V.children)}GOw();V.__open&&(V.__open=!1);bCq(T,V.props);l=T}return l}if(V.type===_.CN)OZ(V.children);else if(!ab3(V)){l=V;try{fbt(l)}catch(n){V=n,(x=mF.handleError)==null||x.call.apply(x,[mF].concat(_.oI(z0(V,(T=l.type)==null?void 0:T.TAG_NAME))))}l.__open&&
(GOw(),l.__open=!1)}}};
gjg=function(V,l){var I;pKW(V)?I=new d7(l,V):I=new V(l);I.JSC$8127___type=V;I.__updateContext={nextState:I.state,isForced:!1};return I};
fbt=function(V){var l=V.type,I=l.TAG_NAME;if(l===ux)V.props.children=V.children,l(V.props);else{V.children.length>0&&(V.props.children=V.children);var H;(H=V.props).idomKey||(H.idomKey=l);if(I){var T=rlT(I,V.props.idomKey);V.__open=!0;var x=T.__instance}x||(x=gjg(l,V.props),x.props=null,T&&(T.__instance=x,x.el=T));var n;I=((n=x.__updateContext)!=null?n:{nextState:x.state,isForced:!1}).nextState;x.__updateContext=void 0;l.getDerivedStateFromProps&&(I=l.getDerivedStateFromProps(V.props,I));x.props=
V.props;x.state=I;n=function(){var w=x;ns.beforeRender(w);var N=w.render(w.props);ns.afterRender(w,N);N?(w.props.idomKey&&(N.props.idomKey=w.props.idomKey),w=N):w=void 0;if(N=w)if(N.__open=V.__open,w=OZ(N),V.__open=N.__open,!l.TAG_NAME)if(w)l.TAG_NAME=w.tagName.toLowerCase(),w.__instance=x,x.el=w;else{var L;if((L=x.hooks)==null?0:L.length){var e;(e=mF.handleError)==null||e.call.apply(e,[mF].concat(_.oI(z0(Error("md")))))}}x.didPatch();ns.didPatch(x)};
(I=x.functionComponent)?pF1({component:I,debugInstance:x.props.debugInstance,fn:n}):n()}};
ab3=function(V){var l=V.type;if(!pKW(l)||l===ux||l.componentType===e_)return!1;V.props.children=V.children.length>1?V.children:V.children[0];var I,H=(I=V.props.idomKey)!=null?I:V.type,T;if(Zn()&&((T=Zn()[lt])==null?void 0:T.key)===H){var x=Zn(),n=x[lt];if(!n)throw Error("fc`"+x.tagName);var w;(w=n.updateSignalsFromIdomProps)==null||w.call(n,V.props);m71(n);return!0}if(i6J.has(l.name))throw w=l.name,l=(n=(x=ki())==null?void 0:x.name)!=null?n:"unknown",Error("ec`"+w+"`"+l);XU3(V.type,V.props,V.children);
V.props.renderedFromIdom=!0;(w=pF1({component:V.type,debugInstance:V.props.debugInstance,fn:function(){return dz1(V.type,V.props)}}))&&Vnq(w);
return!0};
lLJ=function(V){for(var l=0;l<Iw(V).length;l++)cT()};
m71=function(V){var l=ILq();if(l)lLJ(l);else for(var I=0;I<V.numNodes;I++)(l=ILq())?lLJ(l):cT()};
ILq=function(){var V;return(V=Zn()[lt])==null?void 0:V.sourceDynamicRange};
Vnq=function(V){V=Mh1(V);V=Array.isArray(V)?V:[V];V=_.U(V);for(var l=V.next();!l.done;l=V.next())Dn.insertBefore(l.value,Zn()),cT()};
Hvg=function(V){var l=NSt(),I=y0(function(){return{value:typeof V==="function"?V():V}});
return[I.value,function(H){if($G!==null){var T;(T=mF.handleError)==null||T.call.apply(T,[mF].concat(_.oI(z0(Error("nd")))))}I.value=typeof H==="function"?H(I.value):H;l.__updateContext={nextState:l.state,isForced:!0};H=OX(l.effectContext);T=ax(!1);try{if(l.el){var x,n={},w=(n.props=l.props,n.type=l.JSC$8127___type,n.children=(x=l.props.children)!=null?x:[],n[OS]=!0,n);try{vjt(l.el,w,!0)}catch(e){var N,L;(L=mF.handleError)==null||L.call.apply(L,[mF].concat(_.oI(z0(e,(N=l.JSC$8127___type)==null?void 0:
N.TAG_NAME))))}}}finally{ax(T),OX(H)}}]};
aV=function(V,l){var I=_.vv,H=function(T){J0(I,function(){l(T)})};
window.addEventListener(V,H,void 0);_.rx(function(){window.removeEventListener(V,H,void 0)})};
_.gT=function(V,l){var I=_.vv;_.XW(function(){var H,T=(H=l.observer)!=null?H:_.F().resolve(fO);if(H=V.value){var x=TvN(H),n=[];l.showOption&&n.push(T.observe(H,function(){J0(I,function(){l.visibilityCallback(!0)})},l.showOption));
l.hideOption&&n.push(T.observe(H,function(){J0(I,function(){l.visibilityCallback(!1)})},l.hideOption));
l.prescanOption&&l.prescanCallback&&n.push(T.observe(H,function(){J0(I,function(){l.prescanCallback()})},l.prescanOption));
var w;x.visibilityMonitorKeys=((w=x.visibilityMonitorKeys)!=null?w:[]).concat(n)}})};
TvN=function(V){var l;return(l=V.polymerController)!=null?l:V};
_.m5=function(V){V.componentType=e_};
n9t=function(V,l){var I=BvK;return _.Y(_.CN,null,_.uO(mF.enableLazyTsx,function(){return _.Y(xZf,{id:I,value:V,children:l})},function(){var H=UZ1(I,V);
fS(H);H=OX(H);try{return l()}finally{OX(H)}}))};
xZf=function(V){var l=V.children;V=UZ1(V.id,V.value);fS(V);V=OX(V);try{return _.Y(_.CN,null,TY(l()))}finally{OX(V)}};
UZ1=function(V,l){return Object.assign(Object.create($Zt),{id:V,contextValue:l})};
dZg=function(V){var l,I=_.vv;_.y9(function(){var H=OX(I),T=ax(!l);try{if(l)vjt(l,V.children(),!0);else if(l=TY(V.children()),!(l instanceof Element))throw Error("od");}finally{ax(T),OX(H)}});
return l};
wlt=function(V){var l,I=G0(function(){var H=ax(!0);try{l=Iw(V())}finally{ax(H)}},!1);
return[l,I]};
jJy=function(V,l,I){Nvg(V,l);V[l][Kl1].unshift(I)};
Nvg=function(V,l){if(!V[l]||!V[l][Kl1]){var I=V[l],H=I?[I]:[];V[l]=function(){for(var T=_.U(H),x=T.next();!x.done;x=T.next())x.value.apply(this,arguments)};
V[l][Kl1]=H}};
YJw=function(V){if(!V)return[];var l=[];V=_.U(V);for(var I=V.next();!I.done;I=V.next())I=I.value,Array.isArray(I)?l.push.apply(l,_.oI(YJw(I))):l.push(I);return l};
_.VW=function(V,l){if(V&&LlT.test(V)||V==="//")return V;if(egg===void 0){egg=!1;try{var I=new URL("b","http://a");I.pathname="c%20d";egg=I.href==="http://a/c%20d"}catch(H){}}l||(l=document.baseURI||window.location.href);if(egg)try{return(new URL(V,l)).href}catch(H){return V}ix||(ix=document.implementation.createHTMLDocument("temp"),ix.base=ix.createElement("base"),ix.head.appendChild(ix.base),ix.anchor=ix.createElement("a"),ix.body.appendChild(ix.anchor));ix.base.href=l;ix.anchor.href=V;return ix.anchor.href||
V};
FlN=function(V,l){return V.replace(kKN,function(I,H,T,x){return H+"'"+_.VW(T.replace(/["']/g,""),l)+"'"+x})};
Xlt=function(V){return V.substring(0,V.lastIndexOf("/")+1)};
tnW=function(){zgT=!1;for(var V=lg.length,l=0;l<V;l++){var I=lg[l];if(I)try{I()}catch(H){setTimeout(function(){throw H;})}}lg.splice(0,V);
yyN+=V};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(V){console.log("["+V.is+"]: registered")};
GKK=function(V){ry1.push(V)};
IX=function(V){return E9w[V]||(E9w[V]=V.indexOf("-")<0?V:V.replace(Jyq,function(l){return l[1].toUpperCase()}))};
HI=function(V){return E9w[V]||(E9w[V]=V.replace(o9f,"-$1").toLowerCase())};
hg3=function(V,l){var I=l.parentInfo&&hg3(V,l.parentInfo);if(I)for(V=I.firstChild,I=0;V;V=V.nextSibling){if(l.parentIndex===I++)return V}else return V};
Pet=function(V,l){V=V._methodHost||V;return function(I){if(V[l])V[l](I,I.detail);else console.warn("listener method `"+l+"` not defined")}};
TO=function(V){return V.indexOf(".")>=0};
BI=function(V){var l=V.indexOf(".");return l===-1?V:V.slice(0,l)};
DZ1=function(V,l){return V.indexOf(l+".")===0};
Uw=function(V,l){return l.indexOf(V+".")===0};
nC=function(V,l,I){return l+I.slice(V.length)};
ZvJ=function(V,l){return V===l||DZ1(V,l)||Uw(V,l)};
$z=function(V){if(Array.isArray(V)){for(var l=[],I=0;I<V.length;I++)for(var H=V[I].toString().split("."),T=0;T<H.length;T++)l.push(H[T]);return l.join(".")}return V};
SJy=function(V){return Array.isArray(V)?$z(V).split("."):V.toString().split(".")};
du=function(V,l,I){l=SJy(l);for(var H=0;H<l.length;H++){if(!V)return;V=V[l[H]]}I&&(I.path=l.join("."));return V};
Rgc=function(V,l,I){var H=SJy(l),T=H[H.length-1];if(H.length>1){for(l=0;l<H.length-1;l++)if(V=V[H[l]],!V)return;V[T]=I}else V[l]=I;return H.join(".")};
QJt=function(V,l,I){var H=V[l];if(!H)H=V[l]={};else if(!V.hasOwnProperty(l)&&(H=V[l]=Object.create(V[l]),I))for(var T in H)for(V=H[T],l=H[T]=Array(V.length),I=0;I<V.length;I++)l[I]=V[I];return H};
NK=function(V,l,I,H,T,x){if(l){var n=!1,w=wu++,N;for(N in I){var L=T?BI(N):N;if(L=l[L])for(var e=0,k=L.length,X=void 0;e<k&&(X=L[e]);e++)X.info&&X.info.lastRun===w||T&&!cyy(N,X.trigger)||(X.info&&(X.info.lastRun=w),X.fn(V,N,I,H,X.info,T,x),n=!0)}return n}return!1};
cyy=function(V,l){if(l){var I=l.name;return I==V||!(!l.structured||!DZ1(I,V))||!(!l.wildcard||!Uw(I,V))}return!0};
WlK=function(V,l,I,H,T){l=typeof T.method==="string"?V[T.method]:T.method;I=T.property;l?l.call(V,V.__data[I],H[I]):T.dynamicFn||console.warn("observer method `"+T.method+"` not defined")};
bvf=function(V,l,I,H){I={value:I,queueProperty:!0};H&&(I.path=H);(0,_.KC)(V).dispatchEvent(new CustomEvent(l,{detail:I}))};
qJT=function(V,l,I,H,T,x){x=(H=(x?BI(l):l)!=l?l:null)?du(V,H):V.__data[l];H&&x===void 0&&(x=I[l]);bvf(V,T.eventName,x,H)};
MnJ=function(V,l,I,H,T){I=V.__data[l];jh&&(I=jh(I,T.attrName,"attribute",V));V._propertyToAttribute(l,T.attrName,I)};
plq=function(V){var l=V.constructor.__orderedComputedDeps;if(!l){l=new Map;for(var I=V.__computeEffects,H=sJJ(V),T=H.counts,x=H.ready,n=H.total;H=x.shift();)l.set(H,l.size),(H=I[H])&&H.forEach(function(w){w=w.info.methodInfo;--n;--T[w]===0&&x.push(w)});
n!==0&&console.warn("Computed graph for "+V.localName+" incomplete; circular?");V.constructor.__orderedComputedDeps=l}return l};
sJJ=function(V){var l=V.__computeInfo,I={};V=V.__computeEffects;var H=[],T=0,x;for(x in l){var n=l[x];T+=I[x]=n.args.filter(function(N){return!N.literal}).length+(n.dynamicFn?1:0)}for(var w in V)l[w]||H.push(w);
return{counts:I,ready:H,total:T}};
ux1=function(V,l,I,H,T){l=Ayy(V,l,I,H,T);if(l===Yz)return!1;T=T.methodInfo;if(V.__dataHasAccessor&&V.__dataHasAccessor[T])return V._setPendingProperty(T,l,!0);V[T]=l;return!1};
Cec=function(V,l,I,H,T,x,n){I.bindings=I.bindings||[];H={kind:H,target:T,parts:x,literal:n,isCompound:x.length!==1};I.bindings.push(H);H.target&&H.kind!="attribute"&&H.kind!="text"&&!H.isCompound&&H.parts[0].mode==="{"&&(I=H.parts[0],x=I.negate,H.listenerEvent=I.event||HI(T)+"-changed",H.listenerNegate=x);T=l.nodeInfoList.length;for(I=0;I<H.parts.length;I++){var w=H.parts[I];w.compoundIndex=I;x=V;n=l;var N=H,L=w,e=T;if(!L.literal)if(N.kind==="attribute"&&N.target[0]==="-")console.warn("Cannot set attribute "+
N.target+' because "-" is not a valid attribute starting character');else for(w=L.dependencies,N={index:e,binding:N,part:L,evaluator:x},L=0;L<w.length;L++)e=w[L],typeof e=="string"&&(e=v9T(e),e.wildcard=!0),x._addTemplatePropertyEffect(n,e.rootProperty,{fn:Ovf,info:N,trigger:e})}};
Ovf=function(V,l,I,H,T,x,n){n=n[T.index];var w=T.binding,N=T.part;x&&N.source&&l.length>N.source.length&&w.kind=="property"&&!w.isCompound&&n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[w.target]?(I=I[l],l=nC(N.source,w.target,l),n._setPendingPropertyOrPath(l,I,!1,!0)&&V._enqueueClient(n)):(l=T.evaluator._evaluateBinding(V,N,l,I,H,x),l!==Yz&&(w.isCompound&&(I=n.__dataCompoundStorage[w.target],I[N.compoundIndex]=l,l=I.join("")),w.kind==="attribute"||w.target!=="textContent"&&
(w.target!=="value"||n.localName!=="input"&&n.localName!=="textarea")||(l=l==void 0?"":l),N=l,jh&&(N=jh(N,w.target,w.kind,n)),w.kind=="attribute"?V._valueToNodeAttribute(n,N,w.target):(w=w.target,n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[w]?n.__readOnly&&n.__readOnly[w]||n._setPendingProperty(w,N)&&V._enqueueClient(n):V._setUnmanagedPropertyToNode(n,w,N))))};
aL3=function(V,l,I){if(I.listenerEvent){var H=I.parts[0];V.addEventListener(I.listenerEvent,function(T){var x=I.target,n=H.source,w=H.negate,N=T.detail,L=N&&N.path;L?(n=nC(x,n,L),T=N&&N.value):T=T.currentTarget[x];l.__readOnly&&l.__readOnly[n]||!l._setPendingPropertyOrPath(n,w?!T:T,!0,!!L)||N&&N.queueProperty||l._invalidateProperties()})}};
fLt=function(V,l,I,H,T,x){x=l.static||x&&(typeof x!=="object"||x[l.methodName]);T={methodName:l.methodName,args:l.args,methodInfo:T,dynamicFn:x};for(var n=0,w=void 0;n<l.args.length&&(w=l.args[n]);n++)w.literal||V._addPropertyEffect(w.rootProperty,I,{fn:H,info:T,trigger:w});x&&V._addPropertyEffect(l.methodName,I,{fn:H,info:T});return T};
Ayy=function(V,l,I,H,T){H=V._methodHost||V;var x=H[T.methodName];if(x)return V=V._marshalArgs(T.args,l,I),V===Yz?Yz:x.apply(H,V);T.dynamicFn||console.warn("method `"+T.methodName+"` not defined")};
g91=function(V){for(var l="",I=0;I<V.length;I++)l+=V[I].literal||"";return l};
V73=function(V){if(V=V.match(/([^\s]+?)\(([\s\S]*)\)/)){var l={methodName:V[1],static:!0,args:mZw};return V[2].trim()?ivg(V[2].replace(/\\,/g,"&comma;").split(","),l):l}return null};
ivg=function(V,l){l.args=V.map(function(I){I=v9T(I);I.literal||(l.static=!1);return I},this);
return l};
v9T=function(V){V=V.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var l={name:V,value:"",literal:!1},I=V[0];I==="-"&&(I=V[1]);I>="0"&&I<="9"&&(I="#");switch(I){case "'":case '"':l.value=V.slice(1,-1);l.literal=!0;break;case "#":l.value=Number(V),l.literal=!0}l.literal||(l.rootProperty=BI(V),l.structured=TO(V),l.structured&&(l.wildcard=V.slice(-2)==".*",l.wildcard&&(l.name=V.slice(0,-2))));return l};
lkT=function(V,l,I){V=du(V,I);V===void 0&&(V=l[I]);return V};
IkT=function(V,l,I,H){H={indexSplices:H};LC&&!V._overrideLegacyUndefined&&(l.splices=H);V.notifyPath(I+".splices",H);V.notifyPath(I+".length",l.length);LC&&!V._overrideLegacyUndefined&&(H.indexSplices=[])};
eh=function(V,l,I,H,T,x){IkT(V,l,I,[{index:H,addedCount:T,removed:x,object:l,type:"splice"}])};
Hl1=function(V){V=FlN((V.body?V.body:V).textContent,V.baseURI);var l=document.createElement("style");l.textContent=V;return l};
BEw=function(V){V=V.trim().split(/\s+/);for(var l=[],I=0;I<V.length;I++)l.push.apply(l,_.oI(TET(V[I])));return l};
TET=function(V){var l=kz.import(V);if(!l)return console.warn("Could not find style data in module named",V),[];if(l._styles===void 0){V=[];V.push.apply(V,_.oI(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l)));var I=l.querySelector("template");I&&V.push.apply(V,_.oI(xYw(I,l.assetpath)));l._styles=V}return l._styles};
xYw=function(V,l){if(!V._styles){for(var I=[],H=V.content.querySelectorAll("style"),T=0;T<H.length;T++){var x=H[T],n=x.getAttribute("include");n&&I.push.apply(I,_.oI(BEw(n).filter(function(w,N,L){return L.indexOf(w)===N})));
l&&(x.textContent=FlN(x.textContent,l));I.push(x)}V._styles=I}return V._styles};
UYJ=function(V){return(V=kz.import(V))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(V):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(V){var l=[];V=V.querySelectorAll("link[rel=import][type~=css]");for(var I=0;I<V.length;I++){var H=V[I];if(H.import){var T=H.import;if((H=H.hasAttribute("shady-unscoped"))&&!T._unscopedStyle){var x=Hl1(T);x.setAttribute("shady-unscoped","");T._unscopedStyle=x}else T._style||(T._style=Hl1(T));l.push(H?T._unscopedStyle:T._style)}}return l};
$Yf=function(V){V=V.trim().split(/\s+/);for(var l="",I=0;I<V.length;I++)l+=n_f(V[I]);return l};
n_f=function(V){var l=kz.import(V);if(l&&l._cssText===void 0){var I=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l),H=l.querySelector("template");H&&(I+=dYt(H,l.assetpath));l._cssText=I||null}l||console.warn("Could not find style data in module named",V);return l&&l._cssText||""};
dYt=function(V,l){var I="";V=xYw(V,l);for(l=0;l<V.length;l++){var H=V[l];H.parentNode&&H.parentNode.removeChild(H);I+=H.textContent}return I};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(V){var l="";V=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(V);for(var I=0;I<V.length;I++)l+=V[I].textContent;return l};
FH=function(V,l){return{index:V,removed:[],addedCount:l}};
NEW=function(V,l,I,H){var T=0,x=0,n=0,w=0,N=Math.min(l-T,H-x);if(T==0&&x==0)a:{for(n=0;n<N;n++)if(V[n]!==I[n])break a;n=N}if(l==V.length&&H==I.length){w=V.length;for(var L=I.length,e=0;e<N-n&&wAq(V[--w],I[--L]);)e++;w=e}T+=n;x+=n;l-=w;H-=w;if(l-T==0&&H-x==0)return[];if(T==l){for(l=FH(T,0);x<H;)l.removed.push(I[x++]);return[l]}if(x==H)return[FH(T,l-T)];N=T;n=x;H=H-n+1;w=l-N+1;l=Array(H);for(L=0;L<H;L++)l[L]=Array(w),l[L][0]=L;for(L=0;L<w;L++)l[0][L]=L;for(L=1;L<H;L++)for(e=1;e<w;e++)if(V[N+e-1]===
I[n+L-1])l[L][e]=l[L-1][e-1];else{var k=l[L-1][e]+1,X=l[L][e-1]+1;l[L][e]=k<X?k:X}N=l.length-1;n=l[0].length-1;H=l[N][n];for(V=[];N>0||n>0;)N==0?(V.push(2),n--):n==0?(V.push(3),N--):(w=l[N-1][n-1],L=l[N-1][n],e=l[N][n-1],k=L<e?L<w?L:w:e<w?e:w,k==w?(w==H?V.push(0):(V.push(1),H=w),N--,n--):k==L?(V.push(3),N--,H=L):(V.push(2),n--,H=e));V.reverse();l=void 0;N=[];for(n=0;n<V.length;n++)switch(V[n]){case 0:l&&(N.push(l),l=void 0);T++;x++;break;case 1:l||(l=FH(T,0));l.addedCount++;T++;l.removed.push(I[x]);
x++;break;case 2:l||(l=FH(T,0));l.addedCount++;T++;break;case 3:l||(l=FH(T,0)),l.removed.push(I[x]),x++}l&&N.push(l);return N};
KSg=function(V,l){return NEW(V,V.length,l,l.length)};
wAq=function(V,l){return V===l};
YHq=function(V){if(V instanceof jKg)return V.value;throw Error("Fd`"+V);};
LSg=function(V,l){for(var I in l)I===null?V.style.removeProperty(I):V.style.setProperty(I,l[I])};
ejt=function(V,l){return(V=window.getComputedStyle(V).getPropertyValue(l))?V.trim():""};
zjg=function(V){requestAnimationFrame(function(){ka1?ka1(V):(FST||(FST=new Promise(function(l){XAt=l}),document.readyState==="complete"?XAt():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&XAt()})),FST.then(function(){V&&V()}))})};
riw=function(V){yiK=V&&V.shimcssproperties?!1:t73||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
hjK=function(V){if(!(Gac.indexOf(V)>-1)&&V!=="touchend"&&E_c&&Jiy&&o_J)return{passive:!0}};
SHq=function(V){for(var l=PRw?["click"]:Gac,I=0,H;I<l.length;I++)H=l[I],V?(DYW.length=0,document.addEventListener(H,Zl1,!0)):document.removeEventListener(H,Zl1,!0)};
XH=function(V){var l=V.type;return Gac.indexOf(l)>-1?l==="mousemove"?(l=V.buttons===void 0?1:V.buttons,V instanceof window.MouseEvent&&!Rjc&&(l=QKN[V.which]||0),!!(l&1)):(V.button===void 0?0:V.button)===0:!1};
cic=function(V){if(V.type==="click"){if(V.detail===0)return!0;var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V);if(!l.nodeType||l.nodeType!==Node.ELEMENT_NODE)return!0;l=l.getBoundingClientRect();var I=V.pageX;V=V.pageY;return!(I>=l.left&&I<=l.right&&V>=l.top&&V<=l.bottom)}return!1};
WS1=function(V,l,I){V.movefn=l;V.upfn=I;document.addEventListener("mousemove",l);document.addEventListener("mouseup",I)};
zO=function(V){document.removeEventListener("mousemove",V.movefn);document.removeEventListener("mouseup",V.upfn);V.movefn=null;V.upfn=null};
bly=function(V,l){for(var I=document.elementFromPoint(V,l),H=I;H&&H.shadowRoot&&!window.ShadyDOM;){var T=H;H=H.shadowRoot.elementFromPoint(V,l);if(T===H)break;H&&(I=H)}return I};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V){var l=qHg(V);return l.length>0?l[0]:V.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V){var l=V.type,I=V.currentTarget.__polymerGestures;if(I&&(I=I[l])){if(!V.__polymerGesturesHandled&&(V.__polymerGesturesHandled={},l.slice(0,5)==="touch")){var H=V.changedTouches[0];l==="touchstart"&&V.touches.length===1&&(M7K=H.identifier);if(M7K!==H.identifier)return;E_c||(l==="touchstart"||l==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V)}H=
V.__polymerGesturesHandled;if(!H.skip){for(var T=0,x;T<yW.length;T++)x=yW[T],I[x.name]&&!H[x.name]&&x.flow&&x.flow.start.indexOf(V.type)>-1&&x.reset&&x.reset();for(T=0;T<yW.length;T++)x=yW[T],I[x.name]&&!H[x.name]&&(H[x.name]=!0,x[l](V))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V){var l=V.changedTouches[0],I=V.type;if(I==="touchstart")sK1=l.clientX,pAK=l.clientY,AiW=!1;else if(I==="touchmove"&&!AiW){AiW=!0;I="auto";for(var H=qHg(V),T=0,x;T<H.length;T++)if(x=H[T],x.__polymerGesturesTouchAction){I=x.__polymerGesturesTouchAction;break}H=!1;T=Math.abs(sK1-l.clientX);l=Math.abs(pAK-l.clientY);V.cancelable&&(I==="none"?H=!0:I==="pan-x"?H=l>T:I==="pan-y"&&(H=T>l));H?V.preventDefault():
tl("track")}};
GO=function(V,l,I){return ru[l]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V,l,I),!0):!1};
Ew=function(V,l,I){return ru[l]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V,l,I),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V,l,I){var H=ru[l],T=H.deps,x=H.name,n=V.__polymerGestures;n||(V.__polymerGestures=n={});for(var w=0,N,L;w<T.length;w++)N=T[w],PRw&&Gac.indexOf(N)>-1&&N!=="click"||((L=n[N])||(n[N]=L={_count:0}),L._count===0&&V.addEventListener(N,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,hjK(N)),L[x]=(L[x]||0)+1,L._count=(L._count||0)+1);V.addEventListener(l,I);H.touchAction&&_.Jl(V,H.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V,l,I){var H=ru[l],T=H.deps;H=H.name;var x=V.__polymerGestures;if(x)for(var n=0,w,N;n<T.length;n++)w=T[n],(N=x[w])&&N[H]&&(N[H]=(N[H]||1)-1,N._count=(N._count||1)-1,N._count===0&&V.removeEventListener(w,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,hjK(w)));V.removeEventListener(l,I)};
uzN=function(V){yW.push(V);for(var l=0;l<V.emits.length;l++)ru[V.emits[l]]=V};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V){for(var l=0,I;l<yW.length;l++){I=yW[l];for(var H=0,T;H<I.emits.length;H++)if(T=I.emits[H],T===V)return I}return null};
_.Jl=function(V,l){E_c&&V instanceof HTMLElement&&oX.run(function(){V.style.touchAction=l});
V.__polymerGesturesTouchAction=l};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(V,l,I){l=new Event(l,{bubbles:!0,cancelable:!0,composed:!0});l.detail=I;(0,_.KC)(V).dispatchEvent(l);l.defaultPrevented&&(V=I.preventer||I.sourceEvent)&&V.preventDefault&&V.preventDefault()};
tl=function(V){V=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V);V.info&&(V.info.prevent=!0)};
hl=function(V,l,I,H){l&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,V,{x:I.clientX,y:I.clientY,sourceEvent:I,preventer:H,prevent:function(T){return tl(T)}})};
v_g=function(V,l,I){if(V.prevent)return!1;if(V.started)return!0;I=Math.abs(V.y-I);return Math.abs(V.x-l)>=5||I>=5};
Olt=function(V,l,I){if(l){var H=V.moves[V.moves.length-2],T=V.moves[V.moves.length-1],x=T.x-V.x,n=T.y-V.y,w=0;if(H){var N=T.x-H.x;w=T.y-H.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,"track",{state:V.state,x:I.clientX,y:I.clientY,dx:x,dy:n,ddx:N,ddy:w,sourceEvent:I,hover:function(){return bly(I.clientX,I.clientY)}})}};
akW=function(V,l,I){var H=Math.abs(l.clientX-V.x),T=Math.abs(l.clientY-V.y),x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I||l);!x||CR1[x.localName]&&x.hasAttribute("disabled")||!(isNaN(H)||isNaN(T)||H<=25&&T<=25||cic(l))||V.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x,"tap",{x:l.clientX,y:l.clientY,sourceEvent:l,preventer:I})};
fkt=function(V,l,I,H,T){var x;T&&(x=typeof I==="object"&&I!==null)&&(H=V.__dataTemp[l]);H=H!==I&&(H===H||I===I);x&&H&&(V.__dataTemp[l]=I);return H};
mYt=function(){if(PI&&!DU){if(!g_J){g_J=!0;var V=document.createElement("style");V.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(V)}return!0}return!1};
VaN=function(){return il1};
lVt=function(V,l){il1=V;Object.setPrototypeOf(V,l.prototype);new l;il1=null};
IVt=function(V,l){for(var I=0;I<l.length;I++){var H=l[I];if(!!V!=!!H.__hideTemplateChildren__)if(H.nodeType===Node.TEXT_NODE)V?(H.__polymerTextContent__=H.textContent,H.textContent=""):H.textContent=H.__polymerTextContent__;else if(H.localName==="slot")if(V)H.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.KC)((0,_.KC)(H).parentNode).replaceChild(H.__polymerReplaced__,H);else{var T=H.__polymerReplaced__;T&&(0,_.KC)((0,_.KC)(T).parentNode).replaceChild(H,T)}else H.style&&(V?(H.__polymerDisplay__=
H.style.display,H.style.display="none"):H.style.display=H.__polymerDisplay__);H.__hideTemplateChildren__=V;H._showHideChildren&&H._showHideChildren(V)}};
Hj1=function(V){return(V=V.__dataHost)&&V._methodHost||V};
xUf=function(V,l,I){var H=I.mutableData?Tl1:ZU;Sh.mixin&&(H=Sh.mixin(H));var T=function(){return H.apply(this,arguments)||this};
_.t(T,H);T.prototype.__templatizeOptions=I;T.prototype._bindTemplate(V);Blg(T,V,l,I);return T};
wnT=function(V,l,I,H){var T=I.forwardHostProp;if(T&&l.hasHostProps){var x=V.localName=="template",n=l.templatizeTemplateClass;if(!n){if(x){var w=I.mutableData?UUw:nvT;n=function(){return w.apply(this,arguments)||this};
_.t(n,w);n=l.templatizeTemplateClass=n}else{var N=V.constructor;n=function(){return N.apply(this,arguments)||this};
_.t(n,N);n=l.templatizeTemplateClass=n}var L=l.hostProps,e;for(e in L)n.prototype._addPropertyEffect("_host_"+e,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:$Ut(T)}),n.prototype._createNotifyingProperty("_host_"+e);RX&&H&&dUW(l,I,H)}V.__dataProto&&Object.assign(V.__data,V.__dataProto);if(x)lVt(V,n),V.__dataTemp={},V.__dataPending=null,V.__dataOld=null,V._enableProperties();else{Object.setPrototypeOf(V,n.prototype);l=l.hostProps;for(var k in l)k="_host_"+k,k in V&&(l=V[k],delete V[k],V.__data[k]=
l)}}};
$Ut=function(V){return function(l,I,H){V.call(l.__templatizeOwner,I.substring(6),H[I])}};
Blg=function(V,l,I,H){var T=I.hostProps||{},x;for(x in H.instanceProps){delete T[x];var n=H.notifyInstanceProp;n&&V.prototype._addPropertyEffect(x,V.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:NlJ(n)})}if(H.forwardHostProp&&l.__dataHost)for(var w in T)I.hasHostProps||(I.hasHostProps=!0),V.prototype._addPropertyEffect(w,V.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:KMt()})};
NlJ=function(V){return function(l,I,H){V.call(l.__templatizeOwner,l,I,H[I])}};
KMt=function(){return function(V,l,I){V.__dataHost._setPendingPropertyOrPath("_host_"+l,I[l],!0,!0)}};
Sh=function(V,l,I){if(QW&&!Hj1(V))throw Error("Ld");I=I||{};if(V.__templatizeOwner)throw Error("Md");V.__templatizeOwner=l;var H=(l?l.constructor:ZU)._parseTemplate(V),T=H.templatizeInstanceClass;T||(T=xUf(V,H,I),H.templatizeInstanceClass=T);var x=Hj1(V);wnT(V,H,I,x);I=function(){return T.apply(this,arguments)||this};
_.t(I,T);I.prototype._methodHost=x;I.prototype.__dataHost=V;I.prototype.__templatizeOwner=l;I.prototype.__hostProps=H.hostProps;return I};
dUW=function(V,l,I){I=I.constructor._properties;V=V.propertyEffects;l=l.instanceProps;for(var H in V)if(!(I[H]||l&&l[H]))for(var T=V[H],x=0;x<T.length;x++){var n=T[x].info.part;if(!n.signature||!n.signature.static){console.warn("Property '"+H+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
jtq=function(V,l){for(var I;l;)if(I=l.__dataHost?l:l.__templatizeInstance)if(I.__dataHost!=V)l=I.__dataHost;else return I;else l=(0,_.KC)(l).parentNode;return null};
cI=function(V){return V.localName==="slot"};
Yk3=function(){for(var V=WI.prototype,l="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),I={},H=0;H<l.length;I={method$jscomp$32:void 0},H++)I.method$jscomp$32=l[H],V[I.method$jscomp$32]=function(T){return function(){return this.node[T.method$jscomp$32].apply(this.node,arguments)}}(I)};
LMt=function(V,l){for(var I={},H=0;H<l.length;I={name$jscomp$377:void 0},H++)I.name$jscomp$377=l[H],Object.defineProperty(V,I.name$jscomp$377,{get:function(T){return function(){return this.node[T.name$jscomp$377]}}(I),
configurable:!0})};
ef1=function(){for(var V=WI.prototype,l=["textContent","innerHTML","className"],I={},H=0;H<l.length;I={name$jscomp$378:void 0},H++)I.name$jscomp$378=l[H],Object.defineProperty(V,I.name$jscomp$378,{get:function(T){return function(){return this.node[T.name$jscomp$378]}}(I),
set:function(T){return function(x){this.node[T.name$jscomp$378]=x}}(I),
configurable:!0})};
kpq=function(){bg=document.documentElement.getAttribute("dir");bg=document.documentElement.getAttribute("dir");for(var V=0;V<qK.length;V++){var l=qK[V];l.__autoDirOptOut||l.setAttribute("dir",bg)}};
y3W=function(){MK=!0;requestAnimationFrame(function(){MK=!1;FMt(Xn1);setTimeout(function(){for(var V=0,l=pC.length;V<l;V++)zf1(pC.shift())})})};
FMt=function(V){for(;V.length;)zf1(V.shift())};
zf1=function(V){var l=V[0],I=V[1];V=V[2];try{I.apply(l,V)}catch(H){setTimeout(function(){throw H;})}};
_.ta1=function(V,l,I){MK||y3W();Xn1.push([V,l,I])};
_.Al=function(V,l,I){MK||y3W();pC.push([V,l,I])};
Ev1=function(V,l){l=l===void 0?!1:l;if(!r3y||!Gpw||!r3y.handlesDynamicScoping)return null;var I=Gpw.ScopingShim;if(!I)return null;var H=I.scopeForNode(V),T=(0,_.KC)(V).getRootNode(),x=function(n){if((0,_.KC)(n).getRootNode()===T){var w=Array.from(r3y.nativeMethods.querySelectorAll.call(n,"*"));w.push(n);for(n=0;n<w.length;n++){var N=w[n];if((0,_.KC)(N).getRootNode()===T){var L=I.currentScopeForNode(N);L!==H&&(L!==""&&I.unscopeNode(N,L),I.scopeNode(N,H))}}}};
x(V);return l?(l=new MutationObserver(function(n){for(var w=0;w<n.length;w++)for(var N=n[w],L=0;L<N.addedNodes.length;L++){var e=N.addedNodes[L];e.nodeType===Node.ELEMENT_NODE&&x(e)}}),l.observe(V,{childList:!0,
subtree:!0}),l):null};
J31=function(){document.body.removeAttribute("unresolved")};
ZjJ=function(V){var l=V=V.replace(ovK,"").replace(hf1,""),I=new PQW;I.start=0;I.end=l.length;for(var H=I,T=0,x=l.length;T<x;T++)if(l[T]==="{"){H.rules||(H.rules=[]);var n=H,w=n.rules[n.rules.length-1]||null;H=new PQW;H.start=T+1;H.parent=n;H.previous=w;n.rules.push(H)}else l[T]==="}"&&(H.end=T+1,H=H.parent||I);return DU1(I,V)};
DU1=function(V,l){var I=l.substring(V.start,V.end-1);V.parsedCssText=V.cssText=I.trim();V.parent&&(I=l.substring(V.previous?V.previous.end:V.parent.start,V.start-1),I=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(I),I=I.replace(SkK," "),I=I.substring(I.lastIndexOf(";")+1),I=V.parsedSelector=V.selector=I.trim(),V.atRule=I.indexOf("@")===0,V.atRule?I.indexOf("@media")===0?V.type=4:I.match(Rf1)&&(V.type=7,V.keyframesName=V.selector.split(SkK).pop()):I.indexOf("--")===
0?V.type=1E3:V.type=1);if(I=V.rules)for(var H=0,T=I.length,x=void 0;H<T&&(x=I[H]);H++)DU1(x,l);return V};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(V){return V.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var l=arguments[1],I=6-l.length;I--;)l="0"+l;return"\\"+l})};
Qtw=function(V,l,I){I=I===void 0?"":I;var H="";if(V.cssText||V.rules){var T=V.rules;if(T&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(T))for(var x=0,n=T.length,w=void 0;x<n&&(w=T[x]);x++)H=Qtw(w,l,H);else l?l=V.cssText:(l=V.cssText,l=l.replace(c3J,"").replace(WMy,""),l=l.replace(bjW,"").replace(qkW,"")),(H=l.trim())&&(H="  "+H+"\n")}H&&(V.selector&&(I+=V.selector+" {\n"),I+=H,V.selector&&(I+="}\n\n"));return I};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(V){V=V[0];return!!V&&!!V.selector&&V.selector.indexOf("--")===0};
stN=function(V){if(V=Mat[V])V._applyShimCurrentVersion=V._applyShimCurrentVersion||0,V._applyShimValidatingVersion=V._applyShimValidatingVersion||0,V._applyShimNextVersion=(V._applyShimNextVersion||0)+1};
pnN=function(V){return V._applyShimCurrentVersion===V._applyShimNextVersion};
urf=function(V){V._applyShimValidatingVersion=V._applyShimNextVersion;V._validating||(V._validating=!0,A3f.then(function(){V._applyShimCurrentVersion=V._applyShimNextVersion;V._validating=!1}))};
Oj1=function(V){if(!V)return"";typeof V==="string"&&(V=ZjJ(V));return Qtw(V,vv1)};
CQ1=function(V){!V.__cssRules&&V.textContent&&(V.__cssRules=ZjJ(V.textContent));return V.__cssRules||null};
fVt=function(V,l,I,H){if(V){var T=!1,x=V.type;if(H&&x===4){var n=V.selector.match(aVt);n&&(window.matchMedia(n[1]).matches||(T=!0))}x===1?l(V):I&&x===7?I(V):x===1E3&&(T=!0);if((V=V.rules)&&!T)for(T=0,x=V.length,n=void 0;T<x&&(n=V[T]);T++)fVt(n,l,I,H)}};
gvt=function(V,l){var I=V.indexOf("var(");if(I===-1)return l(V,"","","");a:{var H=0;var T=I+3;for(var x=V.length;T<x;T++)if(V[T]==="(")H++;else if(V[T]===")"&&--H===0)break a;T=-1}H=V.substring(I+4,T);I=V.substring(0,I);V=gvt(V.substring(T+1),l);x=H.indexOf(",");if(x===-1)return l(I,H.trim(),"",V);T=H.substring(0,x).trim();H=H.substring(x+1).trim();return l(I,T,H,V)};
mUt=function(V){if(ug!==void 0)return ug;if(V.__cssBuild===void 0){var l=V.getAttribute("css-build");if(l)V.__cssBuild=l;else{a:{l=V.localName==="template"?V.content.firstChild:V.firstChild;if(l instanceof Comment&&(l=l.textContent.trim().split(":"),l[0]==="css-build")){l=l[1];break a}l=""}if(l!==""){var I=V.localName==="template"?V.content.firstChild:V.firstChild;I.parentNode.removeChild(I)}V.__cssBuild=l}}return V.__cssBuild||""};
Vuw=function(V,l,I,H){for(var T=l._noAccessors,x=Object.getOwnPropertyNames(l),n=0;n<x.length;n++){var w=x[n];if(!(w in H))if(T)V[w]=l[w];else{var N=Object.getOwnPropertyDescriptor(l,w);N&&(N.configurable=!0,Object.defineProperty(V,w,N))}}for(var L in ij1)l[L]&&(I[L]=I[L]||[],I[L].push(l[L]))};
lNN=function(V,l,I){l=l||[];for(var H=V.length-1;H>=0;H--){var T=V[H];T?Array.isArray(T)?lNN(T,l):l.indexOf(T)<0&&(!I||I.indexOf(T)<0)&&l.unshift(T):console.warn("behavior is null, check for missing or 404 import")}return l};
IN3=function(V,l){for(var I in l){var H=V[I],T=l[I];V[I]=!("value"in T)&&H&&"value"in H?Object.assign({value:H.value},T):T}};
BUW=function(V,l,I){var H={},T=function(){return l.apply(this,arguments)||this};
_.t(T,l);T._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(n)for(var N=0,L;N<n.length;N++)L=n[N],L.properties&&this.createProperties(L.properties),L.observers&&this.createObservers(L.observers,L.properties);V.properties&&this.createProperties(V.properties);V.observers&&this.createObservers(V.observers,V.properties);this._prepareTemplate()}else l._finalizeClass.call(this)};
T.prototype.created=function(){l.prototype.created.call(this);var N=H.created;if(N)for(var L=0;L<N.length;L++)N[L].call(this)};
T.prototype._registered=function(){var N=T.prototype;if(!N.hasOwnProperty("__hasRegisterFinished")){N.__hasRegisterFinished=!0;l.prototype._registered.call(this);PI&&w(N);N=Object.getPrototypeOf(this);var L=H.beforeRegister;if(L)for(var e=0;e<L.length;e++)L[e].call(N);if(L=H.registered)for(e=0;e<L.length;e++)L[e].call(N)}};
T.prototype._applyListeners=function(){l.prototype._applyListeners.call(this);var N=H.listeners;if(N)for(var L=0;L<N.length;L++){var e=N[L];if(e)for(var k in e)this._addMethodEventListenerToNode(this,k,e[k])}};
T.prototype._ensureAttributes=function(){var N=H.hostAttributes;if(N)for(var L=N.length-1;L>=0;L--){var e=N[L],k;for(k in e)this._ensureAttribute(k,e[k])}l.prototype._ensureAttributes.call(this)};
T.prototype.ready=function(){l.prototype.ready.call(this);var N=H.ready;if(N)for(var L=0;L<N.length;L++)N[L].call(this)};
T.prototype.attached=function(){l.prototype.attached.call(this);var N=H.attached;if(N)for(var L=0;L<N.length;L++)N[L].call(this)};
T.prototype.detached=function(){l.prototype.detached.call(this);var N=H.detached;if(N)for(var L=0;L<N.length;L++)N[L].call(this)};
T.prototype.attributeChanged=function(N,L,e){l.prototype.attributeChanged.call(this);var k=H.attributeChanged;if(k)for(var X=0;X<k.length;X++)k[X].call(this,N,L,e)};
_.vI.Object.defineProperties(T,{properties:{configurable:!0,enumerable:!0,get:function(){var N={};if(n)for(var L=0;L<n.length;L++)IN3(N,n[L].properties);IN3(N,V.properties);return N}},
observers:{configurable:!0,enumerable:!0,get:function(){var N=[];if(n)for(var L=0,e;L<n.length;L++)e=n[L],e.observers&&(N=N.concat(e.observers));V.observers&&(N=N.concat(V.observers));return N}}});
if(I){Array.isArray(I)||(I=[I]);var x=l.prototype.behaviors;var n=lNN(I,null,x);T.prototype.behaviors=x?x.concat(I):n}var w=function(N){if(n)for(var L=n,e=0;e<L.length;e++)Vuw(N,L[e],H,Huw);Vuw(N,V,H,TUc)};
PI||w(T.prototype);T.generatedFrom=V;return T};
$aW=function(V){var l=typeof V!=="string"?V:{is:V,notifyObserversOnUndefined:!0};l.fastInit===void 0&&(l.fastInit=!0);return function(I){if(!l.disableInheritanceCheck&&Object.getPrototypeOf(I.prototype).constructor!==_.Ow)throw Error("Qd");var H=I.prototype;H.is=l.is;jJy(H,"created",function(){this.hostElement=this;this.polymerController=this});
xa1(H,I,l.fastInit);l.notifyObserversOnUndefined&&(H._overrideLegacyUndefined=!0);if(UaJ)for(var T=_.U(Object.getOwnPropertyNames(H)),x=T.next();!x.done;x=T.next()){x=x.value;var n=Object.getOwnPropertyDescriptor(H,x);n.enumerable===!1&&(n.enumerable=!0,Object.defineProperty(H,x,n))}if("template"in I)var w=function(){return I.template};
else l.template!==void 0&&(w=l.template);if(w!==void 0){var N;Object.defineProperty(H,"_template",{get:function(){N===void 0&&(N=w());return N},
set:function(L){N=L},
configurable:!0,enumerable:!0})}Polymer(H);I[nDf]=H}};
daK=function(V){V=V===void 0?{}:V;V.fastInit===void 0&&(V.fastInit=!0);return function(l){if(!V.disableInheritanceCheck&&Object.getPrototypeOf(l.prototype).constructor!==CC)throw Error("Rd");xa1(l.prototype,l,V.fastInit)}};
xa1=function(V,l,I){I=I===void 0?!1:I;wiT(l);I?jJy(V,"created",function(){this.disableEnforceFastDefaultValuesCheck||NUc(l,this)}):jJy(V,"ready",function(){for(var H={},T=_.U(YJw(this.behaviors)),x=T.next();!x.done;x=T.next())x=x.value,x.properties&&Object.assign(H,KJN(this,x.properties));
Object.assign(H,KJN(this,this.properties));NUc(l,this);T=_.U(Object.keys(H));for(x=T.next();!x.done;x=T.next())x=x.value,this[x]=H[x]})};
NUc=function(V,l){if(UaJ){V=new V;for(var I=_.U(Object.getOwnPropertyNames(V)),H=I.next();!H.done;H=I.next())H=H.value,l[H]=V[H];for(I=l;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){H=_.U(Object.getOwnPropertyNames(I));for(var T=H.next();!T.done;T=H.next())T=T.value,V.hasOwnProperty(T)||Object.defineProperty(V,T,jkJ(l,T))}}else V.apply(l)};
jkJ=function(V,l){return{get:function(){var I=V[l];return I instanceof Function?I.bind(V):I},
set:function(I){V[l]=I}}};
KJN=function(V,l){if(!l)return{};for(var I={},H=_.U(Object.keys(l)),T=H.next();!T.done;T=H.next())if(T=T.value,!l[T].readOnly){var x=V[T];x!==void 0&&(I[T]=x)}return I};
wiT=function(V){var l=new V;V=V.prototype.properties||{};for(var I=_.U(Object.keys(V)),H=I.next();!H.done;H=I.next())if(H=H.value,l.hasOwnProperty(H)){var T=V[H];typeof T==="function"&&(V[H]=T={type:T});l[H]!=null&&T.type===Object&&(T.type=YYW(l[H].constructor))}};
YYW=function(V){for(var l=_.U(LJt),I=l.next();!I.done;I=l.next())if(I=I.value,V===I)return I;return Object};
eKt=function(V){return function(l,I){l.behaviors=l.behaviors||[];l.behaviors.push(V||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",l,I).prototype:void 0));Object.defineProperty(l,I,{get:function(){return this},
enumerable:!0,configurable:!0})}};
keN=function(V){V=V===void 0?{}:V;return function(l,I){l.properties=l.properties||{};V.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?V.type=YYW(Reflect.getMetadata("design:type",l,I)):V.type=String);var H=V,T=l.properties[I];l.properties[I]=T?Object.assign({},T,H):H}};
FJt=function(V){return function(l,I){l.listeners=l.listeners||{};l.listeners[V]=I}};
Xi1=function(){var V=_.Q5.apply(0,arguments);if(V.length===0)throw Error("Sd");return function(l,I){l.observers=l.observers||[];l.observers.push(I+"("+V.join(",")+")")}};
zKw=function(){var V=_.Q5.apply(0,arguments);return function(l,I,H){var T=Object.getOwnPropertyDescriptor(l,I).get,x="__compute__"+I;Object.defineProperty(l,x,{value:T,enumerable:!0});l.properties=l.properties||{};T=l.properties[I];T||(T={},l.properties[I]=T);T.computed=x+"("+V.join(",")+")";H.get=void 0}};
_.aX=function(V,l,I){_.XG.call(this);this.JSC$9069_id_=null;this.usingListeners_=!1;this.JSC$9069_listener_=V;this.handler_=I;this.JSC$9069_win_=l||window;this.callback_=(0,_.zN)(this.JSC$9071_doAction_,this)};
fC=function(V){this.range_=V};
gu=function(V){this.range_=V};
lK=function(V,l,I){_.XG.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=V;this.scrollTimer_=new _.m4(50);this.JSC$9148_eventHandler_=new _.ig(this);this.scrollDelta_=new _.og;this.containerIsActuallyContent_=V.tagName==="BODY"||V.tagName==="HTML";this.containerBounds_=yPf(V);this.containerIsActuallyContent_&&(V=_.LG(),this.containerBounds_.height=V.height,this.containerBounds_.width=V.width);this.margin_=l||0;if(l){if(l=this.containerBounds_.clone(),V=this.margin_){var H=
Math.min(V,l.height*.25);l.top+=H;l.height-=2*H;V=Math.min(V,l.width*.25);l.left+=V;l.width-=2*V}}else l=this.containerBounds_;this.scrollBounds_=l;I||this.JSC$9148_eventHandler_.listen(_.Z3(this.containerNode_),"mousemove",this.JSC$9150_onMouseMove);this.JSC$9148_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9150_onTick_)};
_.Ia=function(V){this.mechanism=V};
HU=function(V,l){this.JSC$9246_key_=V;this.JSC$9246_value_=l};
rPJ=function(V){if(V>=55296&&V<=57343||V>1114111)return"\ufffd";V in tug&&(V=tug[V]);var l="";V>65535&&(V-=65536,l+=String.fromCharCode(V>>>10&1023|55296),V=56320|V&1023);return l+=String.fromCharCode(V)};
GeT=function(V,l){return V<l?1:-1};
JPt=function(){return function(V){return V.charAt(1)==="#"?V.charAt(2)==="X"||V.charAt(2)==="x"?rPJ(parseInt(V.substr(3),16)):rPJ(parseInt(V.substr(2),10)):EDf[V.slice(1,-1)]}};
P_1=function(V){return V.slice(1,V.length-1).trim().replace(oDw,function(l){return hKW[l]||" "})};
Tu=function(V){return V===32||V===9};
BU=function(V,l){return l<V.length?V.charCodeAt(l):-1};
DaW=function(V){for(;V;){if(V._lastLineBlank)return!0;var l=V.type;if(l==="list"||l==="item")V=V._lastChild;else break}return!1};
xA=function(V){if(ZuK.test(V)){var l=1,I=0,H=0;for(V[I]=="|"&&I++;I<V.length;){switch(V[I]){case "|":H=1;break;case " ":break;case "\t":break;default:H&&(H=0,l++)}I++}return SYt.test(V)?-l:l}return 0};
RKt=function(V){return V=="table"||V=="row"||V=="cell"};
Qkw=function(){return new UA("document",[[1,1],[0,0]])};
cPw=function(){};
n8=function(){var V={safe:!1};V=V||{};V.softbreak=V.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=V};
skt=function(V,l){var I="";if(V)if(V=V.toLowerCase(),V===" "||WJ3.test(V))I="space";else if(buf.test(V))I="esc";else if(V.length==1){if(!l||qY3.test(V))I=V}else I=Mu1.test(V)?V.replace("arrow",""):V=="multiply"?"*":V;return I};
vDg=function(V,l){var I=V.hasModifiers;if(l.key)I=skt(l.key,I);else if(l.detail&&l.detail.key)I=skt(l.detail.key,I);else{I=l.keyIdentifier;var H="";I&&(I in piy?H=piy[I]:APT.test(I)?(I=parseInt(I.replace("U+","0x"),16),H=String.fromCharCode(I).toLowerCase()):H=I.toLowerCase());(I=H)||(I=l.keyCode,H="",Number(I)&&(I>=65&&I<=90?H=String.fromCharCode(32+I):I>=112&&I<=123?H="f"+(I-112+1):I>=48&&I<=57?H=String(I-48):I>=96&&I<=105?H=String(I-96):H=uXw[I]),I=H);I=I||""}return I===V.key&&(!V.hasModifiers||
!!l.shiftKey===!!V.shiftKey&&!!l.ctrlKey===!!V.ctrlKey&&!!l.altKey===!!V.altKey&&!!l.metaKey===!!V.metaKey)};
C_g=function(V){return V.length===1?{combo:V,key:V,event:"keydown"}:V.split("+").reduce(function(l,I){var H=I.split(":");I=H[0];H=H[1];I in OuW?(l[OuW[I]]=!0,l.hasModifiers=!0):(l.key=I,l.event=H||"keydown");return l},{combo:V.split(":").shift()})};
aNy=function(V){return V.trim().split(" ").map(function(l){return C_g(l)})};
fNT=function(V,l){if(V&&V.fn){var I=V.fn;V.fn=function(){try{I.apply(this,arguments)}catch(H){if(H instanceof $A)console.warn("Argument '"+H.arg+"'"+(l?" for method '"+l+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw H;}}}return V};
gDN=function(){var V=_.Q5.apply(0,arguments);return V.length===0?function(l){return l}:V.length===1?V[0]:V.reduce(function(l,I){return function(){return l(I.apply(null,_.oI(_.Q5.apply(0,arguments))))}})};
mac=function(){var V=_.Q5.apply(0,arguments);return function(l){return function(I,H){I=l(I,H);var T=function(){throw Error("Ce");},x={getState:I.getState,
dispatch:function(n){return T.apply(null,[n].concat(_.oI(_.Q5.apply(1,arguments))))}};
H=V.map(function(n){return n(x)});
T=gDN.apply(null,_.oI(H))(I.dispatch);return Object.assign({},I,{dispatch:T})}}};
lxf=function(V){Object.keys(V).forEach(function(l){var I=V[l];if(typeof I(void 0,{type:iuw})==="undefined")throw Error("De`"+l);if(typeof I(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+V3f()})==="undefined")throw Error("Ee`"+l+"`"+iuw);})};
dS=function(V){for(var l=Object.keys(V),I={},H=0;H<l.length;H++){var T=l[H];typeof V[T]==="function"&&(I[T]=V[T])}var x=Object.keys(I);try{lxf(I)}catch(w){var n=w}return function(w,N){w=w===void 0?{}:w;if(n)throw n;for(var L=!1,e={},k=0;k<x.length;k++){var X=x[k],r=w[X],E=(0,I[X])(r,N);if(typeof E==="undefined")throw w=N&&N.type,Error("Fe`"+(w?'"'+String(w)+'"':"(unknown type)")+"`"+X);e[X]=E;L=L||E!==r}return(L=L||x.length!==Object.keys(w).length)?e:w}};
IxT=function(V,l,I){function H(){if(e)throw Error("Ge");return w}
function T(r){if(typeof r!=="function")throw Error("He`"+typeof r);if(e)throw Error("Ie");var E=!0;L===N&&(L=N.slice());L.push(r);return function(){if(E){if(e)throw Error("Je");E=!1;L===N&&(L=N.slice());var D=L.indexOf(r);L.splice(D,1);N=null}}}
function x(r){if(typeof r!=="object"||r===null)var E=!1;else{for(E=r;Object.getPrototypeOf(E)!==null;)E=Object.getPrototypeOf(E);E=Object.getPrototypeOf(r)===E}if(!E)throw Error("Ke`"+typeof r);if(typeof r.type==="undefined")throw Error("Le");if(e)throw Error("Me");try{e=!0,w=n(w,r)}finally{e=!1}E=N=L;for(var D=0;D<E.length;D++)(0,E[D])();return r}
if(typeof l==="function"&&typeof I==="function"||typeof I==="function"&&typeof arguments[3]==="function")throw Error("Ne");typeof l==="function"&&typeof I==="undefined"&&(I=l,l=void 0);if(typeof I!=="undefined"){if(typeof I!=="function")throw Error("Oe`"+typeof I);return I(IxT)(V,l)}if(typeof V!=="function")throw Error("Pe`"+typeof V);var n=V,w=l,N=[],L=N,e=!1;x({type:iuw});var k={},X=(k.dispatch=x,k.subscribe=T,k.getState=H,k.replaceReducer=function(r){if(typeof r!=="function")throw Error("Qe`"+
typeof r);n=r;x({type:Hgy});return X},k[TRK]=function(){var r={};
return r.subscribe=function(E){function D(){E.next&&E.next(H())}
if(typeof E!=="object"||E===null)throw new TypeError("Re`"+typeof E);D();return{unsubscribe:T(D)}},r[TRK]=function(){return this},r},k);
return X};
BRq=function(V){function l(){T&&(T=!1,V());x&&H()}
function I(){requestAnimationFrame(l)}
function H(){var w=Date.now();if(T){if(w-n<2)return;x=!0}else T=!0,x=!1,setTimeout(I,20);n=w}
var T=!1,x=!1,n=0;return H};
wS=function(V){return typeof V==="number"?V:parseFloat(V)||0};
xIy=function(V){return _.Q5.apply(1,arguments).reduce(function(l,I){return l+wS(V["border-"+I+"-width"])},0)};
_.G=function(V,l){l=pd(sq(l));V.innerHTML=l};
$It=function(V){var l=UIy;l||(l=nL1(),l=UIy=_.EL.transpose(l));l=l[V];return typeof l==="string"?l:_.Nz(V)};
dIN=function(V){V=String(V).toLowerCase();var l=nL1()[V];return typeof l==="string"?l:_.K8(V)};
wH1=function(V){V=V.toLowerCase();V=nL1()[V];return typeof V==="string"?V:null};
nL1=function(){if(!NRg){for(var V=Object.assign({},KCg),l=_.U(jmJ),I=l.next();!I.done;I=l.next())I=I.value,V[I.toLowerCase()]=I;NRg=V}return NRg};
eqg=function(V,l){var I=window.customElements;return I&&I.get(V)||YRt[V]===!0?2:l.name==="HTMLUnknownElement"?1:l.name==="HTMLElement"&&LCt.test(V)?3:0};
XHt=function(V,l){switch(l){case "innerHTML":return k11(V)===1?2:null;case "textContent":return V=k11(V),V===1||V===6?1:null;default:var I,H;return(H=(I=FCq[V.localName])==null?void 0:I[l])!=null?H:null}};
k11=function(V){var l=V.localName,I=eqg(l,V.constructor);switch(I){case 0:case 1:return zqt(l,V);case 3:case 2:return 1;default:_.AB(I,"got an unknown element classification")}};
zqt=function(V,l){var I=Object.hasOwnProperty.call(ymq,V)?ymq[V]:null;return I!==null?I:Object.hasOwnProperty.call(t31,V)&&l instanceof SVGElement?t31[V]:null};
rmt=function(V,l){return l};
ELJ=function(V){return(V=V.split(G13,2))?{url:V[0],metadata:V[1]}:null};
oL1=function(V){var l=String(V.url).replace(JmN,encodeURIComponent);if(V=V.metadata){JmN.lastIndex=0;if(JmN.test(V))return null;l+=" "+V}return l};
Zgt=function(V){function l(L){var e=L.localName;if(!L.getAttribute("is")&&eqg(e,L.constructor)===2){var k;return(k=N)!=null?k:N=document.createElement("polyresinuncustomized")}(L=w[e])||(L=w[e]=document.createElement(e));return L}
var I=V.reportHandler||void 0,H=V.safeTypesBridge||hqJ,T=/^$/;if(V=V.allowedIdentifierPrefixes){V=_.U(V);for(var x=V.next();!x.done;x=V.next())T=new RegExp(T.source+"|^"+_.PU1(x.value))}I&&I(!1,"initResin",null);var n=DIg(T,H,I),w={},N=null;return function(L,e,k){var X=L.nodeType;if(X!==Node.ELEMENT_NODE){if(X===Node.TEXT_NODE){e=L.parentElement;k=!e;if(e&&e.nodeType===Node.ELEMENT_NODE){X=e.localName;var r=eqg(X,e.constructor);switch(r){case 0:case 1:e=zqt(X,e);k=e===1||e===6;break;case 3:case 2:k=
!0;break;default:_.AB(r,"got an unknown element classification")}}if(k)return function(S){return""+H(S,"STRING",S)}}return function(S){if(!S&&S!==document.all)return S;
I&&I(!0,"Failed to sanitize "+(L.parentElement&&L.parentElement.nodeName)+" #text node to value "+S,L.parentElement);return jX}}var E=L.localName;
X=l(L);var D=null;switch(k){case "attribute":if(dIN(e)in X)break;return function(S){return S};
case "property":if(e in X){D=XHt(X,e);break}if((r=wH1(e))&&r in X)break;return function(S){return S};
default:_.AB(k,"got an unknown resin type, expected either 'property' or 'attribute'")}var Z=k==="attribute"?e.toLowerCase():$It(e);D||(D=lUW(E,Z,function(S){var p=L.getAttribute(S);return!p||/[\[\{]/.test(S)?null:p}));
return function(S){var p=YA,Vf=null;if(!S&&S!==document.all)return S;if(D!=null){var C=n[D],By=C.safeType;Vf=C.safeReplacement;By&&(p=H(S,By,YA));p===YA&&(C.filterString?(p=String(H(S,"STRING",S)),p=C.filterString(E,Z,p)):C.filterRaw&&(p=C.filterRaw(E,Z,S,L)),p===Vf&&(p=YA))}p===YA&&(p=Vf||jX,I&&I(!0,"Failed to sanitize attribute of <"+E+">: <"+E+" "+Z+'="'+S+'">',L));return p}}};
DIg=function(V,l,I){return[,{filterRaw:function(H,T,x){return x},
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:SRK,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:SRK,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:jX,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:RqT,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(H,T,x){x=
String(x).toLowerCase();return Tug(H,T,x)?x:jX},
safeReplacement:jX,safeType:void 0},,{filterRaw:void 0,filterString:function(H,T,x){return V.test(x)?x:jX},
safeReplacement:jX,safeType:"CONSTANT"},{filterRaw:function(H,T,x,n){if(typeof x==="string")var w=(w=x.match(Qmt))?w.map(ELJ).filter(Boolean):[];else if(Array.isArray(x))w=x;else return SRK;var N=w;w=[];var L=[],e={};if(Array.isArray(N))for(var k=0,X=N.length;k<X;++k){var r=N[k],E=r&&r.url;if(E){var D=l(E,"URL",e);if(D){var Z=D!==e;(Z?w:L).push({url:Z?D:E,metadata:r.metadata})}}}else L.push(N);N=L.length?JSON.stringify(L):null;L=YA;if(w.length){if(!Array.isArray(w))throw Error();L=w.map(oL1).filter(Boolean).join(" , ")||
YA}N&&I&&I(!0,"Failed to sanitize attribute value of <"+H+">: <"+H+" "+T+'="'+x+'">: '+N,n);return L===YA?SRK:L},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
cmw=function(V){var l=Zgt(V);return function(I,H,T,x){return x||x===document.all?l(I,H,T)(x):x}};
L8=function(V,l){function I(){function T(w,N,L){for(N=Reflect.getMetadata("parameters",w)||[];N.length<=L;)N.push(null);N[L]=N[L]||[];N[L].push(n);Reflect.defineMetadata(N,w);return w}
var x=_.Q5.apply(0,arguments);if(this instanceof I)return H.apply(this,x),this;var n=new (Function.prototype.bind.apply(I,[null].concat(_.oI(x))));T.annotation=n;return T}
var H=WCg(l);I.prototype.toString=function(){return"@"+V};
return I.annotationCls=I};
WCg=function(V){return function(){var l=_.Q5.apply(0,arguments),I=this;V.forEach(function(H,T){T=l[T];if(Array.isArray(H))I[H[0]]=T&&T!==void 0?T:H[1];else for(var x in H)I[x]=T&&T[x]!==void 0?T[x]:H[x]})}};
bgq=function(V){return V!==void 0&&V!==null};
eX=function(V){if(typeof V==="string")return V;if(V===void 0||V===null)return""+V;if(V.overriddenName)return V.overriddenName;if(V.name)return V.name;V=V.toString();var l=V.indexOf("\n");return l===-1?V:V.substring(0,l)};
qRW=function(V){V.__forward_ref__=qRW;V.toString=function(){return eX(this())};
return V};
kA=function(V){return typeof V==="function"&&V.hasOwnProperty("__forward_ref__")&&V.__forward_ref__===qRW?V():V};
M3N=function(V){return V?V.map(function(l){return new (Function.prototype.bind.apply(l.type.annotationCls,[null].concat(_.oI(l.args?l.args:[]))))}):[]};
smN=function(V){for(var l=[],I=0;I<V.length;++I){if(l.indexOf(V[I])>-1){l.push(V[I]);break}l.push(V[I])}return l};
pHW=function(V){return V.length>1?" ("+smN(V.slice().reverse()).map(function(l){return eX(l.token)}).join(" -> ")+")":""};
utT=function(V,l,I,H){if(H){var T=Error("Ye``"+(H instanceof Error?H.message:H));T.ngOriginalError=H}else T=Error();T.addKey=AmK;T.keys=[l];T.injectors=[V];T.constructResolvingMessage=I;T.message=T.constructResolvingMessage();T.ngOriginalError=H;return T};
AmK=function(V,l){this.injectors.push(V);this.keys.push(l);this.message=this.constructResolvingMessage()};
vL3=function(V,l){return utT(V,l,function(){return"No provider for "+eX(this.keys[0].token)+"!"+pHW(this.keys)})};
OgT=function(V,l){return utT(V,l,function(){return"Cannot instantiate cyclic dependency!"+pHW(this.keys)})};
CUT=function(V,l,I){return utT(V,I,function(){var H=eX(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+H+"!"+pHW(this.keys)+"."},l)};
axf=function(V,l){for(var I=[],H=0,T=l.length;H<T;H++){var x=l[H];x&&x.length!=0?I.push(x.map(eX).join(" ")):I.push("?")}return Error("bf`"+eX(V)+"`"+I.join(", ")+"`"+eX(V))};
I43=function(V){var l=void 0,I=void 0;if(V&&V.useClass!==void 0){l=V.useClass;var H=kA(V.useClass);var T=fxJ.factory(H);H=gLy(H)}else V&&V.useExisting!==void 0?(T=function(x){return x},H=[mIw(Fb.get(kA(V.useExisting)))]):V&&V.useFactory!==void 0?(T=V.useFactory,H=igK(V.useFactory,V.deps)):(I=V.useValue,T=function(){return V.useValue},H=VT1);
return new l4f(T,H,l,I)};
TY1=function(V){return new HHw(Fb.get(kA(V.provide)),[I43(V)],V.multi)};
x_1=function(V){V=BYq(V,[]).map(TY1);for(var l=new Map,I=0;I<V.length;I++){var H=V[I],T=l.get(H.key.id);if(T){if(H.multiProvider!==T.multiProvider)throw Error("df`"+T+"`"+H);if(H.multiProvider)for(var x=0;x<H.resolvedFactories.length;x++)T.resolvedFactories.push(H.resolvedFactories[x]);else l.set(H.key.id,H)}else T=void 0,H.multiProvider?T=new HHw(H.key,H.resolvedFactories.slice(),H.multiProvider):T=H,l.set(H.key.id,T)}return Array.from(l.values())};
BYq=function(V,l){V.forEach(function(I){if(I instanceof U_N)l.push({provide:I,useClass:I});else if(I&&typeof I=="object"&&I.provide!==void 0)l.push(I);else if(I instanceof Array)BYq(I,l);else throw Error("af`"+I);});
return l};
igK=function(V,l){if(l){var I=l.map(function(H){return[H]});
return l.map(function(H){return nNT(V,H,I)})}return gLy(V)};
gLy=function(V){var l=fxJ.parameters(V);if(!l)return[];if(l.some(function(I){return I==null}))throw axf(V,l);
return l.map(function(I){return nNT(V,I,l)})};
nNT=function(V,l,I){var H=null,T=!1;if(!Array.isArray(l))return l instanceof $_t?d_t(l.token,T,null):d_t(l,T,null);for(var x=null,n=0;n<l.length;++n){var w=l[n];if(w instanceof U_N)H=w;else if(w instanceof $_t)H=w.token;else if(w instanceof w_t)T=!0;else if(w instanceof NYT||w instanceof KR1)x=w}H=kA(H);if(H!=null)return d_t(H,T,x);throw axf(V,I);};
d_t=function(V,l,I){return new jB1(Fb.get(kA(V)),l,I)};
YON=function(V,l){for(var I=Array(V.providers.length),H=0;H<V.providers.length;++H){var T=H;if(H<0||H>=V.providers.length)throw Error("cf`"+H);I[T]=l(V.providers[H])}return I};
LRT=function(V){return typeof V==="function"&&fxJ.parameters(V).every(function(l){return!!l})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(V)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(V)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V,l){var I,H;if(V.contains(l))return!0;V=_.Xb(V).querySelectorAll("content,slot");for(I=0;I<V.length;++I){var T=_.Xb(V[I]).getDistributedNodes();for(H=0;H<T.length;++H)if(T[H].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(T[H],l))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V){V.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(V)&&V.preventDefault();V.targetTouches&&(V=V.targetTouches[0],eXy=V.pageX,kdc=V.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 V=0,l=zu.length;V<l;V++)document.addEventListener(zu[V],_._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 V=0,l=zu.length;V<l;V++)document.removeEventListener(zu[V],_._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(V){var l=_.Xb(V).rootTarget;V.type!=="touchmove"&&FRq!==l&&(FRq=l,X_3=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Xb(V).path));if(!X_3.length)return!0;if(V.type==="touchstart")return!1;V=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(V);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(X_3,V.deltaX,V.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V){for(var l=[],I=V.indexOf(zXJ),H=0;H<=I;H++)if(V[H].nodeType===Node.ELEMENT_NODE){var T=V[H],x=T.style;x.overflow!=="scroll"&&x.overflow!=="auto"&&(x=window.getComputedStyle(T));x.overflow!=="scroll"&&x.overflow!=="auto"||l.push(T)}return l};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V,l,I){if(l||I)for(var H=Math.abs(I)>=Math.abs(l),T=0;T<V.length;T++){var x=V[T];if(H?I<0?x.scrollTop>0:x.scrollTop<x.scrollHeight-x.clientHeight:l<0?x.scrollLeft>0:x.scrollLeft<x.scrollWidth-x.clientWidth)return x}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(V){var l={deltaX:V.deltaX,deltaY:V.deltaY};"deltaX"in V||("wheelDeltaX"in V&&"wheelDeltaY"in V?(l.deltaX=-V.wheelDeltaX,l.deltaY=-V.wheelDeltaY):"wheelDelta"in V?(l.deltaX=0,l.deltaY=-V.wheelDelta):"axis"in V?(l.deltaX=V.axis===1?V.detail:0,l.deltaY=V.axis===2?V.detail:0):V.targetTouches&&(V=V.targetTouches[0],l.deltaX=eXy-V.pageX,l.deltaY=kdc-V.pageY));return l};
yu1=function(V){this.element=V;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
ruq=function(V){this.element=V;this.color=window.getComputedStyle(V).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");_.Xb(this.waveContainer).appendChild(this.wave);tTt(this)};
yM=function(V,l){for(var I in V)if(I.toLowerCase()===l.toLowerCase())return V[I]};
Gdy=function(V,l){for(var I in V)if(I.toLowerCase()===l.toLowerCase()){delete V[I];break}};
JuN=function(V){V=_.EL.clone(V);for(var l=0;l<ENN.length;++l){var I=ENN[l],H=yM(V,I);H&&(V["X-Goog-Upload-Header-"+I]=H,Gdy(V,I))}return V};
oNq=function(V){V=_.EL.clone(V);Gdy(V,"X-Goog-Upload-Status")};
Png=function(V){return hXt.some(function(l){return l.test(V)})};
RXW=function(V,l){var I;var H=(I=V.formContent)==null?void 0:I.locale;I=H==null?void 0:H.split("-")[0];H=H&&D_t.includes(H)?H:I&&D_t.includes(I)?I:void 0;H=(H!=null?H:"en").replaceAll("-","_").toLowerCase();var T;V=((T=V.initializationData)==null?0:T.useNightlyRelease)?"nightly":"live";var x;return(l==null?0:(x=l.getEnableAlohaBinarySplit)==null?0:x.call(l))?_.TP(ZHw,V):_.TP(SOT,V,H)};
cuN=function(V,l,I,H){if(QBW)return QBW;var T=RXW(V,H);return QBW=l.feedbackV2GlobalObject?Promise.resolve(l.feedbackV2GlobalObject):new Promise(function(x,n){var w=_.jk("SCRIPT");_.gp(w,T);w.onload=function(){l.feedbackV2GlobalObject?x(l.feedbackV2GlobalObject):n(Error("gf"))};
w.onerror=function(){n(Error("hf`"+T.toString()))};
I.body.appendChild(w)})};
bH1=function(V,l,I,H){if(WRN)return WRN;var T=RXW(V,H);return WRN=l.feedbackV2GlobalObject?Promise.resolve(l.feedbackV2GlobalObject):new Promise(function(x,n){var w=_.jk("SCRIPT");_.gp(w,T);w.onload=function(){l.feedbackV2GlobalObject?x(l.feedbackV2GlobalObject):n(Error("gf"))};
w.onerror=function(){n(Error("hf`"+T.toString()))};
I.body.appendChild(w)})};
qOq=function(V,l,I,H,T){T=T===void 0?!0:T;var x,n,w,N,L;return _.d(function(e){switch(e.nextAddress){case 1:return x=Date.now(),_.K(e,cuN(V,I,H,l),2);case 2:n=e.yieldResult;if(!(T||((N=V.initializationData)==null?0:N.useNightlyRelease)||((L=V.initializationData)==null?0:L.isLocalServer))){w=n.initializeFeedbackClient(V,x,l);e.jumpTo(3);break}return _.K(e,n.initializeFeedbackClientAsync(V,x,l),4);case 4:w=e.yieldResult;case 3:return w.initiateAloha(),e.return(w)}})};
MTN=function(V,l,I,H){var T,x,n;return _.d(function(w){if(w.nextAddress==1)return T=Date.now(),_.K(w,bH1(V,I,H.document,l),2);if(w.nextAddress!=3)return x=w.yieldResult,_.K(w,x.initializeFeedbackClientAsync(V,T,l,H),3);n=w.yieldResult;n.initiateAloha();return w.return(n)})};
sBN=function(V,l,I){var H=!0;H=H===void 0?!0:H;var T,x,n,w,N,L,e,k,X,r;return _.d(function(E){T=I||_.nK;if((x=l)==null?0:(w=(n=x).getEnableAlohaBinarySplit)==null?0:w.call(n)){N=T;if(N.isFormOpened)throw L=Error("jf"),L.name="DuplicateFormError",L;N.isFormOpened=!0;V.callbacks=V.callbacks||{};e=V.callbacks.onClose||function(){};
V.callbacks.onClose=function(D){N.isFormOpened=!1;e(D)};
try{return E.return(MTN(V,l,N,T))}catch(D){throw N.isFormOpened=!1,D;}}else{k=T;if(k.isFormOpened)throw X=Error("jf"),X.name="DuplicateFormError",X;k.isFormOpened=!0;V.callbacks=V.callbacks||{};r=V.callbacks.onClose||function(){};
V.callbacks.onClose=function(D){k.isFormOpened=!1;r(D)};
try{return E.return(qOq(V,l,k,T.document,H))}catch(D){throw k.isFormOpened=!1,D;}}_.FU(E)})};
OHt=function(V,l){return _.d(function(I){return I.return(new Promise(function(H){var T=p_W(l!=null?l:"")+"/aloha_form_properties?productId="+V;Au3(T,function(x){x=x.target;var n=null;try{var w=JSON,N=w.stringify;if(x.JSC$7662_xhr_){var L=x.JSC$7662_xhr_.responseText;L.indexOf(")]}'\n")==0&&(L=L.substring(5));var e=(0,_.tO)(L)}else e=void 0;n=JVt(uFT,N.call(w,e))}catch(k){N=new uFT,e=vNK(),e=_.rS(e,13,!1),e=_.rS(e,14,!0),e=_.rS(e,15,!0),e=_.rS(e,20,!1),n=_.j6(N,1,e)}H(n)},"GET","",{},2E3,!0)}))})};
p_W=function(V){return Png(V)?V:"https://www.google.com/tools/feedback"};
gNW=function(V){V=V.match(new RegExp(Cnq,"gi"))||[];V=_.U(V);for(var l=V.next();!l.done;l=V.next()){l=l.value;a:{var I=_.U(a4f);for(var H=I.next();!H.done;H=I.next())if(H.value.test(l)){I=!1;break a}I=!0}if(!I)a:{I=_.U(f4T);for(H=I.next();!H.done;H=I.next())if(H.value.test(l)){I=!0;break a}I=!1}if(I)return!0}return!1};
m_1=function(V){switch(V){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"}};
VJq=function(V){if(window.crypto&&window.crypto.getRandomValues)try{var l=Array(V),I=new Uint8Array(V);window.crypto.getRandomValues(I);for(var H=0;H<l.length;H++)l[H]=I[H];return l}catch(x){}l=Array(V);for(I=0;I<V;I++){H=Date.now();for(var T=0;T<H%23;T++)l[I]=Math.random();l[I]=Math.floor(Math.random()*256)}if(iH1)for(I=1,H=0;H<iH1.length;H++)l[I%V]^=l[(I-1)%V]/4^iH1.charCodeAt(H),I++;return l};
Gu=function(V){V=VJq(V);for(var l=[],I=0;I<V.length;I++)l.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(V[I]&63));return l.join("")};
Ij1=function(V){V&&_.tF("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:ljJ,clientScreenNonce:V})};
Hht=function(V){return _.h6("client-screen-nonce-store",{})[V===void 0?0:V]};
T3J=function(V,l){l=l===void 0?0:l;var I=_.h6("client-screen-nonce-store");I||(I={},_.ow("client-screen-nonce-store",I));I[l]=V};
B3N=function(V){V=V===void 0?0:V;return V===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+V};
xO1=function(V){return _.h6(B3N(V===void 0?0:V))};
_.JO=function(V){return(V=xO1(V===void 0?0:V))?new _.EA({veType:V,youtubeData:void 0,jspbYoutubeData:void 0}):null};
UO1=function(){var V=_.h6("csn-to-ctt-auth-info");V||(V={},_.ow("csn-to-ctt-auth-info",V));return V};
nCt=function(){return Object.values(_.h6("client-screen-nonce-store",{})).filter(function(V){return V!==void 0})};
_.oa=function(V){V=Hht(V===void 0?0:V);if(!V&&!_.PO("USE_CSN_FALLBACK",!0))return null;V||(V="UNDEFINED_CSN");return V?V:null};
dOf=function(V){for(var l=_.U(Object.values($Oy)),I=l.next();!I.done;I=l.next())if(_.oa(I.value)===V)return!0;return!1};
w6K=function(V,l,I){var H=UO1();(I=_.oa(I))&&delete H[I];l&&(H[V]=l)};
hO=function(V){return UO1()[V]};
_.N31=function(V,l,I,H){I=I===void 0?0:I;if(V!==Hht(I)||l!==_.h6(B3N(I)))if(w6K(V,H,I),T3J(V,I),_.ow(B3N(I),l),l=function(){setTimeout(function(){Ij1(V)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(l)}catch(T){l()}else l()};
KqW=function(V,l){l=l===void 0?"":l;var I=[],H;for(H in V)if(V.hasOwnProperty(H)){var T=l!==""?l+"."+H:H;typeof V[H]==="object"?I.push.apply(I,_.oI(KqW(V[H],T))):I.push([T,V[H]])}I.sort();return I};
_.Dh=function(V){var l=_.Q5.apply(1,arguments);if(!PU(V)||l.some(function(H){return!PU(H)}))throw Error("kf");
l=_.U(l);for(var I=l.next();!I.done;I=l.next())jCJ(V,I.value)};
jCJ=function(V,l){for(var I in l)if(PU(l[I])){if(I in V&&!PU(V[I]))throw Error("lf");I in V||(V[I]={});jCJ(V[I],l[I])}else if(Ym1(l[I])){if(I in V&&!Ym1(V[I]))throw Error("mf");I in V||(V[I]=[]);Lq1(V[I],l[I])}else V[I]=l[I];return V};
Lq1=function(V,l){l=_.U(l);for(var I=l.next();!I.done;I=l.next())I=I.value,PU(I)?V.push(jCJ({},I)):Ym1(I)?V.push(Lq1([],I)):V.push(I);return V};
PU=function(V){return typeof V==="object"&&!Array.isArray(V)};
Ym1=function(V){return typeof V==="object"&&Array.isArray(V)};
kAW=function(V){for(var l=_.U(Object.entries(eNK)),I=l.next();!I.done;I=l.next())if(I=_.U(I.value),I.next(),I=I.next().value,I==="SLI_STATUS_"+V)return I;return"SLI_STATUS_UNKNOWN"};
_.Zh=function(V,l,I,H){return Fqt(V,l,function(){return new _.X6t(V,l,I,H)})};
_.zNw=function(){return _.Zh("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
y4T=function(){return _.Zh("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
SX=function(){return _.Zh("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
tJ3=function(){return _.Zh("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
r4T=function(){return _.Zh("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
GA3=function(){return _.Zh("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
oCT=function(V){V&&(V.dataset?V.dataset[ECN()]="true":_.VJ([_.Ig(J4W)],V,"data-loaded","true".toString()))};
hNK=function(V){return V?V.dataset?V.dataset[ECN()]:V.getAttribute("data-loaded"):null};
ECN=function(){return PDq.loaded||(PDq.loaded="loaded".replace(/\-([a-z])/g,function(V,l){return l.toUpperCase()}))};
_.Ra=function(V,l,I){DOq(V,l,I===void 0?null:I)};
_.Smt=function(V,l){V&&l&&(V=""+_.iN(l),(V=ZhK[V])&&_.Mz1(V))};
DOq=function(V,l,I){I=I===void 0?null:I;var H=_.RNw(V),T=document.getElementById(H),x=T&&hNK(T),n=T&&!x;x?l&&l():(l&&(x=_.VC(H,l),l=""+_.iN(l),ZhK[l]=x),n||(T=QCq(V,H,function(){hNK(T)||(oCT(T),_.sNy(H),_.Iv(function(){_.AoK(H)},0))},I)))};
QCq=function(V,l,I,H){H=H===void 0?null:H;var T=_.jk("SCRIPT");T.id=l;T.onload=function(){I&&setTimeout(I,0)};
T.onreadystatechange=function(){switch(T.readyState){case "loaded":case "complete":T.onload()}};
H&&T.setAttribute("nonce",H);_.gp(T,_.tK(V));V=document.getElementsByTagName("head")[0]||document.body;V.insertBefore(T,V.firstChild);return T};
_.RNw=function(V){var l=document.createElement("a");bY(l,V);return"js-"+QM(l.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.bhg=function(){var V=_.EL.clone(c4c),l;return(new _.UZ(function(I,H){V.onSuccess=function(T){EB1(T)?I(new WqN(T)):H(new _.cU("Request failed, status="+l2(T),"net.badstatus",T))};
V.onError=function(T){H(new _.cU("Unknown request error","net.unknown",T))};
V.onTimeout=function(T){H(new _.cU("Request timed out","net.timeout",T))};
l=_.xd("//googleads.g.doubleclick.net/pagead/id",V)})).thenCatch(function(I){if(I instanceof _.WU){var H;
(H=l)==null||H.abort()}return _.bK(I)})};
qmf=function(V){var l=_.h6("INNERTUBE_HOST_OVERRIDE");l&&(V=String(l)+String(_.qz(V)));return V};
MJq=function(V){var l={};_.z("json_condensed_response")&&(l.prettyPrint="false");return V=N6t(V,l)};
_.Mz=function(V){return ut(V)?"same-origin":"include"};
_.sA=function(V){return ut(V)?"same-origin":"cors"};
p8=function(V,l,I){I=I===void 0?{}:I;V={method:l===void 0?"POST":l,mode:_.sA(V),credentials:_.Mz(V)};l={};for(var H=_.U(Object.keys(I)),T=H.next();!T.done;T=H.next())T=T.value,I[T]&&(l[T]=I[T]);Object.keys(l).length>0&&(V.headers=l);return V};
_.AO=function(V,l){l=l===void 0?{}:l;return"service:"+V+"/"+Object.keys(l).sort().map(function(I){return I+":"+l[I]}).join("/")};
sCJ=function(V){var l,I,H,T;V=(l=_.y(V,_.vU))==null?void 0:(I=l.watchEndpointSupportedOnesieConfig)==null?void 0:(H=I.html5PlaybackOnesieConfig)==null?void 0:(T=H.commonConfig)==null?void 0:T.url;if(!V)return[];l=new _.OA(V);return l.JSC$7896_domain_?["https://"+l.JSC$7896_domain_+"/generate_204"]:[]};
_.uQJ=function(){return p6t()||Ylt()||A4N&&E_("version/")?!0:_.h6("EOM_VISITOR_DATA")?!1:!0};
vC3=function(V){var l=V.docid||V.video_id||V.videoId||V.id;if(l)return l;l=V.raw_player_response;l||(V=V.player_response)&&(l=JSON.parse(V));return l&&l.videoDetails&&l.videoDetails.videoId||null};
_.CDW=function(V){a:{var l="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(l="EMBEDDED_PLAYER_MODE_PFL");var I=V.raw_embedded_player_response;if(!I&&(V=V.embedded_player_response))try{I=JSON.parse(V)}catch(T){break a}if(I)b:for(var H in OhW)if(OhW[H]==I.embeddedPlayerMode){l=OhW[H];break b}}return l==="EMBEDDED_PLAYER_MODE_PFL"};
_.ajt=function(){if(_.z("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("qf");if(!_.uQJ())return Error("rf");var V=_.h6("PLAYER_VARS",{});if(_.EL.get(V,"privembed",!1)=="1")return Error("sf");if(_.CDW(V))return Error("tf")};
fjJ=function(V){return V.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
C8=function(V){return!isNaN(Number(V))&&!_.jc(V)};
_.f8=function(V,l,I,H){H=H===void 0?!0:H;var T=_.h6("VALID_SESSION_TEMPDATA_DOMAINS",[]),x=_.ps(window.location.href);x&&T.push(x);x=_.ps(V);if(_.Mq(T,x)||!x&&_.Nq(V,"/"))if(T=document.createElement("a"),bY(T,V),V=T.href)if(V=_.qz(V),V=_.aa(V))H&&!l.csn&&(l.itct||l.ved)&&(l=Object.assign({csn:_.oa()},l)),I?(I=parseInt(I,10),isFinite(I)&&I>0&&gC1(V,l,I)):gC1(V,l)};
ih1=function(V){var l=_.h6("VALID_SESSION_TEMPDATA_DOMAINS",[]),I=_.ps(window.location.href);I&&l.push(I);I=_.ps(V);if(!(_.Mq(l,I)||!I&&_.Nq(V,"/")))return null;V=_.qz(V);(V=_.aa(V))?(V=mOK(V),V=(V=_.dm.get(V,void 0)||null)?_.WO(V):{}):V=null;return V};
gC1=function(V,l,I){V=mOK(V);l=l?_.U_(l):"";I=I||5;_.uQJ()&&_.wm(V,l,I)};
mOK=function(V){for(var l=_.U(VSJ),I=l.next();!I.done;I=l.next())V=_.gS(V,I.value);return"ST-"+QM(V).toString(36)};
lEw=function(V,l){V.commandMetadata&&_.y(V.commandMetadata,_.mK)&&_.y(V.commandMetadata,_.mK).url&&(V=_.bt(_.y(V.commandMetadata,_.mK).url).adurl)&&_.jzy(V)&&_.f8(_.qz(V),{encoded_ad_playback_context:l})};
_.IEt=function(V){if(V.requestFullscreen)V=V.requestFullscreen(void 0);else if(V.webkitRequestFullscreen)V=V.webkitRequestFullscreen();else if(V.mozRequestFullScreen)V=V.mozRequestFullScreen();else if(V.msRequestFullscreen)V=V.msRequestFullscreen();else if(V.webkitEnterFullscreen)V=V.webkitEnterFullscreen();else return Promise.reject(Error("vf"));return V instanceof Promise?V:Promise.resolve()};
_.Vg=function(V){var l;_.o7J(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.iK()==V&&(l=document):l=V;if(l&&(V=_.o7J(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],l))){V.call(l)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.iK=function(){var V=V===void 0?!1:V;var l=_.o7J(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(V)for(;l&&l.shadowRoot;)l=l.shadowRoot.fullscreenElement;return l?l:null};
_.lJ=function(V,l){l=l===void 0?!0:l;V.addEventListener("wheel",HDJ);V.overscrollConfig={cooldown:l}};
_.Iz=function(V){V.overscrollConfig=void 0;V.removeEventListener("wheel",HDJ)};
HDJ=function(V){var l=V.deltaY,I=V.target,H=null;if(window.Polymer&&window.Polymer.Element){if(I=V.path||V.composedPath&&V.composedPath()){I=_.U(I);for(var T=I.next();!T.done&&(T=T.value,!TQt(T,l));T=I.next())if(T.overscrollConfig){H=T;break}}}else for(;I&&!TQt(I,l);){if(I.overscrollConfig){H=I;break}I=I.parentElement}H&&(l=H.overscrollConfig,l.cooldown?(H=V.deltaY,I=l.lastDeltaY||0,l.lastDeltaY=H,T=l.lastStopped||0,I&&T&&I>0==H>0?Math.abs(I)>=Math.abs(H)?(H=T+1200,I=!1):(H=T+600,I=!0):(H=Date.now()+
600,I=!0),H>Date.now()&&(V.preventDefault(),I&&(l.lastStopped=Date.now()))):V.preventDefault())};
TQt=function(V,l){return l<0&&V.scrollTop>0||l>0&&V.scrollTop<V.scrollHeight-V.clientHeight-1?(V=getComputedStyle(V).overflowY,V=="auto"||V=="scroll"):!1};
_.B$=function(V,l,I,H){H||(H={bubbles:!0,cancelable:!1,composed:!0});I!==null&&I!==void 0&&(H.detail=I);l=new CustomEvent(l,H);V.dispatchEvent(l);return l};
_.xB=function(V,l,I,H){l=new BQt(l,!(H===void 0||!H),I);_.B$(V,"yt-action",l);return l.returnValue};
_.U4=function(V,l,I){return _.xB(V,l,I,!0)};
_.nT=function(V,l,I){return _.xB(V,l,I)[0]};
_.d6=function(V,l,I,H){l&&l.length&&l.forEach(function(T){var x=ojt(T);x&&(_.z("handle_service_request_actions")&&T.commandMetadata&&T.commandMetadata.webCommandMetadata&&T.commandMetadata.webCommandMetadata.sendPost?_.$B(I?I:V,[T]):_.U4(V,x,[T,I,H]))})};
_.$B=function(V,l){var I=[V];l&&I.push.apply(I,l);l=_.xB(V,"yt-service-request",I);return l.length>0&&(l=l[0],_.B$(V,"yt-service-request-sent",l),l&&l.ajaxPromise)?(l.ajaxPromise.then(function(H){_.B$(V,"yt-service-request-completed",H)},function(H){_.B$(V,"yt-service-request-error",{error:H,
params:I})},V),l.ajaxPromise):_.w6()};
_.KT=function(V,l){if(_.z("handle_service_request_actions"))_.d6(l,V,l);else{V=_.U(V);for(var I=V.next();!I.done;I=V.next()){I=I.value;var H=void 0;((H=_.y(I,_.NJ))==null?0:H.commands)?_.KT(_.y(I,_.NJ).commands,l):(H=void 0,((H=_.y(I,_.j1))==null?0:H.actions)?_.KT(_.y(I,_.j1).actions,l):(H=void 0,((H=_.y(I.commandMetadata,_.mK))==null?0:H.sendPost)?_.$B(l,[I]):_.d6(l,[I],l)))}}};
_.UAJ=function(V,l,I){l=l===void 0?{}:l;typeof l==="function"&&(l={callback:l});I||l._c&&l._c.jsl&&l._c.jsl.h||_.EL.extend(l,{_c:{jsl:{h:_.h6("GAPI_HINT_PARAMS")}}});(l.gapiHintOverride||_.h6("GAPI_HINT_OVERRIDE"))&&(I=_.bt(document.location.href).gapi_jsh)&&_.EL.extend(l,{_c:{jsl:{h:I}}});xA1(V,l)};
_.LT=function(V,l,I){l=l===void 0?{}:l;V=(V=V in YB?YB[V]:I)||"";I={};for(var H in l){I={key$jscomp$782:I.key$jscomp$782};I.key$jscomp$782=H;var T=function(x){return function(){return String(l[x.key$jscomp$782])}}(I);
V=V.replace(new RegExp("\\$\\{"+I.key$jscomp$782+"\\}","gi"),T);V=V.replace(new RegExp("\\$"+I.key$jscomp$782,"gi"),T)}return V};
_.e1=function(V,l){return nbN(V in YB?YB[V]:{},l)};
nbN=function(V,l){var I=_.h6("I18N_PLURAL_RULES");I||(I=function(H){return H==1?"one":"other"});
return(V=V["case"+l]||V[I(l)])?V.replace("#",l.toString()):l+""};
wJN=function(V){var l=$AK(V),I=document.getElementById(l),H=I&&hNK(I);H||I&&!H||(I=dAJ(V,l,function(){if(!hNK(I)){oCT(I);_.sNy(l);var T=_.kB(_.AoK,l);_.Iv(T,0)}}))};
dAJ=function(V,l,I){var H=document.createElement("link");H.id=l;H.onload=function(){I&&setTimeout(I,0)};
V=_.tK(V);_.lw(H,V,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(H);return H};
$AK=function(V){var l=_.jk("A");bY(l,Eq(V));return"css-"+QM(l.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Kft=function(V){var l=NQ1();V!==l&&(l=_.Fu(),!_.z("web_autonav_allow_off_by_default")&&V||_.Xu(0,141,!0),_.Xu(0,140,!V),l.save())};
NQ1=function(){var V=_.Fu();return _.z("web_autonav_allow_off_by_default")&&!V.getFlag(141)&&_.h6("AUTONAV_OFF_BY_DEFAULT")?!1:!V.getFlag(140)};
jYg=function(V,l){var I,H;V=((I=V.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(H=I.videoAuthorizationToken)==null?void 0:H.credentialTransferTokens)||[];for(I=0;I<V.length;++I)if(V[I].scope===l)return V[I].token||void 0};
Ynt=function(V){for(var l=0,I=0;I<V.length;I++)l=l*31+V.charCodeAt(I),I<V.length-1&&(l%=0x800000000000);return l%1E5};
_.zq=function(V){return _.SN("ytcsi."+(V||"")+"data_")||LfN(V)};
_.eDw=function(V){V=_.zq(V);V.metadata||(V.metadata={});return V.metadata};
_.kmf=function(V){V=_.zq(V);V.tick||(V.tick={});return V.tick};
_.yg=function(V){V=_.zq(V);if(V.gel){var l=V.gel;l.gelInfos||(l.gelInfos={});l.gelTicks||(l.gelTicks={})}else V.gel={gelTicks:{},gelInfos:{}};return V.gel};
_.Ff1=function(V){V=_.yg(V);V.gelInfos||(V.gelInfos={});return V.gelInfos};
XJ1=function(V){var l=_.zq(V).nonce;l||(l=Gu(16),_.zq(V).nonce=l);return l};
LfN=function(V){var l={tick:{},info:{}};_.Aq("ytcsi."+(V||"")+"data_",l);return l};
zDy=function(){var V=_.SN("ytcsi.debug");V||(V=[],_.Aq("ytcsi.debug",V),_.Aq("ytcsi.reference",{}));return V};
_.tc=function(V){V=V||"";var l=yzw();if(l[V])return l[V];var I=zDy(),H={timerName:V,info:{},tick:{},span:{},jspbInfo:[]};I.push(H);return l[V]=H};
tST=function(V){V=V||"";var l=yzw();l[V]&&delete l[V];var I=zDy(),H={timerName:V,info:{},tick:{},span:{},jspbInfo:[]};I.push(H);l[V]=H};
yzw=function(){var V=_.SN("ytcsi.reference");if(V)return V;zDy();return _.SN("ytcsi.reference")};
_.Gmf=function(V){return rzt[V]||"LATENCY_ACTION_UNKNOWN"};
hDg=function(V,l,I){I=I===void 0?{}:I;var H=!1;_.PO("ytLoggingEventsDefaultDisabled",!1)&&(H=!0);H=H?null:yC;I=I===void 0?{}:I;var T=Math.round(I.timestamp||(0,_.O_)());_.Yl(l,1,T<Number.MAX_SAFE_INTEGER?T:0);T=new EbT;if(I.lact)_.Yl(T,1,isFinite(I.lact)?I.lact:-1);else if(I.timestamp)_.Yl(T,1,-1);else{var x=_.f0();_.Yl(T,1,isFinite(x)?x:-1)}if(I.sequenceGroup&&!_.z("web_gel_sequence_info_killswitch")){x=I.sequenceGroup;var n=lb3(x),w=new Jz1;w.setIndex(n);_.Fm(w,1,x);_.j6(T,3,w);I.endOfSequence&&
delete obN[I.sequenceGroup]}_.j6(l,33,T);(I.sendIsolatedPayload?Uit:nF3)(V,{endpoint:"log_event",payload:l,cttAuthInfo:I.cttAuthInfo,dangerousLogToVisitorSession:I.dangerousLogToVisitorSession},H)};
_.Gq=function(){return(_.z("csi_use_time_origin")||_.z("csi_use_time_origin_tvhtml5"))&&_.r6.timeOrigin?Math.floor(_.r6.timeOrigin):_.r6.timing.navigationStart};
_.PcW=function(V,l){_.E4("_start",V,l)};
_.Jc=function(V,l){if(!_.z("web_csi_action_sampling_enabled")||!_.zq(l).actionDisabled){var I=_.tc(l||"");_.Dh(I.info,V);V.loadType&&(I=V.loadType,_.eDw(l).loadType=I);_.Dh(_.Ff1(l),V);I=XJ1(l);l=_.zq(l).cttAuthInfo;DAg().info(V,I,l)}};
ZDt=function(){var V,l,I,H;return((H=_.F().resolve(_.Cs(Fv))==null?void 0:(V=VMN())==null?void 0:(l=V.loggingHotConfig)==null?void 0:(I=l.csiConfig)==null?void 0:I.debugTicks)!=null?H:[]).map(function(T){return Object.values(T)[0]})};
_.E4=function(V,l,I){if(!_.z("web_csi_action_sampling_enabled")||!_.zq(I).actionDisabled){var H=XJ1(I),T;if(T=_.z("web_csi_debug_sample_enabled")&&H){(_.F().resolve(_.Cs(Fv))==null?0:VMN())&&!Snf&&(Snf=!0,_.E4("gcfl",(0,_.O_)(),I));var x,n,w;T=(_.F().resolve(_.Cs(Fv))==null?void 0:(x=VMN())==null?void 0:(n=x.loggingHotConfig)==null?void 0:(w=n.csiConfig)==null?void 0:w.debugSampleWeight)||0;if(x=T!==0)b:{x=ZDt();if(x.length>0)for(n=0;n<x.length;n++)if(V===x[n]){x=!0;break b}x=!1}x?(T=Ynt(H)%T!==0,
_.zq(I).debugTicksExcludedLogged||(x={},x.debugTicksExcluded=T,_.Jc(x,I)),_.zq(I).debugTicksExcludedLogged=!0):T=!1}if(!T){V[0]!=="_"&&RDf(V,I,l);T=_.tc(I||"");T.tick[V]=l||(0,_.O_)();if(T.callback&&T.callback[V])for(T=_.U(T.callback[V]),x=T.next();!x.done;x=T.next())x=x.value,x();T=_.yg(I);T.gelTicks&&(T.gelTicks[V]=!0);x=_.kmf(I);T=l||(0,_.O_)();_.z("log_repeated_ytcsi_ticks")?V in x||(x[V]=T):x[V]=T;x=_.zq(I).cttAuthInfo;V==="_start"?DAg().baseline(H,l,x):DAg().tick(V,H,l,x);_.QYt(I);return T}}};
RDf=function(V,l,I){if(_.r6.mark)if(V.startsWith("mark_")||(V="mark_"+V),l&&(V+=" ("+l+")"),I===void 0||_.z("web_csi_disable_alt_time_performance_mark"))_.r6.mark(V);else{I=_.z("csi_use_performance_navigation_timing")||_.z("csi_use_performance_navigation_timing_tvhtml5")?I-_.r6.timeOrigin:I-(_.r6.timeOrigin||_.r6.timing.navigationStart);try{_.r6.mark(V,{startTime:I})}catch(H){}}};
czN=function(){var V,l=(V=_.r6.getEntriesByType)==null?void 0:V.call(_.r6,"mark");l&&l.forEach(function(I){if(I.name.startsWith("mark_")){var H;(H=_.r6.clearMarks)==null||H.call(_.r6,I.name)}})};
_.Wf3=function(){switch(Jog()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.bD1=function(V){var l={},I=function(x,n,w){n=n.match("_rid")?n.split("_rid")[0]:n;typeof w==="number"&&(w=JSON.stringify(w));x.requestIds?x.requestIds.push({endpoint:n,id:w}):x.requestIds=[{endpoint:n,id:w}]};
V=_.U(Object.entries(V));for(var H=V.next();!H.done;H=V.next()){var T=_.U(H.value);H=T.next().value;T=T.next().value;switch(H){case "GetBrowse_rid":I(l,H,T);break;case "GetGuide_rid":I(l,H,T);break;case "GetHome_rid":I(l,H,T);break;case "GetPlayer_rid":I(l,H,T);break;case "GetSearch_rid":I(l,H,T);break;case "GetSettings_rid":I(l,H,T);break;case "GetTrending_rid":I(l,H,T);break;case "GetWatchNext_rid":I(l,H,T);break;case "yt_red":l.isRedSubscriber=!!T;break;case "yt_ad":l.isMonetized=!!T}}return l};
MSt=function(V,l,I,H,T,x){if(!_.z("web_csi_action_sampling_enabled")||!_.zq(x).actionDisabled){var n=_.yg(x);if(n.gelSpans)n.gelSpans[V]=!0;else{var w={};n.gelSpans=(w[V]=!0,w)}qn1++;V={spanName:V,spanLengthUsec:String(Math.round(l*1E3)),spanNonce:qn1};H&&(V.spanInfo=H);T&&(V.parentSpanNonce=T);I&&(V.spanStartTimeUsec=String(Math.round(I*1E3)));_.tc(x||"").span[String(V.spanName)]=V;I=_.yg(x);I.gelSpans||(I.gelSpans={});_.Dh(I.gelSpans,V);I=XJ1(x);x=_.zq(x).cttAuthInfo;DAg().span(V,I,x);return V.spanNonce}};
_.sYc=function(V){var l=_.oz("aft",V);if(l)return l;l=_.h6((V||"")+"TIMING_AFT_KEYS",["ol"]);for(var I=l.length,H=0;H<I;H++){var T=_.oz(l[H],V);if(T)return T}return NaN};
_.pJw=function(V,l){_.Aq("ytglobal.timing"+(l||"")+"ready_",V)};
_.oz=function(V,l){if(V=_.kmf(l)[V])return typeof V==="number"?V:V[V.length-1]};
_.QYt=function(V){var l=_.oz("_start",V),I=_.sYc(V),H=!Az3;l&&I&&H&&(lR1(u5K,new vb1(Math.round(I-l),V)),Az3=!0)};
CcJ=function(V){LfN(V);ODN();czN();V||(_.h6("TIMING_ACTION")&&_.ow("PREVIOUS_ACTION",_.h6("TIMING_ACTION")),_.ow("TIMING_ACTION",""))};
_.aEt=function(V){V=V===void 0?{}:V;_.Zp(function(){hc();tST();CcJ();_.pJw(!1);V.cttAuthInfo&&(_.zq().cttAuthInfo=V.cttAuthInfo);_.ow("TIMING_AFT_KEYS",[]);V.isHot?_.P$({loadType:"hot"}):_.P$({loadType:"warm"});_.ow("TIMING_ACTION","");delete _.h6("TIMING_INFO",{}).yt_lt;_.Zp(_.PcW)(V.startTime,void 0)})()};
_.D8=function(V,l,I,H){l=l===void 0?{}:l;_.Zp(function(){var T=I?I:V;fE3(T);var x=l.sampleRate;if(!_.z("web_csi_action_sampling_enabled")||x===void 0||x<=1)x=!1;else{var n=XJ1(T);x=Ynt(n)%x!==0}x&&(_.zq(T).actionDisabled=!0);_.tc(T||"").info.actionType=V;l.cttAuthInfo&&(_.zq(T).cttAuthInfo=l.cttAuthInfo);_.ow(T+"TIMING_ACTION",V);_.Zp(_.PcW)(l.startTime,T);x={actionType:H||_.Gmf(V)};l.logPreviousAction&&(x.previousAction=_.Gmf(_.h6("TIMING_ACTION")));(n=_.oa())&&n!=="UNDEFINED_CSN"&&(x.clientScreenNonce=
n);_.P$(x,T);_.pJw(!0,T)})()};
fE3=function(V){_.Zp(function(){hc(V);tST(V);CcJ(V)})()};
gbc=function(){_.Zp(function(){var V=[],l;for(l in _.SN("ytcsi.".slice(0,-1)))l.endsWith("data_")&&V.push(l.slice(0,-5));V=_.U(V);for(l=V.next();!l.done;l=V.next())fE3(l.value);hc()})()};
_.iD3=function(V){return _.Zp(function(){return _.mA3("_start",V)})()};
_.P$=function(V,l,I){_.Zp(_.Jc)(V,l,I===void 0?!1:I)};
_.Z8=function(V,l,I){return _.Zp(_.E4)(V,l,I)};
Vqt=function(V,l,I,H){var T=(0,_.O_)();return function(x,n){var w=void 0;l&&x?w=Object.assign({},l,x):l?w=l:x&&(w=x);x=(0,_.O_)()-T;_.Zp(MSt)(V,x,T,w,n||I,H)}};
_.mA3=function(V,l){return _.Zp(function(){var I=_.kmf(l);return V in I})()};
IaT=function(V){if(!_.z("universal_csi_network_ticks"))return"";V=_.Bx(V)||"";for(var l=Object.keys(la3),I=0;I<l.length;I++){var H=l[I];if(V.includes(H))return H}return""};
TN1=function(V){if(!_.z("universal_csi_network_ticks"))return function(){};
var l=la3[V];return l?(_.S1(l),function(){var I=_.z("universal_csi_network_ticks")?(I=Hit[V])?_.S1(I):!1:!1;return I}):function(){}};
_.S1=function(V,l,I){return _.Zp(function(){if(_.mA3(V,I))return!1;_.Z8(V,l,I);return!0})()};
_.Rz=function(V,l,I){_.Zp(function(){if(!_.iD3(I)||_.mA3(V,I))return!1;_.Z8(V,l,I);return!0})()};
_.Qg=function(V){return _.Zp(_.oz)(V,void 0)};
hc=function(V){_.iD3(V)&&_.Z8("aa",void 0,V)};
_.$hJ=function(V,l,I,H,T,x,n,w,N){var L=BNw();w=new _.EA({veType:l,youtubeData:x,jspbYoutubeData:w});x=c$({},L);T&&(x.cttAuthInfo=T);T={csn:L,pageVe:w.getAsJson()};_.z("expectation_logging")&&N&&N.screenCreatedLoggingExpectations&&(T.screenCreatedLoggingExpectations=N.screenCreatedLoggingExpectations);I&&I.visualElement?(T.implicitGesture={parentCsn:I.clientScreenNonce,gesturedVe:I.visualElement.getAsJson()},n&&(T.implicitGesture.gestureType=n)):I&&_.hF(new _.Yd("newScreen() parent element does not have a VE - rootVe",
l));H&&(T.cloneCsn=H);V?zr("screenCreated",T,V,x):_.tF("screenCreated",T,x);lR1(nsw,new xhw(L));W$.clear();Uhf.clear();nY1.clear();return L};
bJ=function(V,l,I,H,T){_.dhy(V,l,I,[H],T===void 0?!1:T)};
_.dhy=function(V,l,I,H,T){T=T===void 0?!1:T;for(var x=c$({cttAuthInfo:hO(l)||void 0},l),n=_.U(H),w=n.next();!w.done;w=n.next()){w=w.value;var N=w.getAsJson();(_.EL.isEmpty(N)||!N.trackingParams&&!N.veType)&&_.hF(Error("wf"));if(_.z("no_client_ve_attach_unless_shown")){var L=wdg(w,l);if(N.veType&&!Uhf.has(L)&&!nY1.has(L)&&!T){if(!_.z("il_attach_cache_limit")||W$.size<1E3){W$.set(L,[V,l,I,w]);return}_.z("il_attach_cache_limit")&&W$.size>1E3&&_.hF(new _.Yd("IL Attach cache exceeded limit"))}w=wdg(I,
l);W$.has(w)?NNt(I,l):nY1.set(w,!0)}}H=H.filter(function(e){e.csn!==l?(e.csn=l,e=!0):e=!1;return e});
I={csn:l,parentVe:I.getAsJson(),childVes:_.JH(H,function(e){return e.getAsJson()})};
l==="UNDEFINED_CSN"?qJ("visualElementAttached",x,I):V?zr("visualElementAttached",I,V,x):_.tF("visualElementAttached",I,x)};
YMN=function(V,l,I,H,T){jRy(V,l,I,T)};
jRy=function(V,l,I,H){Lk1(I,l);var T=c$({cttAuthInfo:hO(l)||void 0},l);I={csn:l,ve:I.getAsJson(),eventType:1};H&&(I.clientData=H);l==="UNDEFINED_CSN"?qJ("visualElementShown",T,I):V?zr("visualElementShown",I,V,T):_.tF("visualElementShown",I,T)};
eiK=function(V,l,I,H){Lk1(I,l);var T=c$({cttAuthInfo:hO(l)||void 0},l);I={csn:l,ve:I.getAsJson(),eventType:4};H&&(I.clientData=H);l==="UNDEFINED_CSN"?qJ("visualElementShown",T,I):V?zr("visualElementShown",I,V,T):_.tF("visualElementShown",I,T)};
kZf=function(V,l,I,H,T){var x=(H=H===void 0?!1:H)?16:8;H=c$({cttAuthInfo:hO(l)||void 0,endOfSequence:H},l);I={csn:l,ve:I.getAsJson(),eventType:x};T&&(I.clientData=T);l==="UNDEFINED_CSN"?qJ("visualElementHidden",H,I):V?zr("visualElementHidden",I,V,H):_.tF("visualElementHidden",I,H)};
XdT=function(V,l,I,H,T){Fkf(V,l,I,void 0,H,T)};
Fkf=function(V,l,I,H,T){Lk1(I,l);H=H||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var x=c$({cttAuthInfo:hO(l)||void 0},l);I={csn:l,ve:I.getAsJson(),gestureType:H};T&&(I.clientData=T);l==="UNDEFINED_CSN"?qJ("visualElementGestured",x,I):V?zr("visualElementGestured",I,V,x):_.tF("visualElementGestured",I,x)};
zi1=function(V,l,I,H){var T=c$({cttAuthInfo:hO(l)||void 0},l);I={csn:l,ve:I.getAsJson(),clientData:H};l==="UNDEFINED_CSN"?qJ("visualElementStateChanged",T,I):V?zr("visualElementStateChanged",I,V,T):_.tF("visualElementStateChanged",I,T)};
yw3=function(){var V=VJq(16);for(var l=[],I=0;I<V.length;I++)l.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(V[I]&63));return l.join("")};
qJ=function(V,l,I){tqK.push({payloadName:V,payload:I,jspbPayload:void 0,options:l});rw1||(rw1=deN())};
Uef=function(V){if(tqK){for(var l=_.U(tqK),I=l.next();!I.done;I=l.next())I=I.value,I.payload&&(I.payload.csn=V.csn,_.tF(I.payloadName,I.payload,I.options));tqK.length=0}rw1=0};
wdg=function(V,l){return""+V.getAsJson().veType+V.getAsJson().veCounter+l};
Lk1=function(V,l){if(_.z("no_client_ve_attach_unless_shown")){var I=wdg(V,l);Uhf.set(I,!0);NNt(V,l)}};
NNt=function(V,l){V=wdg(V,l);W$.has(V)&&(l=W$.get(V)||[],bJ(l[0],l[1],l[2],l[3],!0),W$.delete(V))};
c$=function(V,l){_.z("log_sequence_info_on_gel_web")&&(V.sequenceGroup=l);return V};
_.MJ=function(V,l,I){_.Zp(bJ)(void 0,V,l,I)};
_.s4=function(V,l){_.Zp(YMN)(void 0,V,l,void 0,void 0,void 0)};
_.pT=function(V,l,I){_.Zp(function(){_.cO(l,function(H){eiK(void 0,V,H,I)})})()};
_.Ac=function(V,l,I,H){_.Zp(function(){_.cO(l,function(T){kZf(void 0,V,T,I,H)})})()};
_.uJ=function(V,l,I){_.Zp(XdT)(void 0,V,l,I,void 0)};
_.v$=function(V,l,I,H){_.Zp(Fkf)(void 0,V,l,I,H,void 0)};
_.O4=function(V,l,I){_.Zp(zi1)(void 0,V,l,I,void 0)};
GZN=function(V,l){az.set(V,l)};
EYg=function(V,l){var I=Object.keys(V);V=new _.Yd("[Command Handler] "+l,{filteredCommandNames:I,originalCommand:V});_.Gr(V)};
Jwq=function(V,l){EYg(V,l+" was called but not set")};
oYt=function(V){return function(){return new V}};
fT=function(V){return function(){return _.F().resolve(V)}};
hiW=function(V,l){var I=_.y(V,_.RV);if(I&&(I=l[I.signal]))return I();V=_.U(Object.keys(V));for(I=V.next();!I.done;I=V.next())if(I=I.value,l[I]&&(I=l[I]))return I()};
g6=function(V,l,I,H){return{browseEndpoint:{browseId:V},commandMetadata:{webCommandMetadata:{url:l,rootVe:I,webPageType:H===void 0?"WEB_PAGE_TYPE_BROWSE":H}}}};
PWg=function(V,l,I){var H=l=l===void 0?0:l;I=I===void 0?0:I;var T=I-H;return _.mp(V,"PPSV",void 0,void 0,(T>600?0:T<60||I<=0||H/I>.9)?0:l)};
_.mp=function(V,l,I,H,T){var x="/watch?v="+V;V={videoId:V};l&&(V.playlistId=l,x+="&list="+l);H&&(x+="&pp="+H);T&&(V.startTimeSeconds=T,x+="&t="+T+"s");l={watchEndpoint:V,commandMetadata:{webCommandMetadata:{url:x,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};I&&(l.clickTrackingParams=I);H&&(_.y(l,_.vU).playerParams=H);return l};
DhN=function(V){return{browseEndpoint:{browseId:"VL"+V},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+V,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
ZiN=function(V){if(V){var l;if(V){var I=(l=_.y(V.commandMetadata,_.mK))==null?void 0:l.url;l=!(!I||I==="/service_ajax")}else l=!1;if(l)return V;var H;if(V=(H=_.y(V,_.NJ))==null?void 0:H.commands)for(H=_.U(V),V=H.next();!V.done;V=H.next())if(V=ZiN(V.value))return V}};
_.iJ=function(V){return{runs:[{text:V}]}};
SM3=function(V,l){return V&&l?{runs:[{text:V,navigationEndpoint:l}]}:void 0};
VH=function(V){return V?_.iJ(V):void 0};
_.lB=function(V){return V?{simpleText:V}:void 0};
_.IA=function(V){var l=V.type;V=V.payload;l={type:l};V!==void 0&&(l.payload=V);return l};
Ric=function(V,l,I){for(var H=Object.assign({},V),T=_.U(Object.keys(l)),x=T.next();!x.done;x=T.next()){x=x.value;var n=V[x],w=l[x];if(w===void 0)delete H[x];else if(n===void 0)H[x]=w;else if(Array.isArray(w)&&Array.isArray(n))H[x]=I?[].concat(_.oI(n),_.oI(w)):w;else if(!Array.isArray(w)&&_.m3(w)&&!Array.isArray(n)&&_.m3(n))H[x]=Ric(n,w,I);else if(typeof w===typeof n)H[x]=w;else return l=new _.Yd("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:x,originalValue:n,updateValue:w}),
_.Gr(l),V}return H};
WkK=function(V){if(!V.length)return"";try{if(QRt)return QRt.decode(V);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(V)}catch(n){}for(var l=0,I=[],H=V.length;l<H;){for(var T=0;T<1024&&l<H;){var x=V[l++];if(x<128)cwy[T++]=x;else{if(x<224)x=(x&31)<<6|V[l++]&63;else if(x<240)x=(x&15)<<12|(V[l++]&63)<<6|V[l++]&63;else{if(T+1===1024){--l;break}x=(x&7)<<18|(V[l++]&63)<<12|(V[l++]&63)<<6|V[l++]&63;x-=65536;cwy[T++]=55296|x>>10;x=56320|x&1023}cwy[T++]=x}}x=String.fromCharCode.apply(String,
cwy);T<1024&&(x=x.substring(0,T));I.push(x)}return I.join("")};
qMt=function(V,l){var I;if((I=bic)==null?0:I.encodeInto)return l=bic.encodeInto(V,l),l.read<V.length?V.length*4:l.written;for(var H=I=0;H<V.length;H++){var T=V.charCodeAt(H);T<128?l[I++]=T:(T<2048?l[I++]=T>>6|192:((T&64512)===55296&&H+1<V.length&&(V.charCodeAt(H+1)&64512)===56320?(T=65536+((T&1023)<<10)+(V.charCodeAt(++H)&1023),l[I++]=T>>18|240,l[I++]=T>>12&63|128):l[I++]=T>>12|224,l[I++]=T>>6&63|128),l[I++]=T&63|128)}return I};
Mqt=function(V,l){V=new Uint8Array(V);l&&V.set(l);return V};
_.TV=function(V){V=new sRc(new pdt([_.TE(decodeURIComponent(V))]));if(Awc(V,2)){var l=H4(V);var I=V.pos;I=V.arrayView.getDataView(I===void 0?0:I,l===void 0?-1:l);I=new Uint8Array(I.buffer,I.byteOffset,I.byteLength);V.pos+=l;l=I}else l=void 0;l=l?WkK(l):void 0;V=Awc(V,4)?H4(V):void 0;I=uac[V];if(typeof I==="undefined")throw V=new _.Yd("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:V}),_.Gr(V),V;return{entityTypeFieldNumber:V,entityType:I,entityId:l}};
_.Ul=function(V,l,I){I=I===void 0?0:I;var H=new vYf;if(bic)V=bic.encode(V);else{var T=new Uint8Array(Math.ceil(V.length*1.2)),x=qMt(V,T);T.length<x&&(T=new Uint8Array(x),x=qMt(V,T));T.length>x&&(T=T.subarray(0,x));V=T}V!==void 0&&(B4(H,18),T=V.length,B4(H,T),xf(H,T),H.buf.set(V,H.pos),H.pos+=T);V=OiN[l];if(typeof V==="undefined")throw I=new _.Yd("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:l}),_.Gr(I),I;V!==void 0&&(B4(H,32),B4(H,V));B4(H,40);B4(H,1);l=new Uint8Array(H.buf.buffer,
H.buf.byteOffset,H.pos);return encodeURIComponent(_.rg(l,I))};
CW1=function(V){V=V.key||V.id;if(!V)throw Error("zf");return V};
fa1=function(V,l){V=V===void 0?{}:V;return aaN(V,l)};
gYy=function(V,l,I,H){if(H===void 0)return H=Object.assign({},V[l]||{}),I=(delete H[I],H),H={},Object.assign({},V,(H[l]=I,H));var T={},x={};return Object.assign({},V,(x[l]=Object.assign({},V[l],(T[I]=H,T)),x))};
mht=function(V,l,I,H,T){var x=V[l];if(x==null||!x[I])return V;H=Ric(x[I],H,T==="REPEATED_FIELDS_MERGE_OPTION_APPEND");T={};x={};return Object.assign({},V,(x[l]=Object.assign({},V[l],(T[I]=H,T)),x))};
_.nW=function(V,l,I){return V[l]?V[l][I]||null:null};
VKW=function(){if(iiN)return iiN();var V={};iiN=vx("PersistentEntityStoreDb",{objectStores:(V.EntityStore={addedAtVersion:1},V.EntityAssociationStore={addedAtVersion:2},V),shared:!1,upgrade:function(l,I){I(1)&&ZB(DB(l,"EntityStore",{keyPath:"key"}),"entityType","entityType");I(2)&&(l=DB(l,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),ZB(l,"byParentEntityKey","parentEntityKey"),ZB(l,"byChildEntityKey","childEntityKey"))},
version:3});return iiN()};
l0J=function(V){return _.cx(VKW(),V)};
$f=function(V){return window.Int32Array?new Int32Array(V):Array(V)};
H7f=function(V){return _.cx(I0c(),V)};
Tt1=function(V){return new wJ("WRONG_DATA_TYPE",{encoderVersion:V})};
Btq=function(V){return V instanceof Error?new wJ("UNKNOWN_ENCODE_ERROR",{originalMessage:V.message}):new wJ("UNKNOWN_ENCODE_ERROR")};
x$y=function(V){return V instanceof Error?new wJ("UNKNOWN_DECODE_ERROR",{originalMessage:V.message}):new wJ("UNKNOWN_DECODE_ERROR")};
U$c=function(V,l){V=V instanceof wJ?V:l(V);_.Gr(V);throw V;};
nUt=function(V){V=(new TextEncoder).encode(V).subarray(0,16);var l=new Uint8Array(16);l.set(V);return l};
d$3=function(V){var l=$$T[V];if(l)return l;_.hF(new _.Yd("Entity model not found.",{entityType:V}))};
_.Nr=function(){wqN||(wqN=Ntt());return wqN};
Ntt=function(){var V,l,I;return _.d(function(H){if(H.nextAddress==1)return _.jd(H,2),_.K(H,_.u2(),4);if(H.nextAddress!=2){V=H.yieldResult;if(!V||!_.jO()||typeof _.nK.BroadcastChannel==="undefined")return H.return();l=new K1c;return H.return(new KW(V,l))}I=_.kE(H);I instanceof Error&&_.Gr(I);return H.return()})};
_.js=function(V,l){var I;return _.d(function(H){if(H.nextAddress==1){I=V.mutations;if(!I||I.length<=0)return H.return();l&&l.dispatch(_.IA({type:"ENTITY_LOADED",payload:I}));return _.K(H,jGy(I),2)}I.length=0;_.FU(H)})};
jGy=function(V){var l;return _.d(function(I){return I.nextAddress==1?_.K(I,_.Nr(),2):(l=I.yieldResult)?_.K(I,_.Yf(l,"readwrite",function(H){for(var T={},x=_.U(V),n=x.next(),w={};!n.done;w={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},n=x.next())w.mutation$jscomp$4=n.value,w.mutation$jscomp$4.entityKey&&Ydt(w.mutation$jscomp$4)&&(w.mutationEntityType$jscomp$3=(0,_.EL.getAnyKey)(w.mutation$jscomp$4.payload),n=void 0,w.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(n=function(N){return function(){return _.L1w(H,
N.mutation$jscomp$4.payload[N.mutationEntityType$jscomp$3],N.mutationEntityType$jscomp$3)}}(w)),w.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(n=function(N){return function(){return epy(H,N.mutation$jscomp$4.entityKey)}}(w)),w.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(n=function(N){return function(){return kjt(H,N.mutation$jscomp$4.entityKey,N.mutation$jscomp$4.payload[N.mutationEntityType$jscomp$3],N.mutationEntityType$jscomp$3)}}(w)),n&&(T[w.mutation$jscomp$4.entityKey]=
T[w.mutation$jscomp$4.entityKey]?T[w.mutation$jscomp$4.entityKey].then(n):n()));
return Px.all(Object.values(T))}),0):I.return()})};
Ydt=function(V){var l;V=(l=V.options)==null?void 0:l.persistenceOption;return V==="ENTITY_PERSISTENCE_OPTION_PERSIST"||V==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
zp1=function(V,l){var I,H;_.d(function(T){if(T.nextAddress==1)return _.K(T,_.Nr(),2);if(T.nextAddress!=3)return(I=T.yieldResult)?_.K(T,_.Yf(I,"readonly",function(x){var n={},w=Object.keys(l).map(function(N){var L=l[N]?[].concat(_.oI(l[N])):[];return F1t(x,N,L,n)});
return Px.all(w).then(function(){return n})}),3):T.return();
H=T.yieldResult;Object.keys(H).length>0&&V.dispatch(XqT(H));_.FU(T)})};
F1t=function(V,l,I,H){return LW(V,l,I).then(function(T){H[l]=yrJ(I,T)})};
yrJ=function(V,l){if(l.length!==V.length)throw Error("Cf");return l.reduce(function(I,H,T){I[V[T]]=H;return I},{})};
Gjg=function(V){var l=V.filter(function(T){var x;return(T==null?void 0:(x=T.transferEntity)==null?void 0:x.transferState)==="TRANSFER_STATE_COMPLETE"}).length,I=V.filter(function(T){var x;
return(T==null?void 0:(x=T.transferEntity)==null?void 0:x.transferState)==="TRANSFER_STATE_FAILED"}).length,H=V.filter(function(T){var x;
return(T==null?void 0:(x=T.transferEntity)==null?void 0:x.transferState)&&tKt.includes(T.transferEntity.transferState)});
if(!(l||H!=null&&H.length))return 0;l=_.rry(H)+l;V=V.length-I;return V===0?0:Math.round(l*100/V)/100};
_.rry=function(V){var l=[];l=l.concat.apply(l,_.oI(V.filter(function(x){return x.streamEntity}).map(function(x){var n=Object.assign({},x.streamEntity),w,N=(w=x.transferEntity)==null?void 0:w.transferState;
n.streamsProgress=n.streamsProgress||[];n.streamsProgress=n.streamsProgress.map(function(L){var e=Object.assign({},L);e.numBytesDownloaded=N==="TRANSFER_STATE_COMPLETE"?L.numTotalBytes:L.numBytesDownloaded;return e});
return n}).map(function(x){return x.streamsProgress})));
var I=V=0;l=_.U(l);for(var H=l.next();!H.done;H=l.next()){var T=H.value;H=Number(T.numBytesDownloaded);T=Number(T.numTotalBytes);I+=isNaN(H)?0:H;V+=isNaN(T)?0:T}return V===0?0:Math.round(I*100/V)/100};
EU3=function(V){if(!V||!V.expirationTimestamp||!V.action)return!1;var l=(0,_.O_)()/1E3;return Number(V.expirationTimestamp)>=l};
es=function(V){return V&&V.expirationTimestamp&&V.action?EU3(V)&&V.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.kf=function(V){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(V||"TRANSFER_STATE_UNKNOWN")};
Jrt=function(V){var l=new vYf;if(V!==void 0){var I=Math.ceil(Math.log2(V.length*4+2)/7);I=I===void 0?2:I;B4(l,10);l.submessagePosStack.push(l.pos);l.submessagePosStack.push(I);l.pos+=I;xf(l,V.length*1.2);I=qMt(V,l.buf.subarray(l.pos));l.pos+I>l.buf.length&&(xf(l,I),I=qMt(V,l.buf.subarray(l.pos)));l.pos+=I;V=l.submessagePosStack.pop();I=l.submessagePosStack.pop();for(var H=l.pos-I-V;V--;){var T=V?128:0;l.view.setUint8(I++,H&127|T);H>>=7}}l=new Uint8Array(l.buf.buffer,l.buf.byteOffset,l.pos);return(new TextDecoder("utf-8")).decode(l)};
_.F3=function(V){var l=0;V=_.U(V);for(var I=V.next(),H={};!I.done;H={transferState$jscomp$3:void 0},I=V.next()){var T=I.value,x=void 0;I=(x=T.streamEntity)!=null?x:{};x=void 0;H.transferState$jscomp$3=(x=T.transferEntity)==null?void 0:x.transferState;x=T=void 0;((T=I)==null?0:(x=T.streamsProgress)==null?0:x.length)&&I.streamsProgress.forEach(function(n){return function(w){w=Number(n.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?w.numTotalBytes:w.numBytesDownloaded);isFinite(w)&&(l+=w)}}(H))}return l};
oUf=function(V){return V.some(function(l){var I;if(!(l==null?0:(I=l.transferEntity)==null?0:I.transferState)){var H;return!(l==null?0:(H=l.policyEntity)==null?0:H.action)||l.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return tKt.includes(l.transferEntity.transferState)})};
hp3=function(V,l){if(!l)return!1;if(_.z("of_pb_en_po_ks"))return!0;var I;V=(I=_.nW(V,"offlineVideoPolicy",_.Ul(l,"offlineVideoPolicy")))!=null?I:void 0;return!!V&&es(V)};
_.D$W=function(V){var l=["TRANSFER_STATE_COMPLETE"];l=l===void 0?PFJ:l;return V.filter(function(I){var H,T;return l.includes((T=(H=I.transferEntity)==null?void 0:H.transferState)!=null?T:"TRANSFER_STATE_UNKNOWN")})};
Z7c=function(V,l){if(l){var I,H=(I=_.nW(V,"playbackData",_.Ul(l,"playbackData")))!=null?I:null,T;I=(T=_.nW(V,"transfer",_.Ul(l,"transfer")))!=null?T:null;var x;T=(x=_.nW(V,"offlineVideoStreams",_.Ul(l,"offlineVideoStreams")))!=null?x:null;var n;V=(n=_.nW(V,"offlineVideoPolicy",_.Ul(l,"offlineVideoPolicy")))!=null?n:null;if(H||I||T||V)return{playbackDataEntity:H,transferEntity:I,streamEntity:T,policyEntity:V}}};
_.X3=function(V){var l=V.playbackData;if(!l)return[];var I=[];l=_.U(Object.keys(l));for(var H=l.next();!H.done;H=l.next()){var T=H.value;if(!SdW(V,_.TV(T).entityId)&&(H=Z7c(V,_.TV(T).entityId))){var x=void 0,n=void 0;T=(n=Number((x=_.nW(V,"playbackData",T))==null?void 0:x.streamDownloadTimestampSeconds))!=null?n:(0,_.O_)();I.push({entity:H,streamDownloadTimestamp:T})}}return I.sort(function(w,N){var L=w.streamDownloadTimestamp,e=N.streamDownloadTimestamp;return e===L?w.entity.streamEntity&&!N.entity.streamEntity?
1:-1:e-L}).map(function(w){return w.entity})};
Rpc=function(V){return _.D$W(_.X3(V))};
_.QGy=function(V){return _.X3(V).filter(function(l){var I;if(((I=l.policyEntity)==null?0:I.action)&&l.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var H;if((H=l.transferEntity)==null?0:H.transferState){var T;return tKt.includes((T=l.transferEntity)==null?void 0:T.transferState)}return!0})};
SdW=function(V,l){var I;return((I=_.nW(V,"downloadStatusEntity",_.Ul(l,"downloadStatusEntity")))==null?void 0:I.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
crJ=function(V){var l;if(V==null?0:(l=V.playbackDataEntity)==null?0:l.key)return _.TV(V.playbackDataEntity.key).entityId;var I;if(V==null?0:(I=V.transferEntity)==null?0:I.key)return _.TV(V.transferEntity.key).entityId;var H;if(V==null?0:(H=V.streamEntity)==null?0:H.key)return _.TV(V.streamEntity.key).entityId;var T;if(V==null?0:(T=V.policyEntity)==null?0:T.key)return _.TV(V.policyEntity.key).entityId};
b7q=function(V){var l=new Set,I;V=(I=V.mainDownloadsListEntity)==null?void 0:I[W11];var H;if(!(V==null?0:(H=V.downloads)==null?0:H.length))return l;var T;V==null||(T=V.downloads)==null||T.forEach(function(x){(x==null?0:x.videoItem)&&l.add(x.videoItem)});
return l};
zV=function(V,l){if(l){var I=_.nW(V,"mainVideoEntity",_.Ul(l,"mainVideoEntity")),H=_.nW(V,"downloadStatusEntity",_.Ul(l,"downloadStatusEntity")),T=_.nW(V,"ytMainChannelEntity",_.Ul(l,"ytMainChannelEntity")),x={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};V=Z7c(V,l);H=(H==null?void 0:H.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.z("woffle_render_failed_download_state_ks")&&(H==null?void 0:H.downloadState)==="DOWNLOAD_STATE_FAILED";!V&&H&&(V=x);if(V&&I&&
T)return Object.assign({},{videoEntity:I,channelEntity:T},V)}};
MKf=function(V,l){return qd1(V,l)==="TRANSFER_STATE_COMPLETE"&&hp3(V,l)};
sG1=function(V,l){if(!l)return!1;var I;V=(I=_.nW(V,"playbackData",_.Ul(l,"playbackData")))!=null?I:void 0;return!!V&&!!V.playerResponseJson};
qd1=function(V,l){if(!l)return"TRANSFER_STATE_UNKNOWN";var I=_.nW(V,"transfer",_.Ul(l,"transfer"));if(I){var H;return(H=I.transferState)!=null?H:"TRANSFER_STATE_UNKNOWN"}I=_.nW(V,"offlineOrchestrationActionWrapperEntity",_.Ul(l,"offlineOrchestrationActionWrapperEntity"));V=_.nW(V,"mainVideoEntity",_.Ul(l,"mainVideoEntity"));return I||V?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
pqK=function(V,l){if(!l)return"TRANSFER_STATE_UNKNOWN";if(V=_.nW(V,"transfer",_.Ul(l,"transfer"))){var I;return(I=V.transferState)!=null?I:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Arw=function(V,l){return l&&(V=_.nW(V,"videoPlaybackPositionEntity",_.Ul(l,"videoPlaybackPositionEntity")),V==null?0:V.lastPlaybackPositionSeconds)?Number(V.lastPlaybackPositionSeconds):0};
vUg=function(V,l){return ue1(V).some(function(I){var H;return(I==null?void 0:(H=I.mainPlaylistEntity)==null?void 0:H.playlistId)===l})};
CFy=function(V,l,I){var H=O7g(V,l);if(!H.length)return[];l=[];H=_.U(H);for(var T=H.next();!T.done;T=H.next()){T=T.value;var x=zV(V,T);I&&qd1(V,T)!=="TRANSFER_STATE_COMPLETE"||x&&l.push(x)}return l};
O7g=function(V,l){if(!l)return[];var I=_.Ul(l,"mainPlaylistEntity"),H;l=(H=V.mainPlaylistEntity)==null?void 0:H[I];H=[];if(l==null||!l.videos)return H;l=_.U(l.videos);for(I=l.next();!I.done;I=l.next()){I=I.value;var T=void 0,x=void 0,n=void 0,w=(T=V)==null?void 0:(x=T.mainPlaylistVideoEntity)==null?void 0:(n=x[I])==null?void 0:n.video;w&&(I=_.TV(w).entityId)&&H.push(I)}return H};
a0t=function(V,l){if(l){var I=_.nW(V,"mainPlaylistEntity",_.Ul(l,"mainPlaylistEntity")),H=_.nW(V,"mainPlaylistDownloadStateEntity",_.Ul(l,"mainPlaylistDownloadStateEntity"));V=_.nW(V,"ytMainChannelEntity",_.Ul(l,"ytMainChannelEntity"));if(H&&I)return Object.assign({},{mainPlaylistEntity:I,mainPlaylistDownloadStateEntity:H},!!V&&{channelEntity:V})}};
ue1=function(V){return f0t(V).sort(function(l,I){return I.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return l.downloadedPlaylistEntities})};
f0t=function(V){var l=V.mainPlaylistDownloadStateEntity,I=[];if(!l)return I;for(var H=_.U(Object.keys(l)),T=H.next();!T.done;T=H.next()){var x=T.value;T=a0t(V,_.TV(x).entityId);var n=void 0;x=Number((n=l[x])==null?void 0:n.addedTimestampMillis);n=isNaN(x)?(0,_.O_)():x;T!==void 0&&I.push({downloadedPlaylistEntities:T,addedTimestampMillis:n})}return I};
gUW=function(V){var l,I=(l=V.mainPlaylistVideoEntity)!=null?l:{};return new Set(ue1(V).reduce(function(H,T){H=H===void 0?[]:H;var x,n;T==null||(x=T.mainPlaylistEntity)==null||(n=x.videos)==null||n.forEach(function(w){var N;(w=(N=I[w])==null?void 0:N.video)&&H.push(w)});
return H},[]))};
m$3=function(V){return"downloadedMusicPlaylistEntities"in V};
i71=function(V){return"mainPlaylistEntity"in V&&"mainPlaylistDownloadStateEntity"in V};
Vlc=function(V){return"videoEntity"in V&&"channelEntity"in V};
l$c=function(V){var l=V.musicPlaylistDownloadMetadataEntity,I=[];if(!l)return I;for(var H=_.U(Object.keys(l)),T=H.next();!T.done;T=H.next()){T=T.value;a:{var x=V,n=_.TV(T).entityId;if(n){var w=_.nW(x,"musicPlaylist",_.Ul(n,"musicPlaylist"));x=_.nW(x,"musicPlaylistDownloadMetadataEntity",_.Ul(n,"musicPlaylistDownloadMetadataEntity"));if(w&&x){w={musicPlaylistEntity:w,musicPlaylistDownloadStateEntity:x};break a}}w=void 0}x=void 0;T=Number((x=l[T])==null?void 0:x.addedTimestampMillis);T=isNaN(T)?(0,_.O_)():
T;w!==void 0&&I.push({downloadedMusicPlaylistEntities:w,addedTimestampMillis:T})}return I};
I$t=function(V){var l=new Set;V=_.U(V);for(var I=V.next();!I.done;I=V.next())if(I=I.value,"musicPlaylistEntity"in I&&"musicPlaylistDownloadStateEntity"in I){I=_.U(I.musicPlaylistEntity.tracks);for(var H=I.next();!H.done;H=I.next())l.add(H.value)}return l};
HnW=function(V,l){if(l){var I=_.nW(V,"musicTrack",_.Ul(l,"musicTrack")),H=_.nW(V,"musicArtist",_.Ul(l,"musicArtist"))||{};if((V=Z7c(V,l))&&I&&H)return Object.assign({},{musicTrackEntity:I,musicArtistEntity:H},V)}};
TFW=function(V){var l=V.musicTrackDownloadMetadataEntity,I=[];if(!l)return[];l=_.U(Object.keys(l));for(var H=l.next();!H.done;H=l.next()){var T=H.value;H=HnW(V,_.TV(T).entityId);var x=void 0;T=Number((x=_.nW(V,"musicTrackDownloadMetadataEntity",T))==null?void 0:x.addedTimestampMillis);x=isNaN(T)?(0,_.O_)():T;H!==void 0&&I.push({downloadedMusicEntities:H,addedTimestampMillis:x})}return I};
UBw=function(V,l){if(!l)return[];if(Object.values(BFK).includes(l))return xBJ(V,l);l=_.Ul(l,"musicPlaylist");var I;V=(I=V.musicPlaylist)==null?void 0:I[l];I=[];if(V==null||!V.tracks)return I;V=_.U(V.tracks);for(l=V.next();!l.done;l=V.next())(l=_.TV(l.value).entityId)&&I.push(l);return I};
xBJ=function(V,l){var I=new Set,H=l$c(V).map(function(x){return x.downloadedMusicPlaylistEntities});
H=I$t(H);H=_.U(H);for(var T=H.next();!T.done;T=H.next())(T=_.TV(T.value).entityId)&&I.add(T);return ngJ(V).downloadedMusicEntities.filter(function(x){var n;if((n=x.musicTrackEntity)!=null&&n.videoId){x=x.musicTrackEntity;if(n=l==="PPOM"?!0:!I.has(x.videoId))b:switch(x=x.musicVideoType,l){case "PPSE":n=x==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:n=x!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}x=n}else x=!1;return x}).map(function(x){var n;
return(n=x.musicTrackEntity)==null?void 0:n.videoId})};
ngJ=function(V){var l=TFW(V).sort(function(I,H){return H.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:m$3(I)?I.downloadedMusicPlaylistEntities:{}});
V=l$c(V).sort(function(I,H){return H.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:m$3(I)?I.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:l,downloadedMusicPlaylistEntities:V}};
dBJ=function(V,l){l=_.h6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?UBw(V,l):O7g(V,l);if(!l.length)return"TRANSFER_STATE_UNKNOWN";l=l.map(function(I){return pqK(V,I)});
return $B1(l)};
$B1=function(V){var l=new Set(V);if(l.has("TRANSFER_STATE_FAILED")&&l.size===1)return"TRANSFER_STATE_FAILED";l.delete("TRANSFER_STATE_FAILED");if(l.has("TRANSFER_STATE_UNKNOWN")&&l.size===1)return"TRANSFER_STATE_PRE_TRANSFER";l.delete("TRANSFER_STATE_UNKNOWN");if(l.has("TRANSFER_STATE_PRE_TRANSFER")&&l.size===1||l.size===0)return"TRANSFER_STATE_PRE_TRANSFER";V=l.has("TRANSFER_STATE_TRANSFERRING");l=l.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return V||l?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
yH=function(V){var l=V.mainVideoDownloadStateEntity,I=[];if(!l)return[];l=_.U(Object.keys(l));for(var H=l.next();!H.done;H=l.next()){var T=H.value;if(!SdW(V,_.TV(T).entityId)){H=zV(V,_.TV(T).entityId);var x=void 0,n=void 0;T=(n=Number((x=_.nW(V,"mainVideoDownloadStateEntity",T))==null?void 0:x.addedTimestampMillis))!=null?n:(0,_.O_)();H!==void 0&&I.push({downloadedVideoEntities:H,addedTimestampMillis:T})}}return I};
wVy=function(V){return yH(V).sort(function(l,I){return I.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return l.downloadedVideoEntities})};
_.K8t=function(V){var l=gUW(V),I=_.t5(V),H=b7q(V),T=yH(V).filter(function(n){var w,N;if((n==null?void 0:(w=n.downloadedVideoEntities)==null?void 0:(N=w.transferEntity)==null?void 0:N.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var L,e;n=n==null?void 0:(L=n.downloadedVideoEntities)==null?void 0:(e=L.videoEntity)==null?void 0:e.key;return _.z("kevlar_use_library_entity")?n&&(H.has(n)||I[n]):n&&!l.has(n)}),x=f0t(V).filter(function(n){return dBJ(V,n.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.oI(T),_.oI(x)).sort(function(n,w){return w.addedTimestampMillis-n.addedTimestampMillis}).map(function(n){return NFc(n)})};
j7f=function(V,l){if(l&&hp3(V,l)){var I,H,T=(H=(I=_.nW(V,"playbackData",_.Ul(l,"playbackData")))!=null?I:void 0)==null?void 0:H.playerResponseJson;if(T){try{var x=JSON.parse(T);var n=_.nW(V,"transfer",_.Ul(l,"transfer")),w=Arw(V,l);w&&(x=Object.assign({},x,{playerConfig:Object.assign({},x.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+w*1E3}}})}));x.cotn=n==null?void 0:n.cotn}catch(N){}return x}}};
_.ed3=function(V){var l,I,H;V=(H=(I=((l=V.downloadsPageViewConfigurationEntity)!=null?l:{})[Ygf])==null?void 0:I.smartDownloadsOptInBannerVisibility)!=null?H:{};var T;return(T=_.y(V,L8T))!=null?T:{}};
_.t5=function(V){var l,I,H;V=(H=(I=((l=V.mainDownloadsListEntity)!=null?l:{})[_.ksq])==null?void 0:I.downloads)!=null?H:[];l={};I=_.U(V);for(H=I.next();!H.done;H=I.next())V=void 0,l[(V=H.value.videoItem)!=null?V:""]=!0;return l};
F8c=function(V){var l=_.t5(V);if(Object.keys(l).length===0)return!1;var I=V.mainVideoEntity;if(!I)return!0;I=_.U(Object.keys(I));for(var H=I.next();!H.done;H=I.next()){H=H.value;var T=_.TV(H).entityId;if(l[H]&&!SdW(V,T))return!1}return!0};
_.rJ=function(V){var l=_.t5(V);return yH(V).sort(function(I,H){return I.addedTimestampMillis-H.addedTimestampMillis}).map(function(I){return I.downloadedVideoEntities}).filter(function(I){var H;
return(I=I==null?void 0:(H=I.videoEntity)==null?void 0:H.key)&&!!l[I]})};
NFc=function(V){return"downloadedVideoEntities"in V?V.downloadedVideoEntities:"downloadedPlaylistEntities"in V?V.downloadedPlaylistEntities:{}};
XVg=function(V){var l=_.t5(V),I=gUW(V),H=yH(V).filter(function(T){var x,n;return(T=T==null?void 0:(x=T.downloadedVideoEntities)==null?void 0:(n=x.videoEntity)==null?void 0:n.key)&&!l[T]&&!I.has(T)});
V=f0t(V);return[].concat(_.oI(H),_.oI(V)).sort(function(T,x){return x.addedTimestampMillis-T.addedTimestampMillis}).map(function(T){return NFc(T)})};
_.GV=function(V){if(!_.z("kevlar_use_library_entity"))return XVg(V);var l=yH(V).filter(function(H){var T,x;if(T=H=H==null?void 0:(T=H.downloadedVideoEntities)==null?void 0:(x=T.videoEntity)==null?void 0:x.key){var n,w,N;T=((w=(n=V.mainDownloadsListEntity)==null?void 0:n[W11])==null?0:(N=w.downloads)==null?0:N.length)?b7q(V).has(H):!1}return T}),I=f0t(V);
return[].concat(_.oI(l),_.oI(I)).sort(function(H,T){return T.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return NFc(H)})};
zdc=function(V){var l=_.t5(V),I=gUW(V);return wVy(V).filter(function(H){var T;return(H=H==null?void 0:(T=H.videoEntity)==null?void 0:T.key)&&!l[H]&&!I.has(H)})};
ytJ=function(V){if(!_.z("kevlar_use_library_entity"))return zdc(V);var l=_.t5(V),I=b7q(V);return wVy(V).filter(function(H){var T;return(H=H==null?void 0:(T=H.videoEntity)==null?void 0:T.key)&&!l[H]&&I.has(H)})};
tlg=function(V,l){l=_.Ul(l,"settingEntity");var I,H,T;return!!((T=(H=((I=V.settingEntity)!=null?I:{})[l])==null?void 0:H.settingOptionValue)!=null?T:{}).boolValue};
_.El=function(V){var l=_.rJ(V);if(oUf(l))return 0;var I=[];l=_.U(l);for(var H=l.next();!H.done;H=l.next()){H=H.value;var T=void 0,x=void 0;if((T=H)==null?0:(x=T.videoEntity)==null?0:x.key)T=_.TV(H.videoEntity.key).entityId,H=V,T=_.Ul(T,"mainVideoDownloadStateEntity"),H=_.nW(H,"mainVideoDownloadStateEntity",T),(H=Number(H==null?void 0:H.addedTimestampMillis))&&I.push(H)}return Math.max.apply(Math,_.oI(I))};
_.J5=function(V){return V.ui.richGridMiniMode};
_.oA=function(V){return V.ui.richGridItemsPerRow};
_.rtc=function(V){return V.ui.richGridSlimItemsPerRow};
_.Gsc=function(V){return V.ui.guideIsExpanded};
_.h5=function(V){return V.ui.miniplayerIsActive};
_.Egw=function(V){return V.ui.singleOptionSurveyIsActive};
_.P4=function(V){return V.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.Jtf=function(V){return V.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.ogT=function(V){return V.ui.inlinePreviewIsActive};
_.hdg=function(V){return V.ui.inlinePreviewIsEnabled};
_.P1N=function(V){return V.ui.miniplayerPlaybackState};
DBq=function(V){return V.ui.isOnline};
_.Znq=function(V){return V.ui.frostedGlassMode};
_.Dw=function(V,l){return qd1(V.entities,l)};
_.Zw=function(V,l){return dBJ(V.entities,l)};
SgT=function(V,l){var I;if(l){var H;V=(H=_.nW(V.entities,"offlineVideoPolicy",_.Ul(l,"offlineVideoPolicy")))==null?void 0:H.action}else V=void 0;return(I=V)!=null?I:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Rdw=function(V,l){var I;l?(V=_.nW(V.entities,"offlineVideoPolicy",_.Ul(l,"offlineVideoPolicy")),V=Number(V==null?void 0:V.expirationTimestamp)):V=void 0;return(I=V)!=null?I:0};
_.Q7T=function(V){return _.X3(V.entities).length};
cty=function(V,l){return zV(V.entities,l)};
W8W=function(V,l){return a0t(V.entities,l)};
Ss=function(V,l){return(V=zV(V.entities,l))?_.rry([V]):0};
_.bnT=function(V,l){var I=_.h6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(I){var H=V.entities;var T=UBw(H,l);if(T.length){var x=[];T=_.U(T);for(var n=T.next();!n.done;n=T.next())(n=HnW(H,n.value))&&x.push(n);H=x}else H=[]}else H=CFy(V.entities,l);var w;if(I){var N=V.entities;l?(l=_.Ul(l,"musicPlaylist"),N=(w=N.musicPlaylist)==null?void 0:w[l],w=N!=null&&N.tracks?N.tracks.length:0):w=0}else w=V.entities,l?(l=_.Ul(l,"mainPlaylistEntity"),w=(N=w.mainPlaylistEntity)==null?void 0:N[l],w=w!=null&&w.videos?
w.videos.length:0):w=0;return H.length!==w?0:H?Gjg(H):0};
_.qgt=function(V){return V.download.isLeaderTab};
_.MlJ=function(V,l,I){if(!l&&I){var H=V.entities;if(I){var T=Jrt(I),x,n;l=(n=(x=_.nW(H,"offlineabilityEntity",_.Ul(T,"offlineabilityEntity")))==null?void 0:x.addToOfflineButtonState)!=null?n:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else l="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else x=V.entities,l?(n=Jrt(l),l=(T=(H=_.nW(x,"offlineabilityEntity",_.Ul(n,"offlineabilityEntity")))==null?void 0:H.addToOfflineButtonState)!=null?T:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):l="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return l};
s7W=function(V,l){V=V.entities;if(l){l=Jrt(l);var I,H;l=(H=(I=_.nW(V,"offlineabilityEntity",_.Ul(l,"offlineabilityEntity")))==null?void 0:I.addToOfflineButtonState)!=null?H:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else l="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return l};
_.pVt=function(V){var l=V.entities;V=DBq(V);var I=tlg(l,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.z("kevlar_modern_downloads_page")&&I)var H=!1;else{var T,x;l=(x=(T=((H=l.downloadsPageViewConfigurationEntity)!=null?H:{})[Ygf])==null?void 0:T.smartDownloadsOptInBannerVisibility)!=null?x:{};H=V?!!l.visibleWithConnection:!!l.visibleWithoutConnection}return H};
_.Att=function(V){return tlg(V.entities,"SMART_DOWNLOADS_ENABLED")};
_.uc1=function(V){return F8c(V.entities)};
vgt=function(V){return _.rJ(V.entities).every(function(l){var I;return(l==null?void 0:(I=l.transferEntity)==null?void 0:I.transferState)&&!tKt.includes(l.transferEntity.transferState)})};
_.OnK=function(V,l){return SdW(V.entities,l)};
C1y=function(V,l){if(l){var I,H;V=(H=(I=_.nW(V.entities,"downloadStatusEntity",_.Ul(l,"downloadStatusEntity")))==null?void 0:I.downloadState)!=null?H:"DOWNLOAD_STATE_UNKNOWN"}else V="DOWNLOAD_STATE_UNKNOWN";return V};
RA=function(V,l){return Arw(V.entities,l)};
mBw=function(V){V=_.a$q(V);var l=V.hours===void 0?0:V.hours,I=V.minutes===void 0?0:V.minutes,H=V.seconds===void 0?0:V.seconds,T=l>0;V=[];T&&(l=_.f$W(l),V.push(l));l=T;l=l===void 0?!1:l;I=(["af","be","lt"].includes(_.QH)||l)&&I<10?ggg().format(I):(new Intl.NumberFormat("en-u-nu-latn")).format(I);V.push(I);I=ggg().format(H);V.push(I);I=":";"da fi id si sr sr-Latn".split(" ").includes(_.QH)&&(I=".");return V.join(I)};
_.a$q=function(V){var l=V.hours||0,I=V.minutes||0,H=V.seconds||0;l=H+I*60+l*3600+(V.days||0)*86400+(V.weeks||0)*604800+(V.months||0)*2629800+(V.years||0)*31557600;if(l<=0)return{hours:0,minutes:0,seconds:0};V=l;l=Math.floor(V/3600);V%=3600;I=Math.floor(V/60);H=Math.floor(V%60);return{hours:l,minutes:I,seconds:H}};
_.f$W=function(V){V=(new Intl.NumberFormat("en-u-nu-latn")).format(V);var l=["fr"],I="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(_.QH)?V.replace(",","\u00a0"):l.includes(_.QH)?V.replace(",","\u202f"):I.includes(_.QH)?V.replace(",","."):V};
ggg=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
VWN=function(V){try{return(new _.c4(5)).format(V)}catch(l){}};
W4=function(V){return{thumbnailOverlayDownloadingRenderer:{state:V}}};
lXW=function(V){if(V=VWN(V))return{thumbnailOverlaySidePanelRenderer:{text:_.iJ(V),icon:{iconType:"PLAYLISTS"}}}};
IXg=function(){var V=_.LT("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.iJ(V),icon:{iconType:"PLAY_ALL"}}}};
Hb3=function(V){V=_.bB(V,2);return _.QH!=="ru"&&_.QH!=="es_419"&&_.QH!=="es-419"&&_.QH!=="es"&&_.QH!=="es_US"&&_.QH!=="es-US"&&_.QH!=="fr"&&_.QH!=="pl"&&_.QH!=="it"&&_.QH!=="nl"&&_.QH!=="uk"&&_.QH!=="fr_CA"&&_.QH!=="fr-CA"||V===""?V:V[0].toLocaleUpperCase()+V.substring(1)};
BdK=function(V){return function(l){var I=V(),H=_.bB(l,I.dateFormat);l=_.bB(l,I.timeFormat);var T=Tdf.DATETIMEFORMATS[I.joinerStyle];T=T.replace(/'(?!')/g,"");T=T.replace("{0}",l);T=T.replace("{1}",H);return I.capitalize(T)}};
x9f=function(V){return V?typeof V.seconds==="string"&&(V.nanos===void 0||typeof V.nanos==="number"):!1};
U93=function(V){return new Date(Number(V.seconds)*1E3+(V.nanos||0)*1E-6)};
_.bB=function(V,l){if(typeof V.getTime==="function")V={date:V};else if(x9f(V))V={date:U93(V)};else if(typeof x9f(V.timestamp)&&typeof V.i18nInternalSecondsEastOfUtc==="number")V={date:U93(V.timestamp),timeZone:qr(-V.i18nInternalSecondsEastOfUtc/60)};else throw Error("Df`"+JSON.stringify(V));var I=V;V=I.date;I=I.timeZone;l=n6J(l).format(V,I);_.QH==="zh-TW"&&(V=I?Number(n6J("H").format(V,I)):V.getHours(),l=V<5?l.replace("\u4e0a\u5348","\u51cc\u6668"):V<8?l.replace("\u4e0a\u5348","\u65e9\u4e0a"):V<12?
l.replace("\u4e0a\u5348","\u4e0a\u5348"):V<13?l.replace("\u4e0b\u5348","\u4e2d\u5348"):V<19?l.replace("\u4e0b\u5348","\u4e0b\u5348"):l.replace("\u4e0b\u5348","\u665a\u4e0a"));return l};
n6J=function(V){if($9f.has(V))return $9f.get(V);var l=d9K(V);l=wfT(l);Nd3!==!0&&(Nd3=!0);KhT=!0;KhT=!1;l=new Mr(l,Tdf);$9f.set(V,l);return l};
d9K=function(V){return(new Mr(V,Tdf)).patternParts_.map(function(l){return l.type===0?"'"+l.text+"'":l.text}).join("")};
wfT=function(V){return _.QH==="en"||_.QH==="es_US"||_.QH==="es-US"?V:V.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(l,I,H){return"H".repeat(I.length)+H})};
zlW=function(V,l){jUc||(_.sl=_.Ypt,jUc=new LhK);var I=jUc;a:if(V=elf(V),l=elf(l||new Date),V>l)I=V.getTime()-l.getTime()>6048E5?_.bB(V,1):k4T(V);else{for(var H=0;Fhq(V,12*(H+1))<l;)++H;if(H>0)I=I.format(-H,0);else{for(H=0;Fhq(V,H+1)<l;)++H;if(H>0)I=I.format(-H,2);else{V=l.getTime()-V.getTime();l=_.U(Xf3);for(H=l.next();!H.done;H=l.next()){H=H.value;var T=H.unit,x=Math.floor(V/H.unitDuration);if(x>=(H.threshold===void 0?1:H.threshold)){I=I.format(-x,T);break a}}I=I.format(-0,7)}}}return I};
elf=function(V){if(typeof V.getTime==="function")return V;if(x9f(V))return U93(V);throw Error("Ef`"+JSON.stringify(V));};
Fhq=function(V,l){for(var I=0,H;;++I)if(H=new Date(V.getFullYear(),V.getMonth()+l,V.getDate()-I,V.getHours(),V.getMinutes(),V.getSeconds()),H.getMonth()===(V.getMonth()+l)%12)return H};
_.pW=function(V){return{runs:[{text:V}]}};
_.A5=function(V){if(V&&V.simpleText)return V.simpleText;var l="";if(V&&V.runs)for(var I=0;I<V.runs.length;I++)V.runs[I].text&&(l+=V.runs[I].text);return l};
tWt=function(V,l,I,H){return V.videoEntity&&!V.policyEntity&&I!=="DOWNLOAD_STATE_FAILED"?[W4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:es(V.policyEntity)&&l!=="TRANSFER_STATE_FAILED"&&l!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?l==="TRANSFER_STATE_PAUSED_BY_USER"?[W4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.kf(l)?[W4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:V.videoEntity.lengthSeconds?yM3(V.videoEntity.lengthSeconds,H):[]:
[W4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
yM3=function(V,l){var I=[{thumbnailOverlayTimeStatusRenderer:{text:_.iJ(mBw({seconds:V})),style:"DEFAULT"}}];l&&(V=l<=0||V<=0?0:l>=V?100:Math.ceil(l*100/V),V>0&&I.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:V}}));return I};
rMg=function(V,l,I,H,T){if(l==="TRANSFER_STATE_UNKNOWN"||!V)return{};if(_.kf(l)||l==="TRANSFER_STATE_PRE_TRANSFER")var x=[W4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var n,w;if(l==="TRANSFER_STATE_COMPLETE"&&((n=V.mainPlaylistEntity)==null?0:(w=n.videos)==null?0:w.length)){if(_.z("web_modern_collections_v2")){var N;var L=(x=V.mainPlaylistEntity)==null?void 0:(N=x.videos)==null?void 0:N.length;x=(x=VWN(L))?{thumbnailOverlayBottomPanelRenderer:{text:_.iJ(x),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var e;x=lXW((L=V.mainPlaylistEntity)==null?void 0:(e=L.videos)==null?void 0:e.length)}var k;x=[IXg(),Object.assign({},(k=x)!=null?k:{})]}else x=[]}k=x;a:if(l==="TRANSFER_STATE_PRE_TRANSFER")I=VH(_.LT("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(l==="TRANSFER_STATE_TRANSFER_IN_QUEUE")I=VH(_.LT("WAITING_TO_DOWNLOAD"));else if(_.kf(l))I=Math.floor(I*100).toString(),I=VH(_.LT("DOWNLOADING_PERCENT",{percent:I},"Downloading... "+I+"%"));else{if(H&&(_.z("playlist_is_offline_selector_killswitch")&&
(T=_.F().resolve(_.ca).isNetworkAvailable()),T)){I=SM3(_.LT("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),DhN(H));break a}I=void 0}l=l==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.LT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},k.length?{thumbnailOverlays:k}:{},I?{viewPlaylistText:I}:{viewPlaylistText:_.pW("")},l.length?{badges:l}:{})};
G43=function(V,l,I,H,T,x){if(l==="TRANSFER_STATE_UNKNOWN"||!V)return{};if(H==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var n=tWt(V,l,H);if(V.videoEntity&&!V.policyEntity&&H!=="DOWNLOAD_STATE_FAILED"){var w=_.LT("WAITING_TO_DOWNLOAD");if(w)return{shortViewCountText:_.pW(w),publishedTimeText:void 0,thumbnailOverlays:n}}if(!es(V.policyEntity)){x=V.policyEntity&&!EU3(V.policyEntity)?_.LT("DOWNLOAD_EXPIRED",{},"Download expired"):
_.LT("TRANSFER_FAILED",{},"Download failed");var N;if((N=V.policyEntity)==null?0:N.shortMessageForDisabledAction)x=V.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:VH(x),publishedTimeText:void 0,thumbnailOverlays:n}}if(l==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.pW(_.LT("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:n};if(l==="TRANSFER_STATE_FAILED"||l==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.pW(_.LT("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:n};if(l==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(N=_.LT("WAITING_TO_DOWNLOAD"),H==="DOWNLOAD_STATE_PAUSED"&&(N=_.LT("DOWNLOAD_PAUSED",{},"Download paused")),N))return{shortViewCountText:_.pW(N),publishedTimeText:void 0,thumbnailOverlays:n};if(_.kf(l))return V=Math.floor(I*100).toString(),{shortViewCountText:_.pW(_.LT("DOWNLOADING_PERCENT",{percent:V},"Downloading... "+V+"%")),publishedTimeText:void 0,thumbnailOverlays:n};l=void 0;V.videoEntity.publishedTimestampMillis&&
(l=new Date,T&&(l=new Date(T)),l=VH(zlW(new Date(Number(V.videoEntity.publishedTimestampMillis)),l)));T=[];_.z("kevlar_woffle_badge_killswitch")||(T=[{metadataBadgeRenderer:{label:_.LT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var L;V=VH((L=V.videoEntity.localizedStrings)==null?void 0:L.viewCount);return Object.assign({},x?{shortViewCountText:void 0}:{shortViewCountText:V},x?{}:{publishedTimeText:l},{badges:T,thumbnailOverlays:n})};
JMT=function(V,l){V=V===void 0?E61:V;switch(l.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:l.payload.playlistId,inviteLinkURL:l.payload.inviteLinkUrl};default:return V}};
hl1=function(V,l){V=V===void 0?o6t:V;switch(l.type){case "SET_CURRENT_FORM_ID":return l=l.payload.formId,V.currentFormId===l?V:{currentFormId:l,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var I=l.payload;l=I.groupId;I=I.command;if(V.currentFormId){var H=Object.assign({},V.commandsMap);H[l]=I;V=Object.assign({},V,{commandsMap:H})}return V;case "RESET_COMMAND_MAP":return Object.assign({},V,{commandsMap:{}});default:return V}};
D9t=function(V,l){V=V===void 0?P9c:V;switch(l.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},V,{guideIsExpanded:l.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},V,{scrollAtTop:l.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},V,{guideIsVisibleButNotPersistent:l.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},V,{miniplayerIsActive:l.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},V,{singleOptionSurveyIsActive:l.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},V,{slimlineSurveyRatingSelectedIndex:l.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},V,{richGridMiniMode:l.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},V,{richGridItemsPerRow:l.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},V,{richGridSlimItemsPerRow:l.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},V,{richGridContainerWidth:l.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},V,{richGridStyle:l.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},V,{currentPageType:l.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},V,{inlinePreviewIsActive:l.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},V,{inlinePreviewIsEnabled:l.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},V,{darkModeIsEnabled:l.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
V,{miniplayerPlaybackState:l.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},V,{tabGesturesIsActive:l.payload});case "SET_ONLINE_STATUS":return Object.assign({},V,{isOnline:l.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},V,{chipBarIsSticky:l.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},V,{frostedGlassMode:l.payload});default:return V}};
Spf=function(V,l){V=V===void 0?ZbJ:V;switch(l.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},V,{transcription:l.payload});case "SET_OVERLAY_STATE":return Object.assign({},V,{overlay:l.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return V}};
AMN=function(){return dS(Object.assign({},{continuation:Rl1,entities:fa1,download:QUy,reportChannelAbuse:cMg,share:Why,talkToRecs:bby,ui:D9t,voiceSearch:Spf,watch:qp1,ypc:MWt,shorts:sU3,radioButtonGroup:hl1,collabInviteLink:JMT},pf1))};
Obg=function(){return _.z("web_player_entities_middleware")?new uB(AMN(),[uB1,v63]):new uB(AMN(),[uB1])};
_.v4=function(){C9N||(C9N=Obg());return C9N};
aX1=function(V,l,I){if(V.length)return{titleText:_.iJ(l!=null?l:_.LT("DOWNLOADS",void 0,"Downloads")),contents:V.map(function(H){var T=H.videoEntity;H={videoId:T.videoId,title:VH(T.title),shortBylineText:VH(H.channelEntity.title),thumbnail:T.thumbnail};var x=T.videoId?RA(_.v4().getState(),T.videoId):0;T.videoId&&I?H.navigationEndpoint=_.mp(T.videoId,I,void 0,void 0,x):T.videoId&&(H.navigationEndpoint=PWg(T.videoId,x,T.lengthSeconds));T.lengthSeconds&&(H.thumbnailOverlays=yM3(T.lengthSeconds,x));return{playlistPanelVideoRenderer:H}}),
totalVideos:V.length}};
fXT=function(V){return(V=(0,_.EL.getValueByKeys)(V,"playlistId"))?{playlistId:V}:null};
g6c=function(){return{}};
m9N=function(V,l){return new _.UZ(function(I,H){V.then(function(T){if(T){if(T=l(T))return I(T);H()}},H)})};
ibc=function(V){var l,I,H,T=(l=V.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(H=I.autoplay)==null?void 0:H.autoplay,x,n,w;l=(x=V.contents)==null?void 0:(n=x.twoColumnWatchNextResults)==null?void 0:(w=n.playlist)==null?void 0:w.playlist;return T&&l&&l.playlistId?{rawResponse:V,autoplayRenderer:T,playlistPanelRenderer:l,playlistId:l.playlistId}:null};
l61=function(V){var l=l===void 0?"UNKNOWN_INTERFACE":l;if(V.length===1)return V[0];var I=Vf1[l];if(I){I=new RegExp(I);for(var H=_.U(V),T=H.next();!T.done;T=H.next())if(T=T.value,I.exec(T))return T}var x=[];Object.entries(Vf1).forEach(function(n){var w=_.U(n);n=w.next().value;w=w.next().value;l!==n&&x.push(w)});
I=new RegExp(x.join("|"));V.sort(function(n,w){return n.length-w.length});
H=_.U(V);for(T=H.next();!T.done;T=H.next())if(T=T.value,!I.exec(T))return T;return V[0]};
_.Ol=function(V){return"/youtubei/v1/"+l61(V)};
_.CW=function(V){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:V}}}}};
_.fW=function(V){return _.CW(_.pW(V))};
I6y=function(V,l){var I={mode:"NORMAL"};V&&(I.autoplayVideo=V.navigationEndpoint,I.nextButtonVideo=V.navigationEndpoint);l&&(I.previousButtonVideo=l.navigationEndpoint);return I};
Be3=function(V,l,I){if(!I||!I.sets)return{sets:[I6y(V,l)]};var H=I.sets.find(function(n){return n.mode==="NORMAL"}),T=(0,_.EL.unsafeClone)(I);
if(!H)return T.sets.push(I6y(V,l)),T;if(!V)return I;H=_.EL.getValueByKeys.apply(null,[H].concat(_.oI(HRW)));var x=_.EL.getValueByKeys.apply(null,[V].concat(_.oI(Tew)));if(H===x)return I;T.sets=T.sets.filter(function(n){return n.mode!=="NORMAL"});
T.sets.push(I6y(V,l));return T};
xX1=function(V){return!!V.playlistPanelVideoRenderer&&!V.playlistPanelVideoRenderer.unplayableText};
UXy=function(V){return!!V.playlistPanelVideoRenderer&&!!V.playlistPanelVideoRenderer.title};
n4K=function(V,l){if(l.contents&&!(V>=l.contents.length)&&(V=l.contents.slice(V).find(xX1)))return V.playlistPanelVideoRenderer};
$Xg=function(V,l){if(l.contents)return(l=l.contents.find(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===V}))?l.playlistPanelVideoRenderer:void 0};
dXt=function(V,l){return l.contents?l.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===V}):-1};
wQW=function(V,l){return l.contents?l.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.playlistSetVideoId===V}):-1};
NeT=function(V,l){V.contents&&l!==-1&&V.contents.splice(l,1).length===1&&V.totalVideos!==void 0&&(--V.totalVideos,delete V.videoCountText)};
_.Kbt=function(V){var l=[];if(!V||!V.contents)return l;V=_.U(V.contents);for(var I=V.next();!I.done;I=V.next())I=I.value,I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId&&l.push(I.playlistPanelVideoRenderer.videoId);return l};
_.jeN=function(V){if(V&&V.contents)return(V=V.contents.find(function(l){return!!l.playlistPanelVideoRenderer&&!!l.playlistPanelVideoRenderer.selected})||V.contents[V.currentIndex])?V.playlistPanelVideoRenderer:void 0};
Yf1=function(V,l,I,H,T,x,n){T=T===void 0?!1:T;x=x===void 0?!1:x;n=n===void 0?!1:n;if(V.contents&&V.contents.length!==0){H&&(V.contents=V.contents.filter(H));H=V.contents.length;for(var w=0;w<H;w++){var N=V.contents[w].playlistPanelVideoRenderer;N&&(w===l?(x&&delete N.menu,N.indexText=_.pW("\u25b6")):T||V.isInfinite||N.indexText===void 0?delete N.indexText:N.indexText=_.pW((w+1+I).toString()))}V.currentIndex=l+I;n&&(delete V.videoCountText,V.totalVideos=H)}};
Lbt=function(V,l){var I=document.body;l=l===void 0?function(w){return w}:l;
var H,T=null;V=_.U(V);for(H=V.next();!H.done;H=V.next()){var x=H.value;H=document.createElement("div");T||(T=H);var n=x[0];x=x[1];n&&(H.id=l(n));if(x)for(n=_.U(x),x=n.next();!x.done;x=n.next())H.classList.add(l(x.value));I.appendChild(H);I=H}return[T,I]};
eGN=function(V,l){for(var I="",H=0;H<l;H++)I+=V.charAt(Math.floor(Math.random()*V.length));return I};
gJ=function(V){return eGN("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",V)};
md=function(V){return eGN("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",V)};
iB=function(V){return eGN("0123456789",V)};
Vy=function(){var V=performance.now(),l=new Date;var I="2."+l.getFullYear()+String(l.getMonth()+1).padStart(2,"0")+String(l.getDate()).padStart(2,"0");for(var H,T=Math.floor(Math.random()*11)+15,x=[],n=0;n<T;n++)x.push(Math.floor(Math.random()*26476865)+24547720);H=x.join(",");var w=gJ(10),N=gJ(100),L=gJ(102),e=gJ(106),k=gJ(108),X=gJ(11),r=gJ(1140),E=gJ(123),D=gJ(14),Z=gJ(16),S=gJ(1900),p=gJ(23),Vf=gJ(26),C=gJ(34),By=gJ(397),lN=gJ(44),wW=gJ(5),o1=gJ(72),h1=gJ(74),ec=gJ(75),Zg=gJ(88),Va=gJ(91),wb=
"rr4---sn-ntq7yns7 rr1---sn-q4flrnlz rr5---sn-hgn7yn76 rr2---sn-q4fl6ndz rr2---sn-hgn7rnll rr2---sn-q4fl6nsl rr4---sn-q4fzene7 rr3---sn-q4fl6ns7 rr4---sn-q4flrnsl rr3---sn-hgn7yn7s rr2---sn-5hne6nzs rr3---sn-q4fl6nsr rr2---sn-ntq7yner rr3---sn-q4flrnsl rr4---sn-4g5edndk rr4---sn-q4flrnek rr3---sn-q4flrn7r rr2---sn-ntq7yney rr4---sn-q4fl6nde rr4---sn-hgn7rnls".split(" ");var CK=wb[Math.floor(Math.random()*wb.length)];var CZ=(new Date("2010-01-01")).getTime();var ME=(new Date(CZ+Math.random()*((new Date).getTime()-
CZ))).toISOString().split("T")[0];for(var Hw,uZ=[],EN=0;EN<4;EN++)uZ.push(Math.floor(Math.random()*100));Hw=uZ.join(".");var ya=Number(iB(5)),Dv=Number(iB(6)),Tf=Number(iB(7)),Oq=Number(iB(9)),Ut=iB(1),BY=iB(10),ON=iB(16),vY=iB(19),LZ=iB(2),oi=iB(20),lZ=iB(21),st=iB(3),jo=iB(4),gb=iB(5),Bh=iB(6),Zv=iB(7),sP=iB(8),JV=iB(9);var sw=eGN("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",27352);var dp=[md(5),md(5),md(5)].join("%2C"),PN=[iB(3),iB(5),iB(5)].join("%2C"),uK=md(0),r$=md(1),
$i=md(10),r7=md(108),zf=md(11),CT=md(12),s_=md(13),kl=md(14),Oo=md(15),vk=md(16),aA=md(17),FJ=md(18),Sc=md(19),bN=md(2),eo=md(20),xh=md(22),xJ=md(23),$J=md(24),vw=md(266),zE=md(3),y5=md(30),g$=md(34),JB=md(35),xz=md(36),J9=md(4),mx=md(40),BN=md(43),L0=md(47),PX=md(5),pK=md(6),UP=md(7),Fj=md(75),hI=md(8),xp=md(80),D3=md(9),Gf="https://www."+md(12)+".com",aJ={},fv={},aH={},ePq={},fM={},Ey={},JS={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:H}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:I},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+md(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",
value:I},{key:"client.name",value:"WEB"},{key:"client.fexp",value:H}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:lZ+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+md(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:mx,ypcGetOfflineUpsellEndpoint:{params:xp}},trackingParams:JB+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},contextParams:"Q0FFU0FnZ0M="},
streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&cnr="+LZ+"&ratebypass=yes&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&c=WEB&txp="+Zv+"&n="+Z+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Dv,width:640,height:360,lastModified:ON,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Zv,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+PN+"&mn="+
dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&cnr="+LZ+"&ratebypass=yes&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&c=WEB&txp="+Zv+"&n="+Z+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+r7+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Dv,width:1280,
height:720,lastModified:ON,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Zv,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+PN+"&mn="+dp+"&ms="+
dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+JV+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Tf,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:JV,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Tf,approxDurationMs:Zv},{itag:248,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+PN+"&mn="+dp+"&ms="+dp+"&mv="+
r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fwebm&ns="+$J+"&gir="+zE+"&clen="+JV+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:Tf,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:JV,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Tf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:399,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+JV+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Tf,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:JV,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Tf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:136,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+JV+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Tf,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:JV,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Dv,approxDurationMs:Zv},{itag:247,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+PN+"&mn="+
dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fwebm&ns="+$J+"&gir="+zE+"&clen="+JV+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:Tf,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:JV,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Dv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:398,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+JV+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Tf,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:JV,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Dv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:135,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Dv,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Dv,approxDurationMs:Zv},{itag:244,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+PN+"&mn="+
dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fwebm&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r7+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:Dv,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Dv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:397,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Dv,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Dv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:134,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Dv,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Dv,highReplication:!0,approxDurationMs:Zv},{itag:243,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fwebm&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:Dv,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Dv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:396,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Dv,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Dv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:133,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Dv,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Dv,approxDurationMs:Zv},{itag:242,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+PN+"&mn="+
dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fwebm&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:Dv,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Dv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:395,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Dv,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Dv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:160,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Dv,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ya,approxDurationMs:Zv},{itag:278,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+PN+"&mn="+
dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fwebm&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:Dv,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ya,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:394,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&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="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=video%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:ya,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ya,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Zv},{itag:140,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=audio%2Fmp4&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Dv,
initRange:{start:"0",end:"631"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Dv,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Zv,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+
LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=audio%2Fwebm&ns="+$J+"&gir="+zE+"&clen="+Zv+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/webm; codecs="opus"',bitrate:ya,initRange:{start:"0",end:"265"},indexRange:{start:st,
end:jo},lastModified:ON,contentLength:Zv,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ya,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Zv,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=audio%2Fwebm&ns="+
$J+"&gir="+zE+"&clen="+Zv+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/webm; codecs="opus"',bitrate:ya,initRange:{start:"0",end:"265"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:Zv,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ya,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Zv,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+CK+".googlevideo.com/videoplayback?expire="+BY+"&ei="+p+"&ip="+Hw+"&id=o-AF"+BN+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+PN+"&mn="+dp+"&ms="+dp+"&mv="+r$+"&mvi="+Ut+"&pl="+LZ+"&initcwndbps="+Zv+"&siu="+Ut+"&spc="+lN+"&vprv="+Ut+"&svpuc="+Ut+"&mime=audio%2Fwebm&ns="+$J+"&gir="+zE+"&clen="+sP+"&dur="+sP+"&lmt="+ON+"&mt="+BY+"&fvip=3&keepalive="+zE+"&c=WEB&txp="+
Zv+"&n="+vk+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/webm; codecs="opus"',bitrate:Dv,initRange:{start:"0",end:"265"},indexRange:{start:st,end:jo},lastModified:ON,contentLength:sP,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Dv,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Zv,audioSampleRate:"48000",audioChannels:2,
loudnessDb:-3.7800007}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5,17,1"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"https://s.youtube.com/api/stats/playback?cl="+JV+"&docid="+X+"&ei="+p+"&feature="+w+"&fexp="+uK+"&ns="+bN+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+r$+"&el="+$i+"&len="+jo+"&of="+xh+
"&uga="+LZ+"&vm="+vw},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+JV+"&docid="+X+"&ei="+p+"&feature="+w+"&fexp="+uK+"&ns="+bN+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+r$+"&el="+$i+"&len="+jo+"&of="+xh+"&uga="+LZ+"&vm="+vw},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+JV+"&docid="+X+"&ei="+p+"&feature="+w+"&fexp="+uK+"&ns="+bN+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
r$+"&el="+$i+"&len="+jo+"&of="+xh+"&uga="+LZ+"&vm="+vw},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+p+"&m="+Zg+"&oid="+xh+"&plid="+Z+"&pltype="+UP+"&ptchn="+xh+"&ptk="+D+"&video_id="+X},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+JV+"&docid="+X+"&ei="+p+"&event="+kl+"&feature="+w+"&fexp="+uK+"&ns="+bN+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+r$},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+X+"&ei="+p+"&feature="+
w+"&len="+jo+"&ns="+bN+"&plid="+Z+"&ver="+Ut,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+X+"&caps="+zE+"&opi="+JV+"&xoaf="+Ut+"&hl="+bN+"&ip="+Hw+"&ipbits="+Ut+"&expire="+BY+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Hw+"&key="+zE+"&lang="+wW,name:{simpleText:PX},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+X+"&caps="+zE+"&opi="+JV+"&xoaf="+Ut+"&hl="+bN+"&ip="+Hw+"&ipbits="+Ut+"&expire="+BY+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Hw+"&key="+zE+"&kind="+zE+"&lang="+bN,name:{simpleText:pK},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:zf,title:UP,lengthSeconds:"1155",keywords:[s_,FJ,UP,Oo],
channelId:$J,isOwnerViewing:!1,shortDescription:Sc,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+xz+"G&rs="+g$,width:168,height:94},{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+xz+"G&rs="+g$,width:196,height:110},{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+xz+"G&rs="+C,width:246,height:138},{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+xz+"G&rs="+C,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
X+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Zv,author:s_,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Zv,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+xh+"/featured_channel.jpg?v="+hI,width:40,height:40}]},trackingParams:JB+"=",navigationEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"/channel/"+$J,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:$J}},channelName:s_,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:$i}]},subscribed:!1,enabled:!0,type:"FREE",channelId:$J,showPreferences:!1,subscribedButtonText:{runs:[{text:vk}]},unsubscribedButtonText:{runs:[{text:hI}]},trackingParams:JB+"=",unsubscribeButtonText:{runs:[{text:PX}]},serviceEndpoints:[{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[$J],params:hI}},{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:mx,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:JB+"=",dialogMessages:[{runs:[{text:CT},{text:zf},{text:vk}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:PX}]},serviceEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[$J],params:hI}},accessibility:{label:hI},trackingParams:JB+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:kl}]},accessibility:{label:UP},trackingParams:JB+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:s_}},unsubscribeAccessibility:{accessibilityData:{label:kl}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:sP},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[$J],params:hI}},unsubscribeCommand:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[$J],params:hI}},addToWatchLaterCommand:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:zf,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:zf}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+X+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+xz+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
X+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+zf,width:1280,height:720},title:{simpleText:$i},description:{simpleText:Oo},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+hI,externalChannelId:$J,isFamilySafe:!0,availableCountries:"AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "),
isUnlisted:!1,hasYpcMetadata:!1,viewCount:Zv,category:"Travel & Events",publishDate:ME,ownerChannelName:s_,uploadDate:ME}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:s_},trackingParams:JB+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:mx,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:JB+"="}}],headerText:{simpleText:hI},icon:{infoCardIconRenderer:{trackingParams:JB+"="}},closeButton:{infoCardIconRenderer:{trackingParams:JB+"="}},trackingParams:JB+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:JB+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+zf+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:sw,interpreterSafeUrl:(aJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+y5+".js",aJ),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Oo},{text:D3,bold:!0}]},endpoint:{clickTrackingParams:mx,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:JB+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:hI}]},actionButton:{buttonRenderer:{text:{runs:[{text:CT}]},navigationEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+X,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
X,target:"TARGET_NEW_WINDOW"}},trackingParams:JB+"="}},trackingParams:JB+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+o1+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+o1+"=s400-c-k-c0x00ffffff-no-rj",width:400,height:400}]},icon:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/annotations/youtube.png"}]},left:.030214407,width:.15438597,top:.37587035,aspectRatio:1,
startMs:Zv,endMs:Zv,title:{accessibility:{accessibilityData:{label:pK}},simpleText:eo},metadata:{simpleText:aA},callToAction:{simpleText:D3},dismiss:{simpleText:vk},endpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"/channel/"+$J,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:$J}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:aA}]},subscribed:!1,enabled:!0,type:"FREE",channelId:$J,showPreferences:!1,
subscribedButtonText:{runs:[{text:aA}]},unsubscribedButtonText:{runs:[{text:hI}]},trackingParams:JB+"=",unsubscribeButtonText:{runs:[{text:hI}]},serviceEndpoints:[{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[$J],params:hI}},{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:mx,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:JB+
"=",dialogMessages:[{runs:[{text:$i},{text:s_},{text:D3}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:PX}]},serviceEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[$J],params:hI}},accessibility:{label:$i},trackingParams:JB+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:hI}]},
accessibility:{label:$i},trackingParams:JB+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Sc}},unsubscribeAccessibility:{accessibilityData:{label:zf}}}},trackingParams:JB+"=",isSubscribe:!0,id:oi}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+xz+"G&rs="+C,width:168,height:94},{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+xz+"G&rs="+g$,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+xz+"G&rs="+C,width:246,height:138},{url:"https://i.ytimg.com/vi/"+X+"/hqdefault.jpg?sqp=-oaymwE"+xz+"G&rs="+C,width:336,height:188},{url:"https://i.ytimg.com/vi/"+X+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Zv,endMs:Zv,title:{accessibility:{accessibilityData:{label:hI}},simpleText:s_},metadata:{simpleText:PX},endpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
zf,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:zf,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+CK+".googlevideo.com/videoplayback?source=youtube&oeis="+Ut+"&c=WEB&oad="+jo+"&ovd="+jo+"&oaad="+gb+"&oavd="+gb+"&ocs="+st+"&oewis="+Ut+"&oputc="+Ut+"&ofpcc="+Ut+"&siu="+Ut+"&msp="+Ut+"&odepv="+Ut+
"&id=o-AF"+BN+"&ip="+Hw+"&initcwndbps="+Zv+"&mt="+BY+"&oweuc="+uK}}}}},trackingParams:JB+"=",id:oi,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:CT}},simpleText:Oo},style:"DEFAULT"}}]}}],startMs:Zv,trackingParams:JB+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Ut,offsetEndMilliseconds:gb},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JV+";dc_trk_cid="+JV+";dc_dbm_token="+k+";ord="+BY+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Ut+";dc_rui="+Ut+";dc_exteid="+oi+";dc_av="+st+";dc_sk="+Ut+";dc_ctype="+LZ+";dc_ref=http://www.youtube.com/video/"+zf+";dc_pubid="+Ut+";dc_btype=23?gclid="+Va+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Ut+"&ns="+Ut+"&event="+Ut+"&device="+Ut+"&content_v="+X+"&el="+$i+"&ei="+p+"&devicever="+I+"&bti="+Zv+"&format="+Bh+"&break_type="+Ut+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Ut+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Hw+"&slot_pos="+Ut+"&slot_len="+Ut+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+PN+"&ad_len="+gb+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
zf+"&aqi="+p+"&ad_rmp="+Ut+"&sli="+Ut}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+
Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Zv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&ctype="+st+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_engaged_view&ctype="+st+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Bh+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
JV+";dc_trk_cid="+JV+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Ut+";ord="+JV+";dc_rui="+Ut+";dc_exteid="+vY+";dc_av="+Ut+";dc_sk="+Ut+";dc_ctype="+LZ+";dc_pubid="+Ut+";dc_btype=3?gclid="+Va+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+xJ+"&ad_cpn=[AD_CPN]&id="+pK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pK+"&dc_pubid="+Ut+"&dc_exteid="+oi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+xJ+"&ad_cpn=[AD_CPN]&id="+pK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Ut},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pK+"&avm="+Ut+"&dc_pubid="+Ut+"&dc_exteid="+
oi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&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="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
L+"&sig="+xJ+"&ad_cpn=[AD_CPN]&id="+pK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Ut},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pK+"&dc_pubid="+Ut+"&dc_exteid="+oi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:mx,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+
st+"&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/"+X+"/mqdefault.jpg",width:320,height:180}]},trackingParams:JB+"="},trackingParams:JB+
"=",templatedCountdown:{templatedAdText:{text:PX,isTemplated:!0,trackingParams:JB+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:s_,isTemplated:!1,trackingParams:JB+"="},trackingParams:JB+"="}},trackingParams:JB+"=",skipOffsetMilliseconds:5E3}},trackingParams:JB+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:UP},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JB+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:eo,isTemplated:!1,trackingParams:JB+"="},trackingParams:JB+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:UP,isTemplated:!0,trackingParams:JB+"="}},trackingParams:JB+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:mx,openPopupAction:{popup:{aboutThisAdRenderer:{url:(fv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+S+"&hl="+bN+"&origin=www.youtube.com&ata_theme="+J9,fv),trackingParams:JB+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:JB+"="}},hoverText:{runs:[{text:hI}]},trackingParams:JB+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+L0+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:JB+"="},headline:{text:Oo,isTemplated:!1,trackingParams:JB+"="},description:{text:s_,
trackingParams:JB+"="},actionButton:{buttonRenderer:{text:{simpleText:FJ},navigationEndpoint:{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JV+";dc_trk_cid="+JV+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Ut+";ord="+JV+";dc_rui="+Ut+";dc_exteid="+oi+";dc_av="+Ut+";dc_sk="+Ut+";dc_ctype="+LZ+";dc_pubid="+Ut+";dc_btype=3?gclid="+Va+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JB+"="}},startMs:Ut,trackingParams:JB+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:UP},elementId:zf}},elementId:J9,trackingParams:JB+"=",legacyInfoCardVastExtension:FJ,sodarExtensionData:{siub:hI,bgub:zf,scs:s_,bgp:hI},externalVideoId:zf,adLayoutLoggingData:{serializedAdServingDataEntry:hI},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+L0+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:JB+"="},
headline:{text:pK,isTemplated:!1,trackingParams:JB+"="},description:{text:eo,isTemplated:!1,trackingParams:JB+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:$i},navigationEndpoint:{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JV+";dc_trk_cid="+JV+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Ut+";ord="+JV+";dc_rui="+Ut+";dc_exteid="+
oi+";dc_av="+Ut+";dc_sk="+Ut+";dc_ctype="+LZ+";dc_pubid="+Ut+";dc_btype=3?gclid="+Va+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+
Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JB+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:JB+"="}},navigationEndpoint:{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JV+";dc_trk_cid="+
JV+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Ut+";ord="+JV+";dc_rui="+Ut+";dc_exteid="+oi+";dc_av="+Ut+";dc_sk="+Ut+";dc_ctype="+LZ+";dc_pubid="+Ut+";dc_btype=3?gclid="+Va+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+
E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JB+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:JB+"="},abandonCommands:{commands:[{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&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="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+
Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:mx,commandExecutorCommand:{commands:[{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:vk,isTemplated:!1,trackingParams:JB+
"="},trackingParams:JB+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:FJ},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Zv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"1ID7Gdwk2vV7OZ1A"}},
{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N1957659.127733GOOGLE-YOUTUBE/B29940965.366940103;dc_trk_aid="+JV+";dc_trk_cid="+JV+";ord="+BY+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Ut+";dc_rui="+Ut+";dc_exteid="+oi+";dc_av="+st+";dc_sk="+Ut+";dc_ctype="+LZ+";dc_ref=http://www.youtube.com/video/"+zf+";dc_pubid="+Ut+";dc_btype=23?gclid="+Va+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Ut+"&ns="+Ut+"&event="+Ut+"&device="+Ut+"&content_v="+X+"&el="+$i+"&ei="+p+"&devicever="+I+"&bti="+Zv+"&format="+Bh+"&break_type="+Ut+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Ut+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Hw+"&slot_pos="+Ut+"&slot_len="+Ut+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
PN+"&ad_len="+gb+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+zf+"&aqi="+p+"&ad_rmp="+Ut+"&sli="+Ut}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+
Vf+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Zv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&ctype="+st+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,
attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_engaged_view&ctype="+st+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Bh+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+xJ+"&ad_cpn=[AD_CPN]&id="+
pK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pK+"&dc_pubid="+Ut+"&dc_exteid="+oi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+
"&sig="+xJ+"&ad_cpn=[AD_CPN]&id="+pK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Ut},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pK+"&avm="+Ut+"&dc_pubid="+Ut+"&dc_exteid="+oi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&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="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+xJ+"&ad_cpn=[AD_CPN]&id="+pK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Ut},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pK+"&dc_pubid="+Ut+"&dc_exteid="+oi+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+Bh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+
st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&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/"+X+"/mqdefault.jpg",width:320,height:180}]},trackingParams:JB+"="},trackingParams:JB+"=",templatedCountdown:{templatedAdText:{text:CT,isTemplated:!0,trackingParams:JB+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Sc,isTemplated:!1,trackingParams:JB+"="},trackingParams:JB+"="}},
trackingParams:JB+"=",skipOffsetMilliseconds:5E3}},trackingParams:JB+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:CT},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JB+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:kl,isTemplated:!1,trackingParams:JB+"="},trackingParams:JB+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:$i,
isTemplated:!0,trackingParams:JB+"="}},trackingParams:JB+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:mx,openPopupAction:{popup:{aboutThisAdRenderer:{url:(aH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+S+"&hl="+bN+"&origin=www.youtube.com&ata_theme="+J9,aH),trackingParams:JB+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:JB+"="}},hoverText:{runs:[{text:hI}]},trackingParams:JB+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+h1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:JB+"="},headline:{text:D3,isTemplated:!1,trackingParams:JB+"="},description:{text:pK,trackingParams:JB+"="},actionButton:{buttonRenderer:{text:{simpleText:vk},navigationEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JB+"="}},startMs:Ut,trackingParams:JB+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:kl},elementId:hI}},elementId:vk,trackingParams:JB+"=",legacyInfoCardVastExtension:J9,sodarExtensionData:{siub:zf,bgub:eo,scs:Oo,bgp:pK},externalVideoId:zf,adLayoutLoggingData:{serializedAdServingDataEntry:D3},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+h1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:JB+"="},headline:{text:FJ,
isTemplated:!1,trackingParams:JB+"="},description:{text:CT,isTemplated:!1,trackingParams:JB+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:FJ},navigationEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JB+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:JB+"="}},navigationEndpoint:{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+
Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JB+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:JB+"="},abandonCommands:{commands:[{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&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="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+Ut+"="+Ut+";etm1="+Ut+";eid1="+LZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:mx,commandExecutorCommand:{commands:[{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=video_card_endcap_impression"}],
pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:zf,isTemplated:!1,trackingParams:JB+"="},trackingParams:JB+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:hI},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Ut+";dc_exteid="+oi+";met="+Ut+";ecn"+
Ut+"="+Ut+";etm1="+Ut+";eid1="+Zv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:s_}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:hI}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:gb,offsetEndMilliseconds:Bh},hideCueRangeMarker:!0}},
renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+p+"&m_pos="+LZ+"&token=ALHj"+By+"&index="+Ut+"&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="+I+"&m_pos_ms="+gb}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pK}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Bh,offsetEndMilliseconds:Bh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+p+"&m_pos="+st+"&token=ALHj"+By+"&index="+Ut+"&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="+
I+"&m_pos_ms="+Bh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Bh,offsetEndMilliseconds:Bh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+p+"&m_pos="+st+"&token=ALHj"+By+"&index="+Ut+"&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="+
I+"&m_pos_ms="+Bh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Bh,offsetEndMilliseconds:Bh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+p+"&m_pos="+st+"&token=ALHj"+By+"&index="+Ut+"&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="+
I+"&m_pos_ms="+Bh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:UP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Bh,offsetEndMilliseconds:LZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+p+"&m_pos="+st+"&token=ALHj"+By+"&index="+Ut+"&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="+
I+"&m_pos_ms="+Bh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zf}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:LZ,offsetEndMilliseconds:LZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+p+"&m_pos="+LZ+"&token=ALHj"+By+"&index="+Ut+"&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="+
I+"&m_pos_ms="+LZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Oo}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:CT,isTemplated:!1,trackingParams:JB+"="},description:{text:s_,isTemplated:!1,trackingParams:JB+"="},actionButton:{buttonRenderer:{text:{simpleText:pK},navigationEndpoint:{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
JV+";dc_trk_cid="+JV+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Ut+";ord="+JV+";dc_rui="+Ut+";dc_exteid="+oi+";dc_av="+Ut+";dc_sk="+Ut+";dc_ctype="+LZ+";dc_pubid="+Ut+";dc_btype=3?gclid="+Va+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JB+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+L0+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:JB+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ec+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:JB+"="},navigationEndpoint:{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JV+";dc_trk_cid="+JV+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Ut+";ord="+JV+
";dc_rui="+Ut+";dc_exteid="+oi+";dc_av="+Ut+";dc_sk="+Ut+";dc_ctype="+LZ+";dc_pubid="+Ut+";dc_btype=3?gclid="+Va+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JB+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:mx,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ePq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+S+"&hl="+bN+"&origin=www.youtube.com&ata_theme="+J9,ePq),trackingParams:JB+"="}},popupType:"DIALOG"}},trackingParams:JB+"="}},hoverText:{runs:[{text:$i}]},trackingParams:JB+"="}},adVideoId:zf,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:kl},associatedCompositePlayerBytesLayoutId:vk}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:aA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:pK,isTemplated:!1,trackingParams:JB+"="},description:{text:J9,isTemplated:!1,trackingParams:JB+"="},actionButton:{buttonRenderer:{text:{simpleText:vk},navigationEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+
E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JB+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+h1+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:JB+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Fj+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:JB+"="},navigationEndpoint:{clickTrackingParams:mx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+
Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JB+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:mx,openPopupAction:{popup:{aboutThisAdRenderer:{url:(fM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+S+"&hl="+bN+"&origin=www.youtube.com&ata_theme="+J9,fM),trackingParams:JB+"="}},popupType:"DIALOG"}},trackingParams:JB+"="}},
hoverText:{runs:[{text:hI}]},trackingParams:JB+"="}},adVideoId:zf,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+zf+"&cid="+Vf+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:kl},associatedCompositePlayerBytesLayoutId:vk}},adSlotLoggingData:{serializedSlotAdServingDataEntry:FJ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Oo,
isTemplated:!1,trackingParams:JB+"="},description:{text:pK,isTemplated:!1,trackingParams:JB+"="},actionButton:{buttonRenderer:{text:{simpleText:zf},navigationEndpoint:{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JV+";dc_trk_cid="+JV+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Ut+";ord="+JV+";dc_rui="+Ut+";dc_exteid="+oi+";dc_av="+Ut+";dc_sk="+Ut+";dc_ctype="+
LZ+";dc_pubid="+Ut+";dc_btype=3?gclid="+Va+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+
C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JB+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+L0+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:JB+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ec+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:JB+
"="},navigationEndpoint:{clickTrackingParams:mx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+JV+";dc_trk_cid="+JV+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Ut+";ord="+JV+";dc_rui="+Ut+";dc_exteid="+oi+";dc_av="+Ut+";dc_sk="+Ut+";dc_ctype="+LZ+";dc_pubid="+Ut+";dc_btype=3?gclid="+Va+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+E+"AxAA&ase=2&num="+Ut+"&cid="+Vf+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Gf+"&label=video_click_to_advertiser_site&ctype="+st+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JB+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:mx,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ey.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+S+"&hl="+bN+"&origin=www.youtube.com&ata_theme="+J9,Ey),trackingParams:JB+"="}},popupType:"DIALOG"}},trackingParams:JB+
"="}},hoverText:{runs:[{text:$i}]},trackingParams:JB+"="}},adVideoId:zf,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+E+"AxAA&sigh="+X+"&cid="+Vf+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:UP},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:vk}},adSlotLoggingData:{serializedSlotAdServingDataEntry:D3}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:y5,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:y5,command:{innertubeCommand:{clickTrackingParams:mx,ypcGetOfflineUpsellEndpoint:{params:xp}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:JB+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:BY,nanos:Oq}}}},Kk1=JSON.stringify(JS),oc=performance.now()-V;return{objectRepresentation:JS,jsonRepresentation:Kk1,generationTime:oc}};
kFt=function(V,l){if(V===l)return!0;if(!V||!l||typeof V!==typeof l)return!1;if(V instanceof Array&&l instanceof Array){if(V.length!==l.length)return!1;for(var I=0;I<V.length;I++)if(!kFt(V[I],l[I]))return!1;return!0}if(typeof V==="object"&&typeof l==="object"&&V&&l){for(I in V)if(!(I in l&&kFt(V[I],l[I])))return!1;for(var H in l)if(!(H in V))return!1;return!0}return!1};
l3=function(V,l,I,H){if(V===l)return!0;if(Array.isArray(V)&&Array.isArray(l)){if(V.length!==l.length)return!1;for(var T=0;T<V.length;T++)if(!l3(V[T],l[T],I,H))return!1;return!0}if(V instanceof Set||l instanceof Set){if(V instanceof Set&&l instanceof Set){if(V.size!==l.size)return!1;H=_.U(V.values());for(T=H.next();!T.done;T=H.next())if(!l.has(T.value))return!1;return!0}return!1}if(V instanceof Function){if(H)return!0;V.name===""&&_.Gr(Error("If"),"ERROR");return!1}if(V instanceof Date&&l instanceof
Date)return V.getTime()===l.getTime();if(V instanceof Object&&l instanceof Object){if(Fbw(V)&&Fbw(l))try{return V.equals(l)}catch(n){_.Gr(Error("Jf`"+n),"ERROR")}T=Object.getOwnPropertyNames(V).filter(function(n){return I?V[n]!==void 0:!0});
var x=Object.getOwnPropertyNames(l).filter(function(n){return I?l[n]!==void 0:!0});
if(T.length!==x.length)return!1;T=_.U(T);for(x=T.next();!x.done;x=T.next())if(x=x.value,!l3(V[x],l[x],I,H))return!1;return!0}return!1};
Fbw=function(V){V=Object.getPrototypeOf(V).equals;return V instanceof Function&&V.length===1};
yfK=function(){return _.d(function(V){if(V.nextAddress==1)return XQN!==2?V.jumpTo(2):_.K(V,zGy(),3);V.nextAddress!=2&&(XQN=V.yieldResult);return V.return(XQN)})};
GF1=function(){return _.d(function(V){if(V.nextAddress==1)return _.z("ab_pl_man")?tfq!==2?V.jumpTo(2):_.K(V,rfN(),3):V.return(1);V.nextAddress!=2&&(tfq=V.yieldResult);return V.return(tfq)})};
o43=function(){return _.d(function(V){if(V.nextAddress==1)return _.z("ab_fk_sk_cl")?E4w!==2?V.jumpTo(2):_.K(V,Jfw(),3):V.return(1);V.nextAddress!=2&&(E4w=V.yieldResult);return V.return(E4w)})};
DXT=function(){return _.d(function(V){if(V.nextAddress==1)return _.z("ab_det_apb_b")?hGt!==2?V.jumpTo(2):_.K(V,P5N(),3):V.return(1);V.nextAddress!=2&&(hGt=V.yieldResult);return V.return(hGt)})};
RGc=function(){var V;return _.d(function(l){if(l.nextAddress==1)return _.K(l,Promise.all([yfK(),DXT(),GF1(),o43()]),2);if(l.nextAddress!=3)return ZRN()?l.return(!0):_.K(l,Sff(),3);V=l.yieldResult;return l.return(V===0)})};
ZRN=function(){var V=[];V.push(Qeq());_.z("disable_enf_isd")||V.push(cf1());V.push(XQN);V.push(hGt);V.push(tfq);V.push(E4w);if(_.z("ab_det_el_h")){var l=V.push;Wbt===2&&(Wbt=bRt(Lbt(qf3)));l.call(V,Wbt)}_.z("ks_det_gpbl")||V.push(Mfq());_.z("ks_get_o_pp")||V.push(seg());_.z("ab_deg_unex_thr")||V.push(pQf());V.push(Af3);_.z("ab_det_sc_inj_enf")&&V.push(uIJ());V.push(v4N);_.z("ab_det_pp_ov")&&V.push(ORc(C5W));_.z("ab_det_apm")&&V.push(a6t());return _.z("debug_sk_em_precheck")?!0:V.includes(0)};
g4f=function(){var V=[].concat(_.oI(f6J));try{var l=Vy();V.push({jsonRepresentation:l.jsonRepresentation,objectRepresentation:l.objectRepresentation})}catch(I){V=[].concat(_.oI(f6J))}return V};
mXw=function(){var V=["adPlacements","adSlots"];try{return V.filter(function(){return!0}).length!==V.length?0:1}catch(l){return 0}};
seg=function(){if(mXw()===0)return 0;var V=Vy(),l=V.objectRepresentation,I=(0,_.EL.unsafeClone)(l),H=[];if(l&&typeof l==="object")for(var T in l)H.push(T);else return 4;V=V.objectRepresentation.adPlacements;if(!(V&&V.length>0))return 4;try{if(!kFt(H,Object.getOwnPropertyNames(l)))return 0}catch(x){return 0}return kFt(I,l)?1:0};
ORc=function(V){var l=Object.getOwnPropertyNames(Object.prototype);V=_.U(V);for(var I=V.next();!I.done;I=V.next()){I=iRy(I.value);for(var H=_.U(l),T=H.next();!T.done;T=H.next())if(I===T.value)return 0}return 1};
a6t=function(){for(var V=VET,l=0;l<V.length;l++){var I=V[l];var H=I[1];if(I[0]!==null){I=I[0];for(var T={},x=0;x<I.length;x++){var n=I[x];if(x===0)T[n]=H;else{var w={};w[n]=T;T=w}}H=T}I=[];I.push(H);if(I.length===0)return 0}return 1};
Qeq=function(){for(var V=_.U(g4f()),l=V.next();!l.done;l=V.next()){var I=l.value;l=I.jsonRepresentation;I=I.objectRepresentation;try{var H=JSON.parse(l);if(!l3(H,I,!1,!1))return 0}catch(T){return 0}}return 1};
uIJ=function(){try{var V=_.V7("ab_det_sc_inj_val");V.length===1&&V[0]===""&&(V=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var l=document.querySelectorAll("script"),I=_.U(l),H=I.next();!H.done;H=I.next())for(var T=H.value,x=_.U(V),n=x.next();!n.done;n=x.next()){var w=n.value;l=void 0;if((l=T.textContent)==null?0:l.includes(w))return 0}}catch(N){return 4}return 1};
Sff=function(){var V,l,I,H,T,x,n;return _.d(function(w){switch(w.nextAddress){case 1:_.jd(w,2),V=_.U(f6J),l=V.next();case 4:if(l.done)return w.return(1);H=I=l.value;T=H.jsonRepresentation;x=H.objectRepresentation;return _.K(w,(new Response(T,{status:200})).json(),7);case 7:n=w.yieldResult;if(!l3(n,x,!1,!1))return w.return(0);l=V.next();w.jumpTo(4);break;case 2:return _.kE(w),w.return(4)}})};
pQf=function(){try{btoa("abc")}catch(V){return 0}return 1};
zGy=function(){var V,l,I,H,T,x,n,w,N,L,e;return _.d(function(k){switch(k.nextAddress){case 1:_.jd(k,2),V=_.U(g4f()),l=V.next();case 4:if(l.done)return k.return(1);H=I=l.value;T=H.jsonRepresentation;x=H.objectRepresentation;n=btoa(T);w="data:application/json;base64,"+n;N=new Request(w);Object.defineProperty(N,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(N,"method",{get:function(){return"POST"}});
Object.defineProperty(N,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(N,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(N,"body",{get:function(){return new ReadableStream}});
return _.K(k,fetch(N),7);case 7:return L=k.yieldResult,_.K(k,L.json(),8);case 8:e=k.yieldResult;if(!l3(e,x,!1,!1))return k.return(0);l=V.next();k.jumpTo(4);break;case 2:return _.kE(k),k.return(4)}})};
bRt=function(V){var l=_.U(V);V=l.next().value;l=l.next().value;try{var I=document.createElement("div");document.body.appendChild(I);var H=getComputedStyle(I).display;document.body.removeChild(I);if(H==="none")return 4;var T=getComputedStyle(l).display==="none"?0:1;document.body.removeChild(V);return T}catch(x){return 4}};
Jfw=function(){var V,l,I;return _.d(function(H){V=new _.IQ;l=document.createElement("button");l.classList.add("ytp-ad-skip-button");l.style.opacity="0";l.style.height="0px";l.style.width="0px";l.style.padding="0px";l.style.border="none";I=function(){l.parentElement&&l.parentElement.removeChild(l)};
l.onclick=function(){V.resolve(0);I()};
document.body.appendChild(l);setTimeout(function(){I();V.resolve(1)},50);
return H.return(V.promise)})};
rfN=function(){var V,l,I,H,T,x,n;return _.d(function(w){V=new _.IQ;l=document.createElement("ytd-player");try{document.body.prepend(l)}catch(N){return w.return(4)}I=function(){l.parentElement&&l.parentElement.removeChild(l)};
l.getElementsByTagName("div").length>0?H=l.getElementsByTagName("div")[0]:(H=document.createElement("div"),l.appendChild(H));T=document.createElement("div");H.appendChild(T);x=document.createElement("video");n=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"});x.src=_.hV(RO(n));x.ontimeupdate=function(){I();V.resolve(0)};
T.appendChild(x);x.classList.add("html5-main-video");setTimeout(function(){T.classList.add("ad-interrupting")},200);
setTimeout(function(){I();V.resolve(1)},5E3);
return w.return(V.promise)})};
lS1=function(V,l){var I,H;return _.d(function(T){switch(T.nextAddress){case 1:I=[],H=0;case 2:if(!(H<3)){T.jumpTo(4);break}return _.K(T,fetch(V,{cache:"no-store",method:l}).then(function(x){I.push(x.status)}).catch(function(){I.push(-1)}),3);
case 3:H++;T.jumpTo(2);break;case 4:return T.return(I)}})};
IST=function(V){return V.domainLookupStart===0&&V.domainLookupEnd===0&&V.connectStart===0&&V.connectEnd===0};
HMK=function(V,l,I){I=I===void 0?"GET":I;var H,T,x,n,w,N,L,e,k,X;return _.d(function(r){if(r.nextAddress==1)return _.K(r,Promise.all([lS1(V,I),lS1(l,I)]),2);H=r.yieldResult;T=_.U(H);x=T.next().value;n=T.next().value;w=x;N=n;if(Math.min.apply(Math,_.oI(N))!==Math.max.apply(Math,_.oI(N))||Math.min.apply(Math,_.oI(w))!==Math.max.apply(Math,_.oI(w)))return r.return(2);if(Math.min.apply(Math,_.oI(N))===Math.min.apply(Math,_.oI(w)))return r.return(1);e=(L=performance.getEntriesByName(V))==null?void 0:L[0];
X=(k=performance.getEntriesByName(l))==null?void 0:k[0];return e&&X?IST(X)?r.return(1):IST(e)?r.return(0):r.return(1):r.return(2)})};
P5N=function(){var V;return _.d(function(l){var I=[];var H;var T,x,n;(T=H=(T=Vy().objectRepresentation.streamingData)==null?void 0:(x=T.formats)==null?void 0:(n=x[0])==null?void 0:n.url)&&T&&!H.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(T=T.replace("initcwndbps","ctier=L&initcwndbps"),H={testUrl:T,baseUrl:H,method:"GET"}):H=void 0;H&&I.push(H);_.z("ab_net_tp_e")&&I.push({testUrl:_.nK.location.origin+"/ad_companion",baseUrl:_.nK.location.origin+"/generate_204",method:"OPTIONS"});if(_.z("ad_net_pb_ab")){var w;
b:{H=/api\/stats\/ads/;var N,L,e,k;T=(w=Vy().objectRepresentation.adPlacements)==null?void 0:(N=w[0])==null?void 0:(L=N.adPlacementRenderer)==null?void 0:(e=L.renderer)==null?void 0:(k=e.linearAdSequenceRenderer)==null?void 0:k.linearAds;if(T!=null&&T.length&&(w=_.y(T[0],T9t))&&(w=w.pings,w!=null&&w.impressionPings))for(N=[].concat(_.oI(w.impressionPings)),w.progressPings&&(N=[].concat(_.oI(N),_.oI(w.progressPings))),w=_.U(N),N=w.next();!N.done;N=w.next())if(N=N.value,N.baseUrl&&H.test(N.baseUrl)){w=
N.baseUrl.replace("https://www.youtube.com","");break b}w=void 0}w&&I.push({testUrl:_.nK.location.origin+w,baseUrl:_.nK.location.origin+"/feed/download",method:"GET"})}if(_.z("ad_net_pb_pbp")){var X;b:{w=/api\/stats\/qoe/;if(N=Vy().objectRepresentation.playbackTracking){L=[];L.push(N==null?void 0:(X=N.videostatsPlaybackUrl)==null?void 0:X.baseUrl);var r;L.push(N==null?void 0:(r=N.videostatsDelayplayUrl)==null?void 0:r.baseUrl);var E;L.push(N==null?void 0:(E=N.videostatsWatchtimeUrl)==null?void 0:
E.baseUrl);var D;L.push(N==null?void 0:(D=N.ptrackingUrl)==null?void 0:D.baseUrl);var Z;L.push(N==null?void 0:(Z=N.qoeUrl)==null?void 0:Z.baseUrl);var S;L.push(N==null?void 0:(S=N.atrUrl)==null?void 0:S.baseUrl);X=_.U(L);for(r=X.next();!r.done;r=X.next())if((r=r.value)&&w.test(r)){X=r.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}X=void 0}X&&I.push({testUrl:_.nK.location.origin+X,baseUrl:_.nK.location.origin+"/feed/download",method:"GET"})}I=I.length!==0?I[Math.floor(Math.random()*
I.length)]:void 0;return(V=I)?l.return(HMK(V.testUrl,V.baseUrl,V.method)):l.return(4)})};
cf1=function(){return _.h6("ISDSTAT",2)};
Mfq=function(){if(_.nK.nGW===void 0||_.nK.nGW===null||typeof _.nK.nGW!=="function")return 2;try{return _.nK.nGW()===!0?0:1}catch(V){return 0}};
B9w=function(V){switch(V){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.AB(V,"unknown result type")}};
_.xo3=function(V,l){var I=Number(_.h6("CATSTAT",0));if(l.cYG===void 0)return I;l=l.cYG;V=B9w(V);return I&~(3<<l)|V<<l};
Uoq=function(V){var l,I;if((V=(l=V.auxiliaryUi)==null?void 0:(I=l.messageRenderers)==null?void 0:I.bkaEnforcementMessageViewModel)&&V.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return V};
_.TR=function(){if(!Hb){Hb=new wo(new nkW);var V=_.g7("client_streamz_web_flush_count",-1);V!==-1&&(Hb.invocationLimit=V)}return Hb};
dow=function(){for(var V=_.U(Object.values(_.$oK)),l=V.next();!l.done;l=V.next())l=l.value,l.isAsync&&l.cYG&&_.ow("CATSTAT",_.xo3(2,l))};
_.nY=function(V,l){V=_.Bb("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",V);(l===void 0?0:l)?_.w0w(V,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.xV(_.Uz(),V,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
KGK=function(){if(!N91){if(Polymer.Base){var V=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{V.apply(this,arguments)}catch(k){_.Dp(k)}};
var l=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{l.apply(this,arguments)}catch(k){_.Dp(k)}};
var I=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{I.apply(this,arguments)}catch(k){_.Dp(k)}};
var H=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{H.apply(this,arguments)}catch(k){_.Dp(k)}};
var T=Polymer.Base._listen,x=new WeakMap;Polymer.Base._listen=function(k,X,r){var E=function(){try{r.apply(this,arguments)}catch(D){_.Dp(D)}};
x.set(r,E);T.call(this,k,X,E)};
var n=Polymer.Base._unlisten;Polymer.Base._unlisten=function(k,X,r){n.call(this,k,X,x.get(r))}}if(Polymer.Async){var w=Polymer.Async,N=w._atEndOfMicrotask;
w._atEndOfMicrotask=function(){try{N.apply(w,arguments)}catch(k){_.Dp(k)}}}if(Polymer.RenderStatus){var L=Polymer.RenderStatus,e=L.afterNextRender;
L.afterNextRender=function(k,X,r){e.call(L,k,function(){try{X.apply(this,arguments)}catch(E){_.Dp(E)}},r)}}N91=!0}};
_.YEf=function(V){var l=V?_.Bx(V):"";if(l){if(l.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(l.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(l.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(l.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(l.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(l.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";l=l.toLowerCase();if(l==="/")return"home";if(l===
"/channel_memberships")return"channel-memberships-shopfront";if(l.indexOf("/feed/trending")===0)return"trending";if(l.indexOf("/feed/explore")===0)return"explore";if(l.indexOf("/live")===0)return"live";if(l.indexOf("/results")===0)return"search";if(l.indexOf("/sports")===0)return"sports";if(l.indexOf("/fashion")===0||l.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(l))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(l))return"learning";
if(l.indexOf("/channel/")===0||l.indexOf("/user/")===0||l.indexOf("/gaming")===0||l.indexOf("/post/")===0)return"channel";if(jH1(V))return"show";if(l==="/playlist"||l.indexOf("/playlist/")===0||l==="/view_play_list"||l.indexOf("/view_play_list/")===0||l.indexOf("/show/")===0)return"playlist";if(l==="/feed/history"||l.indexOf("/feed/history/")===0)return"history";if(l==="/new")return"labs";if(l==="/feed/subscriptions")return"subscriptions";if(l.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(l==="/history_controls")return"standalone";if(l.indexOf("/account")===0||l==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(l.indexOf("/paid_memberships")===0||l.indexOf("/refund")===0||l.indexOf("/purchases")===0||l.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(l.indexOf("/product")===0)return"yts-products";if(l.indexOf("/premium")===0||l.indexOf("/musicpremium")===0)return l.indexOf("/premium/offers")===0||l.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(l===
"/cart/checkout"||l==="/cart")return"ypc-checkout";if(l.indexOf("/feed/downloads")===0||l.indexOf("/redeem")===0||l.indexOf("/reporthistory")===0)return"browse";if(l.indexOf("/hashtag")===0)return"hashtag-landing-page";if(l.indexOf("/handle")===0)return"handle";if(l.indexOf("/source")===0)return"audio-pivot";if(l.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(l.indexOf("/playables")===0)return"playables";if(l.indexOf("/create/live/join")===0)return"open-in-app";if(l.indexOf("/shorts")===
0)return"shorts";if(l.indexOf("/feed/channels")===0)return"subscriptions-channels";(l=V?_.Bx(V):"")&&l.indexOf("/watch")===0&&_.z("web_watch_enable_learning_journey")?(V=_.bt(V),V=!!V.list&&V.list.indexOf("LJPP")===0):V=!1;if(V)return"learning-journey-watch"}};
jH1=function(V){var l=V?_.Bx(V):"";if(!l)return!1;l=l.toLowerCase();return l.indexOf("/show/")===0||l.indexOf("/playlist")===0&&(V=_.bt(V),V.list&&V.list.indexOf("EL")===0)?!0:!1};
KY=function(V){var l="unknown",I;var H=((I=_.y(V==null?void 0:V.commandMetadata,_.mK))==null?void 0:I.webPageType)||"";H?(I=H.toLowerCase(),I.startsWith("web_page_type_")&&(I=I.slice(14))):I=H;I&&LGg[I.toUpperCase()]?l=LGg[I.toUpperCase()]:_.y(V,_.$V)||_.y(V,eHJ)?l="browse":_.y(V,_.Nv)?l="search":_.y(V,_.vU)&&(l="watch");l==="unknown"&&_.hF(Error("Lf`"+JSON.stringify({clickTrackingParams:V==null?void 0:V.clickTrackingParams,commandMetadata:V==null?void 0:V.commandMetadata,allEndpointKeys:Object.keys(V||
[])})));return l};
_.jD=function(V){if(!_.k8q||V)_.k8q=_.LG();return _.k8q};
_.FGN=function(V){return!!_.y(V,_.vU)||!!_.y(V,_.YV)&&_.z("kevlar_enable_shorts_prefetch")};
_.X0K=function(V,l){V=_.y(V,_.vU)||_.y(V,_.YV);return"v"+V.videoId+(V.playlistId?"-pl"+V.playlistId:"")+(l?"-an1":"")+(V.params?"-pr"+V.params:"")};
yNc=function(V){var l=_.g7("web_pbj_log_warning_rate",0);l=l>0&&Math.random()<l;if(!_.y(V,_.YV))return l&&_.hF(Error("Of")),!1;var I;return _.z("shorts_controller_retrieve_seedless_sequence_v2")&&((I=_.y(V,_.YV))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:zH1(V)?!0:(l&&_.hF(Error("Pf")),!1)};
zH1=function(V){var l=(_.y(V,_.vU)||_.y(V,_.YV)).videoId;if(!l||!tEN.test(l))return!1;var I;return(V=(I=_.y(V.commandMetadata,_.mK))==null?void 0:I.url)&&(V.includes(l)||V.startsWith("/clip"))?!0:!1};
_.G8J=function(){var V=_.Fu();return V.getFlag(192)?V.getFlag(190):!(_.z("web_watch_cinematics_disabled_by_default")||_.z("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&rNN())};
_.LY=function(V,l,I){var H={};H.currentUrl=l;H.vis=V.vis!==void 0?V.vis:0;H.splay=!1;l=_.Fu();H.autoCaptionsDefaultOn=l.getFlag(66);l.getFlag(141)?l.getFlag(140)?H.autonavState="STATE_OFF":H.autonavState="STATE_ON":H.autonavState="STATE_NONE";H.html5Preference="HTML5_PREF_WANTS";isNaN(_.h6("STS"))||(H.signatureTimestamp=_.h6("STS"));V.autonav&&(H.autoplay=!0,H.autonav=!0);V.mutedAutoplay&&(H.autoplay=!0,H.mutedAutoplay=!0);V.inlinePlayback&&(H.autoplay=!0,H.autonav=!1,H.isInlineUnmutedPlayback=!!V.inlineUnmuted);
H.referer=I;H.lactMilliseconds=V.lact!==void 0?V.lact.toString():"-1";_.z("enable_unknown_lact_fix_on_html5")&&H.lactMilliseconds==="-1"&&_.hF(new _.Yd("Unknown LACT is set in playbackContext.",{"lact in tempData":V.lact||"undefined",autonav:V.autonav||"undefined"}));V={};l.getFlag(194)&&(V.hasShownAmbientMode=!0);l.getFlag(192)&&(V.hasToggledOffAmbientMode=!0);_.G8J()&&(V.watchAmbientModeEnabled=!0);H.watchAmbientModeContext=V;return H};
EkK=function(V){var l={},I=V.pbis||0;I&&(l.playbackBeginsInSeconds=I);V.prefetch_reason&&V.prefetch_reason==="hc_pbis"&&(l.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return l};
_.JNN=function(V){var l=new eD(_.h6("ONE_PICK_URL",""));l.urlParamMap_.set("hostId",V);(V=_.h6("GAPI_LOCALE"))&&l.urlParamMap_.set("hl",V);(V=_.h6("SESSION_INDEX"))&&l.urlParamMap_.set("authuser",V);(V=_.h6("DELEGATED_SESSION_ID"))&&l.urlParamMap_.set("groupId",V);return l};
hH3=function(){var V=_.F(),l=V.resolve(_.kV);V=V.resolve(_.FM);return new okT(l,V)};
DoT=function(V){if(window.IntersectionObserver)return new PMf(V,400);throw new TypeError("Yf");};
SEt=function(){var V=Hammer.TouchAction,l=V.prototype.preventDefaults;V.prototype.preventDefaults=function(I){var H=this.actions.indexOf("pan-down")>-1;if(!H)return l.call(this,I);if(!ZMf){var T=I.srcEvent;I=I.direction;var x;if((x=this.manager)==null?0:x.session.prevented)T.preventDefault();else if(H&&I&Hammer.DIRECTION_DOWN)return this.preventSrc(T)}}};
RH1=function(V){if(!V||V.size===0)return Hammer.DIRECTION_ALL;if(V.size===2){if(V.has("up")&&V.has("down"))return Hammer.DIRECTION_VERTICAL;if(V.has("right")&&V.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(V.size===1){if(V.has("up"))return Hammer.DIRECTION_UP;if(V.has("down"))return Hammer.DIRECTION_DOWN;if(V.has("right"))return Hammer.DIRECTION_RIGHT;if(V.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.cNw=function(){return QHJ?Promise.resolve(QHJ):new Promise(function(V,l){var I=self.indexedDB.open("swpushnotificationsdb");I.onerror=l;I.onsuccess=function(){var H=I.result;if(H.objectStoreNames.contains("swpushnotificationsstore"))QHJ=H,V(QHJ);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.cNw()};
I.onupgradeneeded=WG1})};
WG1=function(V){V=V.target.result;V.objectStoreNames.contains("swpushnotificationsstore")&&V.deleteObjectStore("swpushnotificationsstore");V.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
qEN=function(V){var l=bMW(),I;return _.d(function(H){switch(H.nextAddress){case 1:return _.jd(H,2),_.K(H,V.match(l,{cacheName:"yt-appshell-assets"}),4);case 4:I=H.yieldResult;_.Rv(H,3);break;case 2:_.kE(H);case 3:return H.return(I)}})};
bMW=function(){var V=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?MEt.registration.scope:sHJ;V.endsWith("/")&&(V=V.slice(0,-1));return V+"/app_shell_home"};
p0w=function(V){V.map(function(l){return l.source}).join("|")};
_.AN1=function(V){return _.d(function(l){return l.return(qEN(V))})};
uYN=function(){var V=window.caches,l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,_.AN1(V),2);l=I.yieldResult;return I.return(!!l)})};
mo1=function(){_.d(function(V){if(V.nextAddress==1){if(vkt)return V.jumpTo(0);vkt=!0;if(_.z("enable_system_health_primes_monitoring"))return _.Hx(OMf,3E4),CMN(),V.return();if(!(Math.random()<_.g7("web_system_health_fraction")))return V.jumpTo(0);aSt={heightPixels:screen.height,widthPixels:screen.width};XM&&!isNaN(XM.jsHeapSizeLimit)&&(aSt.memoryTotalKbytes=String(Math.round(XM.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(aSt.devicePixelRatio=window.devicePixelRatio);return _.K(V,fSg(),4)}_.Hx(OMf,
3E4);return _.K(V,gkt(),0)})};
fSg=function(){return _.d(function(V){if(V.nextAddress==1)return zR.intersectionObserverPresent="IntersectionObserver"in window,zR.serviceWorkerPresent="serviceWorker"in navigator,zR.webSharePresent="share"in navigator,zR.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,zR.cacheStoragePresent="caches"in window,zR.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,zR.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
zR.webkitTemporaryStoragePresent="webkitTemporaryStorage"in yy&&yy.webkitTemporaryStorage&&"queryUsageAndQuota"in yy.webkitTemporaryStorage,zR.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.K(V,QAc(),2);zR.indexedDbPresent=V.yieldResult;zR.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;zR.broadcastChannelPresent="BroadcastChannel"in window;zR.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(zR.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,zR.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.FU(V)})};
OMf=function(){var V=9E4+Math.random()*2E3;_.f0()>V||(_.z("enable_system_health_primes_monitoring")?CMN():gkt())};
gkt=function(){var V;return _.d(function(l){if(l.nextAddress==1)return _.K(l,iMN(),2);V=l.yieldResult;_.tF("systemHealthCaptured",V);_.FU(l)})};
CMN=function(){var V={metric:{}},l=Vyc();l.networkEvents.length&&(V.metric.networkEvents=lmc(l));_.tF("systemHealthCaptured",V)};
iMN=function(){var V,l,I,H,T,x,n,w,N,L;return _.d(function(e){switch(e.nextAddress){case 1:V={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)};l=window.screen;_.z("enable_is_extended_monitoring")&&l&&"isExtended"in l&&(V.isExtended=!!l.isExtended);I={metric:{staticContext:aSt,dynamicContext:V,webMetric:Imq,webApiSupport:zR}};
if(H=_.oa())I.csn=H;XM&&(I.metric.webMetric.currentHeapKbytes=Math.round(XM.usedJSHeapSize/1E3));window.matchMedia&&(I.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,I.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,I.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in yy&&typeof yy.getBattery==="function")){e.jumpTo(2);break}return _.K(e,yy.getBattery(),3);case 3:if(T=
e.yieldResult)I.metric.dynamicContext.chargingStatus=T.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(I.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(zR.storageEstimatePresent)return _.K(e,navigator.storage.estimate(),8);if(!zR.webkitTemporaryStoragePresent){e.jumpTo(5);break}return _.K(e,Hz1(),7);case 7:x=e.yieldResult;e.jumpTo(5);break;case 8:x=e.yieldResult;case 5:return I.metric.dynamicContext.deviceStorageQuotaMbytes=((n=x)==null?0:n.quota)?String(Math.round(x.quota/
1048576/10)*10):"-1",I.metric.dynamicContext.deviceStorageUsageMbytes=((w=x)==null?0:w.usage)?String(Math.round(x.usage/1048576/10)*10):"-1",N=I.metric.dynamicContext,_.K(e,uYN(),9);case 9:return N.hasAppShell=e.yieldResult,L=Vyc(),L.networkEvents.length&&(I.metric.networkEvents=lmc(L)),e.return(I)}})};
Hz1=function(){return new Promise(function(V){var l;zR.webkitTemporaryStoragePresent&&(l=yy.webkitTemporaryStorage)!=null&&l.queryUsageAndQuota?yy.webkitTemporaryStorage.queryUsageAndQuota(function(I,H){V({usage:I,quota:H})}):V(void 0)})};
_.tv=function(V){V&=16777215;V=[(V&16711680)>>16,(V&65280)>>8,V&255];return Tc1(V[0],V[1],V[2])};
_.rP=function(V){V=[(V&16711680)>>>16,(V&65280)>>>8,V&255,(V&4278190080)>>>24];var l=_.Bcg(V,function(I){return I==(I&255)});
V[3]=(V[3]/255).toFixed(3);if(!l)throw Error("Zf`"+V.join(","));return"rgba("+V.join(",")+")"};
_.x6t=function(V){return[(V&16711680)>>>16,(V&65280)>>>8,V&255]};
_.U61=function(V){V=V.map(function(l){l/=255;return l<=.03928?l/12.92:Math.pow((l+.05)/1.05,2.4)});
return V[0]*.2126+V[1]*.7152+V[2]*.0722};
GR=function(V,l){V=_.x6t(V);return"rgba("+V[0]+", "+V[1]+", "+V[2]+", "+l+")"};
_.nr1=function(){try{return!!self.localStorage}catch(V){return!1}};
Nct=function(){if($6J())_.hF(Error("$f"));else{var V=document.createElement("iframe");V.style.display="none";var l=l===void 0?window.location.href:l;var I=_.GQ(_.h6("PERSIST_IDENTITY_IFRAME_URL"));l=I?I:(new URL(l)).host.indexOf("studio")===0?_.TP(d6W,"persist_identity"):_.TP(w7W,"persist_identity");_.vnt(V,1,l);V.id="persist_identity";var H;(H=document.body)==null||H.appendChild(V)}};
$6J=function(){var V=KaT;V||(V=document.querySelector("#persist_identity"));return V};
jDT=function(){var V=!1;try{V=!!window.sessionStorage.getItem("session_logininfo")}catch(l){V=!0}return(_.h6("INNERTUBE_CLIENT_NAME")==="WEB"||_.h6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&V};
YuJ=function(V,l){if(!jDT())return!1;l||(l=_.h6("LOGIN_INFO"));return l?(V.session_logininfo=l,!0):!1};
eSf=function(V,l){V=V===void 0?!1:V;if((l===void 0||!l)&&LaN!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.PO("LOG_STICKINESS",!1)){l=_.oa();var I=_.JO(),H={identityStickinessData:{initialState:LaN}};l&&I&&_.O4(l,I,H)}if(l=$6J())if(I=l.src?(new URL(l.src)).origin:"*",V){var T;(T=l.contentWindow)==null||T.postMessage({action:"clear"},I)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(V=window.sessionStorage.getItem("session_logininfo"))){var x;(x=l.contentWindow)==null||x.postMessage({loginInfo:V},I)}};
_.Ez=function(V){V=V===void 0?!0:V;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.ow("LOGIN_INFO",""),V&&window.sessionStorage.setItem("from_switch_account","1"),eSf(!0,V)}catch(l){}};
k91=function(V){V&&(V.startsWith("https://accounts.google.com/AddSession")?_.Ez():V.startsWith("https://accounts.google.com/ServiceLogin")?_.Ez():V.startsWith("https://myaccount.google.com")&&_.Wv(V).getPath().endsWith("/youtubeoptions")&&_.Ez())};
Jv=function(V,l){k91(V);if(_.PO("LOGGED_IN",!0)&&jDT()){var I=ih1(V);I==null&&(I={});YuJ(I,l)&&_.f8(V,I)}};
Fat=function(){function V(l){for(l=l.target;l&&l.nodeName!=="A";)if(l=l.parentNode,!(l&&l instanceof HTMLElement))return;if(l&&!l.hasAttribute("download")&&l.getAttribute("rel")!=="external"&&l.href)return l.href}
document.addEventListener("mousedown",function(l){l.button!==0&&(l=V(l))&&Jv(l)});
document.addEventListener("click",function(l){(l=V(l))&&Jv(l)})};
y71=function(){var V=new X73;try{if(_.PO("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(w){V.increment(5,!1);return}if(_.h6("LOGIN_INFO")){var l=zST?zST:window.location;_.h6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Nct();var I=ih1(l.href);I==null&&(I={});var H=I.session_logininfo,T=Number(window.sessionStorage.getItem("stickiness_reload")),x=H===_.h6("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
T>=2||x)T>=2?V.increment(2,x):x?V.increment(7,x):window.sessionStorage.getItem("session_logininfo")||(V.increment(3,x),LaN="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.h6("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.h6("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))V.increment(4,x),window.sessionStorage.removeItem("stickiness_reload");
else if(T<2){window.sessionStorage.setItem("stickiness_reload",String(T+1));var n=l.href;n=_.gS(n,"sttick");Jv(n,window.sessionStorage.getItem("session_logininfo"));n=_.qS(n,{sttick:T});V.increment(T,x);_.idK(l,n)}}else V.increment(6,!1)}else _.Ez(!1)}catch(w){}};
_.oQ=function(V,l,I,H,T){l=l===void 0?{}:l;I=I===void 0?"":I;H=H===void 0?window:H;V=_.MS(V,l);Jv(V);I=_.S6(V+I,T);_.idK(H.location,I)};
tyT=function(V){if(V.urlEndpoint){if(V=_.bt(V.urlEndpoint.url),V.adurl)return vO(V.adurl)}else if(V.watchEndpoint)return"//www.youtube.com/watch?v="+V.watchEndpoint.videoId;return null};
r7J=function(V){if(!V||!V.reportingPings)return null;var l={};V.reportingPings.forEach(function(I){I.pingType in l?l[I.pingType].push(I.url):l[I.pingType]=[I.url]});
return{adpings:dJc(l)}};
_.Pb=function(V){V=V===void 0?!1:V;var l=_.Fu(),I="USER_INTERFACE_THEME_LIGHT";l.getFlag(165)?I="USER_INTERFACE_THEME_DARK":l.getFlag(174)?I="USER_INTERFACE_THEME_LIGHT":_.hv()&&(I="USER_INTERFACE_THEME_DARK");return V?I:G9t()||I};
_.Er1=function(){return!_.z("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.hv=function(){return _.Er1()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Df=function(){var V=_.Fu();return _.Er1()&&!V.getFlag(165)&&!V.getFlag(174)};
G9t=function(){var V=V===void 0?window.location.href:V;if(_.z("kevlar_disable_theme_param"))return null;var l=_.Bx(V);if(_.J7q(l))return"USER_INTERFACE_THEME_DARK";try{var I=_.bt(V).theme;return orW.get(I)||null}catch(H){}return null};
_.J7q=function(V){return _.z("enable_dark_theme_only_on_shorts")?!(V==null||!V.startsWith("/shorts/")):!1};
_.D6N=function(V,l,I,H,T){l=l===void 0?!1:l;I=I===void 0?!1:I;var x=_.h6("INNERTUBE_CONTEXT");if(!x)return _.Gr(Error("dg")),{};x=(0,_.EL.unsafeClone)(x);_.z("web_no_tracking_params_in_shell_killswitch")||delete x.clickTracking;x.client||(x.client={});var n=x.client;n.clientName==="MWEB"&&n.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(n.clientFormFactor=_.h6("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");n.screenWidthPoints=window.innerWidth;n.screenHeightPoints=window.innerHeight;n.screenPixelDensity=
Math.round(window.devicePixelRatio||1);n.screenDensityFloat=window.devicePixelRatio||1;n.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());n.userInterfaceTheme=_.Pb();if(!l){var w=_.HWK();w&&(n.connectionType=w);_.z("web_log_effective_connection_type")&&(w=BJK())&&(x.client.effectiveConnectionType=w)}var N;if(_.z("web_log_memory_total_kbytes")&&((N=_.nK.navigator)==null?0:N.deviceMemory)){var L;N=(L=_.nK.navigator)==null?void 0:L.deviceMemory;x.client.memoryTotalKbytes=""+N*1E6}l&&H&&!_.z("web_it_context_set_original_url_ks")&&
(n.originalUrl=hSg(_.nK.location.href,H).toString());_.z("web_gcf_hashes_innertube")&&(w=LLT())&&(L=w.coldConfigData,N=w.coldHashData,w=w.hotHashData,x.client.configInfo=x.client.configInfo||{},L&&(x.client.configInfo.coldConfigData=L),N&&(x.client.configInfo.coldHashData=N),w&&(x.client.configInfo.hotHashData=w));L=_.bt(_.nK.location.href);!_.z("web_populate_internal_geo_killswitch")&&L.internalcountrycode&&(n.internalGeo=L.internalcountrycode);!_.z("web_populate_client_screen_killswitch")&&T&&(n.clientScreen=
T);n.clientName==="MWEB"||n.clientName==="WEB"?(n.mainAppWebInfo={graftUrl:H||_.nK.location.href},_.z("kevlar_woffle")&&_.Zf.instance&&(H=_.Zf.instance,n.mainAppWebInfo.pwaInstallabilityStatus=!H.appInstalledEventFired&&H.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),n.mainAppWebInfo.webDisplayMode=nVW(),n.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):n.clientName==="TVHTML5"&&(!_.z("web_lr_app_quality_killswitch")&&
(H=_.h6("LIVING_ROOM_APP_QUALITY"))&&(n.tvAppInfo=Object.assign(n.tvAppInfo||{},{appQuality:H})),H=_.h6("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(n.tvAppInfo=Object.assign(n.tvAppInfo||{},{certificationScope:H}));!_.z("web_populate_time_zone_itc_killswitch")&&(H=lwy())&&(n.timeZone=H);(H=ycT())?n.experimentsToken=H:delete n.experimentsToken;n=t1c();H=_.PLW();H=(0,_.EL.getValues)(H.tokenJars);x.request=Object.assign({},x.request,{internalExperimentFlags:n,consistencyTokenJars:H});!_.z("web_prequest_context_killswitch")&&
(n=_.h6("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(x.request.externalPrequestContext=n);H=_.Fu();n=H.getFlag(58);H=H.get("gsml","");x.user=Object.assign({},x.user);n&&(x.user.enableSafetyMode=n);H&&(x.user.lockedSafetyMode=!0);_.z("warm_op_csn_cleanup")?I&&(l=_.oa())&&(x.clientScreenNonce=l):!l&&(l=_.oa())&&(x.clientScreenNonce=l);V&&(x.clickTracking={clickTrackingParams:V});if(V=_.SN("yt.mdx.remote.remoteClient_"))x.remoteClient=V;_.SD.getInstance().setLocationOnInnerTubeContext(x);try{var e=S41(),
k=e.bid;delete e.bid;x.adSignalsInfo={params:[],bid:k};for(var X=_.U(Object.entries(e)),r=X.next();!r.done;r=X.next()){var E=_.U(r.value),D=E.next().value,Z=E.next().value;e=D;k=Z;V=void 0;(V=x.adSignalsInfo.params)==null||V.push({key:e,value:""+k})}var S,p;if(((S=x.client)==null?void 0:S.clientName)==="TVHTML5"||((p=x.client)==null?void 0:p.clientName)==="TVHTML5_UNPLUGGED"){var Vf=_.h6("INNERTUBE_CONTEXT");Vf.adSignalsInfo&&(x.adSignalsInfo.advertisingId=Vf.adSignalsInfo.advertisingId,x.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",x.adSignalsInfo.limitAdTracking=Vf.adSignalsInfo.limitAdTracking)}}catch(C){_.Gr(C)}return x};
_.RQ=function(){return{isShellLoad:_.PO("IS_SHELL_LOAD",!1)}};
SuN=function(){navigator.serviceWorker.getRegistrations().then(function(V){V.forEach(Zzq)})};
Zzq=function(V){V&&_.RS1(QD3,V.scope)};
_.RS1=function(V,l){l={scope:l||_.m_("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.tV(V),l)};
Qy=function(V,l,I,H){if(l&&l.serializedYpcCujLoggingParams){if(I){var T={};T.transactionErrorType=I;H&&(T.errorMessage=H);l.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:T}}}I={};I.ypcCujContext=l;V=_.Bb("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",V,I);_.xV(_.Uz(),V,"FLOW_TYPE_YPC_ACQUISITION")}};
_.c7W=function(V,l,I,H){var T={};T.serializedTransactionFlowLoggingParams=l;I&&(T.errorType=I);H&&(T.errorMessage=H);_.tF(V,T);_.rT()};
_.Wat=function(V){V&&_.c7W("transactionFlowStarted",V)};
_.bzK=function(V){V&&_.c7W("transactionFlowCancelled",V)};
_.cb=function(V,l,I){l&&_.c7W("transactionFlowFailed",l,V,I)};
_.Wb=function(){this.megabloxUrl_=null};
_.b3=function(V){try{var l=quf==null?void 0:quf.composedPath(V)}catch(I){l=V.composedPath?V.composedPath():[]}return l&&l.length>0?l:V.composedPath?V.composedPath():[]};
_.qv=function(V){return _.b3(V)[0]};
_.Mv=function(V){if(!(V instanceof Element))return null;V=V.classList?Array.from(V.classList):void 0;if(!V)return null;var l=V.indexOf("style-scope");return l>-1&&l+1<V.length?V[l+1]:null};
sz=function(V){if(!(V instanceof HTMLElement))return null;var l=V&&(V.$$||V.polymerController)?V.tagName.toLowerCase():null;return l?l:_.Mv(V)};
MyN=function(V,l){return V.replace(/[^a-z]*[^\s]+/g,function(I){return I+".style-scope."+l})};
sD1=function(V,l){return l?V.split(",").map(function(I){return MyN(I.trim(),l)}).join(", "):V};
_.pY=function(V){var l,I,H,T;return(T=(H=(I=(l=V.root)!=null?l:V.shadowRoot)!=null?I:V.__shady_native_shadowRoot)!=null?H:V.__shady_shadowRoot)!=null?T:V};
Av=function(V){return V instanceof ShadowRoot?ShadowRoot:V instanceof DocumentFragment?DocumentFragment:V instanceof Document?Document:HTMLElement};
p7T=function(V){var l,I,H;return(H=(I=(l=V.parentElement)!=null?l:V.__shady_native_parentElement)!=null?I:V.__shady_parentElement)!=null?H:null};
A7N=function(V){var l,I,H;return(H=(I=(l=V.parentNode)!=null?l:V.__shady_native_parentNode)!=null?I:V.__shady_parentNode)!=null?H:null};
uAK=function(V){var l,I,H;return(H=(I=(l=V.__shady_parentNode)!=null?l:V.__shady_native_parentNode)!=null?I:V.parentNode)!=null?H:null};
vr3=function(V){var l,I;return(I=(l=A7N(V))!=null?l:V.host)!=null?I:null};
Oz1=function(V){var l,I,H;return(H=(I=(l=V.nextSibling)!=null?l:V.__shady_native_nextSibling)!=null?I:V.__shady_nextSibling)!=null?H:null};
CLq=function(V){var l,I,H;return(H=(I=(l=V.previousSibling)!=null?l:V.__shady_native_previousSibling)!=null?I:V.__shady_previousSibling)!=null?H:null};
amW=function(V){var l,I,H;return(H=(I=(l=V.nextElementSibling)!=null?l:V.__shady_native_nextElementSibling)!=null?I:V.__shady_nextElementSibling)!=null?H:null};
fmN=function(V){var l,I,H;return(H=(I=(l=V.previousElementSibling)!=null?l:V.__shady_native_previousElementSibling)!=null?I:V.__shady_previousElementSibling)!=null?H:null};
gr1=function(V){var l,I,H;return new Set([].concat(_.oI((l=V.children)!=null?l:[]),_.oI((I=V.__shady_native_children)!=null?I:[]),_.oI((H=V.__shady_children)!=null?H:[])))};
m6t=function(V){var l,I,H;return new Set([].concat(_.oI((l=V.childNodes)!=null?l:[]),_.oI((I=V.__shady_native_childNodes)!=null?I:[]),_.oI((H=V.__shady_childNodes)!=null?H:[])))};
iz3=function(V){if(!V)return null;var l=_.Mv(V);if(!l){var I;return(I=Node.prototype.getRootNode)==null?void 0:I.call(V)}l=l.toUpperCase();for(V=p7T(V);V&&V.tagName!==l;)V=p7T(V);return V?_.pY(V):null};
VA3=function(V){for(;V&&!(V instanceof HTMLElement);)V=vr3(V);return V};
l5c=function(V){var l=VA3(V);return V===l?_.Mv(V):l?sz(l):null};
I5T=function(V){return(V=VA3(V))?sz(V):null};
Hww=function(V){if(V instanceof Comment)return!1;if(V instanceof Text){var l,I;if(((I=(l=V.textContent)==null?void 0:l.trim())!=null?I:"")==="")return!1}return!0};
u3=function(V,l,I){var H=l(V);for(I=I===void 0?I5T(V):I;H&&(l5c(H)!==I||!Hww(H));)V=H,H=l(V);return H};
TM1=function(V,l,I){if(!l)return null;V=I5T(V);return l5c(l)===V&&Hww(l)?l:u3(l,I,V)};
BMy=function(V){return u3(V,uAK,_.Mv(V))};
xCN=function(V){return u3(V,amW)};
UCK=function(V){return u3(V,Oz1)};
nQt=function(V){return u3(V,fmN)};
$C1=function(V){return u3(V,CLq)};
dC1=function(V){return TM1(V,V.firstChild||V.__shady_native_firstChild||V.__shady_firstChild||null,Oz1)};
wBN=function(V){var l,I,H;var T=(H=(I=(l=V.firstElementChild)!=null?l:V.__shady_native_firstElementChild)!=null?I:V.__shady_firstElementChild)!=null?H:null;return TM1(V,T,amW)};
NMc=function(V){var l,I,H;var T=(H=(I=(l=V.lastChild)!=null?l:V.__shady_native_lastChild)!=null?I:V.__shady_lastChild)!=null?H:null;return TM1(V,T,CLq)};
KQT=function(V){var l,I,H;var T=(H=(I=(l=V.lastElementChild)!=null?l:V.__shady_native_lastElementChild)!=null?I:V.__shady_lastElementChild)!=null?H:null;return TM1(V,T,fmN)};
j_c=function(V){var l=I5T(V);return Array.from(m6t(V)).filter(function(I){return l5c(I)===l})};
Y5y=function(V){var l=sz(V);return Array.from(gr1(V)).filter(function(I){return _.Mv(I)===l})};
_.vb=function(V,l,I){if(V instanceof HTMLElement&&_.Mv(V)===I){var H=Array.from(V.classList).indexOf("style-scope");if(H===-1)V.classList.add("style-scope"),V.classList.add(l);else if(!(H+1>=V.classList.length)){H=V.classList[H+1];var T,x;V==null||(T=V.classList)==null||(x=T.replace)==null||x.call(T,H,l)}}if(V instanceof HTMLElement||V instanceof DocumentFragment)for(T=_.U(gr1(V)),x=T.next();!x.done;x=T.next())_.vb(x.value,l,I);return V};
Oz=function(V,l){if(V instanceof HTMLElement&&_.Mv(V)===l){var I=Array.from(V.classList).indexOf("style-scope");I===-1||I+1>=V.classList.length||V.classList.remove("style-scope",V.classList[I+1])}if(V instanceof HTMLElement||V instanceof DocumentFragment){I=_.U(V.children);for(var H=I.next();!H.done;H=I.next())Oz(H.value,l)}return V};
_.LQT=function(V,l){return Av(V).prototype.appendChild.call(V,l)};
ecf=function(V,l){if(V===l)return!0;V=m6t(V);return Array.from(V).some(function(I){return ecf(I,l)})};
_.h=function(V,l){if(V instanceof CY)return V;(l==null?0:l.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(V,"ownerDocument")&&Object.defineProperty(V,"ownerDocument",{get:function(){return window.document}});
return new CY(V)};
FQw=function(){var V=CY.prototype,l=[].concat(_.oI(kxJ?[]:["getRootNode"]),["setAttribute","removeAttribute"]);l=_.U(l);for(var I=l.next(),H={};!I.done;H={method$jscomp$48:void 0},I=l.next())H.method$jscomp$48=I.value,V[H.method$jscomp$48]=function(T){return function(){return this.host[T.method$jscomp$48].apply(this.host,arguments)}}(H)};
zct=function(){var V=CY.prototype,l=[].concat(_.oI(kxJ?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.oI(XBt?[]:["querySelector","querySelectorAll"]));l=_.U(l);for(var I=l.next(),H={};!I.done;H={method$jscomp$49:void 0},I=l.next())H.method$jscomp$49=I.value,V[H.method$jscomp$49]=function(T){return function(){return this.root[T.method$jscomp$49].apply(this.root,arguments)}}(H)};
rDy=function(){var V=CY.prototype,l=[].concat(_.oI(yDK?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.oI(tA1?[]:["parentNode"]));l=_.U(l);for(var I=l.next(),H={};!I.done;H={prop$jscomp$62:void 0},I=l.next())H.prop$jscomp$62=I.value,Object.defineProperty(V,H.prop$jscomp$62,{get:function(T){return function(){return this.host[T.prop$jscomp$62]}}(H),
configurable:!0})};
JDc=function(){var V=CY.prototype,l=["activeElement"].concat(_.oI(yDK?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.oI(GxK?[]:["children"]),_.oI(EQt?[]:["lastChild"]));l=_.U(l);for(var I=l.next(),H={};!I.done;H={prop$jscomp$63:void 0},I=l.next())H.prop$jscomp$63=I.value,Object.defineProperty(V,H.prop$jscomp$63,{get:function(T){return function(){return this.root[T.prop$jscomp$63]}}(H),
configurable:!0})};
oQT=function(){for(var V=CY.prototype,l=_.U(["innerHTML","textContent"]),I=l.next(),H={};!I.done;H={prop$jscomp$64:void 0},I=l.next())H.prop$jscomp$64=I.value,Object.defineProperty(V,H.prop$jscomp$64,{get:function(T){return function(){return this.root[T.prop$jscomp$64]}}(H),
set:function(T){return function(x){this.root[T.prop$jscomp$64]=x}}(H),
configurable:!0})};
hcw=function(V){var l=CY.prototype;V=_.U(Object.entries(V));for(var I=V.next(),H={};!I.done;H={fn$jscomp$359:void 0},I=V.next()){var T=_.U(I.value);I=T.next().value;T=T.next().value;H.fn$jscomp$359=T;l[I]=function(x){return function(){return x.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.oI(arguments)))}}(H)}};
DCJ=function(){for(var V=CY.prototype,l=_.U(Object.entries(PST)),I=l.next(),H={};!I.done;H={fn$jscomp$360:void 0},I=l.next()){var T=_.U(I.value);I=T.next().value;T=T.next().value;H.fn$jscomp$360=T;Object.defineProperty(V,I,{get:function(x){return function(){return x.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.oI(arguments)))}}(H),
configurable:!0})}};
_.aQ=function(V){return V instanceof Zww||V instanceof Document?V:new Zww(V)};
S5T=function(){for(var V=Zww.prototype,l=_.U("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),I=l.next(),H={};!I.done;H={method$jscomp$50:void 0},I=l.next())H.method$jscomp$50=I.value,V[H.method$jscomp$50]=function(T){return function(){return HTMLElement.prototype[T.method$jscomp$50].call.apply(HTMLElement.prototype[T.method$jscomp$50],[this.node].concat(_.oI(arguments)))}}(H)};
Rc1=function(){for(var V=Zww.prototype,l=_.U("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),I=l.next(),H={};!I.done;H={prop$jscomp$65:void 0},I=l.next())H.prop$jscomp$65=I.value,Object.defineProperty(V,H.prop$jscomp$65,{get:function(T){return function(){var x;return(x=this.node["__shady_native_"+T.prop$jscomp$65])!=null?x:this.node[T.prop$jscomp$65]}}(H),
configurable:!0})};
_.fY=function(V,l,I){I===void 0&&(I=!V.classList.contains(l));I?V.classList.add(l):V.classList.remove(l)};
_.gP=function(V,l,I){I===void 0&&(I=!V.hasAttribute(l));if(l==="class")throw Error("hg");I?_.aQ(V).setAttribute(l,""):_.aQ(V).removeAttribute(l)};
Q_g=function(V){return(V.localName!=="slot"?[]:(0,_.mL)(V).assignedNodes({flatten:!0})).filter(function(l){return l.nodeType===Node.ELEMENT_NODE})};
_.cDt=function(V){return(V=_.h(V).querySelector("slot"))&&V.localName==="slot"?Q_g(V):[]};
_.i3=function(V,l){window.ShadyCSS&&window.ShadyCSS.styleSubtree(V,l)};
WQg=function(V,l){var I=l.bind(V);return function(H){I(H,H.detail)}};
_.VP=function(V,l){var I=bw1.get(V);I||(I=new WeakMap,bw1.set(V,I));if(I.has(l))return I.get(l);if(_.z("web_fi_listen_disable_bound_fn_helper")){var H=l.bind(V);V=function(T){H(T,T==null?void 0:T.detail)}}else V=WQg(V,l);
I.set(l,V);return V};
s_T=function(V,l){q5g(V);V.created[MAt].push(l)};
q5g=function(V){if(!V.created||!V.created[MAt]){var l=V.created,I=l?[l]:[];V.created=function(){for(var H=_.U(I),T=H.next();!T.done;T=H.next())T.value.apply(this)};
V.created[MAt]=I}};
pBN=function(V){return function(){var l=_.Q5.apply(0,arguments);return function(I,H,T){V.apply(null,_.oI(l))(I,H,T)}}};
AD1=function(){return function(){var V=_.Q5.apply(0,arguments);return function(l,I,H){eKt.apply(null,_.oI(V))(l,I,H)}}};
_.R=function(V){return AD1()(V)};
_.Q=function(){return pBN(zKw).apply(null,_.oI(_.Q5.apply(0,arguments)))};
_.W=function(V){return _.z("pbcm_fi_listen_decorators")?u1W(V):pBN(FJt)(V)};
u1W=function(V){return function(l,I){s_T(l,function(){var H=this[I],T=_.z("web_fi_listen_disable_bound_fn_helper")?function(x){H(x,x.detail)}.bind(this):WQg(this,H);
vQ1.has(V)?GO(this.hostElement,V,T):this.hostElement.addEventListener(V,T)})}};
_.b=function(){return pBN(Xi1).apply(null,_.oI(_.Q5.apply(0,arguments)))};
_.q=function(V){V=V===void 0?{}:V;return pBN(keN)(V)};
_.lf=function(V){if(V.hostElement&&V!==V.hostElement){var l=_.Xb(V.hostElement);l=V.renderIdom?l:l.shadowRoot}l||(V=V.root,l=V instanceof Node?_.Xb(V):null);return l};
_.Ij=function(V){return OwW?CSf(V):function(l,I){Object.defineProperty(l,I,{get:function(){var H;return(H=_.lf(this))==null?void 0:H.querySelector(V)},
enumerable:!0,configurable:!0})}};
CSf=function(V){return function(l,I){Object.defineProperty(l,I,{get:function(){var H,T=(H=_.h(this.hostElement))==null?void 0:H.querySelector(V);if(T)return T;var x;H=(x=this.is)!=null?x:"yt-undefined-target";a5W!=null||(a5W=Date.now());(QM(H)+a5W)%100>_.g7("pbcm_fi_query_decorators_fallback_logging_pct")||(f5N!=null||(f5N=new gQt),mCq.has(H)||(mCq.add(H),f5N.increment(H)));var n;return(n=_.lf(this))==null?void 0:n.querySelector(V)},
enumerable:!0,configurable:!0})}};
_.H1=function(V){return OwW?iw3(V):function(l,I){Object.defineProperty(l,I,{get:function(){var H;return(H=_.lf(this))==null?void 0:H.querySelectorAll(V)},
enumerable:!0,configurable:!0})}};
iw3=function(V){return function(l,I){Object.defineProperty(l,I,{get:function(){var H,T=(H=_.h(this.hostElement))==null?void 0:H.querySelectorAll(V);if(T==null?0:T.length)return T;var x;return(x=_.lf(this))==null?void 0:x.querySelectorAll(V)},
enumerable:!0,configurable:!0})}};
VGJ=function(V){return function(l){if(![_.Ow,_.M].includes(Object.getPrototypeOf(l.prototype).constructor))throw Error("ig");$aW(Object.assign({},typeof V!=="string"?V:{is:V,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(l)}};
_.B1=function(){var V=V===void 0?{}:V;return function(l){if(![CC,_.To].includes(Object.getPrototypeOf(l.prototype).constructor))throw Error("jg");daK(Object.assign({},V,{disableInheritanceCheck:!0}))(l)}};
IWg=function(V,l){lWK[V]!=null||(lWK[V]=new Set);lWK[V].add(l)};
_.xs=function(){var V=_.b.apply(null,_.oI(_.Q5.apply(0,arguments)));return function(l,I){IWg(l.is,I);V(l,I)}};
$s=function(V,l,I){if(U7(V)&&!HPw.has(l)){l=l.replace(/^JSC\$[\d]+_/,"");l=l.replace(/\.\d+(\.|$)/g,function(x,n){return".#"+n});
nm[V]!=null||(nm[V]={});var H,T;(H=nm[V])[T=l]!=null||(H[T]=new Set);nm[V][l].has(I)||(nm[V][l].add(I),_.tF("polymerPropertyAccessEvent",{componentName:V,propertyName:l,accessType:I}))}};
Tnq=function(){return _.z("polymer_property_access_logging_debug")||_.z("polymer_enable_property_access_logging")};
U7=function(V){if(_.z("polymer_property_access_logging_debug"))return!0;if(!_.z("polymer_enable_property_access_logging"))return!1;BnT||(BnT=Date.now());return(QM(V)+BnT)%100<_.g7("polymer_property_access_logging_percent")};
xsJ=function(V,l){return U7(l)&&V.hostElement.loggingStatus?new Proxy(V,{get:function(I,H,T){if(I.hostElement.loggingStatus.bypassProxyController)return I[H];I.hostElement.loggingStatus.isExternalGet=!0;var x=I[H];I.hostElement.loggingStatus.isExternalGet=!1;if(x instanceof Function)return function(){var n=_.Q5.apply(0,arguments);try{return I.hostElement.loggingStatus.currentExternalCall=H,$s(l,H,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),x.apply(this===T?I:this,n)}finally{I.hostElement.loggingStatus.currentExternalCall=
void 0}};
$s(l,H,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return x},
set:function(I,H,T){if(I.hostElement.loggingStatus.bypassProxyController)return I[H]=T,!0;I.hostElement.loggingStatus.isRendererStamper?$s(l,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):I.hostElement.loggingStatus.isDeclarativeExternal||$s(l,H,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{I.hostElement.loggingStatus.currentExternalSet=H,I[H]=T}finally{I.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):V};
Us3=function(V,l){V&&V.loggingStatus&&!V.loggingStatus.isDeclarativeExternal&&!V.loggingStatus.isExternalGet&&V.loggingStatus.currentExternalSet!==l&&$s(V.tagName.toLowerCase(),l,"PROPERTY_ACCESS_GET_INTERNAL")};
d_=function(V,l,I){V&&(I||V.loggingStatus&&!V.loggingStatus.isInitializing&&!V.loggingStatus.isDefiningPropertyAccessor&&V.loggingStatus.currentExternalSet!==l)&&$s(V.tagName.toLowerCase(),l,"PROPERTY_ACCESS_SET_INTERNAL")};
n3T=function(){return{_definePropertyAccessor:function(V,l){var I=this,H=I.hostElement.loggingStatus;H&&(H.isDefiningPropertyAccessor=!0);var T=I[V];T!==void 0&&(I.__data?I._setPendingProperty(V,T):(I.__dataProto!=null||(I.__dataProto={}),I.__dataProto[V]=T));H&&(H.isDefiningPropertyAccessor=!1);Object.defineProperty(this,V,{get:function(){Us3(I.hostElement,V);return this.__data[V]},
set:function(x){l||this._setPendingProperty(V,x,!0)&&this._invalidateProperties()}})},
created:function(){var V=this._setPendingProperty.bind(this);this._setPendingProperty=function(l,I,H){d_(this.hostElement,l);return V.apply(this,[l,I,H])}}}};
dsf=function(V){Tnq()&&_.R($s1.prototype)(V.prototype,"__templateBindingLoggingBehavior")};
w2T=function(V,l){if(l.resolvedFactories.length!==V.resolvedFactories.length)return!0;l=_.U(l.resolvedFactories.entries());for(var I=l.next();!I.done;I=l.next()){var H=_.U(I.value);I=H.next().value;H=H.next().value;if(H.providerClass){if(H.providerClass!==V.resolvedFactories[I].providerClass)return!0}else if(H.providerValue){if(H.providerValue!==V.resolvedFactories[I].providerValue)return!0}else if(H.factory!==V.resolvedFactories[I].factory)return!0}return!1};
Nn1=function(V,l){V=_.U(V);for(var I=V.next();!I.done;I=V.next())if(I=I.value,I.constructor===Array)Nn1(I,l);else{var H=l;H.has(I)||(I.inject&&H.add(I),I.behaviors&&Nn1(I.behaviors,H))}};
w_=function(V,l){var I=V[l];V[l]=function(){var H=_.Q5.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(I)return I.apply(this,H)}};
Lnq=function(){_.Ne.Class=function(I,H){I=KnK(I,H);w_(I.prototype,"created");return I};
w_(Km.prototype,"_initializeProperties");w_(_.j5.prototype,"_initializeProperties");if(j5q)w_(Y6T,"created");else{var V=function(){w_(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))V();else{var l=customElements.define;customElements.define=function(I,H,T){l.call(customElements,I,H,T);I==="tp-yt-iron-list"&&(V(),customElements.define=l)}}}};
kMt=function(V,l){V.prototype.behaviors=V.prototype.behaviors||[];V.prototype.behaviors.unshift(eac.InjectBehavior);V.prototype.provide=l};
_.Lm=function(V){return function(l){if(!V.disableElementRegistration){V.noInjection||kMt(l,V.providers);var I=l.prototype;I.__templateHelpers||eKt(Ys.prototype)(I,"__templateHelpers");I=V.is;Fny||(Fny=Date.now());(QM(I)+Fny)%100<_.g7("polymer_log_prop_change_observer_percent")&&eKt(X2W.prototype)(l.prototype,"__propertyObserverObserver");l.prototype.behaviors=l.prototype.behaviors||[];l.prototype.behaviors.unshift(_.za1.YtHostElementBehavior);dsf(l);VGJ({is:V.is,notifyObserversOnUndefined:V.notifyObserversOnUndefined!==
!1,fastInit:V.fastInit,template:V.template,disableEnforceFastDefaultValuesCheck:!0})(l)}}};
_.A=function(V){return _.Lm({is:V.is,template:V.template,disableElementRegistration:V.disableElementRegistration,cssBuildOptOut:V.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
rxT=function(V,l){if(yxJ){V=new V;for(var I=_.U(Object.getOwnPropertyNames(V)),H=I.next();!H.done;H=I.next())H=H.value,l[H]=V[H];for(I=l;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){H=_.U(Object.getOwnPropertyNames(I));for(var T=H.next();!T.done;T=H.next())T=T.value,V.hasOwnProperty(T)||Object.defineProperty(V,T,tGK(l,T))}}else V.apply(l)};
tGK=function(V,l){return{get:function(){var I=V[l];return I instanceof Function?I.bind(V):I},
set:function(I){V[l]=I}}};
E3K=function(V,l){for(var I=V._noAccessors,H=_.U(Object.getOwnPropertyNames(V)),T=H.next();!T.done;T=H.next())if(T=T.value,!GMK.has(T))if(I)l[T]=V[T];else{var x=Object.getOwnPropertyDescriptor(V,T);x&&(x.configurable=!0,Object.defineProperty(l,T,x))}};
Jxw=function(V,l,I){return function(H){if(I){var T=I();H.model=T}if(V[l])V[l](H,H.detail)}};
e5=function(V){var l=[];if(typeof V==="string")V.length>0&&l.push.apply(l,_.oI(V.split(".")));else{V=_.U(V);for(var I=V.next();!I.done;I=V.next())I=I.value,typeof I==="string"?l.push.apply(l,_.oI(I.split("."))):l.push(I)}return l};
ks=function(V,l){if(l[l.length-1]!=="*"&&l[l.length-1]!=="splices"){for(var I=0;I<l.length;I++){if(!V)return;V=V[l[I]]}return V}};
o3w=function(V,l){if(V.length>l.length)return!1;for(var I=0;I<V.length;I++)if(V[I]!==l[I])return!1;return!0};
P63=function(V,l,I){if(l.type==="compute"){var H=l.getter.bind(I);var T=l.args}else H=function(){return I[l.method.methodName].apply(I,_.oI(_.Q5.apply(0,arguments)))},T=l.method.args;
hat(V,l.propertyKey,H,T,l.value)};
ZPf=function(V,l){if(l.readOnly){var I=Object.getOwnPropertyDescriptor(V.model,l.propertyKey);Object.defineProperty(V.model,l.propertyKey,{get:I.get,set:function(){}});
V.model[Dsf(l.propertyKey)]=I.set}};
S6c=function(V,l,I){if(I){var H=l.propertyKey,T=l.selector;l=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.oI(l.selectorArgs.map(function(x){return{type:"path",path:x}})));
hat(V,H,function(x){var n=_.Q5.apply(1,arguments);return T.apply(null,[I.getState()].concat(_.oI(n)))},l)}};
Q5W=function(V,l,I){var H=_.Nz(l.propertyKey)+"-changed";Ra3(V,function(T){var x={value:T.value,queueProperty:!0};T.path.split(".").length>1&&(x.path=T.path);I.dispatchEvent(new CustomEvent(H,{detail:x}))},[{type:"wildcard",
path:l.propertyKey}])};
cxt=function(V,l,I){Ra3(V,function(){I[l.method.methodName].apply(I,_.oI(_.Q5.apply(0,arguments)))},l.method.args)};
Dsf=function(V){return"_set"+(V.charAt(0).toUpperCase()+V.slice(1))};
Wnt=function(){var V,l=G0(function(I){V=I},!1);
return[V,l]};
p2f=function(V){V=V.trim().replace(bP3,",").replace(q6N,"$1");var l=V[0];l==="-"&&(l=V[1]);if(l>="0"&&l<="9")return{type:"literal",value:Number(V)};if(l==="'"||l==='"')return{type:"literal",value:V.slice(1,-1)};if(l=V.match(MG3)){l=l[1];var I=s5c[l];if(I)return{type:I,path:V.slice(0,-(l.length+1))}}return{type:"path",path:V}};
OPT=function(V){var l=V.match(Axc);if(l)return V={methodName:l[1],args:u4w},l[2].trim()&&(l=l[2].replace(v31,"&comma;").split(","),V.args=l.map(p2f)),V};
C6c=function(V,l,I){l=_.Nz(l);var H=jh;H&&(I=H(I,l,"attribute",V));FV(V,I,l)};
FV=function(V,l,I){l=aWW(l);l===void 0?V.removeAttribute(I):V.setAttribute(I,l)};
aWW=function(V){switch(typeof V){case "object":if(V instanceof Date)return V.toString();if(V){var l=window.trustedTypes?window.trustedTypes.isHTML(V)||window.trustedTypes.isScript(V)||window.trustedTypes.isScriptURL(V):void 0;if(l)return V;try{return JSON.stringify(V)}catch(I){_.hF(Error("Fg`"+V))}}break;case "boolean":return V?"":void 0;default:return V!==null&&V!==void 0?V.toString():void 0}};
fWt=function(V){if(V===void 0)throw Error("Gg");return V};
liy=function(V,l,I,H){var T=g3c(H);if(T.length){H=I;var x="property";msy.test(I)?x="attribute":I[I.length-1]==="$"&&(I=I.slice(0,-1),x="attribute");var n=iP3(T);n&&x==="attribute"&&(I==="class"&&V.hasAttribute("class")&&(n+=" "+V.getAttribute(I)),FV(V,n,I));x==="attribute"&&H==="disable-upgrade$"&&V.setAttribute("disable-upgrade","");V.localName==="input"&&H==="value"&&V.setAttribute("value","");V.removeAttribute(H);x==="property"&&(I=_.K8(I));l=fWt(l);V0c(l,x,I,T);return!0}return I.slice(0,3)===
"on-"?(V.removeAttribute(I),(x=l).events!=null||(x.events=[]),l.events.push({name:I.slice(3),value:H}),!0):I==="id"?(l.id=H,!0):!1};
g3c=function(V){for(var l=[],I=0,H;(H=Iiw.exec(V))!==null;){H.index>I&&l.push({type:"literal",value:V.slice(I,H.index)});var T=H[1][0];I=!!H[2];H=H[3].trim();if(T==="{")throw Error("Hg");(T=OPT(H))?l.push({type:"method",negate:I,signature:T}):l.push({type:"path",negate:I,path:H});I=Iiw.lastIndex}I&&I<V.length&&(V=V.substring(I))&&l.push({type:"literal",value:V});return l};
iP3=function(V){for(var l="",I=0;I<V.length;I++){var H=V[I];H.type==="literal"&&(l+=H.value)}return l};
V0c=function(V,l,I,H){V.bindings!=null||(V.bindings=[]);V.bindings.push({kind:l,target:I,parts:H})};
WBf=function(V,l,I){var H=!1;if(V.localName==="template"){H=I;var T=l.stripWhitespace;T=STW(V,T===void 0?!1:T);var x=V.content.ownerDocument.createDocumentFragment();T.content=x;x.appendChild(V.content);H&&(H.templateInfo=T);H=!0}else V.localName==="slot"&&(l.hasInsertionPoint=!0);if(V.firstChild&&(T=I,V.localName!=="script"&&V.localName!=="style")){x=0;for(var n=V.firstChild;n;){var w=n;if(w.localName==="template"){var N=w.getAttribute("is");if((n=N==="dom-if")||N==="dom-repeat"){w.removeAttribute("is");
N=w.ownerDocument.createElement("ps-"+N);w.parentNode.replaceChild(N,w);N.appendChild(w);var L=Array.from(w.attributes);L=_.U(L);for(var e=L.next();!e.done;e=L.next())e=e.value,n?RbN.has(e.name)&&FV(N,e.value,e.name):Qpc.has(e.name)?FV(N,e.value,e.name):cdN.has(e.name),w.removeAttribute(e.name);n=N}else n=w}if(n.nodeType===Node.TEXT_NODE){w=void 0;N=V;for(L=n;((w=L.nextSibling)==null?void 0:w.nodeType)===Node.TEXT_NODE;)e=void 0,(e=L).textContent!=null||(e.textContent=""),L.nextSibling.textContent&&
(L.textContent+=L.nextSibling.textContent),N.removeChild(L.nextSibling);if(l.stripWhitespace&&n.textContent&&!n.textContent.trim()){V.removeChild(n);n=n.nextSibling;continue}}WBf(n,l,{parentIndex:x,parentInfo:T});n.parentNode&&x++;n=n.nextSibling}}var k;if((k=V.hasAttributes)==null?0:k.call(V)){k=I=fWt(I);T=!1;x=Array.from(V.attributes);x=_.U(x);for(w=x.next();!w.done;w=x.next())w=w.value,T=liy(V,k,w.name,w.value)||T;H=T||H}V.nodeType===Node.TEXT_NODE&&(k=g3c(V.textContent),k.length&&(V.textContent=
iP3(k)||" ",I=fWt(I),V0c(I,"text","textContent",k),H=!0));I&&H&&(I.infoIndex=l.nodeInfoList.push(I)-1)};
STW=function(V,l){l={nodeInfoList:[],stripWhitespace:(l===void 0?!1:l)||V.hasAttribute("strip-whitespace")};WBf(V.content,l);return l};
beW=function(V){Object.assign(V,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
qT3=function(V,l){for(;V;){var I=V.signals[l];if(I)return I;V=V.parentScope}};
spc=function(V,l,I,H){l.signalCache!=null||(l.signalCache={});var T=l.signalCache[I];if(!T){var x=I.split("."),n=qT3(H,x[0]);if((n==null?void 0:n.type)==="signal")T=function(){var X=n.type==="mutable"?n.signal.getWithPath([]):n.getter();return{rootWasDefined:X!==void 0,value:ks(X,x.slice(1))}};
else if((n==null?void 0:n.type)==="mutable"){var w=n.signal,N=n.signal.getPathMutationSignal(x.slice(1));T=function(){var X=J0(V.owner,function(){return w.getWithPath([])}),r,E=(r=N())==null?void 0:r.value;
return{rootWasDefined:X!==void 0,value:E}}}else{var L,e;
H=_.z("web_polysi_immutable_root_fix_killswitch")?!((L=V.options)==null?0:(e=L.immutableProps)==null?0:e.has(x[0])):!M0g(V,x[0]);if(x.length>1&&H){var k=V.getPathMutationSignal(x);T=function(){var X=J0(V.owner,function(){return V.getWithPath([x[0]])}),r,E=(r=k())==null?void 0:r.value;
return{rootWasDefined:X!==void 0,value:E}}}else T=function(){var X=V.getWithPath(x);
return{rootWasDefined:X!==void 0,value:X}}}l.signalCache[I]=T}return T()};
Adc=function(V,l,I,H,T,x){l=l.parts.map(function(w,N){if(w.type==="literal"){I.partWasDefined!=null||(I.partWasDefined=[]);var L;(L=I.partWasDefined)[N]||(L[N]=w.value!==void 0);return w.value}var e;if(w.type==="method"){var k,X=(k=(e=I.partWasDefined)==null?void 0:e[N])!=null?k:!1;X||(X=w.signature.args.every(function(D){return D.type==="literal"}));
var r=!1,E=!0;e=w.signature.args.map(function(D){if(D.type==="literal")return D.value;if(D.type!=="path")throw Error("Ig`"+D.type);var Z=spc(V,I,D.path,T);D=Z.value;Z=Z.rootWasDefined;r||(r=Z);E&&(E=Z);return D});
X||(X=x===1?E:r);I.partWasDefined!=null||(I.partWasDefined={});I.partWasDefined[N]=X;if(!X)return;e=(N=spc(V,I,w.signature.methodName,T).value)&&typeof N==="function"?N.apply(H,e):void 0}else k=spc(V,I,w.path,T),e=k.value,I.partWasDefined!=null||(I.partWasDefined={}),(X=I.partWasDefined)[N]||(X[N]=e!==void 0||k.rootWasDefined);w.negate&&(e=!e);return e});
if(l.length===1){var n;return((n=I.partWasDefined)==null?0:n[0])?l[0]:p9N}return l.join("")};
uLT=function(V){return typeof V==="object"&&!!V&&"notifyPath"in V&&"canNotifyPath"in V};
vXf=function(V){return typeof V==="object"&&!!V&&"notifyPath"in V};
Oeq=function(V){return"polymerController"in V};
Cpt=function(V,l){l=""+e5(l)[0];if(uLT(V))return V.canNotifyPath(l);if(Oeq(V)&&uLT(V.polymerController))return V.polymerController.canNotifyPath(l);if(vXf(V)){var I;return!((I=V.properties)==null||!I[l])}if(Oeq(V)&&vXf(V.polymerController)){var H;return!((H=V.polymerController.properties)==null||!H[l])}return!1};
ait=function(V,l,I){uLT(V)||vXf(V)?V.notifyPath(l,I):Oeq(V)&&(uLT(V.polymerController)||vXf(V.polymerController))&&V.polymerController.notifyPath(l,I)};
gXc=function(V,l,I){if(I!==p9N){V.kind==="attribute"||V.target!=="textContent"&&(V.target!=="value"||l.localName!=="input"&&l.localName!=="textarea")||(I=I===void 0?"":I);var H,T=(H=fiN.Polymer)==null?void 0:H.sanitizeDOMValue;T&&(I=T(I,V.target,V.kind,l));if(V.kind==="attribute"){V=V.target;if(V==="class"||V==="name"||V==="slot")l=(0,_.mL)(l);FV(l,I,V)}else if(V=V.target,I!==l[V]||typeof I==="object")l.loggingStatus&&(l.loggingStatus.isDeclarativeExternal=!0,$s(l.localName,V,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
l[V]=I,l.loggingStatus&&(l.loggingStatus.isDeclarativeExternal=!1)}};
mQ3=function(V,l,I,H,T){var x=l.parts[0];if(l.parts.length!==1||x.type!=="path"||!Cpt(I,l.target))return!1;var n=_.U(x.path.split(".")),w=n.next().value,N=pS(n);if(!_.z("web_polysi_immutable_root_fix_killswitch")&&M0g(V,w))return!1;n=qT3(T,w);if((n==null?void 0:n.type)==="signal")return!1;H.signalCache!=null||(H.signalCache={});T=H.signalCache[x.path];var L;T=(L=T)==null?void 0:L().value;if((T==null?void 0:T.path)!==void 0){H=e5(T.path);var e=e5(x.path);H=[l.target].concat(_.oI(H.slice(e.length-1)));
ait(I,H,x.negate?!T.value:T.value);return!0}var k;n?k=n.signal:k=XV(V,w);var X=k.getChangeRecordSignal(N),r=!1;T=function(){if(!r){var D=J0(V.owner,function(){return k.getWithPath([])});
r||(r=D!==void 0)}return{value:X(),rootWasDefined:r}};
H.signalCache[x.path]=T;H.partWasDefined!=null||(H.partWasDefined={});w=T();(e=H.partWasDefined)[0]||(e[0]=w.rootWasDefined);var E=J0(V.owner,function(){return k.getWithPath(N)});
H.partWasDefined[0]&&J0(V.owner,function(){return void gXc(l,I,x.negate?!E:E)});
return!0};
ieq=function(V,l,I,H,T,x,n){if(!mQ3(V,l,I,H,x)){var w=Adc(V,l,H,T,x,n);J0(V.owner,function(){return void gXc(l,I,w)})}};
VCT=function(V,l,I,H,T,x,n){I=_.U(I);for(var w=I.next(),N={};!w.done;N={infoIndex:void 0},w=I.next()){w=w.value;var L=w.bindings;N.infoIndex=w.infoIndex;w=w.parentInfo;if(L){L=_.U(L);for(var e=L.next(),k={};!e.done;k={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},e=L.next()){k.b$jscomp$254=e.value;if(N.infoIndex===void 0)throw Error("Jg");k.bindingCtx$jscomp$4={};V.effect(function(X,r){return function(){T&&!T()||ieq(V,X.b$jscomp$254,l[r.infoIndex],X.bindingCtx$jscomp$4,H,x,n)}}(k,N))}}w&&VCT(V,
l,[w],H,T,x,n)}};
lQJ=function(V,l){V=(l.parentInfo?lQJ(V,l.parentInfo):V).firstChild;for(var I=0;V;V=V.nextSibling)if(l.parentIndex===I++)return V;throw Error("Kg");};
HXT=function(V,l,I,H){V=document.importNode(V.content,!0);V.__noInsertionPoint=!(H==null?0:H.hasInsertionPoint);for(var T=Array(l.length),x={},n=0;n<l.length;n++){var w=l[n],N=lQJ(V,w);T[n]=N;w.id&&(x[w.id]=N);if(w.templateInfo){var L=N.parentElement;L&&(L.templateInfo=w.templateInfo,L.parentSignalProxy=I,L.eventListenerHost=H.eventListenerHost,L.stampingEnabled=H.enabledSignal,L.parentScope=H.scope)}L=void 0;if((L=w.events)==null?0:L.length)for(L=0;L<w.events.length;L++){var e=w.events[L];IQg(H.eventListenerHost,
N,e.name,e.value,H.getModel)}}VCT(I,T,l,H.thisCtx,H.enabledSignal,H.scope,H.methodInvocationRequirement);return{root:V,nodes:T,nodesById:x}};
BAc=function(V,l){V=V();var I;(I=TAg.ShadyCSS)==null||I.prepareTemplate(V,l);l=STW(V);return{template:V,nodeInfoList:l.nodeInfoList,hasInsertionPoint:l.hasInsertionPoint}};
n1y=function(){xkK=!1;for(var V=zo.length,l=0;l<V;l++){var I=zo[l];if(I)try{I()}catch(H){Promise.resolve().then(function(){throw H;})}}zo.splice(0,V);
UkW+=V};
NAT=function(V){xkK||(xkK=!0,$kw.textContent=(dkK++).toString());zo.push(V);return ws1++};
_.r_=function(V,l,I){yP++;V=l?new Kz1(yP,V,l,I):new jLf(yP,V);tT.set(yP,V);return yP};
Yst=function(V){(V=tT.get(V))&&V.cancel()};
e2N=function(V,l){V=Lzq.get(V);return V?(l=V.get(l))?l:null:null};
_.Go=function(V,l,I,H){var T=e2N(V,l);if(!T){T=new kcJ;var x=Lzq.get(V);x||(x=new Map,Lzq.set(V,x));x.set(l,T)}V=I.bind(V);T.run(V,H,void 0)};
_.FzW=function(V,l){var I;(I=e2N(V,l))==null||I.cancel()};
Xsq=function(V){var l;(l=e2N(V,"doRender"))==null||l.flush()};
E7=function(V){var l;return(l=V.hostElement)!=null?l:V};
z2t=function(V){var l=V.indexOf(".");return l===-1?V:V.slice(0,l)};
yLg=function(V,l,I,H,T,x){x=(T=(H=x?z2t(l):l)?l:null)?V.get(T):V.__data[l];T&&x===void 0&&(x=I[l]);_.B$(V.hostElement,fjJ(H)+"-changed",{value:x,queueProperty:!0,path:T!=null?T:void 0},{bubbles:!1,composed:!1})};
tCJ=function(V,l){V.__isReflecting=!0;C6c(V.hostElement,l,V.__data[l]);V.__isReflecting=!1};
rLt=function(V){if(V._onIronRequestResizeNotifications){var l=V._onIronRequestResizeNotifications.bind(V);V._onIronRequestResizeNotifications=function(I){_.qv(I)!==V.hostElement&&l(I)}}V._ariaActiveAttributeChanged&&(V._ariaActiveAttributeChanged=V._ariaActiveAttributeChanged.bind(V.hostElement));
V._activeChanged&&(V._activeChanged=function(I){V.toggles?FV(V.hostElement,I?"true":"false",V.ariaActiveAttribute):V.hostElement.removeAttribute(V.ariaActiveAttribute);V._changedButtonState()});
V._asyncClick&&(V._asyncClick=function(){_.r_(function(){V.hostElement.click()},1)});
!V.keyEventTarget||V.keyEventTarget instanceof EventTarget||(V.keyEventTarget=E7(V.keyEventTarget));V._disabledChanged&&(V._disabledChanged=V._disabledChanged.bind(V.hostElement));V._observeItems&&(V._observeItems=function(I){var H=E7(I);return _.Xb(H).observeNodes(function(T){V._updateItems();V._updateSelected();_.B$(H,"iron-items-changed",T,{bubbles:!1,cancelable:!1})})});
V._updateItems&&V._updateItems===_.JT._updateItems&&(V._updateItems=function(){var I=_.Xb(V.hostElement).queryDistributedElements(V.selectable||"*");I=Array.prototype.filter.call(I,V._bindFilterItem);V._setItems(I)});
V._computeKeyboardClass&&(V._computeKeyboardClass=function(I){_.fY(V.hostElement,"keyboard-focus",I)});
V.ensureRipple&&(V.ensureRipple=function(I){if(V.hasRipple&&!V.hasRipple()){if(!V._createRipple)return;V._ripple=V._createRipple();V._ripple.noink=V.noink;var H=V._rippleContainer||V.hostElement;H&&_.h(H).appendChild(V._ripple)}var T;if(I&&((T=V._ripple)==null?0:T.uiDownAction)){H=_.h(V._rippleContainer||V.hostElement);var x;T=(x=I.composedPath())==null?void 0:x[0];H.contains(T)&&V._ripple.uiDownAction(I)}});
V._updateMultiselectable&&(V._updateMultiselectable=function(I){I?V.hostElement.setAttribute("aria-multiselectable","true"):V.hostElement.removeAttribute("aria-multiselectable")})};
Gc1=function(V,l,I){I=_.U(I);for(var H=I.next();!H.done;H=I.next())rxT(H.value.constructor,V);rxT(l.constructor,V)};
JLt=function(V,l){V=_.U(V);for(var I=V.next();!I.done;I=V.next())if(I=I.value,I.type==="signal"){var H=I.propertyKey;if(l.hasOwnProperty(H)&&l[H]!=null&&I.attributeType===Object){a:{H=l[H].constructor;for(var T=_.U(E1f),x=T.next();!x.done;x=T.next())if(x=x.value,H===x){H=x;break a}H=Object}I.attributeType=H}}};
o1f=function(){};
h23=function(V){var l;return(l=V.hostElement)!=null?l:V};
PTN=function(){throw Error("Og");};
Dky=function(V,l){V.constructor.prototype.useSignals=!0;var I=new V.constructor;Gc1(I,V,l.behaviors);JLt(l.reactiveSchemas,I);I={};for(var H=_.U(l.reactiveSchemas),T=H.next();!T.done;T=H.next())T=T.value,T.type==="signal"&&(I[T.propertyKey]=T.attributeType);var x={copyPropertiesToProto:PTN,didRegister:!1,typesForSignals:I},n=["disable-upgrade"].concat(_.oI(l.observedAttributes)),w=function(N){oj.call(this,V,l,x,N)};
_.t(w,oj);_.vI.Object.defineProperties(w,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return n}}});
x.copyPropertiesToProto=function(){for(var N=0;N<l.behaviors.length;N++)E3K(l.behaviors[N],w.prototype);E3K(V,w.prototype)};
l.legacyOptimizations||x.copyPropertiesToProto();w.prototype.is=V.is;return w};
ZXJ=function(V,l){if(Object.getPrototypeOf(l.prototype).constructor!==_.M)throw Error("Pg");l.prototype.is=V.is;return Dky(l.prototype,V)};
Ssy=function(V){return V.type==="compute"||V.type==="computeWithMethod"};
R2t=function(V){for(var l=V.reactiveSchemas.filter(Ssy),I=new Map,H=new Map,T=new Map,x=_.U(l),n=x.next();!n.done;n=x.next())n=n.value,I.set(n.propertyKey,n),H.set(n.propertyKey,[]),T.set(n.propertyKey,0);x=0;l=_.U(l);for(n=l.next();!n.done;n=l.next()){n=n.value;for(var w=_.U(n.type==="computeWithMethod"?n.method.args:n.args),N=w.next();!N.done;N=w.next())N=N.value,N.type!=="literal"&&(N=N.path.split(".")[0],H.has(N)&&(H.get(N).push(n.propertyKey),T.set(n.propertyKey,T.get(n.propertyKey)+1),x++))}n=
[].concat(_.oI(H.keys())).filter(function(L){return T.get(L)===0});
for(l=[];n.length;)for(w=n.shift(),l.push(I.get(w)),w=_.U(H.get(w)),N=w.next();!N.done;N=w.next())N=N.value,T.set(N,T.get(N)-1),x--,T.get(N)===0&&n.push(N);I=V.reactiveSchemas.filter(function(L){return!Ssy(L)});
V.reactiveSchemas=[].concat(_.oI(I),_.oI(l))};
QL1=function(V,l){if(l.properties)for(var I=_.U(Object.entries(l.properties)),H=I.next();!H.done;H=I.next()){var T=_.U(H.value);H=T.next().value;T=T.next().value;V.properties[H]=typeof T==="function"?{type:T}:T}l.observers&&V.observers.push.apply(V.observers,_.oI(l.observers));l.disabledPolySiReactions&&V.disabledPolySiReactions.push.apply(V.disabledPolySiReactions,_.oI(l.disabledPolySiReactions))};
cLq=function(V,l){for(var I=l.length-1;I>=0;I--){var H=l[I];Array.isArray(H)?cLq(V,H):V.indexOf(H)<0&&V.unshift(H)}};
Wzw=function(V,l){V.reactiveSchemas=V.reactiveSchemas.filter(function(I){return I.type==="observe"&&l.includes(I.method.methodName)||Ssy(I)&&l.includes(I.propertyKey)?!1:!0})};
qsc=function(V,l){var I=l.prototype,H,T,x={is:V.is,reactiveSchemas:[],observedAttributes:[],behaviors:[eac.InjectBehavior,Ys.prototype],disableElementRegistration:V.disableElementRegistration,provide:(H=V.providers)!=null?H:[],reactivityMode:V.reactivityMode,signalProperties:(T=I.signalProperties)!=null?T:[]};"template"in l?x.templateGetter=function(){return l.template}:V.getTemplate&&(x.templateGetter=V.getTemplate);
I.behaviors&&cLq(x.behaviors,I.behaviors);bXK(x,l);return x};
bXK=function(V,l){for(var I=l.prototype,H={properties:{},observers:[],disabledPolySiReactions:[]},T=_.U(V.behaviors),x=T.next();!x.done;x=T.next())QL1(H,x.value);QL1(H,I);if(V.signalProperties)for(I=_.U(V.signalProperties),T=I.next();!T.done;T=I.next())delete H.properties[T.value];I=_.U(Object.entries(H.properties));for(T=I.next();!T.done;T=I.next()){x=_.U(T.value);T=x.next().value;x=x.next().value;var n=void 0;if((n=V.signalProperties)==null||!n.includes(T)){n=void 0;var w=V,N=x.type;if(!N)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{N=Reflect.getMetadata("design:type",l,T);for(var L=_.U(MCw),e=L.next();!e.done;e=L.next())if(e=e.value,N===e){N=e;break a}N=Object}else N=String;x.computed||x.selector||(w.reactiveSchemas.push({type:"signal",propertyKey:T,value:x.value,attributeType:N,readOnly:x.readOnly}),w.observedAttributes.push(_.Nz(T)));x.reflectToAttribute&&w.reactiveSchemas.push({type:"reflect",propertyKey:T});if(x.computed){N=OPT(x.computed);if(!N)throw Error("Qg");w.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:T,method:N,value:x.value})}x.observer&&w.reactiveSchemas.push({type:"observe",method:{methodName:x.observer,args:[{type:"path",path:T}]}});x.notify&&w.reactiveSchemas.push({type:"notify",propertyKey:T});x.selector&&w.reactiveSchemas.push({type:"redux",propertyKey:T,selector:x.selector,selectorArgs:(n=x.selectorArgs)!=null?n:[]})}}sLw&&R2t(V);l=_.U(H.observers);for(T=l.next();!T.done;T=l.next())I=V,T=T.value,(x=OPT(T))?I.reactiveSchemas.push({type:"observe",method:x}):console.log('Warning: unable to parse observe declaration: "'+
T+'"');Wzw(V,H.disabledPolySiReactions)};
psW=function(V,l){for(var I=0;I<l.length;I++){var H=l[I],T=void 0;(T=H).showHideApi!=null||(T.showHideApi={});T=void 0;!!V!==!((T=H.showHideApi)==null||!T.hideTemplateChildren)&&(H.nodeType===Node.TEXT_NODE?V?(H.showHideApi.polymerTextContent=H.textContent,H.textContent=""):(T=void 0,H.textContent=(T=H.showHideApi.polymerTextContent)!=null?T:null):H instanceof Element&&H.localName==="slot"?V?(H.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.mL)((0,_.mL)(H).parentNode).replaceChild(H.showHideApi.polymerReplaced,
H)):(T=H.showHideApi.polymerReplaced)&&(0,_.mL)((0,_.mL)(T).parentNode).replaceChild(H,T):H instanceof HTMLElement&&H.style&&(V?(H.showHideApi.polymerDisplay=H.style.display,H.style.display="none"):H.style.display=H.showHideApi.polymerDisplay));H.showHideApi.hideTemplateChildren=V;H.showHideChildren&&H.showHideChildren(V)}};
u63=function(){if(!AL1){var V=document.createElement("style");V.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(V);AL1=!0}};
v13=function(V,l){return J0(V,function(){for(var I={},H=l,T=new Set;H;){for(var x=_.U(Object.entries(H.signals)),n=x.next();!n.done;n=x.next()){var w=_.U(n.value);n=w.next().value;w=w.next().value;T.has(n)||(T.add(n),I[n]=w.type==="mutable"?w.signal.getWithPath([]):w.getter())}H=H.parentScope}return I})};
hT=function(){return _.z("disable_hidden_dom_if_using_stamper")||_.z("creator_disable_hidden_dom_if_using_stamper")};
OXT=function(){var V=!1,l=_.U(_.xi(!0,void 0,"UQbJQc")),I=l.next().value,H=l.next().value;return[function(){return V?!1:I()},
function(){V=!0;H(!1)}]};
CTt=function(V,l){var I=_.P1().getState();return l?V.apply(null,[I].concat(_.oI(l))):V(I)};
g1g=function(){if(aQ3)return aQ3;var V=_.U(_.xi(0,void 0,"lnJfId")),l=V.next().value,I=V.next().value;_.P1().subscribe(function(){fQJ(I)});
return aQ3=l};
fQJ=function(V){_.z("delay_redux_signal_update_killswitch")?V(YZg(function(l){return l+1})):mkJ||(mkJ=!0,Promise.resolve().then(function(){V(YZg(function(l){return l+1}));
mkJ=!1}))};
_.P1=function(){return iX3.getAppStore()};
DR=function(V,l){return iX3.getSelectFn()(V,l)};
_.ZR=function(V){iX3.getDispatchFn()(V)};
VLt=function(V,l){var I={},H;for(H in V)I[H]=l(V[H],H);return I};
_.S5=function(V,l){return function(){var I;return(I=_.ES(V))!=null?I:l}};
_.Rj=function(V,l){var I=Object.assign({},V),H;for(H in l)l.hasOwnProperty(H)&&(I[H]=_.S5(V[H],l[H]));return I};
lsK=function(V,l,I){V instanceof Element&&(I.debugName||(I.debugName="<"+V.tagName.toLowerCase()+(V.tagName.includes("-")?">":"."+V.className+">")),_.z("ytwiz_enable_debug_component_props")&&(V.debugProps||(V.debugProps=VLt(l,function(H){return function(){return H()}}))))};
_.W1=function(V,l){var I=function(H){var T={stack:[],error:void 0,hasError:!1};try{var x=IsW={};var n=_.QP(T),w;if(((w=I)==null?0:w.idomCompat)&&H.renderedFromIdom){n==null||n.attr("idomCompat",!0);var N,L=typeof I.idomCompat==="object"?(N=I)==null?void 0:N.idomCompat.callbacks:{},e=_.U(HVN(H,L,I.debugName)),k=e.next().value;e.next();var X=e.next().value,r=T2W(V,k);x.privateValue=r;IsW=void 0;lsK(r,k,I);n==null||n.attr("debugName",I.debugName);var E=Mh1(r),D=Array.isArray(E)?E[0]:E;D[lt]||(D[lt]=
{});D[lt].updateSignalsFromIdomProps=X;return r}var Z=VLt(H,B2f);var S=T2W(V,Z);x.privateValue=S;IsW=void 0;lsK(S,Z,I);n==null||n.attr("debugName",I.debugName);return S}catch(p){T.error=p,T.hasError=!0}finally{_.c1(T)}};
I.debugName=l===void 0?"":l;return I};
T2W=function(V,l){V=V(l);return TY(V)};
xTW=function(V,l){V[l]||(V=new _.Yd("IDOM interop setter undefined. Key:",l),_.Gr(V))};
B2f=function(V,l){return l==="children"||typeof V==="function"||V===void 0?V:function(){return _.ES(V)}};
HVN=function(V,l,I){var H={},T={},x={},n={},w;for(w in V){n={key$jscomp$880:n.key$jscomp$880};n.key$jscomp$880=w;var N=V[n.key$jscomp$880];if(n.key$jscomp$880==="children")H[n.key$jscomp$880]=N;else if(typeof N==="function")n.key$jscomp$880 in l||N.length>0?(x[n.key$jscomp$880]=N,H[n.key$jscomp$880]=function(e){return function(){return x[e.key$jscomp$880].apply(x,_.oI(_.Q5.apply(0,arguments)))}}(n)):H[n.key$jscomp$880]=N;
else if(!(V[n.key$jscomp$880]===void 0&&n.key$jscomp$880 in l)){var L=_.U(_.xi(V[n.key$jscomp$880],{debugName:"__cwis:"+I+":"+n.key$jscomp$880},"lEtjrb"));N=L.next().value;L=L.next().value;H[n.key$jscomp$880]=N;T[n.key$jscomp$880]=L}}return[H,T,function(e){var k={},X;for(X in e)k={key$jscomp$881:k.key$jscomp$881,val$jscomp$117:void 0},k.key$jscomp$881=X,k.val$jscomp$117=e[k.key$jscomp$881],k.key$jscomp$881!=="children"&&(typeof k.val$jscomp$117==="function"?k.key$jscomp$881 in l?x[k.key$jscomp$881]=
k.val$jscomp$117:k.val$jscomp$117.length>0&&(x[k.key$jscomp$881]=k.val$jscomp$117,_.hF(new _.Yd("Callback detected that was not set in the idomCompat callbacks map. Key:",k.key$jscomp$881))):k.key$jscomp$881 in l&&k.val$jscomp$117===void 0||(xTW(T,k.key$jscomp$881),Yi(function(r){return function(){T[r.key$jscomp$881](r.val$jscomp$117)}}(k))))}]};
$Tw=function(V,l,I){var H=BUW(V.prototype,UTt,V.prototype.behaviors);H.prototype.is=l;H.prototype.localName=l;I&&n$t(H,I);return function(T){T&&(H.prototype.hostElement=T);var x=new H;x.root=x;x.hostElement=T;return x}};
n$t=function(V,l){var I;Object.defineProperty(V.prototype,"_template",{get:function(){I===void 0&&(I=l());return I},
set:function(H){I=H},
configurable:!0,enumerable:!0})};
jyw=function(V,l,I,H){function T(){if(!r){for(var E=new Set,D=_.U(e),Z=D.next();!Z.done;Z=D.next()){Z=Z.value;for(var S=_.U(Object.getOwnPropertyNames(Z)),p=S.next();!p.done;p=S.next()){p=p.value;var Vf=void 0,C=(Vf=Object.getOwnPropertyDescriptor(Z,p))==null?void 0:Vf.value;C&&C instanceof Function&&!bf(p)&&E.add(p)}}D=_.U(Object.entries(Object.getOwnPropertyDescriptors(V.prototype)));for(Z=D.next();!Z.done;Z=D.next())S=_.U(Z.value),Z=S.next().value,S=S.next().value,S.value instanceof Function&&
!bf(Z)&&E.add(Z);r=E}return r}
dTN(V,l,H==null?void 0:H.providers);xa1(V.prototype,V,!0);var x=$Tw(V,l,I),n,w=(n=V.prototype.properties)!=null?n:{},N,L,e=(L=(N=V.prototype.behaviors)==null?void 0:N.flat(Infinity))!=null?L:[];I=_.U(e);for(n=I.next();!n.done;n=I.next())w=Object.assign({},n.value.properties,w);var k=[].concat(_.oI(wSc),_.oI(Object.keys(w).map(function(E){return _.Nz(E)}))),X=!1,r;
return{ctor:function(E,D){var Z=x(E),S,p;E=[].concat(_.oI((S=H==null?void 0:H.allowedProps)!=null?S:[]),_.oI((p=H==null?void 0:H.allowedPropsFromBehaviors)!=null?p:[]));Z.allowedProps=E.length>0?E:void 0;S={};p=_.U(k);for(E=p.next();!E.done;E=p.next())E=E.value,S[E]=_.K8(E);Z.__dataAttributes=S;var Vf=Z.ready.bind(Z);Z.ready=function(){D.beforeReady();Vf();if(U7(l)&&!X){var C=Z.__templateInfo;if(C==null?0:C.hostProps){C=_.U(Object.keys(C.hostProps));for(var By=C.next();!By.done;By=C.next())$s(l,By.value,
"PROPERTY_ACCESS_GET_INTERNAL")}X=!0}};
Z._overrideLegacyUndefined=!0;return Z},
props:w,observedAttributes:k,getInitialMethods:T,getPropsToForwardBeforeRegister:function(){for(var E=[],D=new Set,Z=_.U(Object.keys(w)),S=Z.next();!S.done;S=Z.next())S=S.value,E.push([S,w[S].readOnly]),D.add(S);Z=T();S=_.U(Object.keys(Object.getOwnPropertyDescriptors(V.prototype)));for(var p=S.next();!p.done;p=S.next())p=p.value,!N23(p)||Z.has(p)||D.has(p)||(E.push([p,!1]),D.add(p));D=_.U(KU1);for(Z=D.next();!Z.done;Z=D.next())E.push([Z.value,!0]);return E},
getPropsToForwardBeforeReady:function(E){for(var D=[],Z=_.U(Object.entries(E)),S=Z.next();!S.done;S=Z.next()){var p=_.U(S.value);S=p.next().value;p=p.next().value;if(N23(S)&&!(p instanceof Function)&&(D.push([S,!1]),U7(l))){var Vf=p=void 0;(Vf=(p=E)._createPropertyAccessor)==null||Vf.call(p,S)}}return D},
shouldForwardProp:N23,shouldLog:U7}};
dTN=function(V,l,I){kMt(V,I);V.prototype.behaviors.unshift(Y1c);if(Tnq()){if(U7(l)){var H;(H=V.prototype).behaviors!=null||(H.behaviors=[]);V.prototype.behaviors.unshift(n3T())}dsf(V)}_.R(Ys.prototype)(V.prototype,"__templateHelpers")};
bf=function(V){return LUW.has(V)||V.startsWith("__compute__")};
N23=function(V){return!bf(V)&&!V.startsWith("_")&&!V.endsWith("_")};
zoc=function(V,l){function I(){var X=N();X=_.U(X);for(var r=X.next();!r.done;r=X.next()){var E=_.U(r.value);r=E.next().value;E=E.next().value;eog(k.prototype,r,E)}H=!0}
var H=!1,T=V.ctor,x=V.getInitialMethods,n=V.observedAttributes,w=V.getPropsToForwardBeforeReady,N=V.getPropsToForwardBeforeRegister,L=V.shouldForwardProp,e=V.shouldLog,k=function(){var X=HTMLElement.call(this)||this;X.didForwardDynamicProps=!1;X.loggingStatus={};H||I();X.inst=T(X,{beforeReady:function(){X.didForwardDynamicProps||(X.forwardDynamicProps(),X.didForwardDynamicProps=!0)}});
X.controllerProxy=xsJ(X.inst,l);X.forwardMethods();return X};
_.t(k,HTMLElement);k.prototype.forwardMethods=function(){for(var X=this,r=_.U(this.inst.getExtraMethodsToForward()),E=r.next(),D={};!E.done;D={method$jscomp$60:void 0},E=r.next()){var Z=_.U(E.value);E=Z.next().value;Z=Z.next().value;D.method$jscomp$60=Z;this[E]=function(S){return function(){return S.method$jscomp$60.call.apply(S.method$jscomp$60,[X.inst].concat(_.oI(_.Q5.apply(0,arguments))))}}(D)}r=_.U(x());
for(D=r.next();!D.done;D=r.next())D=D.value,L(D)&&kh3(this,D),e(l)&&!bf(D)&&FUf(this.inst,D)};
k.prototype.forwardDynamicProps=function(){var X=w(this.inst);X=_.U(X);for(var r=X.next();!r.done;r=X.next()){var E=_.U(r.value);r=E.next().value;E=E.next().value;eog(this,r,E);e(l)&&!bf(r)&&XSJ(this.inst,r)}};
k.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
k.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
k.prototype.attributeChangedCallback=function(X,r,E){this.inst.attributeChangedCallbackWrapper(X,r,E)};
_.vI.Object.defineProperties(k.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return l}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.vI.Object.defineProperties(k,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return n}}});
customElements.define(l,k)};
eog=function(V,l,I){V.hasOwnProperty(l)||Object.defineProperty(V,l,{get:function(){var H,T=((H=V.is)!=null?H:V.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||$s(T,l,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,H=this.polymerController[l],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,H},
set:function(H){if(!I){var T,x=((T=V.is)!=null?T:V.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||$s(x,l,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=l,this.loggingStatus.bypassProxyController=!0,this.polymerController[l]!==H&&(T={},this.polymerController.setProperties((T[l]=H,T)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
kh3=function(V,l,I){var H=V.polymerController;V[l]=function(){var T=_.Q5.apply(0,arguments);V.loggingStatus.currentExternalCall=l;V.loggingStatus.bypassProxyController=!0;var x,n=((x=V.is)!=null?x:V.tagName).toLowerCase();$s(n,l,"PROPERTY_ACCESS_CALL_EXTERNAL");var w;x=(w=I!=null?I:H[l])==null?void 0:w.call.apply(w,[H].concat(_.oI(T)));V.loggingStatus.currentExternalCall=void 0;V.loggingStatus.bypassProxyController=!1;return x}};
FUf=function(V,l){var I=V.hostElement,H=V[l];V[l]=function(){var T=_.Q5.apply(0,arguments);if(I.loggingStatus.currentExternalCall!==l){var x,n=((x=I.is)!=null?x:I.tagName).toLowerCase();$s(n,l,"PROPERTY_ACCESS_CALL_INTERNAL")}return H==null?void 0:H.apply(V,T)}};
XSJ=function(V,l){var I=Object.getOwnPropertyDescriptor(V,l);I&&!I.get&&Object.defineProperty(V,l,{get:function(){Us3(V.hostElement,l);return I.value},
set:function(H){d_(V.hostElement,l);I.value=H}})};
yCJ=function(V){return _.z("poly_si_dom_repeat_detached_fix_killswitch")||V.tagName!=="PS-DOM-REPEAT"?V.tagName==="DOM-REPEAT":!0};
rC3=function(V,l){var I=tLN(V);V instanceof Element&&I.unshift(V);V=_.U(I.filter(yCJ));for(var H=V.next();!H.done;H=V.next()){H=_.U(H.value.__instances);for(var T=H.next();!T.done;T=H.next())if(T=T.value,T.root){T=Array.from(T.root.children);T=_.U(T);for(var x=T.next();!x.done;x=T.next())I.push.apply(I,_.oI(rC3(x.value,l)))}}return I.filter(function(n){return n.usePatchedLifecycles&&n.lifecycleIsConnected===l})};
tLN=function(V){var l=null;V instanceof Element?l=Element.prototype.querySelectorAll:V instanceof DocumentFragment&&(l=DocumentFragment.prototype.querySelectorAll);return l?Array.from(l.call(V,"*")):[]};
qe=function(V){BT(function(){for(var l=_.U(rC3(V,!1)),I=l.next();!I.done;I=l.next()){I=I.value;I.lifecycleIsConnected=!0;try{var H=void 0,T=void 0,x=void 0,n=void 0;(H=(n=I.polymerController)!=null?n:I)==null||(x=(T=H).connectedCallback)==null||x.call(T)}catch(w){_.Gr(w)}}})};
Me=function(V){BT(function(){for(var l=_.U(rC3(V,!0)),I=l.next();!I.done;I=l.next()){I=I.value;I.lifecycleIsConnected=!1;try{var H=void 0,T=void 0,x=void 0,n=void 0;(H=(n=I.polymerController)!=null?n:I)==null||(x=(T=H).disconnectedCallback)==null||x.call(T)}catch(w){_.Gr(w)}}})};
DTT=function(){if(!Ghq){Ghq=!0;var V=[Node];s7&&V.push(s7.Wrapper);var l=Node.prototype.insertBefore,I=Node.prototype.removeChild;V=_.U(V);for(var H=V.next(),T={};!H.done;T={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},H=V.next())H=H.value,T.nativeInsertBefore=H.prototype.insertBefore,H.prototype.insertBefore=function(n){return function(w,N){if(w instanceof DocumentFragment){var L=Array.from(w.children);w=n.nativeInsertBefore.call(this,w,N);
if(this.isConnected&&n.nativeInsertBefore===l)for(N=_.U(L),L=N.next();!L.done;L=N.next())qe(L.value);return w}L=w instanceof Element&&w.isConnected;N=n.nativeInsertBefore.call(this,w,N);L&&Me(w);this.isConnected&&qe(w);return N}}(T),T.nativeAppendChild=H.prototype.appendChild,H.prototype.appendChild=function(n){return function(w){if(w instanceof DocumentFragment){var N=Array.from(w.children);
w=n.nativeAppendChild.call(this,w);if(this.isConnected){N=_.U(N);for(var L=N.next();!L.done;L=N.next())qe(L.value)}return w}N=w instanceof Element&&w.isConnected;L=n.nativeAppendChild.call(this,w);N&&Me(w);this.isConnected&&qe(w);return L}}(T),T.nativeRemoveChild=H.prototype.removeChild,H.prototype.removeChild=function(n){return function(w){var N=w instanceof Element&&w.isConnected,L=n.nativeRemoveChild.call(this,w);
N&&I===n.nativeRemoveChild&&Me(w);return L}}(T),T.nativeReplaceChild=H.prototype.replaceChild,H.prototype.replaceChild=function(n){return function(w,N){if(w instanceof DocumentFragment){var L=Array.from(w.children);
w=n.nativeReplaceChild.call(this,w,N);if(this.isConnected)for(Me(N),N=_.U(L),L=N.next();!L.done;L=N.next())qe(L.value);return w}L=w instanceof Element&&w.isConnected;var e=this.isConnected,k=n.nativeReplaceChild.call(this,w,N);e&&Me(N);L&&Me(w);e&&qe(w);return k}}(T);
V=[Element];s7&&V.push(s7.Wrapper);V=_.U(V);H=V.next();for(T={};!H.done;T={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},H=V.next())H=H.value,H.prototype.before=E$t(H.prototype.before),H.prototype.after=E$t(H.prototype.after),T.nativeReplaceWith=H.prototype.replaceWith,H.prototype.replaceWith=function(n){return function(){var w=_.Q5.apply(0,arguments),N=_.U(JCJ(w)),L=N.next().value,
e=N.next().value;N=this.isConnected;n.nativeReplaceWith.apply(this,w);w=_.U(e);for(e=w.next();!e.done;e=w.next())Me(e.value);if(N)for(Me(this),L=_.U(L),N=L.next();!N.done;N=L.next())N=N.value,N instanceof Element&&qe(N)}}(T),T.nativeRemove=H.prototype.remove,H.prototype.remove=function(n){return function(){var w=this.isConnected;
n.nativeRemove.call(this);w&&Me(this)}}(T),T.nativeInsertAdjacentElement=H.prototype.insertAdjacentElement,H.prototype.insertAdjacentElement=function(n){return function(w,N){var L=N.isConnected;
w=n.nativeInsertAdjacentElement.call(this,w,N);L&&Me(N);w.isConnected&&qe(w);return w}}(T),T.nativeSetAttribute=H.prototype.setAttribute,H.prototype.setAttribute=function(n){return function(w,N){var L=o$c(this);
if(!L.usePatchedLifecycles)return n.nativeSetAttribute.call(this,w,N);var e=this.getAttribute(w);n.nativeSetAttribute.call(this,w,N);N=this.getAttribute(w);how(L,w,e,N)}}(T),T.nativeRemoveAttribute=H.prototype.removeAttribute,H.prototype.removeAttribute=function(n){return function(w){var N=o$c(this);
if(!N.usePatchedLifecycles)return n.nativeRemoveAttribute.call(this,w);var L=this.getAttribute(w);n.nativeRemoveAttribute.call(this,w);L!==null&&how(N,w,L,null)}}(T),T.nativeToggleAttribute=H.prototype.toggleAttribute,H.prototype.toggleAttribute=function(n){return function(w,N){var L=o$c(this);
if(!this.usePatchedLifecycles)return n.nativeToggleAttribute.call(this,w,N);var e=this.getAttribute(w),k=e!==null;N=n.nativeToggleAttribute.call(this,w,N);N!==k&&how(L,w,e,N?"":null);return N}}(T);
V=[Document,DocumentFragment,Element,ShadowRoot];s7&&V.push(s7.Wrapper);V=_.U(V);for(T=V.next();!T.done;T=V.next())T=T.value,T.prototype.prepend=E$t(T.prototype.prepend),T.prototype.append=E$t(T.prototype.append);(s7==null?void 0:s7.noPatch)===!0&&Pdy();document.readyState==="complete"?qe(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&qe(document.body)});
var x=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");x&&x.get&&x.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:x.enumerable,configurable:!0,get:x.get,set:function(n){n||Me(this);x.set.call(this,n);return n}})}};
E$t=function(V){return function(){var l=_.Q5.apply(0,arguments),I=_.U(JCJ(l)),H=I.next().value;I=I.next().value;V.apply(this,l);l=_.U(I);for(I=l.next();!I.done;I=l.next())Me(I.value);if(this.isConnected)for(H=_.U(H),l=H.next();!l.done;l=H.next())l=l.value,l instanceof Element&&qe(l)}};
Pdy=function(){for(var V=_.U(ZV1),l=V.next();!l.done;l=V.next()){l=l.value.prototype;for(var I=_.U(S1t),H=I.next();!H.done;H=I.next()){H=H.value;var T=Object.getOwnPropertyDescriptor(l,H);T&&Object.defineProperty(l,"__shady_native_"+H,T)}}};
how=function(V,l,I,H){var T,x;if((T=V.polymerController)==null?0:(x=T.observedAttributes)==null?0:x.includes(l))if(V=V.polymerController,V.attributeChangedCallbackWrapper)V.attributeChangedCallbackWrapper.call(V,l,I,H);else{var n;(n=V.attributeChangedCallback)==null||n.call(V,l,I,H)}};
JCJ=function(V){var l=[],I=[];V=_.U(V);for(var H=V.next();!H.done;H=V.next())H=H.value,H instanceof Element&&H.isConnected&&I.push(H),H instanceof DocumentFragment?l.push.apply(l,_.oI(Array.from(H.children))):l.push(H);return[l,I]};
o$c=function(V){return!(V instanceof Element)&&V.node instanceof Element?V.node:V};
Ro3=function(V,l){var I=l?["children"].concat(_.oI(l)):["children"];l=[];I=_.U(I);for(var H=I.next();!H.done;H=I.next()){var T=H.value;if(V.hasOwnProperty(T)){H=V[T];H=typeof H==="function"?H():H;H=TY(Array.isArray(H)?H:[H]).flat();if(T!=="children"){T=fjJ(T);for(var x=_.U(H),n=x.next();!n.done;n=x.next())n=n.value,n instanceof Element&&n.setAttribute("slot",T)}l.push(H)}}l.length===0?V=[]:(V=TY(_.Y("div",null,l)),V=Array.from(V.childNodes));return V};
Qyc=function(V,l,I){var H={};_.y9(function(){var T={},x;for(x in l)if(l.hasOwnProperty(x)){var n=void 0,w=void 0;if(!(((n=I.slotProps)==null?0:n.includes(x))||x==="children"||((w=I.callbackProps)==null?0:w.includes(x))||x==="ref")&&(n=_.ES(l[x]),H[x]!==n)){H[x]=n;w=void 0;var N=(w=V.hostElement)!=null?w:V;if(x==="className"||x==="id")N[x]=n;T[x]=n}}Yi(function(){if(V.setProperties)V.setProperties(T);else for(var L=_.U(Object.entries(T)),e=L.next();!e.done;e=L.next()){var k=_.U(e.value);e=k.next().value;
k=k.next().value;V[e]=k}})})};
WUy=function(V,l,I,H){var T=Ro3(I,H.slotProps),x=_.z("web_wcw_disable_slot_host_shady_dom_wrap")?V:(0,_.mL)(V);T=_.U(T);for(var n=T.next();!n.done;n=T.next())x.appendChild(n.value);Qyc(l,I,H);H=_.U(H.callbackProps||[]);T=H.next();for(x={};!T.done;x={kebabEventName:void 0,eventListener:void 0},T=H.next())n=T=T.value,String(T).substring(0,2)==="on"&&I[n]?(x.kebabEventName=fjJ(String(T).substring(2)),x.eventListener=I[n],V.addEventListener(x.kebabEventName,x.eventListener),_.rx(function(e){return function(){V.removeEventListener(e.kebabEventName,
e.eventListener)}}(x))):l[n]=I[n];
if(I.ref){I=_.U(cC3(I.ref));var w=I.next().value,N=I.next().value,L=l.attached.bind(l);l.attached=function(){w(V);L()};
_.rx(function(){N()})}};
cC3=function(V){if(typeof V==="function"){var l;return[function(I){l=V(I)},
function(){var I;(I=l)==null||I()}]}if(!V.onRender||!V.onUnmount)throw Error("Ug");
return[V.onRender,V.onUnmount]};
syW=function(V,l,I,H,T){H=H===void 0?{}:H;var x=bVq,n=!1;x?(n=!0,bVq=void 0):(q1c=l,x=document.createElement(l),q1c=void 0);var w=x;w.usePatchedLifecycles=!0;w.lifecycleIsConnected=!1;x.loggingStatus={};var N=MLw(V,l,x,H,T);_.rx(function(){w.lifecycleIsConnected&&(w.lifecycleIsConnected=!1,N.disconnectedCallback())});
n||WUy(x,N,I,H);return x};
MLw=function(V,l,I,H,T){T=T===void 0?jyw:T;pS3[l]!=null||(pS3[l]=T(V,l,H==null?void 0:H.getTemplate,H));var x=pS3[l],n=x.ctor;T=x.getInitialMethods;var w=x.getPropsToForwardBeforeReady;V=x.getPropsToForwardBeforeRegister;H=x.shouldForwardProp;var N=x.observedAttributes,L=x.shouldLog,e=n(I,{beforeReady:function(){var k=e;k._takeAttributes?k._takeAttributes():k.setPropertiesFromInitialAttributeValues&&k.setPropertiesFromInitialAttributeValues();k=_.U(w(I.polymerController));for(var X=k.next();!X.done;X=
k.next()){var r=_.U(X.value);X=r.next().value;r=r.next().value;eog(I,X,r);L(l)&&!bf(X)&&XSJ(I.polymerController,X)}I.polymerController=xsJ(e,l)}});
I.polymerController=e;I.polymerController.observedAttributes=N;x=_.U(e.getExtraMethodsToForward());for(n=x.next();!n.done;n=x.next())N=_.U(n.value),n=N.next().value,N=N.next().value,kh3(I,n,N);T=_.U(T());for(x=T.next();!x.done;x=T.next())x=x.value,H(x)&&kh3(I,x),L(l)&&!bf(x)&&FUf(e,x);V=_.U(V());for(H=V.next();!H.done;H=V.next())T=_.U(H.value),H=T.next().value,T=T.next().value,eog(I,H,T);return e};
ul1=function(V,l){return pm===l?(V.isInert=!0,pm="",!0):ACc===l?(V.isInert=!0,ACc="",!0):!1};
v$J=function(V){var l=AT;AT=V;return l};
Cdf=function(V){if(uf.has(V))ACc=V;else if(v1.has(V)&&AT&&OVN(AT)===V){var l;(l=AT)._numRenders!=null||(l._numRenders=0);AT._numRenders++;if(AT._numRenders>1)throw Error("Vg");return AT}};
asy=function(V){uf.has(OVN(V))?ACc=OVN(V):v1.has(OVN(V))&&AT!==V&&(V._isInert=!0)};
OVN=function(V){var l;return(l=V==null?void 0:V.tagName.toLowerCase())!=null?l:""};
fst=function(V,l){if(V.componentType===e_)throw Error("Wg");v1.add(l);var I=function(){var H=HTMLElement.call(this)||this;H.is=l;if(q1c===l)return H.isInert=!0,H;H.createElement();return H};
_.t(I,HTMLElement);I.prototype.createElement=function(){if(!this.isInert){bVq=this;var H=_.U(wlt(function(){return _.Y(V,null)})).next().value;
bVq=void 0;beW(this);return H}};
customElements.define(l,I)};
mT1=function(V,l,I,H,T){V.prototype.is=l;(H==null?0:H.useSink)?g$3(V,l,I,H,T):(I=jyw(V,l,I,H),zoc(I,l));return V};
g$3=function(V,l,I,H,T){DTT();var x=_.W1(function(n){return syW(V,l,n,Object.assign({},H,{getTemplate:I}),T)},"a");
fst(x,l);return x};
Viw=function(V){return!iVT.has(V)};
HI3=function(V,l,I,H){function T(){if(!k){for(var X=new Set(lHJ),r=_.U(x.behaviors),E=r.next();!E.done;E=r.next()){E=E.value;for(var D=_.U(Object.getOwnPropertyNames(E)),Z=D.next();!Z.done;Z=D.next()){Z=Z.value;var S=void 0,p=(S=Object.getOwnPropertyDescriptor(E,Z))==null?void 0:S.value;p&&p instanceof Function&&X.add(Z)}}r=_.U(Object.entries(Object.getOwnPropertyDescriptors(V.prototype)));for(E=r.next();!E.done;E=r.next())D=_.U(E.value),E=D.next().value,D=D.next().value,D.value instanceof Function&&
X.add(E);k=X}return k}
var x=qsc({is:l,disableElementRegistration:!1,getTemplate:I,providers:H==null?void 0:H.providers,reactivityMode:H==null?void 0:H.reactivityMode},V);if((H==null?0:H.allowedProps)||(H==null?0:H.allowedPropsFromBehaviors)){var n,w;x.allowedProps=[].concat(_.oI((n=H.allowedProps)!=null?n:[]),_.oI((w=H.allowedPropsFromBehaviors)!=null?w:[]))}var N=ZXJ(x,V);l=N.observedAttributes;var L={};I=_.U(x.reactiveSchemas);for(H=I.next();!H.done;H=I.next())if(H=H.value,H.type==="signal")L[H.propertyKey]={readOnly:H.readOnly},
H.readOnly&&(L[Dsf(H.propertyKey)]={readOnly:!0});else if(H.type==="compute"||H.type==="computeWithMethod"||H.type==="redux")L[H.propertyKey]={readOnly:!0};var e=x.reactiveSchemas.length,k;return{ctor:function(X,r){X=new N(X);X.beforeReady=r.beforeReady;return X},
props:L,observedAttributes:l,getInitialMethods:T,getPropsToForwardBeforeRegister:function(){for(var X=[],r=new Set,E=_.U(IH1),D=E.next();!D.done;D=E.next())D=D.value,X.push([D,D!=="observers"&&D!=="properties"]),r.add(D);E=_.U(Object.keys(L));for(D=E.next();!D.done;D=E.next())D=D.value,X.push([D,L[D].readOnly]),r.add(D);E=T();D=_.U(Object.keys(Object.getOwnPropertyDescriptors(V.prototype)));for(var Z=D.next();!Z.done;Z=D.next())Z=Z.value,!Viw(Z)||E.has(Z)||r.has(Z)||(X.push([Z,!1]),r.add(Z));X.push(["allowedProps",
!0]);return X},
getPropsToForwardBeforeReady:function(X){var r=[];X=_.U(Object.keys(X));for(var E=X.next();!E.done;E=X.next()){E=E.value;var D=T();Viw(E)&&!D.has(E)&&r.push([E,!1])}X=_.U(x.reactiveSchemas.slice(e));for(E=X.next();!E.done;E=X.next())E=E.value,E.type!=="compute"&&E.type!=="computeWithMethod"&&E.type!=="redux"&&E.type!=="signal"||r.push([E.propertyKey,E.type==="signal"?E.readOnly:!0]);return r},
shouldForwardProp:Viw,shouldLog:U7}};
_.u=function(V,l,I,H){var T,x,n=(x=(T=H)==null?void 0:T.mode)!=null?x:0;H!=null||(H={});var w;(w=H).reactivityMode!=null||(w.reactivityMode=0);n===1&&_.V7("creator_poly_si_disable_list").includes(l)&&(n=2);return n===1?mT1(V,l,I,Object.assign({},H,{useSink:!0}),HI3):mT1(V,l,I,Object.assign({},H,{useSink:n===2}))};
_.O7=function(){return function(V,l,I,H){var T,x,n=(x=(T=H)==null?void 0:T.mode)!=null?x:2;H!=null||(H={});var w;(w=H).reactivityMode!=null||(w.reactivityMode=0);if(n===0)throw Error("Xg`"+n);return g$3(V,l,I,H,n===1?HI3:void 0)}};
_.Cm=function(V){return _.z("creator_poly_si_killswitch")?!1:_.z("force_all_poly_si_batches")&&(V==="poly_si_all_on_test_check"||V==="creator_poly_si_batch_050"?0:V)||document.documentElement.hasAttribute("use-signals")?!0:!V||_.z(V+"_holdback_enabled")&&_.z("kevlar_polysi_holdback")?!1:_.z(V)};
aj=function(V){return V?V.icon?V.icon.iconType.toLowerCase():V.customThumbnail?"member":"":""};
TZf=function(V){if(!V)return"";V=_.U(V);for(var l=V.next();!l.done;l=V.next())if((l=l.value)&&l.liveChatAuthorBadgeRenderer&&(l=aj(l.liveChatAuthorBadgeRenderer))&&l!=="verified")return l;return""};
BZJ=function(V,l){if(!V)return null;var I;return((I=V.find(function(H){return H&&H.liveChatAuthorBadgeRenderer?aj(H.liveChatAuthorBadgeRenderer)===l:!1}))==null?void 0:I.liveChatAuthorBadgeRenderer)||null};
_.wgt=function(V){var l=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;V=xtt(V);l=xtt(l);var I=Utt(V.hex);l=Utt(l.hex);var H=l[0]/255;var T=l[1]/255,x=l[2]/255,n=Math.max(H,T,x),w=Math.min(H,T,x),N=0,L=0,e=.5*(n+w);n!=w&&(n==H?N=60*(T-x)/(n-w):n==T?N=60*(x-H)/(n-w)+120:n==x&&(N=60*(H-T)/(n-w)+240),L=0<e&&e<=.5?(n-w)/(2*e):(n-w)/(2-2*e));H=[Math.round(N+360)%360,L,e];I=ntT(I,l);for(V=$tt(V.hex);I<4.5;){V=H[2]>=.5?V.darker((4.5-I)/2):V.brighter((4.5-I)/2);I=V.toString();
T=dtg(I);if(!T.length)throw Error("Ud`"+I);I=T;I=ntT(I,l)}return V.hex()};
ntT=function(V,l){V=_.U61(V);l=_.U61(l);return(Math.max(V,l)+.05)/(Math.min(V,l)+.05)};
_.fm=function(V){return"#"+("000000"+(V&16777215).toString(16)).slice(-6)};
_.NZ1=function(V){for(var l=0,I=0;I<V.length;I++)l=V.charCodeAt(I)+((l<<5)-l);V="#";for(I=0;I<3;I++)V+=("00"+(l>>I*8&255).toString(16)).slice(-2);return V};
KOy=function(V){V=(V||"").split(":");V.length===1&&V.unshift("yt-icons");V[1]=V[1].toLowerCase();return V};
FOK=function(V,l){var I=(l=l===void 0?!1:l)?j$N:Y31,H=l?LOc:eEq;V.getIconNames().forEach(function(T){T=l?T:T.substring(T.indexOf(":")+1);V.name==="yt-icons"?k6t.add(T):T.includes("-filled")?I.add(T):H.add(T)})};
g_=function(V,l,I,H){I=I===void 0?!1:I;H=H===void 0?!1:H;var T,x,n;return _.d(function(w){if(w.nextAddress==1)return _.K(w,XgJ,2);if(H)return w.return(k6t.has(V));T=I?j$N:Y31;x=I?LOc:eEq;return l?(n=V.includes("-filled")?V:V.concat("-filled"),w.return(T.has(n))):w.return(x.has(V))})};
_.ti3=function(V){if(zEw(V))return V;var l=V=V.toLowerCase();(V=yXt.get(V))&&(l=V);return l};
_.mj=function(V){if(zEw(V))return V.toString();var l=rX1.get(V);if(l)return l;l=V.toLowerCase();var I="yt-icons",H=l.replace(/_/g,"-");switch(V){case "MY_CHANNEL":l="account_circle";break;case "ADD_TO_LIBRARY":l="add";break;case "ALERT_WARN_RED":l="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":l="person_music";break;case "BLOCK_USER":l="block";break;case "CAPTIONS":l="closed_caption";break;case "CLOSED_CAPTION":I="av";l="closed-caption";break;case "COLLECTION":I="maps";l="layers";break;case "CONTACT":I=
"icons";l="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":I="ytcp-icons";l=H.split("creator-studio-")[1];break;case "DISMISSAL":l="close";break;case "DO_NOT_DISTURB":l="block";break;case "DOGFOOD":I="icons";l="pets";break;case "DRAFT":l="paper_corner_folded";break;
case "EMPTY_LIKE":l="like_outline";break;case "EXIT_APP":l="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":l=H;break;case "GAMES":I="ytg";l="my-games";break;case "GO_TO_PAGE":l="arrow-forward";break;case "GROUP":I="social";break;case "HIDE":l="not_interested";break;case "INPUT_COMPONENT":I="icons";l="settings-input-component";break;case "KIDS_BLOCK":l="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":I="ytg";l="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":I=
"ytg";l="membership-post-purchase";break;case "MULTIVIEW":l="screen_multi_view";break;case "MY_LOCATION":I="maps";l=H;break;case "NOTIFICATIONS_INBOX":l="NOTIFICATIONS";break;case "NEXT":l="chevron_right";break;case "OFFLINE":l="power-settings-new";break;case "PAUSE":I="miniplayer";break;case "PAYMENT":I="icons";break;case "PHONE_DOWNLOAD":l="phone_download";break;case "PREMIUM_STANDALONE":I="yt-logos";l="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":I="yt-logos";l="premium_standalone_cairo";
break;case "QUESTION_ANSWER":l="question_answer";break;case "REDEEM":I="icons";l="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":l="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":l="library_add";break;case "SCHOOL":I="yt-sys-icons";l="creator_academy";break;case "SETTINGS_LIGHT":l="settings_applications";break;case "SETTINGS_MATERIAL":l="settings";break;case "SEARCH_HISTORY":l="watch_history";break;case "SHOPPING_BAG":l="bag";break;case "SOCIAL":case "PEOPLE":I=
"yt-icons";l="people";break;case "STAFF_PICK":I="ytg";l="spotlight";break;case "START_DVR":l="add";break;case "STOP_DVR":I="av";l="stop";break;case "TAB_LIKED":l="like";break;case "TAB_INBOX":l="mail";break;case "TERMS_OF_SERVICE":I="icons";l="description";break;case "TRENDING":l="fire";break;case "UNBLOCK_USER":l="remove";break;case "UNPLUGGED_DARK_THEME":I="image";l="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":l="live";break;case "UNPLUGGED_SPORTS":I="ytu";l="visibility-off";break;
case "VIDEOS":I="av";l="play-circle-filled";break;case "YOUTUBE":I="yt-logos";l="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":I="yt-logos-ext";l="yt-logo-red-updated";break;case "YOUTUBE_LOGO":I="yt-logos-ext";l="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":I="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":I="shorts";l=H;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":I="yt-sys-icons";l="youtube_improve_tv";break;case "OUTLINE_BAG":I=
"yt-sys-icons";l="bag";break;case "QUEUE_PLAY_LAST":I="yt-sys-icons";l="list_queue_last";break;case "SLASH_CIRCLE_LEFT":l="slash_circle_left";break;case "SPEED_1_POINT_2X":l="1_point_2x";break;case "SPEED_1_POINT_5X":l="1_point_5x";break;case "SPEED_1_POINT_8X":l="1_point_8x";break;case "SPEED_POINT_2X":l="point_2x";break;case "SPEED_POINT_5X":l="point_5x";break;case "SPEED_POINT_8X":l="point_8x";break;case "SPEED_1X":l="1x";break;case "SPEED_2X":l="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":I="yt-sys-icons";
l="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":I="yt-sys-icons";l="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":I="yt-sys-icons",l="tic_tac_toe"}l=I+":"+l;rX1.set(V,l);return l};
zEw=function(V){var l;_.z("kevlar_use_wil_icons")?l=!!_.F().resolve(_.VI).resolveIcon({iconName:V.toString()}):l=!1;return l};
_.IN=function(V,l,I,H){I=I===void 0?{}:I;H=H===void 0?!1:H;I===null&&(I={});var T=_.V7("kevlar_command_handler_command_banlist");T=_.U(T);for(var x=T.next();!x.done;x=T.next())if(x=V?V.hasOwnProperty(x.value):void 0,x)return!1;T=_.y(V.commandMetadata,_.mK);return H&&T!=null&&T.url?!1:!l.disableCommandHandlerOverride&&_.li.instance?(H=_.li.instance,I.form||(I.form={element:l}),I.form.element||(I.form.element=l),!I.clickedVisualElement&&l.visualElement&&(I.clickedVisualElement=l.visualElement),H.resolveCommand(V,
I),!0):!1};
G6T=function(V,l){V=HX(V);for(var I=_.U(V.visibilityMonitorKeys||[]),H=I.next();!H.done;H=I.next())l.unobserveByKey(H.value);V.visibilityMonitorKeys=void 0};
hE3=function(V,l){if(_.oa()){if(_.z("kevlar_vimio_use_shared_monitor"))Etf(V,l.data);else if(!Etf(V,l.data))return;var I=l.data,H=JX3(I);if(_.z("enable_client_ve_spec_logging"))G6T(V,l.observer);else{var T=HX(V);T.trackedParams&&T.trackedParams!==H&&G6T(V,l.observer)}T=HX(V);!I||T.data&&T.data===I||(T.data=I);otK(V,l);T.trackedParams=H}};
otK=function(V,l){var I=l.observer;if(!I&&_.z("web_skip_missing_vimio_observer")){var H,T;_.hF(new _.Yd("VisibilityObserver is not defined.",V.tagName,V.trackedParams,(H=l.data)==null?void 0:H.trackingParams,(T=l.data)==null?void 0:T.loggingDirectives))}else{var x=l.layer,n=l.visibilityCallback||function(){},w=l.prescanCallback,N=HX(V);
H=[];l.showOption&&H.push(I.observe(V,function(){l.skipLogging&&l.skipLogging()||_.TG().reportShown(N,void 0,x);n(!0)},l.showOption));
l.hideOption&&H.push(I.observe(V,function(){_.TG().reportHidden(N,void 0,x);n(!1)},l.hideOption));
l.prescanOption&&w&&H.push(I.observe(V,function(){w()},l.prescanOption));
N.visibilityMonitorKeys=H}};
Etf=function(V,l){V=HX(V);if(V.visualElement&&!l)return!0;if(!l)return!1;var I=!1;if(_.z("enable_client_ve_spec_logging")){var H,T;I=!!((H=l.loggingDirectives)==null?0:(T=H.clientVeSpec)==null?0:T.uiType)}H=JX3(l);if(!H&&!I)return!1;_.z("mweb_component_visibility_logging")&&(V.veContainer||(V.veContainer={}),V.veContainer.trackingParams=H);if(V.trackedParams&&V.trackedParams===H)return!1;var x;if(_.z("enable_client_ve_spec_logging")&&((x=V.visualElement)==null?0:x.isClientVe())){var n;x=(n=V.visualElement)==
null?void 0:n.getAsJspb();var w,N,L,e;if(_.lO(x,2)===((w=l.loggingDirectives)==null?void 0:(N=w.clientVeSpec)==null?void 0:N.uiType)&&_.lO(x,3,-1)===((L=l.loggingDirectives)==null?void 0:(e=L.clientVeSpec)==null?void 0:e.elementIndex))return!1}if(_.z("enable_client_ve_spec_logging")){var k,X;!V.visualElement&&((k=l.loggingDirectives)==null?0:(X=k.clientVeSpec)==null?0:X.uiType)&&(w=l.loggingDirectives.clientVeSpec,l=w.uiType,n=w.elementIndex,w=w.clientYoutubeData,V.visualElement=_.BX(_.x7(),{veType:l,
elementIndex:n,clientYouTubeData:w}))}return!0};
JX3=function(V){if(V==null?0:V.rendererContext){var l=_.y(V.rendererContext,_.Pjc);if(l==null?0:l.loggingDirectives)return l.loggingDirectives.trackingParams}return(V==null?0:V.loggingDirectives)?V.loggingDirectives.trackingParams:V==null?void 0:V.trackingParams};
HX=function(V){var l;return(l=V.polymerController)!=null?l:V};
RE1=function(V){_.TG();if(_.Zp(UI().JSC$10309_elementShouldLogGesture).bind(UI())(V,4)){Dt1(V);var l=ZIy(V);S3g.set(V,l)}};
Dt1=function(V){S3g.has(V)&&(S3g.get(V).cancel("untrack hover element"),S3g.delete(V))};
ZIy=function(V){var l,I=[],H=!1,T=new _.UZ(function(x,n){nt(V,"mouseenter",_.Zp(function(){var w,N,L;return _.d(function(e){if(e.nextAddress==1)return l=(0,_.O_)(),w=Q$T(V),I.push(w),N=cX1(V,function(){H=!0;n(Error("Yg"))}),_.K(e,w,2);
if(e.nextAddress!=3)return N&&$7(N),L=WOt(V),I.push(L),_.K(e,L,3);x();_.FU(e)})}))});
T.then(function(){var x=(0,_.O_)()-l;x=Math.round(x);if(!(500>x||6E5<=x)){var n=V.getScreenLayer?V.getScreenLayer():void 0;n=_.oa(n)||"";var w=bIc(_.TG(),V);_.v$(n,V.visualElement?V.visualElement:_.dj(w),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:x}})}RE1(V)},function(){wj&&(wj(),wj=null);
H&&(Dt1(V),RE1(V))});
return T};
Q$T=function(V){var l;return(new _.UZ(function(I,H){wj=function(){H(Error("Zg"))};
l=_.r0.debounce(_.Zp(function(){$7(T);I()}),1,100);
var T=_.NR(V,"mousemove",l)})).thenCatch(function(){var I=_.r0.cancelDebouncedJobMap.get(l);
I&&_.r0.cancelJob(I)})};
WOt=function(V){var l;return(new _.UZ(function(I,H){wj=function(){H(Error("$g"))};
l=nt(V,"mouseleave",_.Zp(function(){I()}))})).thenCatch(function(){$7(l)})};
cX1=function(V,l){return nt(V,"mouseleave",_.Zp(l))};
Miq=function(V){q3y&&_.Kt.cancel(q3y);q3y=_.Kt.run(function(){_.B$(V,"yt-visibility-refresh");q3y=0})};
s$T=function(V){V=Number(V);return"rgba("+[V>>16&255,V>>8&255,V&255,(V>>24&255)/255].join()+")"};
AXN=function(V){if(!V)return!1;if(_.y(V,_.pg1))return!0;var l;if(V=(l=_.y(V,_.NJ))==null?void 0:l.commands)for(l=_.U(V),V=l.next();!V.done;V=l.next())if(_.y(V.value,_.pg1))return!0;return!1};
u8w=function(V){var l=!0;l=l===void 0?!0:l;if(!V.useSignals&&!V.experimentalPropertiesChanged||_.z("experimental_templating_behavior_nopatch_killswitch")){var I=V._propertiesChanged;V._propertiesChanged=function(H,T,x){l?V.debounceRender():V.doRender();I&&I.call(V,H,T,x)}}};
vt1=function(V,l){if(V.useSignals||V.experimentalPropertiesChanged)if(_.z("experimental_templating_behavior_nopatch_killswitch"))V.experimentalPropertiesChanged=function(){};
else return;var I=new Set,H=[V].concat(_.oI(V.behaviors));H=_.U(H);for(var T=H.next();!T.done;T=H.next()){T=T.value;for(var x in T.properties)I.has(x)||(V._addPropertyEffect(x,"function",l),I.add(x))}};
OIf=function(){var V=Polymer.Element,l=V._prepareTemplate;V._prepareTemplate=function(){l.call(this);var I=this.prototype;if(I.experimentalTemplatingInUse&&I.experimentalTemplatingInUse()&&I.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Gr(Error("ah"));else{I=this.template.content.childNodes;for(var H=I.length-1;H>=0;H--){var T=I[H];T.nodeName!=="STYLE"&&T.nodeName!=="LINK"&&T.nodeName!=="SCRIPT"&&T.nodeName!=="#comment"&&T.remove()}}}};
CjT=function(V){var l=!0;l=l===void 0?!0:l;OIf();var I=V.ready;V.ready=function(){this._template=null;I.call(this)};
vt1(V,l?V.debounceRender:V.doRender)};
fHw=function(V,l,I){if(I===null||I===void 0)return I;var H=lUW(V.tagName.toLowerCase(),l,function(){throw Error("Sb");});
if(H===null)return I;H=aHc[H];var T;if((T=H.isUnwrappable)==null?0:T.call(H,I)){if(H.unwrap)return H.unwrap(I);throw Error("dh");}return H.filterString?H.filterString(V.tagName,l,String(I)):I};
gtf=function(V,l,I){var H=l[l.length-1]!=="$",T=fHw(V,l,I);if(H)if(typeof T==="function"&&l.startsWith("reactiveon")&&l===l.toLowerCase()){var x=_.vv;wIg(V,l.slice(8),function(n){J0(x,function(){T(n)})})}else V[l]=T;
else I=T==null?null:String(T),dKw(V,l.slice(0,-1),I)};
jz=function(V){mtN.length===0&&requestAnimationFrame(function(){setTimeout(function(){var l=mtN.slice();mtN.length=0;l=_.U(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;try{I()}catch(H){_.bK(H)}}})});
mtN.push(V)};
iIK=function(V){if(V){var l=V.component;if(l){var I;l==null||(I=l.events)==null||I.publish("DISCONNECTED");var H;l==null||(H=l.onDisconnected)==null||H.call(l)}var T,x;(T=V.__spec)==null||(x=T.didUnmount)==null||x.call(T);for(l=0;l<V.childNodes.length;l++)iIK(V.childNodes[l])}};
Lt=function(V,l,I){var H=l&&l.key,T=qy;T[0]=V;T[1]=H;T[2]=void 0;for(var x in l)l.hasOwnProperty(x)&&(V=l[x],H=My,H.push(x),H.push(V));l=qy;a:{if(x=qy[2])for(V=0;V<x.length;V+=2)if(x[V]==="nonce"){x=x[V+1];break a}x=""}x=rlT(l[0],l[1],x);V=PT(x);H=l[2];if(!V.staticsApplied&&(V.staticsApplied=!0,H&&H.length))if((T=V._attrsArr)&&T.length){for(T=0;T<H.length;T+=2)Y7[H[T]]=T+1;T=V._attrsArr||(V._attrsArr=$KT(0));for(var n=0,w=0;w<T.length;w+=2){var N=T[w],L=T[w+1],e=Y7[N];e?H[e]===L&&delete Y7[N]:(T[n]=
N,T[n+1]=L,n+=2)}ox(T,n);for(var k in Y7)L4y(x,k,H[Y7[k]],CO),delete Y7[k]}else for(k=0;k<H.length;k+=2)L4y(x,H[k],H[k+1],CO);DKf(x,V,CO);ox(l,0);I&&I(Dn);GOw()};
Vxw=function(V){var l=V.toString().toLowerCase();return function(I,H){Lt(l,I,H)}};
lcW=function(V){var l=ez,I,H=(I=V.hostProps)!=null?I:V.config;l.getHostProps&&(H=l.getHostProps(V));Lt(l.tagName,H,function(T){var x=!1;V.ref&&(V.ref.value=T);if(!T.component){var n=new l(T,V);x=!0;T.component=n;n.events.publish("CONNECTED")}T.component.willReceiveProps&&V!==T.component.props&&T.component.willReceiveProps(V);T.component.props=V;if(T.data!==V.data||V)T.data=V.data||V;if(x){n=T.component;var w={stack:[],error:void 0,hasError:!1};try{_.QP(w,_.a8(n.owner));var N=V9(Uo);try{n.render()}finally{V9(N)}}catch(k){w.error=
k,w.hasError=!0}finally{_.c1(w)}}else T.component.patchInternal();T.component.events.publish("UPDATED");if(x){var L,e;(e=(L=T.component).onMounted)==null||e.call(L)}})};
_.k7=function(V,l,I){I===void 0?delete V[l.name]:V[l.name]=I};
_.Fo=function(V){var l={androidIncludeFontPadding:!1},I=0,H=[],T=[],x=[];if(V.simpleText)return l.content=V.simpleText,l;if(V.runs===void 0)return l.content="",l;V=_.U(V.runs);for(var n=V.next();!n.done;n=V.next()){n=n.value;var w=n.text,N=void 0,L=(N=w)==null?void 0:N.length;if(w&&L){H.push(w);if(n.bold||n.italics||n.strikethrough||n.underline||n.textColor!=null&&n.textColor!==0||n.deemphasize){w=T;N=w.push;var e={startIndex:I,length:L};n.bold&&(e.weightLabel="FONT_WEIGHT_MEDIUM");n.italics&&(e.italic=
!0);n.strikethrough&&(e.strikethrough="LINE_STYLE_SINGLE");n.underline&&(e.underline="LINE_STYLE_SINGLE");n.textColor!=null&&n.textColor!==0?document.documentElement.hasAttribute("dark")?e.fontColor=n.darkModeTextColor||n.textColor:e.fontColor=n.textColor:n.deemphasize&&(document.documentElement.hasAttribute("dark")?e.fontColor=parseInt("ff"+Ic1("#aaa").substring(1),16):e.fontColor=parseInt("ff"+Ic1("#606060").substring(1),16));N.call(w,e)}n.navigationEndpoint&&(w=x,N=w.push,e={startIndex:I,length:L,
onTap:{innertubeCommand:n.navigationEndpoint}},n.loggingDirectives&&_.k7(e,HxW,n.loggingDirectives),N.call(w,e));I+=L}}l.content=H.join("");l.styleRuns=T.length?T:void 0;l.commandRuns=x.length?x:void 0;return l};
By1=function(V){if(V==null||!V.runs)return!0;V=_.U(V.runs);for(var l=V.next();!l.done;l=V.next())if(l=l.value,l.bracket||l.errorUnderline||l.deemphasize||_.y(l,Xo)||_.y(l,Tyt))return!1;return!0};
xwT=function(V,l){return function(I){var H=l.unit;if(H!==I)throw Error("gh`"+V+"`"+H+"`"+I);return l}};
zG=function(V){if(!((V==null?0:V.value)&&(V==null?0:V.unit)))return"";switch(V.unit){case "DIMENSION_UNIT_FRACTION":var l="%";break;default:l="px"}V=V.value;l==="%"&&(V*=100);return""+V+l};
Uww=function(V){try{return V()}catch(l){_.hF(l)}};
_.to=function(V){var l=_.y(V,_.yI);if(l)return l;if((l=_.y(V,nRK))&&l.commands)return $wf(l.commands);if((l=_.y(V,dwK))&&l.commands)return $wf(l.commands);if((V=_.y(V,wC1))&&V.identifier&&V.command&&(Nyg||(Nyg=[]),!Nyg.includes(V.identifier)))return Nyg.push(V.identifier),_.y(V.command,_.yI)};
$wf=function(V){if(V.length!==0){var l=[];V=_.U(V);for(var I=V.next();!I.done;I=V.next())(I=_.to(I.value))&&l.push(I);return{commandExecutorCommand:{commands:l}}}};
_.GG=function(V){var l=V.defaultTarget,I=V.elementConfig,H=V.elementsCommand,T=V.skipOnClick,x=V.forceNewState,n=V.additionalCommandArgs,w=V.innertubeCommand||_.to(H);if(w){V={};var N=Koc(w);H=N.navigatingCommand;N=N.href;H&&N?(V.href$=N,jrT(V,H,N,l),_.z("web_atagconfig_pointerdown")&&YFc(V,H),x&&(V["force-new-state$"]=!0)):(V.role$="button",V.href$="javascript:void(0);");_.y(w,Lo3)&&(V["aria-haspopup$"]=!0);T||(V.onclick=function(L){if(ekK(L)){var e=Object.assign({},{form:{element:L.target,event:L}},
n);L.preventDefault();_.rj(w,e)}});
return Object.assign({},I,V)}};
kit=function(V){if(V.length){if(V.length===1)return V[0];var l={};_.k7(l,_.NJ,{commands:V});return l}};
FoN=function(V){return V&&V.href$!=="javascript:void(0);"};
Koc=function(V){var l,I=((l=_.y(V,_.NJ))==null?void 0:l.commands)||[V];V=_.U(I);for(l=V.next();!l.done;l=V.next()){l=l.value;var H=void 0,T=void 0;I=(T=_.y((H=l)==null?void 0:H.commandMetadata,_.mK))==null?void 0:T.url;_.z("web_remove_web_navigation_endpoint_data")||(H=void 0,I=I||((H=_.y(l,XC3))==null?void 0:H.url));if(I&&I!=="/service_ajax"){if(H=DC(I,zkc))return V=_.hV(H),{navigatingCommand:l,href:V};_.hF(new _.Yd("AttributedString URL could not be sanitized",I))}}return{}};
ekK=function(V){return V.button!==void 0?V.button===0&&!(V.shiftKey||V.altKey||V.metaKey||V.ctrlKey):!(V.shiftKey||V.altKey||V.metaKey||V.ctrlKey)};
jrT=function(V,l,I,H){I=!ut(I);var T,x,n;if((T=_.y(l,_.$V))!=null&&T.nofollow||(x=_.y(l,_.vU))!=null&&x.nofollow||(n=_.y(l,_.cF))!=null&&n.nofollow||I)V.rel$="nofollow";var w;l=((w=_.y(l,_.cF))==null?void 0:w.target)==="TARGET_NEW_WINDOW"?"_blank":H===void 0?"":H;V.target$=l};
YFc=function(V,l){l.clickTrackingParams&&(V.params={itct:l.clickTrackingParams});V.onpointerdown=function(I){y8t(I)};
V._data=l};
txf=function(V){(V.loggingUrls||[]).forEach(function(l){Qz(l.baseUrl,l.attributionSrcMode)})};
r8K=function(V){V.currentTarget._data&&txf(V.currentTarget._data)};
y8t=function(V){var l=V.currentTarget;V=Uww(function(){return l.href});
var I=l.params;V&&_.f8(V,I||{},8,!0)};
Git=function(V,l){if(l=_.y(l,_.cF))(l==null?void 0:l.target)==="TARGET_NEW_WINDOW"&&(V.target="_blank"),l.nofollow&&(V.rel="nofollow")};
ER3=function(V){V=_.y(V==null?void 0:V.commandMetadata,_.mK);return(V==null?0:V.url)?V.url:null};
_.EI=function(V,l){(V=_.to(V))&&_.rj(V,l)};
_.rj=function(V,l){X$T(function(I){l?I.resolveCommand(V,l):I.resolveCommand(V)})};
Phf=function(V,l){var I=["yt-core-attributed-string__link"];l!=null&&l.noLinkColor||((l==null?0:l.isOverlay)?I.push("yt-core-attributed-string__link--overlay-call-to-action-color"):I.push("yt-core-attributed-string__link--call-to-action-color"),(l==null?0:l.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color"));I={className:I.join(" "),tabindex$:"0"};var H=V.onTap||V.onLongPress;if(!H)return I;var T=J8f(V);T&&(I["aria-label$"]=T);l=_.GG({elementsCommand:H,elementConfig:I,skipOnClick:!(l==
null||!l.skipOnClick),forceNewState:!0});V.onLongPress&&(H=new oRK(function(){var x=_.to(V.onLongPress);x&&_.F().resolve(_.aw).resolveCommand(x)}),l&&hkT(H,l));
return l||I};
J8f=function(V){var l,I;return(l=V.onTapOptions)==null?void 0:(I=l.accessibilityInfo)==null?void 0:I.accessibilityLabel};
Dwc=function(V){var l=V;V<=16777215&&(l+=parseInt("ff000000",16));return _.rP(l)};
Zxf=function(V){var l=V.isDarkTheme;var I=V.extension;V=V.runColor;var H=void 0;if(I=I==null?void 0:I.colorMap){l=l?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";I=_.U(I);for(var T=I.next();!T.done;T=I.next())if(T=T.value,l===T.key){H=T.value;break}}H==null&&V&&(H=V);if(H)return Dwc(H)};
Jo=function(V){var l=V.config;var I=V.image;var H=V.imageConfig;var T=V.imageWrapperConfig;var x=V.run;var n=V.tag;var w=V.textLength;var N=V.startIndex===void 0?0:V.startIndex;V=V.length;N===void 0&&(N=0);x={run:x,startIndex:N,endIndex:V!==void 0?N+V:w,tag:n};I&&(x.image=I);H&&(x.imageConfig=H);T&&(x.imageWrapperConfig=T);l&&(x.config=l);return x};
Rky=function(V,l){var I=[];I.push("yt-core-attributed-string");(l==null?0:l.className)&&I.push(l==null?void 0:l.className);(l==null?0:l.ellipsisTruncate)?I.push("yt-core-attributed-string--ellipsis-truncate"):(l==null?0:l.noWrap)?I.push("yt-core-attributed-string--white-space-no-wrap"):(l==null?0:l.noPreWrap)||I.push("yt-core-attributed-string--white-space-pre-wrap");(l==null?0:l.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color");V.alignment&&I.push(SFg(V.alignment));V.lineBreakMode&&
I.push("yt-core-attributed-string--word-wrapping");return I.join(" ")};
QrJ=function(V){if(V.weight)return V.weight;switch(V.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}};
c83=function(V){switch(V){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"}};
SFg=function(V){switch(V){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"}};
bx3=function(V,l,I){var H=l;V.content&&I&&(I=V.content.indexOf("\n"),I!==-1&&(H=Math.min(l,I)));if(!V.content||V.content.length<=H)l=V;else if(V.attachmentRuns||V.commandRuns||V.decorationRuns||V.styleRuns||V.paragraphStyleRuns){l=oN(V.content,H);I=H;var T=V.attachmentRuns;if(T){var x=[];T=_.U(T);for(var n=T.next();!n.done;n=T.next())n=Object.assign({},n.value),n.startIndex===void 0||n.startIndex>=I||(n.length||(n.length=0),n.length+n.startIndex>I&&(n.length=I-n.startIndex),x.push(n));I=x}else I=
void 0;x=WoJ(H,V.commandRuns);T=H;var w=V.decorationRuns;if(w){n=[];w=_.U(w);for(var N=w.next();!N.done;N=w.next()){N=N.value;var L=_.y(N.textDecorator,ho);if(L&&L.startIndex!==void 0&&!(L.startIndex>=T)){N=Object.assign({},N,{textDecorator:{highlightTextDecorator:Object.assign({},L)}});L=_.y(N.textDecorator,ho);if(!L.length||L.length+L.startIndex>T)L.length=T-L.startIndex;n.push(N)}}T=n}else T=void 0;n=WoJ(H,V.styleRuns);if(w=V.paragraphStyleRuns)for(V=[],w=_.U(w),N=w.next();!N.done;N=w.next()){var e=
N.value;N=Object.assign({},e);if(!(N.startIndex===void 0||N.startIndex>=H)){if(!N.length||N.length+N.startIndex>H)N.length=H-N.startIndex;L=[];var k=void 0,X=void 0;if((k=e)==null?0:(X=k.listGroup)==null?0:X.listItems)for(e=_.U(e.listGroup.listItems),k=e.next();!k.done;k=e.next())if(k=Object.assign({},k.value),!(k.startIndex===void 0||k.startIndex>=H)){if(!k.length||k.length+k.startIndex>H)k.length=H-k.startIndex;L.push(k)}L.length>0&&(N.listGroup||(N.listGroup={}),N.listGroup=Object.assign({},N.listGroup,
{listItems:L}));V.push(N)}}else V=void 0;l={content:l,attachmentRuns:I,commandRuns:x,decorationRuns:T,styleRuns:n,paragraphStyleRuns:V}}else l=Object.assign({},V,{content:oN(V.content,H)});return l};
WoJ=function(V,l){if(l){var I=[];l=_.U(l);for(var H=l.next();!H.done;H=l.next())if(H=Object.assign({},H.value),!(H.startIndex===void 0||H.startIndex>=V)){if(!H.length||H.length+H.startIndex>V)H.length=V-H.startIndex;I.push(H)}return I}};
oN=function(V,l){var I=l,H;if(H=I>0)H=V.charCodeAt(I-1),H=H>=55296&&H<=56319;H&&(I=V.charCodeAt(I),H=I>=56320&&I<=57343);H&&--l;return V.substring(0,l)};
pCw=function(V,l,I){I=I===void 0?qFq:I;if(V){var H=_.F().resolve(fO);H||_.z("mweb_no_observer_killswitch")?hE3(V,{data:l,observer:H,visibilityCallback:I,hideOption:Mx3,showOption:srT,layer:V.layer}):_.hF(new _.Yd("Warning: monitorVisibility called with null observer",V.tagName,l==null?void 0:l.loggingDirectives,l==null?void 0:l.trackingParams))}else _.hF(new _.Yd("Warning: monitorVisibility called with null element",l==null?void 0:l.loggingDirectives,l==null?void 0:l.trackingParams,l==null?void 0:
l.rendererContext))};
fcK=function(V,l){var I=[],H=V.content.length,T,x=(T=_.F().resolve(_.Cs(_.DA)))==null?void 0:T();if(V.paragraphStyleRuns){T=_.U(V.paragraphStyleRuns);for(var n=T.next();!n.done;n=T.next()){var w=I.push,N=w.apply;var L=void 0;n=n.value;if((L=n.listGroup)!=null&&L.listItems){L=[];b:switch(n.listGroup.listType){case "LIST_TYPE_BULLET":var e="ul";break b;default:e="span"}L.push(Jo({run:n,textLength:H,tag:e,config:{className:"yt-core-attributed-string__list-group"},startIndex:n.startIndex,length:n.length}));
e=_.U(n.listGroup.listItems);for(var k=e.next();!k.done;k=e.next()){k=k.value;b:switch(n.listGroup.listType){case "LIST_TYPE_BULLET":var X="li";break b;default:X="span"}L.push(Jo({run:n,textLength:H,tag:X,startIndex:k.startIndex,length:k.length}))}n=L}else n=[];N.call(w,I,_.oI(n))}}if(V.styleRuns&&(l==null||!l.noStyleRuns))for(T=_.U(V.styleRuns),w=T.next();!w.done;w=T.next()){w=w.value;N=Zxf({extension:_.y(w.styleRunExtensions,A8c),isDarkTheme:x===void 0?!1:x,runColor:w.fontColor});L=[];N&&L.push("yt-core-attributed-string--link-inherit-color");
w.italic&&L.push("yt-core-attributed-string--italicized");w.underline&&w.strikethrough?L.push("yt-core-attributed-string--underline-strikethrough",c83(w.underline)):w.underline?L.push("yt-core-attributed-string--underlined",c83(w.underline)):w.strikethrough&&L.push("yt-core-attributed-string--strikethrough",c83(w.strikethrough));if(w.baselineOffset){a:switch(w.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":n="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":n=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:n="yt-core-attributed-string--baseline-offset-unknown"}L.push(n)}n=L.join(" ");L=w;e={};if(L.weight||L.weightLabel)e.fontWeight=QrJ(L).toString();N&&(e.color=N);I.push(Jo({run:w,textLength:H,tag:"span",config:{className:n,style:e},startIndex:w.startIndex,length:w.length}))}if(V.decorationRuns)for(T=_.U(V.decorationRuns),w=T.next();!w.done;w=T.next())w=w.value,N={},w.textDecorator&&(e=w.textDecorator,n=x===void 0?!1:x,k=[],L=
_.y(e,ho),e=_.y(e,ugt),L?(e=k,k=e.concat,X=[],(n=Zxf({extension:_.y(L.highlightTextDecoratorExtensions,vRt),isDarkTheme:n,runColor:L.backgroundColor}))&&X.push("background-color: "+n+";"),L.backgroundCornerRadius!==void 0&&X.push("border-radius: "+L.backgroundCornerRadius+"px;"),L.leftPadding!==void 0&&X.push("padding-left: "+L.leftPadding+"px;"),L.rightPadding!==void 0&&X.push("padding-right: "+L.rightPadding+"px;"),L.topPadding!==void 0&&X.push("padding-top: "+L.topPadding+"px;"),L.bottomPadding!==
void 0&&X.push("padding-bottom: "+L.bottomPadding+"px;"),k=k.call(e,X)):e&&(L=k,k=L.concat,n=n?"#2ba640":"#107516",n=e.color?Dwc(e.color):n,n=["padding: 2px;","border-top: solid "+n+" 2px;","border-bottom: solid "+n+" 2px;","background: linear-gradient(135deg, "+n+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+n+" 3px, rgba(0, 0, 0, 0) 3px);"],k=k.call(L,n)),n=k.join(" "),N.style$=n,n=w.textDecorator,L=[],e=_.y(n,ugt),_.y(n,ho)?L.push("yt-core-attributed-string--highlight-text-decorator"):
e&&L.push("yt-core-attributed-string--bracket-text-decorator"),n=L.join(" "),N.className=n,N.dir="auto"),n=_.y(w.textDecorator,ho),L=_.y(w.textDecorator,ugt),e=_.y(w.textDecorator,ho),k=_.y(w.textDecorator,ugt),I.push(Jo({run:w,textLength:H,tag:"span",config:N,startIndex:(n==null?void 0:n.startIndex)||(L==null?void 0:L.startIndex)||0,length:(e==null?void 0:e.length)||(k==null?void 0:k.length)||0}));if(V.commandRuns&&(l==null||!l.noEndpoints))for(x=_.U(V.commandRuns),T=x.next();!T.done;T=x.next())T=
T.value,w=Phf(T,l),I.push(Jo({run:T,textLength:H,tag:"a",config:w,startIndex:T.startIndex,length:T.length}));if(V.attachmentRuns)for(V=_.U(V.attachmentRuns),x=V.next();!x.done;x=V.next()){x=x.value;N=w=void 0;T={className:"yt-core-attributed-string--inline-block-mod"};if((N=x.element)==null?0:N.properties){N=(w=x.element)==null?void 0:w.properties;w=[];N=_.y(N,Oxw);if(N==null?0:N.margin)N=N.margin,N.left&&w.push("margin-left: "+zG(N.left)+";"),N.right&&w.push("margin-right: "+zG(N.right)+";"),N.top&&
w.push("margin-top: "+zG(N.top)+";"),N.bottom&&w.push("margin-bottom: "+zG(N.bottom)+";");w=w.length!==0?w.join(" "):void 0;T.style$=w}n=void 0;w={alt:"",preserveHeight:!0,preserveWidth:!0};N=["yt-core-attributed-string__image-element"];if(x.alignment){a:switch(x.alignment){case "ALIGNMENT_BASELINE":L="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":L="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:L=
"yt-core-attributed-string__image-element--image-alignment-bottom"}N.push(L)}if((n=x.element)==null?0:n.properties)n=[],L=_.y(x.element.properties,Oxw),(L==null?0:L.height)&&n.push("height: "+zG(L.height)+";"),(L==null?0:L.width)&&n.push("width: "+zG(L.width)+";"),n=n.length!==0?n.join(" "):void 0,w.style$=n,L=void 0,n=((L=_.y(x.element.properties,Chg))==null?void 0:L.label)||"",w.alt=n;w.className=N.join(" ");N=void 0;e=L=void 0;n=((e=x.element)==null?0:e.type)?(L=_.y(x.element.type,ac1))==null?
void 0:L.image:void 0;I.push(Jo({run:x,textLength:H,tag:"img",image:n,imageConfig:w,imageWrapperConfig:T,startIndex:x.startIndex,length:(N=x.length)!=null?N:0}))}if(l==null?0:l.headerRuns)for(l=_.U(l.headerRuns),V=l.next();!V.done;V=l.next())if(V=V.value,V.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(V.headerMapping)){a:{switch(V.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":x=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":x="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":x="yt-core-attributed-string--heading-3";break a}x=void 0}I.push(Jo({run:V,textLength:H,tag:"span",config:x?{className:x}:void 0,startIndex:V.startIndex,length:V.length}))}return I};
_.ZA=function(V){return(V==null?void 0:V.content)!==void 0};
gRw=function(V){return _.ZA(V)?V:_.Fo(V)};
mwW=function(V){return V.image!==void 0&&V.imageConfig!==void 0};
ixW=function(V,l){if(l==null?0:l.userInput)for(V=_.U(V),l=V.next();!l.done;l=V.next())if(l=l.value,l.tag!=="a"&&l.tag!=="li"){var I=void 0;(I=l).config||(I.config={});l.config.dir=l.tag==="ul"?_.F().resolve(_.Sz):"auto"}};
V4q=function(V){return function(l){var I=V.run;(I.onTap!==void 0||I.onLongPress!==void 0)&&_.y(I,HxW)&&pCw(l,{loggingDirectives:_.y(I,HxW)})}};
lZ1=function(V){return function(l){for(var I in V)(CO[I]||CO[h0["default"]])(l,I,V[I])}};
BsK=function(V,l){IZw(l);var I={data:null,start:0,end:V.length,parts:[]};l=_.U(l);for(var H=l.next();!H.done;H=l.next())H=H.value,HU1(I,H.startIndex,H.endIndex,H);TsK(V,I);return I};
HU1=function(V,l,I,H){for(var T=_.U(V.parts),x=T.next();!x.done;x=T.next()){x=x.value;if(typeof x==="string")throw Error("ih");if(x.start<=l&&I<=x.end){HU1(x,l,I,H);return}}V.parts.push({data:H,parts:[],start:l,end:I})};
TsK=function(V,l){for(var I=l.parts.length;I>=0;I--){var H=l.parts[I],T=l.parts[I-1],x=I===l.parts.length?l.end:H.start;T=I===0?l.start:T.end;x!==T&&l.parts.splice(I,0,V.slice(T,x));H&&TsK(V,H)}};
IZw=function(V){V.sort(function(l,I){if(l.startIndex<I.startIndex)return-1;if(I.startIndex<l.startIndex)return 1;l=l.endIndex-l.startIndex;I=I.endIndex-I.startIndex;return l>I?-1:I>l?1:0})};
_.xWq=function(V){var l=V.thumbnails;if(l){V={sources:[]};l=_.U(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var H={};H.url=I.url;H.width=I.width;H.height=I.height;V.sources.push(H)}return V}};
UWJ=function(V,l,I,H){if(!l)return V.length>=1?V[V.length-1]:null;if(H)for(var T=_.U(V),x=T.next();!x.done;x=T.next()){x=x.value;var n=void 0,w=(n=x.url)==null?void 0:n.indexOf(H);if(w!==void 0&&w>=0)return x}H=_.U(V);for(T=H.next();!T.done;T=H.next())if(T=T.value,T.width&&T.height&&(I&&T.width>=l||!I&&T.height>=l))return T;for(l=V.length-1;l>=0;l--)if(I&&V[l].width||!I&&V[l].height)return V[l];return V[0]};
_.nug=function(V){var l;return(V=(l=V.sources)==null?void 0:l[0])?V.width/V.height:0};
$Wg=function(V){if(V.sources){V=_.U(V.sources);for(var l=V.next();!l.done;l=V.next()){l=l.value;var I=void 0;if((I=l.clientResource)==null?0:I.imageName)return l}}};
dWt=function(V){var l;if((l=V.clientResource)!=null&&l.imageColor)return _.rP(V.clientResource.imageColor)};
_.Nsw=function(V,l,I,H,T,x,n){if(!l||l.length===0||l[0].clientResource)return null;if(I&&l[0].url)return l[0].url;H===void 0&&(H=!0);if(H){var w;V=wjt*(T||(V==null?void 0:(w=V.getBoundingClientRect())==null?void 0:w.width)||0)}else{var N;V=wjt*(x||(V==null?void 0:(N=V.getBoundingClientRect())==null?void 0:N.height)||0)}l=UWJ(l,V,H,n);return(l==null?0:l.url)?l.url:(l==null?0:l.imageData)?l.imageData:null};
KIg=function(V,l,I){I=I?[I]:[];V.opacity&&I.push("opacity: "+V.opacity+";");l&&V.placeholderColor?(V=_.rP(V.placeholderColor),I.push("background-color: "+V+";")):I.push("background-color: transparent;");return I.join(" ")};
j91=function(V,l,I,H,T){var x=["yt-core-image"];l&&x.push(l);I||x.push("yt-core-image--fill-parent-height");H||x.push("yt-core-image--fill-parent-width");switch(V.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":x.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":x.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":x.push("yt-core-image--content-mode-center");break;default:x.push("yt-core-image--content-mode-scale-to-fill")}V.flipForRtlLayout&&
x.push("yt-core-image--flip-rtl");switch(T){case "TOP_START":var n;x.push(((n=document.body)==null?void 0:n.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return x.join(" ")};
LI1=function(V){var l;if(V==null?0:(l=V.clientResource)==null?0:l.imageName){var I;V=(I=V.clientResource)==null?void 0:I.imageName;a:{switch(V){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":I="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":I="yt-logos-ext:yt-logo-updated";break a}I=void 0}return I||Yjy.get(V)||V}};
RN=function(V){return _.z("mweb_wiz_skip_render")?euT(V):k3W(V)};
euT=function(V){return function(l){var I=rlT("wink-root");b$();GOw();vjt(I,_.Y(V,l))}};
k3W=function(V){var l=l===void 0?!1:l;return function(I){if(!l||!_.z("mweb_skip_keto_to_c3_if_no_data")||I.data!==void 0){var H=ax(!1);try{var T=I.children;_.z("mweb_render_outside_patch_killswitch")||Dn?T?OZ(_.Y(V,I,T)):OZ(_.Y(V,I)):_.hF(new _.Yd("ketoToC3 called outside of a patch",{tagName:V.TAG_NAME}))}finally{ax(H)}}}};
FIg=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
zuN=function(V,l){V.onViewportEntered=l;XjN.observe(V)};
yQg=function(){var V={rootMargin:"10%",threshold:.01};_.z("mweb_enable_set_io_root_to_null_safari")?V.root=null:_.z("mweb_enable_set_io_root_to_body_safari")&&(V.root=document.body);return new IntersectionObserver(function(l,I){l.filter(function(H){return H.intersectionRect.height>0}).forEach(function(H){H=H.target;
if(!_.z("mweb_enable_only_update_image_when_connected")||H.isConnected!==!1){var T;(T=H.onViewportEntered)==null||T.call(H);I.unobserve(H)}})},V)};
t4t=function(V,l,I,H,T){function x(){if(H){var w=H.loadedClass,N=H.notifyOnUnloaded;w&&_.QI(V,w);N&&V.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function n(){var w=I(l,V);w&&V.getAttribute("src")!==w&&(_.z("mweb_enable_only_update_image_when_connected")&&V.isConnected===!1||w===V.src||(V.src=w),x())}
T=T===void 0?!0:T;V.removeAttribute("src");x();l&&(T?zuN(V,n):n())};
rQc=function(V,l){for(var I in l)I==="className"?V.className=l[I]:(CO[I]||CO[h0.default])(V,I,l[I])};
G31=function(V,l,I,H){RN(_.cX)({contentMode:l.contentMode,loadedClass:l.loadedClass,isPreloaded:l.isPreloaded,notifyOnLoaded:l.notifyOnLoaded,notifyOnUnloaded:l.notifyOnUnloaded,preferredThumbnail:l.preferredThumbnail,preserveHeight:l.preserveHeight,preserveWidth:l.preserveWidth,objectPosition:l.objectPosition,targetWidth:l.targetWidth,targetHeight:l.targetHeight,shouldShowPlaceholder:l.shouldShowPlaceholder,useWidth:l.useWidth,alt:l.alt,className:l.className,onerror:l.onerror,onload:l.onload,style$:l.style$,
color:l.color,width:l.width,height:l.height,"aria-hidden$":l["aria-hidden$"],draggable:l.draggable,"data-disabled$":l["data-disabled$"],data:V,callback:I,renderLazy:H===void 0?!0:H,hideOn404:!1})};
JQg=function(V,l,I){I=I===void 0?!1:I;var H=V.sources!==void 0?V:_.xWq(V);if(H){var T=l.onload;l.onload=function(N){var L=N.target;I&&L.naturalWidth===120||_.WX(L,"yt-core-image--loaded");l.notifyOnLoaded&&L.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));T==null||T(N)};
l.targetWidth&&l.preserveWidth&&(l.width=l.targetWidth);l.targetHeight&&l.preserveHeight&&(l.height=l.targetHeight);var x=$Wg(H),n=x&&LI1(x);if(n)return(V=dWt(x))&&(l.color=V),{type:"icon",iconName:n,config:Object.assign({},l,l.alt?{}:{"aria-hidden$":"true"},{"aria-label$":l.alt,role:"img"})};if(V.sources===void 0){l.alt=V.accessibility&&V.accessibility.accessibilityData&&V.accessibility.accessibilityData.label||l.alt;l.style$=KIg(V,l.shouldShowPlaceholder,l.style$);var w;l.isPreloaded=!((w=_.y(V,
EuK))==null||!w.isPreloaded)}l.contentMode&&!H.contentMode&&(H.contentMode=l.contentMode);l.className=j91(H,l.className,l.preserveHeight,l.preserveWidth,l.objectPosition);l.loadedClass="yt-core-image--loaded";return{type:"image",image:H,config:l}}};
_.ouT=function(){var V=_.Q5.apply(0,arguments);return _.pO(function(l){var I=V.map(function(H){return H(l)});
return function(){return void I.forEach(function(H){return void(H==null?void 0:H())})}})};
hut=function(V,l){var I=l==null?void 0:l.initial;return _.Ny(function(){_.ES(!0);return I=V(I)},{equals:l==null?void 0:l.isEqual},"rSlKsc")};
Pbc=function(V,l){if(V===l)return!0;if(V===void 0||l===void 0)return!1;var I,H,T,x,n,w,N,L;return V.content===l.content&&((I=V.styleRuns)==null?void 0:I.length)===((H=l.styleRuns)==null?void 0:H.length)&&((T=V.commandRuns)==null?void 0:T.length)===((x=l.commandRuns)==null?void 0:x.length)&&((n=V.attachmentRuns)==null?void 0:n.length)===((w=l.attachmentRuns)==null?void 0:w.length)&&((N=V.decorationRuns)==null?void 0:N.length)===((L=l.decorationRuns)==null?void 0:L.length)};
Sjc=function(V,l){if(V){var I=gRw(V);if(I!=null&&I.content)if(_.z("attr_string_reactive"))RN(DWw)({text:V,config:l});else{var H=!(l==null||!l.ariaLabel)||!(I.commandRuns&&I.commandRuns.length!==0||I.paragraphStyleRuns&&I.paragraphStyleRuns.length!==0);V=H?l==null?void 0:l.ariaLabel:null;H=H?"text":null;Lt("span",{className:Rky(I,l),dir$:(l==null?0:l.userInput)?"auto":void 0,"aria-label$":V,role$:H},function(){if(I.styleRuns||I.commandRuns||I.attachmentRuns||I.decorationRuns){var T=fcK(I,l);ixW(T,
l);T=BsK(I.content,T);T=_.U(T.parts);for(var x=T.next();!x.done;x=T.next())ZUW(x.value)}else u$(I.content)})}}};
ZUW=function(V){typeof V==="string"?u$(V):mwW(V.data)?Lt("span",V.data.imageWrapperConfig,function(){G31(V.data.image,V.data.imageConfig)}):Lt(V.data.tag,V.data.config,function(l){V4q(V.data)(l);
l=_.U(V.parts);for(var I=l.next();!I.done;I=l.next())ZUW(I.value)})};
Q9w=function(V){return V.parts.map(RuK)};
RuK=function(V){if(typeof V==="string")return V;V=mwW(V.data)?_.Y("span",{el:_.ouT(lZ1(V.data.imageWrapperConfig))},_.Y(_.cX,Object.assign({},{data:V.data.image},V.data.imageConfig))):_.Y(V.data.tag,{el:_.ouT(V4q(V.data),lZ1(V.data.config))},V.parts.map(RuK));return TY(V)};
cQJ=function(V,l){return V===l?!0:V===void 0||l===void 0?!1:V.noStyleRuns===l.noStyleRuns&&V.noLinkColor===l.noLinkColor&&V.noEndpoints===l.noEndpoints&&V.headerRuns===l.headerRuns&&V.isOverlay===l.isOverlay&&V.linkInheritColor===l.linkInheritColor&&V.userInput===l.userInput};
WIt=function(V){return function(){var l,I,H,T,x,n,w,N,L,e,k,X,r,E;return{ariaLabel:(l=V.ariaLabel)==null?void 0:l.call(V),className:(I=V.className)==null?void 0:I.call(V),ellipsisTruncate:(H=V.ellipsisTruncate)==null?void 0:H.call(V),isOverlay:(T=V.isOverlay)==null?void 0:T.call(V),linkInheritColor:(x=V.linkInheritColor)==null?void 0:x.call(V),noEndpoints:(n=V.noEndpoints)==null?void 0:n.call(V),noStyleRuns:(w=V.noStyleRuns)==null?void 0:w.call(V),noLinkColor:(N=V.noLinkColor)==null?void 0:N.call(V),
noPreWrap:(L=V.noPreWrap)==null?void 0:L.call(V),noWrap:(e=V.noWrap)==null?void 0:e.call(V),skipOnClick:(k=V.skipOnClick)==null?void 0:k.call(V),stopPropagation:(X=V.stopPropagation)==null?void 0:X.call(V),userInput:(r=V.userInput)==null?void 0:r.call(V),headerRuns:(E=V.headerRuns)==null?void 0:E.call(V)}}};
bUc=function(V){return V.value===""||V.value==="true"?!0:V.value==="false"?!1:isNaN(Number(V.value))?V.value:Number(V.value)};
bi=function(V,l){V=new qjJ(V,l);_.Gr(V);throw V;};
M43=function(V,l,I){var H=v$J(V);V._numRenders=0;try{var T=wlt(function(){return _.Y(l,Object.assign({},I))})}catch(n){var x=function(w){w.args||(w.args=[]);
w.args.push("Error in web component wrapper");w.args.push(V.tagName.toLowerCase());return w};
_.oV(n instanceof Error?x(n):new qjJ("Wiz rendering error",V.tagName.toLowerCase()));throw n;}finally{v$J(H)}return T};
_.MR=function(V,l,I){function H(L){var e={};L=_.U(L);for(var k=L.next();!k.done;k=L.next()){k=k.value;var X=void 0,r=void 0,E=void 0,D=_.K8((E=(r=(X=k).getAttribute)==null?void 0:r.call(X,"slot"))!=null?E:"children");if(X=e[D])X.push(k);else if(D in x||D==="children")e[D]=[k]}if(s91)for(L=_.U(Object.keys(e)),D=L.next(),k={};!D.done;k={content$jscomp$55:void 0},D=L.next())D=D.value,D!=="children"&&(k.content$jscomp$55=e[D],e[D]=function(Z){return function(){return Z.content$jscomp$55}}(k));
return e}
I=I===void 0?{}:I;V.componentType!==e_||bi("Components must be marked reactive to be used from web component wrapper.",l);uf.has(l)&&bi("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",l);var T,x=(T=I.props)!=null?T:{};v1.add(l);var n=pjy();I=function(){var L=n.apply(this,arguments)||this;L.rawProps={};L.queuingRender=!1;L.dispose=function(){};
L.isWebComponentWrapper=!0;L.isReparenting=!1;L.hasAttached=!1;return L};
_.t(I,n);I.prototype.render=function(){this.hasAttached=!0;for(var L=_.U([].concat(_.oI(this.attributes))),e=L.next();!e.done;e=L.next())e=e.value,e.name!=="slot"&&this.removeAttribute(e.name);L=Object.assign({},this.componentProps,this.slotProps);e=_.U(M43(this,V,L));L=e.next().value;e=e.next().value;!(L[0]instanceof Element)||L.length>1?bi("Wrapped Wiz components must return a single root element.",l):(L=L[0].tagName.toLowerCase(),L!==l&&bi("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(L+" !== '"+l),l),this.dispose=e)};
I.prototype.setUpProps=function(){for(var L=this.rawProps,e=this.attributes,k=_.U(Object.keys(x)),X=k.next();!X.done;X=k.next()){X=X.value;var r=void 0;((r=this)==null?0:r[X])&&this[X]!==AQ1&&L[X]===void 0&&(L[X]=this[X],(r=Object.getOwnPropertyDescriptor(this.constructor.prototype,X))&&Object.defineProperty(this,X,r))}k=_.U(e);for(X=k.next();!X.done;X=k.next()){r=X.value;X=_.K8(r.name);var E=X==="class"&&!e.getNamedItem("class-name");if(X in x||E)r=bUc(r),X!=="class"||L.className?L[X]=r:L.className=
r}e={};for(var D in x)x[D]===_.qR||s91&&x[D]===uT1||(L[D]instanceof Function&&bi("Function props must be configured as STATIC, not SIGNAL.",l),X=_.U(_.xi(L[D],void 0,"vGbZpc")),k=X.next().value,X=X.next().value,e[D]=X,L[D]=k);L=_.U([L,e]);this.componentProps=L.next().value;this.setters=L.next().value;this.slotProps=H(this.childNodes)};
I.prototype.connectedCallback=function(){pm===l&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in x&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
I.prototype.disconnectedCallback=function(){if(!this._isInert){var L;a:{if(_.vut)for(L=this;L;){if(_.OUJ.has(L)){L=!0;break a}L=L.parentElement}L=!1}if(L)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){L=_.U([].concat(_.oI(this.attributes)));for(var e=L.next();!e.done;e=L.next())e=e.value,e.name!=="slot"&&this.removeAttribute(e.name)}this.innerText="";beW(this)}}};
I.prototype._setPendingPropertyOrPath=function(){};
I.prototype.notifyPath=function(){};
_.vI.Object.defineProperties(I.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
T=_.U(Object.keys(x));for(var w=T.next(),N={};!w.done;N={prop$jscomp$103:void 0},w=T.next())N.prop$jscomp$103=w.value,Object.defineProperty(I.prototype,N.prop$jscomp$103,{set:function(L){return function(e){var k=this;this._isInert||(this.setters?Yi(function(){var X,r;return void((r=(X=k.setters)[L.prop$jscomp$103])==null?void 0:r.call(X,e))}):(this.rawProps[L.prop$jscomp$103]=e,this.queuingRender&&L.prop$jscomp$103==="data"&&e!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(N),
get:CbK.has(N.prop$jscomp$103)?void 0:function(){return AQ1}});
customElements.define(l,I)};
_.aZN=function(V,l){return(V=_.sI(V,l))?_.hV(_.S6(V)):null};
_.pt=function(V){if(V=_.sI(V,Number.MAX_VALUE,void 0,"width"))return _.S6(V)};
_.sI=function(V,l,I,H){H=H===void 0?"width":H;if(!V||!V.length)return null;if(_.z("kevlar_tuner_should_always_use_device_pixel_ratio")){var T=window.devicePixelRatio;_.z("kevlar_tuner_should_clamp_device_pixel_ratio")?T=Math.min(T,_.g7("kevlar_tuner_clamp_device_pixel_ratio")):_.z("kevlar_tuner_should_use_thumbnail_factor")&&(T=_.g7("kevlar_tuner_thumbnail_factor"));fZw=T}else fZw||(fZw=window.devicePixelRatio);T=fZw;_.z("kevlar_tuner_should_always_use_device_pixel_ratio")?l*=T:T>1&&(l*=T);if(_.z("kevlar_tuner_min_thumbnail_quality"))return V[0].url||
null;T=V.length;if(_.z("kevlar_tuner_max_thumbnail_quality"))return V[T-1].url||null;if(I)for(var x=0;x<T;x++)if(V[x].url.indexOf(I)>=0)return V[x].url||null;for(I=0;I<T;I++)if(V[I][H]>=l)return V[I].url||null;for(l=T-1;l>0;l--)if(V[l][H])return V[l].url||null;return V[0].url||null};
iUK=function(){Ao.size?setTimeout(function(){ui(gu1)},0):mWf=0};
gu1=function(){var V=(0,_.O_)(),l=null,I=!1;Ao.forEach(function(T){T.loaded=!0;T.loadTime=V;T.pendingPaint=!1;var x=VZ1.get(T);x&&x.resolve(V);l=T;I||!T.ftlEligible&&T.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(I=!0)});
var H;((H=l)==null?0:H.markDirty)&&l.markDirty();Ao.clear();mWf=0;I&&lug(V)};
Iu1=function(V){Ao.add(V);V.pendingPaint=!0;mWf||(mWf=_.vX(_.r0,iUK))};
HqJ=function(V){V.loaded=!1;V.loadTime=Infinity;var l=VZ1.get(V);l&&(l.reject(Error("oh")),VZ1.delete(V));V.pendingPaint&&(Ao.delete(V),V.pendingPaint=!1)};
_.TLt=function(V){var l=V.indexOf(":");return l===-1?{originalName:V}:{originalName:V.substring(0,l),datasyncId:V.substring(l+1)}};
_.xLK=function(){return _.d(function(V){if(BLy!==void 0)return V.return(BLy);BLy=new Promise(function(l){var I;return _.d(function(H){switch(H.nextAddress){case 1:return _.jd(H,2),_.K(H,_.OI.open("test-only"),4);case 4:return _.K(H,_.OI.delete("test-only"),5);case 5:_.Rv(H,3);break;case 2:if(I=_.kE(H),I instanceof Error&&I.name==="SecurityError")return l(!1),H.return();case 3:l("caches"in window),_.FU(H)}})});
return V.return(BLy)})};
$L1=function(){return _.d(function(V){if(V.nextAddress==1)return _.K(V,_.xLK(),2);if(!V.yieldResult)return V.return(void 0);ULT||(ULT=new nqt);return V.return(ULT)})};
dL1=function(V){var l,I,H,T;return _.d(function(x){switch(x.nextAddress){case 1:return _.K(x,$L1(),2);case 2:l=x.yieldResult;if(!l)throw Error("qh");return _.K(x,l.open("yt-player-local-img"),3);case 3:return I=x.yieldResult,_.K(x,I.match(V),4);case 4:H=x.yieldResult;if(!H)throw Error("rh");return _.K(x,H.blob(),5);case 5:return T=x.yieldResult,x.return(T)}})};
wEt=function(V,l){for(var I in V)if(V.hasOwnProperty(I)&&l[I])return I;return null};
NLK=function(V){return"stamp"+V.replace("-","_")+"_"};
K$f=function(V){var l=V.match(/\[\[([\w\.]+)\]\]/);if(l&&l.length>1)return l[1];_.Gr(Error("th`"+V));return null};
jsy=function(V){return V===void 0?_.PO("REUSE_COMPONENTS",!1):V||!1};
ehq=function(V,l,I){I&&(l.is?(Y23.has(l)&&(V=Y23.get(l),I=V.listener,delete l[V.property],I.type==="element"&&l.removeEventListener(I.eventName,I.handler),Y23.delete(l)),L$T(l)):l.__proto__==HTMLElement.prototype&&(l=new _.Yd("Rendererstamper removed a non custom element","Stamper: "+V+" element: "+(l&&l.nodeName)),_.hF(l)))};
kBJ=function(V,l,I,H){var T=l.node?l.node:l;_.h(I).parentNode===T&&(l.removeChild(I),ehq(V,I,H));if(V=Ct.get(I))Ct.delete(I),_.r0.cancelJob(V);I.hidden=!1};
F$N=function(V,l,I,H){if(l&&l.children&&(I=l.children[I]))if(_.PO("DEFERRED_DETACH"))for(;I&&!Ct.has(I);){var T=V,x=l,n=I,w=H;n.hidden=!0;T=_.et(_.r0,kBJ.bind(null,T,x,n,w),0);Ct.set(n,T);I=I.nextElementSibling}else for(;(n=l.lastElementChild)&&(l.removeChild(n),ehq(V,n,H),n!=I););};
XEw=function(V){var l=_.sZ();_.XW(function(){for(var I=_.U(V.slotContent),H=I.next();!H.done;H=I.next())l.value.appendChild(H.value)});
return _.Y("__slot-el",{el:l,skip:!0})};
_.aN=function(V,l,I){I=I===void 0?zh1:I;uf.add(l);var H;(H=I).propNames!=null||(H.propNames=[]);var T=new Set(I.propNames),x=pjy();H=function(){var L=x.call(this)||this;L.props={};L.isUpdating=!1;L.hasAttached=!1;L.isInert=!1;L.updateQueued=!1;L.initialClasses=[];ul1(L,l);return L};
_.t(H,x);H.prototype.forwardKebabCaseProp=function(L,e){L=_.K8(L);if(T.has(L)||L==="children")this.props[L]=e};
H.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var L=_.U(this.initialClasses),e=L.next();!e.done;e=L.next())(e=e.value)&&this.classList.add(e);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
H.prototype.handleSlottedContent=function(){for(var L=new Map,e=_.U(this.children),k=e.next();!k.done;k=e.next()){k=k.value;var X=void 0,r=(X=k.getAttribute("slot"))!=null?X:"children";(X=L.get(r))?X.push(k):L.set(r,[k]);if(!k.getAttribute("key")){var E=void 0,D=void 0;k.setAttribute("key",r+"_"+((D=(E=X)==null?void 0:E.length)!=null?D:0))}}L=_.U(L);for(e=L.next();!e.done;e=L.next())k=_.U(e.value),e=k.next().value,k=k.next().value,this.forwardKebabCaseProp(e,_.Y(XEw,{slotContent:k}))};
H.prototype.connectedCallback=function(){var L=this;if(!ul1(this,l)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var e=_.U(this.attributes),k=e.next();!k.done;k=e.next())k=k.value,this.forwardKebabCaseProp(k.name,bUc(k));this.handleSlottedContent();I.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){L.afterFirstPatch()});
this.hasAttached=!0}};
H.prototype.attributeChangedCallback=function(L,e,k){this.isInert||this.isUpdating||this.isConnected||L!=="class"||this.initialClasses.push.apply(this.initialClasses,_.oI(k.split(" ")))};
H.prototype.disconnectedCallback=function(){JOt(this)};
H.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var L,e;vjt(this,_.Y(V,Object.assign({},this.props,{idomKey:(e=(L=this.__incrementalDOMData)==null?void 0:L.key)!=null?e:l})),!0)}catch(X){var k=X instanceof Error?X:new _.Yd("Wiz rendering error");k.args||(k.args=[]);k.args.push("Error in deprecated web component wrapper");k.args.push(l.toLowerCase());_.Gr(k);throw X;}finally{this.updateQueued=this.isUpdating=!1}}};
H.prototype.enqueueUpdate=function(){var L=this;return _.d(function(e){if(I.synchronous)return L.update(),e.return();if(L.updateQueued)return e.return();L.updateQueued=!0;return e.return(Promise.resolve().then(function(){L.update()}))})};
H.prototype.notifyPath=function(){I.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.vI.Object.defineProperties(H,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var n=_.U(I.propNames),w=n.next(),N={};!w.done;N={prop$jscomp$105:void 0},w=n.next())N.prop$jscomp$105=w.value,Object.defineProperty(H.prototype,N.prop$jscomp$105,{set:function(L){return function(e){this.isInert||e===this.props[L.prop$jscomp$105]||(this.props[L.prop$jscomp$105]=e,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(N)});
customElements.define(l,H)};
_.yG1=function(V,l){return _.nW(V.entities,"markersEngagementPanelSyncEntity",l)};
tZt=function(V,l){return _.nW(V.entities,"fantasyWinProbabilityEntity",l)};
rGT=function(V,l){return _.nW(V.entities,"fantasyTeamEntity",l)};
GBw=function(V,l){return _.nW(V.entities,"fantasyPlayerEntity",l)};
EqJ=function(V,l){return _.nW(V.entities,"booleanEntity",l)};
JGN=function(V,l){return _.nW(V.entities,"qrCodeEntity",l)};
oqg=function(V){return _.nW(V.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
hhw=function(){if(ft)return ft;if(window.lottie)return ft=Promise.resolve(window.lottie);var V=_.GQ(_.h6("LOTTIE_URL"));return V?ft=new Promise(function(l,I){var H=document.createElement("script");H.addEventListener("load",function(){l(lottie)});
H.addEventListener("error",function(T){var x="Lottie library failed to load.";T?T.message&&(x+=" Original description: "+T.message,_.PF(T,x)):T=Error(x);_.hF(T);I(T)});
H.setAttribute("async","");_.gp(H,V);document.head.appendChild(H)}):Promise.reject(Error("uh"))};
Pz3=function(){return ft?ft:hhw()};
DLw=function(){var V=oqg(_.v4().getState());if(V&&V.animationStyle)switch(V.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return gj.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return gj.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return gj.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
Zq3=function(V){if(V)switch(V){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.z("kevlar_use_wil_icons"))return(V=DLw())?V:gj.get("LIKE")}};
S2w=function(V){var l=Zq3(V);if(l)return l;switch(V){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return gj.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return gj.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return gj.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return gj.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return gj.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return gj.get("NOTIFICATION_BELL")}};
Qs3=function(V,l){if(!V||Rht)l=!1;else{if(V.closest){var I=!!Zq3(l);I=_.h6("ID_TOKEN")&&I?!!V.closest("segmented-like-dislike-button-view-model"):!1}else I=!1;if(!I)if(V.closest)if(I=!_.h6("ID_TOKEN"),V=V.closest("ytd-subscription-notification-toggle-button-renderer-next"),I||!V)I=!1;else{var H;I=((H=V.data)==null?void 0:H.targetId)==="notification-bell"&&l!=="EXPAND_MORE"}else I=!1;l=I}return l};
cGt=function(V){var l,I;return _.d(function(H){switch(H.nextAddress){case 1:return _.jd(H,2),_.K(H,fetch(V),4);case 4:return l=H.yieldResult,_.K(H,l.json(),5);case 5:return H.return(H.yieldResult);case 2:I=_.kE(H),_.hF(I),_.FU(H)}})};
W$f=function(V,l){var I,H,T;return _.d(function(x){if(x.nextAddress==1)return(I=l?V.pathDarkTheme:V.path)?_.K(x,Promise.all([cGt(I),hhw()]),2):x.return();H=x.yieldResult;T=H[0];mc.set(I,T);_.FU(x)})};
_.ii=function(){var V=_.Q5.apply(0,arguments);return function(){for(var l="",I=_.U(V),H=I.next();!H.done;H=I.next())if(H=H.value,typeof H==="function"&&(H=H()),H)if(typeof H==="string")l+=" "+H;else for(var T in H)if(H.hasOwnProperty(T)){var x=H[T];typeof x==="function"&&(x=x());x&&(l+=" "+T)}l=l.trim()||void 0;return _.ES(l)}};
_.VN=function(V){var l;var I=V.data;var H=V.className;var T=V.animationName;var x=V.animationRef;var n=(l=V.elRefForInterop)||_.sZ(),w;_.rx(function(){var e;return void((e=w)==null?void 0:e.destroy())});
var N;_.t0(function(){var e=_.ES(T);if(e!==N){N=e;var k=Object.assign({},{animationName:e,animationRef:_.ES(x)},_.ES(I));try{_.F().resolve(bqc)().then(function(E){var D;(D=w)==null||D.destroy();D=k.animationRef;var Z=k.listeners;E=E.loadAnimation(Object.assign({},{container:n.value},k.animationConfig));D&&(D.lottieEl=E);if(Z)for(D=_.U(Object.entries(Z)),Z=D.next();!Z.done;Z=D.next()){var S=_.U(Z.value);Z=S.next().value;(S=S.next().value)&&E.addEventListener(Z,S)}w=E})}catch(E){e=E;
var X="LottieComponent error.";e.message&&(X+=" Original description: "+e.message);_.PF(e,X);_.hF(e);var r;((r=k.listeners)==null?0:r.error)&&k.listeners.error(e)}}});
var L=_.ii("ytLottieComponentHost",H);return _.Y(SAg,{cond:function(){return!l},
then:function(){return _.Y("lottie-component",{class:L,el:n})}})};
q21=function(V){var l=_.sZ(),I=_.U(I8f(V.data.animationConfig.name||"",V.className)),H=I.next().value;I=I.next().value;var T=y0(function(){return V.data.animationRef});
FW(function(){V.data.animationRef&&(V.data.animationRef.lottieEl=T==null?void 0:T.lottieEl)},[V.data.animationRef]);
return _.Y("lottie-component",{skip:!0,class:_.ii(I,"ytLottieComponentHost"),el:l},_.Y(_.VN,{data:V.data,animationRef:T,animationName:H,elRefForInterop:l}))};
ss1=function(V,l,I,H,T){function x(N,L){if(l.value===L&&V!=null&&V.value){for(;V.value.firstChild;)V.value.removeChild(V.value.firstChild);V.value.classList.add("yt-spec-icon-shape");N(V.value,H)}}
var n;T=(n=T)!=null?n:_.F().resolve(_.VI);I=_.MZg(T,I);if(typeof I==="function")l.value=null,x(I,null);else{var w=new _.UZ(I.then,I);l.value=w;w.then(function(N){x(N,w)})}};
AGJ=function(V,l){var I=document.createElement("div"),H=_.eN(I,function(){return _.Y(_.NS,{cond:V,then:function(T){return _.Y(pE1,{data:T,options:l})}})});
return[I,H]};
_.l8=function(){for(var V=[],l=_.U(_.Q5.apply(0,arguments)),I=l.next();!I.done;I=l.next())if(I=I.value)if(typeof I==="string")V.push(I);else{I=_.U(Object.entries(I));for(var H=I.next();!H.done;H=I.next()){var T=_.U(H.value);H=T.next().value;(T=T.next().value)&&V.push(H)}}return V.join(" ")};
Czy=function(V){var l=_.sZ(),I=t6(),H=C8(V.character)||C8(V.previousCharacter);Ls(function(){if(V.marginMultiplier){var T;(T=I.value)==null||T.cancel();H?(T=V.previousCharacter?Number(V.previousCharacter)+10:V.rollUp?0:30,V.shouldAnimate||(T-=uNw(V,T))):(T=V.rollUp?0:2,V.shouldAnimate||(T-=V.rollUp?-1:1));l.value.style.marginTop="-"+T*V.marginMultiplier+"px";V.shouldAnimate?I.value=vqK(l.value,V,T,H):l.value.style.display=V.character?"":"none"}});
return _.Y("animated-rolling-character",{el:l,class:"animated-rolling-character-wiz"},_.uO(H,function(){for(var T=[],x=1;x<30;x++)T.push(_.Y("div",null,x%10));return _.Y(_.CN,null,_.Y("div",null,"\u00a0"),T,_.Y("div",null,"\u00a0"))},function(){return OqN(V.character)}))};
OqN=function(V){return _.Y(_.CN,null,_.Y("div",null,"\u00a0"),_.Y(_.CN,null,_.uO(!V||_.jc(V),function(){return _.Y("div",null,"\u00a0")},function(){return _.Y("div",null,V)})),_.Y("div",null,"\u00a0"))};
vqK=function(V,l,I,H){I=new Animation(new KeyframeEffect(V,[{transform:"translateY(0px)"},{transform:"translateY("+(H?uNw(l,I):l.rollUp?-1:1)*l.marginMultiplier+"px)"}],auc),document.timeline);l.character?(V.style.display="",I.onfinish=null):I.onfinish=function(){V.style.display="none"};
I.play();return I};
uNw=function(V,l){var I=Number(V.character)+10;if(V.previousCharacter)if(V.character){var H=Number(V.character),T=Number(V.previousCharacter);V=V.rollUp?T<H?I:I+10:T<H?I-10:I}else V=V.rollUp?30:0;else V=V.character==="0"?I:V.rollUp?I-10:I+10;return l-V};
_.I2=function(V,l){return function(I){var H={},T;for(T in I){var x=void 0,n=void 0;((x=l)==null?0:(n=x.callbacks)==null?0:n[T])||(H[T]=I[T])}return _.Y(dZg,null,function(){for(var w in H)I[w]=_.ES(H[w]);I.disableReactiveLogging=!0;return _.Y(V,Object.assign({},I))})}};
_.TS=function(V){var l=t6(),I=t6();FW(function(){l.value=V.numberText;I.value=V.numberValue},[V.numberText]);
var H=V.fontSizeMultiplier?V.heightPx*V.fontSizeMultiplier:V.heightPx,T=zY(function(){if(V.numberText){var n=V.numberText;var w=V.forceRollUp||!I.value||!V.numberValue||I.value<V.numberValue;var N=!!V.shouldAnimate,L=l.value,e=[],k=0,X=0,r=(L?L.replace(/\D/g,"").length:0)-(n?n.replace(/\D/g,"").length:0);L=L?L.split(/(\d)/).filter(Boolean):[];for(n=n.split(/(\d)/).filter(Boolean);r<0;){var E=n[X];e.push({character:E,rollUp:w,marginMultiplier:H,shouldAnimate:N});X++;C8(E)&&r++}for(;k<r;)E=L[k],e.push({previousCharacter:E,
rollUp:w,marginMultiplier:H,shouldAnimate:N}),k++,C8(E)||r++;for(;X<n.length;)r=n[X],E=L[k],C8(r)===C8(E)?(X++,k++):C8(r)?(k++,r=void 0):C8(E)&&(X++,E=void 0),e.push({character:r,previousCharacter:E,rollUp:w,marginMultiplier:H,shouldAnimate:N});w=e}else w=[];return w},[V.numberText]),x=V.numberText?["height: "+H+"px;",
"line-height: "+V.heightPx+"px;"].join(" "):"";return _.Y("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:x,dir:"ltr","aria-hidden":"true"},T.map(function(n){return _.Y(Czy,Object.assign({},n))}))};
_.Bu=function(V){return qB1(function(l){l=V==null?void 0:V(l);return typeof l==="boolean"?l:!0})};
xF=function(V){return function(){return V()?V():void 0}};
fuT=function(V){return new KeyframeEffect(V,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
gqy=function(V){return new KeyframeEffect(V,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
mLT=function(V){var l=_.U(_.xi(V,void 0,"Clci1e")),I=l.next().value,H=l.next().value;I.current=V;return[I,function(T){return void H(I.current=T)}]};
_.Ux=function(V){var l=hut(function(){return mLT(V())},{isEqual:function(I,H){return I[0].current===H[0].current}});
return[function(){return l()[0]()},
function(I){return void l()[1](I)}]};
_.na=function(V){return function(){var l="",I;for(I in V){for(var H=V[I];typeof H==="function";)H=H();H!==void 0&&H!==null&&(l+="; "+I+": "+H)}return l.length>0?_.ES(l.slice(2)):_.ES()}};
iqK=function(V){switch(V){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"}};
Izw=function(V,l,I,H,T,x){var n=V2N(V),w=n.disabled,N=n.iconPosition,L=n.style,e=n.focused,k=function(){return!!E()&&N()==="icon-only"},X=function(){return!!E()&&N()==="icon-only-40"},r=function(){return!!E()&&N()==="icon-with-label"},E=function(){return!!l||!(H==null||!H())};
return{type:function(){return L()==="call-to-action-inverse"?"text":L()==="overlay-dark"&&V().type!=="filled"&&V().type!=="tonal"?"tonal":V().type},
shouldFocus:function(){return(e()||(x==null?void 0:x()))&&!w()},
hasIconLeading:function(){return!!E()&&N()==="leading"},
hasIconTrailing:function(){return!!E()&&N()==="trailing"},
hasIconLeadingTrailing:function(){return!!E()&&!!(I||T!=null&&T())&&N()==="leading-trailing"},
hasIconOnly:k,hasIconOnly40:X,hasIconWithLabel:r,iconButton:function(){return k()||X()||r()},
visiblyDisabled:function(){return(w()?"disabled":V().state)==="disabled"||w()},
overrideSmallSizeIcon:function(){return $F(V(),E())},
iconToRender:l?l:function(){return _.Y(_.dq,{icon:H,size:function(){return lzw(V())},
active:function(){return V().toggled}})},
secondaryIconToRender:I?I:function(){return _.Y(_.dq,{icon:T,size:function(){return lzw(V())},
active:function(){return V().toggled}})}}};
V2N=function(V){return{size:function(){return V().size},
style:function(){return V().style},
focused:function(){return V().focused},
disabled:function(){return V().disabled},
onTap:function(l){var I,H;return(H=(I=V()).onTap)==null?void 0:H.call(I,l)},
alignByText:function(){return V().alignByText},
aTagConfig:function(){return V().aTagConfig},
customColors:function(){return V().customColors},
segmentedPosition:function(){return V().segmentedPosition},
toggled:function(){return V().toggled},
toggleable:function(){return V().toggleable},
accessibilityLabel:function(){return V().accessibilityLabel},
onToggle:function(l){var I,H;return(H=(I=V()).onToggle)==null?void 0:H.call(I,l)},
iconPosition:function(){return V().iconPosition},
oneOffCustomTextWrap:function(){return V().oneOffCustomTextWrap},
disableTextEllipsis:function(){return V().disableTextEllipsis},
tooltipText:function(){return V().tooltipText},
ariaHidden:function(){return V().ariaHidden},
tabIndex:function(){return V().tabIndex},
buttonText:function(){return V().buttonText},
formattedButtonText:function(){return V().formattedButtonText},
animatedTextProps:function(){return V().animatedTextProps}}};
H2W=function(V){return V.style==="overlay-dark"?4:V.style==="overlay"?V.type==="filled"?4:3:V.type==="filled"||V.style==="call-to-action-inverse"||V.style==="mono-inverse"?2:1};
$F=function(V,l){l=(V.iconPosition==="icon-only"||V.iconPosition==="icon-only-40"||V.iconPosition==="icon-with-label")&&l;return!V.segmentedPosition&&l&&V.size==="S"};
TOt=function(){return!_.z("web_disable_backdrop_filter")};
lzw=function(V){switch(V.size){case "XS":return 16;case "S":return $F(V,!0)?24:16;default:return 24}};
BOW=function(V,l){if(!_.vv){var I;m4y(function(){return I=n9t(V,l)});
return I}return n9t(V,l)};
xnf=function(){var V=H01(_.vv||void 0,BvK);return V===IBq||(V==null?void 0:V.name)==="\u0275NotFound"?void 0:V};
UnJ=function(V){switch(V){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"}};
nIc=function(V){switch(V){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"}};
$nw=function(V){switch(V){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"}};
dn3=function(V){if(!V)return{};var l=V.color,I=V.backgroundColor;V=V.borderColor;var H="";l&&(H+="color: "+l+";");I&&(H+="background-color: "+I+";");V&&(H+="border-color: "+V+";");return{style:H}};
KEJ=function(V){var l=V.data;var I=V.icon;var H=V.secondaryIcon;var T=V.iconName;var x=V.secondaryIconName;xnf();var n=l.size;V=l.style;var w=l.focused,N=l.disabled,L=l.onTap,e=l.alignByText,k=l.aTagConfig,X=l.customColors,r=l.segmentedPosition,E=l.toggled,D=l.toggleable,Z=l.accessibilityLabel,S=l.onToggle,p=l.iconPosition,Vf=l.oneOffCustomTextWrap,C=l.disableTextEllipsis,By=l.tooltipText,lN=l.ariaHidden,wW=l.tabIndex,o1=!!I||!!T,h1=I,ec=H;if(T){var Zg=lzw(l);h1=function(){return _.Y(_.dq,{icon:T,
size:Zg,active:l.toggled})}}if(x){var Va=lzw(l);
ec=function(){return _.Y(_.dq,{icon:x,size:Va,active:l.toggled})}}var wb=l.state;
I=l.type;V==="call-to-action-inverse"&&(I="text");V==="overlay-dark"&&I!=="filled"&&I!=="tonal"&&(I="tonal");var CK=o1&&p==="leading",CZ=o1&&p==="trailing",ME=o1&&(!!H||!!x)&&p==="leading-trailing";H=o1&&p==="icon-only";var Hw=o1&&p==="icon-only-40";p=o1&&p==="icon-with-label";var uZ=H||Hw||p;N&&(wb="disabled");var EN=wb==="disabled"||N;o1=$F(l,o1);wb={};var ya=_.l8((wb["yt-spec-button-shape-next"]=!0,wb[UnJ(I)]=!0,wb[nIc(V)]=!EN,wb["yt-spec-button-shape-next--disabled"]=!!EN,wb[$nw(n)]=!0,wb["yt-spec-button-shape-next--focused"]=
!!w&&!N,wb["yt-spec-button-shape-next--icon-trailing"]=CZ,wb["yt-spec-button-shape-next--icon-leading"]=CK,wb["yt-spec-button-shape-next--icon-leading-trailing"]=ME,wb["yt-spec-button-shape-next--icon-button"]=H||p,wb["yt-spec-button-shape-next--icon-only-default"]=Hw,wb["yt-spec-button-shape-next--align-by-text"]=!!e,wb["yt-spec-button-shape-next--segmented-start"]=r==="start",wb["yt-spec-button-shape-next--segmented-end"]=r==="end",wb["yt-spec-button-shape-next--override-small-size-icon"]=o1,wb["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!Vf,wb["yt-spec-button-shape-next--disable-text-ellipsis"]=!!C,wb["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=TOt(),wb)),Dv=_.Bu(function(Tf){L==null||L(Tf);D&&(S==null||S(Tf))});
n=function(){return k?_.Y(_.wq,{aTagConfig:k,disabled:N,className:ya,style:dn3(X).style,title:By!=null?By:"",ariaLabel:Z,ariaCurrent:D&&E},_.Y(_.CN,null,wzW(l,CK,ME,CZ,uZ,h1,ec))):_.Y("button",{"on:click":Dv,class:ya,title:By!=null?By:"",style:N&&k?"pointer-events:none":dn3(X).style,disabled:N,"aria-pressed":D?!!E:void 0,"aria-label":Z?Z:void 0,"aria-disabled":EN,"aria-hidden":lN,tabindex:wW},_.Y(_.CN,null,wzW(l,CK,ME,CZ,uZ,h1,ec)))};
w={};V=(w["yt-spec-button-shape-with-label"]=!0,w["yt-spec-button-shape-with-label--is-overlay"]=V==="overlay"||V==="overlay-dark",w);return _.Y("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},p?_.Y("label",{class:_.l8(V)},n(),_.Y("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},NOT(l))):n())};
NOT=function(V){var l=V.formattedButtonText,I=V.animatedTextProps,H=V.buttonText,T=V.oneOffCustomTextWrap;V=V.iconPosition;return I?_.Y(_.TS,{numberText:I.numberText,numberValue:I.numberValue,heightPx:I.heightPx,fontSizeMultiplier:I.fontSizeMultiplier,shouldAnimate:I.shouldAnimate,forceRollUp:I.forceRollUp}):l?(I=V==="icon-with-label"||T,_.Y(_.Ni,{text:Object.assign({},l,I?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!I})):H};
wzW=function(V,l,I,H,T,x,n){return _.Y(_.CN,null,_.uO(x&&(l||I||T),function(){return _.Y(_.CN,null,_.Y("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},x==null?void 0:x()))}),_.uO((V.buttonText||V.formattedButtonText||V.animatedTextProps)&&!T,function(){return _.Y(_.CN,null,_.Y("div",{class:"yt-spec-button-shape-next__button-text-content"},NOT(V)))}),_.uO(H,function(){return _.Y(_.CN,null,_.Y("div",{class:"yt-spec-button-shape-next__icon"},x==null?void 0:x()))}),_.uO(I,function(){return _.Y(_.CN,
null,_.Y("div",{class:"yt-spec-button-shape-next__secondary-icon"},n==null?void 0:n()))}),_.uO(!V.disabled&&!0,function(){return _.Y(_.Ka,{model:{color:H2W(V)}})}))};
_.jU=function(V){var l=_.g7("web_generic_client_event_wait_period ",0);l||(l=3E5);var I=jMJ.get(V);!_.z("enable_web_client_experiment_event_timeout_killswitch")&&I&&(0,_.O_)()-I<l||(jMJ.set(V,(0,_.O_)()),_.tF("genericClientExperimentEvent",{eventType:V}))};
Y$1=function(V){switch(V){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"}};
e51=function(V){if(_.z("web_enable_wiz_tfbs"))RN(_.Ka)({model:V});else{V={model:V};var l=ez,I;(l==null?0:(I=l.prototype)==null?0:I.render)?lcW(V):typeof ez==="function"&&ez(V)}I=_.z("web_enable_wiz_tfbs_log");_.z("mweb_wiz_migration_event_killswitch")||_.z("kevlar_wiz_migration_event_killswitch")||!I||LEW||(_.jU("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT"),LEW=!0)};
kDq=function(V,l){switch(V.size){case "XS":return 16;case "S":return $F(V,l)?24:16;default:return 24}};
FEy=function(V){if(V.style==="overlay-dark"&&V.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
t2J=function(V,l,I){var H=V.buttonText,T=V.formattedButtonText,x=V.formattedButtonTextLegacy,n=V.animatedTextProps,w=V.style,N=V.size,L=V.focused,e=V.disabled,k=V.onTap,X=V.alignByText,r=V.aTagConfig,E=V.customColors,D=V.segmentedPosition,Z=V.toggled,S=V.toggleable,p=V.accessibilityLabel,Vf=V.onToggle,C=V.iconPosition,By=V.oneOffCustomTextWrap,lN=V.disableTextEllipsis,wW=V.tooltipText,o1=V.ariaHidden,h1=V.tabIndex,ec=V.state,Zg=V.type;w==="call-to-action-inverse"&&(Zg="text");w==="overlay-dark"&&
Zg!=="filled"&&Zg!=="tonal"&&(Zg="tonal");var Va=!!l&&C==="leading",wb=!!l&&C==="trailing",CK=!!l&&!!I&&C==="leading-trailing",CZ=!!l&&C==="icon-only",ME=!!l&&C==="icon-only-40",Hw=!!l&&C==="icon-with-label",uZ=CZ||ME||Hw;e&&(ec="disabled");var EN=ec==="disabled"||e;ec=$F(V,!!l);var ya={},Dv=(ya["yt-spec-button-shape-next"]=!0,ya[UnJ(Zg)]=!0,ya[nIc(w)]=!EN,ya["yt-spec-button-shape-next--disabled"]=!!EN,ya[$nw(N)]=!0,ya["yt-spec-button-shape-next--focused"]=!!L&&!e,ya["yt-spec-button-shape-next--icon-trailing"]=
wb,ya["yt-spec-button-shape-next--icon-leading"]=Va,ya["yt-spec-button-shape-next--icon-leading-trailing"]=CK,ya["yt-spec-button-shape-next--icon-button"]=CZ||Hw,ya["yt-spec-button-shape-next--icon-only-default"]=ME,ya["yt-spec-button-shape-next--align-by-text"]=!!X,ya["yt-spec-button-shape-next--segmented-start"]=D==="start",ya["yt-spec-button-shape-next--segmented-end"]=D==="end",ya["yt-spec-button-shape-next--override-small-size-icon"]=ec,ya["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!By,ya["yt-spec-button-shape-next--disable-text-ellipsis"]=!!lN,ya["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=TOt(),ya),Tf=function(){if(n)RN(_.TS)(n);else if(x)x(C==="icon-with-label"||By?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(T){var LZ=C==="icon-with-label"||By;Sjc(Object.assign({},T,LZ?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!LZ})}else H&&u$(H)},
Oq=function(LZ){k==null||k(LZ);
S&&(Vf==null||Vf(LZ))},Ut=r?XzJ:z5T,BY=r?"aria-current$":"aria-pressed$",ON=function(){l&&(Va||CK||uZ)&&function(){YF({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){l()})}();
(H||T||x||n)&&!uZ&&function(){YF({className:"yt-spec-button-shape-next__button-text-content"},function(){Tf()})}();
wb&&function(){YF({className:"yt-spec-button-shape-next__icon"},function(){l()})}();
CK&&function(){YF({className:"yt-spec-button-shape-next__secondary-icon"},function(){I()})}();
e||e51({color:H2W(V)})},vY=function(){var LZ={};
Ut(Object.assign({},(LZ.className=_.l8(Dv),LZ.onclick=r?void 0:Oq,LZ.disabled=e,LZ["aria-disabled$"]=EN,LZ.style=e&&r?"pointer-events:none":void 0,LZ[BY]=S?!!Z:void 0,LZ["aria-label$"]=p,LZ.title$=wW!=null?wW:"",LZ["aria-hidden$"]=o1,LZ.tabindex$=h1,LZ),r,dn3(E)),function(){ON()})};
Hw?(N={},w=(N["yt-spec-button-shape-with-label"]=!0,N["yt-spec-button-shape-with-label--is-overlay"]=w==="overlay"||w==="overlay-dark",N),ynW({className:_.l8(w)},function(){vY();YF({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},Tf)})):vY()};
rnt=function(V,l,I){_.z("web_wiz_button_shape")?RN(KEJ)({data:V,icon:l?function(){return _.Y(ux,null,l)}:void 0,
secondaryIcon:I?function(){return _.Y(ux,null,I)}:void 0}):t2J(V,l,I)};
La=function(V,l){_.rj(V,Object.assign({},l,{forceClickLogging:!0}))};
GDw=function(V,l,I,H){var T=void 0;return function(x){var n=_.to(I?V==null?void 0:V.onDisabledTap:V==null?void 0:V.onTap);if(n){var w;T=(w=T)!=null?w:l==null?void 0:l.value;if(n)if(_.z("web_button_vm_click_client_ve_killswitch"))La(n,Object.assign({},{form:{element:T,event:x}},void 0));else{var N;w=n==null?void 0:n.clickTrackingParams;var L,e=V==null?void 0:(N=V.loggingDirectives)==null?void 0:(L=N.clientVeSpec)==null?void 0:L.uiType;N=e&&!w?_.eU(e):void 0;La(n,Object.assign({},{form:{element:T,event:x}},
{clickedVisualElement:N}))}}H&&H(x)}};
EIt=function(V){switch(V){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"}};
Jn3=function(V){switch(V){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"}};
oIN=function(V){switch(V){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"}};
h5f=function(V){switch(V){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"}};
Pvt=function(V,l){return _.nW(V.entities,"engagementToolbarStateEntityPayload",l)};
Z2t=function(V){(V=_.dj(V))&&_.Dnt(V)};
_.Dnt=function(V){var l=_.oa();l&&_.s4(l,V)};
S$J=function(V,l,I){_.xB(V,"yt-open-popup-action",[l,I||V])};
R5f=function(V,l){var I=_.GY(V,"endpoint"),H=_.GY(V,"action");return(I=H?H:I)&&l&&(I=l.navigationEndpointPopupMap[I])&&(V=_.SN(I,V),(I=_.GY(V,"renderer"))&&l.supportedPopups.hasOwnProperty(I))?{openPopupAction:{popupType:l.popupTypeMap[I],popup:V}}:null};
QMc=function(V,l,I,H){if(H){var T;I=I==null?void 0:(T=I.data)==null?void 0:T.contents;(T=I instanceof Array&&I.length?I[0]:I)&&(I=_.GY(T,"renderer"))&&H.supportedPopups.hasOwnProperty(I)&&(l.stopPropagation(),S$J(V,{openPopupAction:{popupType:H.popupTypeMap[I],popup:T}}))}};
b21=function(V,l,I,H){H=H===void 0?!1:H;var T=cnT(l);if(T){T.href&&Jv(T.href);var x=l.button;x=x!==void 0?x===0&&!kF(l):!kF(l);T.data&&x&&WEq(V,T,l,I,H)}};
WEq=function(V,l,I,H,T){T=T===void 0?!1:T;var x=_.g7("pbj_navigate_limit",-1)===0;q$T(l);_.F().resolve(_.Cs(QC));var n=l.data;if(Object.keys(n).length!==0)if(!_.z("unplugged_web_disable_actions_for_cec_endpoint")&&_.y(n,_.NJ))_.z("endpoint_behavior_command_executor_fix_killswitch")||(I.preventDefault(),I.stopPropagation()),_.d6(V,[n],V);else if(H=R5f(n,H))n.loggingUrls&&n.loggingUrls.forEach(function(N){N.baseUrl&&_.RS(N.baseUrl)}),I.preventDefault(),I.stopPropagation(),S$J(V,H,l);
else{var w=M23(0,l.data,I);if(V=l.getForm)V=V(),w.tempData=w.tempData||{},w.tempData=Object.assign({},w.tempData,V);V=_.b3(I);if(H=V.find(function(N){return!!N.visualElement}))w.createScreenConfig=w.createScreenConfig||{},w.createScreenConfig.clickedVisualElement=H.visualElement;
if(!x)if(I.preventDefault(),I.stopPropagation(),_.y(n,_.sMT)&&!T&&_.li.instance)_.li.instance.resolveCommand(n,w);else if(_.z("kevlar_command_handler_formatted_string")&&!T&&_.li.instance&&pzJ(n))T=V.find(function(N){return!!N.is})||I.target,I={form:Object.assign({},w,{event:I,
element:T,originatingNode:l})},_.li.instance.resolveCommand(n,I);else{n=_.b3(I);I=[];for(T=0;T<n.length;T++)(x=n[T].is)&&I.push(x);tMJ({parents:I.join(","),text:l.innerText},function(){_.B$(l,"yt-navigate",w)})}}};
Anf=function(V){if(V=cnT(V))q$T(V),k91(V.href)};
cnT=function(V){V=_.b3(V);for(var l,I=0;I<V.length;I++)if(l=V[I],l.tagName==="A"&&l.classList.contains("yt-simple-endpoint")){if(!l.data)break;return l}return null};
kF=function(V){return V.shiftKey||V.altKey||V.metaKey||V.ctrlKey};
u$W=function(V,l){var I={itct:l.clickTrackingParams};_.z("kevlar_client_side_screens")&&(!_.y(l,_.YV)||_.z("kevlar_exclude_endpoint_killswitch"))&&(I.endpoint=JSON.stringify(l));_.z("enable_unknown_lact_fix_on_html5")&&_.F().resolve(_.Cs(_.Fp))&&(I.lact=_.f0());YuJ(I);_.f8(V,I)};
q$T=function(V){V.href&&Object.keys(V.data).length!==0&&u$W(V.href,V.data)};
pzJ=function(V){for(var l=_.U(vIw),I=l.next();!I.done;I=l.next())if(V[I.value])return!1;return!0};
_.Xp=function(V,l){if(l){var I={};O2K.forEach(function(H){H=CvN(l,H,"--yt-lightsource-");Object.assign(I,H)});
az1.forEach(function(H){H=CvN(l,H,"--yt-basic-");Object.assign(I,H)});
_.i3(V,I)}};
CvN=function(V,l,I){var H={};H[I+_.Nz(l)]=V&&V[l]?_.rP(V[l]):"";return H};
_.yN=function(V,l,I){zS[V]||(zS[V]={});zS[V][l]=I};
_.tU=function(V){zS[V]||(zS[V]={});return zS[V]};
fz1=function(V){if(!V)return{};var l=V.foregroundTitleColor,I=V.backgroundColor;V=V.borderColor;var H="text";V?H="outline":I&&(H="filled");return{type:H,customColors:{color:l?_.rP(l):void 0,backgroundColor:I?_.rP(I):void 0,borderColor:V?_.rP(V):void 0}}};
le3=function(V){var l=V.renderer;var I=V.element;var H=V.commandController;var T=V.onTapCallback;var x=V.skipCommandHandling;var n=V.overrides;var w=V.forceIcon;var N=V.forceModernIconButton;var L=V.forceDisabled;var e=V.isSubscribe===void 0?!1:V.isSubscribe;var k=V.isPressed===void 0?!1:V.isPressed;var X=V.useButtonSize===void 0?!1:V.useButtonSize;V=gIT(l);e&&(V.style="mono",V.type="filled");w=!l.icon||!w&&l.text?l.icon?l.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:N?"icon-only":"icon-only-40";w==="icon-only-40"&&(V.type="text");var r;N=Object;e=N.assign;X=mnJ(l,X);k=!!l.isSelected||!_.z("web_propagate_is_pressed_killswitch")&&!!k;var E=l.isSelected!==void 0;L=L===void 0?l.isDisabled:L;var D=l.text?_.Fo(l.text):void 0;var Z,S,p,Vf=((Z=l.accessibilityData)==null?void 0:(S=Z.accessibilityData)==null?void 0:S.label)||((p=l.accessibility)==null?void 0:p.label);Z=Vf?Vf:_.A5(l.text);I=i2J(l,I,H,T,x);H=V$f(l);H!=null&&H.length?(H=_.GG({innertubeCommand:kit(H),
forceNewState:!0}),H=FoN(H)?H:void 0):H=void 0;return e.call(N,{},V,X,{iconPosition:w},n,{focused:!1,toggled:k,toggleable:E,disabled:L,formattedButtonText:D,accessibilityLabel:Z,onTap:I,aTagConfig:H},fz1((r=l.colorData)==null?void 0:r.basicColorPaletteData),{oneOffCustomTextWrap:l.oneOffCustomTextWrap})};
i2J=function(V,l,I,H,T){return function(x){var n=V$f(V);H(n,x);if(!T){n=_.U(n);for(var w=n.next();!w.done;w=n.next())La(w.value,{form:{element:l,event:x},commandController:I})}}};
V$f=function(V){var l=[];V.command&&l.push(V.command);V.serviceEndpoint&&l.push(V.serviceEndpoint);V.navigationEndpoint&&l.push(V.navigationEndpoint);return l};
mnJ=function(V,l){if(l)switch(V.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(V.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
gIT=function(V){switch(V.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"}}};
_.rq=function(V){return _.Ny(function(){g1g()();return DR(V)},void 0,"Icv7j")};
GS=function(V,l){return _.nW(V.entities,"likeStatusEntity",l)};
Iet=function(V,l){return _.nW(V.entities,"likeCountEntity",l)};
_.HBt=function(V,l){return _.nW(V.entities,"stringEntity",l)};
TXt=function(V,l){if(!V)return!1;var I,H=(I=_.y(V,_.j1))==null?void 0:I.signal;if(H&&l.signalEndpointMap)return!!l.signalEndpointMap[H];var T;if((I=(T=_.y(V,_.Ex))==null?void 0:T.request)&&l.continuationEndpointMap)return!!l.continuationEndpointMap[I];for(var x in V)if(l.commandEndpointMap[x])return!0;return!1};
BXK=function(V,l){if(l.streamingEndpointMap)for(var I in V)if(l.streamingEndpointMap[I]&&(V=l.streamingEndpointMap[I]))return V()};
xf3=function(V,l){var I,H=(I=_.y(V,_.j1))==null?void 0:I.signal;if(H&&l.signalEndpointMap&&(I=l.signalEndpointMap[H]))return I();var T;if((I=(T=_.y(V,_.Ex))==null?void 0:T.request)&&l.continuationEndpointMap&&(T=l.continuationEndpointMap[I]))return T();for(var x in V)if(l.commandEndpointMap[x]&&(V=l.commandEndpointMap[x]))return V()};
Ufy=function(V){var l={"Content-Type":"application/json"};_.h6("EOM_VISITOR_DATA")?l["X-Goog-EOM-Visitor-Id"]=_.h6("EOM_VISITOR_DATA"):_.h6("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=_.h6("VISITOR_DATA"));l["X-Youtube-Bootstrap-Logged-In"]=_.h6("LOGGED_IN",!1);_.h6("DEBUG_SETTINGS_METADATA")&&(l["X-Debug-Settings-Metadata"]=_.h6("DEBUG_SETTINGS_METADATA"));V!=="cors"&&((V=_.h6("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(l["X-Youtube-Client-Name"]=V),(V=_.h6("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(l["X-Youtube-Client-Version"]=
V),(V=_.h6("CHROME_CONNECTED_HEADER"))&&(l["X-Youtube-Chrome-Connected"]=V),(V=_.h6("DOMAIN_ADMIN_STATE"))&&(l["X-Youtube-Domain-Admin-State"]=V),_.PO("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(V=_.h6("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(l["X-YouTube-Lava-Device-Context"]=V));return l};
noW=function(V,l){l.watchNextResponse||l.reelItemWatchResponse?l.watchNextResponse?V.content=l.watchNextResponse:V.content=l.reelItemWatchResponse:l.playerResponse?V.player=l.playerResponse:l.reelWatchSequenceResponse&&(V.reelSequence=l.reelWatchSequenceResponse)};
JU=function(V){return function(){return new V}};
o2=function(V){var l=_.F();return function(){return l.resolve(V)}};
_.hU=function(V){if(!V)return null;for(var l=[],I=0;I<V.textSegments.length;I++){var H=V.textSegments[I];H.text?l.push(H):H.emojiId&&l.push({emoji_id:H.emojiId})}return{text_segments:l}};
KyW=function(V,l,I,H,T,x,n){x=x===void 0?[]:x;var w=new _.Pu;w.endpoint=I;if(!I)return _.oV(new _.Yd("handle undefined endpoint",l.tagName)),w;var N=Z6f(I);N.length&&(_.d6(V,N,l,H),w.actions=N);I.loggingUrls&&I.loggingUrls.forEach(function(e){e.baseUrl&&Qz(e.baseUrl,e.attributionSrcMode)});
N=!_.z("web_skip_impression_click_killswitch")&&H&&H.impression;if(I.clickTrackingParams&&!$f1(I)&&!dfT(l)&&!N&&(N=_.x7(),!_.Dt(N,l))){var L=l.getScreenLayer&&l.getScreenLayer();L?N.clickCommand(I,null,L):N.clickCommand(I,null)}N=!1;for(L=0;L<x.length;L++)if((0,x[L])(l,I,H)){N=!0;break}!N&&wmW(I)&&(w.ajaxPromise=NXJ(V,l,I,H,T,n));return w};
dfT=function(V){var l;return(V=(l=V.data)==null?void 0:l.navigationEndpoint)&&!!V.clickTrackingParams};
$f1=function(V){var l=_.y(V,_.j1);if(l&&(l=l.signal)&&jqy.indexOf(l)>=0)return!0;for(var I in V)if(YCt.indexOf(I)>=0)return!0;return!1};
wmW=function(V){var l;if(((l=_.y(V,_.j1))==null?void 0:l.signal)==="CLIENT_SIGNAL")return!1;for(var I in V)if(Ly1.indexOf(I)>=0)return!1;V=Object.keys(V);return V.length===1&&V[0]==="loggingUrls"?!1:!0};
rZJ=function(V,l,I,H,T,x,n){var w=_.Zt.instance;if(w&&_.SU(w,H))var N=_.R2(w,H,T).then(function(e){return(e==null?0:e.data)?e:{data:e}});
else N=V.requestDataForServiceEndpoint(H,T),_.y(H,e$N)||_.y(H,knW)||_.y(H,_.FyJ)||_.y(H,XmK)||_.hF(new _.Yd("No RequestBuilder for endpoint",H));var L=_.QN();L.promise.thenCatch(function(){var e=_.GY(H,"action")||_.GY(H,"command")||_.GY(H,"endpoint");e&&(e=H[e],e.hasOwnProperty("onFailureAction")?_.d6(l,[e.onFailureAction],I):e.hasOwnProperty("onFailureCommand")&&_.d6(l,e.onFailureCommand,I));N.cancel("Resolver promise rejected")});
N.then(function(e){if(e){var k=e.error;if(k){if(x&&x.onServerError)x.onServerError(H,e);L.reject(new _.Yd("Response error",H,k))}else if(e=e.data)if(k=e.error){if(x&&x.onServerError)x.onServerError(H,e);L.reject(new _.Yd("Returned error",H,k))}else{z$3(l,I,e,H);yZJ(e);if(k=D7q(e))for(var X=_.U(k),r=X.next();!r.done;r=X.next()){r=r.value;var E=_.F().resolve(_.Cs(t$w))||cu;if(!_.Zt.instance||!E.some(function(Z){return!!_.y(H,Z)})||_.z("kevlar_response_processor_allowlist_killswitch")){var D=E=void 0;
((D=_.y((E=r)==null?void 0:E.commandMetadata,_.mK))==null?0:D.sendPost)?_.$B(l,[r]):_.d6(l,[r],I)}}(X=_.y(e==null?void 0:e.frameworkUpdates,Wu))&&n&&n(X);if(x&&x.onSuccess)x.onSuccess(H,e);L.resolve(new _.b8(e,k))}}else L.reject(new _.Yd("Invalid service endpoint provided",H))},function(e){L.reject(e)});
return L.promise};
yZJ=function(V){var l;(V=(l=_.y(V==null?void 0:V.onResponseReceivedCommand,_.Gnt))==null?void 0:l.continuationItems)&&(V==null?void 0:V.length)===1&&_.y(V[0],Eoq)&&_.Z8("so_r",void 0,"search_overview_answer")};
NXJ=function(V,l,I,H,T,x){var n;return(n=l.getNetworkManager&&l.getNetworkManager()?l.getNetworkManager():_.F().resolve(_.Cs(_.kV)))?rZJ(n,V,l,I,H,T,x):_.bK("No network manager.")};
z$3=function(V,l,I,H){if(I=I.trackingParams||I.loggingDirectives&&I.loggingDirectives.trackingParams){var T;(_.y(H,JZW)||_.y(H,ooN)||_.y(H,h$3))&&H.clickTrackingParams?T=_.dj(H.clickTrackingParams):_.z("web_graft_to_parent_command")&&H.clickTrackingParams&&(T=_.dj(H.clickTrackingParams));var x;H=(x=l.getScreenLayer)==null?void 0:x.call(l);l=_.x7().graftServerVe(I,T,H);_.U4(V,"yt-store-grafted-ve-action",[l])}};
_.Plw=function(V){var l=new Image;return new _.UZ(function(I,H){l.addEventListener("load",function(){I()});
l.addEventListener("error",function(){H()});
l.src=V})};
Df3=function(V){return!!V};
ZBf=function(V){return!!V};
SCc=function(V,l,I){var H=V.rowIndex;H!==void 0&&_.U4(V.hostElement,"yt-section-reactive-dismissal",[H,l,I])};
_.qi=function(V,l,I){V=_.U(V);for(var H=V.next();!H.done;H=V.next()){H=H.value;if(H===l)break;for(var T=_.U(I),x=T.next();!x.done;x=T.next())if(x=x.value,H.tagName===x||!_.z("web_event_button_role_check_killswitch")&&H.role==="button"&&x==="BUTTON")return!0}return!1};
_.Mi=function(V,l,I){V=_.U(V);for(var H=V.next();!H.done;H=V.next()){H=H.value;if(H===l)break;for(var T=_.U(I),x=T.next();!x.done;x=T.next())if(H.id===x.value)return!0}return!1};
sx=function(V,l){if(!V&&!l)return"medium";V=Math.max(V||0,l||0);return V>=256?"large":V>=96?"medium":"small"};
R$1=function(V){switch(V){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.u8=function(){var V=_.F().resolve(_.Cs(_.pa));return V?(V=V.getCurrentPage())?_.AU(V):null:null};
_.vu=function(){var V=_.u8();if(!V){var l=_.F().resolve(_.Cs(_.pa)),I=l?typeof l:"no page manager";l=l?l.getCurrentPage():null;I=new _.Yd("Player is missing when requested.",I,l?l.tagName:"no page");_.Gr(I)}return V};
_.AU=function(V){return V&&V.getPlayer?V.getPlayer():null};
Qqt=function(V,l){V={args:{raw_player_response:V}};l&&(V.args=Object.assign({},V.args,l));return V};
cZ3=function(V){if(V.args){if(V.args.raw_player_response)return V.args.raw_player_response;if(V.args.player_response)return JSON.parse(V.args.player_response)}};
_.Wyf=function(V,l){var I={url:"/watch?v="+V.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};V.playlistId&&(I.url+="&list="+V.playlistId);V.playerParams&&(I.url+="&pp="+V.playerParams);V={watchEndpoint:V,commandMetadata:{webCommandMetadata:I}};l&&(V.clickTrackingParams=l);return V};
qCW=function(){return bBN||!!_.SN("yt.player.Application")};
sqc=function(){return M$y||!!document.querySelector("link#player-css")};
AZy=function(){function V(){bBN=!0;pmJ.resolve()}
var l,I;return _.d(function(H){pmJ||(pmJ=new _.IQ,qCW()?V():(l=document.createElement("script"),l.addEventListener("load",V),I=_.tK(_.h6("PLAYER_JS_URL")),_.gp(l,I),document.head.appendChild(l)));return H.return(pmJ.promise)})};
vof=function(){function V(){M$y=!0;uyq.resolve()}
if(!uyq)if(uyq=new _.IQ,sqc())V();else{var l=document.createElement("link");l.id="player-css";l.addEventListener("load",V);var I=_.tK(_.h6("PLAYER_CSS_URL"));_.lw(l,I,"stylesheet");document.head.appendChild(l)}return uyq.promise};
OBt=function(){return qCW()&&sqc()?Promise.resolve([]):Promise.all([AZy(),vof()])};
Clg=function(V,l,I){var H={args:{}};V&&(H.args.raw_player_response=V);l&&(H.args.raw_watch_next_response=l);I&&(H.args=Object.assign({},H.args,I));return H};
mf3=function(V,l,I){var H=!1;H=H===void 0?!0:H;V=typeof V==="string"?_.Ox(document,V):V;var T=aeJ+"_"+_.iN(V),x=few[T];if(x&&H)return goJ(l,I)?x.api.loadVideoByPlayerVars(l.args||null):x.loadNewVideoConfig(l),x.api;x=new Ca(V,T,l,I,void 0);few[T]=x;x.addOnDisposeCallback(function(){delete few[x.getId()]});
return x.api};
goJ=function(V,l){return l&&l.serializedExperimentFlags?l.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):V&&V.args&&V.args.fflags?V.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
iB3=function(){var V=new _.IQ;V.resolved=!1;var l=V.resolve;V.resolve=function(I){V.resolved=!0;l(I)};
return V};
lof=function(V){var l={};VvK().install((l.document_disposed={callback:V},l))};
a2=function(V,l){if(!V&&Math.random()<=_.g7("kevlar_unified_player_logging_threshold")){V=Error("wh`"+(l?l:"Unspecified error"));if(_.z("kevlar_unified_player_throw_errors"))throw V;_.hF(V)}};
_.Iow=function(){var V=_.SN("ytDebugData.callbacks");V||(V={},_.Aq("ytDebugData.callbacks",V));return V};
T1y=function(V,l){var I=_.Iow();if(_.z("web_dd_iu")||HEf.includes(V))I[V]=l};
B1T=function(){return _.d(function(V){return V.return({isLeader:_.qgt(_.v4().getState()),c:_.h6("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.h6("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
xbf=function(){var V;_.d(function(l){if(l.nextAddress==1)return T1y("APP_STATE",B1T),_.K(l,_.F().resolve(_.fa),2);V=l.yieldResult;T1y("PI",function(){return _.d(function(I){return I.return(V.getVideoStats())})});
_.FU(l)})};
Ub3=function(V){var l=_.aa(_.qz(_.nK.location.href));V=_.aa(_.qz(V));return _.z("kevlar_clear_non_displayable_url_params")?l==gq(V):gq(l)==gq(V)};
gq=function(V){var l=_.nKq(V);V=V.slice(0);var I=["frags"];_.z("kevlar_hide_pp_url_param")&&I.push("pp");_.z("kevlar_hide_time_continue_url_param")&&I.push("time_continue");I=_.U(I);for(var H=I.next();!H.done;H=I.next())H=H.value,V=_.gS(_.aa(V),H);return _.aa(V)+(l?"#"+l:"")};
ms=function(V,l){l=Number(l)*1E3;var I=Math.round((0,_.O_)()),H=I.toString();V={innertubeResponse:V,serverDateTimestampMs:H,lastModifiedTimestampMs:H,expireTimestampMs:(I+l).toString()};if(l=_.h6("INNERTUBE_CONTEXT_CLIENT_NAME"))V.clientName=l;return V};
db3=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++$by};
_.wZ1=function(){var V=_.JO(),l=_.oa();l&&V&&_.Ac(l,[V],!0)};
K0W=function(V){return V&&N1w.some(function(l){return V.includes(l)})};
F0t=function(V){var l=_.y(V,_.cF);if(!l)return!1;var I=l.url,H=l.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!I)return _.Gr(Error("Bh")),!1;if(l.target==="TARGET_NEW_WINDOW"){var T={};_.z("resolve_url_parent_tracking_params")&&(!_.ps(I)||A6(window.location.href,I))&&(T={endpoint:V,itct:V.clickTrackingParams});YuJ(T);V=null;try{if(H){a:{var x=I,n=T;H=H===void 0?!1:H;n&&_.f8(x,n);var w=_.S6(x),N=_.hV(w);x!=N&&_.Rw(Error("ag`"+x));x=N;try{if(H){N=x;N=wXt(N);Jv(N);V=_.uY(window,N,"_blank",
"attributionsrc");break a}}catch(X){_.Dp(X)}Jv(x);V=_.uY(window,w,"_blank")}jlK(_.F().resolve(Ycg),V,I);return!0}}catch(X){_.Gr(X)}_.f8(I,T);T={target:"_blank",noopener:_.z("set_window_noopener_ks")&&!l.allowOpener};l=window;w=oO(I)?I:_.S6(typeof I.href!="undefined"?I.href:String(I));V=self.crossOriginIsolated!==void 0;x="strict-origin-when-cross-origin";window.Request&&(x=(new Request("/")).referrerPolicy);N=T.noreferrer;if(V&&N&&x==="unsafe-url")throw Error("se");x=N&&!V;N=T.target||I.target;H=
[];n=[];var L=!1;for(k in T){var e=T[k];switch(k){case "width":case "height":case "top":case "left":H.push(k+"="+e);break;case "target":break;case "noopener":case "noreferrer":e?n.push(k):(L=!0,n.push(k+"=false"));break;case "attributionsrc":H.push(k+(e?"="+e:""));break;default:H.push(k+"="+(e?1:0))}}var k=N!==void 0&&!["_blank","_self","_top","_parent",""].includes(N);k=J1()&&k;L01&&V&&H.length===0&&n.length>0&&!k&&!L?(n.length===2&&(n=["noreferrer"]),_.uY(l,w,N,n[0]),V=e9K()):(k=H.join(","),_.R1()&&
l.navigator&&l.navigator.standalone&&N&&N!="_self"?(k=_.jk("A"),bY(k,w),k.target=N,x&&(k.rel="noreferrer"),((T=T.attributionsrc)||T==="")&&k.setAttribute("attributionsrc",T),T=document.createEvent("MouseEvent"),T.initMouseEvent("click",!0,!0,l,1),k.dispatchEvent(T),k=e9K()):x?(k=_.uY(l,"",N,k),l=_.hV(w),k&&(k.opener=null,l===""&&(l="javascript:''"),l='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+i8(l)+'">',l=sq(l),(T=k.document)&&T.write&&(T.write(pd(l)),
T.close()))):((k=_.uY(l,w,N,k))&&T.noopener&&(k.opener=null),k&&T.noreferrer&&(k.opener=null)),V=k);jlK(_.F().resolve(Ycg),V,I);return!0}k=_.Bx(I);k=K0W(k)||I==="https://studio.youtube.com/";l=!(!_.ps(I)||A6(window.location.href,I));T=I.indexOf("disable_polymer=1")>=0;if(l||T||k)Jv(I),hc(),_.oQ(I,void 0,void 0,window.top,kCN);else return _.hF(new _.Yd("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",V)),!1;return!0};
_.yaf=function(V,l){l=l===void 0?0:l;if(!(_.y(V,XZN)||_.y(V,z9J)||_.y(V,_.cF)&&_.y(V,_.cF).url))return!1;var I,H=(I=_.y(V,_.cF))==null?void 0:I.url;I=H?{externalLinkData:{url:H}}:null;return _.x7().clickCommand(V,I,l)};
_.V1=function(V,l){return _.nW(V.entities,"subscriptionStateEntity",l)};
tv1=function(V,l){return _.nW(V.entities,"subscriptionNotificationStateEntity",l)};
rac=function(V,l){return _.nW(V.entities,"upcomingEventReminderStateEntity",l)};
GCT=function(V,l){return _.nW(V.entities,"engagementToolbarSurfaceEntityPayload",l)};
EK1=function(V,l){return _.nW(V.entities,"triStateButtonStateEntityPayload",l)};
Ja1=function(V,l){return _.nW(V.entities,"commerceCartCheckoutButtonEntity",l)};
_.oKq=function(V,l){return _.nW(V.entities,"playlistLoopStateEntity",l)};
h9T=function(V,l){return _.nW(V.entities,"commandEntity",l)};
Dbf=function(V,l,I,H,T){T=T===void 0?{}:T;return function(x){var n,w;var N=((n=V.loggingDirectives)==null?0:(w=n.clientVeSpec)==null?0:w.uiType)?_.eU(V.loggingDirectives.clientVeSpec.uiType):void 0;T.clickedVisualElement||(T.clickedVisualElement=N);N=PAt(V,l);I(N,x);N=_.U(N);for(n=N.next();!n.done;n=N.next()){n=n.value;w=H;var L=x,e=T;e.form?e.form.event=L:e.form={element:w,event:L};La(n,e)}}};
PAt=function(V,l){var I=[];l?(V.toggledCommand&&I.push(V.toggledCommand),V.toggledServiceEndpoint&&I.push(V.toggledServiceEndpoint)):(V.defaultCommand&&I.push(V.defaultCommand),V.defaultServiceEndpoint&&I.push(V.defaultServiceEndpoint),V.defaultNavigationEndpoint&&I.push(V.defaultNavigationEndpoint));return I};
ZEg=function(V,l){var I=V.toggledStyle||V.style,H;switch((H=l?I:V.style)==null?void 0:H.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"}}};
ScK=function(V,l){l=l.uniqueId+"-border";var I,H;var T=(H=(I=_.F().resolve(_.Cs(_.DA)))==null?void 0:I())!=null?H:!1;return{animationRef:V,animationConfig:{name:l,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(T?"dark":"light")+"_v2.json"}}};
_.I6=function(){return _.d(function(V){return V.nextAddress==1?_.K(V,_.F().resolve(_.fa),2):V.return(_.F().resolve(_.lP)())})};
_.HK=function(){return y0(function(){return{lottieEl:void 0}})};
R9K=function(V,l){return V.startsWith(l.uniqueId)};
Qlt=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return _.K(H,_.I6(),2);l=H.yieldResult;if((I=l)==null||!I.addEventListener)return Tb(),H.return();l.addEventListener("onCueRangeEnter",V);_.FU(H)})};
caK=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return _.K(H,_.I6(),2);l=H.yieldResult;if((I=l)==null||!I.removeEventListener)return Tb(),H.return();l.removeEventListener("onCueRangeEnter",V);_.FU(H)})};
W0g=function(V){var l,I,H,T,x;_.d(function(n){if(n.nextAddress==1)return _.K(n,_.I6(),2);l=n.yieldResult;if((I=l)==null||!I.addCueRange)return Tb(),n.return();H=_.U(V.timings);for(T=H.next();!T.done;T=H.next())x=T.value,l.addCueRange(V.uniqueId+"-"+x,x/1E3,(x+100)/1E3);_.FU(n)})};
bEg=function(V){var l,I,H,T,x;_.d(function(n){if(n.nextAddress==1)return _.K(n,_.I6(),2);l=n.yieldResult;if((I=l)==null||!I.removeCueRange)return Tb(),n.return();H=_.U(V.timings);for(T=H.next();!T.done;T=H.next())x=T.value,l.removeCueRange(V.uniqueId+"-"+x);_.FU(n)})};
qcc=function(V){return V.join("")};
Mv3=function(){var V,l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,_.I6(),2);V=H.yieldResult;if((l=V)==null||!l.getPlayerState)return Tb(),H.return();I=V.getPlayerState();return H.return(I===2)})};
Tb=function(){_.hF(new _.Yd("Smartimation player does not exist or is corrupted"))};
uK1=function(V){var l=slT;pZt.push(V);AaT||(l(function(){for(var I=_.U(pZt),H=I.next();!H.done;H=I.next())H=H.value,H();pZt.length=0;AaT=!1}),AaT=!0)};
slT=function(V){Promise.resolve().then(V)};
BK=function(V){V=_.U(Hvg(V));var l=V.next().value,I=V.next().value,H=!1;_.XW(function(){return function(){H=!0}});
return[l,function(T){uK1(function(){H&&!_.z("cow_prevent_state_setter_after_cleanup_killswitch")||I(T)})}]};
OEW=function(V){function l(L){var e;return _.d(function(k){if(k.nextAddress==1)return(e=!R9K(L,H)||!H.enabled)?k.jumpTo(2):_.K(k,Mv3(),3);k.nextAddress!=2&&(e=k.yieldResult);if(e)return k.return();I();setTimeout(function(){N(!1)},1500);
_.FU(k)})}
function I(){setTimeout(function(){N(!0);var L;(L=x.lottieEl)==null||L.goToAndPlay(0)},150)}
var H=V.settings;var T=V.className;V=V.children;var x=_.HK(),n=_.U(BK(!1)),w=n.next().value,N=n.next().value;H||(H={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.hF(new _.Yd("Smartimation Settings is undefined")));FW(function(){if(H.experimentEnabled)return H.enabled?Qlt(l):(N(!1),caK(l)),function(){caK(l)}},[H.enabled,
H.experimentEnabled]);FW(function(){if(H.experimentEnabled)return W0g(H),function(){bEg(H)}},[qcc(H.timings)]);
return _.Y("yt-smartimation",{class:_.ii(T,vKw(w,H))},_.uO(H.experimentEnabled,function(){return _.Y("div",{class:"smartimation__border"},_.Y(q21,{className:"smartimation__border-gradient",data:ScK(x,H)}))}),_.Y("div",{class:"smartimation__content"},V))};
vKw=function(V,l){var I=["smartimation"];l.experimentEnabled&&I.push("smartimation--experiment-enabled");V&&I.push("smartimation--active-border");try{var H;var T=(H=window.CSS)!=null&&H.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(x){_.hF(new _.Yd("Smartimation CSS.supports threw an error")),T=!1}T&&I.push("smartimation--enable-masking");
return I.join(" ")};
CAw=function(){try{var V;return(V=window.CSS)!=null&&V.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){return _.hF(new _.Yd("Smartimation CSS.supports threw an error")),!1}};
ldw=function(V,l,I,H,T){var x=V.playlistId?aoc:fo1;l=l();I=I();T=!!V.videoId&&T()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.kf(l))return gKK({data:V,actionType:x,disabled:T},I);if(V.videoId&&H())return mbt({data:V,actionType:x,disabled:T});switch(l){case "TRANSFER_STATE_UNKNOWN":return mbt({data:V,actionType:x,disabled:T});case "TRANSFER_STATE_FAILED":return V.videoId?iE1({data:V,actionType:x,disabled:T}):Vgq({data:V,actionType:x,disabled:T});case "TRANSFER_STATE_COMPLETE":return Vgq({data:V,
actionType:x,disabled:T});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return gKK({data:V,actionType:x,disabled:T},I);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return V.videoId?iE1({data:V,actionType:x,disabled:T}):mbt({data:V,actionType:x,disabled:T});default:return mbt({data:V,actionType:x,disabled:T})}};
IdT=function(V,l){var I=V.onTapCommand,H=_.to(I);if(V.videoId&&_.y(H,_.xj))return _.y(H,_.xj).action=l,I;V.playlistId&&_.y(H,_.UB)&&(_.y(H,_.UB).action=l);return I};
mbt=function(V){var l=V.data;var I=V.actionType;V=V.disabled;return{text:H$J,iconType:"OFFLINE_DOWNLOAD",onTap:IdT(l,I.ACTION_ADD),disabled:V}};
gKK=function(V,l){var I=V.data;var H=V.actionType;V=V.disabled;var T="OFFLINE_DOWNLOAD";l>=0&&l<=.1?T="OFFLINE_DOWNLOADING_ZERO":l>.1&&l<=.3?T="OFFLINE_DOWNLOADING_TWENTY":l>.3&&l<=.5?T="OFFLINE_DOWNLOADING_FORTY":l>.5&&l<=.7?T="OFFLINE_DOWNLOADING_SIXTY":l>.7&&l<1?T="OFFLINE_DOWNLOADING_EIGHTY":l===1&&(T="OFFLINE_PIN");return{text:TzW,iconType:T,onTap:IdT(I,H.ACTION_REMOVE_WITH_PROMPT),disabled:V}};
Vgq=function(V){var l=V.data;var I=V.actionType;V=V.disabled;return{text:Bz1,iconType:"OFFLINE_PIN",onTap:IdT(l,I.ACTION_REMOVE_WITH_PROMPT),disabled:V}};
iE1=function(V){var l=V.data;var I=V.actionType;V=V.disabled;return{text:x2t,iconType:"OFFLINE_DOWNLOAD",onTap:IdT(l,I.ACTION_RETRY),disabled:V}};
U2q=function(){var V=_.U(BK(!1)),l=V.next().value,I=V.next().value;return function(){I(!l)}};
nSW=function(V){return y0(function(){return{value:V}})};
$21=function(V,l){var I=nSW(V),H=nSW(l);FW(function(){I.value=V},[V]);
FW(function(){H.value=l},l&&l.length>=1?l:[void 0]);
var T=y0(function(){return{value:void 0}});
if(V!==I.value||H.value!==l||T.value===void 0)T.value=DR(V,l);var x=U2q();_.XW(function(){function n(){var N=DR(I.value,l);N!==T.value&&(T.value=N,x())}
var w=_.P1().subscribe(n);n();return w});
return T.value};
_.n6=function(V,l){return $21(V,[l])};
_.dw=function(V,l){var I=g1g();return _.Ny(function(){I();return DR(V,[_.ES(l)||""])},void 0,"HaeHEc")};
d2J=function(V){var l=_.dw(_.Dw,function(){return V().videoId}),I=_.dw(_.Zw,function(){return V().playlistId});
return function(){return V().videoId?l:V().playlistId?I:_.U(_.xi("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
wGg=function(V){var l=_.dw(Ss,function(){return V().videoId}),I=_.dw(_.bnT,function(){return V().playlistId});
return function(){return V().videoId?l:V().playlistId?I:_.U(_.xi(0,void 0,"K4tgOc")).next().value}};
NzW=function(V){var l=_.dw(_.OnK,function(){return V().videoId});
return function(){return V().videoId?l:_.U(_.xi(!1,void 0,"Oaxwcf")).next().value}};
Kif=function(V){var l=_.dw(s7W,function(){return V().videoId});
return function(){return V().videoId?l:_.U(_.xi("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
jEK=function(){return{}};
eYq=function(V){var l=V.backgroundLottieRef;var I=V.foregroundLottieRef;var H=V.children;var T=V.wrapperClass;V=V.disableAnimation;V=(_.z("web_animated_actions")||_.z("web_animated_actions_v2"))&&!V;return _.Y("yt-animated-action",{class:_.ii("animated-action__container",T)},_.Y("div",{class:"animated-action__content-with-background"},_.uO(V,function(){return _.Y(Yac,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:l,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(Lic()?"dark":"light")+"_v5.json"}}})}),H),_.uO(V,function(){return _.Y(Yac,{lottiePlayerProps:{animationRef:I,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(Lic()?"dark":"light")+"_v4.json"}}})}))};
Yac=function(V){var l=V.wrapperClass;var I=V.lottieClass;V=V.lottiePlayerProps;return _.Y("div",{class:_.l8("animated-action__lottie",l),"aria-hidden":"true"},_.Y(q21,{className:I,data:V}))};
Lic=function(){var V,l;return(l=(V=_.F().resolve(_.Cs(_.DA)))==null?void 0:V())!=null?l:!1};
kWg=function(){var V,l;return(l=(V=_.F().resolve(_.Cs(_.DA)))==null?void 0:V())!=null?l:!1};
XGc=function(V,l){V=V===void 0?Fif:V;switch(l.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},V,{isOpen:l.payload});default:return V}};
ykW=function(V,l){V=V===void 0?zY1:V;switch(l.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},V,{isAllowed:l.payload});default:return V}};
rkf=function(V,l){V=V===void 0?tgJ:V;switch(l.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},V,{errorMessage:l.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},V,{title:l.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},V,{privacy:l.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},V,{isDisabled:l.payload});default:return V}};
ESf=function(V,l){V=V===void 0?GWw:V;switch(l.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},V,{isOpen:l.payload});default:return V}};
oSJ=function(V,l){V=V===void 0?Jk1:V;switch(l.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},V,{isFullscreen:l.payload});case "SET_NAVIGATION_BUTTON":var I=l.payload.targetId,H=Object.assign({},V.navigationButtons);H[I]=l.payload.button;return Object.assign({},V,{navigationButtons:H});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},V,{topPanelId:l.payload});case "SET_SECONDARY_HEADER":return I=l.payload.panelId,H=Object.assign({},V.secondaryHeader),H[I]=l.payload.secondaryHeader,
Object.assign({},V,{secondaryHeader:H});default:return V}};
Z$1=function(){return dS(Object.assign({},{entities:fa1,voiceSearch:Spf,engagementPanel:oSJ,bottomSheet:XGc,cinematicSetting:ykW,shorts:sU3,drawerLayout:ESf,createPlaylist:rkf,locationCollection:hYy,reportChannel:P7t,reportForm:D2y},pf1))};
Sat=function(V,l){return"https://www.gstatic.com/youtube/img/lottie/"+V+"/"+l+".json"};
RYt=function(V){return{lottiePlayerProps:{animationConfig:{name:V.name,path:Sat("custom_animated_like_icon",V.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:V.totalFrames,lazyLoad:!0}};
QEt=function(V,l){_.r0.addLowPriorityJob(function(){var I,H,T;return _.d(function(x){switch(x.nextAddress){case 1:return _.jd(x,2),_.K(x,hhw(),4);case 4:return _.K(x,fetch(V),5);case 5:return I=x.yieldResult,_.K(x,I.json(),6);case 6:H=x.yieldResult;mc.set(V,H);requestAnimationFrame(function(){l(H)});
_.Rv(x,0);break;case 2:T=_.kE(x),_.hF(T),_.FU(x)}})})};
ckf=function(V){var l={animationConfig:{},listeners:{}},I=function(){V(!0)};
l.listeners.data_failed=I;l.listeners.error=I;l.listeners.data_ready=function(){V(!1)};
return l};
ww=function(V){var l=V.model;var I=V.subscribed;var H=V.isOverlay;var T=V.element;var x=V.commandController;var n=V.notificationState;if(I){var w,N;var L=(l==null?void 0:(w=l.buttonStyle)==null?void 0:w.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:l==null?void 0:(N=l.unsubscribeButtonContent)==null?void 0:N.buttonText}else{var e;L=l==null?void 0:(e=l.subscribeButtonContent)==null?void 0:e.buttonText}a:{var k;switch(l==null?void 0:(k=l.buttonStyle)==
null?void 0:k.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":w="S";break a;default:w="M"}}a:if(H)H="overlay";else switch(l.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":H="overlay";break a;default:H="mono"}a:if(I)var X="tonal";else switch((X=l.buttonStyle)==
null?void 0:X.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":X="tonal";break a;default:X="filled"}return{style:H,type:X,state:l.disableSubscribeButton?"disabled":"active",size:w,focused:V.focused,toggled:I,accessibilityLabel:Wiy(l,I,n),buttonText:L,iconPosition:l.disableNotificationBell?"none":"leading-trailing",onTap:b$1(l,I,T,x),disableTextEllipsis:!!V.disableTextEllipsis}};
b$1=function(V,l,I,H){return function(T){if(l){var x;var n=V.disableNotificationBell?_.to(V==null?void 0:(x=V.unsubscribeButtonContent)==null?void 0:x.onTapCommand):_.to(V==null?void 0:V.onShowSubscriptionOptions)}else{var w;n=_.to(V==null?void 0:(w=V.subscribeButtonContent)==null?void 0:w.onTapCommand)}n&&La(n,{form:{element:I},commandController:H});T.stopPropagation()}};
Wiy=function(V,l,I){if(l){if(V==null?0:V.disableNotificationBell){var H;return V==null?void 0:(H=V.unsubscribeButtonContent)==null?void 0:H.accessibilityText}switch(I){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var T;return V==null?void 0:(T=V.bellAccessibilityData)==null?void 0:T.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var x;return V==null?void 0:(x=V.bellAccessibilityData)==null?void 0:x.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var n;return V==null?void 0:(n=
V.bellAccessibilityData)==null?void 0:n.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var w;return V==null?void 0:(w=V.bellAccessibilityData)==null?void 0:w.disabledLabel;default:var N;return V==null?void 0:(N=V.unsubscribeButtonContent)==null?void 0:N.accessibilityText}}else{var L;return V==null?void 0:(L=V.subscribeButtonContent)==null?void 0:L.accessibilityText}};
N7=function(V){if(!V)return null;switch(V){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":V="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":V="NOTIFICATIONS_OFF";break;default:V="NOTIFICATIONS_NONE"}return V};
qac=function(V,l,I){I.subscribed!==l&&((I=I.key)&&_.ZR(_.K6("subscriptionStateEntity",I,{key:I,subscribed:l})),V.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:l})),l||_.xB(V,"yt-unsubscribe-action"))};
sEy=function(V){V=_.y(_.to(V),_.jM);var l,I,H,T;return(T=_.y(V==null?void 0:(l=V.panelLoadingStrategy)==null?void 0:(I=l.inlineContent)==null?void 0:(H=I.sheetViewModel)==null?void 0:H.content,Mgt))==null?void 0:T.listItems};
pGg=function(V,l){if(V.onShowSubscriptionOptions&&l&&(V=sEy(V.onShowSubscriptionOptions),V!=null&&V.length)){var I=N7(l);V.forEach(function(H){H=_.y(H,_.Yj);var T,x,n,w,N=H==null?void 0:(T=H.leadingImage)==null?void 0:(x=T.sources)==null?void 0:(n=x[0])==null?void 0:(w=n.clientResource)==null?void 0:w.imageName;H&&N&&(H.isSelected=N===I)})}};
Akt=function(V,l,I,H){l&&I?V.style.width=I+"px":!l&&H&&(V.style.width=H+"px")};
uPW=function(V,l,I){var H;(H=V.lottieEl)==null||H.goToAndPlay(0);var T;(T=l.lottieEl)==null||T.goToAndPlay(0);_.L6(_.r0,function(){var x;(x=I.lottieEl)==null||x.goToAndPlay(0)},300)};
fdw=function(V){var l=_.sZ(),I=_.sZ(),H=_.sZ(),T=_.HK(),x=_.HK(),n=_.HK(),w=_.F().resolve(vSK),N,L=(N=_.n6(_.V1,V.data.stateEntityStoreKey))!=null?N:void 0,e,k,X,r=(X=_.n6(tv1,(k=(e=V.data.notificationStateEntityStoreKeys)==null?void 0:e.subsNotificationStateKey)!=null?k:""))!=null?X:void 0;N=!!V.data.disableNotificationBell;var E=!V.data.enableSubscribeButtonPostClickAnimation;e=_.U(BK(0));var D=e.next().value,Z=e.next().value;e=_.U(BK(0));var S=e.next().value,p=e.next().value;e=_.U(BK(!1));var Vf=
e.next().value,C=e.next().value;e=_.U(BK(!1));var By=e.next().value,lN=e.next().value,wW=t6(!1),o1=t6("");e=_.U(BK(!1));var h1=e.next().value,ec=e.next().value,Zg=function(){lN(!0);_.L6(_.r0,function(){lN(!1)},1500)};
FW(function(){By&&!E&&L&&uPW(T,x,n)},[By]);
FW(function(){!E&&L&&(V.animateWidth&&Akt(l.value,!!L.subscribed,D,S),L.subscribed&&L.key===o1.value&&Zg(),L.key&&(o1.value=L.key))},[L==null?void 0:L.subscribed,
L==null?void 0:L.key]);var Va=zY(function(){var ya=V.data,Dv=!(L==null||!L.subscribed),Tf=!!V.isOverlay,Oq=Vf?l.value:void 0,Ut=r==null?void 0:r.state;pGg(ya,Ut);return ww({model:ya,subscribed:Dv,isOverlay:Tf,element:Oq,notificationState:Ut,disableTextEllipsis:!0,focused:h1})},[V.data,
L,r,h1,V.isOverlay,Vf]),wb=function(){var ya=_.F().resolve(_.Cs(_.eM));ya&&ec(ya.isKeyBoardInUse())},CK=function(){ec(!1)};
_.AF(l,"yt-service-request-sent",function(ya){CZ();L&&(ya.detail.endpoint.subscribeEndpoint||ya.detail.endpoint.unsubscribeEndpoint)&&qac(l.value,!L.subscribed,L)});
_.M4("yt-player-subscribe",function(ya){L&&ya===V.data.channelId&&qac(l.value,!0,L)});
_.M4("yt-player-unsubscribe",function(ya){L&&ya===V.data.channelId&&qac(l.value,!1,L)});
_.M4("yt-update-subscribe-button-action",function(ya){ya=_.y(ya,O$q);L&&ya&&ya.channelId===V.data.channelId&&qac(l.value,!!ya.subscribed,L)});
_.XW(function(){l.value&&(l.value.addEventListener("focusin",wb),l.value.addEventListener("focusout",CK));_.et(_.r0,function(){CZ()});
C(!0);return function(){l.value&&(l.value.removeEventListener("focusin",wb),l.value.removeEventListener("focusout",CK))}});
var CZ=function(){if(!E&&V.animateWidth&&(I==null?0:I.value)&&(H==null?0:H.value)&&!wW.value){var ya=_.U((L==null?0:L.subscribed)?[I,H]:[H,I]),Dv=ya.next().value;ya=ya.next().value;Dv=Math.ceil(Dv.value.getBoundingClientRect().width);ya=Math.ceil(ya.value.getBoundingClientRect().width);Z(Dv);p(ya);Akt(l.value,!(L==null||!L.subscribed),Dv,ya);wW.value=!0}},ME=function(){var ya=N7(r==null?void 0:r.state);
return E||ya!=="NOTIFICATIONS_NONE"?function(){return w(ya)}:function(){RN(C7t)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:n})}};
e=function(){var ya=N7(r==null?void 0:r.state);return E||ya!=="NOTIFICATIONS_NONE"?function(){return _.Y(_.dq,{icon:ya!=null?ya:void 0})}:function(){return _.Y(C7t,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:n})}};
var Hw=!(L==null||!L.subscribed)&&!N&&!(r==null||!r.state),uZ=!(L==null?0:L.subscribed),EN=uZ&&!N&&!(r==null||!r.state);N={};k={};return _.Y("yt-subscribe-button-view-model",{class:_.l8("yt-subscribe-button-view-model-wiz",(N["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(L==null||!L.subscribed)&&V.animateWidth&&By,N["yt-subscribe-button-view-model-wiz--hidden"]=!(L==null?0:L.subscribed)&&V.data.hideWhenUnsubscribed,N)),el:l},_.Y(adg,{backgroundLottieRef:T,foregroundLottieRef:x,wrapperClass:_.l8("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(k["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=V.animateWidth&&By,k["yt-subscribe-button-view-model-wiz__static-width"]=!V.animateWidth,k)),disableAnimation:E},_.Y("div",{el:I,class:_.l8("yt-subscribe-button-view-model-wiz__container"),idomKey:V.data.channelId},_.z("web_wiz_button_shape")?_.Y(KEJ,{data:Va,icon:Hw?e():void 0,secondaryIcon:Hw?function(){return _.Y(_.dq,{icon:"EXPAND"})}:void 0}):_.Y(ux,null,function(){rnt(Va,Hw?ME():void 0,Hw?function(){return w("EXPAND")}:
void 0)}))),_.Y("div",{el:H,
class:"yt-subscribe-button-view-model-wiz__invisible"},!V.animateWidth||E||wW.value?null:_.z("web_wiz_button_shape")?_.Y(KEJ,{data:ww({model:V.data,subscribed:uZ,isOverlay:!!V.isOverlay,element:l.value,disableTextEllipsis:!0}),icon:EN?function(){var ya;return _.Y(_.dq,{icon:(ya=N7(r==null?void 0:r.state))!=null?ya:void 0})}:void 0,
secondaryIcon:EN?function(){return _.Y(_.dq,{icon:"EXPAND"})}:void 0}):_.Y(ux,null,function(){rnt(ww({model:V.data,
subscribed:uZ,isOverlay:!!V.isOverlay,element:l.value,disableTextEllipsis:!0}),EN?function(){return w(N7(r==null?void 0:r.state))}:function(){},EN?function(){return w("EXPAND")}:void 0)})))};
gSt=function(V){if(V){switch(V){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":V="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":V="NOTIFICATIONS_OFF";break;default:V="NOTIFICATIONS_NONE"}return V}};
m2q=function(V,l,I){I.subscribed!==l&&((I=I.key)&&_.ZR(_.K6("subscriptionStateEntity",I,{key:I,subscribed:l})),V.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:l})),l||_.xB(V,"yt-unsubscribe-action"))};
i$3=function(V){V=_.y(_.to(V),_.jM);var l,I,H,T;return(T=_.y(V==null?void 0:(l=V.panelLoadingStrategy)==null?void 0:(I=l.inlineContent)==null?void 0:(H=I.sheetViewModel)==null?void 0:H.content,Mgt))==null?void 0:T.listItems};
VBf=function(V,l){if(V.onShowSubscriptionOptions&&l&&(V=i$3(V.onShowSubscriptionOptions),V!=null&&V.length)){var I=gSt(l);V.forEach(function(H){H=_.y(H,_.Yj);var T,x,n,w,N=H==null?void 0:(T=H.leadingImage)==null?void 0:(x=T.sources)==null?void 0:(n=x[0])==null?void 0:(w=n.clientResource)==null?void 0:w.imageName;H&&N&&(H.isSelected=N===I)})}};
l2f=function(V,l,I,H){l&&I?V.style.width=I+"px":!l&&H&&(V.style.width=H+"px")};
I2y=function(V,l,I){var H;(H=V.lottieEl)==null||H.goToAndPlay(0);var T;(T=l.lottieEl)==null||T.goToAndPlay(0);_.L6(_.r0,function(){var x;(x=I.lottieEl)==null||x.goToAndPlay(0)},300)};
kj=function(){return _.F().resolve(_.Cs(H4K))||{}};
TiT=function(V){return typeof V==="function"};
_.FR=function(V){Object.keys(V);var l=function(I,H){var T=l.mapping||V;if(!I)return _.Y(_.CN,null);if(Array.isArray(I)&&(I=BiW(T,l,I),Array.isArray(I))){if(!I.length)return _.Y(_.CN,null);if(I.length>1){for(var x=!1,n=!1,w=[],N={},L=0;L<I.length;N={data$jscomp$1820:void 0},L++)if(N.data$jscomp$1820=I[L],N.data$jscomp$1820){var e=xPT(N.data$jscomp$1820,T),k=e.mappingEntry;e=e.rendererName;k&&e&&(k&&(!TiT(k)&&UPy(k)&&(n=!0),!TiT(k)&&k.asyncId||(x=!0)),w.push(n5f(N.data$jscomp$1820,k,e,l,H)))}return n&&
!x?_.Y(_.CN,null,$PW()):_.Y(_.CN,null,w)}I=I[0]}if(!I)return _.Y(_.CN,null);I=BiW(T,l,[I])[0];if(!I)return _.Y(_.CN,null);x=xPT(I,T);T=x.mappingEntry;x=x.rendererName;return T&&x?_.Y(_.CN,null,n5f(I,T,x,l,H)):_.Y(_.CN,null)};
l.mapping=V;return l};
_.dPN=function(V){var l=void 0,I;for(I in V)if(V.hasOwnProperty(I)){l=I;break}return l};
BiW=function(V,l,I){var H,T=(H=kj().preProcessOptions)==null?void 0:H.idomOptions;if(!T)return I;kj();return T.preProcessPropsIdom(V,I,l.triggerRerender)};
xPT=function(V,l){return(V=_.dPN(V))?{mappingEntry:l[V],rendererName:V}:{mappingEntry:void 0,rendererName:void 0}};
n5f=function(V,l,I,H,T){if(!l)return _.Y(_.CN,null);var x={};T&&T[I]&&(x=Object.assign({},T[I]));V[I]!==void 0&&(x.data=V[I]);if(TiT(l))return l.debugName||(l.debugName=I),_.Y(l,x);l.asyncId&&(H.pendingIdsMap=H.pendingIdsMap||{},H.pendingIdsMap[I]=l.asyncId);return l.templateFn?l.templateFn(x):UPy(l)?$PW():_.Y(_.CN,null)};
UPy=function(V){var l;return(l=V.showPlaceholder)!=null?l:kj().defaultShowPlaceholder};
$PW=function(){var V=kj().placeholder;return V()};
wM3=function(V,l){l=l===void 0?{shouldPersist:!0}:l;return{useUpdatableData:function(I,H){var T=[],x=_.U(_.Ux(function(){var L=I();if(H!=null&&H.length&&T){var e=T.length>0;for(var k=!1,X=0;X<H.length;X++){var r=H[X]();e&&r!==T[X]&&(k=!0);T[X]=r}e=k}else e=!1;if(e)_.zb.remove(N());else if(e=_.zb.get(N()))return e;return L})),n=x.next().value,w=x.next().value,N=_.Ny(function(){return V(I())},void 0,"VFraLb");
_.t0(function(){if(N()!=null){y1.set(N(),[n,w,!1]);var L=N();_.rx(function(){y1.delete(L)})}});
return[n,function(L){w(L);l.shouldPersist&&_.zb.set(N(),L)}]},
getData:function(I){var H;return(H=y1.get(V(I)))==null?void 0:H[0]()},
updateData:function(I,H){I=V(I);var T=y1.get(I);if(!T)return!1;var x=_.U(T);T=x.next().value;x=x.next().value;H=H(T());x(H);l.shouldPersist&&_.zb.set(I,H);return!0},
useUpdatableDataIdom:function(I,H){var T=V(I),x=_.zb.get(T),n=_.U(BK(x!=null?x:I)),w=n.next().value,N=n.next().value,L=t6(x!=null?x:I);FW(function(){if(T!=null)return y1.set(T,[function(){return L.value},
function(e){N(e);L.value=e},
y1.has(T)]),_.r0.addJob(function(){_.t9(_.r0,function(){var e=y1.get(T);e&&(e[2]=!1)},0)},8),function(){var e;
((e=y1.get(T))==null?0:e[2])||y1.delete(T)}},[T]);
FW(function(){w!==I&&(N(I),L.value=I)},H?[].concat(_.oI(H),[T]):[T]);
return[w,N]}}};
Ni3=function(V){var l=_.U(_.xi(!0,void 0,"bKtO6d")),I=l.next().value;l.next();return function(){var H=TY(V.children());return _.Y(_.NS,{cond:I,then:function(){return H},
else:V.fallback})}()};
_.rw=function(V){var l=KZt(V),I=l.data,H=l.mapping,T=l.wrapper;l=l.pendingFallback;var x=function(){return jht(_.ES(I))},n=function(){var w=x(),N=[];
w=_.U(w);for(var L=w.next();!L.done;L=w.next()){var e=void 0;L=L.value;var k=void 0;for(e in L)if(!(!L).hasOwnProperty(e)){k=e;break}(e=k)&&N.push(e)}return N};
return V.data?_.Y(Ni3,{fallback:l},function(){return _.Y(_.Ks,{each:n},function(w,N){var L=T?function(k){return T(function(){return H[w](k,N)},e,N)}:function(k){return H[w](k,N)};
L.debugName||(L.debugName=String(w));if(!H[String(w)])return document.createComment("");var e=YKf(x,w,N);return _.Y(L,{data:e})})}):_.Y(_.CN,null)};
KZt=function(V){var l=V.targetId||LZw(V.children);if(!V.data||!l||_.z("mweb_new_replaceables_killswitch"))return Object.assign({},V,{mapping:V.children,wrapper:void 0});var I="stamper-"+eVc++,H=function(){var w;return(w=_.ES(V.targetId))!=null?w:I};
l=_.U(kkt(function(){var w=jht(V.data());w.targetId=H;return w})).next().value;
var T=Object.assign({},kj().replaceableMapping,V.children);if(V.replacementWrapper){var x=T.notificationTextRenderer,n=T.notificationMultiActionRenderer;x&&(T.notificationTextRenderer=function(w,N){return V.replacementWrapper(x({data:w.data},N))});
n&&(T.notificationMultiActionRenderer=function(w,N){return V.replacementWrapper(n({data:w.data},N))})}return Object.assign({},V,{data:l,
mapping:T,wrapper:function(w,N,L){return BOW({targetId:H,stamperIndex:L},w)}})};
YKf=function(V,l,I){var H;return _.Ny(function(){var T=V()[I()];if(T)H=T[l];else return _.hF(new _.Yd("Stamper failed to find "+String(l)+" at index "+I()+" of data array of length "+(V().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),H;return T[l]},void 0,"DHuMIe")};
LZw=function(V){V=_.U(Object.keys(V));for(var l=V.next();!l.done;l=V.next())if(l=l.value,FZg.includes(l)||XM1.includes(l)||zVq.includes(l))return!0;return!1};
jht=function(V){return V?Array.isArray(V)?V:[V]:[]};
y_W=function(V){V=_.y(V,_.Gb);return(V==null?void 0:V.iconName)&&!(V==null?0:V.title)};
Gkq=function(V,l,I){var H;return _.Y(_.CN,null,V==null?void 0:(H=V.actions)==null?void 0:H.map(function(T){return _.Y("div",{class:function(){var x={"yt-flexible-actions-view-model-wiz__action":!0};x["yt-flexible-actions-view-model-wiz__action--row-action"]=l;x["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(y_W(T))var n=!0;else if(n=_.y(T,_.EB),(n==null?0:n.isToggled)&&y_W(n==null?void 0:n.toggledButtonViewModel)||(n==null||!n.isToggled)&&y_W(n==null?void 0:n.defaultButtonViewModel))n=
!0;else{var w;n=((w=_.y(T,tBW))==null?0:w.playlistId)?!0:!1}x=(x["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=n,x["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=I,x);return _.l8(x)}},r_f([T],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!l}}))}))};
E5c=function(V){var l=V.layout===1,I,H=((I=V.data)==null?void 0:I.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";I={};H=(I["yt-flexible-actions-view-model-wiz"]=!0,I["yt-flexible-actions-view-model-wiz--inline"]=!l,I["yt-flexible-actions-view-model-wiz--scrollable"]=H,I);var T,x;return _.Y("yt-flexible-actions-view-model",{class:_.l8(V.className,H)},(T=V.data)==null?void 0:(x=T.actionsRows)==null?void 0:x.map(function(n){if(l){var w;return _.Y("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Gkq(n,l,!((w=V.data)==null||!w.respectActionIntrinsicWidth)))}return Gkq(n,l,!1)}))};
J_T=function(V){return!(V==null||!V.iconName||(V==null?0:V.title))};
o5t=function(V){var l=_.y(V.data.toggleButtonViewModel,_.EB),I,H=(I=V.data.dislikeEntityKey)!=null?I:"",T=_.n6(GS,H);l=Object.assign({},l,{isToggled:T?T.likeStatus==="DISLIKE":l.isToggled});return _.Y("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.Y(_.o6,{data:l,buttonShapeOverrides:V.buttonShapeOverrideables,onToggle:function(x){T&&x!==(T.likeStatus==="DISLIKE")&&T.key&&_.ZR(_.h9("likeStatusEntity",T.key,{likeStatus:x?"DISLIKE":"INDIFFERENT",hadUserInteraction:x}))}}))};
PoJ=function(V){var l=_.z("web_supports_animations_api"),I=_.y(V.data.toggleButtonViewModel,_.EB),H,T,x,n,w=_.U(BK({numberText:(n=(H=V.likeCountEntity)==null?void 0:(T=H.likeCountIfIndifferent)==null?void 0:T.content)!=null?n:"",numberValue:Number((x=V.likeCountEntity)==null?void 0:x.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),N=w.next().value,L=w.next().value,e,k,X,r;H=_.U(BK({numberText:(r=(e=V.likeCountEntity)==null?void 0:(k=e.likeCountIfLiked)==null?void 0:k.content)!=null?
r:"",numberValue:Number((X=V.likeCountEntity)==null?void 0:X.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));e=H.next().value;var E=H.next().value;k=_.U(BK());var D=k.next().value,Z=k.next().value,S;k=(S=V.data.likeStatusEntityKey)!=null?S:"";var p,Vf;S=(Vf=(p=V.likeCountEntity)==null?void 0:p.key)!=null?Vf:"";var C=_.n6(GS,k),By=_.n6(Iet,S);p=zY(function(){return(C==null?void 0:C.likeStatus)==="LIKE"},[C]);
FW(function(){var lN,wW=By&&((lN=By.likeCountIfIndifferent)==null?void 0:lN.content)!==N.numberText;if(!D&&wW){var o1,h1;L({numberText:(h1=By==null?void 0:(o1=By.likeCountIfIndifferent)==null?void 0:o1.content)!=null?h1:"",numberValue:Number(By==null?void 0:By.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var ec,Zg;E({numberText:(Zg=By==null?void 0:(ec=By.likeCountIfLiked)==null?void 0:ec.content)!=null?Zg:"",numberValue:Number(By==null?void 0:By.likeCountIfLikedNumber),heightPx:36,
shouldAnimate:!0})}},[By]);
I=Object.assign({},I,{isToggled:p});l=l&&V.likeCountEntity;return _.Y("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.Y(_.o6,{data:I,buttonShapeOverrides:V.buttonShapeOverrideables,animatedTextPropsDefault:l?N:void 0,animatedTextPropsToggled:l?e:void 0,onToggle:function(lN){hV1(lN,C,D,Z)},
style:function(){return V.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
hV1=function(V,l,I,H){I&&_.r0.cancelJob(I);I=_.r0.addLowPriorityJob(function(){H(void 0)},5E3);
H(I);l&&V!==(l.likeStatus==="LIKE")&&l.key&&_.ZR(_.K6("likeStatusEntity",l.key,{key:l.key,likeStatus:V?"LIKE":"INDIFFERENT",hadUserInteraction:V}))};
RV3=function(V){var l,I=_.y((l=V.data)==null?void 0:l.likeButtonViewModel,DPg),H;l=_.y((H=V.data)==null?void 0:H.dislikeButtonViewModel,Z4N);var T,x=(T=_.n6(GS,(I==null?void 0:I.likeStatusEntityKey)||""))!=null?T:I==null?void 0:I.likeStatusEntity;H=zY(function(){var n=V.data,w;n=(n==null?void 0:(w=n.timedAnimationData)==null?void 0:w.animationTiming)||[];return{uniqueId:"like-dislike",timings:n,enabled:(x==null?void 0:x.likeStatus)==="INDIFFERENT"&&n.length>0,experimentEnabled:n.length>0}},[V.data,
x]);return _.Y("segmented-like-dislike-button-view-model",{class:_.l8(V.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.Y(_.SK1,{settings:H},_.Y("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},I?_.Y(PoJ,{data:I,likeCountEntity:V.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,l?_.Y(o5t,{data:l,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
Qht=function(V,l){var I=az.get(V)||{layerNode:l};I.layerNode=l;GZN(V,I);V.getScreenLayer=function(){return PK(I.layerNode)}};
c_y=function(V){var l;V=V.parentNode;for(var I;V&&((l=az.get(V))==null||!l.isRenderer)&&!((I=V.polymerController)!=null?I:V).isRenderer_;)V=V.parentNode||V.host;if(l=V)return az.get(l)};
WZt=function(V){if(V){az.delete(V);var l=_.F().resolve(fO);G6T(V,l)}};
qKt=function(V,l,I){if(I===void 0?0:I){if(I=V.getAttribute("client-ve-type"),l.data&&!l.disableReactiveLogging||I)_.y9(function(){b4K(V,_.ES(l.data))}),_.rx(function(){return void WZt(V)})}else typeof l.data!=="function"&&b4K(V,l.data)};
b4K=function(V,l){MBt++;shy(V,l)&&_.r0.addJob(function(){_.t9(_.r0,function(){if(shy(V,l)&&V.ownerDocument.documentElement===document.documentElement&&V){var I;if(V.getAttribute("layer")){var H=I=Number(V.getAttribute("layer")),T=az.get(V);T?T.layerNode.layer=H:Qht(V,new pMN(H));(H=c_y(V))&&(T=az.get(V))!=null&&(T.layerNode.parent=H.layerNode)}else if(I=az.get(V))I=PK(I.layerNode);else{I=PK;H=new pMN;if(T=c_y(V))H.parent=T.layerNode;Qht(V,H);I=I(H)}I!=null||(I=0);H=V.getAttribute("client-ve-type");
T=Number(H);var x=!1;H=!1;var n=az.get(V),w;if((w=n)&&!(w=n[A_W]!==l)&&(w=T)){var N;w=((N=az.get(V))==null?void 0:N.clientVeType)===void 0}w&&(n[A_W]=l,x=H=n.isRenderer=!0);az.has(V)&&(az.get(V).clientVeType=T);V.visualElement&&(H=!0);(N=l==null?void 0:l.loggingDirectives)&&N.clientVeSpec&&(n=uhJ(_.TG(),V),N=_.v5q(_.x7(),N,n||void 0,I))&&(V.visualElement=N);!V.visualElement&&T&&x&&(V.veType=T,N=void 0,_.z("wiz_next_client_ve_parent_fix")&&(N=uhJ(_.TG(),V)),N=_.BX(_.x7(),V,N,I),V.visualElement=N);
H&&(N=_.F().resolve(fO),hE3(V,{data:l,observer:N,layer:I,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
shy=function(V,l){return(l==null?0:l.trackingParams)||(l==null?0:l.loggingDirectives)||_.y(l==null?void 0:l.rendererContext,_.Pjc)||V.getAttribute("client-ve-type")?!0:!1};
Co1=function(V){return _.z("cow_logging_in_component_wrapper")?function(l){qKt(l,V,!0)}:O41};
O41=function(){};
_.a2T=function(V,l){return _.nW(V.entities,"accountLinkStatusEntity",l)};
f2f=function(V,l){return _.nW(V.entities,"hatsSurveyEntity",l)};
g5J=function(V,l){return _.nW(V.entities,"hatsSurveyStateEntity",l)};
mPT=function(V,l){return _.nW(V.entities,"quantityIncrementerEntity",l)};
Hp1=function(V){var l=V.data;var I=V.className===void 0?"":V.className;var H=V.setMinWidth;V=V.forceIconOnly;var T=_.sZ(Co1({data:l}));H=H?"ytwAccountLinkButtonViewModelHostMinWidth":"";var x=_.dw(_.a2T,function(){var k;return(k=_.ES(l).accountLinkStatusEntityKey)!=null?k:""}),n=_.dw(_.a2T,function(){var k;
return(k=_.ES(l).accountLinkStatusSecondaryEntityKey)!=null?k:""}),w=function(){if(!_.z("web_account_link_secondary_killswitch")){var k,X;
return((k=x())==null?void 0:k.linked)||((X=n())==null?void 0:X.linked)}var r;return(r=x())==null?void 0:r.linked};
_.t0(function(){var k=x();if(k){var X=i4c(new V91,lP1(new IPT,!!k.linked));_.I6().then(function(r){r&&(r.setAccountLinkState(_.rg(X.JSC$9916_serializeBinary(),4)),r.updateAccountLinkingConfig(!!k.linked))})}});
var N=function(){return _.y(_.ES(l).toggleButtonViewModel,_.EB)};
_.M4("yt-signal-action-show-account-link-dialog",function(){if(N()){var k=w()?N().toggledButtonViewModel:N().defaultButtonViewModel;k=_.y(k,_.Gb);var X;if((X=x())==null?0:X.isWarning){X=_.y(_.ES(l).warningButtonViewModel,_.Gb);if(!X){_.Rw(Error("Ch"));return}k=X}var r;(X=_.to((r=k)==null?void 0:r.onTap))&&_.KT([X],T.value)}else _.Rw(Error("Dh"))});
var L=function(){var k=N();return Object.assign({},k,{isToggled:w()})},e=V?{iconPosition:"icon-only"}:{};
return _.Y("account-link-button-view-model",{class:_.l8("ytwAccountLinkButtonViewModelHost",I,H),el:T,"button-renderer":!0},_.Y("div",null,_.Y(_.NS,{cond:function(){var k;if((k=x())==null?0:k.isWarning)return(k=_.y(_.ES(l).warningButtonViewModel,_.Gb))||_.Rw(Error("Ch")),k},
then:function(k){return _.Y(_.Db,{data:k,buttonOverrides:e})},
else:function(){return _.Y(_.o6,{data:L,buttonShapeOverrides:e})}})))};
TKt=function(V){switch(V){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}};
BK1=function(V){switch(V){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}};
xdJ=function(V){switch(V){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"}};
$dT=function(V){var l=V.data;var I=V.children;var H=Ud1(l),T=(l==null?0:l.thumbnailSize)?l.thumbnailSize:"medium";V=!(l==null||!l.doubleStack);var x=!(l==null||!l.experimentEnabled),n={},w=(n["collections-stack-wiz__collection-stack1"]=!0,n[n2t(T)]=!0,n);if(l==null?0:l.customClassName1stStack)w[l.customClassName1stStack]=!0;T={};var N=(T["collections-stack-wiz__collection-stack2"]=V,T["collections-stack-wiz__collection-stack2--responsive-mode"]=l==null?void 0:l.enableResponsiveMode,T);if(l==null?
0:l.customClassName2ndStack)N[l.customClassName2ndStack]=!0;return _.Y("yt-collections-stack",{class:"collections-stack-wiz",hidden:!x},_.uO(l,function(){return _.Y("div",null,_.uO(l.doubleStack,function(){return _.Y("div",{class:_.l8(N),style:"background-color:"+H})}),_.Y("div",{class:_.l8(w),
style:"background-color:"+H}),I)}))};
n2t=function(V){switch(V){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""}};
Ud1=function(V){if(!V)return"";var l,I=(l=_.F().resolve(_.Cs(_.DA)))==null?void 0:l(),H;if(!I&&((H=V.vibrantColorPalette)==null?0:H.iconInactiveColor))return GR(V.vibrantColorPalette.iconInactiveColor,"1");var T;return I&&((T=V.darkColorPalette)==null?0:T.iconInactiveColor)?GR(V.darkColorPalette.iconInactiveColor,"1"):V.color?GR(V.color,"1"):V.sampledThumbnailColor?(V=V.sampledThumbnailColor,"rgba("+V.red+","+V.green+","+V.blue+");"):""};
_.Zb=function(V,l){if(!V.includes("DATE_PLACEHOLDER"))return V;var I=new Date(0);I.setUTCSeconds(l);return V.replace("DATE_PLACEHOLDER",dd3(I))};
_.SM=function(V){V=_.wpg(V);return _.z("web_watch_enable_single_column_grid_view")?V:!1};
_.wpg=function(V){return V.watch.isWatchNarrowWidth};
NKN=function(V,l,I){return function(H){var T=V.command;T&&(La(T,{form:{element:I}}),l([T],H))}};
jFt=function(V,l,I,H,T){return function(x){var n=Ke1(V,I);n&&La(n,{form:{element:H},commandController:T});l&&l.stopPropagation&&x.stopPropagation()}};
Ke1=function(V,l){if(V.signInEndpoint&&!_.z("web_subscribe_sign_in_endpoint_killswitch"))return V.signInEndpoint;if(l){if(V.serviceEndpoints)return V.serviceEndpoints[1];if(V.onUnsubscribeEndpoints)return V.onUnsubscribeEndpoints[0]}else{if(V.serviceEndpoints)return V.serviceEndpoints[0];if(V.onSubscribeEndpoints)return V.onSubscribeEndpoints[0]}};
YDy=function(V,l){var I,H,T,x;l=l&&((I=V.unsubscribeAccessibility)==null?void 0:(H=I.accessibilityData)==null?void 0:H.label)||((T=V.subscribeAccessibility)==null?void 0:(x=T.accessibilityData)==null?void 0:x.label);return V.longSubscriberCountText?[l,_.A5(V.longSubscriberCountText)].filter(function(n){return n}).join(" "):l};
R6=function(V,l){return l||(V==null?0:V.isChannelDelegate)?"disabled":"active"};
Lec=function(V,l){var I;switch((I=V.style)==null?void 0:I.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:R6(V)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:R6(V)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:R6(V,!0)};case "OVERLAY":return l?{style:"overlay",type:"tonal",state:R6(V)}:{style:"overlay",type:"filled",state:R6(V)};default:return l?{style:"mono",type:"tonal",state:R6(V)}:{style:"mono",type:"filled",state:R6(V)}}};
eOW=function(V,l){var I=V.map(function(H){return H.toString()});
return _.Bu(function(H){if(I.includes(H.key)){l&&H.preventDefault();var T;(T=H.currentTarget)==null||T.click()}})};
_.Q1=function(){return eOW(["Enter"])};
_.kgw=function(){return eOW(["Enter"," "],!0)};
_.cK=function(V){if(V.composedPath)return V.composedPath();if(!V.__composedPath){for(var l=[],I=V.target;I;)l.push(I),I=I.parentNode;l.push(window);V.__composedPath=l}return V.__composedPath};
_.FeN=function(V,l,I){V=_.U(V);for(var H=V.next();!H.done;H=V.next()){H=H.value;if(H===l)break;for(var T=_.U(I),x=T.next();!x.done;x=T.next())if(x=x.value,H.tagName===x||H.role==="button"&&x==="BUTTON")return!0}return!1};
zOt=function(V,l){var I,H=(I=l.observer)!=null?I:_.F().resolve(fO);if(V){I=XpJ(V);var T=[];l.showOption&&T.push(H.observe(V,function(){l.visibilityCallback(!0)},l.showOption));
l.hideOption&&T.push(H.observe(V,function(){l.visibilityCallback(!1)},l.hideOption));
l.prescanOption&&l.prescanCallback&&T.push(H.observe(V,function(){l.prescanCallback()},l.prescanOption));
var x;I.visibilityMonitorKeys=((x=I.visibilityMonitorKeys)!=null?x:[]).concat(T)}};
XpJ=function(V){var l;return(l=V.polymerController)!=null?l:V};
_.sB=function(V){return!!_.M7(V)};
_.p6=function(V,l){var I=xnf();FW(function(){var H=V.value;if(H)return ygt(H,l),t9J(H,l,void 0,void 0,void 0,I)},[l])};
_.A9=function(V,l,I,H,T,x){var n=xnf();_.t0(function(){var w=V.value;w&&(ygt(w,l(),x),w=t9J(w,l(),I,H,T,n),_.rx(w))})};
ygt=function(V,l,I){var H=rgc(l),T=Ggt(l);l=H&&E2c;var x=T&&Jgt;(H||T)&&zOt(V,{visibilityCallback:function(n){var w=_.F().resolve(_.aw);n&&H?w.resolveCommand(H,{form:{element:I?V:void 0},disableClickTracking:!0}):!n&&T&&w.resolveCommand(T,{form:{element:I?V:void 0},disableClickTracking:!0})},
showOption:l,hideOption:x})};
t9J=function(V,l,I,H,T,x){var n=new Map;if(l=_.M7(l)){var w;V=(H==null?void 0:(w=H.onTap)==null?void 0:w.value)||V;I=o2f(l,V,I==null?void 0:I.onTap,T,x);V.addEventListener("click",I);n.set("click",I)}return function(){for(var N=_.U(n),L=N.next();!L.done;L=N.next()){var e=_.U(L.value);L=e.next().value;e=e.next().value;V.removeEventListener(L,e)}}};
_.M7=function(V){var l;return(V=(l=_.y(V,hOK))==null?void 0:l.onTap)&&_.to(V)};
rgc=function(V){var l;return(V=(l=_.y(V,hOK))==null?void 0:l.onVisible)&&_.to(V)};
Ggt=function(V){var l;return(V=(l=_.y(V,hOK))==null?void 0:l.onHidden)&&_.to(V)};
o2f=function(V,l,I,H,T){var x=function(w){_.F().resolve(_.aw).resolveCommand(V,w)},n=function(w){H&&_.FeN(_.cK(w),l,H)||x(w.target?{form:{element:w.target,
sourceData:V,mutationContext:T}}:void 0)};
I&&(n=function(w){I(w,x)});
return n};
Pmc=function(V){var l=V.data;var I=V.className;V=V.alwaysShow;var H=_.sZ();_.p6(H,l.rendererContext);a:switch(l.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var T="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:T="ytThumbnailHoverOverlayViewModelStyleCover"}T=_.l8("ytThumbnailHoverOverlayViewModelScrim",T);var x,n=(x=_.y(l==null?void 0:l.rendererContext,_.uP))==null?void 0:x.label,w=_.M7(l.rendererContext)!==void 0;x=w?"button":void 0;w=w?0:void 0;var N=_.kgw(),L={};return _.Y("thumbnail-hover-overlay-view-model",
{el:H,class:_.l8("ytThumbnailHoverOverlayViewModelHost",I,(L.ytThumbnailHoverOverlayViewModelHostForceHover=V,L)),"aria-label":n,role:x,tabindex:w,"on:keypress":N},_.Y("div",{class:T},l.icon?_.Y(_.cX,{data:l.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,l.text?_.Y(_.Ni,{text:l.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
Dd3=function(V){switch(V){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}};
ZpK=function(V){switch(V){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""}};
SD3=function(V){switch(V){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""}};
ROg=function(V){switch(V){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}};
QFt=function(V){return V==="medium"||V==="48"||V==="large"||V==="extra-large"||V==="extra-extra-large"||V==="giant"};
cgJ=function(V){return!!((V==null?0:V.includes(3))||(V==null?0:V.includes(5)))};
bpt=function(V){return{size:Weg(V.data.avatarImageSize),onTap:V.onTap,decorations:V.decorations||[],badgeText:V.badgeText,accessibilityText:V.accessibilityText,avatarButtonCustomClassName:V.avatarButtonCustomClassName}};
Weg=function(V){switch(V){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"}};
qD3=function(V){function l(){I.endpoint&&_.EI(I.endpoint)}
var I=V.data;var H=V.decorations;var T=V.avatarButtonCustomClassName;V=V.isOverlay;return _.Y("avatar-view-model",null,I.image?_.Y(vK,{data:bpt({data:I,onTap:I.endpoint?l:void 0,decorations:H,badgeText:void 0,accessibilityText:I.accessibilityText,avatarButtonCustomClassName:T}),image:I.image,iconType:"RADAR_LIVE",overlays:function(){return _.Y(OB,{data:I})},
isOverlay:V}):null)};
sFt=function(V){var l=V.data;var I=V.avatar;var H=V.onTap;var T=V.element;V=V.commandController;H=H?M9w(H,T,V):void 0;T=[];l.liveData&&T.push(0);var x;V=(x=l.liveData)==null?void 0:x.liveBadgeText;var n;x=(n=_.y(l.rendererContext,_.uP))==null?void 0:n.label;return bpt({data:I,onTap:H,decorations:T,badgeText:V,accessibilityText:x?x:l.a11yLabel})};
M9w=function(V,l,I){return function(){La(V,{form:{element:l},commandController:I})}};
pp3=function(V,l,I,H){return l?sFt({data:V,avatar:l,onTap:I,element:H}):{size:"medium"}};
Ag1=function(V){var l=V.data;V=V.className;var I=_.pO(),H=_.y(l.avatar,_.C6),T=_.M7(l.rendererContext),x,n=pp3(l,H,T,(x=I.value)!=null?x:void 0);return _.Y("yt-decorated-avatar-view-model",{class:_.l8("yt-decorated-avatar-view-model-wiz",V),el:I},_.uO(H==null?void 0:H.image,function(){var w,N,L;return _.Y(vK,{data:n,image:H.image,iconType:"RADAR_LIVE",overlays:function(){return _.Y(OB,{data:H})},
idomKey:H==null?void 0:(w=H.image)==null?void 0:(N=w.sources)==null?void 0:(L=N.at(0))==null?void 0:L.url})}))};
uC3=function(V){switch(V){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}};
v21=function(V){switch(V){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""}};
Opq=function(V){var l=0;V.avatars&&(l+=V.avatars.length);V.decoratedText&&(l+=1);return l};
aP1=function(V){var l=V.data,I=l.avatars,H=l.text,T=l.rendererContext,x=l.decoratedText,n=(l=_.sZ())&&_.sB(T);_.p6(l,T);var w=Opq(V.data)>1,N,L=I&&I.length>0?uC3((N=_.y(I[0],_.C6))==null?void 0:N.avatarImageSize):0,e,k=I&&I.length>0?(e=_.y(I[0],_.C6))==null?void 0:e.avatarImageSize:"AVATAR_SIZE_UNKNOWN",X,r;N={};return _.Y("yt-avatar-stack-view-model",{el:l,class:_.l8("yt-avatar-stack-view-model-wiz",V.className,(N["yt-avatar-stack-view-model-wiz--tappable"]=n,N["yt-avatar-stack-view-model-wiz--is-overlay"]=
V.isOverlay,N["yt-avatar-stack-view-model-wiz--medium-text"]=V.useMediumText,N)),tabindex:n?0:void 0,role:n?"link":void 0,"aria-label":(r=(X=_.y(T,_.uP))==null?void 0:X.label)!=null?r:""},_.uO(I&&!V.hideAvatar,function(){return _.Y("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.uO(x,function(){var E={};return _.Y("div",{class:_.l8("yt-avatar-stack-view-model-wiz__text-container",(E["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=k==="AVATAR_SIZE_XXS"||k==="AVATAR_SIZE_XS",
E["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=V.isOverlay&&(k==="AVATAR_SIZE_XXS"||k==="AVATAR_SIZE_XS"),E)),style:"width: "+L+"px; height: "+L+"px"},_.Y(_.Ni,{text:x,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),I.slice().reverse().map(function(E){return _.Y("div",{class:v21(k)},Cmq(E,{avatarViewModel:{decorations:V.decorations?V.decorations:w?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:V.isOverlay}}))}))}),_.uO(H,function(){return _.Y(_.Ni,{text:H,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
fPt=function(V){switch(V){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}};
g2f=function(V){switch(V){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""}};
mdt=function(V){switch(V){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
ipW=function(V){var l=V.data;return _.Y("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:V.hidden===void 0?!1:V.hidden},_.Y(_.Ni,{text:l.title,className:"yt-thumbnail-overlay-title-view-model__title"}),l.subtitle?_.Y(_.Ni,{text:l.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
Vp1=function(V){switch(V){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"}};
l_y=function(V){var l=V.data;V=V.hidden===void 0?!1:V.hidden;var I={};V={class:_.l8("yt-page-indicator-view-model",(I["yt-page-indicator-view-model__indicator--hidden"]=!l.indicatorCount,I)),hidden:V};if(l.indicatorCount){I=[];for(var H=0;H<l.indicatorCount;H++){var T={};T=_.l8("yt-page-indicator-view-model__indicator",(T["yt-page-indicator-view-model__indicator--selected"]=l.selectedIndex===H,T));I.push(_.Y("div",{class:T}))}l=_.Y(_.CN,null,I)}else l=_.Y(_.CN,null);return _.Y("yt-page-indicator-view-model",
V,l)};
HJy=function(V){V&&(I_t(V)?delete V.inlinePlayerData:"inlinePlaybackEndpoint"in V&&delete V.inlinePlaybackEndpoint)};
TaN=function(V){if("accessibilityText"in V)return V.accessibilityText||"";if("title"in V){var l,I,H;return((l=V.title)==null?void 0:(I=l.accessibility)==null?void 0:(H=I.accessibilityData)==null?void 0:H.label)||""}if("accessibility"in V){var T,x;return((T=V.accessibility)==null?void 0:(x=T.accessibilityData)==null?void 0:x.label)||""}return""};
I_t=function(V){return"inlinePlayerData"in V};
a6=function(V){return new Baq(V)};
_.xjf=function(V,l,I,H,T,x){var n=function(L){L.preventDefault()},w=function(){var L=V.value;
if(L)return(L._data=l)?(L.addEventListener("touchstart",y8t,{passive:!0}),L.addEventListener("click",r8K),l.clickTrackingParams&&(L.params={itct:l.clickTrackingParams}),Git(L,l),bY(L,ER3(l)||"")):L.addEventListener("click",n),function(){l?(L.removeEventListener("touchstart",y8t,{passive:!0}),L.removeEventListener("click",r8K)):L.removeEventListener("click",n)}},N=function(){var L=V.value;
if(L){var e=_.GG({innertubeCommand:l,elementsCommand:I,forceNewState:H,stopPropagation:x});if(e)return L._data=e._data,e["aria-haspopup$"]&&L.setAttribute("aria-haspopup",e["aria-haspopup$"].toString()),e["force-new-state$"]&&L.setAttribute("force-new-state",e["force-new-state$"].toString()),e.href$&&bY(L,e.href$),e.rel$&&(L.rel=e.rel$),e.role$&&L.setAttribute("role",e.role$),e.target$&&(L.target=e.target$),L.params=e.params,e.onclick&&L.addEventListener("click",e.onclick),e.onpointerdown&&L.addEventListener("onpointerdown",
e.onpointerdown),function(){e.onclick&&L.removeEventListener("click",e.onclick);e.onpointerdown&&L.removeEventListener("onpointerdown",e.onpointerdown)}}};
FW(T?N:w,[l,I])};
Ujt=function(V){var l=V.children;var I=V.className;var H=V.dir;var T=V.style;var x=V.role;var n=V.ariaSelected;var w=V.ariaLabel;var N=V.ariaHidden;var L=V.ariaLabelledby;var e=V.ariaDescribedby;var k=V.command;var X=V.elementsCommand;var r=V.forceNewState;var E=V.isPlaceholder;var D=V.tabIdentifier;var Z=V.target;var S=V.tabIndex;var p=V.useATagConfig;var Vf=V.stopPropagation;V=_.sZ();_.xjf(V,k,X,r,p,Vf);X=_.Bu(function(){return Vf===!1});
return _.Y("a",{el:V,"on:click":X,class:I,style:T,dir:H,role:x?x:k?void 0:"group","aria-hidden":N?!0:void 0,"aria-label":w,"aria-labelledby":L,"aria-describedby":e,"aria-selected":n,tabindex:S!==void 0?S:void 0,target:Z,"tab-identifier":D,"force-new-state":r?!0:void 0,"is-placeholder":E?!0:void 0},l)};
$jy=function(V){var l=V.data;V=_.Bu(function(){var T=_.y(l.onTap,_.yI);T&&_.F().resolve(_.aw).resolveCommand(T);return!1});
var I={sources:[{url:l.thumbnailUrl,width:120,height:90}]},H=l.rating&&l.ratingA11yLabel&&l.reviewsCount&&l.reviewsCountA11yLabel;return _.Y("place-data-view-model",null,l.placeName&&l.placeCategory?_.Y("div",{class:"yt-spec-place-data-view-model-shape","on:click":V},_.Y(_.cX,{data:I,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+nWT}),_.Y(Ujt,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.y(l.onTap,_.yI),forceNewState:!0,
useATagConfig:!0},_.Y("h3",{class:"yt-spec-place-data-view-model-shape__name",title:l.placeName},l.placeName)),_.Y("div",{class:"yt-spec-place-data-view-model-shape__metadata"},H?_.Y("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.Y("span",{class:"score",title:l.ratingA11yLabel},l.rating),_.Y("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.Y(_.dq,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.Y("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:l.reviewsCountA11yLabel},l.reviewsCount)):_.Y("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.Y("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.Y("span",{class:"category",title:l.placeCategory},l.placeCategory)))):null)};
djW=function(V){return function(l){V&&(V.thumbnailElRef=l.thumbnailElRef,V.thumbnail=l.thumbnail,V.thumbnailOverlays=l.thumbnailOverlays,V.thumbnailSize=l.thumbnailSize)}};
w81=function(V){var l;return(l=V.sharedUi)==null?void 0:l.animatedThumbnailEnabled};
Naw=function(V){var l;return(l=V.sharedUi)==null?void 0:l.inlinePreviewEnabled};
_.KXy=function(V){var l;return(l=V.sharedUi)==null?void 0:l.currentPageSubType};
jft=function(){return _.Y("div",{class:"yt-pinking"},_.Y("svg",{class:"yt-pinking__pinking-left"},_.Y("defs",null,_.Y("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Y("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.Y("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.Y("svg",{class:"yt-pinking__pinking-right"},_.Y("defs",null,_.Y("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Y("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.Y("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
Yif=function(V){switch(V){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"}};
X8T=function(V){var l=[],I=V.data,H=sx(V.width,V.height),T=_.F().resolve(_.Cs(LXW)),x=_.sZ(function(){l.push("elRef.value set")});
_.XW(function(){l.push("onInit");return function(){l.push("onCleanup")}});
_.XW(function(){var D;(D=V.playbackRef)==null||D.call(V,{thumbnailElRef:x,thumbnail:I.image,thumbnailOverlays:I.overlays,thumbnailSize:H})});
var n=$21(w81),w,N=(w=V.aspectRatio)!=null?w:0,L=(w=(I.image?_.nug(I.image):N)<=1&&N===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",e=function(){x.value||_.hF(new _.Yd("Thumbnail elRef.value is null",l.join("\n")));T&&x.value&&T(x.value)},k={};
a:{if(!V.disableRounding&&!V.isClip)switch(H){case "large":var X="yt-thumbnail-view-model--large";break a;case "small":X="yt-thumbnail-view-model--small";break a;default:X="yt-thumbnail-view-model--medium";break a}X=void 0}N=_.l8("yt-thumbnail-view-model",V.className,Yif(N),X,(k["yt-thumbnail-view-model--cinematic"]=w,k));k=void 0;var r,E;(X=w?(r=V.data)==null?void 0:(E=r.backgroundColor)==null?void 0:E.lightTheme:void 0)&&(k="background-color:"+GR(X,"1")+";");return _.Y("yt-thumbnail-view-model",
{class:N,style:k,el:x},_.uO(w,function(){return _.Y("div",{class:"yt-thumbnail-view-model__blurred-image"},_.Y(_.cX,{data:I.image,alt:"",contentMode:L,targetWidth:V.width,onload:e}))}),_.Y("div",{class:"yt-thumbnail-view-model__image"},_.Y(_.cX,{data:I.image,
alt:"",contentMode:L,targetWidth:V.width,onload:e}),null),eyf(I.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:H,isClip:V.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:V.lockupExperiments}}),_.uO(V.hovered,function(){return k7W(I.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.uO(V.hovered&&n,function(){return FXT(I.overlays)}),_.uO(V.isClip,function(){return jft()}))};
zyg=function(V){switch(V){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"}};
EWy=function(V){var l=_.U(BK(-1)),I=l.next().value,H=l.next().value,T=y0(function(){return new ysN(H)});
_.XW(function(){tpw(T,V.data.thumbnails.length);return function(){rst(T)}});
var x;return _.Y("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(x=V.data.thumbnails)==null?void 0:x.map(function(n,w){var N=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!V.data.primaryThumbnail&&w===0&&N.push("yt-collection-thumbnail-slideshow--first-slide");w<=I&&N.push("yt-collection-thumbnail-slideshow--show-slide");w=N.join(" ");return _.Y("div",{class:w},G7c(n,{thumbnailViewModel:{disableRounding:V.disableRounding}}))}))};
oWT=function(V){var l=_.U(BK(!1)),I=l.next().value,H=l.next().value;_.XW(function(){if(V){var T=_.F().resolve(_.Cs(Jsf));if(T){var x={triggeringElement:V,onDwellTriggeredFn:function(){H(!0)},
onDwellEndFn:function(){H(!1)}};
T.registerElement(x);return function(){T.unregisterElement(x)}}}});
return I};
hy1=function(V){var l=_.U(_.xi(!1,void 0,"RIOonf")),I=l.next().value,H=l.next().value;_.XW(function(){var T=V==null?void 0:V();if(T){var x=_.F().resolve(_.Cs(Jsf));if(x){var n={triggeringElement:T,onDwellTriggeredFn:function(){H(!0)},
onDwellEndFn:function(){H(!1)}};
x.registerElement(n);_.rx(function(){x.unregisterElement(n)})}}});
return I};
ZJq=function(V){var l,I=(l=_.F().resolve(_.Cs(_.DA)))==null?void 0:l(),H=oWT(V.triggeringElement),T=!!V.data.primaryThumbnail,x=function(){var w;return _.Y("div",null,PCT(V.data.primaryThumbnail,{thumbnailViewModel:{width:V.width,height:V.height,aspectRatio:V.aspectRatio,disableRounding:V.disableRounding,className:T?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:V.hovered,playbackRef:V.playbackRef}}),_.uO(H&&((w=V.data.thumbnails)==null?void 0:w.length),function(){return _.Y("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.Y(DjT,{data:V.data,disableRounding:!T}))}))};
l=V.data.stackColor;var n={experimentEnabled:T,thumbnailSize:sx(V.width,V.height),doubleStack:V.doubleStack,color:I?l==null?void 0:l.darkTheme:l==null?void 0:l.lightTheme,enableResponsiveMode:!1};return _.Y("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.uO(T,function(){return _.Y($dT,{data:n},x())}),_.uO(!T,x))};
SiJ=function(V,l,I){I?I(l):_.EI(l,V.target?{form:{element:V.target}}:void 0)};
_.f6=function(V,l,I,H){_.t0(function(){var T=V.value;if(T){var x=new Map,n,w=(n=l())==null?void 0:n.onTap;w&&(n=function(N){a:{var L=N.composedPath();L=_.U(L);for(var e=L.next();!e.done;e=L.next()){e=e.value;if(e===T)break;if(e.className.indexOf("HostIsClickableAdComponent")>=0||e.tagName==="A".toString()||e.tagName==="BUTTON".toString()){L=!0;break a}}L=!1}L||(_.z("enable_square_image_components_ui_web_with_float_button")?_.B$(V.value,"yt-navigate",{endpoint:_.to(w)}):SiJ(N,w,I))},(H==null?0:H())||
_.z("enable_web_home_top_landscape_image_layout_level_click")?(T.addEventListener("tap",n),x.set("tap",n)):(T.addEventListener("click",n),x.set("click",n)));
_.rx(function(){for(var N=_.U(x),L=N.next();!L.done;L=N.next()){var e=_.U(L.value);L=e.next().value;e=e.next().value;T.removeEventListener(L,e)}})}})};
Ry1=function(V,l){var I,H=(I=V.interaction)==null?void 0:I.onTap;if(V=_.GG({elementsCommand:H,forceNewState:!0,skipOnClick:!0}))return V.onclick=function(T){ekK(T)&&(T.preventDefault(),H&&SiJ(T,H,l))},FoN(V)?V:void 0};
Qfg=function(V){switch(V){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
csW=function(V){switch(V){case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
WXJ=function(V){switch(V){case "AD_BUTTON_STYLE_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.bJf=function(V){return _.z("rich_grid_enable_dynamic_offset")&&V?Math.max(Math.round((V-_.g7("rich_grid_dynamic_offset_anchor_width",1300))/100*_.g7("rich_grid_dynamic_offset_offset_per_100",10)),_.g7("rich_grid_dynamic_offset_lower_bound",-60)):0};
qiN=function(V,l){switch(l){case 4:return 16;case 1:return V<528?16:V<1024?32:48;case 2:return(V>=528?16:8)/2;case 3:return(V<528?16:V<1024?32:48)+(V>=528?16:8)/2;default:return 0}};
Mp1=function(V){var l=V.originalContainerWidth;var I=V.sizing;var H=V.standardUnit;if(V.isCompactList&&l<528)return 1;switch(I){case "STANDARD":return H;case "COMPACT":return H+1;case "EXTRA_COMPACT":return _.z("web_responsive_extra_compact_2x")?H*2:_.z("web_responsive_current")?H===1?2:H%2===0?H/2*3:H+2:H<4?H*2:Math.ceil(H*3/2);case "MINI":return H>1?H*2:3;default:return H}};
p8t=function(V){var l=V.containerWidth;var I=V.peek;var H=V.gutter;var T=V.numItems;V=V.ignoreMaxWidthLimit;l=I?Math.max((l-I-H*T)/T,0):Math.max((l-H*(T-1))/T,0);return V?l:Math.min(l,sfT)};
_.gw=function(V){var l=V.containerWidth;var I=V.hasPeek;var H=V.sizing;var T=V.marginSettings;var x=V.isCompactList;var n=V.enableFullBleedForSingleCol;var w=V.standardUnitMinWidth;H=H||"STANDARD";I=!!I;V=l>=528?16:8;var N=I?l>=528?48:24:0;T=qiN(l,T);var L=Math.max(l-T*2,0);w=_.z("kevlar_disable_min_width_override")?void 0:w;w=Math.min(Math.max(Math.floor((L-N+V)/((w!=null?w:Asc)+_.bJf(l)+V)),1),6);var e=(n=!!n&&w===1)||w===1&&H!=="STANDARD";I=I||e?L:Math.min(L,(sfT+V)*w-V);H=Mp1({originalContainerWidth:l,
sizing:H,standardUnit:w,isCompactList:x});return{itemWidth:p8t({containerWidth:I,peek:N,gutter:V,numItems:H,ignoreMaxWidthLimit:e}),gutter:V,maxContainerWidth:I,numItems:H,margin:n?0:T,contentMargin:qiN(l,1),typographyBump:p8t({containerWidth:I,peek:N,gutter:V,numItems:w,ignoreMaxWidthLimit:e})>400&&!(x&&l<528),standardUnit:w}};
uqK=function(V){switch(V){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.vWg=function(V){if(V){var l;if((l=V.responsiveContainerConfiguration)==null?0:l.responsiveSize)return uqK(V.responsiveContainerConfiguration.responsiveSize);if(V.layoutSizing)switch(V.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"}}};
OJT=function(V){if(V.fullbleed)return 1;switch(V.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
gWK=function(V,l,I,H,T,x,n,w){a:switch(V){case 4:x=!!(x&&x<100);break a;default:x=!1}a:switch(V){case 3:case 4:var N=H==="LOCKUP_CONTENT_TYPE_CHANNEL"||H==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:N=!1}a:switch(V){case 5:var L=!0;break a;case 4:L=!1;break a;default:L=!1}a:if(V===4&&H==="LOCKUP_CONTENT_TYPE_SOURCE")var e=1;else switch(V){case 3:e=1;break a;default:e=0}return{isOverlay:L,isCard:CCt(H,n),sizing:l!=null?l:"STANDARD",typographyBump:I!=null?I:!1,isTiny:x,isCentered:N,isCollection:a_f(H),
arrangement:e,addMarginForFullbleed:V===1&&H!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:V===1&&H==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:f_N(H,T,w),disableRounding:V===5||CCt(H,n)||V===1&&H==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:a_f(H)?2:0,useLegacyTypography:!(w==null||!w.useLegacyTypography),useRichGridLegacyTypography:!(w==null||!w.useRichGridLegacyTypography)}};
a_f=function(V){switch(V){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}};
CCt=function(V,l){if(l&&V==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(V){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
f_N=function(V,l,I){if(l&&(I==null||!I.alwaysRespectPodcastShowAspectRatio||V!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(V){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}};
mjK=function(V){switch(V){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"}};
lOt=function(V,l,I){a:switch(V.badgeStyle){case "BADGE_OVERLAY":var H=!0;break a;default:H=!1}return{type:l?16:iJ1(V.badgeStyle),brNzRatingBadgeType:VIf(V.badgeStyle),text:V.badgeText,icon:V.iconName,isOverlay:H,modern:I||_.z("web_modern_badge_view_model")}};
iJ1=function(V){switch(V){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
VIf=function(V){switch(V){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}};
Ho3=function(V){var l=V.data?lOt(V.data,!!V.workaroundShortsIsThumbnailBadge,V.modern):void 0;return _.Y("yt-badge-view-model",{class:_.l8("yt-badge-view-model-wiz",V.class)},_.uO(l==null?void 0:l.brNzRatingBadgeType,function(){return _.Y(IOt,{data:l})}),_.uO(l&&!l.brNzRatingBadgeType,function(){return _.Y(_.mw,{data:l})}))};
_.iP=function(V){if(V){var l;return((l=_.F().resolve(_.Cs(_.DA)))==null?0:l())?V.darkThemeImage:V.image}};
x5W=function(V,l,I,H,T,x){if(!I)return T&&x&&l==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+T+"px; height: "+x+"px;":"";T=I.size;I=I.allowFullWidth;if(l==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&I)return"width: 100%;";if(T===void 0)return"";switch(V){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+T+"px; height: "+T+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+T+"px; height: "+1/TBN*
T+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+T*BBK+"px; height: "+T+"px;";default:return(H==null?0:H.height)&&(H==null?0:H.width)?H.width/H.height>1?"max-width: "+T*BBK+"px;":"max-width: "+T+"px;":"max-width: "+T+"px;"}};
U5y=function(V){var l;return V&&((l=_.iP(V.themedImage))!=null?l:V.image)};
nxq=function(V){var l;return V==null?void 0:(l=V.sources)==null?void 0:l[0]};
d5t=function(V,l){var I,H;return!!((V==null?0:(I=V.byline)==null?0:I.hideAvatar)&&((H=_.y(l,$5W))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
wLc=function(V,l){var I,H;return!!((V==null?0:(I=V.byline)==null?0:I.addPadding)&&((H=_.y(l,$5W))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
NBJ=function(V,l,I,H){var T={},x=(T["yt-content-metadata-view-model-wiz__delimiter"]=!0,T["yt-content-metadata-view-model-wiz__delimiter--standalone"]=H,T);return _.uO(l-1>I,function(){return _.Y("span",{class:_.l8(x),"aria-hidden":!0},V)})};
jT3=function(V,l){return _.Y(_.Ni,{text:V.text,linkInheritColor:!0,className:KgN(l),userInput:!0})};
Lgt=function(V){var l=V.metadataPart;var I=V.isOverlay;var H=V.useMediumText;var T=V.hideAvatar;var x=1;l.maxLines!==void 0&&(x=l.maxLines);return _.Y(_.CN,null,_.uO(l.avatarStack,function(){return YW1(l.avatarStack,{avatarStackViewModel:{isOverlay:I,useMediumText:H,hideAvatar:T}})}),_.uO(l.text,function(){var n=x;
return _.Y(_.CN,null,l.tooltip?_.Y("span",{title:l.tooltip,role:"tooltip"},jT3(l,n)):jT3(l,n))}))};
KgN=function(V){switch(V){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"}};
eQf=function(V){var l=V.metadataRow;var I=V.isInline;var H=V.delimiter;var T=V.isOverlay;var x=V.useMediumText;var n=V.extensions;var w=d5t(n==null?void 0:n.lockupMetadata,l);V=wLc(n==null?void 0:n.lockupMetadata,l);n=!!((n==null?0:n.lockupMetadata)&&l.badges);var N={};V=(N["yt-content-metadata-view-model-wiz__metadata-row"]=!0,N["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=I,N["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=V,N["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
n,N);var L,e;return _.Y("div",{class:_.l8(V)},(L=l.badges)==null?void 0:L.map(function(k){return _.Y("div",{class:"yt-content-metadata-view-model-wiz__badge"},YW1(k))}),(e=l.metadataParts)==null?void 0:e.map(function(k,X){return _.Y(_.CN,null,Lgt({metadataPart:k,
isOverlay:T,useMediumText:x,hideAvatar:w}),NBJ(H,l.metadataParts.length,X,!1))}),_.uO(l.isSpacerRow&&!I,function(){return _.Y("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
k_1=function(V){var l=V.className;var I=V.data;var H=V.layout===void 0?0:V.layout;var T=V.isOverlay===void 0?!1:V.isOverlay;var x=V.useMediumText;var n=V.extensions;V=_.sZ();var w=H===0;H={};H=(H["yt-content-metadata-view-model-wiz"]=!0,H["yt-content-metadata-view-model-wiz--inline"]=w,H["yt-content-metadata-view-model-wiz--tappable"]=_.sB(I.rendererContext),H["yt-content-metadata-view-model-wiz--medium-text"]=x,H);_.p6(V,I.rendererContext);return _.Y("yt-content-metadata-view-model",{class:_.l8(l,
H),el:V},_.uO(I.metadataRows,function(){return I.metadataRows.map(function(N,L){return _.Y(_.CN,null,eQf({metadataRow:N,isInline:w,delimiter:I.delimiter,isOverlay:T,useMediumText:x,extensions:n}),_.uO(w&&!N.isSpacerRow,function(){return NBJ(I.delimiter,I.metadataRows.length,L,!0)}))})}))};
Fgw=function(V){switch(V){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"}};
XL3=function(V){if(V==null?0:V.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(V==null?void 0:V.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
zQ3=function(V){if(V==null?0:V.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(V==null?void 0:V.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"}};
yh1=function(V){var l,I,H,T,x,n,w={},N=_.l8(XL3(V.lockupStyle),zQ3(V.lockupStyle),(w["yt-lockup-metadata-view-model-wiz"]=!0,w["yt-lockup-metadata-view-model-wiz--overlay"]=(l=V.lockupStyle)==null?void 0:l.isOverlay,w["yt-lockup-metadata-view-model-wiz--card"]=(I=V.lockupStyle)==null?void 0:I.isCard,w["yt-lockup-metadata-view-model-wiz--centered"]=(H=V.lockupStyle)==null?void 0:H.isCentered,w["yt-lockup-metadata-view-model-wiz--typography-bump"]=(T=V.lockupStyle)==null?void 0:T.typographyBump,w["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(x=V.lockupStyle)==null?void 0:x.useLegacyTypography,w["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(n=V.lockupStyle)==null?void 0:n.useRichGridLegacyTypography,w)),L,e,k,X,r,E;return _.Y("yt-lockup-metadata-view-model",{class:N},_.uO(V.data.image,function(){return _.Y("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},VO(V.data.image))}),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.Y("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(L=V.data.title)==null?void 0:L.content},_.uO(V.data.title,function(){return _.Y(_.wq,{command:V.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:V.lockupAccessibilityLabel},_.Y(_.Ni,{text:V.data.title}))})),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},VO(V.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((e=V.lockupStyle)==null?void 0:e.typographyBump)||((k=V.lockupStyle)==null?void 0:k.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((X=V.lockupStyle)==null?void 0:X.arrangement)===0,addPadding:((r=V.lockupStyle)==null?void 0:r.arrangement)===1}}}}})),_.uO(V.data.attribution,function(){return _.Y("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},VO(V.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))}),_.Y("div",null,VO(V.data.attachmentSlot,
{lockupAttachmentsViewModel:{lockupStyle:V.lockupStyle}}))),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},VO(V.data.menuButton,((E=V.lockupStyle)==null?0:E.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
tIK=function(V){switch(V.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"}}};
rht=function(V){var l=_.KXy(_.P1().getState())||"";return V?V+l:""};
G_W=function(V){switch(V){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
JhW=function(V){var l=_.U(_.xi(void 0,void 0,"BIquNb")),I=l.next().value,H=l.next().value,T=_.U(_.xi(void 0,void 0,"eR0GH"));l=T.next().value;var x=T.next().value,n=_.U(_.xi(void 0,void 0,"UmkP0"));T=n.next().value;var w=n.next().value;n=_.Bu(function(L){if(Ex1(_.cK(L)))return!1;H(L);x(void 0);w(void 0);return!0});
var N=_.Bu(function(L){V==null||V(L);if(Ex1(_.cK(L)))return!1;x(L);H(void 0);w(void 0);return!0});
return{touchFeedbackEvents:{pointerUpEvent:I,pointerDownEvent:l,pointerLeaveEvent:T},touchFeedbackOnPointerUp:n,touchFeedbackOnPointerDown:N,touchFeedbackOnPointerLeave:function(L){Ex1(_.cK(L))||(w(L),x(void 0),H(void 0))}}};
Ex1=function(V){var l=["BUTTON".toString()];V=_.U(V);for(var I=V.next();!I.done;I=V.next()){I=I.value;for(var H=_.U(l),T=H.next();!T.done;T=H.next())if(I.tagName===T.value)return!0}return!1};
oxJ=function(V){switch(V){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"}};
hQN=function(V){var l;return bx3(V,((l=V.content)==null?void 0:l.length)||0,!0)};
PXt=function(V){var l=hQN(V),I,H;return(((I=V.content)==null?void 0:I.length)||0)>(((H=l.content)==null?void 0:H.length)||0)};
D5c=function(V){var l=V.isTruncated;var I=V.isAbsoluteButton;var H=V.lineHeight;var T=V.contentRef.value,x=V.placeholderTruncationTextRef.value,n=V.truncationTextRef.value;V=V.appDirection==="rtl";if(T&&x){var w=x.offsetLeft;V&&(w=T.offsetWidth-x.offsetWidth-x.offsetLeft);if(l){l=x.offsetWidth;x=T.offsetWidth;var N=I?x-l-70:w-70;H="linear-gradient(\n      to top, transparent 0%,\n      transparent "+H+"px,\n      #000 "+H+"px,\n      #000 100%), linear-gradient(\n      to "+((V?"left":"right")+",\n      #000 0px,\n      #000 "+
N+"px,\n      transparent "+(I?x-l:N+70)+"px)");T.style.setProperty("-webkit-mask-image",H);T.style.setProperty("mask-image",H)}else T.style.setProperty("-webkit-mask-image",""),T.style.setProperty("mask-image","");I?V?(n.style.setProperty("left","0"),n.style.setProperty("right","unset")):(n.style.setProperty("left",""),n.style.setProperty("right","0")):V?(n.style.setProperty("left","unset"),n.style.setProperty("right",w+"px")):(n.style.setProperty("left",w+"px"),n.style.setProperty("right","unset"))}};
ZoJ=function(V,l,I,H,T){var x=_.sZ(),n=_.sZ(),w=_.sZ(),N=hQN(V),L=_.F().resolve(_.Sz),e=_.U(BK(PXt(V))),k=e.next().value,X=e.next().value,r=t6(null);FW(function(){function E(){if(x.value&&n.value&&w.value){var S=x.value;S.scrollHeight-S.offsetHeight>1?(X(!0),H||D5c({isTruncated:!0,isAbsoluteButton:!0,lineHeight:I,contentRef:x,placeholderTruncationTextRef:n,truncationTextRef:w,appDirection:L})):(S=PXt(V),X(S),H||D5c({isTruncated:S,isAbsoluteButton:!1,lineHeight:I,contentRef:x,placeholderTruncationTextRef:n,
truncationTextRef:w,appDirection:L}))}}
var D,Z;(D=r.value)==null||(Z=D.stop)==null||Z.call(D);D=new _.le(E,17);E();r.value=D},[V.content,
l,I,L,H,T]);_.XW(function(){var E=function(){var Z,S;(Z=r.value)==null||(S=Z.fire)==null||S.call(Z)};
if(window.ResizeObserver){var D=new ResizeObserver(E);D.observe(x.value);return function(){var Z,S;(Z=r.value)==null||(S=Z.stop)==null||S.call(Z);D.disconnect()}}window.addEventListener("resize",E);
return function(){var Z,S;(Z=r.value)==null||(S=Z.stop)==null||S.call(Z);window.removeEventListener("resize",E)}});
return{isTruncated:k,displayText:N,contentRef:x,placeholderTruncationTextRef:n,truncationTextRef:w}};
SWJ=function(V){return _.Y("button",{"aria-disabled":!0,disabled:!0,class:V.className,el:V.elRef,style:"line-height: "+V.lineHeight+"px;"},_.Y(_.Ni,{text:V.text}))};
RQc=function(V){var l=V.text;var I=V.alwaysShowTruncationText;var H=V.truncationText;var T=V.onExpandClick;var x=V.lineHeight===void 0?16:V.lineHeight;var n=V.maxLines===void 0?2:V.maxLines;var w=V.disableTextMask===void 0?!1:V.disableTextMask;var N=V.isOverlay===void 0?!1:V.isOverlay;var L=V.accessibilityLabel===void 0?"":V.accessibilityLabel;var e=V.useMediumText===void 0?!1:V.useMediumText;V=_.Bu(function(){return void(T==null?void 0:T())});
var k=ZoJ(l,n,x,w,e),X=k.isTruncated;l=k.displayText;var r=k.contentRef,E=k.placeholderTruncationTextRef;k=k.truncationTextRef;var D={};I=_.l8((D["truncated-text-wiz__absolute-button"]=!w,D["truncated-text-wiz__bottom-button"]=w,D["truncated-text-wiz--hidden"]=!(I||X),D));w={};N=_.l8((w["truncated-text-wiz"]=!0,w["truncated-text-wiz--overlay"]=N,w["truncated-text-wiz--medium-text"]=e,w));return _.Y("truncated-text",{class:N,"on:click":V,style:"line-height: "+x+"px;"},_.Y("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:r,style:"max-height: "+n*x+"px;"},_.Y(_.Ni,{text:l}),_.Y(SWJ,{text:H,lineHeight:x,elRef:E,className:"truncated-text-wiz__inline-button"})),_.Y("button",{"aria-label":L,class:I,el:k,style:"line-height: "+x+"px;"},_.Y(_.Ni,{text:H})))};
QTJ=function(V){return{content:V!=null?V:""}};
boJ=function(V){var l=V.data;var I;V={class:V.className};a:switch(l.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var H="yt-video-attribute-view-model--vertical";break a;default:H="yt-video-attribute-view-model--horizontal"}a:switch(l.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var T="yt-video-attribute-view-model--image-small";break a;default:T="yt-video-attribute-view-model--image-large"}a:switch(l.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var x="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":x="yt-video-attribute-view-model--image-avatar";break a;default:x=""}a:switch(l.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var n="yt-video-attribute-view-model--metadata-header";break a;default:n=""}a:switch(l.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var w="yt-video-attribute-view-model--container-card";break a;default:w=""}var N=_.to(l.onTap)||_.M7(l.rendererContext)?"yt-video-attribute-view-model--clickable":"";
H=["yt-video-attribute-view-model",H,T,x,n,w,N].join(" ");if(l.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var L="";else T=l.lightColorPalette,x=l.darkColorPalette,n=((L=_.F().resolve(_.Cs(_.DA)))==null?0:L())&&x?x:T,L=(L=n==null?void 0:n.section2Color)?_.rP(L):"";return _.Y("yt-video-attribute-view-model",V,_.Y("div",{class:H,style:_.na({"background-color":L})},_.Y(Ujt,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(I=_.to(l.onTap))!=
null?I:_.M7(l.rendererContext),role:"group",forceNewState:!0},l.heroText||l.image?_.Y(ch1,{data:l}):null,_.Y(WgT,{data:l,sizeSmall:l.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
qWc=function(V){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:V.overflowMenuA11yLabel,onTap:function(l){l.preventDefault();l.stopPropagation();if(V.overflowMenuOnTap){var I=_.GG({elementsCommand:V.overflowMenuOnTap,forceNewState:!0});if(I==null?0:I.onclick)I.onclick(l)}}}};
ch1=function(V){V=V.data;var l,I=((l=_.F().resolve(_.Cs(_.DA)))==null?0:l())&&V.darkThemeImage?V.darkThemeImage:V.image;l=qWc(V);return _.Y("div",{class:"yt-video-attribute-view-model__hero-section"},I?_.Y(_.cX,{data:I,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):V.heroText?_.Y("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.Y("span",{class:"yt-video-attribute-view-model__hero-text"},V.heroText)):null,V.overflowMenuOnTap?
_.Y("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.Y(IJ,{data:l,iconName:"MORE_VERT"})):null)};
WgT=function(V){var l=V.data;var I=l.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",H={};V={class:_.l8("yt-video-attribute-view-model__metadata",(H["yt-video-attribute-view-model--small-font"]=V.sizeSmall,H)),role:"link"};H=_.Y("h1",{class:"yt-video-attribute-view-model__title"},l.title);I=l.subtitle?_.Y("h4",{class:"yt-video-attribute-view-model__subtitle"},I?_.Y(RQc,{text:QTJ(l.subtitle),truncationText:QTJ(l.subtitleTruncationText),maxLines:2}):_.Y("span",null,l.subtitle)):null;if(l.secondarySubtitle){var T=
l.secondarySubtitle;if(T!=null&&T.attachmentRuns){for(var x=[],n=_.U(T.attachmentRuns),w=n.next();!w.done;w=n.next())w=w.value,w.element&&x.push(Object.assign({},w,{element:Object.assign({},w.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));T=Object.assign({},T,{attachmentRuns:x})}T=_.Y("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.Y(_.Ni,{text:T}))}else T=null;return _.Y("div",V,H,I,T,l.buttonViewModel?
MIN(l.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
pLf=function(V){var l={};l=_.l8("video-summary-content-view-model-wiz",V.className,(l["video-summary-content-view-model-wiz--is-search"]=!!V.isSearch,l));var I=_.y(V.data.likeButtonViewModel,DPg),H=_.y(V.data.dislikeButtonViewModel,Z4N),T=zY(function(){var x=[],n,w=(n=V.data)==null?void 0:n.paragraphs;if(w==null||!w.length)return[];for(n=0;n<w.length;n++){var N=_.y(w[n],sTw),L=void 0;n>0&&(L=_.y(w[n-1],sTw));L&&!!L.marker===!!N.marker?x[x.length-1].paragraphs.push(N):x.push({isList:!!N.marker,paragraphs:[N]})}return x},
[V.data]);
return _.Y("video-summary-content-view-model",{class:l},T.map(function(x){return x.isList?_.Y("ul",{class:"video-summary-content-view-model-wiz__list"},x.paragraphs.map(function(n){return _.Y("li",{class:"video-summary-content-view-model-wiz__list-item"},_.Y(_.Ni,{text:n.text}))})):x.paragraphs.map(function(n){return _.Y("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.Y(_.Ni,{text:n.text}))})}),_.uO(!!I&&!!H,function(){return _.Y("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.Y("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.Y(PoJ,{data:I,
disableIconAnimation:!0})),_.Y(o5t,{data:H}))}))};
_.Hl=function(V,l,I,H,T){H=H===void 0?{}:H;if(!T||Math.random()<5E-4){l=l||null;I=I||null;V=V instanceof Error?V:new _.Yd(V);if(V.args)for(var x=_.U(V.args),n=x.next();!n.done;n=x.next())n=n.value,n instanceof Object&&(H=Object.assign({},n,H));H.category="H5 Ads Control Flow";l&&(H.slot=l?"slot:  "+l.slotType:"");I&&(H.layout=I?"layout:  "+I.layoutType:"",H.layoutId=I.layoutId);T&&(H.known_error_aggressively_sampled=!0);V.args=[H];_.hF(V)}};
_.Ahf=function(V,l){_.xB(V,"yt-open-popup-action",[_.CW(l),V])};
vxN=function(V){if(!V)return"";if(u9c[V])return u9c[V];TK||(TK=_.jk("A"));TK.href!==V&&bY(TK,V);var l=TK.pathname;u9c[V]=l.startsWith("/")?l:"/"+l;return u9c[V]};
Oo1=function(){var V=vxN(window.location.href);if(V==="/")return"home";if(V.startsWith("/results"))return"search";if(V.startsWith("/watch"))return"watch";if(V.startsWith("/shorts"))return"shorts";if(V.startsWith("/hashtag"))return"hashtag";if(V.startsWith("/create_channel"))return"create_channel";if(V.startsWith("/@")||V.startsWith("/user/")||V.startsWith("/channel/"))return"channel";if(V.startsWith("/experiments"))return"experiments";if(V.startsWith("/sponsor_channel"))return"sponsorship";if(V.startsWith("/select_site"))return"settings";
if(V.startsWith("/locate"))return"locate";if(V.startsWith("/redeem"))return"redeem";if(V.startsWith("/musicpremium")||V.startsWith("/premium")||V.startsWith("/red"))return"premium";if(V.startsWith("/paid_memberships"))return"paid_memberships";if(V.startsWith("/oops"))return"oops";if(V.startsWith("/clip"))return"clip";var l;return(Bl==null?void 0:(l=Bl.response)==null?void 0:l.page)==="404"?"404":V.startsWith("/feed/history")?"history":V.startsWith("/feed/library")?"library":V.startsWith("/feed/subscriptions")?
"subscriptions":V.startsWith("/feed/trending")?"trending":V.startsWith("/feed/news_destination")?"news":V.startsWith("/playlist")?"playlist":V.startsWith("/minor_moment")?"minor_moment":V.startsWith("/playable/")||V.match("^/playables/(?!saved).")?"mini_app":V.startsWith("/playables")?"playables":V.startsWith("/create/live/join")?"open_in_app":V.startsWith("/feed/explore")?"explore":"browse"};
_.gxK=function(){var V=Bl==null?void 0:Bl.response,l=V==null?void 0:V.endpoint;if(!l)return(V==null?void 0:V.page)==="watch"?"watch":Oo1();var I;V=(I=_.y(l==null?void 0:l.commandMetadata,_.mK))==null?void 0:I.webPageType;I=!1;if(V&&!CXJ.includes(V))switch(V){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 H;return((H=_.y(l==null?void 0:l.commandMetadata,_.mK))==null?0:H.url)&&vxN(_.y(l.commandMetadata,_.mK).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var T;return(l=(T=_.y(l,_.$V))==null?void 0:T.browseId)?aOg[l]||"browse":"browse";default:I=!0}if(_.y(l,_.x9)||_.y(l,fOT))return"sponsorship";T=vxN(window.location.href);if(T.startsWith("/experiments"))return"experiments";if(T.startsWith("/create_channel"))return"create_channel";
if(_.y(l,_.cF)&&T.startsWith("/shorts"))return"shorts";if(_.y(l,_.cF)&&T.startsWith("/watch"))return"watch";I&&(l=new _.Yd("Unsupported mWeb page type",{pathname:T,webPageType:V}),_.Gr(l));return"browse"};
Trt=function(V){var l=V.data;var I=V.inlineMetadata;var H=V.aspectRatio;var T=V.scrimStyle;var x=V.useDefaultStyle;var n=V.className;var w=t6(new m5f);V=_.z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";V=x?V==="SHORTS_LOCKUP_STYLE_SLIM":l.style==="SHORTS_LOCKUP_STYLE_SLIM";I=I||V||!1;T=T!==void 0?T:1;var N=_.sZ(function(Z){w.value&&(w.value.hostElement=Z,D())});
_.gT(N,{visibilityCallback:function(Z){Z&&l.onFirstVisible&&_.EI(l.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});n=_.l8("shortsLockupViewModelHost",n);var L=_.GG({elementsCommand:l.onTap}),e=_.sZ();_.xjf(e,_.to(l.onTap));var k=_.Bu(function(Z){if(L==null?0:L.onclick)L.onclick(Z);return!1}),X=_.sZ(),r=[];
r.push("shortsLockupViewModelHostThumbnailContainer");H===1?r.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):H===2&&r.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");V||r.push("shortsLockupViewModelHostThumbnailContainerRounded");_.z("web_shorts_2_by_3_lockups_study")||_.z("desktop_search_enable_two_by_three_shorts_aspect_ratio")||r.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var E,D=function(){if(w.value){var Z;(Z=E)==null||
UJ(Z);Z=w.value;var S;Z.hostElement&&((S=Z.data)==null?0:S.inlinePlayerData)&&(E=a6({mediaRenderer:Z,lockupElement:Z.hostElement,thumbnailElement:X.value,videoPreviewOpts:iot}))}};
FW(function(){w.value&&(w.value.data=l,D())},[l]);
return _.Y("ytm-shorts-lockup-view-model",{el:N,class:n},_.Y("a",{el:e,"on:click":k,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!I,tabindex:I?0:-1},_.Y("div",{el:X,class:r.join(" ")},_.uO(l.thumbnail,function(){return _.Y(_.CN,null,_.Y(_.cX,{data:l.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),I?_.Y(Vwt,{data:l,
scrimStyle:T,useDefaultStyle:x}):null,l7W(l.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),I&&l.menuOnTap?_.Y(I7T,{data:l,inlineMetadata:I}):null,I?null:_.Y(HLt,{useDefaultStyle:x,data:l}))};
Vwt=function(V){var l=V.data;var I=V.scrimStyle;var H=V.useDefaultStyle;var T=_.z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";V=H&&_.z("web_hide_primary_text_for_pivot_panel");var x={};H=_.l8("shortsLockupViewModelHostInlineMetadata",(x.shortsLockupViewModelHostMetadataRounded=!(H?T==="SHORTS_LOCKUP_STYLE_SLIM":l.style==="SHORTS_LOCKUP_STYLE_SLIM"),x.shortsLockupViewModelHostInlineMetadataShortScrim=I===3&&!_.z("enable_shorts_lockup_new_scrim"),
x.shortsLockupViewModelHostInlineMetadataShortScrimNew=I===3&&_.z("enable_shorts_lockup_new_scrim"),x.shortsLockupViewModelHostInlineMetadataMediumScrim=I===2||I===4,x.shortsLockupViewModelHostShowOverPlayer=!0,x));var n,w;T={};return _.Y("div",{class:H+" image-overlay-text"},_.Y("h3",{class:_.ii("shortsLockupViewModelHostMetadataTitle",(T.shortsLockupViewModelHostMetadataTitleTextShadow=I===4,T)),"aria-label":l.accessibilityText},_.uO(((n=l.overlayMetadata)==null?void 0:n.primaryText)&&!V,function(){return _.Y(_.Ni,
{text:l.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((w=l.overlayMetadata)==null?0:w.secondaryText)?_.Y(BrJ,{data:l,
scrimStyle:I}):null)};
HLt=function(V){var l=V.data;var I=_.z("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";V=(V.useDefaultStyle?I==="SHORTS_LOCKUP_STYLE_SLIM":l.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var H=_.GG({elementsCommand:l.onTap});I=_.sZ();_.xjf(I,_.to(l.onTap));var T=_.Bu(function(k){if(H==null?0:H.onclick)H.onclick(k);return!1}),x,n,
w,N,L,e={};
return _.Y("div",{class:V+" image-overlay-text","on:click":T},_.Y("h3",{class:_.ii("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(e.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((x=l.overlayMetadata)==null?0:(n=x.primaryText)==null?0:n.content),e)),"aria-label":l.accessibilityText},_.Y("a",{el:I,"on:click":T,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(w=l.overlayMetadata)==null?void 0:(N=w.primaryText)==
null?void 0:N.content},_.uO(l.overlayMetadata,function(){return _.Y(_.Ni,{text:l.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((L=l.overlayMetadata)==null?0:L.secondaryText)?_.Y(BrJ,{data:l,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,l.menuOnTap?_.Y(I7T,{data:l,inlineMetadata:!1}):null)};
BrJ=function(V){var l=V.data;var I=V.scrimStyle;V=V.className;var H,T={};return _.Y("div",{class:_.ii((T.shortsLockupViewModelHostMetadataSubhead=I!==4,T.shortsLockupViewModelHostMetadataSubheadNew=_.z("enable_shorts_lockup_new_scrim"),T.shortsLockupViewModelHostMetadataSubheadTextShadow=I===4,T),V),"aria-hidden":"true"},_.Y(_.Ni,{text:(H=l.overlayMetadata)==null?void 0:H.secondaryText,noStyleRuns:!0}))};
I7T=function(V){var l={};l=_.l8((l.shortsLockupViewModelHostInlineMetadataMenu=V.inlineMetadata,l.shortsLockupViewModelHostOutsideMetadataMenu=!V.inlineMetadata,l.shortsLockupViewModelHostShowOverPlayer=!0,l));return _.Y("div",{class:l},_.Y(IJ,{data:{style:V.inlineMetadata?"overlay":"mono",accessibilityLabel:V.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(I){I.preventDefault();I.stopPropagation();var H=_.GG({elementsCommand:V.data.menuOnTap,forceNewState:!0});
if(H==null?0:H.onclick)H.onclick(I)}},
iconName:"MORE_VERT"}))};
nv=function(V,l,I,H){return V&&l?V!==I||l!==H?(_.Hl(Error("Jh"),void 0,void 0,{"stored-slot":V,"stored-layout":l,"latest-slot":I,"latest-layout":H}),!1):!0:!1};
xpt=function(V,l,I){return V({targetId:l},function(H){return I.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},H,{header:I.continuationItems?I.continuationItems[0]:void 0}):Object.assign({},H,{contents:I.continuationItems?I.continuationItems:[]})})};
Upy=function(V,l,I,H){if(l=l.trackingParams){var T,x=(T=I.getScreenLayer)==null?void 0:T.call(I);I=_.oa(x);T=_.JO(x);if(I&&T){var n=_.dj(l);_.z("combine_ve_grafts")?V.graftServerVe(l,T,x):_.MJ(I,T,n);H==null||H(n)}}};
$pN=function(V){var l;return((l=naf.get(V))==null?void 0:l.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
NrJ=function(V,l){var I={type:l.slotType,controlFlowManagerLayer:dpf.get(l.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};l.slotEntryTrigger&&(I.entryTriggerType=l.slotEntryTrigger.triggerType);l.slotPhysicalPosition!==1&&(I.slotPhysicalPosition=l.slotPhysicalPosition);if(V){I.debugData={slotId:l.slotId};if(V=l.slotEntryTrigger)I.debugData.slotEntryTriggerData=wDq(V);V=l.slotFulfillmentTriggers;I.debugData.fulfillmentTriggerData=[];V=_.U(V);for(var H=V.next();!H.done;H=V.next())I.debugData.fulfillmentTriggerData.push(wDq(H.value));
l=l.slotExpirationTriggers;I.debugData.expirationTriggerData=[];l=_.U(l);for(V=l.next();!V.done;V=l.next())I.debugData.expirationTriggerData.push(wDq(V.value))}return I};
wDq=function(V,l){var I={type:V.triggerType};l!=null&&(I.category=l);V.triggeringSlotId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedSlotId=V.triggeringSlotId);V.triggeringLayoutId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedLayoutId=V.triggeringLayoutId);return I};
Krw=function(V,l,I,H){l={opportunityType:l};V&&(H||I)&&(H=_.JH(H||[],function(T){return NrJ(V,T)}),l.debugData=Object.assign({},I&&I.length>0?{associatedSlotId:I}:{},H.length>0?{slots:H}:{}));
return l};
jc1=function(V){return $9(V.opportunityAdapterMap).concat($9(V.triggerAdapterMap)).concat($9(V.fulfillmentAdapterFactoryMap)).concat($9(V.slotAdapterFactoryMap)).concat($9(V.layoutRenderingAdapterFactoryMap))};
$9=function(V){var l=[];V=_.U(V.values());for(var I=V.next();!I.done;I=V.next())I=I.value,I.isAdsControlFlowEventListener&&l.push(I);return l};
wv=function(V){var l=V.slotId,I=V.slotType,H=V.slotPhysicalPosition;return l===void 0?new dv("Cannot construct a slot due to the missing id.",{adSlotMetadata:V}):I===void 0?new dv("Cannot construct a slot due to the missing type.",{adSlotMetadata:V}):H===void 0?new dv("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:V}):{slotId:l,slotType:I,slotPhysicalPosition:H,managerLayer:"external",adSlotLoggingData:V.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new Yyq}};
Lrg=function(V){var l=V.layoutId,I=V.layoutType;return l===void 0?new NZ("Cannot construct a layout due to the missing id.",{adLayoutMetadata:V}):I===void 0?new NZ("Cannot construct a layout due to the missing type.",{adLayoutMetadata:V}):{layoutId:l,layoutType:I,managerLayer:"external",adLayoutLoggingData:V.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new Yyq,interactionLoggingAdsClientData:{}}};
eAy=function(V){if((V=V.value)&&V.querySelector("img")){var l=V.querySelector("img");l.addEventListener("error",function(){dL1(l.src).then(function(I){(I=RO(I).toString())?l.src=I:l.removeAttribute("src")}).catch(function(){l.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
jn=function(V,l){if(l&&(kz1(l.viewableCommand)||kz1(l.endOfSessionCommand))){V=V.value;var I=Frt(l==null?void 0:l.viewableCommand);l=Frt(l==null?void 0:l.endOfSessionCommand);if(!Kv){var H=_.h6("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);Kv=new XDq((H==null?void 0:H.length)===2?H[1]:null)}zAT(Kv,V);ySJ(Kv,V,I,l)}};
Y9=function(V){Kv&&zAT(Kv,V.value)};
kz1=function(V){V=_.to(V);return!(V==null||!V.loggingUrls)&&V.loggingUrls.length>0};
Frt=function(V){if(!V)return[];var l=[],I,H;((H=(I=_.to(V))==null?void 0:I.loggingUrls)!=null?H:[]).forEach(function(T){T.baseUrl&&l.push(T.baseUrl)});
return l};
twt=function(V){return V.shorts.isDesktopSmallWidth};
_.rSJ=function(V){return V.shorts.isWatchWhileMode};
_.Lv=function(V){return V.shorts.isFullscreen};
_.en=function(V){return V.shorts.isShortsPipActive};
EaK=function(V){var l,I;if(V=(l=_.y(V.reelsAdCardButtoned,GzJ))==null?void 0:(I=l.animatedRenderingConfig)==null?void 0:I.easeOutSeconds)return V+"s"};
oaK=function(V,l,I){return _.d(function(H){return H.return(new Promise(function(T){var x=new Image;x.onload=function(){T(new JSW(V,l,I,x.naturalWidth,x.naturalHeight))};
x.src=I.toString()}))})};
hAq=function(V,l){return Math.round(V/1E-5)===Math.round(l/1E-5)};
PaN=function(V,l){return Math.round(V/1E-5)===Math.round(l/1E-5)};
Dpw=function(V,l){return V.year===l.year&&V.month===l.month&&V.day===l.day};
ZLW=function(V,l){return V.year!==l.year?V.year<l.year:V.month!==l.month?V.month<l.month:V.day<l.day};
RA3=function(V){return V.day===SyW(V.year,V.month)?V.month===11?{year:V.year+1,month:0,day:1}:{year:V.year,month:V.month+1,day:1}:{year:V.year,month:V.month,day:V.day+1}};
Qcw=function(){var V=new Date,l={year:V.getFullYear(),month:V.getMonth(),day:V.getDate()};return{start:l,end:{year:V.getFullYear()+2,month:V.getMonth(),day:V.getDate()},selectedDate:RA3(l)}};
cST=function(V){return(new Mr(2)).format(new Date(V.year,V.month,V.day))};
WrJ=function(V){return{year:V.getFullYear(),month:V.getMonth(),day:V.getDate()}};
bL3=function(V,l){V=(V+(Number(l.utcOffsetSec)+(new Date(V*1E3)).getTimezoneOffset()*60))*1E3;l=WrJ(new Date(V));return{date:l,secondsSinceMidnight:Math.floor((V-(new Date(l.year,l.month,l.day)).getTime())/1E3)}};
qyf=function(V,l){l=l.months.findIndex(function(I){return I.year===V.year&&I.month===V.month});
return l>=0?l:void 0};
MwJ=function(V){if(!V)return!1;try{if(V.host&&V.host.tagName==="YT-FORMATTED-STRING"&&V.host.id==="contenteditable-textarea"||V.nodeType===Node.ELEMENT_NODE&&V.tagName==="YTD-COMMENTBOX")return!0}catch(l){return!1}return MwJ(V.parentNode)};
k9=function(V){return V?!(V.tagName!=="A"||!V.href||!V.classList.contains("yt-simple-endpoint")):!1};
scf=function(V){return V?V.tagName==="IMG"&&V.classList.contains("emoji"):!1};
pDf=function(V,l,I){if(!V)return null;var H=k9(V);if(H&&I)return l=V.pathname.substring(V.pathname.indexOf("/channel/")+9),document.createTextNode("@"+l);if(H&&!I)return document.createTextNode("");if(scf(V))return I=V.alt,V=V.dataset.emojiId,!V&&l&&(l=_.Fx(l,I))&&l.isCustomEmoji&&(V=l.emojiId),V?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+V+">"):document.createTextNode(I);H=V.cloneNode(!1);for(var T=0;T<V.childNodes.length;++T){var x=pDf(V.childNodes[T],l,I);x&&H.appendChild(x)}return H};
Xx=function(V){return V?k9(V)?V:Xx(V.lastChild):null};
ASN=function(V){return V?k9(V)?V:ASN(V.firstChild):null};
uwt=function(V){if(!V)return null;for(var l=V.previousSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.previousSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.previousSibling;else break;(l=Xx(l))?V=l:V=(V=V.parentNode)?Xx(V.previousElementSibling):null;return V};
vaT=function(V){if(!V)return null;for(var l=V.nextSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.nextSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.nextSibling;else break;return(l=ASN(l))?l:vaT(V.parentNode)};
OLK=function(V){var l=_.zK(),I=l.JSC$9102_getStartNode();if(!MwJ(I.parentNode))return null;l=l.JSC$9102_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var H=_.Rg(I,k9);if(H){if(V&&l===0||!V&&l===I.length)return H}else{if(V&&l===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.yO(I.nextElementSibling,"display")==="block"?null:ASN(I.nextElementSibling);if(!V&&l===0)return I?Xx(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(V){if(0<=l&&l<I.childNodes.length)return ASN(I.childNodes[l])}else if(0<
l&&l<=I.childNodes.length)return Xx(I.childNodes[l-1]);return null};
Cac=function(V,l,I){if(!V)return null;if(V.nodeType===Node.TEXT_NODE)if(I){var H=uwt(V);if(H&&!/^\s+\S/.test(V.wholeText.substr(0,l)))return H}else if((H=vaT(V))&&!/\S\s+/.test(V.wholeText.substr(l,V.wholeText.length)))return H;return V.nodeType===Node.ELEMENT_NODE?I?uwt(V.childNodes[l]):vaT(V.childNodes[l]):Cac(V.parentNode,l,I)};
a7K=function(V){if(V.hasChildNodes())switch(V.tagName){case "DIV":case "A":case "SPAN":var l="";for(V=V.firstChild;V;V=V.nextSibling)l+=a7K(V);return l;default:return""}else switch(V.nodeType){case 3:return V.textContent;default:return""}};
ty=function(V,l){return V.year===l.year&&V.month===l.month&&V.day===l.day};
rv=function(V,l){return V.year!==l.year?V.year<l.year:V.month!==l.month?V.month<l.month:V.day<l.day};
f7N=function(V){return{year:V.getFullYear(),month:V.getMonth(),day:V.getDate()}};
gaT=function(V){var l=Hb3;l=l===void 0?Hb3:l;l(new Date(V.year,V.month,V.day))};
GK=function(V){return f7N(new Date(Number(V.seconds)*1E3))};
mpf=function(V){return V.year!==void 0&&V.month!==void 0&&V.day!==void 0};
iLN=function(V){return V.start!==void 0&&V.end!==void 0};
VjK=function(V){return iLN(V)?V.start:V};
lIw=function(V){return iLN(V)?V.end:void 0};
HfN=function(V,l){for(var I=[],H=new Date(V.start.year,V.start.month);H.getFullYear()<V.end.year||H.getFullYear()===V.end.year&&H.getMonth()<=V.end.month;){var T=I,x=T.push,n=H.getFullYear(),w=H.getMonth(),N=V,L=l,e=void 0,k=[],X=Object.freeze({extraCssClass:"invisible"}),r=new Date(n,w),E=f7N(r);r=r.getDay();for(var D=f7N(new Date);E.month===w;){r!==IIw&&e||(e=Array.from({length:7}).fill(X),k.push(e));var Z={date:{year:n,month:w,day:E.day},extraCssClass:"",debugClass:""};Z.extraCssClass=L(Z.date,
E,D,N).trim();e[(r-IIw+7)%7]=Z;E=E.day===SyW(E.year,E.month)?E.month===11?{year:E.year+1,month:0,day:1}:{year:E.year,month:E.month+1,day:1}:{year:E.year,month:E.month,day:E.day+1};r=(r+1)%7}x.call(T,{weeks:k,monthLabel:EJ.SHORTMONTHS[w]+" "+n,year:n,month:w,monthLabelExtraCssClass:k[0][2]===X?"shift-down-label":""});H.setMonth(H.getMonth()+1)}return I};
TCW=function(V,l){l=l.months.findIndex(function(I){return I.year===V.year&&I.month===V.month});
return l>=0?l:void 0};
xFN=function(V,l){a:{var I=I===void 0?[2,3]:I;I=_.U(I);for(var H=I.next();!H.done;H=I.next()){var T=new Date;if((new BCg(H.value)).parse(l,T,{validate:!0})){T.setHours(0,0,0,0);l=T;break a}}l=null}if(!l)return{isValid:!1,value:void 0};l=f7N(l);I=V.end;return rv(l,V.start)||rv(I,l)?{isValid:!1,value:void 0}:{isValid:!0,value:l}};
woW=function(V){var l=UFJ;l=l===void 0?nMt:l;var I=V.columnsToShow||[],H=$FT(V.columnDimensions,V.columnsToShow,V.leftFloatingColumns,l);return I.map(function(T,x){var n=V.columns[T];if(n===void 0)throw Error("Ph");var w=H?H[x]:"";var N=V.getCustomTooltip?V.getCustomTooltip(T,n.headerTooltipParagraphs):n.headerTooltipParagraphs;var L=dFf(V,T);return{type:T,index:x,style:w,classes:L,headerName:n.headerName||"",headerIcon:n.headerIcon,headerTooltipParagraphs:N||[],headerTooltipHelpContext:n.headerTooltipHelpContext,
sortOrders:n.sortOrders||[],selectionState:n.isSelectionCheckbox?V.selectionState:void 0}})};
dFf=function(V,l){var I=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],H=V.columns[l];if(H===void 0)return"";var T=I.includes("DEFAULTS")&&H.cssClass?[H.cssClass]:[];if(I.includes("SORTING")){H.sortOrders&&H.sortOrders.length&&T.push("sortable");if(V.sorting&&V.sorting.columnType===l)a:switch(V.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var x="column-sorted";break a;default:x=""}else x="";x&&T.push(x)}I.includes("FLOATING")&&(l=V.columnsToShow.indexOf(l),V.leftFloatingColumns&&l<V.leftFloatingColumns&&
T.push("floating-column"),V.leftFloatingColumns&&l===V.leftFloatingColumns-1&&T.push("last-floating-column"));I.includes("RIGHT_ALIGN")&&H.rightAlignHeader&&T.push("right-align");return T.filter(function(n){return n}).join(" ")};
$FT=function(V,l,I,H){I=I===void 0?0:I;H=H===void 0?nMt:H;if(V){var T=[],x=0;NCK(V,l,H).forEach(function(n,w){var N="min-width:"+n.minWidth+"px;padding-left:"+n.paddingLeft+"px;padding-right:"+n.paddingRight+"px;flex:"+n.flexGrow+" 0 "+n.minWidth+"px;";n.maxWidth!==Infinity&&(N=[N,"max-width:"+n.maxWidth+"px;"].join(""));x>0&&w<I&&(N=[N,"left:"+x+"px;"].join(""));T.push(N);x+=n.minWidth+n.paddingLeft+n.paddingRight});
return T}};
NCK=function(V,l,I){I=I===void 0?nMt:I;return l.map(function(H,T){H=V&&V[H]||{};var x=T===0?I.paddingLeftFirstColumn:I.padding;H.paddingLeft!==void 0&&(x=H.paddingLeft);T=T===l.length-1?I.paddingRightLastColumn:I.padding;H.paddingRight!==void 0&&(T=H.paddingRight);return{paddingLeft:x,paddingRight:T,minWidth:H.minWidth!==void 0?H.minWidth:I.minWidth,maxWidth:H.maxWidth!==void 0?H.maxWidth:I.maxWidth,flexGrow:H.flexGrow!==void 0?H.flexGrow:I.flexGrow}})};
KPt=function(V){var l=V.reduce(function(H,T){var x=T.columnId,n={};T.headerText&&(n.headerName=_.A5(T.headerText));T.rightAlignHeader&&(n.rightAlignHeader=T.rightAlignHeader);var w;if((w=T.headerIcon)==null?0:w.iconType)n.headerIcon=_.mj(T.headerIcon.iconType);H[x]=n;return H},{}),I=V.filter(function(H){return!H.hideColumn}).map(function(H){return H.columnId});
V=V.filter(function(H){return!!H.dimensions}).reduce(function(H,T){H[T.columnId]=T.dimensions;
return H},{});
return{columns:l,columnsToShow:I,columnDimensions:V}};
_.j3W=function(V){return V?V.simpleText?V.simpleText:V.runs?V.runs.map(function(l){return l.text}).join(""):"":""};
FPy=function(V){var l=V.data;var I=V.onTap;var H=V.isSelected;var T=V.onFocusIn;if(!l)return{};V=Ye1(l);H===void 0&&(H=l==null?void 0:l.isSelected);var x;return{text:LPy(l,V),startIcon:(x=l.icon)==null?void 0:x.iconType,state:H?0:2,type:0,onTap:eFc(l,I),accessibilityLabel:kvt(l,V),onFocusIn:function(){return T==null?void 0:T()}}};
LPy=function(V,l){if(!l)return V.text?_.j3W(V.text):void 0};
eFc=function(V,l){return function(I){l==null||l(I,V)}};
Ye1=function(V){V=V.style&&V.style.styleType;return!Xow&&V==="STYLE_EXPLORE_LAUNCHER_CHIP"};
kvt=function(V,l){if(l){var I,H,T;return(T=(I=V.accessibilityData)==null?void 0:(H=I.accessibilityData)==null?void 0:H.label)!=null?T:LPy(V,!1)}};
Jy=function(V){return{signalAction:{signal:V}}};
tjc=function(){return _.h6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?zF1:_.ypw};
rpK=function(V,l){V=V===void 0?"SOFT_RELOAD_PAGE":V;l=l===void 0?49504:l;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.iJ(_.LT("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:l}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:V}}]}}}};
Gvc=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.iJ(_.LT("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:tjc()}};
EMt=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.iJ(_.LT("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:tjc()}};
Jpc=function(V,l){var I=_.iJ(_.LT("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),H=_.iJ(_.LT("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),T={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.iJ(_.LT("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};T.serviceEndpoint=V?V:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Jy("SOFT_RELOAD_PAGE")]}};return{title:I,bodyText:H,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:T},
style:{value:l!=null?l:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
hFf=function(V){V=V===void 0?{}:V;return{title:_.iJ(V.localizedZeroStateTitleText===void 0?"":V.localizedZeroStateTitleText),bodyText:_.iJ(V.localizedZeroStateMessage===void 0?"":V.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iJ(V.localizedZeroStateButtonText===void 0?"":V.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[oMJ]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.Zft=function(V,l,I,H,T,x,n,w){H=H===void 0?!1:H;T=T===void 0?!1:T;x=x===void 0?0:x;n=n===void 0?-Infinity:n;w=w===void 0?!1:w;var N=[],L=_.iJ(_.LT("SMART_DOWNLOADS",void 0,"Smart downloads"));n=_.iJ(PHf(x,n,V.length));x=void 0;H?(V.length>0?I=DFN(V,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.z("kevlar_manual_downloads_above"),L,n):w?(x={content:I.localizedOptInBannerTitleText===void 0?"":I.localizedOptInBannerTitleText},I={content:I.localizedPromptMessage===void 0?"":I.localizedPromptMessage},
T={buttonViewModel:{title:_.LT("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.LT("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:_.ksq}]}}}}},
I={alertBannerViewModel:{heading:x,body:I,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:T,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}):I={backgroundPromoRenderer:{bodyText:_.iJ(_.LT("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=I):T&&(x={content:I.localizedOptInBannerTitleText===
void 0?"":I.localizedOptInBannerTitleText},I={content:I.localizedOptInMessage===void 0?"":I.localizedOptInMessage},T={buttonViewModel:{title:_.LT("TURN_ON",void 0,"Turn on"),accessibilityText:_.LT("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}}}}},x={alertBannerViewModel:{heading:x,body:I,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:T,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});I=_.iJ(_.LT("YOUR_DOWNLOADS",void 0,"Your downloads"));T=void 0;l.length>0?(T=void 0,_.z("kevlar_display_downloads_numbers")&&(T=_.iJ(_.e1("VIDEO_COUNT",l.length))),T=DFN(l,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,I,T)):H||V.length||(T={backgroundPromoRenderer:{bodyText:_.iJ(_.LT("VIDEOS_WILL_APPEAR_HERE",
void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});x&&!_.z("kevlar_manual_downloads_above")&&N.push({richSectionRenderer:{content:x,loggingDirectives:{clientVeSpec:{uiType:139572}}}});T&&N.push({richSectionRenderer:{content:T,loggingDirectives:{clientVeSpec:{uiType:51721}}}});x&&_.z("kevlar_manual_downloads_above")&&
N.push({richSectionRenderer:{content:x,loggingDirectives:{clientVeSpec:{uiType:139572}}}});if(l.length>0||H&&V.length>0)V=N.push,l={richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.iJ(_.LT("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}}}}}},V.call(N,l);return{contents:N}};
_.RFt=function(V){return Seg(V,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Q3g=function(V){return Seg(V,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Seg=function(V,l){var I=[];V=DFN(V,l,!0);I.push({richSectionRenderer:{content:V}});return{contents:I}};
DFN=function(V,l,I,H,T){I=I===void 0?!1:I;V={isExpanded:I,contents:oJ(V),entitySelectorType:l};H&&(V.title=H);T&&(V.subtitle=T);I||(_.z("kevlar_smart_downloads_show_more_button")?(I={buttonRenderer:{accessibility:{label:_.LT("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.iJ(_.LT("SHOW_MORE",void 0,"Show more"))}},V.showMoreButton=I,I={buttonRenderer:{accessibility:{label:_.LT("SHOW_LESS",void 0,
"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.iJ(_.LT("SHOW_LESS",void 0,"Show less"))}},V.showLessButton=I):(I={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.LT("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}}}},V.previousButton=I,I=
{buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.LT("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}}}},V.nextButton=I,I={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.LT("VIEW_ALL",void 0,"View all"),accessibilityText:_.LT("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:g6("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}},V.menu=I));return{richShelfRenderer:V}};
oJ=function(V){var l=[];V=_.U(V);for(var I=V.next();!I.done;I=V.next())if(I=I.value,Vlc(I)){var H=l,T=H.push;var x=void 0;if(I==null?0:(x=I.videoEntity)==null?0:x.videoId){x=RA(_.v4().getState(),I.videoEntity.videoId);var n=_.v4().getState();var w=_.Ul(I.videoEntity.videoId,"mainVideoEntity");n=!!_.t5(n.entities)[w];n={videoId:I.videoEntity.videoId,title:VH(I.videoEntity.title),shortBylineText:VH(I.channelEntity.title),thumbnail:I.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:n&&_.z("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:PWg(I.videoEntity.videoId,x,I.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.LT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};I.videoEntity.lengthSeconds&&(n.thumbnailOverlays=yM3(I.videoEntity.lengthSeconds,x));n.isWatched=x>0;_.z("kevlar_modern_downloads_page")&&(n.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:I.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.LT("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},n.badges=void 0);I=n}else I={};T.call(H,{richItemRenderer:{content:{videoRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(i71(I)){H=l;T=H.push;var N=w=x=void 0,L=void 0,e=void 0,k=void 0,X=void 0,r=void 0,E=void 0,D=void 0,Z=void 0,S=void 0;n=I.mainPlaylistEntity.playlistId;var p=I==null?void 0:(S=I.mainPlaylistEntity)==null?void 0:(Z=S.thumbnailStyleData)==null?void 0:(D=Z[0])==null?void 0:(E=D.value)==null?void 0:(r=E.collageThumbnail)==
null?void 0:r.coverThumbnail;if(n&&p){r=DhN(n);!_.z("enable_offline_playlist_page")&&(I==null?0:(X=I.mainPlaylistEntity)==null?0:X.videos)&&(X=I==null?void 0:(k=I.mainPlaylistEntity)==null?void 0:(e=k.videos)==null?void 0:e[0],e=_.TV(X).entityId,e=JSON.parse(e).videoId,e!==void 0&&(k=RA(_.v4().getState(),e),r=_.mp(e,n,void 0,void 0,k)));e=[];if(I==null?0:(L=I.mainPlaylistEntity)==null?0:(N=L.videos)==null?0:N.length)e=[IXg(),Object.assign({},(w=lXW(I==null?void 0:I.mainPlaylistEntity.videos.length))!=
null?w:{})];I={playlistId:n,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:p}},navigationEndpoint:r,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:e,title:VH(I.mainPlaylistEntity.title),shortBylineText:VH(I==null?void 0:(x=I.channelEntity)==null?void 0:x.title),badges:[{metadataBadgeRenderer:{label:_.LT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.z("kevlar_modern_downloads_page")&&(I.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:cpK,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:n,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.LT("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},I.badges=void 0)}else I=void 0;T.call(H,{richItemRenderer:{content:{playlistRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return l};
PHf=function(V,l,I){V=V?WP1(V):"";l!==void 0&&isFinite(l)?l===0?l=_.LT("UPDATING",void 0,"Updating..."):(l=zlW(new Date(l),new Date),l=_.LT("UPDATED_TIME",{relative_time:l},"Updated "+l)):l="";var H="";V&&l&&(H=" \u2022 ");if(I&&_.z("kevlar_display_downloads_numbers")){I=_.e1("VIDEO_COUNT",I);if(V||l)H=" \u2022 ";return I+H+V+H+l}return V+H+l};
bfN=function(V){return ue1(V.entities).length};
_.qeq=function(V,l){var I=uqK(V.responsiveSize),H;V=!((H=V.responsiveMap)==null||!H.some(function(T){return T.containerSize==="CONTAINER_SIZE_NARROW"&&T.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:l,sizing:I,enableFullBleedForSingleCol:!1,isCompactList:I==="COMPACT"&&V}};
Mjy=function(V,l){return _.nW(V.entities,"votingEntity",l)};
s3K=function(V){if(V){var l;return((l=_.F().resolve(_.Cs(_.DA)))==null?0:l())?V.darkTheme:V.lightTheme}};
poq=function(V,l,I){return _.Y(_.CN,null,iAt(I,[[0,function(){return _.Y("h2",{class:l},V)}],
[1,function(){return _.Y("h3",{class:l},V)}],
[2,function(){return _.Y("h4",{class:l},V)}]],function(){return _.Y("h2",{class:l},V)}))};
Apf=function(V){var l=["shelf-header-layout-wiz"];V.disableHorizontalPadding&&l.push("shelf-header-layout-wiz--disable-horizontal-padding");V.disableVerticalPadding&&l.push("shelf-header-layout-wiz--disable-vertical-padding");V.useResponsiveLayout&&(l.push("shelf-header-layout-wiz--responsive"),V.forceSmallLayout&&l.push("shelf-header-layout-wiz--narrow"));V.isOverlay&&l.push("shelf-header-layout-wiz--is-overlay");V.onClick&&l.push("shelf-header-layout-wiz--tappable");var I=["shelf-header-layout-wiz__title"];
V.forceSmallLayout&&I.push("shelf-header-layout-wiz__title--small-title");var H=["shelf-header-layout-wiz__leading-image"];V.circularImage&&H.push("shelf-header-layout-wiz__leading-image--circular-image");var T=_.Bu(function(x){var n;(n=V.onClick)==null||n.call(V,x)});
return _.Y("yt-shelf-header-layout",{class:l.join(" "),"on:click":T,tabindex:V.onClick?0:void 0},V.leadingIcon?_.Y("div",{class:"shelf-header-layout-wiz__leading-icon"},_.Y(_.dq,{icon:V.leadingIcon})):V.leadingImage?_.Y("div",{class:H.join(" ")},V.leadingImage()):_.Y(_.CN,null),_.Y("div",{class:"shelf-header-layout-wiz__label-container"},V.superlabel?_.Y("div",{class:"shelf-header-layout-wiz__superlabel"},V.superlabel()):_.Y(_.CN,null),_.Y("div",{class:"shelf-header-layout-wiz__title-row"},poq(V.title(),
I.join(" "),V.tagLevel),_.uO(V.detail,function(){return _.Y("div",{class:"shelf-header-layout-wiz__detail"},V.detail())})),V.sublabel?_.Y("div",{class:"shelf-header-layout-wiz__sublabel"},V.sublabel()):_.Y(_.CN,null)),V.trailingActions?_.Y("div",{class:"shelf-header-layout-wiz__trailing-actions"},V.trailingActions()):_.Y(_.CN,null))};
udy=function(V){var l=_.y(V==null?void 0:V.avatar,_.C6),I,H=(I=V==null?void 0:V.image)!=null?I:_.iP(V==null?void 0:V.themedImage);return _.Y(_.CN,null,_.uO(H,function(){return _.Y(_.cX,{data:H,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.uO(l,function(){return _.Y(_.hy,{data:l})}))};
CHJ=function(V){var l=_.y(V.bottomBadge,vM3),I=l&&V.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.Y(_.CN,null,_.uO(l,function(){return l&&_.Y(OfK,{data:l,class:I})}),_.uO(V.sublabel,function(){return _.Y(_.Ni,{text:V.sublabel})}))};
aIy=function(V){var l=_.y(V.topBadge,vM3),I=l&&V.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.Y(_.CN,null,_.uO(l,function(){return l&&_.Y(OfK,{data:l,class:I})}),_.uO(V.superlabel,function(){return _.Y(_.Ni,{text:V.superlabel})}))};
gMN=function(V){var l=V.data;var I=V.disableHorizontalPadding;var H=V.disableVerticalPadding;var T=V.forceSmallLayout;var x=V.useResponsiveLayout;V=V.isOverlay;var n=l.sublabel||l.bottomBadge,w=l.superlabel||l.topBadge,N=_.sB(l.rendererContext);I={title:function(){return _.Y(_.Ni,{text:l.headline})},
sublabel:n&&function(){return CHJ(l)},
superlabel:w&&function(){return aIy(l)},
leadingImage:l.leadingAccessory&&function(){return udy(l.leadingAccessory)},
trailingActions:l.trailingActions&&function(){return _.Y(_.CN,null,fIK(l.trailingActions))},
disableHorizontalPadding:I,disableVerticalPadding:H,forceSmallLayout:T,useResponsiveLayout:x,isOverlay:V,onClick:N?function(L){var e=_.M7(l.rendererContext);e&&_.rj(e,{form:{element:L.target,event:L}})}:void 0};
H=(H=s3K(l==null?void 0:l.backgroundColor))?"background-color: "+_.rP(H)+";":void 0;return _.Y("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:H},_.Y(Apf,Object.assign({},I)))};
mFW=function(V,l){if(V.simpleText)return Object.assign({},V,{simpleText:oN(V.simpleText,l)});if(!V.runs)return V;for(var I=Object.assign({},V,{runs:[]}),H=0,T=_.U(V.runs),x=T.next();!x.done;x=T.next())if(x=x.value,x.text)if(H+x.text.length<=l)I.runs.push(x),H+=x.text.length;else return I.runs.push(Object.assign({},x,{text:oN(x.text,l-H)})),I;return V};
if1=function(V,l){return _.nW(V.entities,"chipBarStateEntity",l)};
VF3=function(V,l){return _.nW(V.entities,"chipEntity",l)};
IDJ=function(V,l,I,H){return function(){var T=lDN.has(V.displayType)&&V.selected,x=T&&V.deselectCommand?V.deselectCommand:V.tapCommand;!x||T&&H||_.EI(x,{form:{element:l==null?void 0:l.value}});I==null||I()}};
HFy=function(V,l){return{triggeringElement:V,onDwellTriggeredFn:function(){var I={triggeringElement:V,loadVideoPreviewEventData:l},H=document.querySelector(".video-preview");H&&H.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:I}))},
onDwellEndFn:function(){var I=document.querySelector(".video-preview");I&&I.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
T5f=function(V,l){var I=_.F().resolve(_.Cs(Jsf)),H=function(){var T=l();return I&&T?HFy(V.value,T):null};
_.t0(function(){var T=H();I&&T&&Promise.resolve().then(function(){I.registerElement(T)});
_.rx(function(){I&&T&&Promise.resolve().then(function(){I.unregisterElement(T)})})})};
xHt=function(V){var l=V.dataset.resizeObserverId;if(l)return l;l=""+B53++;return V.dataset.resizeObserverId=l};
UHt=function(V,l){var I=xHt(V);Pl.has(I)||Pl.set(I,new Set);Pl.get(I).add(l);DL.has(I)&&l(Object.assign({},{target:V},DL.get(I)))};
n0N=function(V){V=_.U(V);for(var l=V.next();!l.done;l=V.next()){l=l.value;var I=xHt(l.target),H=Object.assign({},{target:l.target},DL.get(I));if(H!=null&&H.contentRect?H.contentRect.width!==l.contentRect.width||H.contentRect.height!==l.contentRect.height:1)for(DL.set(I,{borderBoxSize:l.borderBoxSize,contentBoxSize:l.contentBoxSize,contentRect:l.contentRect,devicePixelContentBoxSize:l.devicePixelContentBoxSize}),I=_.U(Pl.get(I)||[]),H=I.next();!H.done;H=I.next())H=H.value,H(l)}};
dHf=function(){return ZL?ZL:ZL=new $HK(n0N)};
wec=function(V,l){var I=xHt(V);Pl.has(I)&&(Pl.get(I).delete(l),Pl.get(I).size===0&&(Pl.delete(I),DL.delete(I),ZL.unobserve(V),delete V.dataset.resizeObserverId));Pl.size===0&&ZL&&(ZL.disconnect(),ZL=void 0)};
KAq=function(V,l){var I=_.F().resolve(fO);return N51.map(function(H){return I.observe(V,l,H)})};
jZf=function(V){var l=_.F().resolve(fO);V.forEach(function(I){l.unobserveByKey(I)})};
evK=function(V){var l=Object.assign({},YbT,{canHaveZeroSize:!1}),I=_.U(ttt()),H=I.next().value,T=I.next().value,x=function(n){var w=n.contentRect.height;if((n=n.contentRect.width)||w||l.canHaveZeroSize)H.width()===n&&H.height()===w||T(H,{height:w,width:n})};
_.XW(function(){var n=V instanceof HTMLElement?V:V.value,w=LAy(x,l.throttleMs),N=[];l.useVisibilityObserver&&(N=KAq(n,function(L,e){requestAnimationFrame(function(){e==="visible"?(UHt(n,w),dHf().observe(n)):wec(n,w)})}));
N.length||(UHt(n,w),dHf().observe(n));_.rx(function(){N.length&&(jZf(N),N.length=0);wec(n,w)})});
return H};
FAt=function(V){var l=V.data;var I=V.callback;var H=V.enableSingleChipSelection;var T=V.disableChipsScrollAnimation;var x=_.sZ();V={};V=_.U(BK(l.autoselectedChipIndex!=null?(V[l.autoselectedChipIndex]=!0,V):{}));var n=V.next().value,w=V.next().value,N=l.isHorizontallyScrollable,L=function(r){x.value!=null&&(_.h6("HTML_DIR")==="rtl"&&(r=-r),x.value.scrollBy({left:r,behavior:T?"instant":"smooth"}))},e=function(){L(-320)},k=function(){L(320)};
V={};var X={};return _.Y("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(l==null?void 0:l.title)&&_.Y("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},l.title),_.Y("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.uO(l.previousButton!=null,function(){return _.Y("div",{class:"ytChipsShelfViewModelLeftArrowContainer"},k$w(l.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:e}}))}),_.Y("div",{el:x,
class:_.ii("ytChipsShelfViewModelChipsScrollContainer",(V.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=function(){return!!N},V))},_.Y("div",{class:_.ii("ytChipsShelfViewModelChipsContainer",(X.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=function(){return!!N},X.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=function(){return!!N&&!1},X))},(l.contents||[]).map(function(r,E){return _.Y("div",{class:"ytChipsShelfViewModelChipWrapper"},k$w(r,
{chipViewModel:{callback:function(D,Z){if(H){var S={};
w((S[E]=Z,S))}else S={},w(Object.assign({},n,(S[E]=Z,S)));I==null||I(D,Z,E)},
disableDeselection:H,selected:!!n[E]}}))}))),_.uO(l.nextButton!=null,function(){return _.Y("div",{class:"ytChipsShelfViewModelRightArrowContainer"},k$w(l.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",
onClick:k}}))})))};
zvT=function(V,l,I,H,T){V=l?V.switchOffCommand:V.switchOnCommand;if(H&&T)Xef(V,I,T);else{var x,n;(x=_.GG({elementsCommand:V}))==null||(n=x.onclick)==null||n.call(x,I)}};
Xef=function(V,l,I){V=_.GG({elementsCommand:V,additionalCommandArgs:{commandController:{onSuccess:function(){I(!1)},
onServerError:function(){I(!1)}}}});
if(V==null?0:V.onclick)V.onclick(l),I(!0)};
tFN=function(V){if(V)return _.y(V,yjf)};
rjf=function(V){V=V.selectElementClass;var l={};V=_.l8("checkbox-shape-wiz__checkbox",V,(l["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!V,l));return _.Y("div",{class:V,"aria-hidden":"true"},_.Y(_.dq,{icon:"BOX_EMPTY"}),_.Y(_.dq,{icon:"BOX_CHECK",active:!0}))};
G$f=function(V){var l=V.name;var I=V.onChange;var H=V.onClick;var T=V.checked===void 0?!1:V.checked;var x=V.labelRenderable;var n=V.hasLeadingLabel;var w=V.labelClass;var N=V.isCompact;var L=V.selectElementClass;var e=V.disableHorizontalPadding;V="checkbox"+_.Sn(_.RJ);var k=_.sZ(),X=_.Bu(function(D){H==null||H(D);return!1}),r=_.Bu(function(D){k.value.checked=T;
I==null||I(D);return!1}),E={};
w=_.l8("checkbox-shape-wiz",w,(E["checkbox-shape-wiz--compact"]=!!N,E["checkbox-shape-wiz--disable-horizontal-padding"]=!!e,E));return _.Y("checkbox-shape",null,_.Y("label",{class:w},_.Y("input",{el:k,class:"checkbox-shape-wiz__input",id:V,checked:T,name:l,type:"checkbox","on:change":r,"on:click":X}),_.uO(!n,function(){return rjf({isLeading:!0,selectElementClass:L})}),_.uO(x,function(){return _.Y("div",{class:"checkbox-shape-wiz__label"},x==null?void 0:x())}),_.uO(n,function(){return rjf({isLeading:!1,
selectElementClass:L})})))};
E0J=function(V){var l=V.useCheckIcon===void 0?!1:V.useCheckIcon;var I=V.selectElementClass;V=l?"CHECK":"CIRCLE";var H="",T=_.z("radio_shape_filled_icon_manual_setting_killswitch");T&&(H=l?"CHECK":"CIRCLE_FILLED");var x={};I=_.l8("radio-shape-wiz__radio",I,(x["radio-shape-wiz__radio--check-icon"]=!!l,x["radio-shape-wiz__radio--radio-default-style"]=!I,x));return T?_.Y("div",{class:I,"aria-hidden":"true"},_.Y(_.dq,{icon:V}),_.Y(_.dq,{icon:H,active:!l})):_.Y("div",{class:I,"aria-hidden":"true"},_.Y(_.dq,
{icon:V}),_.Y(_.dq,{icon:V,active:!l}))};
JjT=function(V){function l(){var C;((C=_.F().resolve(_.Cs(_.eM)))==null?0:C.isKeyBoardInUse())&&Z.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function I(){Z.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var H=V.name;var T=V.onChange;var x=V.onClick;var n=V.checked===void 0?!1:V.checked;var w=V.labelRenderable;var N=V.useCheckIcon;var L=V.hasLeadingLabel;var e=V.labelClass;var k=V.isCompact;var X=V.selectElementClass;var r=V.ariaLabel;var E=V.className;V=y0(function(){return"radio"+_.Sn(_.RJ)});
var D=_.sZ(),Z=_.sZ(),S=_.Bu(function(C){D.value.checked=n;T==null||T(C);return!1}),p=_.Bu(function(C){x==null||x(C);
return!1}),Vf=["radio-shape-wiz"];
E&&Vf.push(E);E={};e=_.l8("radio-shape-wiz__label-container",e,(E["radio-shape-wiz--compact"]=!!k,E));Ls(function(){document.activeElement===D.value&&l()});
_.XW(function(){var C=D.value;C.addEventListener("focusin",l);C.addEventListener("focusout",I);return function(){C.removeEventListener("focusin",l);C.removeEventListener("focusout",I)}});
return _.Y("radio-shape",{class:Vf.join(" ")},_.Y("input",{el:D,class:"radio-shape-wiz__input",id:V,"prop:checked":n,name:H,type:"radio","on:change":S,"on:click":p,"aria-label":r}),_.Y("label",{class:e,for:V,el:Z},_.uO(!L,function(){return E0J({checked:n,useCheckIcon:N,isLeading:!0,selectElementClass:X})}),_.uO(w,function(){return _.Y("div",{class:"radio-shape-wiz__label",
"aria-hidden":r?"true":"false"},w==null?void 0:w())}),_.uO(L,function(){return E0J({checked:n,
useCheckIcon:N,isLeading:!1,selectElementClass:X})})))};
hvW=function(V){var l=V.data;var I=V.isLeading;var H=V.hideSelectionTextChevron;if(I&&(l.leadingImage||l.leadingAccessory)||!I&&(l.trailingImage||l.trailingButton||l.trailingButtons||l.selectionText)){var T=_.l8("yt-list-item-view-model-wiz__button-container");V={};var x=_.l8("yt-list-item-view-model-wiz__image-container",(V["yt-list-item-view-model-wiz__leading"]=I,V["yt-list-item-view-model-wiz__trailing"]=!I,V)),n=I?l.leadingImage:l.trailingImage,w=_.l8("yt-list-item-view-model-wiz__accessory",
"yt-list-item-view-model-wiz__image");V={};var N=_.l8("yt-list-item-view-model-wiz__accessory",(V["yt-list-item-view-model-wiz__leading"]=I,V["yt-list-item-view-model-wiz__trailing"]=!I,V)),L=!!l.selectionText;a:switch(l.listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":V="expand_more";break a;default:V="chevron_right"}var e=V;return function(){var k;return _.Y(_.CN,null,_.uO(n,function(){return _.Y("div",{class:x,"aria-hidden":"true"},_.Y(_.cX,{data:n,alt:"",
preserveWidth:!0,preserveHeight:!0,className:w}))}),_.uO(I&&l.leadingAccessory,function(){return _.Y("div",{class:x},o01(l.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:w}}))}),_.uO(!I&&l.trailingButton,function(){return _.Y("div",{class:T},o01(l.trailingButton,{buttonViewModel:{className:N}}))}),_.uO(!I&&((k=l.trailingButtons)==null?void 0:k.buttons),function(){var X;
return _.Y("div",{class:T},o01((X=l.trailingButtons)==null?void 0:X.buttons,{buttonViewModel:{className:N},accountLinkButtonViewModel:{className:N},switchButtonViewModel:{className:N},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:N}}))}),_.uO(!I&&L,function(){return _.Y(_.CN,null,_.Y(_.Ni,{text:l.selectionText,
className:_.l8("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.uO(!H,function(){return _.Y(_.dq,{icon:e,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
Py1=function(V){return V.title||V.subtitle?function(){return _.Y("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.Y("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.uO(V.title,function(){return _.Y(_.Ni,{text:V.title,className:"yt-list-item-view-model-wiz__title"})})),_.uO(V.subtitle,function(){return _.Y(_.Ni,{text:V.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.Y(_.CN,null)}};
DHK=function(V){function l(){var Zg;((Zg=_.F().resolve(_.Cs(_.eM)))==null?0:Zg.isKeyBoardInUse())&&By.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function I(){By.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var H=V.data;var T=V.isMenuItem;var x=V.isCompact;var n=V.onTap;var w=V.trailingAccessory;var N=V.hideSelectionTextChevron;var L=V.disabled;var e=V.inPopup;var k=V.disableHorizontalPadding;var X=V.isOverlay;V=$21(function(Zg){a:if((H==null?0:H.entitySelectorType)&&(H==null?0:H.entityKey))switch(H.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Zg=_.HBt(Zg,H.entityKey);Zg=Zg==null?void 0:Zg.value;var Va=!1;Zg==="CAPTIONS_UNAVAILABLE"&&(Va=!0,Zg=
"");Zg=Object.assign({},!!Zg&&{selectionText:{content:Zg}},{isSelected:!!Zg},!!Zg&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:Va});break a;default:Zg={}}else Zg={};return Zg});
var r=_.z("enable_web_shorts_captions_language_command")?Object.assign({},H,V):H;V=!(r.isSelected===void 0||!r.selectionStyle||r.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var E=(_.sB(r.rendererContext)||n)&&!V,D=_.sB(r.rendererContext)||V;L=!!r.isDisabled||!!L;var Z={};X=_.l8("yt-list-item-view-model-wiz",(Z["yt-list-item-view-model-wiz--is-overlay"]=!!X,Z));Z={};var S=_.l8("yt-list-item-view-model-wiz__label",(Z["yt-list-item-view-model-wiz__container"]=!V,Z["yt-list-item-view-model-wiz__container--disabled"]=
L,Z["yt-list-item-view-model-wiz__container--has-subtitle"]=!!r.subtitle,Z["yt-list-item-view-model-wiz__container--compact"]=!!x,Z["yt-list-item-view-model-wiz__container--tappable"]=E,Z["yt-list-item-view-model-wiz__container--in-popup"]=!!e,Z));L={};L=_.l8("yt-list-item-view-model-wiz__container",(L["yt-list-item-view-model-wiz__container--tappable"]=D,L["yt-list-item-view-model-wiz__container--compact"]=!!x,L["yt-list-item-view-model-wiz__container--in-popup"]=!!e,L["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!k,L));Z=r.leadingImage||r.leadingAccessory;var p=_.l8("yt-list-item-view-model-wiz__image-container",Z?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),Vf=_.z("apply_button_role_to_list_item");e=_.sZ();var C=_.sZ(),By=Vf?C:e,lN=function(){var Zg,Va,wb;return _.Y(_.CN,null,(Zg=hvW({data:r,isLeading:!0,hideSelectionTextChevron:!!N}))==null?void 0:Zg(),(Va=Py1(r))==null?void 0:Va(),w?_.Y("div",{class:"yt-list-item-view-model-wiz__trailing"},w):(wb=hvW({data:r,isLeading:!1,
hideSelectionTextChevron:!!N}))==null?void 0:wb())},wW=function(){return Vf?_.Y("div",{class:S,
el:C,role:D||E?"button":void 0,tabindex:n||E?0:void 0,"on:keydown":ec,"on:click":h1},lN()):_.Y("div",{class:S,el:C},lN())},o1={labelRenderable:wW,
isCompact:x,checked:r.isSelected,hasLeadingLabel:!!Z,labelClass:L,selectElementClass:p,disableHorizontalPadding:!!k};_.p6(e,r.rendererContext);var h1=_.Bu(function(Zg){return void(n==null?void 0:n(Zg))}),ec=_.Q1();
_.XW(function(){E&&(By.value.addEventListener("focusin",l),By.value.addEventListener("focusout",I));return function(){By.value&&E&&(By.value.removeEventListener("focusin",l),By.value.removeEventListener("focusout",I))}});
x=_.Bu(function(){return!1});
return _.Y("yt-list-item-view-model",{el:e,class:X,role:T?"menuitem":"listitem",tabindex:Vf?void 0:n||E?0:void 0,"on:keydown":Vf?x:ec,"on:click":Vf?x:h1},_.uO(V,function(){return iAt(r.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.Y(G$f,Object.assign({},o1))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.Y(JjT,Object.assign({},o1))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.Y(JjT,Object.assign({},o1,{useCheckIcon:!0}))}]],function(){return wW()})},function(){return wW()}))};
cjN=function(V,l,I){if(l)return[ZFK];switch(V){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[QO];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return I?[QO]:[Sbg,QO];case "TRANSFER_STATE_PAUSED_BY_USER":return[Rvy,QO];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[QZJ,QO];default:return[ZFK]}};
WAw=function(V,l,I,H){return cjN(V,l,H).map(function(T){var x=T.text,n=T.iconType,w=T.videoAction;T=T.playlistAction;x=x?{content:x}:void 0;n=n&&{sources:[{clientResource:{imageName:n}}]};var N=(0,_.EL.unsafeClone)(I);if(N){var L=_.y(N,_.xj),e=_.y(N,_.UB);L&&w?L.action=w:e&&T&&(e.action=T)}return{title:x,leadingImage:n,rendererContext:N&&{commandContext:{onTap:{innertubeCommand:N}}}}})};
bFf=function(V){V=_.M7(V.rendererContext);var l;return(l=_.y(V,_.UB))==null?void 0:l.playlistId};
qb1=function(V){var l;return(l=V.listItems)==null?void 0:l.some(function(I){var H;return _.sB((H=_.y(I,_.Yj))==null?void 0:H.rendererContext)})};
sZN=function(V){var l=V.data;var I=V.isCompact;var H=V.hideSelectionTextChevron;var T=V.inPopup;V=V.isOverlay;var x=qb1(l)&&T,n={};return _.Y("yt-list-view-model",{class:_.l8("yt-list-view-model-wiz",(n["yt-list-view-model-wiz--kaios-spat-nav"]=Xow&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",n)),role:x?"menu":"list"},MFN(l.listItems,{listItemViewModel:{isMenuItem:x,isCompact:I,hideSelectionTextChevron:H,inPopup:T,isOverlay:V},
downloadListItemViewModel:{isMenuItem:x,isCompact:I,inPopup:T}}))};
cl=function(V){var l=_.F().resolve(_.Cs(_.DA));return l!=null&&l()?V.darkThemeColorPalette:V.lightThemeColorPalette};
be=function(V){return{primaryTextColor:Wl(V,0),secondaryTextColor:Wl(V,1),optionColor:Wl(V,2),backgroundColor:Wl(V,3),videoBackgroundColor:Wl(V,4)}};
Wl=function(V,l){if(V){switch(l){case 0:V=V.primaryTitleColor;break;case 1:V=V.secondaryTitleColor;break;case 2:V=V.surgeColor;break;case 3:V=V.section2Color;break;case 4:V=V.section3Color;break;default:return}if(V)return _.tv(V)}};
pec=function(V){return V?_.rP(V):""};
Ajt=function(V){return(V==null?void 0:V.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
us3=function(V,l){var I;return"linear-gradient(to bottom, "+((I=l==null?void 0:l.map(function(H){var T=V?H.darkThemeColor:H.lightThemeColor;return T?_.rP(T)+" "+((H==null?void 0:H.startLocation)||0)*100+"%":"transparent"}))==null?void 0:I.join(", "))+")"};
v0g=function(V){var l=V.className;var I=V.data;var H=V.isOverlay;var T=V.maxLinesOverride;var x=V.useMediumText;V=_.sZ();var n=I.description,w=I.alwaysShowTruncationText,N=I.truncationText,L=I.maxLines,e,k=!((e=_.y(I.rendererContext,hOK))==null||!e.onTap),X,r,E=(r=(X=_.y(I.rendererContext,_.uP))==null?void 0:X.label)!=null?r:"";e=_.U(BK(!1));var D=e.next().value,Z=e.next().value;_.p6(V,I.rendererContext);e=_.Bu(function(){I.expandOnTap&&Z(!D);return!1});
X={};return _.Y("yt-description-preview-view-model",{el:V,class:_.l8("yt-description-preview-view-model-wiz",l,(X["yt-description-preview-view-model-wiz--clickable"]=k,X["yt-description-preview-view-model-wiz--is-overlay"]=H,X)),"on:click":e},_.uO(n,function(){var S={};return D?_.Y("div",{class:_.l8("yt-description-preview-view-model-wiz__description",(S["yt-description-preview-view-model-wiz__description--medium-text"]=x,S))},_.Y(_.Ni,{text:n})):_.Y(RQc,{text:n,alwaysShowTruncationText:w,truncationText:N,
maxLines:T!=null?T:L,isOverlay:H,accessibilityLabel:E,useMediumText:x})}))};
aDc=function(V,l,I,H,T){var x=!V.metadata;var n=l?_.y(V.heroImage,OF1):_.y(V.animatedImage||V.image,OF1);if(!n)return{size:0};V=n.style;var w=n.layoutMode;n=nxq(U5y(n));if(l)l=Cyy(I,V,w,n,T);else a:if(x)l=I===1?{size:48}:{size:72};else switch(I){case 1:l={size:72};break a;case 2:l={size:120};break a;default:l=H<4?{size:120}:{size:160}}return l};
Cyy=function(V,l,I,H,T){if(!((H==null?0:H.height)&&(H==null?0:H.width)))return{size:0};var x=H.width;H=H.height;if(T)return l==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||l==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&x>H?{size:312/BBK}:l==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(I!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||V!==1&&V!==2||l!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&l!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&l!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(l==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||l==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||H===x)switch(V){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(l==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||H>x)switch(V){case 1:case 3:return{size:240*TBN};default:return{size:360*TBN}}switch(V){case 1:case 2:return{size:1/BBK*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.fDt=function(V){if(!("matchMedia"in window))return _.Rw(Error("Qh")),function(){return!1};
var l=window.matchMedia(V);V=_.U(_.xi(l.matches,void 0,"jLJc8e"));var I=V.next().value,H=V.next().value,T=function(x){H(x.matches)};
l.addEventListener?(l.addEventListener("change",T),_.rx(function(){l.removeEventListener("change",T)})):l.addListener&&(l.addListener(T),_.rx(function(){l.removeListener(T)}));
return I};
g0J=function(V){return V==="IMAGE_BANNER_STYLE_INSET"||V==="IMAGE_BANNER_STYLE_UNKNOWN"};
mHg=function(){if(!("matchMedia"in window))return _.Rw(Error("Qh")),0;var V=y0(function(){return window.matchMedia("(max-width: 527.9px)")}),l=y0(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),I=y0(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),H=y0(function(){return window.matchMedia("(min-width: 1024px)")}),T=_.U(BK(V.matches)),x=T.next().value,n=T.next().value,w=_.U(BK(l.matches));
T=w.next().value;var N=w.next().value,L=_.U(BK(I.matches));w=L.next().value;var e=L.next().value;L=_.U(BK(H.matches));var k=L.next().value,X=L.next().value,r=y0(function(){return function(S){n(S.matches)}}),E=y0(function(){return function(S){N(S.matches)}}),D=y0(function(){return function(S){e(S.matches)}}),Z=y0(function(){return function(S){X(S.matches)}});
_.XW(function(){V.addEventListener?(V.addEventListener("change",r),l.addEventListener("change",E),I.addEventListener("change",D),H.addEventListener("change",Z)):V.addListener&&(V.addListener(r),l.addListener(E),I.addListener(D),H.addListener(Z));return function(){V.removeEventListener?(V.removeEventListener("change",r),l.removeEventListener("change",E),I.removeEventListener("change",D),H.removeEventListener("change",Z)):V.removeListener&&(V.removeListener(r),l.removeListener(E),I.removeListener(D),
H.removeListener(Z))}});
return x?1:T?2:w?3:k?4:0};
iFc=function(V){var l=0;V=_.U([V.title,V.metadata,V.actions,V.description,V.attribution]);for(var I=V.next();!I.done;I=V.next())I.value&&l++;return l};
l9q=function(V,l,I){var H;if(V=_.y((H=_.y(V.image,VHN))==null?void 0:H.avatar,_.C6))switch(l){case 1:V.avatarImageSize="AVATAR_SIZE_XL";break;case 2:V.avatarImageSize="AVATAR_SIZE_XXL";break;default:I<4?V.avatarImageSize="AVATAR_SIZE_XXL":V.avatarImageSize="AVATAR_SIZE_XXXL"}};
_.H_c=function(V){var l=V.data;var I=V.noPadding;var H=V.enableBanner;var T=V.cinematicContainerTopbarOffset;var x=V.allowCinematicContainerOverflow;var n=V.displayAsSidebar;var w=V.displayAsPanel;V=iFc(l);var N=!!l.heroImage,L=!!l.image||!!l.animatedImage,e=!!l.background,k=n||w?1:mHg(),X=k===1,r=k===2,E=X||r,D=k===4,Z=aDc(l,N,k,V,n),S={};I=_.l8((S["page-header-view-model-wiz"]=!0,S["page-header-view-model-wiz--no-padding"]=!!I,S["page-header-view-model-wiz--small-top-padding"]=X&&!l.actions||r&&
!(L||N),S["page-header-view-model-wiz--small-bottom-padding"]=E&&!l.actions,S["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!x,S["page-header-view-model-wiz--display-as-sidebar"]=n,S["page-header-view-model-wiz--display-as-panel"]=w,S));x={};x=_.l8((x["page-header-view-model-wiz__page-header-headline"]=!0,x["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=Z.allowFullWidth,x));n=E&&!Z.allowFullWidth;w=(r=X&&(N||L)&&V>0)&&w;S={};w=(S["page-header-view-model-wiz__page-header-title"]=
!0,S["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!r,S["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=r&&!w,S["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=w,S["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=e,S);r={};r=(r["page-header-view-model-wiz__page-header-headline-image"]=!0,r["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
N&&E,r);var p;S={};var Vf=(S["page-header-view-model-wiz__page-header-banner-container"]=H,S["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=H&&((p=_.y(l.banner,_.I9T))==null?void 0:p.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",S);p={};p=(p["page-header-view-model-wiz__page-header-content-metadata"]=!0,p["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=e,p);S={};S=(S["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
S["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!l.metadata||E,S["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!E,S);var C={};C=(C["page-header-view-model-wiz__page-header-attribution"]=!0,C["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=e,C);var By={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:e,
maxLinesOverride:X?void 0:1,useMediumText:D},dynamicTextViewModel:{className:_.l8(w)},contentPreviewImageViewModel:{className:_.l8(r),imageSizeConfig:Z},contentMetadataViewModel:{layout:X?1:0,className:_.l8(p),isOverlay:e,useMediumText:D},flexibleActionsViewModel:{layout:k===1||k===2?1:0,className:_.l8(S)},attributionViewModel:{className:_.l8(C),useMediumText:D},decoratedAvatarViewModel:{className:_.l8(r)},cinematicContainerViewModel:{topbarOffset:T},flexibleContainer:{isOverlay:e}};L&&l9q(l,k,V);
return _.Y("yt-page-header-view-model",{class:I},_.uO(e,function(){return _.Y("div",{class:"page-header-view-model-wiz__page-header-background"},qZ(l.background,By))}),_.Y("div",{class:"page-header-view-model-wiz__page-header-content"},_.uO(H&&(l==null?void 0:l.banner),function(){return _.Y("div",{class:_.l8(Vf)},qZ(l==null?void 0:l.banner,By))}),_.Y("div",{class:x},_.uO(L,function(){return qZ((l==null?void 0:l.animatedImage)||(l==null?void 0:l.image),By)}),_.uO(N&&!n,function(){return qZ(l==null?
void 0:l.heroImage,By)}),_.Y("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.uO(N&&n,function(){return _.Y("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},qZ(l==null?void 0:l.heroImage,By))}),_.uO(l==null?void 0:l.title,function(){return qZ(l==null?void 0:l.title,By)}),_.uO(l.metadata,function(){return qZ(l.metadata,By)}),_.uO(l.description&&!X,function(){return qZ(l.description,By)}),_.uO(l.attribution&&!E,function(){return qZ(l.attribution,
By)}),_.uO(l.actions&&!E,function(){return qZ(l.actions,By)}))),_.Y("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.uO(l.description&&X,function(){return qZ(l.description,By)}),_.uO(l.attribution&&E,function(){return qZ(l.attribution,By)}),_.uO(l.actions&&E,function(){return qZ(l.actions,By)})),_.Y("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.uO(l.bottomMetadataFlexibleContainer,function(){return qZ(l.bottomMetadataFlexibleContainer,By)}))))};
Bkt=function(V){var l,I=((l=_.F().resolve(_.Cs(_.DA)))==null?0:l())&&V.data.darkThemeImage?V.data.darkThemeImage:V.data.image;l=_.Y("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.Y("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},I?_.Y(_.cX,{data:I,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),Tkt(V.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));I=_.Y(_.Ni,{text:V.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var H=V.data;if(H.bodyText){var T=[];H=_.U(H.bodyText);for(var x=H.next();!x.done;x=H.next())T.push(_.Y(_.Ni,{text:x.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else T=_.Y(_.CN,null);return _.Y("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},l,I,T,Tkt(V.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.Y(_.Ni,{text:V.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.Y(_.Ni,{text:V.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
U8y=function(V){V=(new x8f).parse(V);return(new n8).render(V).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(l){var I=l.split(":").map(Number),H=0,T=0;if(I.length===3)I=_.U(I),H=I.next().value,T=I.next().value,I=I.next().value;else if(I.length===2)I=_.U(I),T=I.next().value,I=I.next().value;else if(I.length===1)I=_.U(I).next().value;else throw Error("Rh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(H*3600+T*60+I)+'" role="button">'+l+"</span>"})};
nHN=function(V){V=_.U(V.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var l=V.next(),I={};!l.done;I={clickHandler$jscomp$4:void 0},l=V.next()){l=l.value;I.clickHandler$jscomp$4=function(T){T=Number(T.target.getAttribute("data-time"));if(isNaN(T))throw Error("Sh");var x=document.querySelector("video");x&&(x.currentTime=T)};
var H=function(T){return function(x){x.key!=="Enter"&&x.key!=="Space"||(0,T.clickHandler$jscomp$4)(x)}}(I);
l.setAttribute("tabindex","0");l.removeEventListener("click",I.clickHandler$jscomp$4);l.removeEventListener("keydown",H);l.addEventListener("click",I.clickHandler$jscomp$4);l.addEventListener("keydown",H)}};
$8N=function(){return _.Y("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.Y(MZ,{percentWidth:100}),_.Y(MZ,{animationDelay:200}),_.Y(MZ,{animationDelay:400}),_.Y(MZ,{animationDelay:600}),_.Y(MZ,{animationDelay:800,percentWidth:60}),_.Y("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.Y(MZ,{percentWidth:100}),_.Y(MZ,{animationDelay:200}),_.Y(MZ,{animationDelay:400}),_.Y(MZ,{animationDelay:600,percentWidth:50}))};
MZ=function(V){return _.Y("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(V.percentWidth===void 0?100:V.percentWidth)+"%"},_.Y("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(V.animationDelay===void 0?0:V.animationDelay)+"ms"}))};
d81=function(){var V=_.U(_.xi(function(){return""},void 0,"v2wS5e")),l=V.next().value;
return[function(){return l()()},
V.next().value]};
Nk3=function(V){V=V===void 0?{}:V;return{title:_.iJ(V.localizedOptInBannerTitleText===void 0?"":V.localizedOptInBannerTitleText),titleLength:19,subtitle:_.iJ(V.localizedOptInMessage===void 0?"":V.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iJ(_.LT("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:_.iJ(_.LT("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:[wr3]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
KTq=function(V,l){V=V?WP1(V):"";l!==void 0&&isFinite(l)?l===0?l=_.LT("UPDATING",void 0,"Updating..."):(l=zlW(new Date(l),new Date),l=_.LT("UPDATED_TIME",{relative_time:l},"Updated "+l)):l="";var I="";V&&l&&(I=" \u2022 ");return _.iJ(V+I+l)};
LTw=function(V,l,I,H,T,x){l=l===void 0?0:l;var n=jdN[l],w=n.title,N=n.iconType,L=n.topButtonRenderer,e=n.sectionClientVE;n=n.videoClientVE;var k;if(l!==1||V.length){I=[];V=_.U(V);for(H=V.next();!H.done;H=V.next()){var X=H.value;if(Vlc(X))I.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:X.videoEntity.videoId,title:VH(X.videoEntity.title),shortBylineText:VH(X.channelEntity.title),thumbnail:X.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:X.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.LT("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:n}}}}}});else if(i71(X)){H=I;var r=H.push;var E=void 0,D=void 0,Z=void 0,S=void 0,p=void 0,Vf=void 0,C=void 0,By=void 0,lN=X.mainPlaylistEntity.playlistId,wW=X==null?void 0:(By=X.mainPlaylistEntity)==null?void 0:(C=By.thumbnailStyleData)==null?void 0:(Vf=C[0])==null?void 0:(p=Vf.value)==null?void 0:(S=p.collageThumbnail)==null?void 0:S.coverThumbnail;S=DhN(lN);if(!_.z("enable_offline_playlist_page")&&
(X==null?0:(Z=X.mainPlaylistEntity)==null?0:Z.videos)){b:{Z=X==null?void 0:(D=X.mainPlaylistEntity)==null?void 0:D.videos;D=_.v4().getState().entities;if(Z!=null&&Z.length&&D)for(Z=_.U(Z),p=Z.next();!p.done;p=Z.next())if(p=_.TV(p.value).entityId,(p=JSON.parse(p).videoId)&&pqK(D,p)==="TRANSFER_STATE_COMPLETE"){D=p;break b}D=""}D!==void 0&&(S=RA(_.v4().getState(),D),S=_.mp(D,lN,void 0,void 0,S))}D=SM3(_.LT("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),DhN(lN));X=lN&&wW&&D?{playlistId:lN,navigationEndpoint:S,
viewPlaylistText:D,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:wW}},title:VH(X.mainPlaylistEntity.title),shortBylineText:VH(X==null?void 0:(E=X.channelEntity)==null?void 0:E.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:YvK,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:lN,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.LT("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:n}}}:
void 0;r.call(H,{gridPlaylistRenderer:X})}}n={gridRenderer:{items:I}};l===1&&(k=KTq(T,x))}else if(H){var o1=_.iJ((r=I==null?void 0:I.localizedPromptMessage)!=null?r:"");n={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iJ(_.LT("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.ksq}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iJ(_.LT("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};k=KTq(T,x)}else o1=_.iJ(_.LT("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
n={};return{contents:[{shelfRenderer:{title:w,titleAnnotation:k,icon:{iconType:N},subtitle:o1,content:n,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:L}]}}}}],loggingDirectives:{clientVeSpec:{uiType:e}}}};
e01=function(V,l,I,H,T,x,n,w){I=I===void 0?{}:I;H=H===void 0?!1:H;T=T===void 0?!1:T;x=x===void 0?!1:x;n=n===void 0?0:n;w=w===void 0?-Infinity:w;if(!l.length&&!V.length&&!H)return T?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:hFf(I)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.iJ(_.LT("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];
var N=[];V.length&&N.push(LTw(V,0));H?N.push(LTw(l,1,I,x,n,w)):T&&N.push({contents:[{statementBannerRenderer:Nk3(I)}]});(H&&l.length||V.length)&&N.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.iJ(_.LT("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});return N.map(function(L){return{itemSectionRenderer:L}})};
sJ=function(V,l){if(typeof V!=="object")return null;V=_.U(Object.entries(V));for(var I=V.next();!I.done;I=V.next()){var H=_.U(I.value);I=H.next().value;H=H.next().value;if(I===l)return I;if(H=sJ(H,l))return I+"."+H}return null};
pv=function(V){var l=V.content;return(V=V.styleRuns)&&l?{runs:V.map(function(I){var H={text:l.slice(I.startIndex,I.startIndex+I.length)};I.fontColor&&(H.textColor=I.fontColor);return H})}:{simpleText:l}};
Xr1=function(V,l,I,H){var T=kIK;H&&(V.quantity=H);if(!V.quantity||!V.maxQuantity)return{};H=V.minusButton;var x=V.plusButton,n,w,N,L;return{value:V.quantity,maxValue:V.maxQuantity,onChangeCallback:function(e){T(V,e)},
minusLabel:(n=_.y(H,FTK))==null?void 0:n.label,minimumReachedLabel:(w=_.y(H,FTK))==null?void 0:w.limitReachedLabel,plusLabel:(N=_.y(x,FTK))==null?void 0:N.label,maximumReachedLabel:(L=_.y(x,FTK))==null?void 0:L.limitReachedLabel,disabled:l,onRemoveCommand:I}};
kIK=function(V,l){var I=V.quantityIncrementerEntityKey;if(I){var H={};H.quantity=l;_.ZR(_.h9("quantityIncrementerEntity",I,H));V.onChangeCommand&&_.EI(V.onChangeCommand)}};
z0q=function(V){return _.z("kevlar_comments_clone_data_killswitch")?V:_.EL.unsafeClone(V)};
r$N=function(V,l){(V=y$f(V))&&(l?tHJ.push({command:V,sourceData:{},commandContext:void 0}):_.F().resolve(_.aw).resolveCommand(V))};
y$f=function(V){return _.y(V,_.yI)};
GI1=function(){var V=window.performance.timeOrigin+window.performance.now(),l=(new _.Ay).setSeconds(V/1E9);return _.AI(l,2,_.lE(V%1E9),0)};
ue=function(V,l){var I=_.y(_.y(V,_.yI),EHJ);I&&(l&&(I.serializedAdditionalMetadata=_.rg(l)),r$N(V,!0))};
J$c=function(V){switch(V){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"}};
oHy=function(){return!!_.h6("ID_TOKEN")};
D8T=function(V){return V instanceof Error&&V.cause instanceof h0y&&V.cause.rpcErrorCode!==void 0?!PVt.includes(V.cause.rpcErrorCode):!0};
Svy=function(){return _.MS(Z_1,{authuser:""+(_.h6("SESSION_INDEX")||0)})};
vl=function(V,l,I,H){I=I===void 0?"MINI_APP_SDK_API_UNSPECIFIED":I;H=H===void 0?"":H;var T=new _.Yd;I={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:H,sdkApi:I};V instanceof Error&&(T.message=V.message,T.name=V.name,V.cause instanceof h0y&&V.cause.rpcErrorCode!==void 0&&(I.rpcErrorCode=V.cause.rpcErrorCode));var x;(x=l.onError)==null||x.call(l,{loggingError:T,metadata:I})};
Qd3=function(V,l,I,H){switch(V){case "MINI_APP_SOURCE_GAMESNACKS":return new OJ(l,I,H);default:return new R0q(l,I,H)}};
c$K=function(V){switch(V){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"}};
WTJ=function(V){switch(V){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"}};
b_1=function(V){switch(V){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"}};
qv1=function(){return Math.floor(Math.random()*4)+1};
MHy=function(V,l,I,H){V=_.U(Object.entries(V));for(var T=V.next(),x={};!T.done;x={message$jscomp$938:void 0},T=V.next()){var n=_.U(T.value);T=n.next().value;n=n.next().value;x.message$jscomp$938=n;l.push(setTimeout(function(w){return function(){H(!1);I(w.message$jscomp$938.text)}}(x),x.message$jscomp$938.delayMs));
Number(T)>0&&l.push(setTimeout(function(){H(!0)},x.message$jscomp$938.delayMs-400))}};
sd1=function(V,l){var I=I===void 0?qFq:I;_.z("mweb_fix_monitor_visibility_after_render")?V&&jz(function(){pCw(V,l,I)}):jz(function(){pCw(V,l,I)})};
vHw=function(V){prc||(prc=A$q(new _.c4(1,void 0,void 0,u_K),0));var l=prc.format(Math.floor(V));l=_.QH==="be"||_.QH==="bg"||_.QH==="es"||_.QH==="et"||_.QH==="hu"||_.QH==="ka"||_.QH==="lv"||_.QH==="pl"||_.QH==="pt-PT"||_.QH==="sq"?l.replace(new RegExp("^(\\d)"+u_K.GROUP_SEP.replace(".","\\.")+"(\\d+("+u_K.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):l;return V>=1E3&&V<=9999&&l[1]==="."&&(_.QH==="sl"||_.QH==="it")?l.replace(".",""):l};
O_W=function(V,l){Lt("ytd-button-renderer",{data:V,className:l?l.className:"",overrides:l==null?void 0:l.buttonOverrides},b$)};
f91=function(V,l,I,H){if(V)return H=H||V.likeStatus,l?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:H==="LIKE",isDisabled:!V.likesAllowed,defaultIcon:{iconType:I},defaultText:H==="LIKE"?V.likeCountWithUnlikeText:V.likeCountText,toggledText:H==="LIKE"?V.likeCountText:V.likeCountWithLikeText,defaultNavigationEndpoint:CVy(V,"LIKE"),defaultServiceEndpoint:a9W(V,"LIKE"),toggledServiceEndpoint:a9W(V,"INDIFFERENT"),defaultTooltip:_.A5(V.likeCountTooltipText),toggledTooltip:_.A5(V.likeCountTooltipText),
targetId:V.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:H==="DISLIKE",isDisabled:!V.likesAllowed,defaultIcon:{iconType:I},defaultText:H==="DISLIKE"?V.dislikeCountWithUndislikeText:V.dislikeCountText,toggledText:H==="DISLIKE"?V.dislikeCountText:V.dislikeCountWithDislikeText,defaultNavigationEndpoint:CVy(V,"DISLIKE"),defaultServiceEndpoint:a9W(V,"DISLIKE"),toggledServiceEndpoint:a9W(V,"INDIFFERENT"),defaultTooltip:_.A5(V.dislikeCountTooltipText),
toggledTooltip:_.A5(V.dislikeCountTooltipText)}};
CVy=function(V,l){if(l==="LIKE")return V.likeCommand;if(l==="DISLIKE")return V.dislikeNavigationEndpoint};
a9W=function(V,l){var I;return(I=V.serviceEndpoints)==null?void 0:I.find(function(H){var T;return((T=_.y(H,_.Cv))==null?void 0:T.status)===l})};
gHK=function(V,l){l=l===void 0?{}:l;if(V){var I=!!l.activeState,H=l.iconSize,T=l.className,x=l["aria-hidden$"],n=l["aria-label$"],w=l.role;l=l.style$+";width: "+((l.width||H)+"px;height: ")+((l.height||H)+"px;color: ")+(l.color+";");V={icon:V};I!==void 0&&(V.active=I);H!==void 0&&(V.size=H);l!==void 0&&(V.style=l);T!==void 0&&(V.className=T);x!==void 0&&(V.ariaHidden=x);n!==void 0&&(V.ariaLabel=n);w!==void 0&&(V.role=w);Lt("yt-icon",V,b$)}};
_.VmK=function(V,l,I){return window.spf&&!_.z("web_disable_spfjs_client")?m8K(V,l,I):i_w(V,l)};
m8K=function(V,l,I){var H=null,T=(new _.UZ(function(x,n){var w={};if(l){w.method=l.method;var N=l.postParams||{};ccy(V,l)&&(N[_.h6("XSRF_FIELD_NAME")]=_.h6("XSRF_TOKEN"));w.postData=_.U_(N);l.type&&(w.type=l.type);N=l.headers}w.headers=PJt(V,N);_.z("debug_forward_web_query_parameters")&&(V=_.R81(V,window.location.search));w.experimental_headers=w.headers;w.onError=function(L){L.err&&L.xhr&&(L.err.params={url:L.xhr.responseURL,response:L.xhr.responseText.substr(0,64)});n(L.err)};
w.onPartDone=function(L){I&&I.call(null,L.part)};
w.onDone=function(L){var e=lTf(L.response,"xsrf_token");A6(window.location.href,V)&&e&&_.ow("XSRF_TOKEN",e);if(e=lTf(L.response,"service_worker_killswitch"))_.ow("SERVICE_WORKER_KILLSWITCH",e),SuN();x(L.response)};
H=spf.request(V,w)})).then(ITK);
T.thenCatch(function(x){var n=x instanceof _.WU,w=x&&x.hasOwnProperty("params")&&x.params.response?x.params.response:"";x instanceof Error&&(w?n?y9K(x):w===')]}\'\n{"reload":"now"}'?y9K(x):(H11(x,V,w),TGJ(x,w)?_.hF(x):_.Gr(x)):y9K(x));H&&H.abort()});
return T};
ITK=function(V){if(V.type==="multipart"){var l=V.timing;V=V.parts.reduce(function(I,H){Object.assign(I,H);return I},{});
V.timing=V.timing||{};Object.assign(V.timing,l);V.type="reduced"}return V};
i_w=function(V,l){l=l===void 0?{}:l;var I=null,H=new _.UZ(function(T,x){l.onFinish=function(n){if(n.readyState===XMLHttpRequest.DONE)if(n.status===200){if(n.responseType!=="json"){var w=n.response;w.substring(0,5)===")]}'\n"&&(w=w.substring(5));try{var N=JSON.parse(w)}catch(L){N=L}}else N=n.response;N instanceof Error?x(N):(w=lTf(N,"xsrf_token"),A6(window.location.href,V)&&w&&_.ow("XSRF_TOKEN",w),n=n.responseURL,window.performance&&window.performance.getEntriesByName?(w=window.performance.getEntriesByName(n).pop())?
n={responseStart:(0,_.O_)()-(w.responseEnd-w.responseStart)}:(Math.random()<.01&&(w=Error("di"),w.params=n,_.hF(w)),n={responseStart:-1}):n={responseStart:0},N.timing=N.timing||{},Object.assign(N.timing,n),T(N))}else x(Error("ci`"+n.status))};
(I=_.xd(V,l))||x(Error("ci`"+I.status))});
H.thenCatch(function(T){T instanceof Error&&(H11(T,V),TGJ(T)&&(T.level="WARNING"))});
_.z("cancel_pending_navs")&&H.thenCatch(function(){I.abort()});
return H};
lTf=function(V,l){var I=V[l],H=V.parts;V.type==="multipart"&&H&&(I=(V=H.find(function(T){return l in T}))&&V[l]);
return I};
H11=function(V,l,I){var H=V.message||"";l={original:H,url:l};if(I)if(H=H.match(/position:?\s*(\d+)/)){H=H&&Number(H[1])?Number(H[1]):0;var T=Math.max(H-25,0);l.position=H;l.response=I.substring(T,H+25)}else l.response=I.substring(0,50);_.PF(V,l);try{V.message="JSON parse error"}catch(x){}};
TGJ=function(V,l){V=V.message||"";V=!!(V.indexOf("<")>=0||V.indexOf("end of ")>=0||V.indexOf("Unterminated string")>=0||V.indexOf("Unexpected EOF"));if(!V&&l)for(var I=l.length,H=!1,T=0;T<I;T++)if(H&&l[T]==="\\")T++;else if(l[T]==='"')H=!H;else if(l[T]==="<"&&!H){V=!0;break}return V};
BGt=function(){return document.documentElement.hasAttribute("dark")};
_.xuq=function(V,l){if(V!=="GFEEDBACK"&&V!=="GUIDED_HELP")_.Dp(Error("ei`"+V));else{var I=_.F().resolve(_.Cs(_.pa));if(I&&(I=I.getCurrentPage())&&I.getServiceTrackingParams&&(I=I.getServiceTrackingParams()))for(var H=0,T;T=I[H++];)if(T.service===V){if(V=T.params)for(I=0;H=V[I++];)l[H.key]=H.value;break}}};
_.UuJ=function(V){var l=_.u8();l&&(l=l.getPlayer())&&(l.pauseVideo(),V.playback_id=l.getVideoData().cpn,V.eid=l.getVideoData().eventId,Object.assign(V,l.getFeedbackProductData()))};
nmJ=function(){var V={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.h6("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(V.enableAnonymousFeedback=!0);_.h6("SESSION_INDEX")&&(V.authuser=String(_.h6("SESSION_INDEX")));_.z("enable_pageid_for_feedback")&&_.h6("DELEGATED_SESSION_ID")&&(V.pageId=String(_.h6("DELEGATED_SESSION_ID")));return V};
_.gv=function(V){_.z("enable_ypc_spinners")&&_.xB(V,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},V])};
_.ml=function(V){_.z("enable_ypc_spinners")&&_.xB(V,"yt-close-popup-action",["yt-loading-renderer"])};
$uJ=function(V){return new Promise(function(l,I){_.rj({verifyCommand:{recaptchaToken:V.recaptchaResponse}},{commandController:{onSuccess:function(H,T){T||I("ChallengeService did not return a response.");var x;l({challengeCompleted:(x=T.verified)!=null?x:!1})},
onServerError:function(H,T){I(T)}}})})};
duN=function(V,l,I,H){l({recaptchaResponse:H}).then(function(T){T.challengeCompleted?_.Nl()?(I(3),_.F().resolve(_.aw).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:V}})):I(2):I(4)},function(){I(4)})};
wPg=function(V,l,I){_.Ra("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.h6("HL"),function(){var H;(H=window.grecaptcha)==null||H.ready(function(){var T=window.grecaptcha;T?(I(T.render(V,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:duN.bind(null,V,$uJ,l)})),l(1)):l(4)})})};
NGt=function(V,l){return function(){switch(l()){case 0:return V().captchaLoadingMessage;case 1:return V().challengeReason;case 3:return V().captchaSuccessfulMessage;case 2:return V().captchaCookieSetFailureMessage;case 4:return V().captchaFailedMessage;default:return V().challengeReason}}()};
_.ie=function(){if(!KNK){var V=document.querySelector("#player.skeleton");V&&(_.Yw(V),KNK=!0)}};
_.Y8T=function(){return jW3=ZRN()};
ktc=function(){return _.d(function(V){return LN1!==void 0?V.return():_.K(V,e4t(),0)})};
e4t=function(){return _.d(function(V){if(V.nextAddress==1)return _.K(V,RGc(),2);jW3=V.yieldResult;LN1=_.r0.addLowPriorityJob(e4t,5E3);_.FU(V)})};
rAw=function(V){var l=l===void 0?FNN:l;var I,H,T=(I=V.responseContext)==null?void 0:(H=I.mainAppWebResponseContext)==null?void 0:H.trackingParam;if(!T){l.increment("MISSING");var x,n,w,N,L,e;_.hF(new _.Yd("282054944_a",{pVG:!!((x=V.responseContext)==null?0:(n=x.mainAppWebResponseContext)==null?0:n.loggedOut),s3e:((w=V.responseContext)==null?void 0:w.mainAppWebResponseContext)===void 0,oHp:V.responseContext===void 0,yZd:(N=V.playabilityStatus)==null?void 0:N.contextParams,m8e:(((L=V.streamingData)==
null?void 0:L.formats)||[]).length>0,rVK:(((e=V.streamingData)==null?void 0:e.adaptiveFormats)||[]).length>0,os:!!V.offlineState,cotn:V.cotn}));return 2}I="";try{I=XP1(T)}catch(r){return l.increment("C_ERROR"),_.Gr(r),2}try{var k=_.z4t(I);var X=yAg(k)}catch(r){return l.increment("P_ERROR"),_.Gr(r),2}X=_.m2(X,tmt,1,_.i4());T=[];X=_.U(X);for(k=X.next();!k.done;k=X.next())H=k.value,k=H.getPath(),I=(0,_.EL.getValueByKeys)(V,k.split(".")),I=String(I===void 0||I===null?"":I),H=H.getValue()||"",x=/[+\-\/_]/g,
I.replace(x,"")!==H.replace(x,"")&&(l.increment("MISMATCH"),_.z("ab_mis_log_err")&&(I=new _.Yd("282054944_p",{gGE:k,g:String(I),e:String(H)}),_.Gr(I)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(k)||(k.match(/enforcementMessageViewModel/i)?T.push(3):T.push(2)));if(T.length>0)return Math.max.apply(Math,_.oI(T));l.increment("SUCCESS");return 1};
JAt=function(V){var l=new V3;if(V.interpreterJavascript){var I=_.N_J(V.interpreterJavascript);I=Odg(I).toString();var H=new Gtq;_.Fm(H,6,I);_.j6(l,1,H,Pw)}else V.interpreterUrl&&(I=_.GQ(V.interpreterUrl),I=_.tV(I).toString(),H=new _.EmN,_.Fm(H,4,I),_.j6(l,2,H,Pw));V.interpreterHash&&_.lR(l,3,V.interpreterHash,Pw);V.program&&_.lR(l,4,V.program,Pw);V.globalName&&_.lR(l,5,V.globalName,Pw);V.clientExperimentsStateBlob&&_.lR(l,7,V.clientExperimentsStateBlob,Pw);return l};
IK=function(V){var l={};V=_.U(V.split("&"));for(var I=V.next();!I.done;I=V.next())I=I.value.split("="),I.length===2&&(l[I[0]]=I[1]);return l};
omt=function(V){return Number(V.t)||7200};
kYf=function(){if(_.z("bg_st_hr"))return"havuokmhhs-0";var V,l=((V=performance)==null?void 0:V.timeOrigin)||0;return"havuokmhhs-"+Math.floor(l)};
h4f=function(){return new Promise(function(V){var l=window.top;l.ntpevasrs!==void 0?V(new HA(l.ntpevasrs)):(l.ntpqfbel===void 0&&(l.ntpqfbel=[]),l.ntpqfbel.push(function(I){V(new HA(I))}))})};
Pu1=function(V){var l=V.eFB.bind(V);_.Aq("yt.aba.att",l);V=V.lWJ.bind(V);_.Aq("yt.aba.att2",V)};
Z1f=function(V){switch(_.Bx(V.input)){case _.Ol(DuJ):var l={};return l.encryptedVideoId=V.innerTubeRequest.externalVideoId,l}return{}};
R4q=function(V){switch(_.Bx(V.input)){case _.Ol(DuJ):if(_.z("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Ol(Ta):if(_.z("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&V.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Ol(S8q):var l,I;if(_.z("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((I=_.y((l=V.config)==null?void 0:l.command,
JZW))==null?0:I.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.cAc=function(V){var l;if(V.playlistVideoRenderer&&((l=V.playlistVideoRenderer)==null?0:l.engagementBar))return QWt(V.playlistVideoRenderer.engagementBar);if(_.y(V,BA)){var I;if(V=(I=_.y(V,BA))==null?void 0:I.engagementBar)return QWt(V)}return""};
QWt=function(V){if(!V)return"";V=_.y(V,_.WNc);if(V==null||!V.actions)return"";V=_.U(V.actions);for(V=V.next();!V.done;V=V.next()){V=_.y(V.value,_.b1w);var l=void 0;if((l=V)==null||!l.itemId)break;return V.itemId}return""};
_.q81=function(V){var l;if(V.playlistVideoRenderer&&((l=V.playlistVideoRenderer)==null?0:l.videoId))return V.playlistVideoRenderer.videoId;if(_.y(V,BA)){var I,H;if(V=(I=_.y(V,BA))==null?void 0:(H=I.playlistItemData)==null?void 0:H.videoId)return V}return""};
_.Mm1=function(V){var l;if(V.playlistVideoRenderer&&((l=V.playlistVideoRenderer)==null?0:l.voteCount))return V.playlistVideoRenderer.voteCount;if(_.y(V,BA)){var I,H;if(V=(I=_.y(V,BA))==null?void 0:(H=I.playlistItemData)==null?void 0:H.voteCount)return V}return 0};
_.x_=function(V,l){return _.nW(V.entities,"flowStateEntity",l)};
pPf=function(V,l,I,H){var T=void 0;V=_.U(V[l.iconName]||[]);for(var x=V.next();!x.done;x=V.next()){x=x.value;var n=l.iconSize;var w=l.iconStyle;n=!n||n===x[2];var N=sWw[x[0]];H&&H!==x[1]||!n||w&&w!==N?w=!1:T?(w=sWw[x[0]],w=!!l.iconStyle||w==="youtube_outline",n=T.version<=x[1],w=(!!l.iconSize||x[2]===24)&&w&&n):w=!0;w&&(T={name:l.iconName,style:sWw[x[0]],size:x[2],version:x[1],allowMirroring:!!x[3],url:I(l.iconName,x)})}return T};
AA3=function(V,l,I,H){return V+(""+sWw[I[0]]+((H===void 0?0:H)?"_experimental":"")+"/"+l+"/v"+I[1]+"/")+(I[2]+"px.svg")};
UH=function(V){return _.z("web_bookmark_playlist_save_icon")?"bookmark":V};
uDN=function(V,l){return AA3("https://fonts.gstatic.com/s/i/",V,l)};
vm1=function(V,l){return AA3("https://fonts.gstatic.com/s/i/",V,l,!0)};
O11=function(V,l){return AA3("https://www.gstatic.com/youtube/img/icons/web/",V,l)};
Cut=function(V){var l=V.enabled;var I=V.itemPlaybackModel;var H=V.thumbnailElRef;var T=V.containerElRef;var x=V.options;var n;_.t0(function(){var w=T==null?void 0:T.value;var N,L=(N=H())==null?void 0:N.value;N=I();var e=x();if(l&&N&&w&&L&&(e==null?0:e.thumbnail)){var k,X;w={mediaRenderer:{data:N,hostElement:w},lockupElement:w,thumbnailElement:L,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.to((k=N.inlinePlayerData)==null?void 0:k.onVisible),navigationEndpoint:_.to((X=N.inlinePlayerData)==
null?void 0:X.onSelect),thumbnail:e.thumbnail,thumbnailOverlays:e.thumbnailOverlays||[],accessibilityText:e.accessibilityText||""},thumbnailSize:e.thumbnailSize,enableRounding:e.enableRounding}}}else w=void 0;if(k=w){var r;(r=n)==null||UJ(r);n=a6(k)}});
_.rx(function(){var w;(w=n)==null||UJ(w)})};
aTT=function(V){V=atob(V);for(var l=[],I=0;I<V.length;I++)l.push(V.charCodeAt(I));return new Blob([new Uint8Array(l)],{type:"image/png"})};
gmT=function(V,l,I,H){H=H===void 0?"INSERTION_POSITION_UNSPECIFIED":H;return V({targetId:l},function(T){var x,n=(x=T.contents)!=null?x:[];x=I!=null?I:[];var w=fTK(n);switch(H){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},T,{contents:[].concat(_.oI(n.slice(0,w)),_.oI(x),_.oI(n.slice(w+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},T,{contents:[].concat(_.oI(x),_.oI(n))});case "INSERTION_POSITION_LAST":return Object.assign({},T,{contents:[].concat(_.oI(n),_.oI(x))});
default:return T}})};
i11=function(V,l,I,H,T){T=T===void 0?"RELATIVE_INSERTION_POSITION_AFTER":T;return V({targetId:l},function(x){var n,w=(n=x.contents)!=null?n:[];n=mu1(w,I);if(n<0)return x;n=T==="RELATIVE_INSERTION_POSITION_BEFORE"?n:n+1;return Object.assign({},x,{contents:[].concat(_.oI(w.slice(0,n)),_.oI(H),_.oI(w.slice(n)))})})};
fTK=function(V){var l=V.findIndex(function(I){return _.y(I,_.nl)});
return l>=0?l:V.length};
mu1=function(V,l){return V.map(function(I){return _.y(I,_.VVJ)}).findIndex(function(I){return(I==null?void 0:I.targetId)===l})};
IMT=function(V,l,I){return V({targetId:l},function(H){var T,x=(T=H.contents)!=null?T:[];return Object.assign({},H,{contents:lMc(x,I)})})};
lMc=function(V,l){return V.filter(function(I){var H=l.includes;a:{I=_.U(Object.values(I));for(var T=I.next();!T.done;T=I.next())if((T=T.value)&&T.targetId){I=T.targetId;break a}I=""}return!H.call(l,I||"")})};
_.Hyc=function(V,l){return{engagementPanelSectionListRenderer:{panelIdentifier:V,identifier:l,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
Tf1=function(V){return V.getOption("captions","tracklist",{includeAsr:!0})};
BfT=function(V){var l=Tf1(V);if(l==null?0:l.length)return l;V.loadModule("captions");return Tf1(V)};
x1c=function(V,l,I){if(V.getVideoData){var H,T=(H=BfT(V))==null?void 0:H.find(function(x){return x.languageCode===I});
H=_.Ul("/youtube/app/player_caption_language_entity_key","stringEntity",2);l.dispatch(_.K6("stringEntity",H,{key:H,value:(T==null?void 0:T.displayName)||""}));T?V.setOption("captions","track",T):(V.setOption("captions","stickyLoading",{}),V.setOption("captions","track",{}))}};
U1q=function(V){return V.getOption("captions","tracklist",{includeAsr:!0})};
n8T=function(V){return V.getOption("captions","tracklist",{includeAsr:!0})};
$11=function(V){var l=n8T(V);if(l==null?0:l.length)return l;V.loadModule("captions");return n8T(V)};
d1T=function(V){var l=V.getOption("captions","track");if(l)return l;V.loadModule("captions");return V.getOption("captions","track")};
wtw=function(V){var l=$11(V);if(l!=null&&l.length){var I=d1T(V);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[_.IV({listItemViewModel:{title:{content:_.LT("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(I==null?0:I.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}})].concat(_.oI(l.map(function(H){return{listItemViewModel:{title:{content:H.displayName},
isSelected:H.languageCode===(I==null?void 0:I.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:H.languageCode}}]}}}}}}}})))}}}}}}}}};
YQf=function(V){return new Promise(function(l,I){if(V===void 0)_.Gr(Error("Fi"),"ERROR"),I(Error("Fi"));else{I=new _.Nf1;var H=_.KDg();I=I.init();var T=_.jP1(_.h6("YPC_MB_URL"),!0);Promise.all([I,T]).then(function(){var x=payments.business.integration.ClientTokenFactory.createClientToken(V,H);l(x)})}})};
kJq=function(V,l,I,H,T,x,n){var w=_.QN();I=I.replace(/-/g,"+").replace(/_/g,"/");var N=_.Fu().get("hl"),L=_.$_(_.Wb),e=l==null?void 0:l.element;e&&_.gv(e);LDy(l,!0);_.e_t(L,I,w.resolve,function(){e&&_.ml(e)},function(k){e&&_.ml(e);
w.reject(k)},N,H?function(k){H&&_.R2(V,H,{backend_analytics:k})}:void 0,w.resolve,T,x,n);
return w.promise};
LDy=function(V,l){!(V=V==null?void 0:V.element)||V.tagName!=="YT-BUTTON-RENDERER"&&V.tagName!=="YTD-BUTTON-RENDERER"||(V.disabled=l)};
FDw=function(){var V=_.LT("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.iJ(V),actionButton:{buttonRenderer:EMt()}}},popupType:"TOAST"}};
Xtc=function(){var V=_.LT("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.iJ(V),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
z_K=function(V){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:V}]}}};
dE=function(V,l,I,H){var T;return _.d(function(x){if(x.nextAddress==1)return _.jd(x,2),_.K(x,V,4);if(x.nextAddress!=2)return(T=_.X3(l.getState().entities).length>0)?x.return({title:_.iJ(_.LT("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.iJ(_.LT("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Gvc()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
x.return(Jpc(I,H));_.kE(x);return x.return(Jpc(I,H))})};
yRg=function(V,l){return l?l==="PPSV"||vUg(V,l):!1};
tVt=function(V){V.responseContext||(V.responseContext={});V.responseContext.maxAgeSeconds=0;return V};
NY=function(V){var l;return _.d(function(I){return I.nextAddress==1?_.K(I,rR1(V,"service:topbar:fallback"),2):(l=I.yieldResult)&&_.wE(l)?I.return(tVt(_.wE(l))):I.return()})};
GJq=function(V){var l;return _.d(function(I){return I.nextAddress==1?_.K(I,rR1(V,"service:downloads_settings:fallback"),2):(l=I.yieldResult)&&_.wE(l)?I.return(l):I.return()})};
rR1=function(V,l){var I;return _.d(function(H){if(H.nextAddress==1)return V?_.K(H,V.get(l),2):H.return();I=H.yieldResult;return!I||!_.wE(I)||!isNaN(Number(I.data.expireTimestampMs))&&I.isExpired()?H.return():H.return(I)})};
E8w=function(V){var l=_.F().resolve(Kl).getState().entities;return V.playlistId?yRg(l,V.playlistId):!1};
JRg=function(V,l){var I;if(l==null?0:(I=l.requestTemplate)==null?0:I.panelId)V.panelId=l.requestTemplate.panelId;var H;if(l==null?0:(H=l.requestTemplate)==null?0:H.params)V.params=l.requestTemplate.params};
h_N=function(){if(o8N)return o8N();var V=!_.z("idb_response_store_auth_killswitch"),l={};o8N=vx("yt-it-response-store",{objectStores:(l.ResponseStore={addedAtVersion:1},l),shared:!V,upgrade:function(I,H){H(1)&&(I=DB(I,"ResponseStore",{keyPath:["key","clientName"]}),ZB(I,"byExpiration","expireTimestampMs"),ZB(I,"byInterface","clientName"))},
version:1});return o8N()};
Pst=function(V){return _.cx(h_N(),V)};
Zy3=function(V,l){var I;return _.d(function(H){return H.nextAddress==1?_.K(H,_.u2(),2):(I=H.yieldResult)?H.return(new D1K(V,l,I)):H.return()})};
SQt=function(V){var l=Object.keys(V)[0];if(l)return V.screenExit&&(l=l+";"+V.screenExit.screen),l};
R_t=function(V){var l=new Map;V=_.U(V);for(var I=V.next();!I.done;I=V.next())I=I.value,I!=null&&(l.has(I.taskType)||l.set(I.taskType,[]),l.get(I.taskType).push(I));return l};
QP3=function(V){return!isNaN(V)&&V>0};
cRw=function(V){V=[].concat(_.oI(V)).sort(function(I,H){return I-H});
var l=Math.floor(V.length/2);return V.length%2?V[l]:(V[l-1]+V[l])/2};
byy=function(){WD1||(Object.assign(mF,{handleError:function(V,l){var I={errorSeverity:l.errorSeverity.toString(),wizFeatureFlags:Object.entries(l.featureFlags).join("\n")};Twq(l,I);l=l.errorSeverity;l===3?_.Gr(V,"ERROR",void 0,void 0,void 0,I):l===2&&_.Gr(V,"WARNING",void 0,void 0,void 0,I);_.z("cow_if_errors_in_popup")&&l===3&&V.message.indexOf("<If>")!==-1&&window.alert(V.message)},
enableComponentStacksInErrorMessages:!1}),WD1=!0)};
sPT=function(V,l){_.Aq("yt.logging.errors.log",_.Gr);Bw1();qQf(Nwf(),l);window.onerror=V;_.z("wiz_next_error_handler_killswitch")||byy();MVJ=x7K;window.addEventListener("unhandledrejection",function(I){if(I.reason instanceof Error){var H=I.reason;_.PF(H,{source:"unhandledrejection"});H.name==="AbortError"&&(H.level="WARNING")}x7K(I.reason);I.preventDefault()})};
_.ptT=function(V){return V.a11y.ephemeralAction||null};
_.ARt=function(V){var l,I,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C,By,lN,wW,o1,h1,ec,Zg,Va,wb,CK,CZ,ME,Hw,uZ,EN,ya,Dv,Tf,Oq,Ut;return _.d(function(BY){if(BY.nextAddress==1)return _.K(BY,_.Yf(V,{mode:"readonly",enableRetries:!0},function(ON){return LW(ON,"playbackData").then(function(vY){var LZ=vY.map(function(jo){return jo.transfer}).filter(function(jo){return!!jo}),oi=vY.map(function(jo){return jo.offlineVideoPolicy}).filter(function(jo){return!!jo}),lZ=vY.filter(function(jo){return!!jo.key}).map(function(jo){return _.Ul(_.TV(jo.key).entityId,
"downloadStatusEntity")});
LZ=LW(ON,"transfer",LZ);oi=LW(ON,"offlineVideoPolicy",oi);lZ=LW(ON,"downloadStatusEntity",lZ);var st=LZ.then(function(jo){jo=jo.reduce(function(gb,Bh){(Bh==null?0:Bh.offlineVideoStreams)&&gb.push.apply(gb,_.oI(Bh.offlineVideoStreams));return gb},[]).filter(function(gb){return!!gb});
return LW(ON,"offlineVideoStreams",jo)});
return Px.all([LZ,oi,st,lZ]).then(function(jo){var gb=_.U(jo);jo=gb.next().value;var Bh=gb.next().value;var Zv=gb.next().value;gb=gb.next().value;return[vY,jo,Bh,Zv,gb]})})}),2);
if(BY.nextAddress!=3)return l=BY.yieldResult,_.K(BY,_.Yf(V,{mode:"readonly",enableRetries:!0},function(ON){return LW(ON,"mainDownloadsListEntity").then(function(vY){var LZ,oi;return(oi=(LZ=vY[0])==null?void 0:LZ.downloads)!=null?oi:[]})}),3);
I=BY.yieldResult;H=_.U(l);T=H.next().value;x=H.next().value;n=H.next().value;w=H.next().value;N=H.next().value;L=T;e=x;k=n;X=w;r=N;E={};D={};Z={};S={};p={};Vf=[];C=_.U(e);for(By=C.next();!By.done;By=C.next())(lN=By.value)&&(E[lN.key]=lN);wW=_.U(k);for(o1=wW.next();!o1.done;o1=wW.next())(h1=o1.value)&&(D[h1.key]=h1);ec=_.U(r);for(Zg=ec.next();!Zg.done;Zg=ec.next())(Va=Zg.value)&&(Z[Va.key]=Va);wb=_.U(X);for(CK=wb.next();!CK.done;CK=wb.next())(CZ=CK.value)&&(S[CZ.key]=CZ);ME=_.U(I);for(Hw=ME.next();!Hw.done;Hw=
ME.next())uZ=Hw.value,EN=void 0,p[(EN=uZ.videoItem)!=null?EN:""]=!0,uZ.videoItem&&(Dv=ya=void 0,Tf=(Dv=(ya=_.TV(uZ.videoItem))==null?void 0:ya.entityId)!=null?Dv:"",Vf.push({externalVideoId:Tf}));Oq=L.filter(function(ON){if(!ON||!ON.key||!ON.offlineVideoPolicy)return!1;ON=_.TV(ON.key).entityId;ON=_.Ul(ON,"downloadStatusEntity");var vY;return!(ON&&((vY=Z[ON])==null?void 0:vY.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Ut=Oq.map(function(ON){var vY=E[ON.transfer],LZ=[];if(vY==null?0:vY.offlineVideoStreams)for(var oi=_.U(vY.offlineVideoStreams),lZ=oi.next();!lZ.done;lZ=oi.next())(lZ=S[lZ.value])&&LZ.push(lZ);oi=D[ON.offlineVideoPolicy];lZ=p;var st=ON==null?void 0:ON.playerResponseTimestamp,jo=_.TV(oi.key).entityId;ON=_.Ul(jo,"mainVideoEntity");if(oi.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var gb="OFFLINE_VIDEO_STATE_DISABLED";oi.expirationTimestamp&&Number(oi.expirationTimestamp)<Date.now()/1E3&&(gb="OFFLINE_VIDEO_STATE_EXPIRED")}else if(oi.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")gb="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(vY==null?void 0:vY.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":gb="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":gb="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":gb="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":gb="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":gb="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":gb="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:gb="OFFLINE_VIDEO_STATE_UNKNOWN"}if(gb==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(vY==null?void 0:vY.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":gb="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":gb="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":gb=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}jo={id:jo,videoState:gb};if(vY==null?0:vY.cotn)jo.cotn=vY.cotn;if(vY==null?0:vY.maximumDownloadQuality)jo.selectedVideoQuality=vY==null?void 0:vY.maximumDownloadQuality;if(vY==null?0:vY.lastProgressTimeMs)jo.lastProgressTimeMs=vY.lastProgressTimeMs;st&&(jo.playerResponseSavedTimeMs=String(Number(st)*1E3));vY=String;st=0;LZ=_.U(LZ);for(gb=LZ.next();!gb.done;gb=LZ.next())if(gb=gb.value,gb.streamsProgress){gb=_.U(gb.streamsProgress);for(var Bh=gb.next();!Bh.done;Bh=
gb.next()){var Zv=void 0;st+=Number((Zv=Bh.value.numBytesDownloaded)!=null?Zv:0)}}jo.downloadedBytes=vY(st);jo.selectedOfflineMode=lZ[ON]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";oi.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(jo.offlinePlaybackDisabledReason=oi.offlinePlaybackDisabledReason);return jo});
return BY.return({offlineVideos:Ut,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:Vf}}})})};
uZw=function(){var V;return _.d(function(l){return l.nextAddress==1?_.K(l,_.Nr(),2):(V=l.yieldResult)?l.return(_.ARt(V)):l.return({state:"PES Unavailable"})})};
Cs1=function(){var V,l,I,H;return _.d(function(T){if(T.nextAddress==1)return _.K(T,_.Nr(),2);if(T.nextAddress!=3)return(V=T.yieldResult)?_.K(T,v8y(V),3):T.return({state:"PES Unavailable"});l=T.yieldResult;I={};H=l.reduce(function(x,n){x[n.key]=n;return x},I);
return T.return(Oyy(H))})};
Oyy=function(V){for(var l={},I=[],H=_.U(Object.keys(V)),T=H.next();!T.done;T=H.next()){var x=T.value;T=V[x];var n=void 0;if(((n=T)==null?void 0:n.entityType)==="mainVideoEntity"){delete V[x];var w=T.data;T={};if(w){var N=void 0;n=(N=w.videoId)!=null?N:"vid-"+x;x=V;T.video=w;delete T.video.formattedDescription;delete T.video.thumbnail;w.owner&&(N=x[w.owner],N==null?0:N.data)&&(delete x[N.key],T.video.owner=N.data,delete T.video.owner.avatar);if(w=w.downloadState)if(N=x[w],N==null?0:N.data)if(delete x[w],
w=N.data.playbackData)if(N=x[w],N!=null&&N.data){delete x[w];w=N.data;delete w.playerResponseJson;T.playbackData=w;if(w.transfer&&(N=x[w.transfer],N==null?0:N.data)){delete x[N.key];var L=N.data;T.transfer=L;N=[];L=_.U(L.offlineVideoStreams||[]);for(var e=L.next();!e.done;e=L.next())if(e=x[e.value])delete x[e.key],N.push(e.data);N&&(T.streams=N)}(w=w.offlineVideoPolicy)&&(w=x[w])&&w.data&&(delete x[w.key],T.offlineVideoPolicy=w.data)}l[n]=T}}else T&&T.entityType==="offlineOrchestrationActionWrapperEntity"&&
T.data&&(delete V[T.key],n=T.data,x=void 0,I.push({id:n.rootActionId,type:((x=n.actionProto)==null?void 0:x.actionType)||"",entity:T}))}l.wrapperEntities=I;Object.keys(V).length>0&&(l.unknownKeys=V);return l};
aMc=function(){var V,l,I,H,T,x,n,w,N;return _.d(function(L){if(L.nextAddress==1)return V=!!(new _.h2("")).expiringStorage_,H=!!((l=_.nK.crypto)==null?0:(I=l.subtle)==null?0:I.importKey),T=!!_.nK.BroadcastChannel,x=!!_.nK.navigator.locks,_.K(L,QAc(),2);n=L.yieldResult;w=V&&H&&T&&x&&n;N={isSupported:w};if(w)return L.return(N);N.missingBrowserFeatures=[];n||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");V||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
H||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");T||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");x||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return L.return(N)})};
fMg=function(){var V;return!((V=Y_?Y_:null)==null||!V.window)};
_.m1c=function(V){if(_.Py()&&_.K3c("Chromium")>=120){var l=_.g8c().mediaSession;try{l.setActionHandler("enterpictureinpicture",function(){V()})}catch(I){}}};
iyq=function(V){for(var l=[],I=_.U(document.styleSheets),H=I.next(),T={};!H.done;T={node$jscomp$719:void 0},H=I.next())T.node$jscomp$719=H.value.ownerNode,T.node$jscomp$719&&(T.node$jscomp$719 instanceof HTMLStyleElement||T.node$jscomp$719 instanceof HTMLLinkElement)&&l.push(new Promise(function(x){return function(n){var w=x.node$jscomp$719.cloneNode(!0);w.onload=function(){n()};
w.onerror=function(){_.hF(Error("hj"));n()};
V.document.head.appendChild(w)}}(T)));
return Promise.all(l)};
$mg=function(V){var l=[_.Ig(VRf),_.Ig(lGt),_.Ig(IGt)];HcK(window.document.documentElement,V.document.documentElement,[_.Ig(T8J),_.Ig(B8q),_.Ig(xmT),_.Ig(UmN),_.Ig(nyt)]);HcK(window.document.body,V.document.body,l)};
HcK=function(V,l,I){V=_.U(V.attributes);for(var H=V.next();!H.done;H=V.next())if(H=H.value)try{_.VJ(I,l,H.name,H.value)}catch(T){}};
wRt=function(V,l){V=new _.Ll(V.document.documentElement);V.start(dmJ,l);return V};
N8y=function(V){var l=V.document.documentElement;l.addEventListener("click",function(I){b21(l,I)});
l.addEventListener("touchstart",function(I){Anf(I)});
l.addEventListener("mousedown",function(I){Anf(I)})};
jbT=function(V,l,I,H){H=H===void 0?!1:H;l=new KH3(l||V,I||V);return{x:V.x+((H===void 0?0:H)?l.lengthX*-1:l.lengthX)*.2,y:V.y+((H===void 0?0:H)?l.lengthY*-1:l.lengthY)*.2}};
YrW=function(V){if(!V)return!1;var l=V.status==="OK"||V.status==="LIVE_STREAM_OFFLINE",I,H,T,x=(T=(I=V.errorScreen)==null?void 0:I.playerLegacyDesktopYpcTrailerRenderer)!=null?T:(H=V.errorScreen)==null?void 0:H.ypcTrailerRenderer;return!!l||!!x};
_.LHW=function(V,l){if(!V)return!1;var I,H=(I=V.errorScreen)==null?void 0:I.playerLegacyDesktopYpcOfferRenderer,T;l=!!(l==null?0:(T=l.playerOverlayRenderer)==null?0:T.gatedActionsOverlayRenderer);return!!YrW(V)||!!H||!!l};
eWt=function(V){return V.includes("gclid")||V.includes("gad_source")};
kXy=function(V){return new Promise(function(l){window.setTimeout(l,V)})};
FHt=function(V){var l={bicf:function(x){V.hkL=x},
blc:function(){return V.getLatestChallengeResponse()},
bcr:function(x){V.rkT.push(x)}},I=window.top;
I.ntpevasrs=l;if(I.ntpqfbel!==void 0)for(var H=_.U(I.ntpqfbel),T=H.next();!T.done;T=H.next())T=T.value,T(l);I.ntpqfbel=void 0};
XR3=function(V){return _.d(function(l){if(l.nextAddress==1)return _.jd(l,2),_.K(l,V.eli(),4);if(l.nextAddress!=2)return _.Rv(l,0);_.kE(l);_.FU(l)})};
zWg=function(V){var l,I;(l=V.ytcsi)==null||(I=l.tick)==null||I.call(l,"pot_ist")};
yJ3=function(V){if(V instanceof Error){var l=_.SN("yt.logging.errors.log");l&&l(V,"WARNING")}};
tRw=function(V){try{var l=JSON.parse(V);if(l.bgChallenge)return l}catch(I){}};
GXc=function(){var V=window,l={networkStatusManagerPromise:_.F().resolve(new FpJ(_.ca)),initialChallengeSli:_.z("wpo_att_sli")?new _.X6t("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};V=V===void 0?window:V;var I=V.ytAtR,H;l==null||(H=l.initialChallengeSli)==null||_.e7(H);if(I){if(I=tRw(I)){var T;l==null||(T=l.initialChallengeSli)==null||_.k_(T,"SUCCESS");rJw(I,l)}V.ytAtR=void 0}else V.ytAtRC=function(x){if(x=tRw(x)){var n;l==null||(n=l.initialChallengeSli)==null||_.k_(n,
"SUCCESS");rJw(x,l);V.ytAtRC=void 0}}};
oyJ=function(){if(EyT)return EyT;try{var V=_.jk("IFRAME");_.AV(V,_.TP(JJg));V.sandbox.add("allow-same-origin");V.style.display="none";document.body.appendChild(V);return EyT=V}catch(l){V=new _.Yd("Failed to create sandbox iframe"),_.Gr(V)}};
hWw=function(V){var l,I;return(I=V==null?void 0:(l=V.contentWindow)==null?void 0:l.fetch)!=null?I:window.fetch};
PI1=function(V){var l,I;return(I=V==null?void 0:(l=V.contentWindow)==null?void 0:l.JSON.parse)!=null?I:JSON.parse};
Dm1=function(V){var l,I;return(I=V==null?void 0:(l=V.contentWindow)==null?void 0:l.Request)!=null?I:window.Request};
RWW=function(){if(Jog()==="hidden")var V="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Jog()==="visible"&&(V="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",ZcW=null);V&&Sr3(V)};
Sr3=function(V){if(V==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||V==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(Qbt===V)return;Qbt=V}var l=9E4+Math.random()*2E3;if(V!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.f0()>l)&&Jog()==="visible"){l=-1;ZcW&&(l=Math.round((0,_.O_)()-ZcW));var I=String;var H=_.SN("_fact",window);H=H==null||H==-1?-1:Math.max(Date.now()-H,0);_.tF("foregroundHeartbeat",{firstActivityMs:I(H),clientDocumentNonce:ljJ,index:String(cJy),lastEventDeltaMs:String(l),trigger:V});
_.Aq("_fact",-1,window);cJy++;ZcW=(0,_.O_)()}};
_.WH3=function(){try{return!!self.sessionStorage}catch(V){return!1}};
bc3=function(){var V=navigator;return new Promise(function(l,I){var H;(H=V.webkitTemporaryStorage)!=null&&H.queryUsageAndQuota?V.webkitTemporaryStorage.queryUsageAndQuota(function(T,x){l({usage:T,quota:x})},function(T){I(T)}):I(Error("pj"))})};
qrt=function(V,l,I){V.componentType!==e_&&I instanceof HTMLElement&&l&&!_.z("cow_logging_in_component_wrapper")&&qKt(I,l,!0)};
MRK=function(V,l,I){l=l===void 0?{}:l;var H,T=(H=_.y(V.commandMetadata,_.mK))==null?void 0:H.url;H=l.form||{};!I||H.element||H.skipDefaultElement||(l.form=l.form||{},l.form.element=I);if(T&&T!=="/service_ajax")return{type:0,command:V,form:l.form};if(_.z("kevlar_service_command_check")){if(_.SU(_.F().resolve(_.FM),V))return Object.assign({},{type:1,command:V},l)}else{var x;if((x=_.y(V.commandMetadata,_.mK))==null?0:x.apiUrl)return Object.assign({},{type:1,command:V},l)}return{type:2,command:V,form:l.form}};
sbW=function(V){if(V.form){var l=V.form,I=Object.assign({},l);l=l.element;I=(delete I.element,I);if(l)return[_.$B(l,[V.command,I,V.commandController])]}return[]};
pRK=function(V){if(V.form){var l=V.form,I=Object.assign({},l);l=l.element;I=(delete I.element,I);l&&_.d6(l,[V.command],l,I)}};
u7K=function(V,l,I){var H=new AJ1(V,l),T=new Fz(V,l,I);V={"/youtubei/v1/browse":new Xz(V,l,I),"/youtubei/v1/player":H,"/youtubei/v1/navigation/resolve_url":new za,"/youtubei/v1/next":T,"/youtubei/v1/guide":new y3(I),"/youtubei/v1/search":new ti(V,l,I),"/youtubei/v1/reel/reel_item_watch":new rE(V,l,I),"/youtubei/v1/get_watch":new Ga(H,T)};V["/youtubei/v1/account/account_menu"]=new EH;V["/youtubei/v1/notification/get_notification_menu"]=new Ji;return V};
hi=function(){var V=_.F().resolve(oK);return Promise.resolve(vyt(V,_.nK.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Ocw=function(V){return V&&(V=_.PA(_.nKq(V)))?(new URLSearchParams(V)).get("service"):null};
S7=function(V,l){_.vX(_.Dk(),function(){_.Z8("adl")});
_.F().resolve(CIy)(l);V=V.root;V.loadData&&V.loadData(l);(l==null?0:l.response)?_.k_(tJ3(),"SUCCESS"):_.hF(new _.Yd("Lifecycle: No response in data",_.PO("IS_SHELL_LOAD"),l?l.page:"NO_PAGE",l?l.endpoint:"NO_ENDPOINT"));V.polymerController.$["page-manager"].lazyPrepareCriticalPages((l==null?void 0:l.page)||"",l.endpoint);var I,H;((H=_.y(l==null?void 0:(I=l.endpoint)==null?void 0:I.commandMetadata,_.mK))==null?0:H.webPageType)&&_.v4().dispatch(_.Zk(_.y(l.endpoint.commandMetadata,_.mK).webPageType))};
aGg=function(){var V,l;return _.d(function(I){switch(I.nextAddress){case 1:V=window;if(!V.getDataPromise){I.jumpTo(2);break}_.jd(I,3);return _.K(I,V.getDataPromise(),5);case 5:return I.return(I.yieldResult);case 3:return _.kE(I),_.K(I,hi(),6);case 6:return I.return(I.yieldResult);case 2:if(V.getInitialData)return l=V.getInitialData(),V.getInitialData=void 0,I.return(l);throw Error("rj`"+_.nK.location.href);}})};
gyg=function(){_.ow("CSI_SERVICE_NAME","youtube");_.P$({loadType:"cold"});_.z("kevlar_log_lcp")&&fG3(function(V){_.Z8("lcp",V.value)})};
mmc=function(){var V=_.Qo(document.location.href,"enable");V&&V.indexOf("scraper")>-1&&_.ow("ADD_SCRAPER_ATTRIBUTES",!0)};
H31=function(V){var l=V.root;V=[icW,Vet,_.RK];_.z("web_feedback_endpoint_autolog_allowlist_killswitch")&&V.push(_.Q3,lFf);IFt(function(I,H){return MRK(I,H,l)},function(I){if(!I.command)return[];
var H;((H=I.form)==null?0:H.element)?I.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},I.form,{endpoint:I.command})})):l.handleNavigate(I);return[]},V);
_.F().addProvider({provide:_.aw,useValue:_.li.instance})};
BDf=function(){var V={},l={},I;for(I in TDg){var H=_.U(_.xi(TDg[I],void 0,"UAX5pb"));V[I]=H.next().value;l[I]=H.next().value}return[V,function(T){for(var x in T){var n=void 0;(n=l[x])==null||n(T[x])}}]};
_.nPc=function(V,l){var I=_.EL.getValueByKeys(V,"contents","twoColumnWatchNextResults","results","results","contents"),H=_.EL.getValueByKeys(V,"contents","twoColumnWatchNextResults","playlist","playlist")||null,T=null,x=null;if(H)T=_.EL.getValueByKeys(H,"titleText"),x=_.EL.unsafeClone(_.EL.getValueByKeys(H,"longBylineText")),I="",x&&(I=_.A5(x)),x=_.pW(I);else if(I){I=_.U(I);for(var n=I.next();!n.done;n=I.next())n=n.value,n.videoPrimaryInfoRenderer&&(T=_.EL.getValueByKeys.apply(_.EL,[n].concat(_.oI(xGf)))),
n.videoSecondaryInfoRenderer&&(x=_.EL.getValueByKeys.apply(_.EL,[n].concat(_.oI(UG1))))}else _.Rw(Error("wj"));var w;V.currentVideoEndpoint?w=V.currentVideoEndpoint:_.Rw(Error("xj"));var N;l&&(N=_.EL.getValueByKeys(l,"playabilityStatus","miniplayer","miniplayerRenderer"));V={miniplayerTitle:T,miniplayerSubtitle:x,watchEndpoint:w,playlistData:H};N&&(V.miniplayerRenderer=N);return V};
$Gg=function(V){if(V)return _.Fo(V)};
_.dGK=function(){return{isFullscreen:function(){throw Error("yj");},
toggleFullscreen:function(){throw Error("zj");},
exitFullscreen:function(){throw Error("Aj");},
isAutonavEnabled:function(){throw Error("Bj");},
setAutonavEnabled:function(){throw Error("Cj");},
isAutoplaySetExplicitly:function(){throw Error("Dj");}}};
w53=function(V){return V.videoDuration?V.numTaps>1&&V.tapDirection!==0?_.cA(V.draggedTime/V.videoDuration,0,1):_.cA((V.playedTime||0)/V.videoDuration,0,1):0};
ND3=function(V){return V.videoDuration?V.isDragging||V.numTaps>1&&V.tapDirection!==0?_.cA(V.draggedTime/V.videoDuration,0,1):_.cA((V.playedTime||0)/V.videoDuration,0,1):0};
j0N=function(V){var l,I,H;return _.y(V==null?void 0:(l=V.markersMap)==null?void 0:(I=l.find(function(T){return T.key==="HEATSEEKER"}))==null?void 0:(H=I.value)==null?void 0:H.heatmap,KvN)};
Y0c=function(V){var l,I;return(I=(l=j0N(V))==null?void 0:l.heatMarkersDecorations)!=null?I:[]};
Lvt=function(V){if(_.z("mweb_supported_chapters_killswitch"))return!0;var l;return!!(V==null?0:(l=V.markersMap)==null?0:l.find(function(I){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(I.key)}))};
_.ezt=function(V){var l=Object,I=l.assign,H;V={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(H=V==null?void 0:V.getPlayerState())!=null?H:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return I.call(l,{},{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},V,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
k5y=function(V){return function(l){var I=V(),H,T=(H=I.playerApi)==null?void 0:H.getPlayerState();l&&l!==I.playerState&&(l===1||l===2)&&I.setState({playerState:T})}};
X5J=function(V){return function(l){var I=V(),H=I.playerApi;H&&(l==null?void 0:l.type)==="newdata"&&(FvN&&(clearTimeout(FvN),FvN=void 0),_.z("web_shorts_use_progress_state_for_gapless")?(l=H==null?void 0:H.getProgressState(l==null?void 0:l.playertype),l=l.seekableEnd-l.seekableStart):l=H==null?void 0:H.getDuration(l==null?void 0:l.playertype),I.setState({playedTime:0,videoDuration:l}))}};
zz1=function(V){return function(l){var I=V(),H=I.playerApi;if(H){var T=H.getPresentingPlayerType();_.z("web_shorts_use_progress_state_for_gapless")?(H=H.getProgressState(T),H=H.seekableEnd-H.seekableStart):H=H.getDuration(T);I.setState({playedTime:l,videoDuration:H})}}};
rE3=function(V){var l=V.element;var I=V.veType;var H=V.storedVisualElement===void 0?null:V.storedVisualElement;var T=V.elementIndex===void 0?0:V.elementIndex;V=V.clientYouTubeData;var x=_.oa();x!==yET&&(tey.clear(),yET=x);if(l.visualElement&&tey.has(l.visualElement))return null;if(H&&tey.has(H))return l.visualElement=H,null;I=_.BX(_.x7(),{veType:I,elementIndex:T,clientYouTubeData:V});if(!I)return null;l.visualElement=I;tey.add(I);return I};
_.WA=function(V,l,I,H){I=I===void 0?null:I;H=H===void 0?qFq:H;var T=T===void 0?null:T;jz(function(){if(l){I instanceof Function&&(I=I());var x=rE3({element:l,veType:V,storedVisualElement:I,clientYouTubeData:void 0});x&&(pCw(l,T),H(x))}})};
EP1=function(V){_.WA(112394,V,function(){return G5J},function(l){G5J=l})};
hzf=function(V,l){if(!V)return[];var I,H,T;V=((I=V.markersMap)==null?void 0:(H=I.find(function(x){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(x.key)}))==null?void 0:(T=H.value)==null?void 0:T.chapters)||[];
!JEw(V)||(l==null?0:l.ignoreStub)||(V=[oPf()].concat(_.oI(V)));return V};
oPf=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
JEw=function(V){if(V.length===0)return!1;var l;return((l=_.y(V[0],bR))==null?void 0:l.timeRangeStartMillis)!==0};
qY=function(V){return V?V.timeRangeStartMillis||0:0};
DG3=function(V,l){if(V.isDragging&&l)return V=Pk1(V,l),V===-1?oPf():hzf(l)[V]};
Pk1=function(V,l){return V.isDragging&&l?hzf(l,{ignoreStub:!0}).findIndex(function(I,H,T){I=Z31(V);return S0t(I,T,H).scrubberHovering}):-1};
Z31=function(V){return Object.assign({},V,{videoDuration:V.videoDuration*1E3,playedTime:V.playedTime*1E3,draggedTime:V.draggedTime*1E3})};
S0t=function(V,l,I){var H=qY(_.y(l[I],bR));l=qY(_.y(l[I+1],bR))||V.videoDuration;I=V.isDragging;var T;if(T=V.isDragging)T=V.draggedTime,T=T!==null&&T>=H&&T<l;var x=V.playedTime;return x!==null&&x>=H&&x<l?{videoPosition:"active",isScrubbing:I,scrubberHovering:T}:V.playedTime<H?{videoPosition:"pending",isScrubbing:I,scrubberHovering:T}:{videoPosition:"seen",isScrubbing:I,scrubberHovering:T}};
Rzt=function(V,l){return V.videoPosition==="seen"||(l===void 0?0:l)>0};
Q03=function(V,l,I){l=V/l.storyboardInterval;var H=hzf(I);if(!H.length)return-l*72;I=0;H=_.U(H);for(var T=H.next();!T.done;T=H.next())if(qY(_.y(T.value,bR))/1E3<V)I++;else break;return-(l*72)-I*56};
cEW=function(V){return V?V.width/V.columns:0};
WvW=function(V){return V.isHovering?V.hoveredTime:V.draggedTime};
b3t=function(V,l){V=V.draggedTime*1E3;return V>=l.visibleTimeRangeStartMillis&&V<=l.visibleTimeRangeEndMillis};
_.q0w=function(V){if(V===void 0||Number.isNaN(V))return"--:--";var l=Math.abs(Math.floor(V)),I=Math.floor(l/86400),H=Math.floor(l%86400/3600),T=Math.floor(l%3600/60);l=Math.floor(l%60);var x="";I>0&&(x+=I+":",H<10&&(x+="0"));if(I>0||H>0)x+=H+":",T<10&&(x+="0");x+=T+":";l<10&&(x+="0");x+=l;return V>=0?x:"-"+x};
Mec=function(V,l){return function(){var I=WvW(V());var H=l();var T=V().playerApi;if(T&&T.getNumberOfStoryboardLevels()!==0){var x=T.getStoryboardFrameIndex(I,1);x!==-1?H=T.getStoryboardFrame(x,1):(I=T.getStoryboardFrameIndex(I,0),T=T.getStoryboardFrame(I,0),H&&T&&(T.height*=3,T.width*=3),H=T)}else H=null;if(!H)return null;l()&&(H.width=90*H.columns,H.height=160*H.rows);return H}};
_.MY=function(V){if(!V||V.getVideoData)return V};
s0W=function(){var V;return{playerApi:(V=_.F().resolve(_.lP)())!=null?V:void 0}};
_.O3t=function(V){function l(S){S!==0||e?S>50&&(e||!X)?(k(!1),r(!0)):S<=50&&(e||X)&&(k(!1),r(!1)):k(!0)}
function I(){var S;return _.d(function(p){if(p.nextAddress==1)return _.K(p,_.I6(),2);(S=p.yieldResult)&&(S.isMuted()?k(!0):k(!1));_.FU(p)})}
var H=V.noSlider;V=_.sZ();var T=_.sZ(),x=_.pO(),n=_.U(BK(!1)),w=n.next().value,N=n.next().value,L=_.U(BK(!1));n=L.next().value;L=L.next().value;var e=n,k=L;L=_.U(BK(!0));n=L.next().value;L=L.next().value;var X=n,r=L;_.XW(function(){function S(){N(!0)}
function p(){N(!1)}
H?(I(),l(e?0:100)):x&&x.value&&(x.value.addEventListener("focus",S),x.value.addEventListener("focusout",p),p5t(x.value).then(function(){l(Number(AEq(x.value)))}));
T&&T.value&&(T.value.addEventListener("focus",S),T.value.addEventListener("focusout",p));return function(){var Vf;x==null||(Vf=x.value)==null||Vf.removeEventListener("focus",S);var C;x==null||(C=x.value)==null||C.removeEventListener("focusout",p);T.value.removeEventListener("focus",S);T.value.removeEventListener("focusout",p)}});
var E=_.Bu(function(){if(x&&x.value){var S=Number(AEq(x.value));uSK(S);x.value.style.setProperty("--gradient-percent",S+"%");l(S)}return!1});
n={};var D=(n.ytdDesktopShortsVolumeControlsSliderContainer=!0,n.ytdDesktopShortsVolumeControlsSliderContainerExpanded=w,n);n={};w=(n.ytdDesktopShortsVolumeControlsBackgroundScrim=!0,n.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=H?!1:w,n);_.AF(T,"pointerenter",function(){N(!0)});
_.AF(V,"pointerleave",function(){N(!1)});
n=_.Bu(function(){if(x&&x.value||H)vPf(x.value,e,H),k(!e);return!1});
L=_.z("web_shorts_keyboard_enable_mute_shortcut")?e?_.LT("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.LT("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):e?_.LT("UNMUTE_VOLUME",void 0,"Unmute"):_.LT("MUTE_VOLUME",void 0,"Mute");var Z={sources:[{clientResource:{imageName:e?"VOLUME_OFF_FILLED":X?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};return _.Y("desktop-shorts-volume-controls",{class:"ytdDesktopShortsVolumeControlsHost",el:V},_.Y("div",{class:_.l8(w)}),_.Y("button",{"aria-label":L,title:L,el:T,"on:click":n,
class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Z?_.Y(_.cX,{data:Z,alt:L,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null),_.uO(!H,function(){return _.Y("div",{class:_.l8(D)},_.Y("input",{"aria-label":_.LT("VOLUME"),title:_.LT("VOLUME"),el:x,"on:input":E,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
p5t=function(V){var l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,_.I6(),2);l=H.yieldResult;I=50;l&&(I=l.getVolume(),l.isMuted()?CkN(V,0):CkN(V,I));_.FU(H)})};
uSK=function(V){var l;_.d(function(I){if(I.nextAddress==1)return _.K(I,_.I6(),2);if(l=I.yieldResult)l.unMute(!0),l.setVolume(V,!0);_.FU(I)})};
CkN=function(V,l){V&&(V.value=""+l,V.style.setProperty("--gradient-percent",l+"%"))};
AEq=function(V){var l;return(l=V==null?void 0:V.value)!=null?l:0};
vPf=function(V,l,I){var H;_.d(function(T){if(T.nextAddress==1)return _.K(T,_.I6(),2);H=T.yieldResult;l&&H?(H.unMute(!0),!I&&V&&CkN(V,H.getVolume())):H&&(H.mute(!0),!I&&V&&CkN(V,0));_.FU(T)})};
aFw=function(){var V;_.d(function(l){if(l.nextAddress==1)return _.K(l,_.I6(),2);V=l.yieldResult;if(!V)return l.return();V.isMuted()?V.unMute(!0):V.mute(!0);_.FU(l)})};
fFq=function(V){var l=_.F().resolve(_.sH).getPlayerElement();l&&V&&(V===1?l.pause():l.play())};
gPN=function(V){_.U4(V,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
mGy=function(V){_.U4(V,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
V83=function(V){return _.eN(V.document.body,function(){return _.Y(i3y,null)})};
lyT=function(){var V=window.performance.getEntriesByType("navigation");return V?V.map(function(l){return l.type}).includes("reload"):!1};
$g1=function(){pl(pl(pl(pl(pl(pl(pl(_.F().resolve(_.Ai),_.Iyt),_.H91),_.THg),_.BHJ),_.xgy),_.UgT),_.nZJ)};
dgt=function(V,l){l=l===void 0?!1:l;var I,H,T,x;return _.d(function(n){if(n.nextAddress==1)return l||!_.z("kevlar_shorts_seedless_retry_initial_load")||(I=window,H=!(!I.getDataPromise&&!I.getInitialData),H)?_.K(n,aGg(),2):(setTimeout(dgt.bind(window,V,!0),1E3),n.return());if(n.nextAddress!=3)return T=n.yieldResult,_.K(n,wWf(T),3);x=n.yieldResult;S7(V,x);_.FU(n)})};
wWf=function(V){var l;if((l=V.response)==null||!l.replacementEndpoint)return _.w6(V);l=_.F().resolve(oK);V=V.response;_.y(V.replacementEndpoint,_.YV)&&V.sequenceContinuation&&(_.y(V.replacementEndpoint,_.YV).sequenceParams=V.sequenceContinuation);return uR(l,V.replacementEndpoint,{},_.nK.location.href,"shorts",function(){},function(){return!1})};
NH1=function(V){var l=_.v4(),I,H=_.y((I=V.response)==null?void 0:I.frameworkUpdates,Wu),T;I=_.y((T=V.playerResponse)==null?void 0:T.frameworkUpdates,Wu);var x;V=_.y((x=V.reelWatchSequenceResponse)==null?void 0:x.frameworkUpdates,Wu);H&&_.js(H,l);I&&_.js(I,l);V&&_.js(V,l)};
KtN=function(V){var l;_.z("enable_redirect_linking_for_desktop_web_client")&&((l=window.location.hash)==null?0:l.includes("redirect_state"))&&V.url&&(V.url=V.url.toString()+window.location.hash)};
Ltt=function(V){var l=_.F(),I=l.resolve(oK);l=l.resolve(_.j4y);V.endpoint&&(I=YGT(I,V.endpoint),I.content&&V.response&&_.vA(l,V.response,I.content),I.player&&V.playerResponse&&_.vA(l,V.playerResponse,I.player),I.reelSequence&&V.reelWatchSequenceResponse&&_.vA(l,V.reelWatchSequenceResponse,I.reelSequence))};
OH=function(V,l){NH1(l);var I;(l==null?0:l.url)&&((I=window.location.hash)==null?0:I.includes("redirect_state"))&&(KtN(l),(I=Ocw(l.url))&&_.xB(V.root,"yt-initialize-third-party",[I,l]));Ltt(l);I=_.F();var H=I.resolve(eCc);l.playerResponse&&I.resolve(kyc).handleResponse(l.playerResponse);if(l.playerResponse){I=void 0;if(_.z("ab_v_vid_sig")&&l.endpoint){var T,x=(T=_.y(l.endpoint,_.vU))!=null?T:_.y(l.endpoint,_.YV);x&&(I=x.videoId)}FtJ(H,l.playerResponse,I)}l.playerResponse&&Uoq(l.playerResponse)&&_.z("web_enable_ab_rsp_cl")?
ktc().then(function(){XWf(H,l.playerResponse);S7(V,l)}):S7(V,l)};
yWt=function(V){if(V=V.root.data){var l=_.F().resolve(zCt);V.endpoint&&(V.response&&l.handleResponse(V.response,void 0,document.querySelector("ytd-app")),V.playerResponse&&l.handleResponse(V.playerResponse),V.reelWatchSequenceResponse&&l.handleResponse(V.reelWatchSequenceResponse))}};
t8J=function(V){var l,I,H,T,x,n;return _.d(function(w){switch(w.nextAddress){case 1:l=window;if(!l.getDataPromise){w.jumpTo(2);break}_.jd(w,3);return _.K(w,l.getDataPromise(),5);case 5:I=w.yieldResult;OH(V,I);_.Rv(w,4);break;case 3:return _.kE(w),_.K(w,hi(),6);case 6:H=w.yieldResult,S7(V,H);case 4:return w.return();case 2:if(!_.z("sw_nav_preload_pbj")){w.jumpTo(7);break}l.fetchInitialData=function(){var N;return _.d(function(L){if(L.nextAddress==1)return _.K(L,hi(),2);N=L.yieldResult;S7(V,N);_.FU(L)})};
if(l.getInitialData){l.loadInitialData=function(N){OH(V,N)};
T=l.getInitialData();l.getInitialData=void 0;OH(V,T);w.jumpTo(8);break}l.fetchInitialData=void 0;return _.K(w,hi(),9);case 9:x=w.yieldResult,S7(V,x);case 8:return w.return();case 7:l.getInitialData?(n=l.getInitialData(),l.getInitialData=void 0,OH(V,n)):l.loadInitialData=function(N){OH(V,N)},_.FU(w)}})};
rW3=function(V){var l=0;return function(){return l<V.length?{done:!1,value:V[l++]}:{done:!0}}};
GyK=typeof Object.defineProperties=="function"?Object.defineProperty:function(V,l,I){if(V==Array.prototype||V==Object.prototype)return V;V[l]=I.value;return V};
EZf=function(V){V=["object"==typeof globalThis&&globalThis,V,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var l=0;l<V.length;++l){var I=V[l];if(I&&I.Math==Math)return I}throw Error("a");};
_.vI=EZf(this);Cl=function(V,l){if(l)a:{var I=_.vI;V=V.split(".");for(var H=0;H<V.length-1;H++){var T=V[H];if(!(T in I))break a;I=I[T]}V=V[V.length-1];H=I[V];l=l(H);l!=H&&l!=null&&GyK(I,V,{configurable:!0,writable:!0,value:l})}};
Cl("Symbol",function(V){if(V)return V;var l=function(x,n){this.$jscomp$symbol$id_=x;GyK(this,"description",{configurable:!0,writable:!0,value:n})};
l.prototype.toString=function(){return this.$jscomp$symbol$id_};
var I="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",H=0,T=function(x){if(this instanceof T)throw new TypeError("b");return new l(I+(x||"")+"_"+H++,x)};
return T});
Cl("Symbol.iterator",function(V){if(V)return V;V=Symbol("c");for(var l="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),I=0;I<l.length;I++){var H=_.vI[l[I]];typeof H==="function"&&typeof H.prototype[V]!="function"&&GyK(H.prototype,V,{configurable:!0,writable:!0,value:function(){return JWq(rW3(this))}})}return V});
Cl("Symbol.asyncIterator",function(V){return V?V:Symbol("d")});
var JWq=function(V){V={next:V};V[Symbol.iterator]=function(){return this};
return V},oZJ=typeof Object.create=="function"?Object.create:function(V){var l=function(){};
l.prototype=V;return new l},hCN=function(){function V(){function I(){}
new I;Reflect.construct(I,[],function(){});
return new I instanceof I}
if(typeof Reflect!="undefined"&&Reflect.construct){if(V())return Reflect.construct;var l=Reflect.construct;return function(I,H,T){I=l(I,H);T&&Reflect.setPrototypeOf(I,T.prototype);return I}}return function(I,H,T){T===void 0&&(T=I);
T=oZJ(T.prototype||Object.prototype);return Function.prototype.apply.call(I,T,H)||T}}(),PqJ;
if(typeof Object.setPrototypeOf=="function")PqJ=Object.setPrototypeOf;else{var Dg1;a:{var Z93={a:!0},SGg={};try{SGg.__proto__=Z93;Dg1=SGg.a;break a}catch(V){}Dg1=!1}PqJ=Dg1?function(V,l){V.__proto__=l;if(V.__proto__!==l)throw new TypeError("e`"+V);return V}:null}_.aK=PqJ;
_.t=function(V,l){V.prototype=oZJ(l.prototype);V.prototype.constructor=V;if(_.aK)(0,_.aK)(V,l);else for(var I in l)if(I!="prototype")if(Object.defineProperties){var H=Object.getOwnPropertyDescriptor(l,I);H&&Object.defineProperty(V,I,H)}else V[I]=l[I];V.superClass_=l.prototype};
_.U=function(V){var l=typeof Symbol!="undefined"&&Symbol.iterator&&V[Symbol.iterator];if(l)return l.call(V);if(typeof V.length=="number")return{next:rW3(V)};throw Error("f`"+String(V));};
pS=function(V){for(var l,I=[];!(l=V.next()).done;)I.push(l.value);return I};
_.oI=function(V){return V instanceof Array?V:pS(_.U(V))};
_.fl=function(V){return RCc(V,V)};
RCc=function(V,l){V.raw=l;Object.freeze&&(Object.freeze(V),Object.freeze(l));return V};
gE=function(V,l){return Object.prototype.hasOwnProperty.call(V,l)};
Q4W=typeof Object.assign=="function"?Object.assign:function(V,l){for(var I=1;I<arguments.length;I++){var H=arguments[I];if(H)for(var T in H)gE(H,T)&&(V[T]=H[T])}return V};
Cl("Object.assign",function(V){return V||Q4W});
var cWf=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},WtW=function(V){if(V.isRunning_)throw new TypeError("h");
V.isRunning_=!0};
cWf.prototype.JSC$6601_next_=function(V){this.yieldResult=V};
var b9T=function(V,l){V.abruptCompletion_={exception:l,isException:!0};V.nextAddress=V.catchAddress_||V.finallyAddress_};
cWf.prototype.return=function(V){this.abruptCompletion_={return:V};this.nextAddress=this.finallyAddress_};
_.K=function(V,l,I){V.nextAddress=I;return{value:l}};
cWf.prototype.jumpTo=function(V){this.nextAddress=V};
_.FU=function(V){V.nextAddress=0};
_.jd=function(V,l,I){V.catchAddress_=l;I!=void 0&&(V.finallyAddress_=I)};
_.Lk=function(V,l){V.catchAddress_=0;V.finallyAddress_=l||0};
_.Rv=function(V,l,I){V.nextAddress=l;V.catchAddress_=I||0};
_.kE=function(V,l){V.catchAddress_=l||0;l=V.abruptCompletion_.exception;V.abruptCompletion_=null;return l};
_.YE=function(V,l,I,H){H?V.finallyContexts_[H]=V.abruptCompletion_:V.finallyContexts_=[V.abruptCompletion_];V.catchAddress_=l||0;V.finallyAddress_=I||0};
_.ed=function(V,l,I){I=V.finallyContexts_.splice(I||0)[0];(I=V.abruptCompletion_=V.abruptCompletion_||I)?I.isException?V.nextAddress=V.catchAddress_||V.finallyAddress_:I.jumpTo!=void 0&&V.finallyAddress_<I.jumpTo?(V.nextAddress=I.jumpTo,V.abruptCompletion_=null):V.nextAddress=V.finallyAddress_:V.nextAddress=l};
_.qGc=function(V){this.JSC$6606_context_=new cWf;this.program_=V};
s4K=function(V,l){WtW(V.JSC$6606_context_);var I=V.JSC$6606_context_.yieldAllIterator_;if(I)return M8t(V,"return"in I?I["return"]:function(H){return{value:H,done:!0}},l,V.JSC$6606_context_.return);
V.JSC$6606_context_.return(l);return mS(V)};
M8t=function(V,l,I,H){try{var T=l.call(V.JSC$6606_context_.yieldAllIterator_,I);if(!(T instanceof Object))throw new TypeError("g`"+T);if(!T.done)return V.JSC$6606_context_.isRunning_=!1,T;var x=T.value}catch(n){return V.JSC$6606_context_.yieldAllIterator_=null,b9T(V.JSC$6606_context_,n),mS(V)}V.JSC$6606_context_.yieldAllIterator_=null;H.call(V.JSC$6606_context_,x);return mS(V)};
mS=function(V){for(;V.JSC$6606_context_.nextAddress;)try{var l=V.program_(V.JSC$6606_context_);if(l)return V.JSC$6606_context_.isRunning_=!1,{value:l.value,done:!1}}catch(I){V.JSC$6606_context_.yieldResult=void 0,b9T(V.JSC$6606_context_,I)}V.JSC$6606_context_.isRunning_=!1;if(V.JSC$6606_context_.abruptCompletion_){l=V.JSC$6606_context_.abruptCompletion_;V.JSC$6606_context_.abruptCompletion_=null;if(l.isException)throw l.exception;return{value:l.return,done:!0}}return{value:void 0,done:!0}};
_.pWt=function(V){this.next=function(l){WtW(V.JSC$6606_context_);V.JSC$6606_context_.yieldAllIterator_?l=M8t(V,V.JSC$6606_context_.yieldAllIterator_.next,l,V.JSC$6606_context_.JSC$6601_next_):(V.JSC$6606_context_.JSC$6601_next_(l),l=mS(V));return l};
this.throw=function(l){WtW(V.JSC$6606_context_);V.JSC$6606_context_.yieldAllIterator_?l=M8t(V,V.JSC$6606_context_.yieldAllIterator_["throw"],l,V.JSC$6606_context_.JSC$6601_next_):(b9T(V.JSC$6606_context_,l),l=mS(V));return l};
this.return=function(l){return s4K(V,l)};
this[Symbol.iterator]=function(){return this}};
AWJ=function(V){function l(H){return V.next(H)}
function I(H){return V.throw(H)}
return new Promise(function(H,T){function x(n){n.done?H(n.value):Promise.resolve(n.value).then(l,I).then(x,T)}
x(V.next())})};
_.d=function(V){return AWJ(new _.pWt(new _.qGc(V)))};
z7c=function(V){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return V};
this.next=function(l){return Promise.resolve(V.next(l))};
this["throw"]=function(l){return new Promise(function(I,H){var T=V["throw"];T!==void 0?I(T.call(V,l)):(I=V["return"],I!==void 0&&I.call(V),H(new TypeError("i")))})};
V["return"]!==void 0&&(this["return"]=function(l){return Promise.resolve(V["return"](l))})};
_.Q5=function(){for(var V=Number(this),l=[],I=V;I<arguments.length;I++)l[I-V]=arguments[I];return l};
Cl("globalThis",function(V){return V||_.vI});
Cl("Reflect",function(V){return V?V:{}});
Cl("Reflect.construct",function(){return hCN});
Cl("Reflect.setPrototypeOf",function(V){return V?V:_.aK?function(l,I){try{return(0,_.aK)(l,I),!0}catch(H){return!1}}:null});
Cl("Promise",function(V){function l(){this.batch_=null}
function I(n){return n instanceof T?n:new T(function(w){w(n)})}
if(V&&(typeof _.vI.PromiseRejectionEvent!=="undefined"||!_.vI.Promise||_.vI.Promise.toString().indexOf("[native code]")===-1))return V;l.prototype.asyncExecute=function(n){if(this.batch_==null){this.batch_=[];var w=this;this.asyncExecuteFunction(function(){w.executeBatch_()})}this.batch_.push(n)};
var H=_.vI.setTimeout;l.prototype.asyncExecuteFunction=function(n){H(n,0)};
l.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var n=this.batch_;this.batch_=[];for(var w=0;w<n.length;++w){var N=n[w];n[w]=null;try{N()}catch(L){this.asyncThrow_(L)}}}this.batch_=null};
l.prototype.asyncThrow_=function(n){this.asyncExecuteFunction(function(){throw n;})};
var T=function(n){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var w=this.createResolveAndReject_();try{n(w.resolve,w.reject)}catch(N){w.reject(N)}};
T.prototype.createResolveAndReject_=function(){function n(L){return function(e){N||(N=!0,L.call(w,e))}}
var w=this,N=!1;return{resolve:n(this.resolveTo_),reject:n(this.JSC$6622_reject_)}};
T.prototype.resolveTo_=function(n){if(n===this)this.JSC$6622_reject_(new TypeError("j"));else if(n instanceof T)this.settleSameAsPromise_(n);else{a:switch(typeof n){case "object":var w=n!=null;break a;case "function":w=!0;break a;default:w=!1}w?this.resolveToNonPromiseObj_(n):this.fulfill_(n)}};
T.prototype.resolveToNonPromiseObj_=function(n){var w=void 0;try{w=n.then}catch(N){this.JSC$6622_reject_(N);return}typeof w=="function"?this.settleSameAsThenable_(w,n):this.fulfill_(n)};
T.prototype.JSC$6622_reject_=function(n){this.settle_(2,n)};
T.prototype.fulfill_=function(n){this.settle_(1,n)};
T.prototype.settle_=function(n,w){if(this.state_!=0)throw Error("k`"+n+"`"+w+"`"+this.state_);this.state_=n;this.result_=w;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
T.prototype.scheduleUnhandledRejectionCheck_=function(){var n=this;H(function(){if(n.notifyUnhandledRejection_()){var w=_.vI.console;typeof w!=="undefined"&&w.error(n.result_)}},1)};
T.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var n=_.vI.CustomEvent,w=_.vI.Event,N=_.vI.dispatchEvent;if(typeof N==="undefined")return!0;typeof n==="function"?n=new n("unhandledrejection",{cancelable:!0}):typeof w==="function"?n=new w("unhandledrejection",{cancelable:!0}):(n=_.vI.document.createEvent("CustomEvent"),n.initCustomEvent("unhandledrejection",!1,!0,n));n.promise=this;n.reason=this.result_;return N(n)};
T.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var n=0;n<this.onSettledCallbacks_.length;++n)x.asyncExecute(this.onSettledCallbacks_[n]);this.onSettledCallbacks_=null}};
var x=new l;T.prototype.settleSameAsPromise_=function(n){var w=this.createResolveAndReject_();n.callWhenSettled_(w.resolve,w.reject)};
T.prototype.settleSameAsThenable_=function(n,w){var N=this.createResolveAndReject_();try{n.call(w,N.resolve,N.reject)}catch(L){N.reject(L)}};
T.prototype.then=function(n,w){function N(X,r){return typeof X=="function"?function(E){try{L(X(E))}catch(D){e(D)}}:r}
var L,e,k=new T(function(X,r){L=X;e=r});
this.callWhenSettled_(N(n,L),N(w,e));return k};
T.prototype.catch=function(n){return this.then(void 0,n)};
T.prototype.callWhenSettled_=function(n,w){function N(){switch(L.state_){case 1:n(L.result_);break;case 2:w(L.result_);break;default:throw Error("l`"+L.state_);}}
var L=this;this.onSettledCallbacks_==null?x.asyncExecute(N):this.onSettledCallbacks_.push(N);this.isRejectionHandled_=!0};
T.resolve=I;T.reject=function(n){return new T(function(w,N){N(n)})};
T.race=function(n){return new T(function(w,N){for(var L=_.U(n),e=L.next();!e.done;e=L.next())I(e.value).callWhenSettled_(w,N)})};
T.all=function(n){var w=_.U(n),N=w.next();return N.done?I([]):new T(function(L,e){function k(E){return function(D){X[E]=D;r--;r==0&&L(X)}}
var X=[],r=0;do X.push(void 0),r++,I(N.value).callWhenSettled_(k(X.length-1),e),N=w.next();while(!N.done)})};
return T});
var iR=function(V,l,I){if(V==null)throw new TypeError("m`"+I);if(l instanceof RegExp)throw new TypeError("n`"+I);return V+""};
Cl("String.prototype.startsWith",function(V){return V?V:function(l,I){var H=iR(this,l,"startsWith"),T=H.length,x=l.length;I=Math.max(0,Math.min(I|0,H.length));for(var n=0;n<x&&I<T;)if(H[I++]!=l[n++])return!1;return n>=x}});
Cl("Object.setPrototypeOf",function(V){return V||_.aK});
Cl("Symbol.dispose",function(V){return V?V:Symbol("o")});
Cl("SuppressedError",function(V){function l(I,H,T){if(!(this instanceof l))return new l(I,H,T);T=Error(T);"stack"in T&&(this.stack=T.stack);this.message=T.message;this.error=I;this.suppressed=H}
if(V)return V;_.t(l,Error);l.prototype.name="SuppressedError";return l});
var unc=function(V,l,I){V instanceof String&&(V=String(V));for(var H=V.length,T=0;T<H;T++){var x=V[T];if(l.call(I,x,T,V))return{i:T,v:x}}return{i:-1,v:void 0}};
Cl("Array.prototype.find",function(V){return V?V:function(l,I){return unc(this,l,I).v}});
Cl("WeakMap",function(V){function l(){}
function I(N){var L=typeof N;return L==="object"&&N!==null||L==="function"}
function H(N){if(!gE(N,x)){var L=new l;GyK(N,x,{value:L})}}
function T(N){var L=Object[N];L&&(Object[N]=function(e){if(e instanceof l)return e;Object.isExtensible(e)&&H(e);return L(e)})}
if(function(){if(!V||!Object.seal)return!1;try{var N=Object.seal({}),L=Object.seal({}),e=new V([[N,2],[L,3]]);if(e.get(N)!=2||e.get(L)!=3)return!1;e.delete(N);e.set(L,4);return!e.has(N)&&e.get(L)==4}catch(k){return!1}}())return V;
var x="$jscomp_hidden_"+Math.random();T("freeze");T("preventExtensions");T("seal");var n=0,w=function(N){this.JSC$6629_id_=(n+=Math.random()+1).toString();if(N){N=_.U(N);for(var L;!(L=N.next()).done;)L=L.value,this.set(L[0],L[1])}};
w.prototype.set=function(N,L){if(!I(N))throw Error("p");H(N);if(!gE(N,x))throw Error("q`"+N);N[x][this.JSC$6629_id_]=L;return this};
w.prototype.get=function(N){return I(N)&&gE(N,x)?N[x][this.JSC$6629_id_]:void 0};
w.prototype.has=function(N){return I(N)&&gE(N,x)&&gE(N[x],this.JSC$6629_id_)};
w.prototype.delete=function(N){return I(N)&&gE(N,x)&&gE(N[x],this.JSC$6629_id_)?delete N[x][this.JSC$6629_id_]:!1};
return w});
Cl("Map",function(V){if(function(){if(!V||typeof V!="function"||!V.prototype.entries||typeof Object.seal!="function")return!1;try{var w=Object.seal({x:4}),N=new V(_.U([[w,"s"]]));if(N.get(w)!="s"||N.size!=1||N.get({x:4})||N.set({x:4},"t")!=N||N.size!=2)return!1;var L=N.entries(),e=L.next();if(e.done||e.value[0]!=w||e.value[1]!="s")return!1;e=L.next();return e.done||e.value[0].x!=4||e.value[1]!="t"||!L.next().done?!1:!0}catch(k){return!1}}())return V;
var l=new WeakMap,I=function(w){this[0]={};this[1]=x();this.size=0;if(w){w=_.U(w);for(var N;!(N=w.next()).done;)N=N.value,this.set(N[0],N[1])}};
I.prototype.set=function(w,N){w=w===0?0:w;var L=H(this,w);L.list||(L.list=this[0][L.id]=[]);L.entry?L.entry.value=N:(L.entry={next:this[1],previous:this[1].previous,head:this[1],key:w,value:N},L.list.push(L.entry),this[1].previous.next=L.entry,this[1].previous=L.entry,this.size++);return this};
I.prototype.delete=function(w){w=H(this,w);return w.entry&&w.list?(w.list.splice(w.index,1),w.list.length||delete this[0][w.id],w.entry.previous.next=w.entry.next,w.entry.next.previous=w.entry.previous,w.entry.head=null,this.size--,!0):!1};
I.prototype.clear=function(){this[0]={};this[1]=this[1].previous=x();this.size=0};
I.prototype.has=function(w){return!!H(this,w).entry};
I.prototype.get=function(w){return(w=H(this,w).entry)&&w.value};
I.prototype.entries=function(){return T(this,function(w){return[w.key,w.value]})};
I.prototype.keys=function(){return T(this,function(w){return w.key})};
I.prototype.values=function(){return T(this,function(w){return w.value})};
I.prototype.forEach=function(w,N){for(var L=this.entries(),e;!(e=L.next()).done;)e=e.value,w.call(N,e[1],e[0],this)};
I.prototype[Symbol.iterator]=I.prototype.entries;var H=function(w,N){var L=N&&typeof N;L=="object"||L=="function"?l.has(N)?L=l.get(N):(L=""+ ++n,l.set(N,L)):L="p_"+N;var e=w[0][L];if(e&&gE(w[0],L))for(w=0;w<e.length;w++){var k=e[w];if(N!==N&&k.key!==k.key||N===k.key)return{id:L,list:e,index:w,entry:k}}return{id:L,list:e,index:-1,entry:void 0}},T=function(w,N){var L=w[1];
return JWq(function(){if(L){for(;L.head!=w[1];)L=L.previous;for(;L.next!=L.head;)return L=L.next,{done:!1,value:N(L)};L=null}return{done:!0,value:void 0}})},x=function(){var w={};
return w.previous=w.next=w.head=w},n=0;
return I});
Cl("Set",function(V){if(function(){if(!V||typeof V!="function"||!V.prototype.entries||typeof Object.seal!="function")return!1;try{var I=Object.seal({x:4}),H=new V(_.U([I]));if(!H.has(I)||H.size!=1||H.add(I)!=H||H.size!=1||H.add({x:4})!=H||H.size!=2)return!1;var T=H.entries(),x=T.next();if(x.done||x.value[0]!=I||x.value[1]!=I)return!1;x=T.next();return x.done||x.value[0]==I||x.value[0].x!=4||x.value[1]!=x.value[0]?!1:T.next().done}catch(n){return!1}}())return V;
var l=function(I){this.JSC$6643_map_=new Map;if(I){I=_.U(I);for(var H;!(H=I.next()).done;)this.add(H.value)}this.size=this.JSC$6643_map_.size};
l.prototype.add=function(I){I=I===0?0:I;this.JSC$6643_map_.set(I,I);this.size=this.JSC$6643_map_.size;return this};
l.prototype.delete=function(I){I=this.JSC$6643_map_.delete(I);this.size=this.JSC$6643_map_.size;return I};
l.prototype.clear=function(){this.JSC$6643_map_.clear();this.size=0};
l.prototype.has=function(I){return this.JSC$6643_map_.has(I)};
l.prototype.entries=function(){return this.JSC$6643_map_.entries()};
l.prototype.values=function(){return this.JSC$6643_map_.values()};
l.prototype.keys=l.prototype.values;l.prototype[Symbol.iterator]=l.prototype.values;l.prototype.forEach=function(I,H){var T=this;this.JSC$6643_map_.forEach(function(x){return I.call(H,x,x,T)})};
return l});
Cl("Math.log2",function(V){return V?V:function(l){return Math.log(l)/Math.LN2}});
Cl("Object.values",function(V){return V?V:function(l){var I=[],H;for(H in l)gE(l,H)&&I.push(l[H]);return I}});
Cl("Object.is",function(V){return V?V:function(l,I){return l===I?l!==0||1/l===1/I:l!==l&&I!==I}});
Cl("Array.prototype.includes",function(V){return V?V:function(l,I){var H=this;H instanceof String&&(H=String(H));var T=H.length;I=I||0;for(I<0&&(I=Math.max(I+T,0));I<T;I++){var x=H[I];if(x===l||Object.is(x,l))return!0}return!1}});
Cl("String.prototype.includes",function(V){return V?V:function(l,I){return iR(this,l,"includes").indexOf(l,I||0)!==-1}});
Cl("Array.from",function(V){return V?V:function(l,I,H){I=I!=null?I:function(w){return w};
var T=[],x=typeof Symbol!="undefined"&&Symbol.iterator&&l[Symbol.iterator];if(typeof x=="function"){l=x.call(l);for(var n=0;!(x=l.next()).done;)T.push(I.call(H,x.value,n++))}else for(x=l.length,n=0;n<x;n++)T.push(I.call(H,l[n],n));return T}});
Cl("Object.entries",function(V){return V?V:function(l){var I=[],H;for(H in l)gE(l,H)&&I.push([H,l[H]]);return I}});
Cl("Number.isFinite",function(V){return V?V:function(l){return typeof l!=="number"?!1:!isNaN(l)&&l!==Infinity&&l!==-Infinity}});
Cl("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Cl("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Cl("Number.isInteger",function(V){return V?V:function(l){return Number.isFinite(l)?l===Math.floor(l):!1}});
Cl("Number.isSafeInteger",function(V){return V?V:function(l){return Number.isInteger(l)&&Math.abs(l)<=Number.MAX_SAFE_INTEGER}});
Cl("String.prototype.endsWith",function(V){return V?V:function(l,I){var H=iR(this,l,"endsWith");I===void 0&&(I=H.length);I=Math.max(0,Math.min(I|0,H.length));for(var T=l.length;T>0&&I>0;)if(H[--I]!=l[--T])return!1;return T<=0}});
var vZt=function(V,l){V instanceof String&&(V+="");var I=0,H=!1,T={next:function(){if(!H&&I<V.length){var x=I++;return{value:l(x,V[x]),done:!1}}H=!0;return{done:!0,value:void 0}}};
T[Symbol.iterator]=function(){return T};
return T};
Cl("Array.prototype.entries",function(V){return V?V:function(){return vZt(this,function(l,I){return[l,I]})}});
Cl("Math.imul",function(V){return V?V:function(l,I){l=Number(l);I=Number(I);var H=l&65535,T=I&65535;return H*T+((l>>>16&65535)*T+H*(I>>>16&65535)<<16>>>0)|0}});
Cl("Math.trunc",function(V){return V?V:function(l){l=Number(l);if(isNaN(l)||l===Infinity||l===-Infinity||l===0)return l;var I=Math.floor(Math.abs(l));return l<0?-I:I}});
Cl("Number.isNaN",function(V){return V?V:function(l){return typeof l==="number"&&isNaN(l)}});
Cl("Array.prototype.keys",function(V){return V?V:function(){return vZt(this,function(l){return l})}});
Cl("Array.prototype.values",function(V){return V?V:function(){return vZt(this,function(l,I){return I})}});
Cl("Array.prototype.fill",function(V){return V?V:function(l,I,H){var T=this.length||0;I<0&&(I=Math.max(0,T+I));if(H==null||H>T)H=T;H=Number(H);H<0&&(H=Math.max(0,T+H));for(I=Number(I||0);I<H;I++)this[I]=l;return this}});
var Vh=function(V){return V?V:Array.prototype.fill};
Cl("Int8Array.prototype.fill",Vh);Cl("Uint8Array.prototype.fill",Vh);Cl("Uint8ClampedArray.prototype.fill",Vh);Cl("Int16Array.prototype.fill",Vh);Cl("Uint16Array.prototype.fill",Vh);Cl("Int32Array.prototype.fill",Vh);Cl("Uint32Array.prototype.fill",Vh);Cl("Float32Array.prototype.fill",Vh);Cl("Float64Array.prototype.fill",Vh);
Cl("Object.fromEntries",function(V){return V?V:function(l){var I={};if(!(Symbol.iterator in l))throw new TypeError("r`"+l);l=l[Symbol.iterator].call(l);for(var H=l.next();!H.done;H=l.next()){H=H.value;if(Object(H)!==H)throw new TypeError("s");I[H[0]]=H[1]}return I}});
Cl("String.prototype.replaceAll",function(V){return V?V:function(l,I){if(l instanceof RegExp&&!l.global)throw new TypeError("t");return l instanceof RegExp?this.replace(l,I):this.replace(new RegExp(String(l).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),I)}});
Cl("Object.getOwnPropertySymbols",function(V){return V?V:function(){return[]}});
Cl("String.prototype.repeat",function(V){return V?V:function(l){var I=iR(this,null,"repeat");if(l<0||l>1342177279)throw new RangeError("u");l|=0;for(var H="";l;)if(l&1&&(H+=I),l>>>=1)I+=I;return H}});
Cl("Array.prototype.findIndex",function(V){return V?V:function(l,I){return unc(this,l,I).i}});
Cl("Array.prototype.flatMap",function(V){return V?V:function(l,I){var H=[];Array.prototype.forEach.call(this,function(T,x){T=l.call(I,T,x,this);Array.isArray(T)?H.push.apply(H,T):H.push(T)});
return H}});
Cl("String.prototype.codePointAt",function(V){return V?V:function(l){var I=iR(this,null,"codePointAt"),H=I.length;l=Number(l)||0;if(l>=0&&l<H){l|=0;var T=I.charCodeAt(l);if(T<55296||T>56319||l+1===H)return T;l=I.charCodeAt(l+1);return l<56320||l>57343?T:(T-55296)*1024+l+9216}}});
Cl("String.fromCodePoint",function(V){return V?V:function(l){for(var I="",H=0;H<arguments.length;H++){var T=Number(arguments[H]);if(T<0||T>1114111||T!==Math.floor(T))throw new RangeError("v`"+T);T<=65535?I+=String.fromCharCode(T):(T-=65536,I+=String.fromCharCode(T>>>10&1023|55296),I+=String.fromCharCode(T&1023|56320))}return I}});
Cl("String.prototype.padStart",function(V){return V?V:function(l,I){var H=iR(this,null,"padStart");l-=H.length;I=I!==void 0?String(I):" ";return(l>0&&I?I.repeat(Math.ceil(l/I.length)).substring(0,l):"")+H}});
Cl("Promise.prototype.finally",function(V){return V?V:function(l){return this.then(function(I){return Promise.resolve(l()).then(function(){return I})},function(I){return Promise.resolve(l()).then(function(){throw I;
})})}});
Cl("Object.hasOwn",function(V){return V?V:function(l,I){return Object.prototype.hasOwnProperty.call(l,I)}});
var O9f=function(V){V=Math.trunc(V)||0;V<0&&(V+=this.length);if(!(V<0||V>=this.length))return this[V]};
Cl("Array.prototype.at",function(V){return V?V:O9f});
var lQ=function(V){return V?V:O9f};
Cl("Int8Array.prototype.at",lQ);Cl("Uint8Array.prototype.at",lQ);Cl("Uint8ClampedArray.prototype.at",lQ);Cl("Int16Array.prototype.at",lQ);Cl("Uint16Array.prototype.at",lQ);Cl("Int32Array.prototype.at",lQ);Cl("Uint32Array.prototype.at",lQ);Cl("Float32Array.prototype.at",lQ);Cl("Float64Array.prototype.at",lQ);Cl("String.prototype.at",function(V){return V?V:O9f});
Cl("Math.sign",function(V){return V?V:function(l){l=Number(l);return l===0||isNaN(l)?l:l>0?1:-1}});
Cl("Array.prototype.flat",function(V){return V?V:function(l){l=l===void 0?1:l;var I=[];Array.prototype.forEach.call(this,function(H){Array.isArray(H)&&l>0?(H=Array.prototype.flat.call(H,l-1),I.push.apply(I,H)):I.push(H)});
return I}});
Cl("String.raw",function(V){return V?V:function(l,I){if(l==null)throw new TypeError("w");for(var H=l.raw,T=H.length,x="",n=0;n<T;++n)x+=H[n],n+1<T&&n+1<arguments.length&&(x+=String(arguments[n+1]));return x}});
Cl("Reflect.ownKeys",function(V){return V?V:function(l){var I=[],H=Object.getOwnPropertyNames(l);l=Object.getOwnPropertySymbols(l);for(var T=0;T<H.length;T++)(H[T].substring(0,14)=="jscomp_symbol_"?l:I).push(H[T]);return I.concat(l)}});
Cl("Object.getOwnPropertyDescriptors",function(V){return V?V:function(l){for(var I={},H=Reflect.ownKeys(l),T=0;T<H.length;T++)I[H[T]]=Object.getOwnPropertyDescriptor(l,H[T]);return I}});
Cl("WeakSet",function(V){if(function(){if(!V||!Object.seal)return!1;try{var I=Object.seal({}),H=Object.seal({}),T=new V([I]);if(!T.has(I)||T.has(H))return!1;T.delete(I);T.add(H);return!T.has(I)&&T.has(H)}catch(x){return!1}}())return V;
var l=function(I){this.JSC$6649_map_=new WeakMap;if(I){I=_.U(I);for(var H;!(H=I.next()).done;)this.add(H.value)}};
l.prototype.add=function(I){this.JSC$6649_map_.set(I,!0);return this};
l.prototype.has=function(I){return this.JSC$6649_map_.has(I)};
l.prototype.delete=function(I){return this.JSC$6649_map_.delete(I)};
return l});
Cl("Promise.allSettled",function(V){function l(H){return{status:"fulfilled",value:H}}
function I(H){return{status:"rejected",reason:H}}
return V?V:function(H){var T=this;H=Array.from(H,function(x){return T.resolve(x).then(l,I)});
return T.all(H)}});
Cl("Number.parseInt",function(V){return V||parseInt});
_._DumpException=window._DumpException||function(V){throw V;};
window._DumpException=_._DumpException;var CqJ,It,Hn,Tp,ayy,fyc,gZW,mgJ,z2,i9N;CqJ=CqJ||{};_.nK=this||self;_.Aq=function(V,l,I){V=V.split(".");I=I||_.nK;for(var H;V.length&&(H=V.shift());)V.length||l===void 0?I[H]&&I[H]!==Object.prototype[H]?I=I[H]:I=I[H]={}:I[H]=l};
It=function(V){var l=_.SN("WIZ_global_data.oxN3nb");V=l&&l[V];return V!=null?V:!1};
Hn=_.nK._F_toggles||[];Tp=function(){};
Tp.get=function(){return null};
_.SN=function(V,l){V=V.split(".");l=l||_.nK;for(var I=0;I<V.length;I++)if(l=l[V[I]],l==null)return null;return l};
_.Bn=function(V){V.instance_=void 0;V.getInstance=function(){return V.instance_?V.instance_:V.instance_=new V}};
_.$Nf=function(V){var l=typeof V;return l!="object"?l:V?Array.isArray(V)?"array":l:"null"};
_.vy=function(V){var l=_.$Nf(V);return l=="array"||l=="object"&&typeof V.length=="number"};
_.m3=function(V){var l=typeof V;return l=="object"&&V!=null||l=="function"};
_.iN=function(V){return Object.prototype.hasOwnProperty.call(V,ayy)&&V[ayy]||(V[ayy]=++fyc)};
ayy="closure_uid_"+(Math.random()*1E9>>>0);fyc=0;gZW=function(V,l,I){return V.call.apply(V.bind,arguments)};
mgJ=function(V,l,I){if(!V)throw Error();if(arguments.length>2){var H=Array.prototype.slice.call(arguments,2);return function(){var T=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(T,H);return V.apply(l,T)}}return function(){return V.apply(l,arguments)}};
_.zN=function(V,l,I){_.zN=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?gZW:mgJ;return _.zN.apply(null,arguments)};
_.kB=function(V,l){var I=Array.prototype.slice.call(arguments,1);return function(){var H=I.slice();H.push.apply(H,arguments);return V.apply(this,H)}};
_.xv=function(){return Date.now()};
z2=function(V){return V};
_.Uk=function(V,l){function I(){}
I.prototype=l.prototype;V.superClass_=l.prototype;V.prototype=new I;V.prototype.constructor=V;V.base=function(H,T,x){for(var n=Array(arguments.length-2),w=2;w<arguments.length;w++)n[w-2]=arguments[w];return l.prototype[T].apply(H,n)}};
i9N=function(V){return V};_.O=function(V,l,I,H){var T=arguments.length,x=T<3?l:H===null?H=Object.getOwnPropertyDescriptor(l,I):H,n;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")x=Reflect.decorate(V,l,I,H);else for(var w=V.length-1;w>=0;w--)if(n=V[w])x=(T<3?n(x):T>3?n(l,I,x):n(l,I))||x;return T>3&&x&&Object.defineProperty(l,I,x),x};
_.a=function(V,l){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(V,l)};
_.QP=function(V,l){if(l!==null&&l!==void 0){if(typeof l!=="object"&&typeof l!=="function")throw new TypeError("x");if(I===void 0){if(!Symbol.dispose)throw new TypeError("z");var I=l[Symbol.dispose]}if(typeof I!=="function")throw new TypeError("A");V.stack.push({value:l,dispose:I,async:!1})}return l};
_.c1=function(V){function l(x){V.error=V.hasError?new SuppressedError(x,V.error,"An error was suppressed during disposal."):x;V.hasError=!0}
function I(){for(;H=V.stack.pop();)try{if(!H.async&&T===1)return T=0,V.stack.push(H),Promise.resolve().then(I);if(H.dispose){var x=H.dispose.call(H.value);if(H.async)return T|=2,Promise.resolve(x).then(I,function(n){l(n);return I()})}else T|=1}catch(n){l(n)}if(T===1)return V.hasError?Promise.reject(V.error):Promise.resolve();
if(V.hasError)throw V.error;}
var H,T=0;I()};_.Uk(_.I1,Error);_.I1.prototype.name="CustomError";var Vr3;var lJT=void 0,IJc,Hrf=typeof TextDecoder!=="undefined",HK1,Igg=typeof String.prototype.isWellFormed==="function",lgw=typeof TextEncoder!=="undefined";var Th1;_.FG=function(V){for(var l=[],I=0,H=0;H<V.length;H++){var T=V.charCodeAt(H);T<128?l[I++]=T:(T<2048?l[I++]=T>>6|192:((T&64512)==55296&&H+1<V.length&&(V.charCodeAt(H+1)&64512)==56320?(T=65536+((T&1023)<<10)+(V.charCodeAt(++H)&1023),l[I++]=T>>18|240,l[I++]=T>>12&63|128):l[I++]=T>>12|224,l[I++]=T>>6&63|128),l[I++]=T&63|128)}return l};
Th1=function(V){for(var l=[],I=0,H=0;I<V.length;){var T=V[I++];if(T<128)l[H++]=String.fromCharCode(T);else if(T>191&&T<224){var x=V[I++];l[H++]=String.fromCharCode((T&31)<<6|x&63)}else if(T>239&&T<365){x=V[I++];var n=V[I++],w=V[I++];T=((T&7)<<18|(x&63)<<12|(n&63)<<6|w&63)-65536;l[H++]=String.fromCharCode(55296+(T>>10));l[H++]=String.fromCharCode(56320+(T&1023))}else x=V[I++],n=V[I++],l[H++]=String.fromCharCode((T&15)<<12|(x&63)<<6|n&63)}return l.join("")};var BhJ,xcw,Uc1,nOt,$cN,dcK,w3q;_.nj=String.prototype.trim?function(V){return V.trim()}:function(V){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(V)[1]};
BhJ=/&/g;xcw=/</g;Uc1=/>/g;nOt=/"/g;$cN=/'/g;dcK=/\x00/g;w3q=/[\x00&<>"']/;var $v=!!(Hn[0]&4096),Nhg=!!(Hn[0]&8192),K7q=!!(Hn[0]&2),jo1=!!(Hn[0]&4),YUf=!!(Hn[0]&16),L71=!!(Hn[0]>>14&1);var yf=$v?Nhg:It(610401301),eUc=$v?K7q:It(513659523),klw=$v?jo1:It(568333945),L01=$v?YUf:It(1331761403),F7q=$v?L71:It(1981196515);var t1,X33=_.nK.navigator;t1=X33?X33.userAgentData||null:null;var bG;_.qq=function(V,l){return Array.prototype.indexOf.call(V,l,void 0)};
_.cO=function(V,l,I){Array.prototype.forEach.call(V,l,I)};
_.dl=function(V,l,I){return Array.prototype.filter.call(V,l,I)};
_.JH=function(V,l,I){return Array.prototype.map.call(V,l,I)};
bG=function(V,l,I){return Array.prototype.some.call(V,l,I)};
_.Bcg=function(V,l,I){return Array.prototype.every.call(V,l,I)};var wl=function(V){wl[" "](V);return V},flf;
wl[" "]=function(){};
flf=function(V,l){try{return wl(V[l]),!0}catch(I){}return!1};
_.gdK=function(V,l,I,H){H=H?H(l):l;return Object.prototype.hasOwnProperty.call(V,H)?V[H]:V[H]=I(l)};var zUJ,ybt,tr1,GlK,EOJ,A4N,JbN,oON,hUq,Xow,Dcg,Zr3,W7c;_.g8c=function(){return _.nK.navigator||null};
zUJ=xq1();_.NU=Uq1();_.Ml=Gw("Edge");ybt=_.Ml||_.NU;_.Kj=Gw("Gecko")&&!(_.XJ(_.zw(),"WebKit")&&!Gw("Edge"))&&!(Gw("Trident")||Gw("MSIE"))&&!Gw("Edge");_.ja=_.XJ(_.zw(),"WebKit")&&!Gw("Edge");tr1=_.ja&&Gw("Mobile");_.rbq=_.L3N();GlK=_.etT();EOJ=(Dg()?t1.platform==="Linux":Gw("Linux"))||_.kwt();A4N=_.j11();JbN=YtW();oON=Gw("iPad");hUq=Gw("iPod");_.P0K=_.R1();Xow=_.XJ(_.zw(),"KaiOS");Dcg=function(){var V=_.nK.document;return V?V.documentMode:void 0};
a:{var SU1="",RU1=function(){var V=_.zw();if(_.Kj)return/rv:([^\);]+)(\)|;)/.exec(V);if(_.Ml)return/Edge\/([\d\.]+)/.exec(V);if(_.NU)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(V);if(_.ja)return/WebKit\/(\S+)/.exec(V);if(zUJ)return/(?:Version)[ \/]?(\S+)/.exec(V)}();
RU1&&(SU1=RU1?RU1[1]:"");if(_.NU){var Qot=Dcg();if(Qot!=null&&Qot>parseFloat(SU1)){Zr3=String(Qot);break a}}Zr3=SU1}_.cby=Zr3;if(_.nK.document&&_.NU){var brt=Dcg();W7c=brt?brt:parseInt(_.cby,10)||void 0}else W7c=void 0;_.qUN=W7c;var KdT,jA3,Mrq;_.Yv=J1();KdT=YtW()||Gw("iPod");jA3=Gw("iPad");Mrq=_.dqK();_.Lj=_.Py();_.ov=_.$qc()&&!_.R1();var sow,ea,p3t,opc,Ab3,iRy,vOT,u2y;sow={};ea=null;p3t=_.Kj||_.ja;opc=p3t||typeof _.nK.btoa=="function";Ab3=p3t||!_.ov&&typeof _.nK.atob=="function";_.rg=function(V,l){l===void 0&&(l=0);u2y();l=sow[l];for(var I=Array(Math.floor(V.length/3)),H=l[64]||"",T=0,x=0;T<V.length-2;T+=3){var n=V[T],w=V[T+1],N=V[T+2],L=l[n>>2];n=l[(n&3)<<4|w>>4];w=l[(w&15)<<2|N>>6];N=l[N&63];I[x++]=L+n+w+N}L=0;N=H;switch(V.length-T){case 2:L=V[T+1],N=l[(L&15)<<2]||H;case 1:V=V[T],I[x]=l[V>>2]+l[(V&3)<<4|L>>4]+N+H}return I.join("")};
iRy=function(V,l){if(Ab3&&!l)return _.nK.atob(V);var I="";vOT(V,function(H){I+=String.fromCharCode(H)});
return I};
_.z4t=function(V){var l=[];vOT(V,function(I){l.push(I)});
return l};
_.TE=function(V){var l=V.length,I=l*3/4;I%3?I=Math.floor(I):_.kT("=.",V[l-1])&&(I=_.kT("=.",V[l-2])?I-2:I-1);var H=new Uint8Array(I),T=0;vOT(V,function(x){H[T++]=x});
return T!==I?H.subarray(0,T):H};
vOT=function(V,l){function I(N){for(;H<V.length;){var L=V.charAt(H++),e=ea[L];if(e!=null)return e;if(!_.jc(L))throw Error("E`"+L);}return N}
u2y();for(var H=0;;){var T=I(-1),x=I(0),n=I(64),w=I(64);if(w===64&&T===-1)break;l(T<<2|x>>4);n!=64&&(l(x<<4&240|n>>2),w!=64&&l(n<<6&192|w))}};
u2y=function(){if(!ea){ea={};for(var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),l=["+/=","+/","-_=","-_.","-_"],I=0;I<5;I++){var H=V.concat(l[I].split(""));sow[I]=H;for(var T=0;T<H.length;T++){var x=H[T];ea[x]===void 0&&(ea[x]=T)}}}};var uJW=typeof Uint8Array!=="undefined",ZKy=!_.NU&&typeof btoa==="function",Stt=/[-_.]/g,PNc={"-":"+",_:"/",".":"="},rb={};var tB,C0N;tB=function(V,l){if(l!==rb)throw Error("G");this.JSC$6680_value_=V;if(V!=null&&V.length===0)throw Error("F");};
_.GE=function(){return OrN||(OrN=new tB(null,rb))};
C0N=function(V){return new Uint8Array(JIw(V)||0)};
tB.prototype.isEmpty=function(){return this.JSC$6680_value_==null};
tB.prototype.sizeBytes=function(){var V=JIw(this);return V?V.length:0};
var JIw=function(V){if(rb!==rb)throw Error("G");var l=V.JSC$6680_value_;l=l==null||uJW&&l!=null&&l instanceof Uint8Array?l:typeof l==="string"?RtJ(l):null;return l==null?l:V.JSC$6680_value_=l},OrN;var c11=void 0;var db=typeof Symbol==="function"&&typeof Symbol()==="symbol",aJt=nZ("jas",void 0,!0),ZZW=nZ(void 0,"0di"),uE=nZ(void 0,"1oa"),y6=nZ(void 0,Symbol()),u0K=nZ(void 0,"0ub"),$EK=nZ(void 0,"0actk"),kh=nZ("m_m","messagePrototypeMarker",!0),HQt=nZ(void 0,"vps"),OZf=nZ();var qtw,bKy,Q6,fJc;qtw={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};bKy=Object.defineProperties;_.NN=db?aJt:"internalArrayState";fJc=[];KZ(fJc,7);Q6=Object.freeze(fJc);var FE={},A1g={},gO1=function(V,l,I){this.iterable=V;this.mapper=l;this.thisArg=I};
gO1.prototype.next=function(){var V=this.iterable.next();V.done||(V.value=this.mapper.call(this.thisArg,V.value));return V};
gO1.prototype[Symbol.iterator]=function(){return this};
var mcW=Object.freeze({}),Pw={};_.irc=Qa(function(V){return V!==null&&V!==void 0});var gT1=Qa(function(V){return typeof V==="number"}),fgy=Qa(function(V){return typeof V==="string"}),iKc=Qa(function(V){return typeof V==="boolean"}),VYN=Qa(function(V){return V!=null&&typeof V==="object"&&typeof V.then==="function"}),rqy=Qa(function(V){return typeof V==="function"}),J2t=Qa(function(V){return!!V&&(typeof V==="object"||typeof V==="function")});var mqT=typeof _.nK.BigInt==="function"&&typeof _.nK.BigInt(0)==="bigint";var H5N,lqK,TIJ,Iqf;_.tI=Qa(function(V){return mqT?V>=lqK&&V<=Iqf:V[0]==="-"?Vo3(V,H5N):Vo3(V,TIJ)});
H5N=Number.MIN_SAFE_INTEGER.toString();lqK=mqT?BigInt(Number.MIN_SAFE_INTEGER):void 0;TIJ=Number.MAX_SAFE_INTEGER.toString();Iqf=mqT?BigInt(Number.MAX_SAFE_INTEGER):void 0;var BIf=typeof Uint8Array.prototype.slice==="function",Ww=0,bZ=0,$Vt;var T2,dg,fZ,wg,Nbw;T2=typeof BigInt==="function"?BigInt.asIntN:void 0;_.NE=typeof BigInt==="function"?BigInt.asUintN:void 0;dg=Number.isSafeInteger;fZ=Number.isFinite;wg=Math.trunc;Nbw=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Tg1={};var siW={},xMc=function(){try{var V=function(){return hCN(Map,[],this.constructor)};
_.t(V,Map);wl(new V);return!1}catch(l){return!0}}(),kv=function(){this.JSC$6708_map_=new Map};
_.B=kv.prototype;_.B.get=function(V){return this.JSC$6708_map_.get(V)};
_.B.set=function(V,l){this.JSC$6708_map_.set(V,l);this.size=this.JSC$6708_map_.size;return this};
_.B.delete=function(V){V=this.JSC$6708_map_.delete(V);this.size=this.JSC$6708_map_.size;return V};
_.B.clear=function(){this.JSC$6708_map_.clear();this.size=this.JSC$6708_map_.size};
_.B.has=function(V){return this.JSC$6708_map_.has(V)};
_.B.entries=function(){return this.JSC$6708_map_.entries()};
_.B.keys=function(){return this.JSC$6708_map_.keys()};
_.B.values=function(){return this.JSC$6708_map_.values()};
_.B.forEach=function(V,l){return this.JSC$6708_map_.forEach(V,l)};
kv.prototype[Symbol.iterator]=function(){return this.entries()};
var G2=function(){if(xMc)return Object.setPrototypeOf(kv.prototype,Map.prototype),Object.defineProperties(kv.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),kv;var V=function(){return hCN(Map,[],this.constructor)};
_.t(V,Map);return V}(),XE=function(V,l,I,H){I=I===void 0?cBq:I;
H=H===void 0?cBq:H;var T=G2.call(this)||this;T.arrayState=V[_.NN]|0;T.valueCtor=l;T.keyToApi=I;T.valueToApi=T.valueCtor?bZt:H;for(var x=0;x<V.length;x++){var n=V[x],w=I(n[0],!1,!0),N=n[1];l?N===void 0&&(N=null):N=H(n[1],!1,!0,void 0,void 0,T.arrayState);G2.prototype.set.call(T,w,N)}return T};
_.t(XE,G2);var UMt=function(V){if(V.arrayState&2)throw Error("K");};
_.B=XE.prototype;_.B.clear=function(){UMt(this);G2.prototype.clear.call(this)};
_.B.delete=function(V){UMt(this);return G2.prototype.delete.call(this,this.keyToApi(V,!0,!1))};
_.B.entries=function(){if(this.valueCtor){var V=G2.prototype.keys.call(this);V=new gO1(V,qNy,this)}else V=G2.prototype.entries.call(this);return V};
_.B.values=function(){if(this.valueCtor){var V=G2.prototype.keys.call(this);V=new gO1(V,XE.prototype.get,this)}else V=G2.prototype.values.call(this);return V};
_.B.forEach=function(V,l){this.valueCtor?G2.prototype.forEach.call(this,function(I,H,T){V.call(l,T.get(H),H,T)}):G2.prototype.forEach.call(this,V,l)};
_.B.set=function(V,l){UMt(this);V=this.keyToApi(V,!0,!1);return V==null?this:l==null?(G2.prototype.delete.call(this,V),this):G2.prototype.set.call(this,V,this.valueToApi(l,!0,!0,this.valueCtor,!1,this.arrayState))};
_.B.has=function(V){return G2.prototype.has.call(this,this.keyToApi(V,!1,!1))};
_.B.get=function(V){V=this.keyToApi(V,!1,!1);var l=G2.prototype.get.call(this,V);if(l!==void 0){var I=this.valueCtor;return I?(I=this.valueToApi(l,!1,!0,I,this.callToMutableOnAccess,this.arrayState),I!==l&&G2.prototype.set.call(this,V,I),I):l}};
XE.prototype[Symbol.iterator]=function(){return this.entries()};
XE.prototype.toJSON=void 0;var Mot;var gJg=function(){},iQT=function(V,l){for(var I in V)!isNaN(I)&&l(V,+I,V[I])},mNW=function(V){var l=new gJg;
iQT(V,function(I,H,T){l[H]=pZ(T)});
l.reviveUnknownFields=V.reviveUnknownFields;return l},CZJ={reviveIntoImmutable:!0};var fv1;var BgW,xEt;var ncf,qE,nO,KO,$Mw,Ek,wT,dMK,wc1,ZV,NIf,Sa,cn,Wn;ncf=_.cw(0);_.Fr=function(V,l,I){return qE(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l,I)};
qE=function(V,l,I,H){if(l===-1)return null;var T=l+(I?0:-1),x=V.length-1;if(!(x<1+(I?0:-1))){if(T>=x){var n=V[x];if(n!=null&&typeof n==="object"&&n.constructor===Object){I=n[l];var w=!0}else if(T===x)I=n;else return}else I=V[T];if(H&&I!=null){H=H(I);if(H==null)return H;if(!Object.is(H,I))return w?n[l]=H:V[T]=H,H}return I}};
_.m6=function(V,l,I,H){Sb(V);var T=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Ru(T,T[_.NN]|0,l,I,H);return V};
_.Xr=function(V,l,I){V=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return yIW(V,V[_.NN]|0,l,I)!==void 0};
_.zp=function(V,l,I,H){var T=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return yIW(T,T[_.NN]|0,l,KO(V,H,I))!==void 0};
_.yh=function(V,l){return qE(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l,void 0,nJ1)};
_.i4=function(V){return V===mcW?2:4};
_.t3=function(V,l){V=qE(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l,void 0,LVJ);return V==null?_.GE():V};
nO=function(V,l,I,H){Sb(V);var T=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=T[_.NN]|0;if(H==null){var n=FVc(T);if(XYJ(n,T,x,I)===l)n.set(I,0);else return V}else x=zBK(T,x,I,l);Ru(T,x,l,H);return V};
_.rl=function(V,l,I,H){var T=V[_.NN]|0,x=So(T);T=zBK(V,T,I,l,x);Ru(V,T,l,H,x)};
KO=function(V,l,I){return _.Gp(V,l)===I?I:-1};
_.Gp=function(V,l,I){V=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return XYJ(FVc(V),V,void 0,l,I)};
$Mw=function(V,l,I){var H=V[_.NN]|0,T=So(H),x=qE(V,I,T);if(x!=null&&x[kh]===FE)return l=WWW(x),l!==x&&Ru(V,H,I,l,T),Zr(l),l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(x)){var n=x[_.NN]|0;if(n&2){var w=PY(Dr(x,n),l,!0);YJ(w,2)}else n&2048?w=x:w=PY(x,l,!0)}else w=PY(void 0,l,!0);w!==x&&Ru(V,H,I,w,T);return w};
_.fA=function(V,l,I,H){var T=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=T[_.NN]|0;l=yIW(T,x,l,I,H);if(l==null)return l;x=T[_.NN]|0;if(!X0(V,x)){var n=WWW(l);n!==l&&(Zr(V)&&(T=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=T[_.NN]|0),l=n,Ru(T,x,I,l,H))}return l};
_.m2=function(V,l,I,H){var T=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return tby(V,T,T[_.NN]|0,l,I,H,!1,!0)};
_.j6=function(V,l,I,H){I=rIg(I);_.m6(V,l,I,H);return V};
_.Yn=function(V,l,I,H){H=rIg(H);nO(V,l,I,H);return V};
Ek=function(V,l,I){Sb(V);var H=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=H[_.NN]|0;if(I==null)return Ru(H,T,l),V;for(var x=I===Q6?7:I[_.NN]|0,n=x,w=bE(x),N=w||Object.isFrozen(I),L=!0,e=!0,k=0;k<I.length;k++){var X=I[k];w||(X=X0(X),L&&(L=!X),e&&(e=X))}w||(x=L?13:5,x=e?x&-8193:x|8192);N&&x===n||(I=pZ(I),n=0,x=cY(x,T));x!==n&&KZ(I,x);Ru(H,T,l,I);return V};
wT=function(V,l,I,H){Eht(V,l,I,H);return V};
dMK=function(V,l,I){Eht(V,l,J3,void 0,I,1,!0);return V};
_.ot=function(V,l){V=_.Fr(V,l);V!=null&&(typeof V==="bigint"?(0,_.tI)(V)?V=Number(V):(V=T2(64,V),V=(0,_.tI)(V)?Number(V):String(V)):V=_.mW(V)?typeof V==="number"?nQ(V):HY(V):void 0);return V};
_.h3=function(V,l){return ww3(_.Fr(V,l))};
_.Pn=function(V,l){return _.Iu(_.Fr(V,l))};
_.KS=function(V,l,I){return _.LQ(_.Fr(V,l,I))};
_.DV=function(V,l){var I=I===void 0?!1:I;var H;return(H=_.h3(V,l))!=null?H:I};
_.lO=function(V,l,I){I=I===void 0?0:I;var H;return(H=_.Pn(V,l))!=null?H:I};
wc1=function(V,l){var I=I===void 0?0:I;var H;return(H=_.jic(_.Fr(V,l)))!=null?H:I};
ZV=function(V,l,I){I=I===void 0?ncf:I;V=_.Fr(V,l);l=typeof V;V=V==null?V:l==="bigint"?_.cw(T2(64,V)):_.mW(V)?l==="string"?LWT(V):e3W(V):void 0;return V!=null?V:I};
NIf=function(V){var l=l===void 0?ncf:l;V=_.Fr(V,23);var I=typeof V;V=V==null?V:I==="bigint"?_.cw((0,_.NE)(64,V)):_.mW(V)?I==="string"?_.oJc(V):_.EJt(V):void 0;return V!=null?V:l};
Sa=function(V,l){var I=I===void 0?0:I;var H;return(H=_.yh(V,l))!=null?H:I};
_.Rt=function(V,l,I,H){I=I===void 0?"":I;var T;return(T=_.KS(V,l,H))!=null?T:I};
_.Qh=function(V,l){var I=I===void 0?0:I;var H;return(H=_.V6(_.Fr(V,l)))!=null?H:I};
cn=function(V,l){var I=I===void 0?"0":I;var H;return(H=h3f(_.Fr(V,l),!0))!=null?H:I};
Wn=function(V,l,I){return _.Rt(V,KO(V,I,l))};
_.bQ=function(V,l,I,H){return _.fA(V,l,KO(V,H,I),void 0)};
_.Bv=function(V,l,I){return _.m6(V,l,dNJ(I))};
_.rS=function(V,l,I){return _.AI(V,l,dNJ(I),!1)};
_.qU=function(V,l,I){return _.m6(V,l,_.lE(I))};
_.Yl=function(V,l,I){return _.m6(V,l,$h(I))};
_.Fm=function(V,l,I){return _.m6(V,l,Yh(I))};
_.lR=function(V,l,I,H){return _.AI(V,l,Yh(I),"",H)};
_.gm=function(V,l,I){return _.m6(V,l,I==null?I:_.iZ(I))};
_.MU=function(V,l,I){return _.AI(V,l,I==null?I:_.iZ(I),0)};var OP=function(V,l,I){this.buffer=V;if(I&&!l)throw Error();this.JSC$6721_isImmutable=l};var K9W=function(V,l,I,H){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6724_start_=0;this.init(V,l,I,H)},sk,YV3,L9N,kTw,arN;
_.B=K9W.prototype;_.B.init=function(V,l,I,H){var T=H===void 0?{}:H;H=T.aliasBytesFields===void 0?!1:T.aliasBytesFields;T=T.treatNewDataAsImmutable===void 0?!1:T.treatNewDataAsImmutable;this.aliasBytesFields=H;this.treatNewDataAsImmutable=T;V&&(V=ohw(V,this.treatNewDataAsImmutable),this.bytes_=V.buffer,this.bytesAreImmutable_=V.JSC$6721_isImmutable,this.JSC$6724_start_=l||0,this.end_=I!==void 0?this.JSC$6724_start_+I:this.bytes_.length,this.cursor_=this.JSC$6724_start_)};
_.B.free=function(){this.clear();jnW.length<100&&jnW.push(this)};
_.B.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6724_start_=0;this.aliasBytesFields=!1};
_.B.reset=function(){this.cursor_=this.JSC$6724_start_};
_.B.atEnd=function(){return this.cursor_==this.end_};
_.pj=function(V,l){var I=0,H=0,T=0,x=V.bytes_,n=V.cursor_;do{var w=x[n++];I|=(w&127)<<T;T+=7}while(T<32&&w&128);T>32&&(H|=(w&127)>>4);for(T=3;T<32&&w&128;T+=7)w=x[n++],H|=(w&127)<<T;sk(V,n);if(w<128)return l(I>>>0,H>>>0);throw Error("X");};
sk=function(V,l){V.cursor_=l;if(l>V.end_)throw Error("Y`"+l+"`"+V.end_);};
_.A3=function(V){var l=V.bytes_,I=V.cursor_,H=l[I++],T=H&127;if(H&128&&(H=l[I++],T|=(H&127)<<7,H&128&&(H=l[I++],T|=(H&127)<<14,H&128&&(H=l[I++],T|=(H&127)<<21,H&128&&(H=l[I++],T|=H<<28,H&128&&l[I++]&128&&l[I++]&128&&l[I++]&128&&l[I++]&128&&l[I++]&128)))))throw Error("X");sk(V,I);return T};
_.uQ=function(V){var l=V.bytes_,I=V.cursor_,H=l[I],T=l[I+1],x=l[I+2];l=l[I+3];sk(V,V.cursor_+4);return(H<<0|T<<8|x<<16|l<<24)>>>0};
YV3=function(V){var l=_.uQ(V);V=_.uQ(V);return HZJ(l,V)};
L9N=function(V){var l=_.uQ(V),I=_.uQ(V);V=(I>>31)*2+1;var H=I>>>20&2047;l=4294967296*(I&1048575)+l;return H==2047?l?NaN:V*Infinity:H==0?V*4.9E-324*l:V*Math.pow(2,H-1075)*(l+4503599627370496)};
_.eIK=function(V){for(var l=0,I=V.cursor_,H=I+10,T=V.bytes_;I<H;){var x=T[I++];l|=x;if((x&128)===0)return sk(V,I),!!(l&127)}throw Error("X");};
kTw=function(V,l){if(l<0)throw Error("Z`"+l);var I=V.cursor_,H=I+l;if(H>V.end_)throw Error("Y`"+(V.end_-I)+"`"+l);V.cursor_=H;return I};
arN=function(V,l){if(l==0)return _.GE();var I=kTw(V,l);V.aliasBytesFields&&V.bytesAreImmutable_?I=V.bytes_.subarray(I,I+l):(V=V.bytes_,l=I+l,I=I===l?new Uint8Array(0):BIf?V.slice(I,l):new Uint8Array(V.subarray(I,l)));return I.length==0?_.GE():new tB(I,rb)};
K9W.prototype.getDataView=function(){var V=this.dataView_;V||(V=this.bytes_,V=this.dataView_=new DataView(V.buffer,V.byteOffset,V.byteLength));return V};
var jnW=[];var Xct=function(V,l,I,H){if(jnW.length){var T=jnW.pop();T.init(V,l,I,H);V=T}else V=new K9W(V,l,I,H);this.decoder_=V;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;F9c(this,H)},F9c=function(V,l){l=l===void 0?{}:l;
V.discardUnknownFields=l.discardUnknownFields===void 0?!1:l.discardUnknownFields},mEt=function(V,l,I,H){if(zIq.length){var T=zIq.pop();
F9c(T,H);T.decoder_.init(V,l,I,H);return T}return new Xct(V,l,I,H)},vhw,CEt,yYg,zIq;
Xct.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;zIq.length<100&&zIq.push(this)};
Xct.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
vhw=function(V){if(V.decoder_.atEnd())return!1;V.fieldCursor_=V.decoder_.cursor_;var l=_.A3(V.decoder_)>>>0,I=l>>>3;l&=7;if(!(l>=0&&l<=5))throw Error("T`"+l+"`"+V.fieldCursor_);if(I<1)throw Error("U`"+I+"`"+V.fieldCursor_);V.nextField_=I;V.nextWireType_=l;return!0};
CEt=function(V){switch(V.nextWireType_){case 0:V.nextWireType_!=0?CEt(V):_.eIK(V.decoder_);break;case 1:V=V.decoder_;sk(V,V.cursor_+8);break;case 2:if(V.nextWireType_!=2)CEt(V);else{var l=_.A3(V.decoder_)>>>0;V=V.decoder_;sk(V,V.cursor_+l)}break;case 5:V=V.decoder_;sk(V,V.cursor_+4);break;case 3:l=V.nextField_;do{if(!vhw(V))throw Error("V");if(V.nextWireType_==4){if(V.nextField_!=l)throw Error("W");break}CEt(V)}while(1);break;default:throw Error("T`"+V.nextWireType_+"`"+V.fieldCursor_);}};
yYg=function(V,l,I){var H=V.decoder_.end_,T=_.A3(V.decoder_)>>>0,x=V.decoder_.cursor_+T,n=x-H;n<=0&&(V.decoder_.end_=x,I(l,V,void 0,void 0,void 0),n=x-V.decoder_.cursor_);if(n)throw Error("S`"+T+"`"+(T-n));V.decoder_.cursor_=x;V.decoder_.end_=H};
_.tY1=function(V){var l=_.A3(V.decoder_)>>>0;V=V.decoder_;var I=kTw(V,l);V=V.bytes_;if(Hrf){var H=V,T;(T=IJc)||(T=IJc=new TextDecoder("utf-8",{fatal:!0}));l=I+l;H=I===0&&l===H.length?H:H.subarray(I,l);try{var x=T.decode(H)}catch(L){if(lJT===void 0){try{T.decode(new Uint8Array([128]))}catch(e){}try{T.decode(new Uint8Array([97])),lJT=!0}catch(e){lJT=!1}}!lJT&&(IJc=void 0);throw L;}}else{x=I;l=x+l;I=[];for(var n=null,w,N;x<l;)w=V[x++],w<128?I.push(w):w<224?x>=l?xT():(N=V[x++],w<194||Tw(N)?(x--,xT()):
I.push((w&31)<<6|N&63)):w<240?x>=l-1?xT():(N=V[x++],Tw(N)||w===224&&N<160||w===237&&N>=160||Tw(T=V[x++])?(x--,xT()):I.push((w&15)<<12|(N&63)<<6|T&63)):w<=244?x>=l-2?xT():(N=V[x++],Tw(N)||(w<<28)+(N-144)>>30!==0||Tw(T=V[x++])||Tw(H=V[x++])?(x--,xT()):(w=(w&7)<<18|(N&63)<<12|(T&63)<<6|H&63,w-=65536,I.push((w>>10&1023)+55296,(w&1023)+56320))):xT(),I.length>=8192&&(n=Vcg(n,I),I.length=0);x=Vcg(n,I)}return x};
_.rYW=function(V){var l=_.A3(V.decoder_)>>>0;return arN(V.decoder_,l)};
_.GT3=function(V,l,I){var H=_.A3(V.decoder_)>>>0;for(H=V.decoder_.cursor_+H;V.decoder_.cursor_<H;)I.push(l(V.decoder_))};
zIq=[];_.mV=function(V,l,I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V,l,I)};
_.mV.prototype.toJSON=function(){return EP(this)};
_.mV.prototype.serialize=function(V){return JSON.stringify(EP(this,V))};
var JVt=function(V,l){if(l==null||l=="")return new V;l=JSON.parse(l);if(!Array.isArray(l))throw Error("$");return new V(pyK(l))};
_.mV.prototype.getExtension=function(V){vJ1(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V.fieldIndex);avy(this,V.fieldIndex);return V.ctor?V.isRepeated?V.getExtensionFn(this,V.ctor,V.fieldIndex,_.i4(),V.JSC$6734_hasMessageId):V.getExtensionFn(this,V.ctor,V.fieldIndex,V.JSC$6734_hasMessageId):V.isRepeated?V.getExtensionFn(this,V.fieldIndex,_.i4(),V.JSC$6734_hasMessageId):V.getExtensionFn(this,V.fieldIndex,V.defaultValue,V.JSC$6734_hasMessageId)};
_.mV.prototype.clone=function(){var V=this,l=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;V=new V.constructor(Dr(l,l[_.NN]|0));YJ(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,2);return V};
_.mV.prototype[kh]=FE;_.mV.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Ect=function(V,l){this.JSC$6736_lo=V>>>0;this.JSC$6736_hi=l>>>0},occ=function(V){if(!V)return JYw||(JYw=new Ect(0,0));
if(!/^\d+$/.test(V))return null;UNJ(V);return new Ect(Ww,bZ)},JYw,Kxc=function(V,l){this.JSC$6738_lo=V>>>0;
this.JSC$6738_hi=l>>>0},whc=function(V){if(!V)return hIN||(hIN=new Kxc(0,0));
if(!/^-?\d+$/.test(V))return null;UNJ(V);return new Kxc(Ww,bZ)},hIN;var Pr1=function(){this.JSC$6740_buffer_=[]},Npf,DMW;
Pr1.prototype.length=function(){return this.JSC$6740_buffer_.length};
Pr1.prototype.end=function(){var V=this.JSC$6740_buffer_;this.JSC$6740_buffer_=[];return V};
Npf=function(V,l,I){for(;I>0||l>127;)V.JSC$6740_buffer_.push(l&127|128),l=(l>>>7|I<<25)>>>0,I>>>=7;V.JSC$6740_buffer_.push(l)};
DMW=function(V,l){for(;l>127;)V.JSC$6740_buffer_.push(l&127|128),l>>>=7;V.JSC$6740_buffer_.push(l)};
_.jO1=function(V,l){if(l>=0)DMW(V,l);else{for(var I=0;I<9;I++)V.JSC$6740_buffer_.push(l&127|128),l>>=7;V.JSC$6740_buffer_.push(1)}};
_.Hh=function(V,l){V.JSC$6740_buffer_.push(l>>>0&255);V.JSC$6740_buffer_.push(l>>>8&255);V.JSC$6740_buffer_.push(l>>>16&255);V.JSC$6740_buffer_.push(l>>>24&255)};var Z51,iE,Lxq,Fxg;Z51=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Pr1};
iE=function(V,l){l.length!==0&&(V.blocks_.push(l),V.totalLength_+=l.length)};
_.ZQK=function(V,l){_.IO(V,l,2);l=V.encoder_.end();iE(V,l);l.push(V.totalLength_);return l};
_.SPt=function(V,l){var I=l.pop();for(I=V.totalLength_+V.encoder_.length()-I;I>127;)l.push(I&127|128),I>>>=7,V.totalLength_++;l.push(I);V.totalLength_++};
_.IO=function(V,l,I){DMW(V.encoder_,l*8+I)};
Lxq=function(V,l,I){if(I!=null){switch(typeof I){case "string":occ(I)}_.IO(V,l,1);switch(typeof I){case "number":V=V.encoder_;lvt(I);_.Hh(V,Ww);_.Hh(V,bZ);break;case "bigint":I=BigInt.asUintN(64,I);I=new Ect(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));V=V.encoder_;l=I.JSC$6736_hi;_.Hh(V,I.JSC$6736_lo);_.Hh(V,l);break;default:I=occ(I),V=V.encoder_,l=I.JSC$6736_hi,_.Hh(V,I.JSC$6736_lo),_.Hh(V,l)}}};
Fxg=function(V,l,I){_.IO(V,l,2);DMW(V.encoder_,I.length);iE(V,V.encoder_.end());iE(V,I)};var hB3,QnJ,W9y;hB3=_.CQ();_.SVg=_.CQ();_.RIt=_.CQ();QnJ=_.CQ();_.vn=_.CQ();_.cYq=_.CQ();W9y=_.CQ();_.b5K=_.CQ();_.qVy=_.CQ();var au=function(V,l,I){this.$$binaryReaderFn=V;this.$$binaryWriterFn=l;V=z2(hB3);this.$$isMsg=!!V&&I===V||!1},WVW=PEK(function(V,l,I,H,T){if(V.nextWireType_!==2)return!1;
yYg(V,$Mw(l,H,I),T);return!0},RBw),bQq=PEK(function(V,l,I,H,T){if(V.nextWireType_!==2)return!1;
yYg(V,$Mw(l,H,I),T);return!0},RBw),lCc=Symbol(),su1=Symbol(),uEt=Symbol(),Tpw=Symbol(),fr1=Symbol(),Quf,cIf;var rVt,MYt,sn1,pcW,AYN,uOT,vc3,O5K,Crw,aqT,fqt,mM1,i5J,lgE,Igv;rVt=function(V,l){var I=new Z51;BpK(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I,gg(lCc,V6W,ICJ,l));iE(I,I.encoder_.end());V=new Uint8Array(I.totalLength_);l=I.blocks_;for(var H=l.length,T=0,x=0;x<H;x++){var n=l[x];V.set(n,T);T+=n.length}I.blocks_=[V];return V};
MYt=_.V5(function(V,l,I){if(V.nextWireType_!==1)return!1;_.lY(l,I,L9N(V.decoder_));return!0},dV3,W9y);
sn1=_.V5(function(V,l,I,H){if(V.nextWireType_!==1)return!1;_.rl(l,I,H,L9N(V.decoder_));return!0},dV3,W9y);
pcW=_.V5(function(V,l,I,H){if(V.nextWireType_!==5)return!1;var T=_.uQ(V.decoder_);V=(T>>31)*2+1;var x=T>>>23&255;T&=8388607;_.rl(l,I,H,x==255?T?NaN:V*Infinity:x==0?V*1.401298464324817E-45*T:V*Math.pow(2,x-150)*(T+8388608));return!0},function(V,l,I){l=nJ1(l);
l!=null&&(_.IO(V,I,5),V=V.encoder_,I=$Vt||($Vt=new DataView(new ArrayBuffer(8))),I.setFloat32(0,+l,!0),bZ=0,Ww=I.getUint32(0,!0),_.Hh(V,Ww))},_.CQ());
_.Ok=_.V5(function(V,l,I){if(V.nextWireType_!==0)return!1;_.lY(l,I,_.pj(V.decoder_,Tbq));return!0},_.Uq,_.vn);
AYN=_.V5(function(V,l,I){if(V.nextWireType_!==0)return!1;V=_.pj(V.decoder_,Tbq);_.lY(l,I,V===0?void 0:V);return!0},_.Uq,_.vn);
uOT=_.V5(function(V,l,I,H){if(V.nextWireType_!==0)return!1;_.rl(l,I,H,_.pj(V.decoder_,Tbq));return!0},_.Uq,_.vn);
_.Cj=_.V5(function(V,l,I){if(V.nextWireType_!==0)return!1;_.lY(l,I,_.A3(V.decoder_));return!0},Yqf,QnJ);
vc3=_.V5(function(V,l,I){if(V.nextWireType_!==0)return!1;V=_.A3(V.decoder_);_.lY(l,I,V===0?void 0:V);return!0},Yqf,QnJ);
O5K=_.V5(function(V,l,I,H){if(V.nextWireType_!==0)return!1;_.rl(l,I,H,_.A3(V.decoder_));return!0},Yqf,QnJ);
Crw=_.V5(function(V,l,I){if(V.nextWireType_!==1)return!1;_.lY(l,I,YV3(V.decoder_));return!0},_.eMW,_.cYq);
aqT=_.nng(function(V,l,I){if(V.nextWireType_!==1&&V.nextWireType_!==2)return!1;l=_.k2t(l,l[_.NN]|0,I);V.nextWireType_==2?_.GT3(V,YV3,l):l.push(YV3(V.decoder_));return!0},function(V,l,I){l=_.UV1(DNg,l,!1);
if(l!=null)for(var H=0;H<l.length;H++)Lxq(V,I,l[H])},_.cYq);
_.at=_.V5(function(V,l,I){if(V.nextWireType_!==0)return!1;_.lY(l,I,_.eIK(V.decoder_));return!0},_.kft,_.SVg);
fqt=_.V5(function(V,l,I,H){if(V.nextWireType_!==0)return!1;_.rl(l,I,H,_.eIK(V.decoder_));return!0},_.kft,_.SVg);
_.fj=_.V5(function(V,l,I){if(V.nextWireType_!==2)return!1;_.lY(l,I,_.tY1(V));return!0},_.Xh3,_.RIt);
_.gcK=_.V5(function(V,l,I,H){if(V.nextWireType_!==2)return!1;_.rl(l,I,H,_.tY1(V));return!0},_.Xh3,_.RIt);
mM1=_.nng(function(V,l,I){if(V.nextWireType_!==2)return!1;V=_.tY1(V);_.k2t(l,l[_.NN]|0,I).push(V);return!0},function(V,l,I){l=_.UV1(_.LQ,l,!0);
if(l!=null)for(var H=0;H<l.length;H++){var T=V,x=I,n=l[H];n!=null&&Fxg(T,x,TWT(n))}},_.RIt);
i5J=void 0;i5J=i5J===void 0?hB3:i5J;_.gl=new au(function(V,l,I,H,T){if(V.nextWireType_!==2)return!1;H=PY(void 0,H,!0);_.k2t(l,l[_.NN]|0,I).push(H);yYg(V,H,T);return!0},function(V,l,I,H,T){if(Array.isArray(l))for(var x=0;x<l.length;x++)zMT(V,l[x],I,H,T)},i5J);
_.mM=PEK(function(V,l,I,H,T,x){if(V.nextWireType_!==2)return!1;var n=l[_.NN]|0;zBK(l,n,x,I,So(n));l=$Mw(l,H,I);yYg(V,l,T);return!0},zMT);
_.Vcv=_.V5(function(V,l,I){if(V.nextWireType_!==2)return!1;_.lY(l,I,_.rYW(V));return!0},_.yVK,_.b5K);
lgE=_.V5(function(V,l,I,H){if(V.nextWireType_!==2)return!1;_.rl(l,I,H,_.rYW(V));return!0},_.yVK,_.b5K);
Igv=_.V5(function(V,l,I,H){if(V.nextWireType_!==0)return!1;_.rl(l,I,H,_.A3(V.decoder_)>>>0);return!0},function(V,l,I){l=_.jic(l);
l!=null&&l!=null&&(_.IO(V,I,0),DMW(V.encoder_,l))},_.CQ());
_.iQ=_.V5(function(V,l,I){if(V.nextWireType_!==0)return!1;_.lY(l,I,_.A3(V.decoder_));return!0},_.t61,_.qVy);var BWa=function(){var V=HKB,l=TWJ;this.fieldIndex=175237375;this.ctor=l;this.isRepeated=0;this.getExtensionFn=_.fA;this.defaultValue=void 0;this.JSC$6734_hasMessageId=V.messageId!=null?Pw:void 0};
BWa.prototype.register=function(){wl(this)};var xqB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(xqB,_.mV);var UqB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(UqB,_.mV);var PYc=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(PYc,_.mV);var nTN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(nTN,_.mV);var $qo=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t($qo,_.mV);var dqZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(dqZ,_.mV);var wy0=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(wy0,_.mV);wy0.prototype.getData=function(){return _.t3(this,2)};var NW0=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(NW0,_.mV);var K3o=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(K3o,_.mV);K3o.prototype.getStyle=function(){return _.fA(this,xqB,1)};var Kd=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Kd,_.mV);Kd.prototype.getPayloadCase=function(){return _.Gp(this,Ld)};
Kd.prototype.getStyle=function(){return _.bQ(this,K3o,6,Ld)};
var j1B=function(){var V=new Kd,l=new $qo;return _.Yn(V,7,Ld,l)},Ytb=function(){var V=new Kd,l=new dqZ;
return _.Yn(V,8,Ld,l)},Ld=[1,
2,3,4,5,6,7,8];var L3Z=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(L3Z,_.mV);var etJ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(etJ,_.mV);var kwN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(kwN,_.mV);var F3E=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(F3E,_.mV);var Xyo=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Xyo,_.mV);var ztZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(ztZ,_.mV);var y10=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(y10,_.mV);var tcB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(tcB,_.mV);tcB.prototype.getData=function(){return _.t3(this,2)};var r1b=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(r1b,_.mV);var hMq=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(hMq,_.mV);hMq.prototype.getPayloadCase=function(){return _.Gp(this,Vm)};
var Vm=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var l_=function(V,l){V=Error.call(this,V);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.code=l===void 0?2:l};
_.t(l_,Error);var Gwo=Promise;var ETa=function(V){this.channelPromise=V};
ETa.prototype.send=function(V,l,I){this.channelPromise.then(function(H){H.send(V,l,I)})};var J1w=function(V,l){this.data=V;this.channel=l};
J1w.prototype.reply=function(V,l,I){this.channel.send(V,l,I)};var oTa=function(V){this.JSC$6812_port_=V};
oTa.prototype.send=function(V,l,I){I=I===void 0?[]:I;var H=new MessageChannel;htB(H.port1,l);this.JSC$6812_port_.postMessage(V,[H.port2].concat(I))};
var PNo=function(V,l){htB(V,l);return new oTa(V)},htB=function(V,l){l&&(V.onmessage=function(I){l(new J1w(I.data,PNo(I.ports[0])))})};var Dqi=function(V){this.verifier_=V},ZKw=function(V){var l=Object.create(null);
(typeof V==="string"?[V]:V).forEach(function(I){if(I==="null")throw Error("ba");l[I]=!0});
return function(I){return l[I]===!0}};_.St3=function(){if(!_.nK.addEventListener||!Object.defineProperty)return!1;var V=!1,l=Object.defineProperty({},"passive",{get:function(){V=!0}});
try{var I=function(){};
_.nK.addEventListener("test",I,l);_.nK.removeEventListener("test",I,l)}catch(H){}return V}();var Rt0;_.Ik=function(V){var l=V.destination;var I=V.iframe;var H=V.origin;var T=V.channelName===void 0?"ZNWN1d":V.channelName;var x=V.onMessage===void 0?void 0:V.onMessage;V=V.onEstablished===void 0?void 0:V.onEstablished;return Rt0({destination:l,getSource:function(){return I.contentWindow},
originVerifier:H instanceof Dqi?H:typeof H==="function"?new Dqi(H):new Dqi(ZKw(H)),channelName:T,onMessage:x,onEstablished:V})};
Rt0=function(V){var l=V.destination;var I=V.getSource;var H=V.originVerifier;var T=V.token===void 0?void 0:V.token;var x=V.channelName;var n=V.onMessage===void 0?void 0:V.onMessage;var w=V.onEstablished===void 0?void 0:V.onEstablished;return new ETa(new Gwo(function(N,L){var e=function(k){k.source&&k.source===I()&&H.verifier_(k.origin)&&(k.data.n||k.data)===x&&(l.removeEventListener("message",e,!1),T&&k.data.t!==T?L(Error("ca`"+x+"`"+T+"`"+k.data.t)):(N(PNo(k.ports[0],n)),w&&w(k)))};
l.addEventListener("message",e,!1)}))};var Q1N=function(V){try{V()}catch(l){$T(l)}};var W3w=function(V){var l=this;var I=V.getMessageType;var H=V.onUnregisteredMessage===void 0?function(){}:V.onUnregisteredMessage;
var T=V.onBeforeRegisteredMessage===void 0?function(){}:V.onBeforeRegisteredMessage;
V=V.onAfterRegisteredMessage===void 0?function(){}:V.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=I;this.onUnregisteredMessage_=H;this.onBeforeRegisteredMessage_=T;this.onAfterRegisteredMessage_=V;this.onMessage=function(x){return c1i(l,x)}};
W3w.prototype.register=function(V,l){this.registry_.set(V,l);return this};
var c1i=function(V,l){var I=V.getMessageType_(l.data),H=V.registry_.get(I);H?(Q1N(function(){return V.onBeforeRegisteredMessage_(l,I)}),Q1N(function(){return H(l)}),Q1N(function(){return V.onAfterRegisteredMessage_(l,I)})):Q1N(function(){return V.onUnregisteredMessage_(l,I)})};var bKw=function(V){this.JSC$6829_channel_=V},Mci,s1b;
bKw.prototype.send=function(V,l,I){this.JSC$6829_channel_.send(EP(V),l,I)};
_.qtE=function(V,l){return function(I){var H=new V(I.data);return l(new J1w(H,I.channel))}};
Mci=function(V){return function(l){return V(new J1w(l.data,new bKw(l.channel)))}};
s1b=function(V,l){return Mci(_.qtE(V,l))};var pyZ=function(V,l,I,H){this.registry=V;this.delegate=l;this.receiveMessageConstructor=I;this.createInitMessage=H;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},onW=function(V){var l=new W3w({getMessageType:V.getPayloadCase});
return new pyZ(l,new bKw(_.Ik({iframe:V.child,destination:window,origin:V.origin,channelName:V.channelName,onMessage:s1b(V.receiveMessageConstructor,l.onMessage)})),V.receiveMessageConstructor,V.createInitMessage)},A1v=function(V,l){V.createInitMessage=l};
pyZ.prototype.send=function(V){if(!this.initialised)throw new l_("Attempted to send a message before initialisation.");this.delegate.send(V)};
var uJb=function(V,l){return _.d(function(I){if(!V.initialised)throw new l_("Attempted to send a message before initialisation.");return I.return(new Promise(function(H){V.delegate.send(l,s1b(V.receiveMessageConstructor,H))}))})};
pyZ.prototype.init=function(){var V=this;return _.d(function(l){if(V.initialised)throw new l_("Attempted to initialise twice. The SDK can only be initialised once.");if(V.createInitMessage!==void 0){var I=V.delegate,H=I.send,T=V.createInitMessage;var x=new UqB;var n=[].concat(_.oI(V.features));x=_.pQ(x,1,n,_.iZ);H.call(I,T.call(V,x))}V.initialised=!0;_.FU(l)})};
var Hi=function(V,l){if(V.initialised)throw new l_("Attempted to use a new API after initialisation. All APIs must be set up before initialising the SDK.");V.features.add(l);return V.registry};
_.vI.Object.defineProperties(pyZ.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var vTw=function(V){this.channel=V;this.registered=!1};
vTw.prototype.update=function(V){if(this.channel.isInitialised){if(!this.registered)throw new l_("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var l=new Kd;var I=new nTN;I=_.Bv(I,1,V);l=_.Yn(l,2,Ld,I);this.channel.send(l)}else this.register();this.JSC$6843_audioEnabled=V};
vTw.prototype.register=function(){Hi(this.channel,1);this.registered=!0};
vTw.prototype.isAudioEnabled=function(){return this.JSC$6843_audioEnabled};var OKZ=function(V){this.channel=V};
_.B=OKZ.prototype;_.B.onFirstFrameReady=function(V){Hi(this.channel,2).register(11,function(l){l=_.bQ(l.data,L3Z,11,Vm);if(!l)throw new l_("Unexpectedly nonexistent GameFirstFrameReadyEvent");V(_.Rt(l,1))})};
_.B.onReady=function(V){Hi(this.channel,2).register(4,function(l){l=_.bQ(l.data,kwN,4,Vm);if(!l)throw new l_("Unexpectedly nonexistent GameReadyEvent");V(_.Rt(l,1))})};
_.B.onLevelComplete=function(V){Hi(this.channel,2).register(5,function(l){l=_.bQ(l.data,F3E,5,Vm);if(!l)throw new l_("Unexpectedly nonexistent LevelCompleteEvent");V(_.Rt(l,1),_.lO(l,2))})};
_.B.onGameOver=function(V){Hi(this.channel,2).register(6,function(l){l=_.bQ(l.data,etJ,6,Vm);if(!l)throw new l_("Unexpectedly nonexistent GameOverEvent");V(_.Rt(l,1))})};
_.B.pause=function(){var V=this;if(!this.channel.isInitialised)return Hi(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new l_("Using unregistered Game Feature: pause.");var l=j1B();return new Promise(function(I){return _.d(function(H){if(H.nextAddress==1)return _.K(H,uJb(V.channel,l),2);I();_.FU(H)})})};
_.B.resume=function(){var V=this;if(!this.channel.isInitialised)return Hi(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new l_("Using unregistered Game Feature: resume.");var l=Ytb();return new Promise(function(I){return _.d(function(H){if(H.nextAddress==1)return _.K(H,uJb(V.channel,l),2);I();_.FU(H)})})};var CNZ=function(V){this.channel=V};
CNZ.prototype.onReady=function(V){Hi(this.channel,5).register(8,function(l){if(!_.bQ(l.data,Xyo,8,Vm))throw new l_("Unexpectedly nonexistent PageReadyEvent");V()})};var agJ=function(V){this.channel=V};
agJ.prototype.onChange=function(V){Hi(this.channel,3).register(7,function(l){l=_.bQ(l.data,ztZ,7,Vm);if(!l)throw new l_("Unexpectedly nonexistent ScoreEvent");V(_.Rt(l,1),_.lO(l,2))})};var fgw={load:function(){throw new l_("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new l_("Storage used, but storage.onSave() listener not set!");}},gTi=function(V){this.channel=V;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},mqJ=function(V){Hi(V.channel,4).register(2,fgw.load).register(3,fgw.save);
V.initialSetupDone=!0};
gTi.prototype.onLoad=function(V){this.initialSetupDone||mqJ(this);this.loadRegistered||(this.loadRegistered=!0,Hi(this.channel,4).register(2,function(l){var I,H,T;return _.d(function(x){if(x.nextAddress==1){I=_.bQ(l.data,y10,2,Vm);if(!I)throw new l_("Unexpectedly nonexistent StorageLoad");H=_.Rt(I,1);return _.K(x,V(H),2)}T=x.yieldResult;var n=l.reply,w=new Kd;var N=new wy0;N=_.Fm(N,1,H);N=_.m6(N,2,_.hB(T,!1));w=_.Yn(w,3,Ld,N);n.call(l,w);_.FU(x)})}))};
gTi.prototype.onSave=function(V){this.initialSetupDone||mqJ(this);this.saveRegistered||(this.saveRegistered=!0,Hi(this.channel,4).register(3,function(l){var I,H,T;return _.d(function(x){if(x.nextAddress==1){I=_.bQ(l.data,tcB,3,Vm);if(!I)throw new l_("Unexpectedly nonexistent StorageSave");H=_.Rt(I,1);T=C0N(I.getData());return _.K(x,V(H,T),2)}var n=l.reply,w=new Kd;var N=new NW0;N=_.Fm(N,1,H);w=_.Yn(w,4,Ld,N);n.call(l,w);_.FU(x)})}))};var iKo=function(V){this.channel=V};
iKo.prototype.update=function(V){if(!this.channel.features.has(6))throw new l_("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var l=new Kd,I=new K3o;V=_.j6(I,1,V);l=_.Yn(l,6,Ld,V);this.channel.send(l)};
iKo.prototype.register=function(){Hi(this.channel,6)};var VoW=function(V){this.channel=V;this.userActivityLoggingIntervalMs=0};
VoW.prototype.onUserActivity=function(V,l){this.userActivityLoggingIntervalMs=l;Hi(this.channel,7).register(9,function(I){if(!_.bQ(I.data,r1b,9,Vm))throw new l_("Unexpectedly nonexistent ClickEvent");V()})};var lvN=function(V){var l=this;this.channel=V;this.init=this.channel.init.bind(this.channel);this.page=new CNZ(this.channel);this.game=new OKZ(this.channel);this.audio=new vTw(this.channel);this.score=new agJ(this.channel);this.storage=new gTi(this.channel);this.style=new iKo(this.channel);this.userActivity=new VoW(this.channel);A1v(this.channel,function(I){var H=new PYc;I=_.j6(H,1,I);I=_.qU(I,3,l.userActivity.userActivityLoggingIntervalMs);H=l.audio.isAudioEnabled();H!==void 0&&_.Bv(I,2,H);H=new Kd;
return _.Yn(H,5,Ld,I)})};var Iv0=function(){this.timedFunctionContext=0};
Iv0.prototype.timeExecution=function(V,l){var I=this;return function(){var H=_.Q5.apply(0,arguments);I.timedFunctionContext=V;return l.apply(null,_.oI(H))}};var HZ0=function(){var V={};this.priorityTasks=(V[3]=[],V[2]=[],V[1]=[],V);this.isFlushing=!1},w$=function(V,l,I){var H=TbN(V,I);
V.priorityTasks[I].push(l);H&&V.priorityTasks[I].length===1&&V.flush()},TbN=function(V,l){return Object.keys(V.priorityTasks).map(function(I){return Number(I)}).filter(function(I){return!isNaN(I)&&I>l}).every(function(I){return V.priorityTasks[I].length===0})};
HZ0.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(V){return V.length>0});)Bb0(this,3),Bb0(this,2),Bb0(this,1)}catch(V){throw Object.values(this.priorityTasks).forEach(function(l){return void l.splice(0,l.length)}),V;
}finally{this.isFlushing=!1}}};
var Bb0=function(V,l){for(;TbN(V,l)&&V.priorityTasks[l].length>0;)V.priorityTasks[l][0](),V.priorityTasks[l].shift()};
_.vI.Object.defineProperties(HZ0.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(V){return V.length>0})}}});var WxJ={};var xNZ=globalThis.trustedTypes,ZdW=xNZ,RMw;var kn=function(V){this.privateDoNotAccessOrElseWrappedResourceUrl=V};
kn.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var UN0=_.fl([""]),nJB=RCc(["\x00"],["\\0"]),$Na=RCc(["\n"],["\\n"]),dN0=RCc(["\x00"],["\\u0000"]);cVW(function(V){return V(UN0)})||cVW(function(V){return V(nJB)})||cVW(function(V){return V($Na)})||cVW(function(V){return V(dN0)});var ZC;_.rp=function(V,l){this.privateDoNotAccessOrElseWrappedUrl=l};
_.rp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.wwW=Eq("about:blank");ZC=Eq("about:invalid#zClosurez");var bdf=function(V){this.isValid=V},NbE=new bdf(function(V){return/^[^:]*([/?#]|$)/.test(V)}),KWo=Ph("data"),jio=Ph("http"),YNw=Ph("https"),LWJ=Ph("ftp"),e3b=Ph("mailto"),kEB=Ph("intent"),FWw=Ph("vnd.youtube"),qqy=[KWo,
jio,YNw,e3b,LWJ,NbE],M6c=e6(function(){return typeof URL==="function"}),Xwo=["data:",
"http:","https:","mailto:","ftp:"],phK=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var MV=function(V){this.privateDoNotAccessOrElseWrappedHtml=V};
MV.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var C2g=e6(function(){return new MV(xNZ?xNZ.emptyHTML:"")});var z3Z={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"},ujN=function(V,l){var I=Error.call(this,V+" cannot be used with intent "+z3Z[l]);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.type=V;this.intent=l;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.t(ujN,Error);_.Cd=function(V){this.privateDoNotAccessOrElseWrappedScript=V};
_.Cd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var aCf=function(V){this.privateDoNotAccessOrElseWrappedAttributePrefix=V};
aCf.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var fCt="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var wKf=function(V){var l=_.SN("window.location.href");V==null&&(V='Unknown Error of type "null/undefined"');if(typeof V==="string")return{message:V,name:"Unknown error",lineNumber:"Not available",fileName:l,stack:"Not available"};var I=!1;try{var H=V.lineNumber||V.line||"Not available"}catch(n){H="Not available",I=!0}try{var T=V.fileName||V.filename||V.sourceURL||_.nK.$googDebugFname||l}catch(n){T="Not available",I=!0}l=yBa(V);if(!(!I&&V.lineNumber&&V.fileName&&V.stack&&V.message&&V.name)){I=V.message;
if(I==null){if(V.constructor&&V.constructor instanceof Function){if(V.constructor.name)I=V.constructor.name;else if(I=V.constructor,Te[I])I=Te[I];else{I=String(I);if(!Te[I]){var x=/function\s+([^\(]+)/m.exec(I);Te[I]=x?x[1]:"[Anonymous]"}I=Te[I]}I='Unknown Error of type "'+I+'"'}else I="Unknown Error of unknown type";typeof V.toString==="function"&&Object.prototype.toString!==V.toString&&(I+=": "+V.toString())}return{message:I,name:V.name||"UnknownError",lineNumber:H,fileName:T,stack:l||"Not available"}}return{message:V.message,
name:V.name,lineNumber:V.lineNumber,fileName:V.fileName,stack:l}},yBa=function(V,l){l||(l={});
l[tow(V)]=!0;var I=V.stack||"",H=V.cause;H&&!l[tow(H)]&&(I+="\nCaused by: ",H.stack&&H.stack.indexOf(H.toString())==0||(I+=typeof H==="string"?H:H.message+"\n"),I+=yBa(H,l));V=V.errors;if(Array.isArray(V)){H=1;var T;for(T=0;T<V.length&&!(H>4);T++)l[tow(V[T])]||(I+="\nInner error "+H++ +": ",V[T].stack&&V[T].stack.indexOf(V[T].toString())==0||(I+=typeof V[T]==="string"?V[T]:V[T].message+"\n"),I+=yBa(V[T],l));T<V.length&&(I+="\n... "+(V.length-T)+" more inner errors")}return I},tow=function(V){var l=
"";
typeof V.toString==="function"&&(l=""+V);return l+V.stack},Te={};var rBb,vO,i8,EJ3,JBZ,GEJ,cv,QM,h3a;rBb=function(V,l){for(var I=V.split("%s"),H="",T=Array.prototype.slice.call(arguments,1);T.length&&I.length>1;)H+=I.shift()+T.shift();return H+I.join("%s")};
_.Q0=function(V){return encodeURIComponent(String(V))};
vO=function(V){return decodeURIComponent(V.replace(/\+/g," "))};
i8=function(V){w3q.test(V)&&(V.indexOf("&")!=-1&&(V=V.replace(BhJ,"&amp;")),V.indexOf("<")!=-1&&(V=V.replace(xcw,"&lt;")),V.indexOf(">")!=-1&&(V=V.replace(Uc1,"&gt;")),V.indexOf('"')!=-1&&(V=V.replace(nOt,"&quot;")),V.indexOf("'")!=-1&&(V=V.replace($cN,"&#39;")),V.indexOf("\x00")!=-1&&(V=V.replace(dcK,"&#0;")));return V};
EJ3=function(V){var l={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var I=_.nK.document.createElement("div");return V.replace(GEJ,function(H,T){var x=l[H];if(x)return x;T.charAt(0)=="#"&&(T=Number("0"+T.slice(1)),isNaN(T)||(x=String.fromCharCode(T)));x||(_.iY(I,sq(H+" ")),x=I.firstChild.nodeValue.slice(0,-1));return l[H]=x})};
JBZ=function(V){return V.replace(/&([^;]+);/g,function(l,I){switch(I){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return I.charAt(0)!="#"||(I=Number("0"+I.slice(1)),isNaN(I))?l:String.fromCharCode(I)}})};
GEJ=/&([^;\s<&]+);?/g;_.PU1=function(V){return String(V).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.oJo=String.prototype.repeat?function(V,l){return V.repeat(l)}:function(V,l){return Array(l+1).join(V)};
_.Bi=function(V,l){if(!Number.isFinite(V))return String(V);V=String(V);var I=V.indexOf(".");I===-1&&(I=V.length);var H=V[0]==="-"?"-":"";H&&(V=V.substring(1));return H+(0,_.oJo)("0",Math.max(0,l-I))+V};
cv=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.xv()).toString(36)};
QM=function(V){for(var l=0,I=0;I<V.length;++I)l=31*l+V.charCodeAt(I)>>>0;return l};
_.K8=function(V){return String(V).replace(/\-([a-z])/g,function(l,I){return I.toUpperCase()})};
_.Nz=function(V){return String(V).replace(/([A-Z])/g,"-$1").toLowerCase()};
h3a=function(V){return V.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(l,I,H){return I+H.toUpperCase()})};var PZ0=function(){this.names=new Map};
PZ0.prototype.getName=function(V){var l=this.names.get(V);if(l)return l;var I;l=(I=V.description)!=null?I:cv();this.names.set(V,l);return l};var DNv=function(V){var l=Error.call(this,V?V.length+" errors occurred during unsubscription:\n"+V.map(function(I,H){return H+1+") "+I.toString()}).join("\n  "):"");
this.message=l.message;"stack"in l&&(this.stack=l.stack);this.errors=V;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.t(DNv,Error);var TL=function(V){this.initialTeardown=V;this.closed=!1;this._teardowns=this._parentage=null};
_.B=TL.prototype;
_.B.unsubscribe=function(){if(!this.closed){this.closed=!0;var V=this._parentage;if(Array.isArray(V))for(var l=_.U(V),I=l.next();!I.done;I=l.next())I.value.remove(this);else V==null||V.remove(this);l=this.initialTeardown;if(Hk(l))try{l()}catch(x){var H=x instanceof DNv?x.errors:[x]}var T=this._teardowns;if(T)for(this._teardowns=null,l=_.U(T),I=l.next();!I.done;I=l.next()){I=I.value;try{Hk(I)?I():I.unsubscribe()}catch(x){I=void 0,H=(I=H)!=null?I:[],x instanceof DNv?H=[].concat(_.oI(H),_.oI(x.errors)):
H.push(x)}}if(H)throw new DNv(H);}};
_.B.add=function(V){if(V&&V!==this)if(this.closed)Hk(V)?V():V.unsubscribe();else{if(V instanceof TL){if(V.closed||V._hasParent(this))return;V._addParent(this)}var l;(this._teardowns=(l=this._teardowns)!=null?l:[]).push(V)}};
_.B._hasParent=function(V){var l=this._parentage;return l===V||Array.isArray(l)&&l.includes(V)};
_.B._addParent=function(V){var l=this._parentage;this._parentage=Array.isArray(l)?(l.push(V),l):l?[l,V]:V};
_.B._removeParent=function(V){var l=this._parentage;l===V?this._parentage=null:Array.isArray(l)&&VdK(l,V)};
_.B.remove=function(V){var l=this._teardowns;l&&VdK(l,V);V instanceof TL&&V._removeParent(this)};
var ZZb=new TL;ZZb.closed=!0;TL.JSC$6939_EMPTY=ZZb;var IKT=function(){setTimeout.apply(null,_.oI(_.Q5.apply(0,arguments)))};var xD=function(V){TL.call(this);this.JSC$6944_isStopped=!1;this.destination=V instanceof xD?V:new UY(!V||Hk(V)?{next:V!=null?V:void 0}:V);lKW(V)&&V.add(this)};
_.t(xD,TL);xD.JSC$6939_EMPTY=TL.JSC$6939_EMPTY;xD.create=function(V,l,I){return new nu(V,l,I)};
_.B=xD.prototype;_.B.next=function(V){this.JSC$6944_isStopped||this._next(V)};
_.B.error=function(V){this.JSC$6944_isStopped||(this.JSC$6944_isStopped=!0,this._error(V))};
_.B.complete=function(){this.JSC$6944_isStopped||(this.JSC$6944_isStopped=!0,this._complete())};
_.B.unsubscribe=function(){this.closed||(this.JSC$6944_isStopped=!0,TL.prototype.unsubscribe.call(this))};
_.B._next=function(V){this.destination.next(V)};
_.B._error=function(V){this.destination.error(V);this.unsubscribe()};
_.B._complete=function(){this.destination.complete();this.unsubscribe()};
var UY=function(V){this.partialObserver=V};
UY.prototype.next=function(V){var l=this.partialObserver;if(l.next)try{l.next(V)}catch(I){xE(I)}};
UY.prototype.error=function(V){var l=this.partialObserver;if(l.error)try{l.error(V)}catch(I){xE(I)}else xE(V)};
UY.prototype.complete=function(){var V=this.partialObserver;if(V.complete)try{V.complete()}catch(l){xE(l)}};
var nu=function(V,l,I){xD.call(this);var H;Hk(V)||!V?H={next:V!=null?V:void 0,error:l!=null?l:void 0,complete:I!=null?I:void 0}:H=V;this.destination=new UY(H)};
_.t(nu,xD);nu.JSC$6939_EMPTY=xD.JSC$6939_EMPTY;nu.create=xD.create;var d4=typeof Symbol==="function"&&Symbol.observable||"@@observable";var $E=function(V){V&&(this._subscribe=V)};
_.B=$E.prototype;_.B.lift=function(V){var l=new $E;l.source=this;l.operator=V;return l};
_.B.subscribe=function(V,l,I){V=V&&V instanceof xD||V&&Hk(V.next)&&Hk(V.error)&&Hk(V.complete)&&lKW(V)?V:new nu(V,l,I);l=this.operator;I=this.source;V.add(l?l.call(V,I):I?this._subscribe(V):this._trySubscribe(V));return V};
_.B._trySubscribe=function(V){try{return this._subscribe(V)}catch(l){V.error(l)}};
_.B.forEach=function(V,l){var I=this;l=T4T(l);return new l(function(H,T){var x=I.subscribe(function(n){try{V(n)}catch(w){T(w),x==null||x.unsubscribe()}},T,H)})};
_.B._subscribe=function(V){var l;return(l=this.source)==null?void 0:l.subscribe(V)};
$E.prototype[d4]=function(){return this};
$E.prototype.pipe=function(){var V=_.Q5.apply(0,arguments);return V.length?Hk1(V)(this):this};
$E.create=function(V){return new $E(V)};var SNZ=function(){var V=Error.call(this,"object unsubscribed");this.message=V.message;"stack"in V&&(this.stack=V.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.t(SNZ,Error);var nG=function(){this.observers=[];this.hasError=this.JSC$6960_isStopped=this.closed=!1;this.thrownError=null};
_.t(nG,$E);_.B=nG.prototype;_.B.lift=function(V){var l=new $D(this,this);l.operator=V;return l};
_.B._throwIfClosed=function(){if(this.closed)throw new SNZ;};
_.B.next=function(V){this._throwIfClosed();if(!this.JSC$6960_isStopped){var l=this.observers.slice();l=_.U(l);for(var I=l.next();!I.done;I=l.next())I.value.next(V)}};
_.B.error=function(V){this._throwIfClosed();if(!this.JSC$6960_isStopped){this.hasError=this.JSC$6960_isStopped=!0;this.thrownError=V;for(var l=this.observers;l.length;)l.shift().error(V)}};
_.B.complete=function(){this._throwIfClosed();if(!this.JSC$6960_isStopped){this.JSC$6960_isStopped=!0;for(var V=this.observers;V.length;)V.shift().complete()}};
_.B.unsubscribe=function(){this.JSC$6960_isStopped=this.closed=!0;this.observers=null};
_.B._trySubscribe=function(V){this._throwIfClosed();return $E.prototype._trySubscribe.call(this,V)};
_.B._subscribe=function(V){this._throwIfClosed();this._checkFinalizedStatuses(V);return this._innerSubscribe(V)};
_.B._innerSubscribe=function(V){var l=this,I=this.JSC$6960_isStopped,H=this.observers;return this.hasError||I?TL.JSC$6939_EMPTY:(H.push(V),new TL(function(){return VdK(l.observers,V)}))};
_.B._checkFinalizedStatuses=function(V){var l=this.thrownError,I=this.JSC$6960_isStopped;this.hasError?V.error(l):I&&V.complete()};
nG.create=function(V,l){return new $D(V,l)};
var $D=function(V,l){nG.call(this);this.destination=V;this.source=l};
_.t($D,nG);$D.create=nG.create;$D.prototype.next=function(V){var l,I;(l=this.destination)==null||(I=l.next)==null||I.call(l,V)};
$D.prototype.error=function(V){var l,I;(l=this.destination)==null||(I=l.error)==null||I.call(l,V)};
$D.prototype.complete=function(){var V,l;(V=this.destination)==null||(l=V.complete)==null||l.call(V)};
$D.prototype._subscribe=function(V){var l,I;return(I=(l=this.source)==null?void 0:l.subscribe(V))!=null?I:TL.JSC$6939_EMPTY};var b4=function(V){nG.call(this);this._value=V};
_.t(b4,nG);b4.create=nG.create;b4.prototype._subscribe=function(V){var l=nG.prototype._subscribe.call(this,V);!l.closed&&V.next(this._value);return l};
b4.prototype.getValue=function(){var V=this.thrownError,l=this._value;if(this.hasError)throw V;this._throwIfClosed();return l};
b4.prototype.next=function(V){nG.prototype.next.call(this,this._value=V)};
_.vI.Object.defineProperties(b4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Sd=new $E(function(V){return V.complete()});var nEt=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var KYN=function(V){return V&&typeof V.length==="number"&&typeof V!=="function"};var R3E={now:function(){return(R3E.delegate||Date).now()},
delegate:void 0};var fk=function(V,l,I){V=V===void 0?Infinity:V;l=l===void 0?Infinity:l;I=I===void 0?R3E:I;nG.call(this);this.JSC$6982_bufferSize=V;this.windowTime=l;this.timestampProvider=I;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=l===Infinity;this.JSC$6982_bufferSize=Math.max(1,V);this.windowTime=Math.max(1,l)};
_.t(fk,nG);fk.create=nG.create;fk.prototype.next=function(V){var l=this.buffer,I=this.infiniteTimeWindow,H=this.timestampProvider,T=this.windowTime;this.JSC$6960_isStopped||(l.push(V),!I&&l.push(H.now()+T));QiJ(this);nG.prototype.next.call(this,V)};
fk.prototype._subscribe=function(V){this._throwIfClosed();QiJ(this);for(var l=this._innerSubscribe(V),I=this.infiniteTimeWindow,H=this.buffer.slice(),T=0;T<H.length&&!V.closed;T+=I?1:2)V.next(H[T]);this._checkFinalizedStatuses(V);return l};
var QiJ=function(V){var l=V.JSC$6982_bufferSize,I=V.timestampProvider,H=V.buffer;V=V.infiniteTimeWindow;var T=(V?1:2)*l;l<Infinity&&T<H.length&&H.splice(0,H.length-T);if(!V){l=I.now();I=0;for(V=1;V<H.length&&H[V]<=l;V+=2)I=V;I&&H.splice(0,I+1)}};var WWb=function(V,l){l=l===void 0?cBN:l;this.schedulerActionCtor=V;this.now=l};
WWb.prototype.schedule=function(V,l,I){l=l===void 0?0:l;return(new this.schedulerActionCtor(this,V)).schedule(I,l)};
var cBN=R3E.now;var x3w=function(){var V=Error.call(this,"no elements in sequence");this.message=V.message;"stack"in V&&(this.stack=V.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.t(x3w,Error);var r4=function(V,l,I,H,T){xD.call(this,V);this.onUnsubscribe=T;l&&(this._next=function(x){try{l(x)}catch(n){this.destination.error(n)}});
I&&(this._error=function(x){try{I(x)}catch(n){this.destination.error(n)}this.unsubscribe()});
H&&(this._complete=function(){try{H()}catch(x){this.destination.error(x)}this.unsubscribe()})};
_.t(r4,xD);r4.JSC$6939_EMPTY=xD.JSC$6939_EMPTY;r4.create=xD.create;r4.prototype.unsubscribe=function(){var V;this.closed||(V=this.onUnsubscribe)!=null&&V.call(this);xD.prototype.unsubscribe.call(this)};var O9=function(V,l){this.source=V;this.subjectFactory=l;this._subject=null;this._refCount=0;this._connection=null};
_.t(O9,$E);O9.create=$E.create;O9.prototype._subscribe=function(V){return bZN(this).subscribe(V)};
var bZN=function(V){var l=V._subject;if(!l||l.JSC$6960_isStopped)V._subject=V.subjectFactory();return V._subject};
O9.prototype._teardown=function(){this._refCount=0;var V=this._connection;this._subject=this._connection=null;V==null||V.unsubscribe()};
O9.prototype.connect=function(){var V=this,l=this._connection;if(!l){l=this._connection=new TL;var I=bZN(this);l.add(this.source.subscribe(new r4(I,void 0,function(H){V._teardown();I.error(H)},function(){V._teardown();
I.complete()},function(){return V._teardown()})));
l.closed&&(this._connection=null,l=TL.JSC$6939_EMPTY)}return l};var EEy=Array.isArray;var oE1=Array.isArray,qNw=Object,h7T=qNw.getPrototypeOf,PwN=qNw.prototype,D0W=qNw.keys;var Pk=function(V,l,I){xD.call(this,V);this._next=l;this.shouldComplete=I};
_.t(Pk,xD);Pk.JSC$6939_EMPTY=xD.JSC$6939_EMPTY;Pk.create=xD.create;Pk.prototype._complete=function(){this.shouldComplete()?xD.prototype._complete.call(this):this.unsubscribe()};var Mdf=["addListener","removeListener"],q9g=["addEventListener","removeEventListener"],pkJ=["on","off"];var dU=function(){TL.call(this)};
_.t(dU,TL);dU.JSC$6939_EMPTY=TL.JSC$6939_EMPTY;dU.prototype.schedule=function(){return this};var Mo3=function(V,l){return setInterval.apply(null,[V,l].concat(_.oI(_.Q5.apply(2,arguments))))};var wU=function(V,l){TL.call(this);this.scheduler=V;this.work=l;this.pending=!1};
_.t(wU,dU);wU.JSC$6939_EMPTY=dU.JSC$6939_EMPTY;wU.prototype.schedule=function(V,l){l=l===void 0?0:l;if(this.closed)return this;this.state=V;V=this.id;var I=this.scheduler;V!=null&&(this.id=sib(this,V,l));this.pending=!0;this.delay=l;this.id=this.id||this.requestAsyncId(I,this.id,l);return this};
wU.prototype.requestAsyncId=function(V,l,I){I=I===void 0?0:I;return Mo3(V.flush.bind(V,this),I)};
var sib=function(V,l,I){I=I===void 0?0:I;if(I!=null&&V.delay===I&&V.pending===!1)return l;clearInterval(l)};
wU.prototype.execute=function(V,l){if(this.closed)return Error("la");this.pending=!1;if(V=this._execute(V,l))return V;this.pending===!1&&this.id!=null&&(this.id=sib(this,this.id,null))};
wU.prototype._execute=function(V){var l=!1;try{this.work(V)}catch(H){l=!0;var I=!!H&&H||Error(H)}if(l)return this.unsubscribe(),I};
wU.prototype.unsubscribe=function(){if(!this.closed){var V=this.id,l=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;VdK(l,this);V!=null&&(this.id=sib(this,V,null));this.delay=null;dU.prototype.unsubscribe.call(this)}};var pwi=function(V,l){l=l===void 0?cBN:l;WWb.call(this,V,l);this.actions=[];this.active=!1;this.scheduled=void 0};
_.t(pwi,WWb);pwi.prototype.flush=function(V){var l=this.actions;if(this.active)l.push(V);else{var I;this.active=!0;do if(I=V.execute(V.state,V.delay))break;while(V=l.shift());this.active=!1;if(I){for(;V=l.shift();)V.unsubscribe();throw I;}}};var yl=new $E(Bk);var AeK=Array.isArray;var Na=function(V,l){wU.call(this,V,l);this.scheduler=V;this.work=l};
_.t(Na,wU);Na.JSC$6939_EMPTY=wU.JSC$6939_EMPTY;Na.prototype.schedule=function(V,l){l=l===void 0?0:l;if(l>0)return wU.prototype.schedule.call(this,V,l);this.delay=l;this.state=V;this.scheduler.flush(this);return this};
Na.prototype.execute=function(V,l){return l>0||this.closed?wU.prototype.execute.call(this,V,l):this._execute(V,l)};
Na.prototype.requestAsyncId=function(V,l,I){I=I===void 0?0:I;return I!=null&&I>0||I==null&&this.delay>0?wU.prototype.requestAsyncId.call(this,V,l,I):V.flush(this)};var ABE=function(){pwi.apply(this,arguments)};
_.t(ABE,pwi);var re3=new ABE(Na);var u0Z=function(){this.performanceMonitor=new Iv0;this.queue=new HZ0;this.internalSymbol=Symbol();this.debugNames=new PZ0};
u0Z.prototype.getOnBackgrounded=function(){return yl};
_.vI.Object.defineProperties(u0Z.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Ku=function(V,l){l=Error.call(this,l?V+": "+l:String(V));this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=V;this.__proto__=Ku.prototype;this.name=String(V)};
_.t(Ku,Error);var tH=function(V){Ku.call(this,1E3,'sfr:"'+V+'"');this.measurementStrategyFailureReason=V;this.__proto__=tH.prototype};
_.t(tH,Ku);var GP=function(){Ku.call(this,1003);this.__proto__=GP.prototype};
_.t(GP,Ku);var ju=function(){Ku.call(this,1009);this.__proto__=ju.prototype};
_.t(ju,Ku);var vJi=function(){Ku.call(this,1011);this.__proto__=vJi.prototype};
_.t(vJi,Ku);var OZa=function(){Ku.call(this,1007);this.__proto__=GP.prototype};
_.t(OZa,Ku);var Xm=function(V){Ku.call(this,1004,String(V));this.inputObservableIndex=V;this.__proto__=Xm.prototype};
_.t(Xm,Ku);var FFq=function(V){Ku.call(this,1010,V);this.__proto__=Xvt.prototype};
_.t(FFq,Ku);var Xvt=function(V){Ku.call(this,1005,V);this.__proto__=Xvt.prototype};
_.t(Xvt,Ku);var CZ0=function(V){var l=_.Q5.apply(1,arguments),I=this;this.orderedFactories=[];this.orderedFactories.push(V);l.forEach(function(H){I.orderedFactories.push(H)})};
CZ0.prototype.isSupported=function(V){return this.orderedFactories.some(function(l){return l.isSupported(V)})};
CZ0.prototype.makeBeacon=function(V,l){for(var I=0;I<this.orderedFactories.length;I++)if(this.orderedFactories[I].isSupported(l))return this.orderedFactories[I].makeBeacon(V,l);throw new ju;};var $y3=Symbol("ma"),avw=Symbol("na"),Wk=function(V,l){this.value=V;this.timeline=l},ck=function(V,l){if(l.timeline!==V.timeline)throw new OZa;
return V.value-l.value};
_.B=Wk.prototype;_.B.equals=function(V){return ck(this,V)===0};
_.B.maximum=function(V){if(V.timeline!==this.timeline)throw new OZa;return this.value>=V.value?this:V};
_.B.round=function(){return new Wk(Math.round(this.value),this.timeline)};
_.B.add=function(V){return new Wk(this.value+V,this.timeline)};
_.B.toString=function(){return String(this.value)};var YD=function(V,l){this.context=V;this.JSC$7066_pinger=l};
YD.prototype.isSupported=function(V){return this.JSC$7066_pinger.isSupported(V)};
YD.prototype.makeBeacon=function(V,l){if(!this.isSupported(l))throw new ju;return new Lu(this.context,this.JSC$7066_pinger,l!=null?l:void 0,V)};
var Lu=function(V,l,I,H){var T=this;this.JSC$7072_pinger=l;this.properties=I;this.url=H;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var x;this.method=(x=I==null?void 0:I.beaconMethod)!=null?x:"GET";this.backgroundedSubscription=V.getOnBackgrounded().subscribe(function(){T.sendNow()})};
Lu.prototype.deactivate=function(){this.internalIsPending=!1};
Lu.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7072_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var V,l;this.JSC$7072_pinger.pingWithHeadersAndBody((V=this.properties)!=null?V:{},this.customHeaders,(l=this.body)!=null?l:"",this.url)}else this.JSC$7072_pinger.ping(this.url);this.internalIsPending=!1}catch(I){}else this.internalIsPending=!1};
Lu.prototype.setHeader=function(V){this.customHeaders.set(V,void 0)};
_.vI.Object.defineProperties(Lu.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var gJv=function(){for(var V=_.U(_.Q5.apply(0,arguments)),l=V.next();!l.done;l=V.next())if(l=l.value,l.available()){this.timeProvider=l;return}this.timeProvider=new fvB};
_.B=gJv.prototype;_.B.available=function(){return this.timeProvider.available()};
_.B.now=function(){return this.timeProvider.now()};
_.B.setTimeout=function(V,l){return this.timeProvider.setTimeout(V,l)};
_.B.clearTimeout=function(V){this.timeProvider.clearTimeout(V)};
_.B.interval=function(V,l){var I=this.intervalObservable(V).subscribe(l);return function(){return void I.unsubscribe()}};
_.B.intervalObservable=function(V){return this.timeProvider.intervalObservable(V)};
_.vI.Object.defineProperties(gJv.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var fvB=function(){this.timeline=Symbol()};
_.B=fvB.prototype;_.B.available=function(){return!1};
_.B.now=function(){return new Wk(0,this.timeline)};
_.B.setTimeout=function(){return 0};
_.B.clearTimeout=function(){};
_.B.interval=function(){return function(){}};
_.B.intervalObservable=function(){return yl};var eu=function(V,l){this.intrinsicFunctionNamespace=V;this.performanceMonitor=l};
_.B=eu.prototype;_.B.setTimeout=function(V,l){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,V),l)};
_.B.clearTimeout=function(V){this.intrinsicFunctionNamespace.clearTimeout(V)};
_.B.interval=function(V,l){var I=this.intervalObservable(V).subscribe(l);return function(){return void I.unsubscribe()}};
_.B.intervalObservable=function(V){var l=this;return new $E(function(I){var H=0,T=l.intrinsicFunctionNamespace.setInterval(function(){I.next(H++)},V);
return function(){l.intrinsicFunctionNamespace.clearInterval(T)}})};
_.B.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var mNb=function(V,l){eu.call(this,V,l);this.timeline=avw};
_.t(mNb,eu);mNb.prototype.now=function(){return new Wk(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
mNb.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&eu.prototype.available.call(this)};var iZZ=function(V,l){eu.call(this,V,l);this.timeline=$y3};
_.t(iZZ,eu);iZZ.prototype.now=function(){return new Wk(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
iZZ.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&eu.prototype.available.call(this)};var lrJ=function(V){this.context=V;if(Vb0===void 0)a:{var l,I,H=(l=V.global)==null?void 0:(I=l.document)==null?void 0:I.createElement("meta");if(H)try{H.httpEquiv="origin-trial";H.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";V.global.document.head.append(H);Vb0=H;break a}catch(T){}Vb0=void 0}},
Vb0;
lrJ.prototype.isSupported=function(V){return VPc(this.context)!==void 0&&!(V==null||!V.endOfSession)&&!kD(this.context)&&!(V==null?0:V.attributionEnabled)&&!(V==null?0:V.customHeaders)&&!(V==null?0:V.customBody)};
lrJ.prototype.makeBeacon=function(V,l){if(!this.isSupported(l))throw new ju;return new FX(this.context,V,l)};
var FX=function(V,l,I){this.context=V;this.properties=I;this.JSC$7099_urlWithoutToken=l;var H;this.beaconMethod=(H=I==null?void 0:I.beaconMethod)!=null?H:"GET";V=VPc(this.context);if(V===void 0)throw Error();this.fetchLater=V;IrE(this,HQN(this))},IrE=function(V,l){V.beaconResult&&V.beaconResult.activated||(V.beaconAbort=new AbortController,V.beaconResult=V.fetchLater(l,{method:V.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:V.beaconAbort.signal,activateAfter:96E4}))},HQN=function(V){V=V.JSC$7099_urlWithoutToken;
return(V.slice(-1)[0]==="&"?V:V+"&")+"flapi=1"};
FX.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
FX.prototype.sendNow=function(){};
FX.prototype.setHeader=function(){};
_.vI.Object.defineProperties(FX.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7099_urlWithoutToken},
set:function(V){this.JSC$7099_urlWithoutToken=V;V=HQN(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);IrE(this,V)}},
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 TgB=function(V){this.context=V};
TgB.prototype.isSupported=function(){return!kD(this.context)&&!!this.context.global.fetch};
TgB.prototype.ping=function(){var V=this;return RI.apply(null,_.oI(_.Q5.apply(0,arguments).map(function(l){return N0(V.context.global.fetch(l,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(Je(function(I){return I.status===200}))}))).pipe(U3K(function(l){return l}),$3N())};
TgB.prototype.pingWithHeadersAndBody=function(V,l,I){for(var H=_.Q5.apply(3,arguments),T=this,x=new Headers,n=_.U(l.entries()),w=n.next();!w.done;w=n.next()){var N=_.U(w.value);w=N.next().value;N=N.next().value;x.set(w,N)}var L,e=(L=V.keepAlive)!=null?L:!1;RI.apply(null,_.oI(H.map(function(k){return N0(T.context.global.fetch(k,Object.assign({},{method:String(V.beaconMethod),cache:"no-cache"},e?{keepalive:!0}:{},{mode:"no-cors",headers:x,body:I}))).pipe(Je(function(X){return X.status===200}))}))).pipe(U3K(function(k){return k}),
$3N())};var Bgb,LAy;_.XX=function(){};
_.Wy=function(V){return V};
Bgb=function(V){var l=l||0;return function(){return V.apply(this,Array.prototype.slice.call(arguments,0,l))}};
_.ze=function(V){var l=!1,I;return function(){l||(I=V(),l=!0);return I}};
_.ym=function(V,l){var I=0;return function(H){_.nK.clearTimeout(I);var T=arguments;I=_.nK.setTimeout(function(){V.apply(void 0,T)},l)}};
LAy=function(V,l){var I=0,H=!1,T=[],x=function(){I=0;H&&(H=!1,n())},n=function(){I=_.nK.setTimeout(x,l);
var w=T;T=[];V.apply(void 0,w)};
return function(w){T=arguments;I?H=!0:n()}};var UEN=function(){return yf&&t1?t1.mobile:!xEN()&&(Gw("iPod")||Gw("iPhone")||Gw("Android")||Gw("IEMobile"))},xEN=function(){return yf&&t1?!t1.mobile&&(Gw("iPad")||Gw("Android")||Gw("Silk")):Gw("iPad")||Gw("Android")&&!Gw("Mobile")||Gw("Silk")};var nho;_.EL={};nho="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.EL.add=function(V,l,I){if(V!==null&&l in V)throw Error("pa`"+l);V[l]=I};
_.EL.clear=function(V){for(var l in V)delete V[l]};
_.EL.clone=function(V){var l={},I;for(I in V)l[I]=V[I];return l};
_.EL.contains=function(V,l){return K2c(V,l)};
_.EL.containsKey=function(V,l){return V!==null&&l in V};
_.EL.containsValue=K2c;_.EL.create=L2t;_.EL.createImmutableView=function(V){var l=V;Object.isFrozen&&!Object.isFrozen(V)&&(l=Object.create(V),Object.freeze(l));return l};
_.EL.createSet=kPW;_.EL.equals=function(V,l){for(var I in V)if(!(I in l)||V[I]!==l[I])return!1;for(var H in l)if(!(H in V))return!1;return!0};
_.EL.every=function(V,l,I){for(var H in V)if(!l.call(I,V[H],H,V))return!1;return!0};
_.EL.extend=function(V,l){for(var I,H,T=1;T<arguments.length;T++){H=arguments[T];for(I in H)V[I]=H[I];for(var x=0;x<nho.length;x++)I=nho[x],Object.prototype.hasOwnProperty.call(H,I)&&(V[I]=H[I])}};
_.EL.filter=function(V,l,I){var H={},T;for(T in V)l.call(I,V[T],T,V)&&(H[T]=V[T]);return H};
_.EL.findKey=jgJ;_.EL.findValue=function(V,l,I){return(l=jgJ(V,l,I))&&V[l]};
_.EL.forEach=function(V,l,I){for(var H in V)l.call(I,V[H],H,V)};
_.EL.get=function(V,l,I){return V!==null&&l in V?V[l]:I};
_.EL.getAllPropertyNames=function(V,l,I){if(!V)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return N$t(V);for(var H={};V&&(V!==Object.prototype||l)&&(V!==Function.prototype||I);){for(var T=Object.getOwnPropertyNames(V),x=0;x<T.length;x++)H[T[x]]=!0;V=Object.getPrototypeOf(V)}return N$t(H)};
_.EL.getAnyKey=function(V){for(var l in V)return l};
_.EL.getAnyValue=function(V){for(var l in V)return V[l]};
_.EL.getCount=function(V){var l=0,I;for(I in V)l++;return l};
_.EL.getKeys=N$t;_.EL.getSuperClass=function(V){return(V=Object.getPrototypeOf(V.prototype))&&V.constructor};
_.EL.getValueByKeys=function(V,l){var I=_.vy(l),H=I?l:arguments;for(I=I?0:1;I<H.length;I++){if(V==null)return;V=V[H[I]]}return V};
_.EL.getValues=function(V){var l=[],I=0,H;for(H in V)l[I++]=V[H];return l};
_.EL.isEmpty=function(V){for(var l in V)return!1;return!0};
_.EL.isImmutableView=function(V){return!!Object.isFrozen&&Object.isFrozen(V)};
_.EL.map=function(V,l,I){var H={},T;for(T in V)H[T]=l.call(I,V[T],T,V);return H};
_.EL.remove=function(V,l){var I;(I=l in V)&&delete V[l];return I};
_.EL.set=function(V,l,I){V[l]=I};
_.EL.setIfUndefined=function(V,l,I){return l in V?V[l]:V[l]=I};
_.EL.setWithReturnValueIfNotSet=function(V,l,I){if(l in V)return V[l];I=I();return V[l]=I};
_.EL.some=function(V,l,I){for(var H in V)if(l.call(I,V[H],H,V))return!0;return!1};
_.EL.transpose=function(V){var l={},I;for(I in V)l[V[I]]=I;return l};
_.EL.unsafeClone=YLf;var $EZ,dEJ,wYw,NgN,A6,juW,FVo,XY0,zBZ;$EZ=function(V,l,I,H,T,x,n){var w="";V&&(w+=V+":");I&&(w+="//",l&&(w+=l+"@"),w+=I,H&&(w+=":"+H));T&&(w+=T);x&&(w+="?"+x);n&&(w+="#"+n);return w};
dEJ=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.so=function(V){return V.match(dEJ)};
_.PA=function(V,l){return V?l?decodeURI(V):decodeURIComponent(V):V};
wYw=function(V){V=_.so(V)[1]||null;!V&&_.nK.self&&_.nK.self.location&&(V=_.nK.self.location.protocol.slice(0,-1));return V?V.toLowerCase():""};
_.ps=function(V){return _.PA(_.so(V)[3]||null,!0)};
_.Bx=function(V){return _.PA(_.so(V)[5]||null,!0)};
_.nKq=function(V){var l=V.indexOf("#");return l<0?null:V.slice(l+1)};
NgN=function(V){V=_.so(V);return $EZ(V[1],V[2],V[3],V[4])};
_.KVa=function(V){V=_.so(V);return $EZ(V[1],null,V[3],V[4])};
_.qz=function(V){V=_.so(V);return $EZ(null,null,null,null,V[5],V[6],V[7])};
_.aa=function(V){var l=V.indexOf("#");return l<0?V:V.slice(0,l)};
A6=function(V,l){V=_.so(V);l=_.so(l);return V[3]==l[3]&&V[1]==l[1]&&V[4]==l[4]};
juW=function(V,l){if(V){V=V.split("&");for(var I=0;I<V.length;I++){var H=V[I].indexOf("="),T=null;if(H>=0){var x=V[I].substring(0,H);T=V[I].substring(H+1)}else x=V[I];l(x,T?vO(T):"")}}};
_.YP3=function(V){var l=V.indexOf("#");l<0&&(l=V.length);var I=V.indexOf("?");if(I<0||I>l){I=l;var H=""}else H=V.substring(I+1,l);return[V.slice(0,I),H,V.slice(l)]};
_.LV0=function(V,l){return l?V?V+"&"+l:l:V};
_.eBZ=function(V,l){if(!l)return V;V=_.YP3(V);V[1]=_.LV0(V[1],l);return V[0]+(V[1]?"?"+V[1]:"")+V[2]};
_.k2N=function(V,l,I){if(Array.isArray(l))for(var H=0;H<l.length;H++)_.k2N(V,String(l[H]),I);else l!=null&&I.push(V+(l===""?"":"="+_.Q0(l)))};
_.U_=function(V){var l=[],I;for(I in V)_.k2N(I,V[I],l);return l.join("&")};
_.MS=function(V,l){l=_.U_(l);return _.eBZ(V,l)};
_.tP=function(V,l,I){I=I!=null?"="+_.Q0(I):"";return _.eBZ(V,l+I)};
FVo=function(V,l,I,H){for(var T=I.length;(l=V.indexOf(I,l))>=0&&l<H;){var x=V.charCodeAt(l-1);if(x==38||x==63)if(x=V.charCodeAt(l+T),!x||x==61||x==38||x==35)return l;l+=T+1}return-1};
XY0=/#|$/;_.Qo=function(V,l){var I=V.search(XY0),H=FVo(V,0,l,I);if(H<0)return null;var T=V.indexOf("&",H);if(T<0||T>I)T=I;H+=l.length+1;return vO(V.slice(H,T!==-1?T:0))};
zBZ=/[?&]($|#)/;_.gS=function(V,l){for(var I=V.search(XY0),H=0,T,x=[];(T=FVo(V,H,l,I))>=0;)x.push(V.substring(H,T)),H=Math.min(V.indexOf("&",T)+1||I,I);x.push(V.slice(H));return x.join("").replace(zBZ,"$1")};
_.Z1=function(V,l,I){return _.tP(_.gS(V,l),l,I)};var rU=function(V,l,I,H,T){this.allowedElements=V;this.elementPolicies=l;this.allowedGlobalAttributes=I;this.globalAttributePolicies=H;this.globallyAllowedAttributePrefixes=T},yIb=function(V,l,I){I=V.elementPolicies.get(I);
return(I==null?0:I.has(l))?I.get(l):V.allowedGlobalAttributes.has(l)?{policyAction:1}:(I=V.globalAttributePolicies.get(l))?I:V.globallyAllowedAttributePrefixes&&[].concat(_.oI(V.globallyAllowedAttributePrefixes)).some(function(H){return l.indexOf(H)===0})?{policyAction:1}:{policyAction:0}};var tbw="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(" "),
rIv=[["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}]])]],G2v="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
Eh3=[["dir",{policyAction:3,conditions:e6(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:e6(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:e6(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:e6(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],JIE=new rU(new Set(tbw),new Map(rIv),new Set(G2v),new Map(Eh3)),ohE=new rU(new Set(tbw.concat(["BUTTON",
"INPUT"])),new Map(rIv),new Set(e6(function(){return G2v.concat(["class","id","name"])})),new Map(e6(function(){return Eh3.concat([["style",
{policyAction:1}]])})));var hBW,PEZ,ZQZ;hBW=function(V,l,I,H){this.JSC$7159_sanitizerTable=V;this.styleElementSanitizer=l;this.styleAttributeSanitizer=I;this.JSC$7159_resourceUrlPolicy=H;this.changes=[]};
_.DEZ=function(V,l){var I=document.implementation.createHTMLDocument("");V=PEZ(V,l,I);I=I.body;I.appendChild(V);I=(new XMLSerializer).serializeToString(I);I=I.slice(I.indexOf(">")+1,I.lastIndexOf("</"));return sq(I)};
PEZ=function(V,l,I){l=XN1(l,I);l=document.createTreeWalker(l,5,function(w){if(w.nodeType===3)w=1;else if(yHW(w))if(w=zPc(w),w===null)w=2;else{var N=V.JSC$7159_sanitizerTable;w=w!=="FORM"&&(N.allowedElements.has(w)||N.elementPolicies.has(w))?1:2}else w=2;return w});
for(var H=l.nextNode(),T=I.createDocumentFragment(),x=T;H!==null;){var n=void 0;if(H.nodeType===3)V.styleElementSanitizer&&x.nodeName==="STYLE"?(H=V.styleElementSanitizer(H.data),n=V.createTextNode(H)):n=V.createTextNode(H.data);else if(yHW(H))n=ZQZ(V,H,I);else throw Error("da");x.appendChild(n);if(H=l.firstChild())x=n;else for(;!(H=l.nextSibling())&&(H=l.parentNode());)x=x.parentNode}return T};
hBW.prototype.createTextNode=function(V){return document.createTextNode(V)};
ZQZ=function(V,l,I){var H,T=zPc(l);I=I.createElement(T);l=l.attributes;for(var x=_.U(l),n=x.next();!n.done;n=x.next()){var w=n.value;n=w.name;w=w.value;var N=yIb(V.JSC$7159_sanitizerTable,n,T);a:{if(H=N.conditions){H=_.U(H);for(var L=H.next();!L.done;L=H.next()){var e=_.U(L.value);L=e.next().value;e=e.next().value;var k=void 0;if((L=(k=l.getNamedItem(L))==null?void 0:k.value)&&!e.has(L)){H=!1;break a}}}H=!0}if(H)switch(N.policyAction){case 1:HN(I,n,w);break;case 2:N=_.sOt(w);w=N!==void 0&&Xwo.indexOf(N.toLowerCase())!==
-1?w:"about:invalid#zClosurez";HN(I,n,w);break;case 3:HN(I,n,w.toLowerCase());break;case 4:V.styleAttributeSanitizer?(w=V.styleAttributeSanitizer(w),HN(I,n,w)):HN(I,n,w);break;case 5:V.JSC$7159_resourceUrlPolicy?(N={type:2,attributeName:n,elementName:T},w=F2y(w),(w=V.JSC$7159_resourceUrlPolicy(w,N))&&HN(I,n,w.toString())):HN(I,n,w);break;case 6:if(V.JSC$7159_resourceUrlPolicy){N={type:2,attributeName:n,elementName:T};H=[];w=_.U(w.split(","));for(L=w.next();!L.done;L=w.next())e=_.U(L.value.trim().split(/\s+/,
2)),L=e.next().value,e=e.next().value,H.push({url:L,descriptor:e});w={parts:[]};H=_.U(H);for(L=H.next();!L.done;L=H.next())L=L.value,e=F2y(L.url),(e=V.JSC$7159_resourceUrlPolicy(e,N))&&w.parts.push({url:e.toString(),descriptor:L.descriptor});HN(I,n,tPc(w))}else HN(I,n,w)}}return I};
_.SP3=e6(function(){return new hBW(JIE)});
_.RBE=e6(function(){return new hBW(ohE)});var Qua=function(){this.calledBuild=!1;this.JSC$7171_sanitizerTable=JIE},cIa=function(){Qua.apply(this,arguments)};
_.t(cIa,Qua);cIa.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new hBW(this.JSC$7171_sanitizerTable,void 0,void 0,this.JSC$7171_resourceUrlPolicy)};var WVb=/[^#]*/;var A0f=function(V){try{return!!V&&V.location.href!=null&&flf(V,"foo")}catch(l){return!1}},qPN=function(V){var l=bQN;
if(l)for(var I in l)Object.prototype.hasOwnProperty.call(l,I)&&V(l[I],I,l)},Mbo=function(){var V=[];
qPN(function(l){V.push(l)});
return V},bQN={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"},sui=_.ze(function(){return Mbo()}),AI3=function(){var V=pYw("IFRAME"),
l={};
_.cO(sui(),function(I){V.sandbox&&V.sandbox.supports&&V.sandbox.supports(I)&&(l[I]=!0)});
return l},pYw=function(V,l){l=l===void 0?document:l;
return l.createElement(String(V).toLowerCase())};var Ge=function(V){this.context=V};
Ge.prototype.isSupported=function(V){return(V==null?0:V.attributionEnabled)||(V==null?void 0:V.beaconMethod)==="POST"||(V==null?0:V.customHeaders)||(V==null?0:V.customBody)||(V==null?0:V.keepAlive)?!1:!kD(this.context)};
Ge.prototype.ping=function(){var V=this;return zL(_.Q5.apply(0,arguments).map(function(l){try{var I=V.context.global,H=!1;H=H===void 0?!1:H;I.google_image_requests||(I.google_image_requests=[]);var T=pYw("IMG",I.document);H&&(T.attributionSrc="");T.src=l;I.google_image_requests.push(T);return!0}catch(x){return!1}}).every(function(l){return l}))};
Ge.prototype.pingWithHeadersAndBody=function(V,l,I){this.ping.apply(this,_.oI(_.Q5.apply(3,arguments)))};var uEN=function(V){this.context=V};
uEN.prototype.isSupported=function(V){return vhE&&!kD(this.context)&&GPt(this.context)!==void 0&&!(V==null?0:V.attributionEnabled)&&(V==null?void 0:V.beaconMethod)!=="POST"&&!(V==null?0:V.customHeaders)&&!(V==null?0:V.customBody)};
uEN.prototype.makeBeacon=function(V,l){if(!this.isSupported(l))throw new ju;return new EY(this.context,V)};
var vhE=!1,EY=function(V,l){this.context=V;this.JSC$7193_urlWithoutToken=l;V=GPt(this.context);if(V===void 0)throw Error();this.wrappedBeacon=new V(OQi(this),{})},OQi=function(V){V=V.JSC$7193_urlWithoutToken;
return(V.slice(-1)[0]==="&"?V:V+"&")+"pbapi=1"};
EY.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
EY.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
EY.prototype.setHeader=function(){};
_.vI.Object.defineProperties(EY.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7193_urlWithoutToken},
set:function(V){this.JSC$7193_urlWithoutToken=V;this.wrappedBeacon.setURL(OQi(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(V){if(V!=="GET")throw new ju;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var CE3=function(V){this.context=V};
CE3.prototype.isSupported=function(V){if((V==null?0:V.attributionEnabled)||(V==null?void 0:V.beaconMethod)==="GET"||(V==null?0:V.customHeaders)||(V==null?0:V.customBody)||(V==null?0:V.keepAlive))return!1;var l;return!kD(this.context)&&((l=this.context.global.navigator)==null?void 0:l.sendBeacon)!==void 0};
CE3.prototype.ping=function(){var V=this;return zL(_.Q5.apply(0,arguments).map(function(l){var I;return(I=V.context.global.navigator)==null?void 0:I.sendBeacon(l)}).every(function(l){return l}))};
CE3.prototype.pingWithHeadersAndBody=function(V,l,I){this.ping.apply(this,_.oI(_.Q5.apply(3,arguments)))};var N3=function(V){this.value=V},u4=function(V,l){return zL(V.value).pipe(d$(l))},OL=new N3(!1),$S1=new N3(!0);var Ql=function(V){this.value=V;this.releasedSubject=new nG};
Ql.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.vI.Object.defineProperties(Ql.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7206_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var bG1=["FRAME","IMG","IFRAME"],ZGy=/^[01](px)?$/,W2t=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},cHf=function(){var V=new W2t;
V.crossDomainLoadedDefault=!0;V.pendingImagesBlockLoad=!0;return V};var arZ=function(V,l){var I=vpf(V);if(I)if(I.onCreativeLoad)I.onCreativeLoad(l);else{var H=l?[l]:[],T=function(x){for(var n=0;n<H.length;++n)try{H[n](1,x)}catch(w){}H={push:function(w){w(1,x)}}};
I.onCreativeLoad=function(x){H.push(x)};
I.setAttribute("data-creative-load-listener","");I.addEventListener("creativeLoad",function(x){T(x.detail)});
_.nK.addEventListener("message",function(x){umK(I,T,x)})}};var JP=function(V,l){var I=this;this.global=V;this.parentContext=l;this.JSC$7217_onVisibilityChange=this.document?RI(zL(!0),ZK(this.document,"visibilitychange")).pipe(bw(this.parentContext.performanceMonitor,748),Je(function(){return I.getVisibilityState()}),Ae()):zL("visible");
this.document?ZK(this.document,"DOMContentLoaded").pipe(bw(this.parentContext.performanceMonitor,739),pk(1)):zL(P4t("DOMContentLoaded"))},nG3=function(V){return V.document!==null&&V.document.visibilityState!==void 0};
JP.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
JP.prototype.querySelector=function(V){return this.document?this.document.querySelector(V):null};
JP.prototype.querySelectorAll=function(V){return this.document?_.uN(this.document.querySelectorAll(V)):[]};
JP.prototype.elementFromPoint=function(V,l){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;V=this.document.elementFromPoint(V,l);return V===null?null:new Ql(V)};
var giK=function(V,l,I){I=I===void 0?!1:I;if(l.ref===void 0||!V.document)return zL(l).pipe(bw(V.parentContext.performanceMonitor,749));var H=new fk(1),T=function(){H.next(l)};
I||arZ(l.ref,T);qLt(l.ref,T);return H.pipe(bw(V.parentContext.performanceMonitor,749),pk(1))};
_.vI.Object.defineProperties(JP.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return flf(this.global,"document")?this.global.document||null:null}}});var OGN=_.fl(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),C4t=_.fl(["./reach_worklet.js"]),a3t=_.fl(["./reach_worklet.js"]),fri=_.fl(["./reach_worklet.html"]),ghw=_.fl(["./reach_worklet.js"]),mEN=_.fl(["./reach_worklet.js"]);_.TP(fri);_.TP(ghw);_.TP(mEN);var q3={left:0,top:0,width:0,height:0};var hP;_.cA=function(V,l,I){return Math.min(Math.max(V,l),I)};
hP=function(V,l,I){return V+I*(l-V)};_.og=function(V,l){this.x=V!==void 0?V:0;this.y=l!==void 0?l:0};
_.B=_.og.prototype;_.B.clone=function(){return new _.og(this.x,this.y)};
_.B.equals=function(V){return V instanceof _.og&&(this==V?!0:this&&V?this.x==V.x&&this.y==V.y:!1)};
_.B.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.B.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.B.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.B.translate=function(V,l){V instanceof _.og?(this.x+=V.x,this.y+=V.y):(this.x+=Number(V),typeof l==="number"&&(this.y+=l));return this};
_.B.scale=function(V,l){this.x*=V;this.y*=typeof l==="number"?l:V;return this};_.Yp=function(V,l){this.width=V;this.height=l};
_.B=_.Yp.prototype;_.B.clone=function(){return new _.Yp(this.width,this.height)};
_.B.area=function(){return this.width*this.height};
_.B.aspectRatio=function(){return this.width/this.height};
_.B.isEmpty=function(){return!this.area()};
_.B.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.B.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.B.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.B.scale=function(V,l){this.width*=V;this.height*=typeof l==="number"?l:V;return this};var D1=function(V,l){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=V===j6N&&l||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=iQJ};
D1.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var V6b=function(V){return V instanceof D1&&V.constructor===D1&&V.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===iQJ?V.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},iQJ={},j6N={};
new D1(j6N,"");var kp,LS,DN,lCo,TpE,HdZ,hH,xVB,nnv,UVi,Qm,$V3,LxN,Yqa,jOB,eMb,kfN,Fxv,XhW,Pig,zMJ,t6i,rVN,yVZ,Pi,EnJ;kp=function(V){return V?new Pi(_.Z3(V)):Vr3||(Vr3=new Pi)};
_.Ox=function(V,l){return typeof l==="string"?V.getElementById(l):l};
LS=function(V,l){return(l||document).getElementsByTagName(String(V))};
_.IC0=function(V){return lCo("yt-formatted-string","paper-input-input",V)};
DN=function(V,l,I,H){V=H||V;return(l=l&&l!="*"?String(l).toUpperCase():"")||I?V.querySelectorAll(l+(I?"."+I:"")):V.getElementsByTagName("*")};
lCo=function(V,l,I){var H=document,T=V&&V!="*"?String(V).toUpperCase():"";return T||l?(I||H).querySelector(T+(l?"."+l:"")):DN(H,V,l,I)[0]||null};
TpE=function(V,l){_.EL.forEach(l,function(I,H){H=="style"?V.style.cssText=I:H=="class"?V.className=I:H=="for"?V.htmlFor=I:HdZ.hasOwnProperty(H)?V.setAttribute(HdZ[H],I):_.Nq(H,"aria-")||_.Nq(H,"data-")?V.setAttribute(H,I):V[H]=I})};
HdZ={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"};_.LG=function(V){V=(V||window).document;V=V.compatMode=="CSS1Compat"?V.documentElement:V.body;return new _.Yp(V.clientWidth,V.clientHeight)};
_.BpZ=function(V){var l=_.ZN(V);V=V.defaultView;return new _.og(V.pageXOffset||l.scrollLeft,V.pageYOffset||l.scrollTop)};
_.ZN=function(V){return V.scrollingElement?V.scrollingElement:_.ja||V.compatMode!="CSS1Compat"?V.body||V.documentElement:V.documentElement};
hH=function(V){return V?V.defaultView:window};
_.Su=function(V,l,I){return xVB(document,arguments)};
xVB=function(V,l){var I=l[1],H=UVi(V,String(l[0]));I&&(typeof I==="string"?H.className=I:Array.isArray(I)?H.className=I.join(" "):TpE(H,I));l.length>2&&nnv(V,H,l,2);return H};
nnv=function(V,l,I,H){function T(w){w&&l.appendChild(typeof w==="string"?V.createTextNode(w):w)}
for(;H<I.length;H++){var x=I[H];if(!_.vy(x)||_.m3(x)&&x.nodeType>0)T(x);else{a:{if(x&&typeof x.length=="number"){if(_.m3(x)){var n=typeof x.item=="function"||typeof x.item=="string";break a}if(typeof x==="function"){n=typeof x.item=="function";break a}}n=!1}_.cO(n?_.uN(x):x,T)}}};
_.jk=function(V){return UVi(document,V)};
UVi=function(V,l){l=String(l);V.contentType==="application/xhtml+xml"&&(l=l.toLowerCase());return V.createElement(l)};
_.Rk=function(){return document.createTextNode("\n")};
Qm=function(V){if(V.nodeType!=1)return!1;switch(V.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};
$V3=function(V,l){nnv(_.Z3(V),V,arguments,1)};
_.ci=function(V){for(var l;l=V.firstChild;)V.removeChild(l)};
_.Wi=function(V,l){l.parentNode&&l.parentNode.insertBefore(V,l)};
_.b_=function(V,l){l.parentNode&&l.parentNode.insertBefore(V,l.nextSibling)};
_.Yw=function(V){return V&&V.parentNode?V.parentNode.removeChild(V):null};
_.dVW=function(V,l){var I=l.parentNode;I&&I.replaceChild(V,l)};
_.who=function(V){var l,I=V.parentNode;if(I&&I.nodeType!=11)if(V.removeNode)V.removeNode(!1);else{for(;l=V.firstChild;)I.insertBefore(l,V);_.Yw(V)}};
_.qa=function(V){return V.children!=void 0?V.children:Array.prototype.filter.call(V.childNodes,function(l){return l.nodeType==1})};
_.Kxo=function(V){return V.nextElementSibling!==void 0?V.nextElementSibling:_.Npa(V.nextSibling,!0)};
_.Npa=function(V,l){for(;V&&V.nodeType!=1;)V=l?V.nextSibling:V.previousSibling;return V};
_.sh=function(V){return _.m3(V)&&V.nodeType==1};
_.R8=function(V,l){if(!V||!l)return!1;if(V.contains&&l.nodeType==1)return V==l||V.contains(l);if(typeof V.compareDocumentPosition!="undefined")return V==l||!!(V.compareDocumentPosition(l)&16);for(;l&&V!=l;)l=l.parentNode;return l==V};
LxN=function(V,l){if(V==l)return 0;if(V.compareDocumentPosition)return V.compareDocumentPosition(l)&2?1:-1;if("sourceIndex"in V||V.parentNode&&"sourceIndex"in V.parentNode){var I=V.nodeType==1,H=l.nodeType==1;if(I&&H)return V.sourceIndex-l.sourceIndex;var T=V.parentNode,x=l.parentNode;return T==x?jOB(V,l):!I&&_.R8(T,l)?-1*Yqa(V,l):!H&&_.R8(x,V)?Yqa(l,V):(I?V.sourceIndex:T.sourceIndex)-(H?l.sourceIndex:x.sourceIndex)}H=_.Z3(V);I=H.createRange();I.selectNode(V);I.collapse(!0);V=H.createRange();V.selectNode(l);
V.collapse(!0);return I.compareBoundaryPoints(_.nK.Range.START_TO_END,V)};
Yqa=function(V,l){var I=V.parentNode;if(I==l)return-1;for(;l.parentNode!=I;)l=l.parentNode;return jOB(l,V)};
jOB=function(V,l){for(;l=l.previousSibling;)if(l==V)return-1;return 1};
eMb=function(V){var l,I=arguments.length;if(!I)return null;if(I==1)return arguments[0];var H=[],T=Infinity;for(l=0;l<I;l++){for(var x=[],n=arguments[l];n;)x.unshift(n),n=n.parentNode;H.push(x);T=Math.min(T,x.length)}x=null;for(l=0;l<T;l++){n=H[0][l];for(var w=1;w<I;w++)if(n!=H[w][l])return x;x=n}return x};
_.Z3=function(V){return V.nodeType==9?V:V.ownerDocument||V.document};
kfN=function(V){return V.contentDocument||V.contentWindow.document};
_.Ma=function(V,l){if("textContent"in V)V.textContent=l;else if(V.nodeType==3)V.data=String(l);else if(V.firstChild&&V.firstChild.nodeType==3){for(;V.lastChild!=V.firstChild;)V.removeChild(V.lastChild);V.firstChild.data=String(l)}else _.ci(V),V.appendChild(_.Z3(V).createTextNode(String(l)))};
Fxv={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};XhW={IMG:" ",BR:"\n"};Pig=function(V){var l;V.tagName=="A"&&V.hasAttribute("href")||V.tagName=="INPUT"||V.tagName=="TEXTAREA"||V.tagName=="SELECT"||V.tagName=="BUTTON"?l=!V.disabled&&(!V.hasAttribute("tabindex")||zMJ(V)):l=V.hasAttribute("tabindex")&&zMJ(V);return l};
zMJ=function(V){V=V.tabIndex;return typeof V==="number"&&V>=0&&V<32768};
t6i=function(V){var l=[];yVZ(V,l,!0);V=l.join("");V=V.replace(/ \xAD /g," ").replace(/\xAD/g,"");V=V.replace(/\u200B/g,"");V=V.replace(/ +/g," ");V!=" "&&(V=V.replace(/^\s*/,""));return V};
rVN=function(V){var l=[];yVZ(V,l,!1);return l.join("")};
yVZ=function(V,l,I){if(!(V.nodeName in Fxv))if(V.nodeType==3)I?l.push(String(V.nodeValue).replace(/(\r\n|\r|\n)/g,"")):l.push(V.nodeValue);else if(V.nodeName in XhW)l.push(XhW[V.nodeName]);else for(V=V.firstChild;V;)yVZ(V,l,I),V=V.nextSibling};
_.Gfo=function(V,l,I){if(!l&&!I)return null;var H=l?String(l).toUpperCase():null;return _.Rg(V,function(T){return(!H||T.nodeName==H)&&(!I||typeof T.className==="string"&&_.Mq(T.className.split(/\s+/),I))},!0)};
_.Rg=function(V,l,I){V&&!I&&(V=V.parentNode);for(I=0;V;){if(l(V))return V;V=V.parentNode;I++}return null};
Pi=function(V){this.JSC$7235_document_=V||_.nK.document||document};
EnJ=function(V){return V.JSC$7235_document_};
_.B=Pi.prototype;_.B.getElement=function(V){return _.Ox(this.JSC$7235_document_,V)};
_.B.$=Pi.prototype.getElement;_.B.getElementsByTagName=function(V,l){return(l||this.JSC$7235_document_).getElementsByTagName(String(V))};
_.B.getElementsByTagNameAndClass=function(V,l,I){return DN(this.JSC$7235_document_,V,l,I)};
_.B.$$=Pi.prototype.getElementsByTagNameAndClass;_.B.setProperties=TpE;_.B.JSC$7237_createDom=function(V,l,I){return xVB(this.JSC$7235_document_,arguments)};
_.B.createElement=function(V){return UVi(this.JSC$7235_document_,V)};
_.B.createTextNode=function(V){return this.JSC$7235_document_.createTextNode(String(V))};
_.B.getWindow=function(){return this.JSC$7235_document_.defaultView};
var eP=function(V){return _.BpZ(V.JSC$7235_document_)};
_.B=Pi.prototype;_.B.appendChild=function(V,l){V.appendChild(l)};
_.B.append=$V3;_.B.canHaveChildren=Qm;_.B.removeNode=_.Yw;_.B.getChildren=_.qa;_.B.contains=_.R8;_.B=jP.prototype;_.B.getWidth=function(){return this.right-this.left};
_.B.getHeight=function(){return this.bottom-this.top};
_.B.clone=function(){return new jP(this.top,this.right,this.bottom,this.left)};
_.B.contains=function(V){return this&&V?V instanceof jP?V.left>=this.left&&V.right<=this.right&&V.top>=this.top&&V.bottom<=this.bottom:V.x>=this.left&&V.x<=this.right&&V.y>=this.top&&V.y<=this.bottom:!1};
_.B.expand=function(V,l,I,H){_.m3(V)?(this.top-=V.top,this.right+=V.right,this.bottom+=V.bottom,this.left-=V.left):(this.top-=V,this.right+=Number(l),this.bottom+=Number(I),this.left-=Number(H));return this};
_.B.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};
_.B.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};
_.B.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};
_.B.translate=function(V,l){V instanceof _.og?(this.left+=V.x,this.right+=V.x,this.top+=V.y,this.bottom+=V.y):(this.left+=V,this.right+=V,typeof l==="number"&&(this.top+=l,this.bottom+=l));return this};
_.B.scale=function(V,l){l=typeof l==="number"?l:V;this.left*=V;this.right*=V;this.top*=l;this.bottom*=l;return this};var YXt=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(YXt,_.mV);YXt.prototype.getVersion=function(){return _.Rt(this,2)};var j8T=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(j8T,_.mV);var nwW=function(V,l){return _.Fm(V,2,l)},KFW=function(V,l){return _.Fm(V,3,l)};
j8T.prototype.getModel=function(){return _.Rt(this,4)};
var dxq=function(V,l){return _.Fm(V,4,l)},Uxf=function(V,l){return _.Fm(V,5,l)},No1=function(V,l){return _.Fm(V,9,l)},xxf=function(V,l){return Ek(V,10,l)},BoK=function(V,l){return _.Bv(V,11,l)},$xJ=function(V,l){return _.Fm(V,1,l)},wvJ=function(V,l){return _.Bv(V,7,l)};var HS1="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var vN=function(V,l,I,H){V=V===void 0?window:V;l=l===void 0?null:l;I=I===void 0?new Iv0:I;H=H===void 0?f3t():H;u0Z.call(this);var T=this;this.global=V;this.debugChannel=l;this.performanceMonitor=I;this.onPageHide=bk1(function(){return ZK(T.global,"pagehide")}).pipe(bw(this.performanceMonitor,941));
this.onLoad=bk1(function(){return ZK(T.global,"load")}).pipe(bw(this.performanceMonitor,738),pk(1));
this.onResize=bk1(function(){return ZK(T.global,"resize")}).pipe(bw(this.performanceMonitor,741));
this.onMessage=bk1(function(){return ZK(T.global,"message")}).pipe(bw(this.performanceMonitor,740));
this.document=new JP(this.global,this);this.timeProvider=new gJv(new iZZ(this.intrinsicFunctionNamespace,this.performanceMonitor),new mNb(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new CZ0(new lrJ(this),new uEN(this),new YD(this,new TgB(this)),new YD(this,new CE3(this)),new YD(this,new Ge(this)))};
_.t(vN,u0Z);var kD=function(V){var l=V.global;return!!V.global.HTMLFencedFrameElement&&!!l.fence&&typeof l.fence.reportEvent==="function"};
_.B=vN.prototype;_.B.reportFencedFrameEvent=function(V){kD(this)&&this.global.fence.reportEvent(V)};
_.B.getOnBackgrounded=function(){return this.onPageHide.pipe(bw(this.performanceMonitor,942),d$(this.queue),Je(function(){}))};
_.B.postMessage=function(V,l,I){I=I===void 0?[]:I;this.global.postMessage(V,l,I)};
_.B.getWidth=function(){return A0f(this.global)?this.global.width:0};
_.B.getHeight=function(){return A0f(this.global)?this.global.height:0};
_.B.isMobile=function(){return xEN()||UEN()};
var cN=function(V,l){try{var I=Vkt(l,V.global,V.isMobile());return{left:I.left,top:I.top,width:I.getWidth(),height:I.getHeight()}}catch(H){return q3}};
vN.prototype.validate=function(){var V=this.beaconFactory.isSupported()||kD(this);return this.global&&this.timeProvider.available()&&V};
var JHW=function(V){return(V=eTJ(V.global))?N0(V):null};
_.vI.Object.defineProperties(vN.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(V){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!A0f(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}}});_.JVN=!_.NU&&!_.$qc();var dSK=function(V){return V};var N73=function(V){return V.pipe(QJ(function(l){var I=l.endOfSessionReason;var H;return((H=l.viewable)==null?void 0:H.extrapolateToNow().value)||I!=void 0}),pk(1),M0())};var rKW=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},GNJ=function(V){var l=V.sequenceNumber.toString(10).padStart(2,"0");
l=""+V.startTime+l;V.sequenceNumber<99&&V.sequenceNumber++;return l};var USJ=nk(l4(function(V){return V.endOfSessionReason===void 0}),Je(function(V){return Object.assign({},V,{timestamps:zP(V)})}),QJ(function(V){var l=V.viewable;
V=V.timestamps;var I;return(I=l==null?void 0:l.extrapolateUsingTimestampMap(V).value)!=null?I:!1}),Je(function(V){var l=V.beaconFactory;
var I=V.timestampedExposureHistory;var H=V.timeOnScreen;var T=V.binaryContext;V=V.timestamps;if(l===void 0||I===void 0||H===void 0||T===void 0)return!1;if(H.extrapolateUsingTimestampMap(V).value.every(function(x){return x>=0}))return!0;
I=I.map(function(x){return x.timestamp+":"+x.value}).join(",");
H=Eww({bin:T,tos:H},V);l.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+H+("&eh="+I)).sendNow();return!0}),l4(function(V){return!V}),M0());var owf=function(V){return{id:V.pingId,mcvt:V.maxConsecutiveViewTime,p:V.creativePosition,asp:V.adSpeedPosition,tm:V.totalMeasurementTime,tu:V.totalUnviewedTime,mtos:V.maxTimeOnScreen,tos:V.timeOnScreen,v:V.binaryVersion,bin:V.binaryContext,avms:V.measurementStrategy,bs:V.browserSize,mc:V.maximumExposure,"if":V.crossDomainIframeState,vu:V.delayedImpressionJsState,app:V.inApp,mse:V.mraidError,mtop:V.mraidSituation,itpl:V.injectedTemplateId,adk:V.adKey,exk:V.awbidKey,rs:V.requestSource,la:V.isLargeAd,
cr:V.isContentRecommendationAd,uach:V.userAgentClientHints,vs:V.viewState,r:V.reasonCode,pay:V.hasCpmavUrl,co:V.clientPingOrderCounter,rst:V.adRenderStartTime,rpt:V.adRenderPeriodTime,isd:V.initialScrollDepth,lsd:V.loadedScrollDepth,context:V.errorContext,msg:V.errorMessage,stack:V.errorStack,name:V.errorName,ec:V.hasElementChanged,sfr:V.strategyFailureReasons,met:V.creativeSearchResult,wmsd:V.webMeasurementStartDiagnostic,pv:V.pageVisible,epv:V.eosPageVisible,pbe:V.inStatefulBeaconExperiment,fle:V.inFetchLaterBeaconExperiment,
vae:V.inViewableAttributionExperiment,spb:V.supportsPendingBeacon,sfl:V.supportsFetchLater,ffslot:V.isFencedFrameSlotTurtlex,reach:V.sharedStorageReachMode,io2:V.v2VisibilityBitVector,rxdbg:V.rxDebugger,omida:V.omidAppId,omidp:V.omidPartner,omidpv:V.omidPartnerVersion,omidor:V.omidOcclusionReasons,omidv:V.omidVersion,omids:V.omidSessionType,omidam:V.omidAccessMode,omidct:V.omidCreativeType,omidia:V.omidInApp,omiddc:V.omidDeviceCategory,omidlat:V.omidLastActivity,omiddit:V.omidDeviceIdleTime,qid:V.errorEscapedQueryId}};var wOy=function(V){var l=[];return V.pipe(Je(function(I){var H=I.beaconFactory,T=I.fetchBeaconFactory,x=I.timeOnScreen,n=I.timeOnScreenUrlPrefixes,w=I.payloadMapper,N=I.timeOnScreenPingId,L=I.timeOnScreenReason,e=I.urlSerializer,k=I.viewable,X=I.hasImpressionFired,r=I.inStatefulBeaconExperiment,E=I.supportsPendingBeacon,D=I.supportsFetchLater,Z=I.turtlexReportEventData;if(!I.geometryMeasurable||!X||I.maxTimeOnScreen===void 0||x===void 0||n===void 0||w===void 0||N===void 0||e===void 0||H===void 0)return!1;
if(I.isTurtlex){if(L===void 0)return!1;n=I.reportFencedFrameEvent;if(!n)return!1;n({eventType:"active-view-time-on-screen",eventData:Z!=null?Z:"",destination:["buyer"]});return!0}if(!(r||D||L))return!1;Z=zP(I);var S;k=(S=k==null?void 0:k.extrapolateUsingTimestampMap(Z).value)!=null?S:!1;S=e(Object.assign({},I,{pingId:N,viewState:k?4:3,reasonCode:L!=null?L:"u",payloadMapper:w,urlPrefixes:n}),Z);if(r){for(;l.length>n.length;)I=void 0,(I=l.shift())==null||I.deactivate();S.forEach(function(Vf,C){C>=l.length?
l.push(H.makeBeacon(Vf)):l[C].url=Vf});
return E&&T&&L!==void 0?(S.forEach(function(Vf){T.makeBeacon(Vf).sendNow()}),!0):L!==void 0}if(E&&T&&L!==void 0)return S.forEach(function(Vf){T.makeBeacon(Vf).sendNow()}),!0;
if(D&&T){for(;l.length>n.length;)E=void 0,(E=l.shift())==null||E.deactivate();var p=e(Object.assign({},I,{pingId:N,viewState:k?4:3,reasonCode:L!=null?L:"u",payloadMapper:w,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),Z)[0];S.forEach(function(Vf,C){C>=l.length?l.push(H.makeBeacon(p,{endOfSession:!0})):l[C].url=p});
return L!==void 0?(S.forEach(function(Vf){T.makeBeacon(Vf).sendNow()}),!0):L!==void 0}return L!==void 0?(S.forEach(function(Vf){H.makeBeacon(Vf).sendNow()}),!0):!1}),l4(function(I){return!I}),M0())};var K_T=nk(QJ(function(V){return V.immediateUrlPrefixes!==void 0&&V.payloadMapper!==void 0&&V.urlSerializer!==void 0&&V.inferredPingId!==void 0&&V.beaconFactory!==void 0}),QJ(function(V){return cKt(V)!==null}),RTJ(function(V){return V.activeViewUnmeasurableEvent},function(V){return V.emit}),Je(function(V){if(V.isTurtlex){var l=V.reportFencedFrameEvent;
if(l){var I;l({eventType:"active-view-unmeasurable",eventData:(I=V.turtlexReportEventData)!=null?I:"",destination:["buyer"]})}}else{I=void 0;var H=cKt(V);if(H==="x"){var T,x=(T=V.geometricMeasurementErrors)!=null?T:V.contextValidationErrors;x&&(l=x.stack,I=x.message)}V.urlSerializer(Object.assign({},V,{urlPrefixes:V.immediateUrlPrefixes,payloadMapper:V.payloadMapper,pingId:V.inferredPingId,viewState:2,reasonCode:H,errorMessage:I,errorStack:l}),zP(V)).forEach(function(n){V.beaconFactory.makeBeacon(n).sendNow()})}}),
pk(1),M0());var WF3=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var xSc=nk(QJ(function(V){return V.payloadMapper!==void 0&&V.immediateUrlPrefixes!==void 0&&V.urlSerializer!==void 0&&V.inferredPingId!==void 0&&V.beaconFactory!==void 0}),Je(function(V){return Object.assign({},V,{timestamps:zP(V)})}),QJ(function(V){var l=V.viewable;
var I=V.hasImpressionFired;V=V.timestamps;var H;return!!I&&((H=l==null?void 0:l.extrapolateUsingTimestampMap(V).value)!=null?H:!1)}),RTJ(function(V){return V.activeViewViewableEvent},function(V){return V.emit}),Je(function(V){var l=V.beaconFactory,I=V.turtlexReportEventData;
if(V.isTurtlex){var H=V.reportFencedFrameEvent;if(!H)return!1;H({eventType:"active-view-viewable",eventData:I!=null?I:"",destination:["buyer"]});return!0}I=V.urlSerializer(Object.assign({},V,{urlPrefixes:V.immediateUrlPrefixes,payloadMapper:V.payloadMapper,pingId:V.inferredPingId,viewState:4,reasonCode:"v"}),V.timestamps);(H=V.cpmavUrls)&&H.length>0&&V.viewUrlSerializer&&V.viewUrlSerializer(H,V).forEach(function(T){l.makeBeacon(T).sendNow()});
(H=V.viewableRelayUrls)&&H.length>0&&V.viewUrlSerializer&&V.viewUrlSerializer(H,V).forEach(function(T){l.makeBeacon(T).sendNow()});
I.forEach(function(T){l.makeBeacon(T,{attributionEnabled:V.isViewableAttributionEnabled}).sendNow()});
return!0}),l4(function(V){return!V}),M0());var oiN=Je(function(V){return[V.value.topWindowViewportExternalGeometry.width,V.value.topWindowViewportExternalGeometry.height]});var WN=function(V,l){this.callback=V;this.options=l;this.intersectionObserverV2=this.intersectionObserverV1=null},wTN=function(V,l){l?V.intersectionObserverV2||(l=Object.assign({},V.options,{delay:100,
trackVisibility:!0}),V.intersectionObserverV2=new IntersectionObserver(V.callback,l)):V.intersectionObserverV1||(V.intersectionObserverV1=new IntersectionObserver(V.callback,V.options))},onb=function(V,l){V=l?V.intersectionObserverV2:V.intersectionObserverV1;
if(!V)throw new vJi;return V};
WN.prototype.observe=function(V,l){onb(this,V).observe(l)};
WN.prototype.unobserve=function(V,l){onb(this,V).unobserve(l)};
WN.prototype.disconnect=function(V){onb(this,V).disconnect()};
WN.prototype.takeRecords=function(V){return onb(this,V).takeRecords()};var iS1={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:q3,topWindowViewportExternalGeometry:q3,measurementRequests:new nG,elementGeometrySourceName:"ns",elementGeometry:q3,intersectionGeometry:q3,viewportLocalAppOffset:{x:0,y:0}};var sY=function(V,l,I,H){this.left=V;this.top=l;this.width=I;this.height=H};
_.B=sY.prototype;_.B.clone=function(){return new sY(this.left,this.top,this.width,this.height)};
_.B.boundingRect=function(V){var l=Math.max(this.left+this.width,V.left+V.width),I=Math.max(this.top+this.height,V.top+V.height);this.left=Math.min(this.left,V.left);this.top=Math.min(this.top,V.top);this.width=l-this.left;this.height=I-this.top};
_.B.contains=function(V){return V instanceof _.og?V.x>=this.left&&V.x<=this.left+this.width&&V.y>=this.top&&V.y<=this.top+this.height:this.left<=V.left&&this.left+this.width>=V.left+V.width&&this.top<=V.top&&this.top+this.height>=V.top+V.height};
_.B.distance=function(V){var l=V.x<this.left?this.left-V.x:Math.max(V.x-(this.left+this.width),0);V=V.y<this.top?this.top-V.y:Math.max(V.y-(this.top+this.height),0);return Math.sqrt(l*l+V*V)};
_.B.getSize=function(){return new _.Yp(this.width,this.height)};
_.B.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};
_.B.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};
_.B.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};
_.B.translate=function(V,l){V instanceof _.og?(this.left+=V.x,this.top+=V.y):(this.left+=V,typeof l==="number"&&(this.top+=l));return this};
_.B.scale=function(V,l){l=typeof l==="number"?l:V;this.left*=V;this.width*=V;this.top*=l;this.height*=l;return this};var PYo,u_,gwc,AP,RME,Sq3,QOZ,yPf,cVb,bda;_.pu=function(V,l,I){if(typeof l==="string")(l=_.hMN(V,l))&&(V.style[l]=I);else for(var H in l){I=V;var T=l[H],x=_.hMN(I,H);x&&(I.style[x]=T)}};
PYo={};_.hMN=function(V,l){var I=PYo[l];if(!I){var H=_.K8(l);I=H;V.style[H]===void 0&&(H=(_.ja?"Webkit":_.Kj?"Moz":null)+h3a(H),V.style[H]!==void 0&&(I=H));PYo[l]=I}return I};
_.yO=function(V,l){var I=_.Z3(V);return I.defaultView&&I.defaultView.getComputedStyle&&(V=I.defaultView.getComputedStyle(V,null))?V[l]||V.getPropertyValue(l)||"":""};
_.Sk=function(V,l){return _.yO(V,l)||(V.currentStyle?V.currentStyle[l]:null)||V.style&&V.style[l]};
_.DVN=function(V){return _.Sk(V,"position")};
u_=function(V,l,I){if(l instanceof _.og){var H=l.x;l=l.y}else H=l,l=I;V.style.left=AP(H,!1);V.style.top=AP(l,!1)};
gwc=function(V){try{return V.getBoundingClientRect()}catch(l){return{left:0,top:0,right:0,bottom:0}}};
_.SP=function(V){var l=_.Z3(V),I=new _.og(0,0);if(V==(l?_.Z3(l):document).documentElement)return I;V=gwc(V);l=eP(kp(l));I.x=V.left+l.x;I.y=V.top+l.y;return I};
_.Zdb=function(V,l,I){if(l instanceof _.Yp)I=l.height,l=l.width;else if(I==void 0)throw Error("sa");V.style.width=AP(l,!0);V.style.height=AP(I,!0)};
AP=function(V,l){typeof V=="number"&&(V=(l?Math.round(V):V)+"px");return V};
RME=function(V){return Sq3(V)};
Sq3=function(V){var l=QOZ;if(_.Sk(V,"display")!="none")return l(V);var I=V.style,H=I.display,T=I.visibility,x=I.position;I.visibility="hidden";I.position="absolute";I.display="inline";V=l(V);I.display=H;I.position=x;I.visibility=T;return V};
QOZ=function(V){var l=V.offsetWidth,I=V.offsetHeight,H=_.ja&&!l&&!I;return(l===void 0||H)&&V.getBoundingClientRect?(V=gwc(V),new _.Yp(V.right-V.left,V.bottom-V.top)):new _.Yp(l,I)};
yPf=function(V){var l=_.SP(V);V=Sq3(V);return new sY(l.x,l.y,V.width,V.height)};
cVb=function(V,l){V=V.style;"opacity"in V?V.opacity=l:"MozOpacity"in V?V.MozOpacity=l:"filter"in V&&(V.filter=l===""?"":"alpha(opacity="+Number(l)*100+")")};
_.Mx=function(V,l){V.style.display=l?"":"none"};
_.Wx0=function(V){return"rtl"==_.Sk(V,"direction")};
bda=function(V){var l=_.yO(V,"marginLeft"),I=_.yO(V,"marginRight"),H=_.yO(V,"marginTop");V=_.yO(V,"marginBottom");return new jP(parseFloat(H),parseFloat(I),parseFloat(V),parseFloat(l))};
_.qqw=function(V){var l=_.yO(V,"borderLeftWidth"),I=_.yO(V,"borderRightWidth"),H=_.yO(V,"borderTopWidth");V=_.yO(V,"borderBottomWidth");return new jP(parseFloat(H),parseFloat(I),parseFloat(V),parseFloat(l))};var M6o=function(V){return V.intersectionGeometry.width*V.intersectionGeometry.height/(V.elementGeometry.width*V.elementGeometry.height)},esf=M3(nk(Je(function(V){var l;
return(l=V.exposureOverride)!=null?l:M6o(V)}),Je(function(V){return isFinite(V)?V:0}))),r0T=M3(nk(Je(function(V){var l;
return(l=V.exposureOverride)!=null?l:M6o(V)}),Je(function(V){return isFinite(V)?V:-1})));var vi=function(V,l){this.a=V;this.b=l;if(V.clock.timeline!==l.clock.timeline)throw Error();};
vi.prototype.equivalentTo=function(V){return V instanceof vi?this.a.equivalentTo(V.a)&&this.b.equivalentTo(V.b):!1};
vi.prototype.extrapolateToTime=function(V){var l=this.a.extrapolateToTime(V).value,I=this.b.extrapolateToTime(V).value;return{timestamp:V,value:[l,I]}};
_.vI.Object.defineProperties(vi.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 V=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),l=this.a.lastMeasurement.timestamp.equals(V)?this.a.lastMeasurement.value:this.a.extrapolateToTime(V).value,I=this.b.lastMeasurement.timestamp.equals(V)?this.b.lastMeasurement.value:this.b.extrapolateToTime(V).value;return{timestamp:V,value:[l,I]}}}});var OY=function(V,l){this.input=V;this.mapFunction=l;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
OY.prototype.equivalentTo=function(V){return V instanceof OY?this.input.equivalentTo(V.input)&&this.mapFunction===V.mapFunction:!1};
OY.prototype.extrapolateToTime=function(V){V=this.input.extrapolateToTime(V);return{timestamp:V.timestamp,value:this.mapFunction(V.value)}};
_.vI.Object.defineProperties(OY.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Cu=function(){};
Cu.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Cu.prototype.extrapolateUsingTimestampMap=function(V){var l=this.clock.timeline,I,H=(I=V.get(l))!=null?I:this.clock.now();V.set(l,H);return this.extrapolateToTime(H)};
Cu.prototype.map=function(V){return new sO3(this,V)};
Cu.prototype.joinWith=function(V){return new phZ(this,V)};
var phZ=function(){vi.apply(this,arguments);this.map=Cu.prototype.map;this.joinWith=Cu.prototype.joinWith;this.extrapolateToNow=Cu.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Cu.prototype.extrapolateUsingTimestampMap};
_.t(phZ,vi);var sO3=function(){OY.apply(this,arguments);this.map=Cu.prototype.map;this.joinWith=Cu.prototype.joinWith;this.extrapolateToNow=Cu.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Cu.prototype.extrapolateUsingTimestampMap};
_.t(sO3,OY);var pG=function(V,l){this.lastMeasurement=l;this.extrapolateToNow=Cu.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Cu.prototype.extrapolateUsingTimestampMap;this.map=Cu.prototype.map;this.joinWith=Cu.prototype.joinWith;this.clock=V};
pG.prototype.equivalentTo=function(V){return V.active};
pG.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.vI.Object.defineProperties(pG.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var J01=Je(function(V){if(V.value.viewportGeometrySourceName==="omid"){if(V.value.elementGeometrySourceName==="nio")return"omio";if(V.value.elementGeometrySourceName==="geo")return"omgeo"}return V.value.elementGeometrySourceName==="geo"||V.value.elementGeometrySourceName==="nio"?V.value.viewportGeometrySourceName:V.value.elementGeometrySourceName});var jx3=nk(QJ(function(V){return!isNaN(V)}),mY(function(V,l){return isNaN(V)?l:Math.min(V,l)},NaN),Ae());var k0f=M3(nk(Je(function(V){return V.intersectionGeometry.width*V.intersectionGeometry.height/(V.exposedViewportLocalGeometry.width*V.exposedViewportLocalGeometry.height)}),Je(function(V){return isFinite(V)?Math.min(1,V):0})));var Eiy=nk(M3(Je(function(V){V=V.exposureOverride?V.elementGeometry.width*V.elementGeometry.height*V.exposureOverride/(V.topWindowViewportExternalGeometry.width*V.topWindowViewportExternalGeometry.height):V.intersectionGeometry.width*V.intersectionGeometry.height/(V.topWindowViewportExternalGeometry.width*V.topWindowViewportExternalGeometry.height);return isFinite(V)?V:0})));var Dy1=function(V,l){var I=this;this.timeProvider=V;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=l.pipe(Ae()).subscribe(function(H){SSJ(I);I.measurementRequestObserver=H})},RsN=function(V,l){SSJ(V);
V.lastMeasurementRequest=V.timeProvider.setTimeout(function(){var I;return void((I=V.measurementRequestObserver)==null?void 0:I.next())},l)},SSJ=function(V){V.lastMeasurementRequest!==null&&V.timeProvider.clearTimeout(V.lastMeasurementRequest);
V.lastMeasurementRequest=null};
Dy1.prototype.dispose=function(){SSJ(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var AVE=function(){};var HsJ=function(V,l){this.context=V;this.strategies=l};
_.t(HsJ,AVE);HsJ.prototype.buildGeometrySource=function(V,l){var I=this.strategies.map(function(x){return x.buildGeometrySource(V,l)}),H=qSt(I.map(function(x){return x.geometrySource})),T=H.capturedErrors.pipe(ujZ());
return{geometrySource:H.chain.pipe(d$(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:T,strategyErrors:H.capturedErrors}].concat(_.oI(I.map(function(x){return x.additionalOutputs}))))}};
var ujZ=function(){return mY(function(V,l){l instanceof tH?V.push(l.measurementStrategyFailureReason):V.push(-1);return V},[])};var B7w=function(V,l){this.context=V;this.poller=l};
_.t(B7w,AVE);B7w.prototype.buildGeometrySource=function(V,l){var I=M_t(pTJ(this.context,this.poller),V_T(this.context,l.requestSource));return{geometrySource:bNc(V.measurableCreative.pipe(I),l.inApp),additionalOutputs:{}}};var T7w=function(V,l,I){I=I===void 0?xy1(V,l):I;this.context=V;this.intersectionObserverStrategy=I};
_.t(T7w,AVE);T7w.prototype.buildGeometrySource=function(V,l){var I=this.intersectionObserverStrategy(l.useV2);return{geometrySource:bNc(V.measurableCreative.pipe(I,Uyw(this.context)),l.inApp),additionalOutputs:{}}};var vn3=function(V,l,I){var H=H===void 0?Symbol():H;this.element=V;this.immediateUrls=l;this.timeOnScreenUrls=I;this.symbol=H};var P$1=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),anq=Object.freeze([1,.75,P$1.exposureThreshold,P$1.largeAdExposureThreshold,0]);var XDq=function(V){var l=l===void 0?36E5:l;var I=I===void 0?!0:I;this.creatives=new nG;this.elementsToUnregister=new nG;this.elementMap=new Map;var H=new vN(window,null);H.beaconFactory=new YD(H,new Ge(H));Ip1(H,this.creatives,this.elementsToUnregister,V,l,I).subscribe()},ySJ=function(V,l,I,H){if(!V.elementMap.has(l)){var T=new Ql(l);
V.elementMap.set(l,T);V.creatives.next(new vn3(T,I,H))}},zAT=function(V,l){V.elementsToUnregister.next(l);
var I=V.elementMap.get(l);I!==void 0&&(I.release(),V.elementMap.delete(l))};var xR3=function(V){var l=V.url;V=V.uaDataValues;this.JSC$7346_url_=l;this.uaDataValues_=V;this.suid_=(new Date).getTime()-17040672E5},URy=function(V){V=V.uaDataValues_;
if(!V)return"";var l=CG("uap",V.platform)+CG("uapv",V.platformVersion)+CG("uafv",V.uaFullVersion)+CG("uaa",V.architecture)+CG("uam",V.model)+CG("uab",V.bitness);V.fullVersionList&&(l+="&uafvl="+encodeURIComponent(V.fullVersionList.map(function(I){return encodeURIComponent(I.brand)+";"+encodeURIComponent(I.version)}).join("|")));
V.wow64!=null&&(l+="&uaw="+Number(V.wow64));return l.slice(1)};var Odv=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Odv,_.mV);Odv.prototype.getId=function(){return _.Rt(this,1)};var ak=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(ak,_.mV);ak.prototype.getSeconds=function(){return ZV(this,1)};
ak.prototype.setSeconds=function(V){return _.AI(this,1,$h(V),"0")};_.Ay=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(_.Ay,_.mV);_.Ay.prototype.getSeconds=function(){return ZV(this,1)};
_.Ay.prototype.setSeconds=function(V){return _.AI(this,1,$h(V),"0")};
_.CYB=function(V){var l=Number(cn(V,1));V=_.lO(V,2);return new Date(l*1E3+V/1E6)};var fu=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(fu,_.mV);fu.prototype.getUrl=function(){return _.Rt(this,1)};
fu.prototype.setUrl=function(V){return _.lR(this,1,V)};
fu.prototype.getHeight=function(){return _.lO(this,2)};
fu.prototype.getWidth=function(){return _.lO(this,3)};var gU=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(gU,_.mV);gU.prototype.getAspectRatio=function(){return Sa(this,1)};
gU.prototype.setAspectRatio=function(V){return _.AI(this,1,_.ai(V),0)};
gU.prototype.getDuration=function(){return _.fA(this,ak,2)};var aCa=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(aCa,_.mV);var fCN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(fCN,_.mV);var gnw=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(gnw,_.mV);var mVW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(mVW,_.mV);var idZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(idZ,_.mV);var VdZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(VdZ,_.mV);var lKb=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(lKb,_.mV);var IKJ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(IKJ,_.mV);var Hki=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Hki,_.mV);var mJ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(mJ,_.mV);var i_=[2,4,5,6,7];var T4J=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(T4J,_.mV);var J3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(J3,_.mV);_.B=J3.prototype;_.B.getId=function(){return _.fA(this,Odv,1)};
_.B.getName=function(){return _.Rt(this,2)};
_.B.setDescription=function(V){return _.lR(this,3,V)};
_.B.getUrl=function(){return _.Rt(this,8)};
_.B.setUrl=function(V){return _.lR(this,8,V)};
var V$=function(V){return _.m2(V,fu,10,_.i4())};
J3.prototype.getOwner=function(V){var l=_.WY(this,40,_.LQ,3,!0);vTy(l,V);return l[V]};
J3.prototype.getVersion=function(){return ZV(this,45)};
var lU=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(lU,_.mV);_.B4o=[0,AYN,vc3];_.x0i=[0,AYN,vc3];var U0w=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(U0w,_.mV);var Im=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Im,_.mV);Im.prototype.getStatus=function(){return _.Qh(this,1)};
Im.prototype.removeItem=function(V){return dMK(this,2,V)};var nEN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(nEN,_.mV);nEN.prototype.getName=function(){return _.Rt(this,8)};var HH=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(HH,_.mV);HH.prototype.getCommand=function(){return _.Qh(this,1)};
HH.prototype.getSource=function(){return _.fA(this,nEN,2)};
HH.prototype.setVisible=function(V){return _.rS(this,5,V)};
HH.prototype.removeItem=function(V){return dMK(this,7,V)};var $0E=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t($0E,_.mV);$0E.prototype.getCommand=function(){return _.Qh(this,1)};
$0E.prototype.removeItem=function(V){return dMK(this,4,V)};
var d0E=_.wp($0E);var T1=function(V,l,I){I=I===void 0?Error():I;var H=Error.call(this);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=V;l+=":";I instanceof Error?(this.message=l+I.message,this.stack=I.stack||""):(this.message=l+String(I),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.t(T1,Error);_.XG=function(){this.JSC$7404_disposed_=this.JSC$7404_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.XG.prototype.JSC$7404_disposed_=!1;_.XG.prototype.isDisposed=function(){return this.JSC$7404_disposed_};
_.XG.prototype.dispose=function(){this.JSC$7404_disposed_||(this.JSC$7404_disposed_=!0,this.disposeInternal())};
_.XG.prototype[Symbol.dispose]=function(){this.dispose()};
_.$w=function(V,l){V.addOnDisposeCallback(_.kB(_.ag,l))};
_.XG.prototype.addOnDisposeCallback=function(V,l){this.JSC$7404_disposed_?l!==void 0?V.call(l):V():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),l&&(V=V.bind(l)),this.onDisposeCallbacks_.push(V))};
_.XG.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var BH=function(V){_.XG.call(this);this.wpc=V};
_.t(BH,_.XG);BH.prototype.eli=function(){return this.wpc.f()};
BH.prototype.dop=function(V){return this.wpc.c(V)};
BH.prototype.t1=function(V){return this.wpc.m(XOw(V))};
BH.prototype.zq=function(V){return this.wpc.mws(XOw(V))};
var fG=function(V){_.XG.call(this);var l=this;this.wl=V;this.p12="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.fgn=void 0;this.uGF=this.wl.p;this.tcd=this.j1X.bind(this);this.addOnDisposeCallback(function(){return void wkZ(l)})};
_.t(fG,_.XG);var N40=function(V){var l;return _.d(function(I){if(I.nextAddress==1){if(!V.wl.wpc)throw new T1(30,"NWA");return V.oIb?I.return(V.oIb):_.K(I,V.wl.wpc(),2)}l=I.yieldResult;V.oIb=new BH(l);return I.return(V.oIb)})};
fG.prototype.snapshot=function(V){return this.wl.s(Object.assign({},V.vo&&{c:V.vo},V.mfI&&{s:V.mfI},V.qtp!==void 0&&{p:V.qtp}))};
fG.prototype.j1X=function(V){this.wl.e(V)};
fG.prototype.kEX=function(V,l){return this.wl.c(V,l,!1)};
var wkZ=function(V){V.fgn!==void 0&&(V.p12.forEach(function(l){var I;(I=V.fgn)==null||I.removeEventListener(l,V.tcd)}),V.fgn=void 0)};
fG.prototype.q1B=function(){return this.wl.l()};var KYZ,xL=function(){_.XG.apply(this,arguments);this.fbs=1;this[KYZ]=this.dispose};
_.t(xL,_.XG);xL.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.fbs++;return this};
xL.prototype.dispose=function(){--this.fbs||_.XG.prototype.dispose.call(this)};
KYZ=Symbol.dispose;var pOq=function(V){this.o6u=V;V.addNewEventMetric("/client_streamz/bg/frs",_.TN("mk"))};
pOq.prototype.record=function(V,l){this.o6u.record("/client_streamz/bg/frs",V,l)};
var Os1=function(V){this.h5F=V;V.addNewEventMetric("/client_streamz/bg/wrl",_.TN("mn"),Hv("ac"),Hv("sc"),_.TN("rk"),_.TN("mk"))};
Os1.prototype.record=function(V,l,I,H,T,x){this.h5F.record("/client_streamz/bg/wrl",V,l,I,H,T,x)};
var uWW=function(V){this.aqd=V;V.addNewCounter("/client_streamz/bg/ec",_.TN("en"),_.TN("mk"))};
uWW.prototype.increment=function(V,l){this.aqd.JSC$7653_incrementCounter("/client_streamz/bg/ec",V,l)};
var vGc=function(V){this.qtl=V;V.addNewEventMetric("/client_streamz/bg/el",_.TN("en"),_.TN("mk"))};
vGc.prototype.record=function(V,l,I){this.qtl.record("/client_streamz/bg/el",V,l,I)};
var A6f=function(V){this.lqJ=V;V.addNewCounter("/client_streamz/bg/cec",Hv("ec"),_.TN("mk"))};
A6f.prototype.increment=function(V,l){this.lqJ.JSC$7653_incrementCounter("/client_streamz/bg/cec",V,l)};
var Ctf=function(V){this.g6C=V;V.addNewCounter("/client_streamz/bg/po/csc",Hv("cs"),_.TN("mk"))};
Ctf.prototype.increment=function(V,l){this.g6C.JSC$7653_incrementCounter("/client_streamz/bg/po/csc",V,l)};
var apN=function(V){this.kD2=V;V.addNewCounter("/client_streamz/bg/po/ctav",_.TN("av"),_.TN("mk"))};
apN.prototype.increment=function(V,l){this.kD2.JSC$7653_incrementCounter("/client_streamz/bg/po/ctav",V,l)};
var fp1=function(V){this.fqu=V;V.addNewCounter("/client_streamz/bg/po/cwsc",_.TN("su"),_.TN("mk"))};
fp1.prototype.increment=function(V,l){this.fqu.JSC$7653_incrementCounter("/client_streamz/bg/po/cwsc",V,l)};var TmW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(TmW,_.mV);var HAK=function(V,l){return _.pQ(V,3,l,KWc)};var jIa=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(jIa,_.mV);var Y9W=[1,2,3];var LYJ=[0,Y9W,_.gcK,O5K,fqt];var e7E=[0,_.gl,[0,MYt,_.Ok]];var kLi=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(kLi,_.mV);var FYi=[1,2,3];var XkE=[0,FYi,uOT,sn1,_.mM,e7E];var z7o=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(z7o,_.mV);var yeB=[0,_.gl,LYJ,XkE];var tda=[0,[1,2,3],_.mM,[0,_.fj,-1,_.at],_.mM,[0,_.fj,-1,_.Cj,_.at],_.mM,[0,_.fj]];var reW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(reW,_.mV);reW.prototype.JSC$7473_serializeBinary=Gfc([0,_.fj,tda,mM1,_.gl,yeB,Crw,aqT]);var GLZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(GLZ,_.mV);var oEB=function(V){var l=new reW;l=_.Fm(l,1,V.JSC$7589_metricName);var I=EEw(V);l=_.pQ(l,3,I,_.jb);I=[];for(var H=[],T=_.U(V.cellMap.keys()),x=T.next();!x.done;x=T.next())H.push(x.value.split(","));for(T=0;T<H.length;T++){x=H[T];for(var n=V.cellType,w=V.getCells(x)||[],N=[],L=0;L<w.length;L++){var e=w[L],k=e&&e.cellValue;e=new kLi;switch(n){case 3:k=Number(k);Number.isFinite(k)&&nO(e,1,FYi,$h(k));break;case 2:nO(e,2,FYi,_.ai(Number(k)))}N.push(e)}n=N;for(w=0;w<n.length;w++){N=n[w];L=new z7o;N=_.j6(L,
2,N);L=[];e=Jev(V);for(k=0;k<e.length;k++){var X=e[k],r=x[k],E=new jIa;switch(X){case 3:nO(E,1,Y9W,Yh(String(r)));break;case 2:X=Number(r);Number.isFinite(X)&&nO(E,2,Y9W,_.lE(X));break;case 1:nO(E,3,Y9W,dNJ(r==="true"))}L.push(E)}Ek(N,1,L);I.push(N)}}Ek(l,4,I);return l};var h7J=function(V){if(!V)return"";if(/^about:(?:blank|srcdoc)$/.test(V))return window.origin||"";V.indexOf("blob:")===0&&(V=V.substring(5));V=V.split("#")[0].split("?")[0];V=V.toLowerCase();V.indexOf("//")==0&&(V=window.location.protocol+V);/^[\w\-]*:\/\//.test(V)||(V=window.location.href);var l=V.substring(V.indexOf("://")+3),I=l.indexOf("/");I!=-1&&(l=l.substring(0,I));I=V.substring(0,V.indexOf("://"));if(!I)throw Error("ua`"+V);if(I!=="http"&&I!=="https"&&I!=="chrome-extension"&&I!=="moz-extension"&&
I!=="file"&&I!=="android-app"&&I!=="chrome-search"&&I!=="chrome-untrusted"&&I!=="chrome"&&I!=="app"&&I!=="devtools")throw Error("va`"+I);V="";var H=l.indexOf(":");if(H!=-1){var T=l.substring(H+1);l=l.substring(0,H);if(I==="http"&&T!=="80"||I==="https"&&T!=="443")V=":"+T}return I+"://"+l+V};var D0b=function(V,l,I){var H=String(_.nK.location.href);return H&&V&&l?[l,PwZ(h7J(H),V,I||null)].join(" "):null},PwZ=function(V,l,I){var H=[],T=[];
if((Array.isArray(I)?2:1)==1)return T=[l,V],_.cO(H,function(w){T.push(w)}),ZkE(T.join(" "));
var x=[],n=[];_.cO(I,function(w){n.push(w.key);x.push(w.value)});
I=Math.floor((new Date).getTime()/1E3);T=x.length==0?[I,l,V]:[x.join(":"),I,l,V];_.cO(H,function(w){T.push(w)});
V=ZkE(T.join(" "));V=[I,V];n.length==0||V.push(n.join(""));return V.join("_")},ZkE=function(V){var l=oGt();
l.update(V);return l.digestString().toLowerCase()};var UR=function(V){this.JSC$7484_document_=V||{cookie:""}},S9E;
_.B=UR.prototype;_.B.isEnabled=function(){if(!_.nK.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};
_.B.set=function(V,l,I){var H=!1;if(typeof I==="object"){var T=I.sameSite;H=I.secure||!1;var x=I.domain||void 0;var n=I.path||void 0;var w=I.maxAge}if(/[;=\s]/.test(V))throw Error("wa`"+V);if(/[;\r\n]/.test(l))throw Error("xa`"+l);w===void 0&&(w=-1);I=x?";domain="+x:"";n=n?";path="+n:"";H=H?";secure":"";w=w<0?"":w==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+w*1E3)).toUTCString();this.JSC$7484_document_.cookie=V+"="+l+I+n+w+H+(T!=null?";samesite="+T:"")};
_.B.get=function(V,l){for(var I=V+"=",H=(this.JSC$7484_document_.cookie||"").split(";"),T=0,x;T<H.length;T++){x=_.nj(H[T]);if(x.lastIndexOf(I,0)==0)return x.slice(I.length);if(x==V)return""}return l};
_.B.remove=function(V,l,I){var H=this.containsKey(V);this.set(V,"",{maxAge:0,path:l,domain:I});return H};
_.B.getKeys=function(){return S9E(this).keys};
_.B.getValues=function(){return S9E(this).values};
_.B.isEmpty=function(){return!this.JSC$7484_document_.cookie};
_.B.getCount=function(){return this.JSC$7484_document_.cookie?(this.JSC$7484_document_.cookie||"").split(";").length:0};
_.B.containsKey=function(V){return this.get(V)!==void 0};
_.B.containsValue=function(V){for(var l=S9E(this).values,I=0;I<l.length;I++)if(l[I]==V)return!0;return!1};
_.B.clear=function(){for(var V=S9E(this).keys,l=V.length-1;l>=0;l--)this.remove(V[l])};
S9E=function(V){V=(V.JSC$7484_document_.cookie||"").split(";");for(var l=[],I=[],H,T,x=0;x<V.length;x++)T=_.nj(V[x]),H=T.indexOf("="),H==-1?(l.push(""),I.push(T)):(l.push(T.substring(0,H)),I.push(T.substring(H+1)));return{keys:l,values:I}};
_.dm=new UR(typeof document=="undefined"?null:document);var p6t=function(){var V=_.nK.__SAPISID||_.nK.__APISID||_.nK.__3PSAPISID||_.nK.__1PSAPISID||_.nK.__OVERRIDE_SID;if(V)return!0;typeof document!=="undefined"&&(V=new UR(document),V=V.get("SAPISID")||V.get("APISID")||V.get("__Secure-3PAPISID")||V.get("__Secure-1PAPISID"));return!!V},R7o=function(V,l,I,H){(V=_.nK[V])||typeof document==="undefined"||(V=(new UR(document)).get(l));
return V?D0b(V,I,H):null},Qjy=function(V){var l=h7J(String(_.nK.location.href)),I=[];
if(p6t()){l=l.indexOf("https:")==0||l.indexOf("chrome-extension:")==0||l.indexOf("chrome-untrusted://new-tab-page")==0||l.indexOf("moz-extension:")==0;var H=l?_.nK.__SAPISID:_.nK.__APISID;H||typeof document==="undefined"||(H=new UR(document),H=H.get(l?"SAPISID":"APISID")||H.get("__Secure-3PAPISID"));(H=H?D0b(H,l?"SAPISIDHASH":"APISIDHASH",V):null)&&I.push(H);l&&((l=R7o("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",V))&&I.push(l),(V=R7o("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",V))&&I.push(V))}return I.length==
0?null:I.join(" ")};var QIW=function(){this.minSize=1024};
QIW.prototype.compress=function(V){var l,I,H,T;return _.d(function(x){switch(x.nextAddress){case 1:return l=new CompressionStream("gzip"),I=(new Response(l.readable)).arrayBuffer(),H=l.writable.getWriter(),_.K(x,H.write((new TextEncoder).encode(V)),2);case 2:return _.K(x,H.close(),3);case 3:return T=Uint8Array,_.K(x,I,4);case 4:return x.return(new T(x.yieldResult))}})};
QIW.prototype.isSupported=function(V){return V<this.minSize?!1:typeof CompressionStream!=="undefined"};var ceE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(ceE,_.mV);var $L=function(V,l){this.intervalMs=V;this.callback=l;this.enabled=!1;this.nowFn=function(){return _.xv()};
this.lastTimeMs=this.nowFn()};
$L.prototype.setInterval=function(V){this.intervalMs=V;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
$L.prototype.start=function(){var V=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){V.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
$L.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
$L.prototype.tick=function(){var V=this;if(this.enabled){var l=Math.max(this.nowFn()-this.lastTimeMs,0);l<this.intervalMs*.8?this.timer=setTimeout(function(){V.tick()},this.intervalMs-l):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var WY0=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(WY0,_.mV);var bkB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(bkB,_.mV);var q9v=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(q9v,_.mV);q9v.prototype.getTransmissionType=function(){return _.Qh(this,1)};var ZsW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(ZsW,_.mV);ZsW.prototype.getVersion=function(){return _.Rt(this,2)};var dR=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(dR,_.mV);var DSq=function(V){Ek(So3,1,V)};
dR.prototype.getModel=function(){return _.Rt(this,6)};
var Mda=_.wp(dR);var sI3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(sI3,_.mV);var h1N=["platform","platformVersion","architecture","model","uaFullVersion"],So3=new dR,Pt3=null;var pk0=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(pk0,_.mV);var AeZ=function(V){return _.gm(V,1,1)};var uUN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V,4)};
_.t(uUN,_.mV);_.wR=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V,36)};
_.t(_.wR,_.mV);_.wR.prototype.getExperimentIds=function(){return _.fA(this,ceE,16)};var vE0=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V,19)};
_.t(vE0,_.mV);vE0.prototype.setLogSource=function(V){return _.gm(this,2,V)};
vE0.prototype.setScheduler=function(V){return _.gm(this,10,V)};var Cwo=function(V,l){this.isServiceWorkerScope=l=l===void 0?!1:l;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new vE0;Number.isInteger(V)&&this.logRequest.setLogSource(V);l||(this.locale=document.documentElement.getAttribute("lang"));Oko(this,new pk0)};
Cwo.prototype.setLogSource=function(V){this.logRequest.setLogSource(V);return this};
var Oko=function(V,l){_.j6(V.logRequest,1,l);_.Qh(l,1)||AeZ(l);V.isServiceWorkerScope||(l=NI(V),_.Rt(l,5)||_.Fm(l,5,V.locale));V.uach&&(l=NI(V),_.fA(l,dR,9)||_.j6(l,9,V.uach))},aKo=function(V,l){V.transmissionType=l},fKN=function(V){var l=l===void 0?h1N:l;
var I=V.isServiceWorkerScope?void 0:hH();I?R1y(I,l).then(function(H){V.uach=Mda(H!=null?H:"[]");H=NI(V);_.j6(H,9,V.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},NI=function(V){V=_.fA(V.logRequest,pk0,1);
var l=_.fA(V,sI3,11);l||(l=new sI3,_.j6(V,11,l));return l};
Cwo.prototype.build=function(V,l,I,H,T,x){l=l===void 0?0:l;I=I===void 0?0:I;H=H===void 0?null:H;T=T===void 0?0:T;x=x===void 0?0:x;if(!this.isServiceWorkerScope){var n=NI(this);var w=new q9v;w=_.gm(w,1,this.transmissionType);w=_.Bv(w,2,this.isFinal);I=_.qU(w,3,I>0?I:void 0);I=_.qU(I,4,T>0?T:void 0);I=_.qU(I,5,x>0?x:void 0);T=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;x=T[_.NN]|0;I=X0(I,x)?I:new I.constructor(Dr(T,x));_.j6(n,10,I)}n=this.logRequest.clone();I=Date.now().toString();n=_.m6(n,
4,$h(I));V=V.slice();V=Ek(n,3,V);H&&(n=new WY0,H=_.qU(n,13,H),n=new bkB,H=_.j6(n,2,H),n=new uUN,H=_.j6(n,1,H),H=_.gm(H,2,9),_.j6(V,18,H));l&&_.Yl(V,14,l);return V};xw.prototype.currBackoffCount_=0;xw.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
xw.prototype.getValue=function(){return this.currValue_};
var gEN=function(V){V.currBaseValue_=Math.min(V.maxValue_,V.currBaseValue_*V.backoffFactor_);V.currValue_=Math.min(V.maxValue_,V.currBaseValue_+(V.randomFactor_?Math.round(V.randomFactor_*(Math.random()-.5)*2*V.currBaseValue_):0));V.currBackoffCount_++};var HKB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V,8)};
_.t(HKB,_.mV);var m03=_.wp(HKB);var TWJ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(TWJ,_.mV);var Kg;Kg=new BWa;var j3=function(V){_.XG.call(this);var l=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7562_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$7562_sendBeaconApiEnabled=!1;this.logSource=V.logSource;this.getAuthHeaderValue=
V.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Cwo(V.logSource,V.isServiceWorkerScope);this.network=V.network||null;this.productID=V.productID||null;this.clearcutUrl=V.urlOverride||null;this.sessionIndex=V.sessionIndex||null;this.disableAutomaticFlush=V.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!V.disableWithCredentials;this.isServiceWorkerScope=V.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!hH()&&!!hH().navigator&&hH().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(ikw())).searchParams&&!!(new URL(ikw())).searchParams.set;var I=AeZ(new pk0);Oko(this.logRequestBuilder,I);this.flushBackoff=new xw(1E4,3E5,.1);V=VPo(this,V.backgroundJobDeferrer);this.JSC$7562_flushTimer=new $L(this.flushBackoff.getValue(),V);this.backupTimer=new $L(6E5,V);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){l3J(l);
var H;(H=l.metalogService)==null||H.flush()}}),document.addEventListener("pagehide",function(){l3J(l);
var H;(H=l.metalogService)==null||H.flush()}))};
_.t(j3,_.XG);var VPo=function(V,l){return V.isBrowserSupported?l?function(){l().then(function(){V.flush()})}:function(){V.flush()}:function(){}};
j3.prototype.disposeInternal=function(){l3J(this);this.JSC$7562_flushTimer.stop();this.backupTimer.stop();_.XG.prototype.disposeInternal.call(this)};
var I3b=function(V){V.clearcutUrl||(V.clearcutUrl=ikw());try{return(new URL(V.clearcutUrl)).toString()}catch(l){return(new URL(V.clearcutUrl,hH().location.origin)).toString()}};
j3.prototype.dispatch=function(V){if(V instanceof _.wR)this.log(V);else try{var l=new _.wR,I=V.serialize();var H=_.Fm(l,8,I);this.log(H)}catch(T){YL(this,4,1)}};
var YL=function(V,l,I){V.metalogService&&V.metalogService.increment(l,I)};
j3.prototype.log=function(V){YL(this,2,1);if(this.isBrowserSupported){V=V.clone();var l=this.sequencePosition++;V=_.Yl(V,21,l);this.componentId&&_.Fm(V,26,this.componentId);l=V;if(h3f(_.Fr(l,1))==null){var I=Date.now();I=Number.isFinite(I)?I.toString():"0";_.m6(l,1,$h(I))}_.ot(l,15)!=null||_.Yl(l,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(I=this.experimentIds.clone(),_.j6(l,16,I));YL(this,1,1);l=this.pendingEvents.length-1E3+1;l>0&&(this.pendingEvents.splice(0,l),this.numLogsDroppedSinceLastFlush+=
l,YL(this,3,l));this.pendingEvents.push(V);this.disableAutomaticFlush||this.JSC$7562_flushTimer.enabled||this.JSC$7562_flushTimer.start()}};
j3.prototype.flush=function(V,l){var I=this;if(this.pendingEvents.length===0)V&&V();else if(this.JSC$7562_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,HGZ(this);else{var H=Date.now();if(this.noFlushUntilMs>H&&this.startWaitingMs<H)l&&l("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?aKo(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var T=this.pendingEvents.length,
x=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),n=this.getAuthHeaderValue();if(n&&this.lastFailedAuth===n)l&&l("stale-auth-token");else{this.pendingEvents=[];this.JSC$7562_flushTimer.enabled&&this.JSC$7562_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;H=x.serialize();var w;this.JSC$7562_compressor&&this.JSC$7562_compressor.isSupported(H.length)&&
(w=this.JSC$7562_compressor.compress(H));var N=T$E(this,H,n),L=function(X){I.flushBackoff.reset();I.JSC$7562_flushTimer.setInterval(I.flushBackoff.getValue());if(X){var r=null;try{var E=JSON.stringify(JSON.parse(X.replace(")]}'\n","")));r=m03(E)}catch(D){}r&&(X=Number(ZV(r,1,_.cw("-1"))),X>0&&(I.startWaitingMs=Date.now(),I.noFlushUntilMs=I.startWaitingMs+X),vJ1(r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Kg.fieldIndex),avy(r,Kg.fieldIndex),r=Kg.ctor?Kg.getExtensionFn(r,Kg.ctor,Kg.fieldIndex,
Kg.JSC$6734_hasMessageId):Kg.getExtensionFn(r,Kg.fieldIndex,null,Kg.JSC$6734_hasMessageId),r=r===null?void 0:r)&&(r=_.lO(r,1,-1),r!==-1&&(I.flushBackoff=new xw(r<1?1:r,3E5,.1),I.JSC$7562_flushTimer.setInterval(I.flushBackoff.getValue())))}V&&V();I.numRetriesSinceLastSuccessfulFlush=0},e=function(X,r){var E=_.m2(x,_.wR,3,_.i4());
var D=Number(ZV(x,14));gEN(I.flushBackoff);I.JSC$7562_flushTimer.setInterval(I.flushBackoff.getValue());X===401&&n&&(I.lastFailedAuth=n);D&&(I.numLogsDroppedSinceLastFlush+=D);r===void 0&&(r=I.isRetryable(X));r&&(I.pendingEvents=E.concat(I.pendingEvents),I.disableAutomaticFlush||I.JSC$7562_flushTimer.enabled||I.JSC$7562_flushTimer.start());YL(I,7,1);l&&l("net-send-failed",X);++I.numRetriesSinceLastSuccessfulFlush},k=function(){I.network&&I.network.send(N,L,e)};
w?w.then(function(X){YL(I,5,T);N.requestHeaders["Content-Encoding"]="gzip";N.requestHeaders["Content-Type"]="application/binary";N.body=X;N.bodyType=2;k()},function(){YL(I,6,T);
k()}):k()}}}};
var T$E=function(V,l,I){I=I===void 0?null:I;var H=H===void 0?V.withCredentials:H;var T={},x=new URL(I3b(V));I&&(T.Authorization=I);V.sessionIndex&&(T["X-Goog-AuthUser"]=V.sessionIndex,x.searchParams.set("authuser",V.sessionIndex));V.pageId&&(Object.defineProperty(T,"X-Goog-PageId",{value:V.pageId}),x.searchParams.set("pageId",V.pageId));return{url:x.toString(),body:l,bodyType:1,requestHeaders:T,requestType:"POST",withCredentials:H,timeoutMillis:V.timeoutMillis}},l3J=function(V){V.logRequestBuilder.isFinal=
!0;
V.flush();V.logRequestBuilder.isFinal=!1},HGZ=function(V){B$Z(V,function(l,I){l=new URL(l);
l.searchParams.set("format","json");var H=!1;try{H=hH().navigator.sendBeacon(l.toString(),I.serialize())}catch(T){}H||(V.isSendBeaconSupported=!1);return H})},B$Z=function(V,l){if(V.pendingEvents.length!==0){var I=new URL(I3b(V));
I.searchParams.delete("format");var H=V.getAuthHeaderValue();H&&I.searchParams.set("auth",H);I.searchParams.set("authuser",V.sessionIndex||"0");for(H=0;H<10&&V.pendingEvents.length;++H){var T=V.pendingEvents.slice(0,32),x=V.logRequestBuilder.build(T,V.numLogsDroppedSinceLastFlush,V.numRetriesSinceLastSuccessfulFlush,V.productID,V.persistedLogRecoveredCount,V.persistedLogExpiredCount);if(!l(I.toString(),x)){++V.numRetriesSinceLastSuccessfulFlush;break}V.numLogsDroppedSinceLastFlush=0;V.numRetriesSinceLastSuccessfulFlush=
0;V.persistedLogRecoveredCount=0;V.persistedLogExpiredCount=0;V.pendingEvents=V.pendingEvents.slice(T.length)}V.JSC$7562_flushTimer.enabled&&V.JSC$7562_flushTimer.stop()}};
j3.prototype.isRetryable=function(V){return 500<=V&&V<600||V===401||V===0};
var ikw=function(){return"https://play.google.com/log?format=json&hasfast=true"};var x3E=function(){this.abortSupported=typeof AbortController!=="undefined"};
x3E.prototype.send=function(V,l,I){var H=this,T,x,n,w,N,L,e,k,X,r;return _.d(function(E){switch(E.nextAddress){case 1:return x=(T=H.abortSupported?new AbortController:void 0)?setTimeout(function(){T.abort()},V.timeoutMillis):void 0,_.jd(E,2,3),n=Object.assign({},{method:V.requestType,
headers:Object.assign({},V.requestHeaders)},V.body&&{body:V.body},V.withCredentials&&{credentials:"include"},{signal:V.timeoutMillis&&T?T.signal:null}),_.K(E,fetch(V.url,n),5);case 5:w=E.yieldResult;if(w.status!==200){(N=I)==null||N(w.status);E.jumpTo(3);break}if((L=l)==null){E.jumpTo(7);break}return _.K(E,w.text(),8);case 8:L(E.yieldResult);case 7:case 3:_.YE(E);clearTimeout(x);_.ed(E,0);break;case 2:e=_.kE(E);switch((k=e)==null?void 0:k.name){case "AbortError":(X=I)==null||X(408);break;default:(r=
I)==null||r(400)}E.jumpTo(3)}})};
x3E.prototype.getTransmissionType=function(){return 4};_.nS=function(V,l){l=l===void 0?"0":l;_.XG.call(this);this.logSource=V;this.sessionIndex=l;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7580_clearExperimentIds=this.productID=null;this.JSC$7580_sendBeaconApiEnabled=!1;this.pageId=null};
_.t(_.nS,_.XG);var VOW=function(V,l){V.buildLabel=l;return V},isy=function(V,l){V.network=l;
return V},IY1=function(V,l){V.JSC$7580_clearExperimentIds=l},mSq=function(V){V.JSC$7580_sendBeaconApiEnabled=!0;
return V};
_.nS.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.nS.prototype.build=function(){this.network||(this.network=new x3E);var V=new j3({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:Qjy,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.$w(this,V);if(this.buildLabel){var l=this.buildLabel,I=NI(V.logRequestBuilder);
_.Fm(I,7,l)}V.JSC$7562_compressor=new QIW;this.componentId&&(V.componentId=this.componentId);this.productID&&(V.productID=this.productID);this.pageId&&(V.pageId=this.pageId);this.JSC$7580_clearExperimentIds&&((I=this.JSC$7580_clearExperimentIds)?(V.experimentIds||(V.experimentIds=new ceE),l=V.experimentIds,I=I.serialize(),_.Fm(l,4,I)):V.experimentIds&&_.m6(V.experimentIds,4));this.JSC$7580_sendBeaconApiEnabled&&(V.JSC$7562_sendBeaconApiEnabled=V.isSendBeaconSupported);fKN(V.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(V);return V};var Bmf=function(V,l,I,H,T,x,n){V=V===void 0?-1:V;l=l===void 0?"":l;I=I===void 0?"":I;H=H===void 0?!1:H;T=T===void 0?"":T;_.XG.call(this);this.logSource=V;this.componentId=l;x?l=x:(V=new _.nS(V,"0"),V.componentId=l,_.$w(this,V),I!==""&&(V.destinationUrl=I),H&&(V.serviceWorkerScopeEnabled=!0),T&&VOW(V,T),n&&isy(V,n),l=V.build());this.JSC$7584_transport=l};
_.t(Bmf,_.XG);Bmf.prototype.flush=function(V){V=V||[];if(V.length){for(var l=new GLZ,I=[],H=0;H<V.length;H++){var T=V[H],x=oEB(T);I.push(x);T.clear()}Ek(l,1,I);this.JSC$7584_transport.dispatch(l);this.JSC$7584_transport.flush()}};var U3Z=function(V){this.cellValue=V};var Lg=function(V,l,I){this.JSC$7589_metricName=V;this.cellType=l;this.fields=I||[];this.cellMap=new Map},Jev=function(V){return V.fields.map(function(l){return l.fieldType})},EEw=function(V){return V.fields.map(function(l){return l.fieldName})};
_.B=Lg.prototype;_.B.addCell=function(V){var l=_.Q5.apply(1,arguments),I=this.getCells(l);I?I.push(new U3Z(V)):this.JSC$7589_setCell(V,l)};
_.B.JSC$7589_setCell=function(V){var l=this.JSC$7589_getKey(_.Q5.apply(1,arguments));this.cellMap.set(l,[new U3Z(V)])};
_.B.getCells=function(){var V=this.JSC$7589_getKey(_.Q5.apply(0,arguments));return this.cellMap.has(V)?this.cellMap.get(V):void 0};
_.B.getCell=function(){var V=this.getCells(_.Q5.apply(0,arguments));return V&&V.length?V[0]:void 0};
_.B.clear=function(){this.cellMap.clear()};
_.B.JSC$7589_getKey=function(){var V=_.Q5.apply(0,arguments);return V?V.join(","):"key"};var npJ=function(V,l){Lg.call(this,V,3,l)};
_.t(npJ,Lg);npJ.prototype.JSC$7592_incrementCounterBy=function(V){var l=_.Q5.apply(1,arguments),I=0,H=this.getCell(l);H&&(I=H.cellValue);this.JSC$7589_setCell(I+V,l)};var $3Z=function(V,l){Lg.call(this,V,2,l)};
_.t($3Z,Lg);$3Z.prototype.record=function(V){this.addCell(V,_.Q5.apply(1,arguments))};_.e3=function(V){this.id=V};
_.e3.prototype.toString=function(){return this.id};_.kL=function(V,l){this.type=V instanceof _.e3?String(V):V;this.currentTarget=this.target=l;this.defaultPrevented=this.propagationStopped_=!1};
_.kL.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.kL.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Ft=function(V,l){_.kL.call(this,V?V.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;V&&this.init(V,l)};
_.Uk(_.Ft,_.kL);
_.Ft.prototype.init=function(V,l){var I=this.type=V.type,H=V.changedTouches&&V.changedTouches.length?V.changedTouches[0]:null;this.target=V.target||V.srcElement;this.currentTarget=l;l=V.relatedTarget;l||(I=="mouseover"?l=V.fromElement:I=="mouseout"&&(l=V.toElement));this.relatedTarget=l;H?(this.clientX=H.clientX!==void 0?H.clientX:H.pageX,this.clientY=H.clientY!==void 0?H.clientY:H.pageY,this.screenX=H.screenX||0,this.screenY=H.screenY||0):(this.offsetX=_.ja||V.offsetX!==void 0?V.offsetX:V.layerX,
this.offsetY=_.ja||V.offsetY!==void 0?V.offsetY:V.layerY,this.clientX=V.clientX!==void 0?V.clientX:V.pageX,this.clientY=V.clientY!==void 0?V.clientY:V.pageY,this.screenX=V.screenX||0,this.screenY=V.screenY||0);this.button=V.button;this.keyCode=V.keyCode||0;this.key=V.key||"";this.charCode=V.charCode||(I=="keypress"?V.keyCode:0);this.ctrlKey=V.ctrlKey;this.altKey=V.altKey;this.shiftKey=V.shiftKey;this.metaKey=V.metaKey;this.pointerId=V.pointerId||0;this.pointerType=V.pointerType;this.state=V.state;
this.timeStamp=V.timeStamp;this.event_=V;V.defaultPrevented&&_.Ft.superClass_.preventDefault.call(this)};
_.Ft.prototype.stopPropagation=function(){_.Ft.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Ft.prototype.preventDefault=function(){_.Ft.superClass_.preventDefault.call(this);var V=this.event_;V.preventDefault?V.preventDefault():V.returnValue=!1};var d3a="closure_listenable_"+(Math.random()*1E6|0),Xt=function(V){return!(!V||!V[d3a])};var wNJ=0;var N$N=function(V,l,I,H,T){this.listener=V;this.proxy=null;this.src=l;this.type=I;this.capture=!!H;this.handler=T;this.key=++wNJ;this.removed=this.callOnce=!1},K2o=function(V){V.removed=!0;
V.listener=null;V.proxy=null;V.src=null;V.handler=null};UX.prototype.add=function(V,l,I,H,T){var x=V.toString();V=this.listeners[x];V||(V=this.listeners[x]=[],this.typeCount_++);var n=jg0(V,l,H,T);n>-1?(l=V[n],I||(l.callOnce=!1)):(l=new N$N(l,this.src,x,!!H,T),l.callOnce=I,V.push(l));return l};
UX.prototype.remove=function(V,l,I,H){V=V.toString();if(!(V in this.listeners))return!1;var T=this.listeners[V];l=jg0(T,l,I,H);return l>-1?(K2o(T[l]),_.y1J(T,l),T.length==0&&(delete this.listeners[V],this.typeCount_--),!0):!1};
var YLa=function(V,l){var I=l.type;if(!(I in V.listeners))return!1;var H=_.A1(V.listeners[I],l);H&&(K2o(l),V.listeners[I].length==0&&(delete V.listeners[I],V.typeCount_--));return H};
UX.prototype.removeAll=function(V){V=V&&V.toString();var l=0,I;for(I in this.listeners)if(!V||I==V){for(var H=this.listeners[I],T=0;T<H.length;T++)++l,K2o(H[T]);delete this.listeners[I];this.typeCount_--}return l};
UX.prototype.getListener=function(V,l,I,H){V=this.listeners[V.toString()];var T=-1;V&&(T=jg0(V,l,I,H));return T>-1?V[T]:null};
UX.prototype.hasListener=function(V,l){var I=V!==void 0,H=I?V.toString():"",T=l!==void 0;return _.EL.some(this.listeners,function(x){for(var n=0;n<x.length;++n)if(!(I&&x[n].type!=H||T&&x[n].capture!=l))return!0;return!1})};
var jg0=function(V,l,I,H){for(var T=0;T<V.length;++T){var x=V[T];if(!x.removed&&x.listener==l&&x.capture==!!I&&x.handler==H)return T}return-1};var L23,ePN,kPb,XNB,zPo,nt,$7,rHB,yHb,tPo,z1,GP3,F2w;L23="closure_lm_"+(Math.random()*1E6|0);ePN={};kPb=0;_.NR=function(V,l,I,H,T){if(H&&H.once)return nt(V,l,I,H,T);if(Array.isArray(l)){for(var x=0;x<l.length;x++)_.NR(V,l[x],I,H,T);return null}I=F2w(I);return Xt(V)?V.listen(l,I,_.m3(H)?!!H.capture:!!H,T):XNB(V,l,I,!1,H,T)};
XNB=function(V,l,I,H,T,x){if(!l)throw Error("za");var n=_.m3(T)?!!T.capture:!!T,w=z1(V);w||(V[L23]=w=new UX(V));I=w.add(l,I,H,n,x);if(I.proxy)return I;H=zPo();I.proxy=H;H.src=V;H.listener=I;if(V.addEventListener)_.St3||(T=n),T===void 0&&(T=!1),V.addEventListener(l.toString(),H,T);else if(V.attachEvent)V.attachEvent(yHb(l.toString()),H);else if(V.addListener&&V.removeListener)V.addListener(H);else throw Error("Aa");kPb++;return I};
zPo=function(){var V=tPo,l=function(I){return V.call(l.src,l.listener,I)};
return l};
nt=function(V,l,I,H,T){if(Array.isArray(l)){for(var x=0;x<l.length;x++)nt(V,l[x],I,H,T);return null}I=F2w(I);return Xt(V)?V.listenOnce(l,I,_.m3(H)?!!H.capture:!!H,T):XNB(V,l,I,!0,H,T)};
_.y$=function(V,l,I,H,T){if(Array.isArray(l))for(var x=0;x<l.length;x++)_.y$(V,l[x],I,H,T);else H=_.m3(H)?!!H.capture:!!H,I=F2w(I),Xt(V)?V.unlisten(l,I,H,T):V&&(V=z1(V))&&(l=V.getListener(l,I,H,T))&&$7(l)};
$7=function(V){if(typeof V==="number"||!V||V.removed)return!1;var l=V.src;if(Xt(l))return YLa(l.eventTargetListeners_,V);var I=V.type,H=V.proxy;l.removeEventListener?l.removeEventListener(I,H,V.capture):l.detachEvent?l.detachEvent(yHb(I),H):l.addListener&&l.removeListener&&l.removeListener(H);kPb--;(I=z1(l))?(YLa(I,V),I.typeCount_==0&&(I.src=null,l[L23]=null)):K2o(V);return!0};
rHB=function(V,l,I,H,T){I=F2w(I);H=!!H;return Xt(V)?V.getListener(l,I,H,T):V?(V=z1(V))?V.getListener(l,I,H,T):null:null};
yHb=function(V){return V in ePN?ePN[V]:ePN[V]="on"+V};
tPo=function(V,l){if(V.removed)V=!0;else{l=new _.Ft(l,this);var I=V.listener,H=V.handler||V.src;V.callOnce&&$7(V);V=I.call(H,l)}return V};
z1=function(V){V=V[L23];return V instanceof UX?V:null};
GP3="__closure_events_fn_"+(Math.random()*1E9>>>0);F2w=function(V){if(typeof V==="function")return V;V[GP3]||(V[GP3]=function(l){return V.handleEvent(l)});
return V[GP3]};_.tm=function(){_.XG.call(this);this.eventTargetListeners_=new UX(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Uk(_.tm,_.XG);_.tm.prototype[d3a]=!0;_.B=_.tm.prototype;_.B.setParentEventTarget=function(V){this.parentEventTarget_=V};
_.B.addEventListener=function(V,l,I,H){_.NR(this,V,l,I,H)};
_.B.removeEventListener=function(V,l,I,H){_.y$(this,V,l,I,H)};
_.B.dispatchEvent=function(V){var l,I=this.parentEventTarget_;if(I)for(l=[];I;I=I.parentEventTarget_)l.push(I);I=this.actualEventTarget_;var H=V.type||V;if(typeof V==="string")V=new _.kL(V,I);else if(V instanceof _.kL)V.target=V.target||I;else{var T=V;V=new _.kL(H,I);_.EL.extend(V,T)}T=!0;var x;if(l)for(x=l.length-1;!V.propagationStopped_&&x>=0;x--){var n=V.currentTarget=l[x];T=Ep3(n,H,!0,V)&&T}V.propagationStopped_||(n=V.currentTarget=I,T=Ep3(n,H,!0,V)&&T,V.propagationStopped_||(T=Ep3(n,H,!1,V)&&
T));if(l)for(x=0;!V.propagationStopped_&&x<l.length;x++)n=V.currentTarget=l[x],T=Ep3(n,H,!1,V)&&T;return T};
_.B.disposeInternal=function(){_.tm.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.B.listen=function(V,l,I,H){return this.eventTargetListeners_.add(String(V),l,!1,I,H)};
_.B.listenOnce=function(V,l,I,H){return this.eventTargetListeners_.add(String(V),l,!0,I,H)};
_.B.unlisten=function(V,l,I,H){return this.eventTargetListeners_.remove(String(V),l,I,H)};
_.B.removeAllListeners=function(V){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(V):0};
var Ep3=function(V,l,I,H){l=V.eventTargetListeners_.listeners[String(l)];if(!l)return!0;l=l.concat();for(var T=!0,x=0;x<l.length;++x){var n=l[x];if(n&&!n.removed&&n.capture==I){var w=n.listener,N=n.handler||n.src;n.callOnce&&YLa(V.eventTargetListeners_,n);T=w.call(N,H)!==!1&&T}}return T&&!H.defaultPrevented};
_.tm.prototype.getListener=function(V,l,I,H){return this.eventTargetListeners_.getListener(String(V),l,I,H)};
_.tm.prototype.hasListener=function(V,l){return this.eventTargetListeners_.hasListener(V!==void 0?String(V):void 0,l)};var rR=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(V){return V&&AsyncContext.Snapshot.wrap(V)}:function(V){return V};var JHb=function(V,l){this.create_=V;this.reset_=l;this.occupants_=0;this.JSC$7624_head_=null};
JHb.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var V=this.JSC$7624_head_;this.JSC$7624_head_=V.next;V.next=null}else V=this.create_();return V};
JHb.prototype.put=function(V){this.reset_(V);this.occupants_<100&&(this.occupants_++,V.next=this.JSC$7624_head_,this.JSC$7624_head_=V)};var opo=function(){this.workTail_=this.workHead_=null};
opo.prototype.add=function(V,l){var I=c6y.get();I.set(V,l);this.workTail_?this.workTail_.next=I:this.workHead_=I;this.workTail_=I};
opo.prototype.remove=function(){var V=null;this.workHead_&&(V=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),V.next=null);return V};
var c6y=new JHb(function(){return new hPa},function(V){return V.reset()}),hPa=function(){this.next=this.scope=this.fn=null};
hPa.prototype.set=function(V,l){this.fn=V;this.scope=l;this.next=null};
hPa.prototype.reset=function(){this.next=this.scope=this.fn=null};var P43,W_1,Qwq,D3v;W_1=!1;Qwq=new opo;_.G1=function(V,l){P43||D3v();W_1||(P43(),W_1=!0);Qwq.add(V,l)};
D3v=function(){var V=Promise.resolve(void 0);P43=function(){V.then(bsK)}};var ZGw=function(V){V.prototype.$goog_Thenable=!0},SLa=function(V){if(!V)return!1;
try{return!!V.$goog_Thenable}catch(l){return!1}};var RPB,QgN,cHa,bGi,qLN,MPN,umZ,C4N,m3N,f3N,MVJ;_.UZ=function(V,l){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(V!=_.XX)try{var I=this;V.call(l,function(H){I.resolve_(2,H)},function(H){I.resolve_(3,H)})}catch(H){this.resolve_(3,H)}};
RPB=function(){this.next=this.context=this.JSC$7635_onRejected=this.JSC$7635_onFulfilled=this.child=null;this.always=!1};
RPB.prototype.reset=function(){this.context=this.JSC$7635_onRejected=this.JSC$7635_onFulfilled=this.child=null;this.always=!1};
QgN=new JHb(function(){return new RPB},function(V){V.reset()});
cHa=function(V,l,I){var H=QgN.get();H.JSC$7635_onFulfilled=V;H.JSC$7635_onRejected=l;H.context=I;return H};
_.w6=function(V){if(V instanceof _.UZ)return V;var l=new _.UZ(_.XX);l.resolve_(2,V);return l};
_.bK=function(V){return new _.UZ(function(l,I){I(V)})};
bGi=function(V,l,I){W2N(V,l,I,null)||_.G1(_.kB(l,V))};
_.ER=function(V){return new _.UZ(function(l,I){var H=V.length,T=[];if(H)for(var x=function(L,e){H--;T[L]=e;H==0&&l(T)},n=function(L){I(L)},w,N=0;N<V.length;N++)w=V[N],bGi(w,_.kB(x,N),n);
else l(T)})};
qLN=function(V){return new _.UZ(function(l){var I=V.length,H=[];if(I)for(var T=function(w,N,L){I--;H[w]=N?{fulfilled:!0,value:L}:{fulfilled:!1,reason:L};I==0&&l(H)},x,n=0;n<V.length;n++)x=V[n],bGi(x,_.kB(T,n,!0),_.kB(T,n,!1));
else l(H)})};
MPN=function(V){return new _.UZ(function(l,I){var H=V.length,T=[];if(H)for(var x=function(L){l(L)},n=function(L,e){H--;
T[L]=e;H==0&&I(T)},w,N=0;N<V.length;N++)w=V[N],bGi(w,x,_.kB(n,N));
else l(void 0)})};
_.QN=function(){var V,l,I=new _.UZ(function(H,T){V=H;l=T});
return new sgN(I,V,l)};
_.UZ.prototype.then=function(V,l,I){return pNZ(this,rR(typeof V==="function"?V:null),rR(typeof l==="function"?l:null),I)};
ZGw(_.UZ);umZ=function(V,l,I,H){AHW(V,cHa(l||_.XX,I||null,H))};
_.Jm=function(V,l){l=rR(l);l=cHa(l,l);l.always=!0;AHW(V,l);return V};
_.UZ.prototype.finally=function(V){var l=this;V=rR(V);return new Promise(function(I,H){umZ(l,function(T){V();I(T)},function(T){V();
H(T)})})};
_.UZ.prototype.thenCatch=function(V,l){return pNZ(this,null,rR(V),l)};
_.UZ.prototype.catch=_.UZ.prototype.thenCatch;_.UZ.prototype.cancel=function(V){if(this.state_==0){var l=new _.WU(V);_.G1(function(){vpa(this,l)},this)}};
var vpa=function(V,l){if(V.state_==0)if(V.parent_){var I=V.parent_;if(I.callbackEntries_){for(var H=0,T=null,x=null,n=I.callbackEntries_;n&&(n.always||(H++,n.child==V&&(T=n),!(T&&H>1)));n=n.next)T||(x=n);T&&(I.state_==0&&H==1?vpa(I,l):(x?(H=x,H.next==I.callbackEntriesTail_&&(I.callbackEntriesTail_=H),H.next=H.next.next):OGZ(I),C4N(I,T,3,l)))}V.parent_=null}else V.resolve_(3,l)},AHW=function(V,l){V.callbackEntries_||V.state_!=2&&V.state_!=3||a3N(V);
V.callbackEntriesTail_?V.callbackEntriesTail_.next=l:V.callbackEntries_=l;V.callbackEntriesTail_=l},pNZ=function(V,l,I,H){var T=cHa(null,null,null);
T.child=new _.UZ(function(x,n){T.JSC$7635_onFulfilled=l?function(w){try{var N=l.call(H,w);x(N)}catch(L){n(L)}}:x;
T.JSC$7635_onRejected=I?function(w){try{var N=I.call(H,w);N===void 0&&w instanceof _.WU?n(w):x(N)}catch(L){n(L)}}:n});
T.child.parent_=V;AHW(V,T);return T.child};
_.UZ.prototype.unblockAndFulfill_=function(V){this.state_=0;this.resolve_(2,V)};
_.UZ.prototype.unblockAndReject_=function(V){this.state_=0;this.resolve_(3,V)};
_.UZ.prototype.resolve_=function(V,l){this.state_==0&&(this===l&&(V=3,l=new TypeError("Ba")),this.state_=1,W2N(l,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=l,this.state_=V,this.parent_=null,a3N(this),V!=3||l instanceof _.WU||f3N(this,l)))};
var W2N=function(V,l,I,H){if(V instanceof _.UZ)return umZ(V,l,I,H),!0;if(SLa(V))return V.then(l,I,H),!0;if(_.m3(V))try{var T=V.then;if(typeof T==="function")return gpN(V,T,l,I,H),!0}catch(x){return I.call(H,x),!0}return!1},gpN=function(V,l,I,H,T){var x=!1,n=function(N){x||(x=!0,I.call(T,N))},w=function(N){x||(x=!0,H.call(T,N))};
try{l.call(V,n,w)}catch(N){w(N)}},a3N=function(V){V.executing_||(V.executing_=!0,_.G1(V.executeCallbacks_,V))},OGZ=function(V){var l=null;
V.callbackEntries_&&(l=V.callbackEntries_,V.callbackEntries_=l.next,l.next=null);V.callbackEntries_||(V.callbackEntriesTail_=null);return l};
_.UZ.prototype.executeCallbacks_=function(){for(var V;V=OGZ(this);)C4N(this,V,this.state_,this.result_);this.executing_=!1};
C4N=function(V,l,I,H){if(I==3&&l.JSC$7635_onRejected&&!l.always)for(;V&&V.hadUnhandledRejection_;V=V.parent_)V.hadUnhandledRejection_=!1;if(l.child)l.child.parent_=null,m3N(l,I,H);else try{l.always?l.JSC$7635_onFulfilled.call(l.context):m3N(l,I,H)}catch(T){MVJ.call(null,T)}QgN.put(l)};
m3N=function(V,l,I){l==2?V.JSC$7635_onFulfilled.call(V.context,I):V.JSC$7635_onRejected&&V.JSC$7635_onRejected.call(V.context,I)};
f3N=function(V,l){V.hadUnhandledRejection_=!0;_.G1(function(){V.hadUnhandledRejection_&&MVJ.call(null,l)})};
MVJ=$T;_.WU=function(V){_.I1.call(this,V)};
_.Uk(_.WU,_.I1);_.WU.prototype.name="cancel";var sgN=function(V,l,I){this.promise=V;this.resolve=l;this.reject=I};var om;_.m4=function(V,l){_.tm.call(this);this.JSC$7647_interval_=V||1;this.timerObject_=l||_.nK;this.boundTick_=(0,_.zN)(this.tick_,this);this.last_=_.xv()};
_.Uk(_.m4,_.tm);_.B=_.m4.prototype;_.B.enabled=!1;_.B.JSC$7649_timer_=null;_.B.setInterval=function(V){this.JSC$7647_interval_=V;this.JSC$7649_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7649_timer_&&this.stop()};
_.B.tick_=function(){if(this.enabled){var V=_.xv()-this.last_;V>0&&V<this.JSC$7647_interval_*.8?this.JSC$7649_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7647_interval_-V):(this.JSC$7649_timer_&&(this.timerObject_.clearTimeout(this.JSC$7649_timer_),this.JSC$7649_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.B.start=function(){this.enabled=!0;this.JSC$7649_timer_||(this.JSC$7649_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7647_interval_),this.last_=_.xv())};
_.B.stop=function(){this.enabled=!1;this.JSC$7649_timer_&&(this.timerObject_.clearTimeout(this.JSC$7649_timer_),this.JSC$7649_timer_=null)};
_.B.disposeInternal=function(){_.m4.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
om=function(V,l,I){if(typeof V==="function")I&&(V=(0,_.zN)(V,I));else if(V&&typeof V.handleEvent=="function")V=(0,_.zN)(V.handleEvent,V);else throw Error("Ca");return Number(l)>2147483647?-1:_.nK.setTimeout(V,l||0)};
_.iGa=function(V){var l=null;return(new _.UZ(function(I,H){l=om(function(){I(void 0)},V);
l==-1&&H(Error("Da"))})).thenCatch(function(I){_.nK.clearTimeout(l);
throw I;})};var wo=function(V){_.XG.call(this);this.streamzLogger=V;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7653_flushTimer=new _.m4(this.flushInterval);this.JSC$7653_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.$w(this,this.JSC$7653_flushTimer)};
_.t(wo,_.XG);wo.prototype.sendIsolatedPayload=function(V){this.shouldSendIsolatedPayload=V;this.invocationLimit=1};
var VkN=function(V){V.JSC$7653_flushTimer.enabled||V.JSC$7653_flushTimer.start();V.invocationCount++;V.invocationCount>=V.invocationLimit&&V.snapshotAndFlush()};
wo.prototype.snapshotAndFlush=function(){var V=this.metricMap.values();V=[].concat(_.oI(V)).filter(function(l){return l.cellMap.size});
V.length&&this.streamzLogger.flush(V,this.shouldSendIsolatedPayload);llb(V);this.invocationCount=0;this.JSC$7653_flushTimer.enabled&&this.JSC$7653_flushTimer.stop()};
wo.prototype.addNewCounter=function(V){var l=_.Q5.apply(1,arguments);this.metricMap.has(V)||this.metricMap.set(V,new npJ(V,l))};
wo.prototype.addNewEventMetric=function(V){var l=_.Q5.apply(1,arguments);this.metricMap.has(V)||this.metricMap.set(V,new $3Z(V,l))};
var Ila=function(V,l){return V.disabledMetrics.has(l)?void 0:V.metricMap.get(l)};
wo.prototype.JSC$7653_incrementCounter=function(V){this.JSC$7653_incrementCounterBy(V,1,_.Q5.apply(1,arguments))};
wo.prototype.JSC$7653_incrementCounterBy=function(V,l){var I=_.Q5.apply(2,arguments),H=Ila(this,V);H&&H instanceof npJ&&(H.JSC$7592_incrementCounterBy(l,I),VkN(this))};
wo.prototype.record=function(V,l){var I=_.Q5.apply(2,arguments),H=Ila(this,V);H&&H instanceof $3Z&&(H.record(l,I),VkN(this))};
var llb=function(V){for(var l=0;l<V.length;l++)V[l].clear()};_.hm=function(V,l,I){I=I===void 0?{}:I;l=Error.call(this,l);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=V;this.metadata=I;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.t(_.hm,Error);_.hm.prototype.toString=function(){var V="RpcError("+(MNq(this.code)||String(this.code))+")";this.message&&(V+=": "+this.message);return V};_.HSi=_.nK.JSON.parse;_.PH=_.nK.JSON.stringify;_.tO=_.nK.JSON.parse;_.ToB=function(V){switch(V){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 BoZ=function(V){switch(V){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var xxa,Uxa=function(){};
_.Uk(Uxa,_.swq);Uxa.prototype.createInstance=function(){return new XMLHttpRequest};
xxa=new Uxa;_.Dx=function(V){_.tm.call(this);this.headers=new Map;this.JSC$7662_xmlHttpFactory_=V||null;this.JSC$7662_active_=!1;this.JSC$7662_xhr_=null;this.JSC$7662_lastUri_="";this.JSC$7662_lastErrorCode_=0;this.JSC$7662_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7662_timeoutId_=null;this.responseType_="";this.JSC$7662_withCredentials_=!1};
_.Uk(_.Dx,_.tm);var nwb=/^https?$/i,$x0=["POST","PUT"],dxN=[],Au3=function(V,l,I,H,T,x,n){var w=new _.Dx;dxN.push(w);l&&w.listen("complete",l);w.listenOnce("ready",w.cleanupSend_);x&&(w.timeoutInterval_=Math.max(0,x));n&&(w.JSC$7662_withCredentials_=n);w.send(V,I,H,T)};
_.Dx.prototype.cleanupSend_=function(){this.dispose();_.A1(dxN,this)};
_.Dx.prototype.send=function(V,l,I,H){if(this.JSC$7662_xhr_)throw Error("Ea`"+this.JSC$7662_lastUri_+"`"+V);l=l?l.toUpperCase():"GET";this.JSC$7662_lastUri_=V;this.JSC$7662_lastError_="";this.JSC$7662_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7662_active_=!0;this.JSC$7662_xhr_=this.createXhr();this.JSC$7662_xhr_.onreadystatechange=rR((0,_.zN)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7662_xhr_.open(l,String(V),!0),this.inOpen_=!1}catch(n){wv0(this,n);return}V=I||"";I=new Map(this.headers);
if(H)if(Object.getPrototypeOf(H)===Object.prototype)for(var T in H)I.set(T,H[T]);else if(typeof H.keys==="function"&&typeof H.get==="function"){T=_.U(H.keys());for(var x=T.next();!x.done;x=T.next())x=x.value,I.set(x,H.get(x))}else throw Error("Fa`"+String(H));H=Array.from(I.keys()).find(function(n){return"content-type"==n.toLowerCase()});
T=_.nK.FormData&&V instanceof _.nK.FormData;!_.Mq($x0,l)||H||T||I.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");l=_.U(I);for(H=l.next();!H.done;H=l.next())I=_.U(H.value),H=I.next().value,I=I.next().value,this.JSC$7662_xhr_.setRequestHeader(H,I);this.responseType_&&(this.JSC$7662_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7662_xhr_&&this.JSC$7662_xhr_.withCredentials!==this.JSC$7662_withCredentials_&&(this.JSC$7662_xhr_.withCredentials=this.JSC$7662_withCredentials_);
try{this.JSC$7662_timeoutId_&&(clearTimeout(this.JSC$7662_timeoutId_),this.JSC$7662_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7662_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7662_xhr_.send(V),this.inSend_=!1}catch(n){wv0(this,n)}};
_.Dx.prototype.createXhr=function(){return this.JSC$7662_xmlHttpFactory_?this.JSC$7662_xmlHttpFactory_.createInstance():xxa.createInstance()};
_.Dx.prototype.timeout_=function(){typeof CqJ!="undefined"&&this.JSC$7662_xhr_&&(this.JSC$7662_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7662_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var wv0=function(V,l){V.JSC$7662_active_=!1;V.JSC$7662_xhr_&&(V.inAbort_=!0,V.JSC$7662_xhr_.abort(),V.inAbort_=!1);V.JSC$7662_lastError_=l;V.JSC$7662_lastErrorCode_=5;Noi(V);KFb(V)},Noi=function(V){V.errorDispatched_||(V.errorDispatched_=!0,V.dispatchEvent("complete"),V.dispatchEvent("error"))};
_.Dx.prototype.abort=function(V){this.JSC$7662_xhr_&&this.JSC$7662_active_&&(this.JSC$7662_active_=!1,this.inAbort_=!0,this.JSC$7662_xhr_.abort(),this.inAbort_=!1,this.JSC$7662_lastErrorCode_=V||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),KFb(this))};
_.Dx.prototype.disposeInternal=function(){this.JSC$7662_xhr_&&(this.JSC$7662_active_&&(this.JSC$7662_active_=!1,this.inAbort_=!0,this.JSC$7662_xhr_.abort(),this.inAbort_=!1),KFb(this,!0));_.Dx.superClass_.disposeInternal.call(this)};
_.Dx.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)j8J(this);else this.onReadyStateChangeEntryPoint_()};
_.Dx.prototype.onReadyStateChangeEntryPoint_=function(){j8J(this)};
var j8J=function(V){if(V.JSC$7662_active_&&typeof CqJ!="undefined")if(V.inSend_&&_.Zx(V)==4)setTimeout(V.onReadyStateChange_.bind(V),0);else if(V.dispatchEvent("readystatechange"),V.isComplete()){V.JSC$7662_active_=!1;try{if(V.isSuccess())V.dispatchEvent("complete"),V.dispatchEvent("success");else{V.JSC$7662_lastErrorCode_=6;try{var l=_.Zx(V)>2?V.JSC$7662_xhr_.statusText:""}catch(I){l=""}V.JSC$7662_lastError_=l+" ["+V.getStatus()+"]";Noi(V)}}finally{KFb(V)}}},KFb=function(V,l){if(V.JSC$7662_xhr_){V.JSC$7662_timeoutId_&&
(clearTimeout(V.JSC$7662_timeoutId_),V.JSC$7662_timeoutId_=null);
var I=V.JSC$7662_xhr_;V.JSC$7662_xhr_=null;l||V.dispatchEvent("ready");try{I.onreadystatechange=null}catch(H){}}};
_.Dx.prototype.isActive=function(){return!!this.JSC$7662_xhr_};
_.Dx.prototype.isComplete=function(){return _.Zx(this)==4};
_.Dx.prototype.isSuccess=function(){var V=this.getStatus(),l;if(!(l=BoZ(V))){if(V=V===0)V=wYw(String(this.JSC$7662_lastUri_)),V=!nwb.test(V);l=V}return l};
_.Zx=function(V){return V.JSC$7662_xhr_?V.JSC$7662_xhr_.readyState:0};
_.B=_.Dx.prototype;_.B.getStatus=function(){try{return _.Zx(this)>2?this.JSC$7662_xhr_.status:-1}catch(V){return-1}};
_.B.getResponseText=function(){try{return this.JSC$7662_xhr_?this.JSC$7662_xhr_.responseText:""}catch(V){return""}};
_.B.getResponse=function(){try{if(!this.JSC$7662_xhr_)return null;if("response"in this.JSC$7662_xhr_)return this.JSC$7662_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7662_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7662_xhr_)return this.JSC$7662_xhr_.mozResponseArrayBuffer}return null}catch(V){return null}};
_.B.getAllResponseHeaders=function(){return this.JSC$7662_xhr_&&_.Zx(this)>=2?this.JSC$7662_xhr_.getAllResponseHeaders()||"":""};
_.B.getLastError=function(){return typeof this.JSC$7662_lastError_==="string"?this.JSC$7662_lastError_:String(this.JSC$7662_lastError_)};var lYJ=function(){};
lYJ.prototype.send=function(V,l,I){l=l===void 0?function(){}:l;
I=I===void 0?function(){}:I;
Au3(V.url,function(H){H=H.target;H.isSuccess()?l(H.getResponseText()):I(H.getStatus())},V.requestType,V.body,V.requestHeaders,V.timeoutMillis,V.withCredentials)};
lYJ.prototype.getTransmissionType=function(){return 1};var YX3=function(V,l){this.logger=V;this.event=l;this.startTime=Nx()};
YX3.prototype.done=function(){this.logger.yJ(this.event,Nx()-this.startTime)};
var S3=function(){xL.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.t(S3,xL);var Rm=function(V,l,I){var H=Nx();l=l();V.yJ(I,Nx()-H);return l},Ul1=function(){S3.apply(this,arguments)};
_.t(Ul1,S3);_.B=Ul1.prototype;_.B.npi=function(){};
_.B.xf=function(){};
_.B.yJ=function(){};
_.B.logError=function(){};
_.B.wt=function(){};
_.B.rGi=function(){};
_.B.tRF=function(){};
_.B.jgk=function(){};
_.B.gVk=function(){};
var LFN=function(V){S3.call(this);var l=this;this.logger=V;this.TEST_ONLY={zzW:function(){return l.logger},
getExperimentIds:function(){return l.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void l.logger.dispose()})};
_.t(LFN,S3);_.B=LFN.prototype;_.B.update=function(V){this.logger.dispose();this.logger=V};
_.B.xf=function(V){this.logger.xf(V)};
_.B.yJ=function(V,l){this.logger.yJ(V,l)};
_.B.logError=function(V){this.logger.logError(V)};
_.B.wt=function(){this.logger.wt()};
_.B.rGi=function(V){this.logger.rGi(V)};
_.B.tRF=function(V){this.logger.tRF(V)};
_.B.jgk=function(V){this.logger.jgk(V)};
_.B.gVk=function(V){this.logger.gVk(V)};
_.B.npi=function(V){this.logger.npi(V)};
var eT0=function(V,l){_.XG.call(this);var I=this;this.callback=V;this.k4d=l;this.nBN=-l;this.addOnDisposeCallback(function(){return void clearTimeout(I.timer)})};
_.t(eT0,_.XG);var kNa=function(V){if(V.timer===void 0){var l=Math.max(0,V.nBN+V.k4d-Nx());V.timer=setTimeout(function(){try{V.callback()}finally{V.nBN=Nx(),V.timer=void 0}},l)}},FFN=function(V,l){S3.call(this);
this.metrics=V;this.k6=l};
_.t(FFN,S3);_.B=FFN.prototype;_.B.npi=function(V){this.metrics.qKk.record(V,this.k6)};
_.B.xf=function(V){this.metrics.eventCount.increment(V,this.k6)};
_.B.yJ=function(V,l){this.metrics.eud.record(l,V,this.k6)};
_.B.logError=function(V){this.metrics.errorCount.increment(V,this.k6)};
_.B.rGi=function(V){this.metrics.c4y.increment(V,this.k6)};
_.B.tRF=function(V){this.metrics.dMJ.increment(V,this.k6)};
_.B.jgk=function(V){this.metrics.vjk.increment(V,this.k6)};
var ndt=function(V,l){l=l===void 0?[]:l;var I={k6:V.k6||"_",jTI:V.jTI||[],erv:V.erv|0,destinationUrl:V.destinationUrl,nCG:V.nCG||function(){},
x3F:V.x3F||function(x,n){return xlt(x,n,I.nCG,I.destinationUrl)}},H=I.x3F("49",I.jTI.concat(l));
FFN.call(this,gGW(H),I.k6);var T=this;this.xxT=l;this.TEST_ONLY={getExperimentIds:function(){return T.options.jTI.concat(T.xxT).sort(function(x,n){return x-n})}};
this.options=I;this.service=H;this.vW9=!V.x3F;this.flushDebouncer=new eT0(function(){return void T.service.snapshotAndFlush()},I.erv);
this.addOnDisposeCallback(function(){T.flushDebouncer.dispose();T.vW9&&T.service.dispose()})};
_.t(ndt,FFN);ndt.prototype.gVk=function(V){var l=this;this.flushDebouncer.dispose();this.vW9&&this.service.dispose();this.service=this.options.x3F("49",this.options.jTI.concat(V));this.flushDebouncer=new eT0(function(){return void l.service.snapshotAndFlush()},this.options.erv);
this.metrics=gGW(this.service);this.xxT=V};
ndt.prototype.wt=function(){kNa(this.flushDebouncer)};var Gtq=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Gtq,_.mV);_.EmN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(_.EmN,_.mV);var V3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V,0,V3.messageId)};
_.t(V3,_.mV);var Xv3=_.EnT(V3);V3.messageId="bfkj";var r6t=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(r6t,_.mV);var zTa=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(zTa,_.mV);var yKi=_.wp(zTa);_.IQ=function(){var V=this;this.promise=new Promise(function(l,I){V.resolve=l;V.reject=I})};_.Q$=function(V){_.XG.call(this);var l=this;this.dqY=Math.floor(Math.random()*200);this.esi=new zTa;if("challenge"in V&&Xv3(V.challenge)){var I=_.Rt(V.challenge,4,void 0,Pw);var H=_.Rt(V.challenge,5,void 0,Pw);_.Rt(V.challenge,7,void 0,Pw)&&(this.esi=yKi(_.Rt(V.challenge,7,void 0,Pw)))}else I=V.program,H=V.globalName;this.addOnDisposeCallback(function(){var E,D,Z;return _.d(function(S){if(S.nextAddress==1)return _.K(S,l.osX,2);E=S.yieldResult;D=E.isf;(Z=D)==null||Z();_.FU(S)})});
this.logger=$lf(V.nx||{},this.esi,V.l2K);_.$w(this,this.logger);var T=new _.IQ;this.osX=T.promise;this.logger.xf("t");var x=this.logger.share(),n=new YX3(x,"t"),w=function(E,D,Z,S){if(!l.logger.isDisposed()){var p="k";D?p="h":Z&&(p="u");p!=="k"?S!==0&&(l.logger.xf(p),l.logger.yJ(p,E)):l.dqY<=0?(l.logger.xf(p),l.logger.yJ(p,E),l.dqY=Math.floor(Math.random()*200)):l.dqY--}},N=function(E,D,Z,S){Promise.resolve().then(function(){n.done();
x.wt();x.dispose();T.resolve({oK2:E,isf:D,jRE:Z,mWF:S})})};
if(!_.nK[H])throw this.logger.logError(25),Error("Ga");if(!_.nK[H].a)throw this.logger.logError(26),Error("Ha");try{var L=_.nK[H].a;H=[];for(var e=[],k=GYg(this.esi),X=0;X<k.length;X++)H.push(k[X]),e.push(1);var r=EG1(this.esi);for(k=0;k<r.length;k++)H.push(r[k]),e.push(2);this.plp=_.U(L(I,N,!0,V.lmC,w,[H,e],_.Rt(this.esi,5))).next().value;this.uGF=T.promise.then(function(){})}catch(E){throw this.logger.logError(28),E;
}};
_.t(_.Q$,_.XG);_.Q$.prototype.snapshot=function(V){if(this.isDisposed())throw Error("Ia");this.logger.xf("n");var l=this.logger.share();return this.osX.then(function(I){var H=I.oK2;return new Promise(function(T){var x=new YX3(l,"n");H(function(n){x.done();l.npi(n.length);l.wt();l.dispose();T(n)},[V.vo,
V.mfI,V.dzd,V.qtp])})})};
_.tkv=function(V,l){if(V.isDisposed())throw Error("Ia");V.logger.xf("n");var I=Rm(V.logger,function(){return V.plp([l.vo,l.mfI,l.dzd,l.qtp])},"n");
V.logger.npi(I.length);V.logger.wt();return I};
_.Q$.prototype.j1X=function(V){this.osX.then(function(l){var I;(I=l.jRE)==null||I(V)})};
_.Q$.prototype.kEX=function(V,l){return this.osX.then(function(I){var H;return(H=I.mWF)==null?void 0:H(V,l,!1)})};
_.Q$.prototype.q1B=function(){return this.logger.share()};var rKb=function(){this.tnf={};this.pfN=null},GN0=function(){rKb.instance||(rKb.instance=new rKb);
return rKb.instance},JKa=function(V,l){return EwE(V,_.fA(l,Gtq,1,Pw),_.fA(l,_.EmN,2,Pw),_.Rt(l,3,void 0,Pw))},EwE=function(V,l,I,H){if(!l&&!I)return Promise.resolve();
if(!H)return K6J(l,I);var T;(T=V.tnf)[H]||(T[H]=new Promise(function(x,n){K6J(l,I).then(function(){V.pfN=H;x()},function(w){delete V.tnf[H];
n(w)})}));
return V.tnf[H]};var owa=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(owa,_.mV);var hTW=function(V,l){return _.lR(V,1,l)},POZ=function(V,l){return _.lR(V,2,l)};var cH=function(V){_.XG.call(this);var l=this;this.options=V;this.gWY=new _.IQ;this.uGF=this.gWY.promise;this.rIv=new _.IQ;this.omk=1;this.mhG=new _.IQ;this.fqG=[];this.sAv=V.sAv||function(){};
this.logger=new LFN($lf(V.nx||{}));DxW(this,V.mY,V.sH2,V.tFS,V.lUE,Object.assign({},ZSE,V.gFv||{}));this.addOnDisposeCallback(function(){return void SXN(l)})};
_.t(cH,_.XG);cH.prototype.snapshot=function(V){var l=this;return _.d(function(I){switch(I.nextAddress){case 1:if(l.isDisposed())throw Error("Ia");if(l.xq||l.mpT){I.jumpTo(2);break}return _.K(I,l.rIv.promise,2);case 2:if(!l.xq){I.jumpTo(4);break}return _.K(I,l.xq.snapshot(V),5);case 5:return I.return(I.yieldResult);case 4:throw l.mpT;}})};
var RT0=function(V){var l;return _.d(function(I){if(V.isDisposed())throw Error("Ia");(l=V.jw)!=null&&(l.endTimeMs=0,l.resolver(1));return _.K(I,V.mhG.promise,0)})},SXN=function(V){V.mpT=Error("Ka");
V.rIv.resolve();J6W(V.gWY.promise);V.gWY.reject(Error("Ka"));V.logger.dispose();Promise.all(V.fqG).then(function(){var I;return _.d(function(H){(I=V.xq)==null||I.dispose();V.xq=void 0;_.FU(H)})});
V.fqG=[];var l;(l=V.jw)!=null&&(l.endTimeMs=0,l.resolver(1));J6W(V.mhG.promise);V.mhG.reject(Error("Ka"))};
cH.prototype.j1X=function(V){var l,I;(l=this.xq)==null||(I=l.j1X)==null||I.call(l,V)};
cH.prototype.kEX=function(V,l){var I,H,T;return(T=(I=this.xq)==null?void 0:(H=I.kEX)==null?void 0:H.call(I,V,l))!=null?T:Promise.resolve()};
var Q8Z=function(V,l){var I=V.sAv;V.sAv=function(){I();l()}},cK3=function(V,l){V.isDisposed()||(V.xq=l,V.logger.update(l.q1B()),V.rIv.resolve(),V.gWY.resolve(void 0),V.sAv())};
cH.prototype.handleError=function(V){if(!this.isDisposed()){this.mpT=V;this.rIv.resolve();var l,I;(I=(l=this.options).jk2)==null||I.call(l,V)}};
var WFW=function(V,l){l&&(Promise.all(V.fqG).then(function(){return void l.dispose()}),V.fqG=[])},WH=function(V,l){V.omk=l;
var I,H;(H=(I=V.options).kEW)==null||H.call(I,l)},bSW=function(V){V.isDisposed()||(V.mhG.resolve(),V.mhG=new _.IQ)},DxW=function(V,l,I,H,T,x){H=H===void 0?GN0():H;
T=T===void 0?Promise.resolve(void 0):T;var n,w,N,L,e,k,X,r,E,D,Z,S;_.d(function(p){switch(p.nextAddress){case 1:return _.K(p,0,3);case 3:w=null;if(!n){p.jumpTo(6);break}WH(V,7);_.jd(p,7);return _.K(p,ek(n.snapshot({}),x.kAl,function(){return Promise.resolve("E:CTO")}),9);
case 9:w=p.yieldResult;_.Rv(p,6);break;case 7:_.kE(p),w="E:UCE";case 6:N=void 0,L=n?x.lMC:x.gJj,e=new xw(L,x.ks2,x.fMj,x.qbV),k=1;case 10:if(!(k<=x.maxAttempts)){p.jumpTo(12);break}if(k===1){p.jumpTo(13);break}WH(V,0);V.jw=new qXW(e.getValue(),x.yWg,x.bel);return _.K(p,V.jw.promise,14);case 14:X=p.yieldResult,V.jw=void 0,X===1?(k=1,e.reset()):gEN(e);case 13:_.jd(p,15);r=void 0;if(I){r=I;p.jumpTo(17);break}WH(V,5);E=H.pfN;return _.K(p,ek(Mk3(l,E,w),x.fud,function(){return Promise.reject(Error("La"))}),
18);
case 18:r=p.yieldResult;case 17:return WH(V,3),_.K(p,ek(JKa(H,r),x.a7J,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return WH(V,8),_.K(p,T,20);case 20:return D=new _.Q$({challenge:r,nx:V.options.nx,lmC:V.options.lmC}),_.K(p,ek(D.uGF,x.zgY,function(){return Promise.reject(Error("Na"))}),21);
case 21:N=D;p.jumpTo(12);break;case 15:Z=_.kE(p),V.handleError(Z),bSW(V);case 11:k++;p.jumpTo(10);break;case 12:if(V.isDisposed()){p.jumpTo(5);break}N&&(I=void 0,WFW(V,n),n=N,cK3(V,N),bSW(V));WH(V,2);V.jw=new qXW(x.bxW,x.yWg,x.bel);return _.K(p,V.jw.promise,22);case 22:V.jw=void 0;if(V.isDisposed()){p.jumpTo(5);break}p.jumpTo(3);break;case 5:(S=n)==null||S.dispose(),_.FU(p)}})};
cH.prototype.q1B=function(){return this.logger.share()};
var ZSE={bxW:432E5,yWg:3E5,bel:10,kAl:1E4,fud:3E4,a7J:3E4,zgY:6E4,gJj:1E3,lMC:6E4,ks2:6E5,fMj:.25,qbV:2,maxAttempts:10},qXW=function(V,l,I){var H=this;this.endTimeMs=Date.now()+V;this.promise=new Promise(function(x){H.resolver=x});
var T=function(){var x=H.endTimeMs-Date.now();x<=I?H.resolver(0):setTimeout(T,Math.min(x,l))};
T()};var s8b,L6t=(s8b=Math.imul)!=null?s8b:function(V,l){return V*l|0},kw=[196,
200,224,18],bU=function(V,l,I){I=I===void 0?[]:I;this.maxItems=V;this.sH=l===void 0?0:l;this.i8=I},pvN=function(V){var l=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!l)return new bU(V);var I=l.split(",");if(I.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new bU(V);l=I.slice(1);l.length===1&&l[0]===""&&(l=[]);I=Number(I[0]);return isNaN(I)||I<0||I>l.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new bU(V)):new bU(V,I,l)};
bU.prototype.serialize=function(){return String(this.sH)+","+this.i8.join()};
bU.prototype.insert=function(V,l){var I=void 0;if(this.i8[this.sH]!==V){var H=this.i8.indexOf(V);H!==-1?(this.i8.splice(H,1),H<this.sH&&this.sH--,this.i8.splice(this.sH,0,V)):(I=this.i8[this.sH],this.i8[this.sH]=V)}this.sH=(this.sH+1)%this.maxItems;V=jvt("iU5q-!O9@$",this.serialize());I&&V&&l(I);return V};
var AKb=function(V,l){this.logger=l;try{var I=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(H){I=!1}I&&(this.index=pvN(V))},uGE=function(V,l,I,H,T){var x=V.index?Rm(V.logger,function(){return XxK(V.index,kU1(l),I,H,T)},"W"):"u";
V.logger.jgk(x)},vw3=function(V,l,I){var H=_.U(V.index?Rm(V.logger,function(){return zmW(kU1(l),I)},"R"):["u"]),T=H.next().value;
H=H.next().value;V.logger.tRF(T);return H};var OSN={toString:function(V){var l=[],I=0;V-=-2147483648;l[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(V%52);for(V=Math.floor(V/52);V>0;)l[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(V%62),V=Math.floor(V/62);return l.join("")}};var fla=function(V){V=COa(V);for(var l=2654435769,I=2654435769,H=314159265,T=V.length,x=T,n=0,w=function(){l-=I;l-=H;l^=H>>>13;I-=H;I-=l;I^=l<<8;H-=l;H-=I;H^=I>>>13;l-=I;l-=H;l^=H>>>12;I-=H;I-=l;I^=l<<16;H-=l;H-=I;H^=I>>>5;l-=I;l-=H;l^=H>>>3;I-=H;I-=l;I^=l<<10;H-=l;H-=I;H^=I>>>15};x>=12;x-=12,n+=12)l+=alZ(V,n),I+=alZ(V,n+4),H+=alZ(V,n+8),w();
H+=T;switch(x){case 11:H+=V[n+10]<<24;case 10:H+=V[n+9]<<16;case 9:H+=V[n+8]<<8;case 8:I+=V[n+7]<<24;case 7:I+=V[n+6]<<16;case 6:I+=V[n+5]<<8;case 5:I+=V[n+4];case 4:l+=V[n+3]<<24;case 3:l+=V[n+2]<<16;case 2:l+=V[n+1]<<8;case 1:l+=V[n]}w();return OSN.toString(H)},COa=function(V){for(var l=[],I=0;I<V.length;I++)l.push(V.charCodeAt(I));
return l},alZ=function(V,l){return V[l]+(V[l+1]<<8)+(V[l+2]<<16)+(V[l+3]<<24)};var gwo,qI=function(V){_.XG.call(this);this.logger=V;this.jqn=new _.IQ;this[gwo]=this.dispose};
_.t(qI,_.XG);var mxa=function(V,l){var I=setTimeout(function(){V.jqn.resolve()},l);
V.addOnDisposeCallback(function(){return void clearTimeout(I)})};
qI.prototype.zq=function(V,l){var I=this.t1(V);l==null||l(I);return Rm(this.logger,function(){return _.rg(I,2)},this.qFG)};
var iSB=function(V,l,I,H){return Rm(V.logger,function(){return I?V.zq(l,H):V.t1(l,H)},V.vH)};
gwo=Symbol.dispose;var V_J=function(V,l,I,H){qI.call(this,V);this.uU2=l;this.emR=I;this.vH="m";this.qFG="x";this.twg=0;mxa(this,H)};
_.t(V_J,qI);V_J.prototype.t1=function(V,l){var I=this;this.logger.xf(this.vH);++this.twg>=this.emR&&this.jqn.resolve();var H=V();V=Rm(this.logger,function(){return I.uU2(H)},"C");
if(V===void 0)throw new T1(17,"YNJ:Undefined");if(!(V instanceof Uint8Array))throw new T1(18,"ODM:Invalid");l==null||l(V);return V};
var lnZ=function(V,l,I){qI.call(this,V);this.luj=l;this.vH="f";this.qFG="z";mxa(this,I)};
_.t(lnZ,qI);lnZ.prototype.t1=function(){return this.luj};
var Ini=function(V,l,I){qI.call(this,V);this.suV=l;this.vH="w";this.qFG="z";mxa(this,I)};
_.t(Ini,qI);Ini.prototype.t1=function(){var V=this;return Rm(this.logger,function(){return _.TE(V.suV)},"d")};
Ini.prototype.zq=function(){return this.suV};
var HNw=function(V,l){qI.call(this,V);this.error=l;this.vH="e";this.qFG="y"};
_.t(HNw,qI);var TxZ=function(V,l){var I=(l(V.error.message)+":"+l(V.error.stack)).substring(0,2048);l=I.length+1;I=yqg(I);var H=new Uint8Array(4+I.length);H.set([42,l&127|128,l>>7,V.error.code]);H.set(I,4);return H};
HNw.prototype.t1=function(){if(this.nvL)return this.nvL;this.nvL=TxZ(this,function(V){return"_"+fla(V)});
return TxZ(this,function(V){return V})};
var Bxo=function(V,l,I){qI.call(this,V);this.arY=l;this.clientState=I;this.vH="S";this.qFG="q"};
_.t(Bxo,qI);Bxo.prototype.t1=function(){var V=Math.floor(Date.now()/1E3),l=[Math.random()*255,Math.random()*255],I=l.concat([this.arY&255,this.clientState],[V>>24&255,V>>16&255,V>>8&255,V&255]);V=new Uint8Array(2+I.length);V[0]=34;V[1]=I.length;V.set(I,2);I=V.subarray(2);for(var H=l=l.length;H<I.length;++H)I[H]^=I[H%l];this.logger.rGi(this.clientState);return V};var xyi={unC:3E4,lkY:2E4},MI=function(V){_.XG.call(this);var l=this;this.niY=new _.IQ;this.cgk=0;this.pF=void 0;this.state=2;this.wl=V.wl;this.mY=V.mY;this.gFv=Object.assign({},xyi,V.gFv||{});this.logger=V.wl.q1B();var I;this.onError=(I=V.onError)!=null?I:function(){};
this.mZp=V.mZp||!1;if(UyE(V)){var H=this.wl;this.faA=function(){return RT0(H).catch(function(n){n=l.reportError(new T1(l.w6?20:32,"TRG:Disposed",n));l.pF=n;var w;(w=l.w6)==null||w.dispose();l.w6=void 0;l.niY.reject(n)})};
Q8Z(H,function(){return void niZ(l)});
H.omk===2&&niZ(this)}else this.faA=V.aIp,niZ(this);var T=this.logger.share();T.xf("o");var x=new YX3(T,"o");this.niY.promise.then(function(){x.done();T.wt();T.dispose()},function(){return void T.dispose()});
this.addOnDisposeCallback(function(){l.w6?(l.w6.dispose(),l.w6=void 0):l.pF?l.logger.wt():(l.pF=l.reportError(new T1(32,"TNP:Disposed")),l.logger.wt(),l.niY.reject(l.pF))});
_.$w(this,this.logger)};
_.t(MI,_.XG);MI.prototype.eli=function(){return this.niY.promise};
var $yW=function(V,l){if(!(l instanceof T1))if(l instanceof _.hm){var I=Error(l.toString());I.stack=l.stack;l=new T1(11,"EBH:Error",I)}else l=new T1(12,"BSO:Unknown",l);return V.reportError(l)},niZ=function(V){var l,I,H,T,x,n,w,N,L,e,k,X,r,E,D;
return _.d(function(Z){switch(Z.nextAddress){case 1:l=void 0;V.cgk++;I=new _.IQ;V.wl instanceof cH&&V.wl.fqG.push(I.promise);if(!V.mZp){Z.jumpTo(2);break}H=new _.IQ;setTimeout(function(){return void H.resolve()});
return _.K(Z,H.promise,2);case 2:return T=V.logger.share(),_.jd(Z,4,5),V.state=5,x={},n=[],_.K(Z,ek(V.wl.snapshot({vo:x,dzd:n}),V.gFv.lkY,function(){return Promise.reject(new T1(15,"MDA:Timeout"))}),7);
case 7:w=Z.yieldResult;if(V.isDisposed())throw new T1(V.w6?20:32,"MDA:Disposed");N=n[0];V.state=6;return _.K(Z,ek(dyN(V.mY,w),V.gFv.unC,function(){return Promise.reject(new T1(10,"BWB:Timeout"))}),8);
case 8:L=Z.yieldResult;if(V.isDisposed())throw new T1(V.w6?20:32,"BWB:Disposed");V.state=7;l=Rm(T,function(){var p=wTZ(V,L,I,N);p.jqn.promise.then(function(){return void V.faA()});
return p},"i");
case 5:_.YE(Z);T.dispose();_.ed(Z,6);break;case 4:e=_.kE(Z);(k=l)==null||k.dispose();if(!V.pF){X=$yW(V,e);I.resolve();var S;if(S=V.wl instanceof cH&&V.cgk<2)a:if(e instanceof T1)S=e.code!==32&&e.code!==20&&e.code!==10;else{if(e instanceof _.hm)switch(e.code){case 2:case 13:case 14:case 4:break;default:S=!1;break a}S=!0}if(S)return r=(1+Math.random()*.25)*(V.w6?6E4:1E3),E=setTimeout(function(){return void V.faA()},r),V.addOnDisposeCallback(function(){return void clearTimeout(E)}),Z.return();
V.pF=X}T.logError(V.w6?13:14);V.niY.reject(V.pF);return Z.return();case 6:V.state=8,V.cgk=0,(D=V.w6)==null||D.dispose(),V.w6=l,V.niY.resolve(),_.FU(Z)}})},wTZ=function(V,l,I,H){var T=wc1(l,2)*1E3;
if(T<=0)throw new T1(31,"TTM:Invalid");if(_.Rt(l,4))return new Ini(V.logger,_.Rt(l,4),T);if(!wc1(l,3))return new lnZ(V.logger,C0N(_.t3(l,1)),T);if(!H)throw new T1(4,"PMD:Undefined");H=H(C0N(_.t3(l,1)));if(!(H instanceof Function))throw new T1(16,"APF:Failed");V.p8u=Math.floor((Date.now()+T)/1E3);V=new V_J(V.logger,H,wc1(l,3),T);V.addOnDisposeCallback(function(){return void I.resolve()});
return V};
MI.prototype.t1=function(V){return NxZ(this,Object.assign({},V),!1)};
MI.prototype.zq=function(V){return NxZ(this,Object.assign({},V),!0)};
MI.prototype.dop=function(V){if(V>150)return!1;try{return this.cache=new AKb(V,this.logger),!0}catch(l){return this.reportError(new T1(22,"GBJ:init",l)),!1}};
MI.prototype.reportError=function(V){this.logger.logError(V.code);this.onError(V);return V};
var Kmv=function(V,l){l=l instanceof T1?l:new T1(5,"TVD:error",l);return V.reportError(l)},NxZ=function(V,l,I){try{if(V.isDisposed())throw new T1(21,"BNT:disposed");
if(!V.w6&&V.pF)throw V.pF;var H,T;return(T=(H=jxW(V,l,I))!=null?H:YSE(V,l,I))!=null?T:Lm3(V,l,I)}catch(x){if(!l.xHk)throw Kmv(V,x);return esa(V,I,x)}},jxW=function(V,l,I){var H;
return(H=V.w6)==null?void 0:iSB(H,function(){return k0a(V,l)},I,function(T){var x;
if(V.w6 instanceof V_J&&((x=l.eu)==null?0:x.cdY))try{var n;(n=V.cache)==null||uGE(n,k0a(V,l),T,l.eu.b9i,V.p8u-120)}catch(w){V.reportError(new T1(24,"ELX:write",w))}})},YSE=function(V,l,I){var H;
if((H=l.eu)!=null&&H.rOG)try{var T,x=(T=V.cache)==null?void 0:vw3(T,k0a(V,l),l.eu.b9i);return x?I?Rm(V.logger,function(){return _.rg(x,2)},"a"):x:void 0}catch(n){V.reportError(new T1(23,"RXO:read",n))}},Lm3=function(V,l,I){var H={stack:[],
error:void 0,hasError:!1};try{if(!l.iBW)throw new T1(29,"SDF:notready");return iSB(_.QP(H,new Bxo(V.logger,0,V.state)),function(){return k0a(V,l)},I)}catch(T){H.error=T,H.hasError=!0}finally{_.c1(H)}},esa=function(V,l,I){var H={stack:[],
error:void 0,hasError:!1};try{var T=Kmv(V,I);return iSB(_.QP(H,new HNw(V.logger,T)),function(){return[]},l)}catch(x){H.error=x,H.hasError=!0}finally{_.c1(H)}},k0a=function(V,l){return l.yIG?l.yIG:l.vo?Rm(V.logger,function(){return l.yIG=yqg(l.vo)},"c"):[]},UyE=function(V){return Qa(function(l){if(!J2t(l))return!1;
for(var I=_.U(Object.entries(V)),H=I.next();!H.done;H=I.next()){var T=_.U(H.value);H=T.next().value;T=T.next().value;if(!(H in l)){if(T.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!T(l[H]))return!1}return!0})}({wl:function(V){return Qa(function(l){return l instanceof V})}(cH)},"");var X73=function(){var V=_.TR();this.JSC$7801_streamzService=V;V.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Hv("tick"),_.I8("from_st_cookie"))};
X73.prototype.increment=function(V,l){this.JSC$7801_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",V,l)};
var FmW=function(){var V=_.TR();this.JSC$7807_streamzService=V;V.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.TN("status"))};
FmW.prototype.increment=function(V){this.JSC$7807_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",V)};
var XTJ=function(){var V=_.TR();this.JSC$7810_streamzService=V;V.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.TN("stage"),_.I8("is_using_ytd_player"),_.I8("has_expandable_tiles"))};
XTJ.prototype.increment=function(V,l,I){this.JSC$7810_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",V,l,I)};
var zsv=function(){var V=_.TR();this.JSC$7813_streamzService=V;V.addNewCounter("/client_streamz/youtube/web/response_signature",_.TN("check_status"))};
zsv.prototype.increment=function(V){this.JSC$7813_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/web/response_signature",V)};
var y00=function(){var V=_.TR();this.JSC$7816_streamzService=V;V.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.TN("sig"),Hv("de"))};
y00.prototype.increment=function(V,l){this.JSC$7816_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/web/e_sig_log",V,l)};
_.t_0=function(){var V=_.TR();this.JSC$7819_streamzService=V;V.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.TN("action"))};
_.t_0.prototype.increment=function(V){this.JSC$7819_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/web/enforcement_intent",V)};var gQt=function(){var V=_.TR();this.JSC$7822_streamzService=V;V.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.TN("tagname"))};
gQt.prototype.increment=function(V){this.JSC$7822_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",V)};var sR=window;var r0J=(new Date).getTime();var G0a=function(V){this.servicePromise_=V;V.then((0,_.zN)(function(){},this),function(){},this)},Eiw=function(V,l,I){V.servicePromise_.then(function(H){var T=H[l];
if(!T)throw Error("Oa`"+l);return T.apply(H,I)})},hsN=function(V,l,I){for(var H=Array(arguments.length-2),T=2;T<arguments.length;T++)H[T-2]=arguments[T];
T=J0i(V,l).then(function(x){return x.apply(null,H)},function(x){x=Error("Pa`"+l+"`"+V,{cause:x});
delete oiZ[l];return _.bK(x)});
return new G0a(T)},oiZ={},J0i=function(V,l){var I=oiZ[l];
if(I)return I;I=(I=_.SN(l))?_.w6(I):(new _.UZ(function(H,T){var x=(new Pi(document)).createElement("SCRIPT");x.async=!0;_.gp(x,_.Xj(V6b(V)));x.onload=x.onreadystatechange=function(){x.readyState&&x.readyState!="loaded"&&x.readyState!="complete"||H()};
x.onerror=function(n){T(Error("Qa`"+l+"`"+V,{cause:n}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(x)})).then(function(){var H=_.SN(l);
if(!H)throw Error("Ra`"+l+"`"+V);return H});
return oiZ[l]=I};var P$i={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},ZNo=function(){var V=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=tOy(function(){return _.d(function(l){if(l.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?l.return(Promise.resolve()):_.K(l,DyB(V),2);V.rsaForList.length>
0&&document.addEventListener("click",V.requestAccessForHelpPanel);_.FU(l)})});
this.requestAccessForHelpPanel=function(){if(!(V.rsaForPromises.length>0)){for(var l=_.U(V.rsaForList),I=l.next();!I.done;I=l.next()){I=I.value;try{V.rsaForPromises.push(document.requestStorageAccessFor(I))}catch(H){}}Promise.all(V.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){V.reset()})}}};
ZNo.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var DyB=function(V){var l,I,H,T;return _.d(function(x){switch(x.nextAddress){case 1:l=_.U(Object.values(P$i)),I=l.next();case 2:if(I.done){x.jumpTo(0);break}H=I.value;_.jd(x,5);return _.K(x,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:H}),7);case 7:T=x.yieldResult;T.state!=="granted"&&V.rsaForList.push(H);_.Rv(x,3);break;case 5:_.kE(x);x.jumpTo(0);break;case 3:I=l.next(),x.jumpTo(2)}})};(new ZNo).initialize();var SS0=function(V){this.JSC$7836_loader_=V};
SS0.prototype.startHelp=function(V){Eiw(this.JSC$7836_loader_,"startHelp",arguments)};
SS0.prototype.JSC$7838_loadChatSupport=function(V){Eiw(this.JSC$7836_loader_,"loadChatSupport",arguments)};
var Qx3=function(V,l){l=l||{};V=hsN(RsZ,"help.service.Lazy.create",V,{apiKey:l.apiKey||l.apiKey,asxUiUri:l.asxUiUri||l.asxUiUri,environment:l.environment||l.environment,flow:l.flow||l.flow,frdProductData:l.frdProductData||l.frdProductData,frdProductDataSerializedJspb:l.frdProductDataSerializedJspb||l.frdProductDataSerializedJspb,helpCenterPath:l.helpCenterPath||l.helpCenterPath,locale:l.locale||l.locale||"en-US".replace(/-/g,"_"),nonce:l.nonce||l.nonce,productData:l.productData||l.productData,receiverUri:l.receiverUri||
l.receiverUri,renderApiUri:l.renderApiUri||l.renderApiUri,theme:l.theme||l.theme,window:l.window||l.window});return new SS0(V)},RsZ=new D1(j6N,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var c0E=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(c0E,_.mV);var WmW=_.wp(c0E);new Uint8Array([]);_.bNo=new function(V,l,I,H){this.configType=V;this.flagName=I;this.defaultValue=H;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 M_N=function(){this.retriever=_.F().resolve(qSN)};GUg(Node);GUg(Element);var sxb=GUg(HTMLElement);GUg(SVGElement);var pT0,A0a,uU,uk0;pT0=function(V){return typeof V.className=="string"?V.className:V.getAttribute&&V.getAttribute("class")||""};
A0a=function(V){return V.classList?V.classList:pT0(V).match(/\S+/g)||[]};
_.pg=function(V,l){typeof V.className=="string"?V.className=l:V.setAttribute&&V.setAttribute("class",l)};
_.Am=function(V,l){return V.classList?V.classList.contains(l):_.Mq(A0a(V),l)};
_.WX=function(V,l){if(V.classList)V.classList.add(l);else if(!_.Am(V,l)){var I=pT0(V);_.pg(V,I+(I.length>0?" "+l:l))}};
uU=function(V,l){if(V.classList)Array.prototype.forEach.call(l,function(T){_.WX(V,T)});
else{var I={};Array.prototype.forEach.call(A0a(V),function(T){I[T]=!0});
Array.prototype.forEach.call(l,function(T){I[T]=!0});
l="";for(var H in I)l+=l.length>0?" "+H:H;_.pg(V,l)}};
_.QI=function(V,l){V.classList?V.classList.remove(l):_.Am(V,l)&&_.pg(V,Array.prototype.filter.call(A0a(V),function(I){return I!=l}).join(" "))};
uk0=function(V,l){V.classList?Array.prototype.forEach.call(l,function(I){_.QI(V,I)}):_.pg(V,Array.prototype.filter.call(A0a(V),function(I){return!_.Mq(l,I)}).join(" "))};var vib=function(V){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=V.document},anN=function(V,l){ONo(V);
var I=document.createElement("div"),H;(H=l.parentNode)==null||H.insertBefore(I,l);I.tabIndex=0;I.id="fc-focus-trap-pre-div";I=document.createElement("div");var T;(T=l.parentNode)==null||T.insertBefore(I,l.nextSibling);I.tabIndex=0;I.id="fc-focus-trap-post-div";var x=C$N(V,l),n=C$N(V,l,!0);x&&n&&(V.focusChangeHandler=function(){var w=V.document.activeElement;if(w)if(_.R8(l,w))V.previouslyFocusedElement=w;else if(w===V.document.activeElement)switch(V.previouslyFocusedElement){case x:n.focus();V.previouslyFocusedElement=
n;break;default:x.focus(),V.previouslyFocusedElement=x}},V.document.addEventListener("focus",V.focusChangeHandler,!0),V.document.addEventListener("focusin",V.focusChangeHandler))},ONo=function(V){V.focusChangeHandler&&(document.removeEventListener("focus",V.focusChangeHandler,!0),document.removeEventListener("focusin",V.focusChangeHandler),V.focusChangeHandler=null);
var l;(l=document.getElementById("fc-focus-trap-pre-div"))==null||l.remove();var I;(I=document.getElementById("fc-focus-trap-post-div"))==null||I.remove()},fna=function(V,l,I,H,T){I=I===void 0?!0:I;
var x;T=(x=T===void 0?null:T)!=null?x:C$N(V,l,H===void 0?!1:H);T!==null&&(T.focus(),I&&anN(V,l))};
vib.prototype.disableButton=function(V,l){l=l===void 0?null:l;V.disabled=!0;l&&_.WX(V,l)};
var C$N=function(V,l,I){I=I===void 0?!1:I;if(Pig(l)&&!I)return l;var H=I?[].slice.call(l.children,0).reverse():l.children;H=_.U(H);for(var T=H.next();!T.done;T=H.next())if(T=T.value,sxb(T)&&(T=C$N(V,T,I)))return T;return Pig(l)&&I?l:null};var giZ=function(V){this.originalBodyOverflow="";this.JSC$7864_domHelper=kp(V)};_.Uk(_.yo,_.XG);_.B=_.yo.prototype;_.B.JSC$7867_id_=0;_.B.disposeInternal=function(){_.yo.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7865_listener_;delete this.handler_};
_.B.start=function(V){this.stop();this.JSC$7867_id_=om(this.callback_,V!==void 0?V:this.JSC$7865_interval_)};
_.B.stop=function(){this.isActive()&&_.nK.clearTimeout(this.JSC$7867_id_);this.JSC$7867_id_=0};
_.B.fire=function(){this.stop();this.JSC$7867_doAction_()};
_.B.isActive=function(){return this.JSC$7867_id_!=0};
_.B.JSC$7867_doAction_=function(){this.JSC$7867_id_=0;this.JSC$7865_listener_&&this.JSC$7865_listener_.call(this.handler_)};_.ig=function(V){_.XG.call(this);this.handler_=V;this.JSC$7868_keys_={}};
_.Uk(_.ig,_.XG);var my3=[];_.ig.prototype.listen=function(V,l,I,H){Array.isArray(l)||(l&&(my3[0]=l.toString()),l=my3);for(var T=0;T<l.length;T++){var x=_.NR(V,l[T],I||this.handleEvent,H||!1,this.handler_||this);if(!x)break;this.JSC$7868_keys_[x.key]=x}return this};
_.ig.prototype.listenOnce=function(V,l,I,H){return iNZ(this,V,l,I,H)};
var iNZ=function(V,l,I,H,T,x){if(Array.isArray(I))for(var n=0;n<I.length;n++)iNZ(V,l,I[n],H,T,x);else{l=nt(l,I,H||V.handleEvent,T,x||V.handler_||V);if(!l)return V;V.JSC$7868_keys_[l.key]=l}return V};
_.ig.prototype.unlisten=function(V,l,I,H,T){if(Array.isArray(l))for(var x=0;x<l.length;x++)this.unlisten(V,l[x],I,H,T);else if(V=rHB(V,l,I||this.handleEvent,_.m3(H)?!!H.capture:!!H,T||this.handler_||this))$7(V),delete this.JSC$7868_keys_[V.key];return this};
_.ig.prototype.removeAll=function(){_.EL.forEach(this.JSC$7868_keys_,function(V,l){this.JSC$7868_keys_.hasOwnProperty(l)&&$7(V)},this);
this.JSC$7868_keys_={}};
_.ig.prototype.disposeInternal=function(){_.ig.superClass_.disposeInternal.call(this);this.removeAll()};
_.ig.prototype.handleEvent=function(){throw Error("Sa");};var vH=function(){_.XG.call(this);this.services_={}};
_.Uk(vH,_.XG);_.B=vH.prototype;_.B.logger=null;_.B.connect=function(V){V&&V()};
_.B.isConnected=function(){return!0};
_.B.registerService=function(V,l,I){this.services_[V]={callback:l,objectPayload:!!I}};
_.B.getService=function(V,l){var I=this.services_[V];return I?I:this.defaultService_?{callback:_.kB(this.defaultService_,V),objectPayload:_.m3(l)}:null};
var VNw=function(V,l){if(l&&typeof V==="string")try{return JSON.parse(V)}catch(I){return null}else if(!l&&typeof V!=="string")return(0,_.PH)(V);return V};
vH.prototype.disposeInternal=function(){vH.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 OR=function(V,l){this.sequence_=[];this.onCancelFunction_=V;this.defaultScope_=l||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};
OR.prototype.cancel=function(V){if(this.fired_)this.result_ instanceof OR&&this.result_.cancel();else{if(this.parent_){var l=this.parent_;delete this.parent_;V?l.cancel(V):(l.branches_--,l.branches_<=0&&l.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Cg(this))}};
OR.prototype.continue_=function(V,l){this.blocked_=!1;lpJ(this,V,l)};
var lpJ=function(V,l,I){V.fired_=!0;V.result_=I;V.hadError_=!l;Ipi(V)},T7E=function(V){if(V.fired_){if(!V.silentlyCanceled_)throw new Hs0(V);
V.silentlyCanceled_=!1}};
OR.prototype.callback=function(V){T7E(this);lpJ(this,!0,V)};
OR.prototype.errback=function(V){T7E(this);lpJ(this,!1,V)};
var B7E=function(V,l,I){am(V,l,null,I)};
OR.prototype.finally=function(V){var l=this;return new Promise(function(I,H){am(l,function(T){V();I(T)},function(T){V();
H(T)})})};
var am=function(V,l,I,H){var T=V.fired_;T||(l===I?l=I=rR(l):(l=rR(l),I=rR(I)));V.sequence_.push([l,I,H]);T&&Ipi(V)};
OR.prototype.then=function(V,l,I){var H,T,x=new _.UZ(function(n,w){T=n;H=w});
am(this,T,function(n){n instanceof Cg?x.cancel():H(n);return xSo},this);
return x.then(V,l,I)};
ZGw(OR);var US0=function(V,l){l instanceof OR?B7E(V,(0,_.zN)(l.branch,l)):B7E(V,function(){return l})};
OR.prototype.branch=function(V){var l=new OR;am(this,l.callback,l.errback,l);V&&(l.parent_=this,this.branches_++);return l};
OR.prototype.isError=function(V){return V instanceof Error};
var $Si=function(V){return bG(V.sequence_,function(l){return typeof l[1]==="function"})},xSo={},Ipi=function(V){if(V.unhandledErrorId_&&V.fired_&&$Si(V)){var l=V.unhandledErrorId_,I=dSZ[l];
I&&(_.nK.clearTimeout(I.JSC$7885_id_),delete dSZ[l]);V.unhandledErrorId_=0}V.parent_&&(V.parent_.branches_--,delete V.parent_);l=V.result_;for(var H=I=!1;V.sequence_.length&&!V.blocked_;){var T=V.sequence_.shift(),x=T[0],n=T[1];T=T[2];if(x=V.hadError_?n:x)try{var w=x.call(T||V.defaultScope_,l);w===xSo&&(w=void 0);w!==void 0&&(V.hadError_=V.hadError_&&(w==l||V.isError(w)),V.result_=l=w);if(SLa(l)||typeof _.nK.Promise==="function"&&l instanceof _.nK.Promise)H=!0,V.blocked_=!0}catch(N){l=N,V.hadError_=
!0,$Si(V)||(I=!0)}}V.result_=l;H&&(w=(0,_.zN)(V.continue_,V,!0),H=(0,_.zN)(V.continue_,V,!1),l instanceof OR?(am(l,w,H),l.blocking_=!0):l.then(w,H));I&&(l=new wOw(l),dSZ[l.JSC$7885_id_]=l,V.unhandledErrorId_=l.JSC$7885_id_)},Hs0=function(){_.I1.call(this)};
_.Uk(Hs0,_.I1);Hs0.prototype.message="Deferred has already fired";Hs0.prototype.name="AlreadyCalledError";var Cg=function(){_.I1.call(this)};
_.Uk(Cg,_.I1);Cg.prototype.message="Deferred was canceled";Cg.prototype.name="CanceledError";var wOw=function(V){this.JSC$7885_id_=_.nK.setTimeout((0,_.zN)(this.throwError,this),0);this.JSC$7885_error_=V};
wOw.prototype.throwError=function(){delete dSZ[this.JSC$7885_id_];throw this.JSC$7885_error_;};
var dSZ={};var N7W={1:"NativeMessagingTransport"},K_J=["pu","lru","pru","lpu","ppu"],Yoi=function(){for(var V=10,l=jwa,I=l.length,H="";V-- >0;)H+=l.charAt(Math.floor(Math.random()*I));return H},jwa="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var fg=function(V){_.XG.call(this);this.JSC$7888_domHelper_=V||kp()};
_.Uk(fg,_.XG);fg.prototype.transportType=0;fg.prototype.getWindow=function(){return this.JSC$7888_domHelper_.getWindow()};
fg.prototype.getName=function(){return N7W[String(this.transportType)]||""};var gR=function(V,l,I,H,T){fg.call(this,I);this.JSC$7891_channel_=V;this.protocolVersion_=T||2;this.peerHostname_=l||"*";this.JSC$7891_eventHandler_=new _.ig(this);this.maybeAttemptToConnectTimer_=new _.m4(100,this.getWindow());this.oneSidedHandshake_=!!H;this.setupAckReceived_=new OR;this.setupAckSent_=new OR;this.JSC$7891_connected_=new OR;this.endpointId_=Yoi();this.peerEndpointId_=null;this.oneSidedHandshake_?L_N(this.JSC$7891_channel_)==1?US0(this.JSC$7891_connected_,this.setupAckReceived_):
US0(this.JSC$7891_connected_,this.setupAckSent_):(US0(this.JSC$7891_connected_,this.setupAckReceived_),this.protocolVersion_==2&&US0(this.JSC$7891_connected_,this.setupAckSent_));B7E(this.JSC$7891_connected_,this.notifyConnected_,this);this.JSC$7891_connected_.callback(!0);this.JSC$7891_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Uk(gR,fg);gR.prototype.peerProtocolVersion_=null;gR.prototype.initialized_=!1;gR.prototype.transportType=1;var e1i={};gR.prototype.sendTimerId_=0;
var XOE=function(V){var l=V.event_.data;if(typeof l!=="string")return!1;var I=l.indexOf("|"),H=l.indexOf(":");if(I==-1||H==-1)return!1;var T=l.substring(0,I);I=l.substring(I+1,H);l=l.substring(H+1);if(H=mC[T])return H.xpcDeliver(I,l,V.event_.origin),!0;H=kYa(l)[0];for(var x in mC){var n=mC[x];if(L_N(n)==1&&!n.isConnected()&&I=="tp"&&(H=="SETUP"||H=="SETUP_NTPV2")&&F_o(n,V.event_.origin))return delete mC[n.name],n.name=T,mC[T]=n,n.xpcDeliver(I,l),!0}return!1},z1Z=function(V){V.protocolVersion_!=2||
V.peerProtocolVersion_!=null&&V.peerProtocolVersion_!=2||V.send("tp","SETUP_NTPV2,"+V.endpointId_);
V.peerProtocolVersion_!=null&&V.peerProtocolVersion_!=1||V.send("tp","SETUP")},y6w=function(V,l){if(V.protocolVersion_!=2||V.peerProtocolVersion_!=null&&V.peerProtocolVersion_!=2||l!=2){if(V.peerProtocolVersion_!=null&&V.peerProtocolVersion_!=1||l!=1)return;
V.send("tp","SETUP_ACK")}else V.send("tp","SETUP_ACK_NTPV2");V.setupAckSent_.fired_||V.setupAckSent_.callback(!0)},tNa=function(V,l){l>V.peerProtocolVersion_&&(V.peerProtocolVersion_=l);
V.peerProtocolVersion_==1&&(V.setupAckSent_.fired_||V.oneSidedHandshake_||V.setupAckSent_.callback(!0),V.peerEndpointId_=null)};
_.B=gR.prototype;_.B.connect=function(){var V=this.getWindow(),l=_.iN(V),I=e1i[l];typeof I!=="number"&&(I=0);I==0&&_.NR(V.postMessage?V:V.document,"message",XOE,!1,gR);e1i[l]=I+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.B.maybeAttemptToConnect_=function(){var V=L_N(this.JSC$7891_channel_)==0;this.oneSidedHandshake_&&V||this.JSC$7891_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),z1Z(this))};
_.B.send=function(V,l){var I=this.JSC$7891_channel_.peerWindowObject_;I&&(this.send=function(H,T){var x=this,n=this.JSC$7891_channel_.name;this.sendTimerId_=om(function(){x.sendTimerId_=0;try{var w=I.postMessage?I:I.document;w.postMessage&&w.postMessage(n+"|"+H+":"+T,x.peerHostname_)}catch(N){}},0)},this.send(V,l))};
_.B.notifyConnected_=function(){var V=this.JSC$7891_channel_,l=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;V.isConnected()||V.connectionDelay_&&V.connectionDelay_.isActive()||(V.state_=2,_.ag(V.connectionDelay_),l!==void 0?(V.connectionDelay_=new _.yo(V.connectCb_,l),V.connectionDelay_.start()):(V.connectionDelay_=null,V.connectCb_()))};
_.B.disposeInternal=function(){if(this.initialized_){var V=this.getWindow(),l=_.iN(V),I=e1i[l];e1i[l]=I-1;I==1&&_.y$(V.postMessage?V:V.document,"message",XOE,!1,gR)}this.sendTimerId_&&(_.nK.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.ag(this.JSC$7891_eventHandler_);delete this.JSC$7891_eventHandler_;_.ag(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7891_connected_.cancel();delete this.JSC$7891_connected_;delete this.send;gR.superClass_.disposeInternal.call(this)};
var kYa=function(V){V=V.split(",");V[1]=V[1]||null;return V};_.iU=function(V){if(V.getValues&&typeof V.getValues=="function")return V.getValues();if(typeof Map!=="undefined"&&V instanceof Map||typeof Set!=="undefined"&&V instanceof Set)return Array.from(V.values());if(typeof V==="string")return V.split("");if(_.vy(V)){for(var l=[],I=V.length,H=0;H<I;H++)l.push(V[H]);return l}return _.EL.getValues(V)};
_.r6N=function(V){if(V.getKeys&&typeof V.getKeys=="function")return V.getKeys();if(!V.getValues||typeof V.getValues!="function"){if(typeof Map!=="undefined"&&V instanceof Map)return Array.from(V.keys());if(!(typeof Set!=="undefined"&&V instanceof Set)){if(_.vy(V)||typeof V==="string"){var l=[];V=V.length;for(var I=0;I<V;I++)l.push(I);return l}return _.EL.getKeys(V)}}};
_.GYv=function(V,l,I){if(V.forEach&&typeof V.forEach=="function")V.forEach(l,I);else if(_.vy(V)||typeof V==="string")Array.prototype.forEach.call(V,l,I);else for(var H=_.r6N(V),T=_.iU(V),x=T.length,n=0;n<x;n++)l.call(I,T[n],H&&H[n],V)};var hSg,xN,nH,SoW,J6b,EGi,h1Z,oGN,Zsb,PtW;
_.OA=function(V,l){this.JSC$7896_domain_=this.userInfo_=this.scheme_="";this.JSC$7896_port_=null;this.fragment_=this.JSC$7896_path_="";this.JSC$7896_ignoreCase_=!1;var I;V instanceof _.OA?(this.JSC$7896_ignoreCase_=l!==void 0?l:V.JSC$7896_ignoreCase_,_.Vu(this,V.scheme_),this.userInfo_=V.userInfo_,_.ln(this,V.JSC$7896_domain_),_.IB(this,V.JSC$7896_port_),_.H_(this,V.getPath()),_.Td(this,V.JSC$7896_queryData_.clone()),_.B_(this,V.fragment_)):V&&(I=_.so(String(V)))?(this.JSC$7896_ignoreCase_=!!l,_.Vu(this,
I[1]||"",!0),this.userInfo_=xN(I[2]||""),_.ln(this,I[3]||"",!0),_.IB(this,I[4]),_.H_(this,I[5]||"",!0),_.Td(this,I[6]||"",!0),_.B_(this,I[7]||"",!0)):(this.JSC$7896_ignoreCase_=!!l,this.JSC$7896_queryData_=new _.UO(null,this.JSC$7896_ignoreCase_))};
_.OA.prototype.toString=function(){var V=[],l=this.scheme_;l&&V.push(nH(l,EGi,!0),":");var I=this.JSC$7896_domain_;if(I||l=="file")V.push("//"),(l=this.userInfo_)&&V.push(nH(l,EGi,!0),"@"),V.push(J6b(_.Q0(I))),I=this.JSC$7896_port_,I!=null&&V.push(":",String(I));if(I=this.getPath())this.JSC$7896_domain_&&I.charAt(0)!="/"&&V.push("/"),V.push(nH(I,I.charAt(0)=="/"?oGN:h1Z,!0));(I=this.JSC$7896_queryData_.toString())&&V.push("?",I);(I=this.fragment_)&&V.push("#",nH(I,PtW));return V.join("")};
_.OA.prototype.resolve=function(V){var l=this.clone(),I=!!V.scheme_;I?_.Vu(l,V.scheme_):I=!!V.userInfo_;I?l.userInfo_=V.userInfo_:I=!!V.JSC$7896_domain_;I?_.ln(l,V.JSC$7896_domain_):I=V.JSC$7896_port_!=null;var H=V.getPath();if(I)_.IB(l,V.JSC$7896_port_);else if(I=!!V.JSC$7896_path_){if(H.charAt(0)!="/")if(this.JSC$7896_domain_&&!this.JSC$7896_path_)H="/"+H;else{var T=l.getPath().lastIndexOf("/");T!=-1&&(H=l.getPath().slice(0,T+1)+H)}T=H;if(T==".."||T==".")H="";else if(_.kT(T,"./")||_.kT(T,"/.")){H=
_.Nq(T,"/");T=T.split("/");for(var x=[],n=0;n<T.length;){var w=T[n++];w=="."?H&&n==T.length&&x.push(""):w==".."?((x.length>1||x.length==1&&x[0]!="")&&x.pop(),H&&n==T.length&&x.push("")):(x.push(w),H=!0)}H=x.join("/")}else H=T}I?_.H_(l,H):I=V.JSC$7896_queryData_.toString()!=="";I?_.Td(l,V.JSC$7896_queryData_.clone()):I=!!V.fragment_;I&&_.B_(l,V.fragment_);return l};
_.OA.prototype.clone=function(){return new _.OA(this)};
_.Vu=function(V,l,I){V.scheme_=I?xN(l,!0):l;V.scheme_&&(V.scheme_=V.scheme_.replace(/:$/,""));return V};
_.ln=function(V,l,I){V.JSC$7896_domain_=I?xN(l,!0):l;return V};
_.IB=function(V,l){if(l){l=Number(l);if(isNaN(l)||l<0)throw Error("Ta`"+l);V.JSC$7896_port_=l}else V.JSC$7896_port_=null;return V};
_.OA.prototype.getPath=function(){return this.JSC$7896_path_};
_.H_=function(V,l,I){V.JSC$7896_path_=I?xN(l,!0):l;return V};
_.Td=function(V,l,I){l instanceof _.UO?(V.JSC$7896_queryData_=l,DSN(V.JSC$7896_queryData_,V.JSC$7896_ignoreCase_)):(I||(l=nH(l,Zsb)),V.JSC$7896_queryData_=new _.UO(l,V.JSC$7896_ignoreCase_));return V};
_.qx=function(V,l,I){V.JSC$7896_queryData_.set(l,I);return V};
_.bO=function(V,l){return V.JSC$7896_queryData_.get(l)};
_.B_=function(V,l,I){V.fragment_=I?xN(l):l;return V};
_.$N=function(V){_.qx(V,"zx",cv());return V};
_.Wv=function(V,l){return V instanceof _.OA?V.clone():new _.OA(V,l)};
hSg=function(V,l){V instanceof _.OA||(V=_.Wv(V));l instanceof _.OA||(l=_.Wv(l));return V.resolve(l)};
xN=function(V,l){return V?l?decodeURI(V.replace(/%25/g,"%2525")):decodeURIComponent(V):""};
nH=function(V,l,I){return typeof V==="string"?(V=encodeURI(V).replace(l,SoW),I&&(V=J6b(V)),V):null};
SoW=function(V){V=V.charCodeAt(0);return"%"+(V>>4&15).toString(16)+(V&15).toString(16)};
J6b=function(V){return V.replace(/%25([0-9a-fA-F]{2})/g,"%$1")};
EGi=/[#\/\?@]/g;h1Z=/[#\?:]/g;oGN=/[#\?]/g;Zsb=/[#\?@]/g;PtW=/#/g;_.UO=function(V,l){this.count_=this.keyMap_=null;this.encodedQuery_=V||null;this.JSC$7897_ignoreCase_=!!l};
_.dY=function(V){V.keyMap_||(V.keyMap_=new Map,V.count_=0,V.encodedQuery_&&juW(V.encodedQuery_,function(l,I){V.add(vO(l),I)}))};
_.B=_.UO.prototype;_.B.getCount=function(){_.dY(this);return this.count_};
_.B.add=function(V,l){_.dY(this);this.encodedQuery_=null;V=wY(this,V);var I=this.keyMap_.get(V);I||this.keyMap_.set(V,I=[]);I.push(l);this.count_+=1;return this};
_.B.remove=function(V){_.dY(this);V=wY(this,V);return this.keyMap_.has(V)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(V).length,this.keyMap_.delete(V)):!1};
_.B.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.B.isEmpty=function(){_.dY(this);return this.count_==0};
_.B.containsKey=function(V){_.dY(this);V=wY(this,V);return this.keyMap_.has(V)};
_.B.containsValue=function(V){var l=this.getValues();return _.Mq(l,V)};
_.B.forEach=function(V,l){_.dY(this);this.keyMap_.forEach(function(I,H){I.forEach(function(T){V.call(l,T,H,this)},this)},this)};
_.B.getKeys=function(){_.dY(this);for(var V=Array.from(this.keyMap_.values()),l=Array.from(this.keyMap_.keys()),I=[],H=0;H<l.length;H++)for(var T=V[H],x=0;x<T.length;x++)I.push(l[H]);return I};
_.B.getValues=function(V){_.dY(this);var l=[];if(typeof V==="string")this.containsKey(V)&&(l=l.concat(this.keyMap_.get(wY(this,V))));else{V=Array.from(this.keyMap_.values());for(var I=0;I<V.length;I++)l=l.concat(V[I])}return l};
_.B.set=function(V,l){_.dY(this);this.encodedQuery_=null;V=wY(this,V);this.containsKey(V)&&(this.count_-=this.keyMap_.get(V).length);this.keyMap_.set(V,[l]);this.count_+=1;return this};
_.B.get=function(V,l){if(!V)return l;V=this.getValues(V);return V.length>0?String(V[0]):l};
_.R1w=function(V,l,I){V.remove(l);I.length>0&&(V.encodedQuery_=null,V.keyMap_.set(wY(V,l),_.uN(I)),V.count_+=I.length)};
_.UO.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var V=[],l=Array.from(this.keyMap_.keys()),I=0;I<l.length;I++){var H=l[I],T=_.Q0(H);H=this.getValues(H);for(var x=0;x<H.length;x++){var n=T;H[x]!==""&&(n+="="+_.Q0(H[x]));V.push(n)}}return this.encodedQuery_=V.join("&")};
_.UO.prototype.clone=function(){var V=new _.UO;V.encodedQuery_=this.encodedQuery_;this.keyMap_&&(V.keyMap_=new Map(this.keyMap_),V.count_=this.count_);return V};
var wY=function(V,l){l=String(l);V.JSC$7897_ignoreCase_&&(l=l.toLowerCase());return l},DSN=function(V,l){l&&!V.JSC$7897_ignoreCase_&&(_.dY(V),V.encodedQuery_=null,V.keyMap_.forEach(function(I,H){var T=H.toLowerCase();
H!=T&&(this.remove(H),_.R1w(this,T,I))},V));
V.JSC$7897_ignoreCase_=l};
_.UO.prototype.extend=function(V){for(var l=0;l<arguments.length;l++)_.GYv(arguments[l],function(I,H){this.add(H,I)},this)};var N_=function(V,l){vH.call(this);for(var I=0,H;H=K_J[I];I++)if(H in V&&!/^https?:\/\//.test(V[H]))throw Error("Va`"+V[H]+"`"+H);this.cfg_=V;this.name=this.cfg_.cn||Yoi();this.JSC$7892_domHelper_=l||kp();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.ig(this);V.lpu=V.lpu||NgN(this.JSC$7892_domHelper_.getWindow().location.href)+"/robots.txt";V.ppu=V.ppu||NgN(V.pu||"")+"/robots.txt";mC[this.name]=this;rHB(window,"unload",QwN)||nt(window,"unload",QwN)};
_.Uk(N_,vH);var c6w=RegExp("^%*tp$"),W_i=RegExp("^%+tp$");_.B=N_.prototype;_.B.connectionDelay_=null;_.B.peerWindowDeferred_=null;_.B.transport_=null;_.B.state_=1;_.B.isConnected=function(){return this.state_==2};
_.B.peerWindowObject_=null;_.B.iframeElement_=null;_.B.connect=function(V){this.connectCb_=V||_.XX;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?B7E(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.B.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7892_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var V=this.iframeElement_.contentWindow;V||(V=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=V}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$7892_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new gR(this,this.cfg_.ph,this.JSC$7892_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()()};
_.B.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.ag(this.transport_);this.connectCb_=this.transport_=null;_.ag(this.connectionDelay_);this.connectionDelay_=null};
_.B.send=function(V,l){if(this.isConnected()){try{var I=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(T){I=!1}if(I){_.m3(l)&&(l=(0,_.PH)(l));I=this.transport_;var H=I.send;c6w.test(V)&&(V="%"+V);V=V.replace(/[%:|]/g,encodeURIComponent);H.call(I,V,l)}else this.close()}};
_.B.xpcDeliver=function(V,l,I){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.zN)(this.xpcDeliver,this,V,l,I));else if(F_o(this,I)&&!this.isDisposed()&&this.state_!=3)if(V&&V!="tp")this.isConnected()&&(V=V.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),V=W_i.test(V)?V.substring(1):V,V=this.getService(V,l))&&(l=VNw(l,V.objectPayload),l!=null&&V.callback(l));else switch(V=this.transport_,I=kYa(l),l=I[1],I[0]){case "SETUP_ACK":tNa(V,1);V.setupAckReceived_.fired_||V.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":V.protocolVersion_==2&&(tNa(V,2),V.setupAckReceived_.fired_||V.setupAckReceived_.callback(!0));break;case "SETUP":tNa(V,1);y6w(V,1);break;case "SETUP_NTPV2":V.protocolVersion_==2&&(I=V.peerProtocolVersion_,tNa(V,2),y6w(V,2),I!=1&&V.peerEndpointId_==null||V.peerEndpointId_==l||z1Z(V),V.peerEndpointId_=l)}};
var L_N=function(V){var l=V.cfg_.role;return typeof l==="number"?l:window.parent==V.peerWindowObject_?1:0},F_o=function(V,l){var I=V.cfg_.ph;
return _.jc(l==null?"":String(l))||_.jc(I==null?"":String(I))||l==V.cfg_.ph};
N_.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete mC[this.name];_.ag(this.peerLoadHandler_);delete this.peerLoadHandler_;N_.superClass_.disposeInternal.call(this)};
var QwN=function(){for(var V in mC)_.ag(mC[V])},mC={};var qoJ=function(V,l){this.JSC$7906_win=V;this.allowAdsHttpEndpoint=l;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7906_domHelper=kp(V);this.scrollManager=new giZ(V);this.accessibilityManager=new vib(V);bsZ(this)},bsZ=function(V){var l=function(){V.allowAdsPopup&&V.allowAdsPopup.style.setProperty("display","none","important");
V.wallElement.style.setProperty("display","","important");ONo(V.accessibilityManager);fna(V.accessibilityManager,V.wallElement.querySelector(".fc-dialog-container"),!1,!1,V.wallElement.querySelector(".fc-button-whitelist"));var T=V.scrollManager;T.JSC$7864_domHelper.JSC$7235_document_.body.style.overflow=T.originalBodyOverflow};
V.allowAdsPopup=V.JSC$7906_domHelper.JSC$7237_createDom("DIV",{"class":"fc-whitelist-root"});V.allowAdsPopup.style.setProperty("display","none","important");V.JSC$7906_domHelper.appendChild(V.JSC$7906_domHelper.JSC$7235_document_.body,V.allowAdsPopup);var I=V.JSC$7906_domHelper.JSC$7237_createDom("DIV",{"class":"fc-dialog-overlay"});V.JSC$7906_domHelper.appendChild(V.allowAdsPopup,I);var H=V.JSC$7906_domHelper.JSC$7237_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:l});V.JSC$7906_domHelper.appendChild(V.allowAdsPopup,
H);I=V.JSC$7906_domHelper.JSC$7237_createDom("IFRAME");I.className="fc-whitelist-dialog";I.frameBorder="0";I.id="fc-whitelist-iframe";I.tabIndex="0";_.AV(I,V.allowAdsHttpEndpoint);V.JSC$7906_domHelper.appendChild(H,I);H={};H.pu=_.tV(V.allowAdsHttpEndpoint).toString();H.tp=1;H.cn="fc-whitelist-channel";H.ifrid=I.id;H.osh=!0;V.allowAdsCrossPageChannel=new N_(H);V.allowAdsCrossPageChannel.registerService("close",l);V.allowAdsCrossPageChannel.registerService("refresh",function(){V.JSC$7906_win.location.reload()});
V.allowAdsCrossPageChannel.registerService("resize",function(T){if(T){var x=V.allowAdsPopup.querySelector(".fc-whitelist-dialog");T.width&&x.style.setProperty("width",T.width,"important");T.height&&x.style.setProperty("height",T.height,"important")}},!0);
V.allowAdsCrossPageChannel.connect()};
qoJ.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7906_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var KH=window,jT=document,MNN=KH.location,swN=function(){},pON=/\[native code\]/,YN=function(V,l,I){return V[l]=V[l]||I},A6a=function(V){V=V.sort();
for(var l=[],I=void 0,H=0;H<V.length;H++){var T=V[H];T!=I&&l.push(T);I=T}return l},LH=function(){var V;
if((V=Object.create)&&pON.test(V))V=V(null);else{V={};for(var l in V)V[l]=void 0}return V},eT=YN(KH,"gapi",{});var kN={};kN=YN(KH,"___jsl",LH());YN(kN,"I",0);YN(kN,"hel",10);var uWb=function(){var V=MNN.href;if(kN.dpo)var l=kN.h;else{l=kN.h;var I=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),H=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(V=V&&(I.exec(V)||H.exec(V)))try{l=decodeURIComponent(V[2])}catch(T){}}return l},vGo=function(V){var l=YN(kN,"PQ",[]);
kN.PQ=[];var I=l.length;if(I===0)V();else for(var H=0,T=function(){++H===I&&V()},x=0;x<I;x++)l[x](T)},OsB=function(V){return YN(YN(kN,"H",LH()),V,LH())};var FF=function(V){this.JSC$7908_obj_=V};
FF.prototype.value=function(){return this.JSC$7908_obj_};
FF.prototype.getWidth=function(){return this.JSC$7908_obj_.width};
FF.prototype.getHeight=function(){return this.JSC$7908_obj_.height};
FF.prototype.getStyle=function(){return this.JSC$7908_obj_.style};var Cta=function(V){this.JSC$7911_obj_=V||{}};
_.B=Cta.prototype;_.B.value=function(){return this.JSC$7911_obj_};
_.B.setUrl=function(V){this.JSC$7911_obj_.url=V;return this};
_.B.getUrl=function(){return this.JSC$7911_obj_.url};
_.B.getStyle=function(){return this.JSC$7911_obj_.style};
_.B.getId=function(){return this.JSC$7911_obj_.id};
_.B.getContext=function(){return this.JSC$7911_obj_.context};
var apZ=function(V){V.JSC$7911_obj_.attributes=V.JSC$7911_obj_.attributes||{};return new FF(V.JSC$7911_obj_.attributes)};var fpB=function(){Cta.apply(this,arguments)};
_.t(fpB,Cta);var gGb=YN(kN,"perf",LH());YN(gGb,"g",LH());var mSN=YN(gGb,"i",LH());YN(gGb,"r",[]);LH();LH();var VOb=function(V,l,I){l&&l.length>0&&(l=isw(l),I&&I.length>0&&(l+="___"+isw(I)),l.length>28&&(l=l.substr(0,28)+(l.length-28)),I=l,l=YN(mSN,"_p",LH()),YN(l,I,LH())[V]=(new Date).getTime(),l=gGb.r,typeof l==="function"?l(V,"_p",I):l.push([V,"_p",I]))},isw=function(V){return V.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var lY0=LH(),IYB=[],XF=function(V){throw Error("Ya`"+V);};
IYB.push(["jsl",function(V){for(var l in V)if(Object.prototype.hasOwnProperty.call(V,l)){var I=V[l];typeof I=="object"?kN[l]=YN(kN,l,[]).concat(I):YN(kN,l,I)}if(l=V.u)V=YN(kN,"us",[]),V.push(l),(l=/^https:(.*)$/.exec(l))&&V.push("http:"+l[1])}]);
var HAZ=/^(\/[a-zA-Z0-9_\-]+)+$/,Tmb=[/\/amp\//,/\/amp$/,/^\/amp$/],Bma=/^[a-zA-Z0-9\-_\.,!]+$/,xl3=/^gapi\.loaded_[0-9]+$/,Uli=/^[a-zA-Z0-9,._-]+$/,wxw=function(V,l,I,H,T){var x=V.split(";"),n=x.shift(),w=lY0[n],N=null;w?N=w(x,l,I,H):XF("no hint processor for: "+n);N||XF("failed to generate load url");l=N;I=l.match(nd3);(H=l.match($la))&&H.length===1&&dlw.test(l)&&I&&I.length===1||XF("failed sanity: "+V);try{V="?";if(T&&T.length>0){Gwc(T);var L=T.join(",");N=N+"?le="+L;V="&"}if(kN.rol){var e=kN.ol;
e&&e.length&&(N=""+N+V+"ol="+e.length)}}catch(k){}return N},jv3=function(V,l,I,H){V=NmZ(V);
xl3.test(I)||XF("invalid_callback");l=K60(l);H=H&&H.length?K60(H):null;var T=function(x){return encodeURIComponent(x).replace(/%2C/g,",")};
return[encodeURIComponent(V.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",T(V.version),"/m=",T(l),H?"/exm="+T(H):"","/rt=j/sv=1/d=1/ed=1",V.activeMods?"/am="+T(V.activeMods):"",V.resourceSig?"/rs="+T(V.resourceSig):"",V.zcms?"/t="+T(V.zcms):"","/cb=",T(I)].join("")},NmZ=function(V){V.charAt(0)!=="/"&&XF("relative path");
for(var l=V.substring(1).split("/"),I=[];l.length;){V=l.shift();if(!V.length||V.indexOf(".")==0)XF("empty/relative directory");else if(V.indexOf("=")>0){l.unshift(V);break}I.push(V)}V={};for(var H=0,T=l.length;H<T;++H){var x=l[H].split("="),n=decodeURIComponent(x[0]),w=decodeURIComponent(x[1]);x.length==2&&n&&w&&(V[n]=V[n]||w)}l="/"+I.join("/");HAZ.test(l)||XF("invalid_prefix");I=0;for(H=Tmb.length;I<H;++I)Tmb[I].test(l)&&XF("invalid_prefix");I=Y_b(V,"k",!0);H=Y_b(V,"am");T=Y_b(V,"rs");V=Y_b(V,"t");
return{pathPrefix:l,version:I,activeMods:H,resourceSig:T,zcms:V}},K60=function(V){for(var l=[],I=0,H=V.length;I<H;++I){var T=V[I].replace(/\./g,"_").replace(/-/g,"_");
Uli.test(T)&&l.push(T)}return l.join(",")},Y_b=function(V,l,I){V=V[l];
!V&&I&&XF("missing: "+l);if(V){if(Bma.test(V))return V;XF("invalid: "+l)}return null},dlw=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,$la=/\/cb=/g,nd3=/\/\//g;
lY0.m=function(V,l,I,H){(V=V[0])||XF("missing_hint");return"https://apis.google.com"+jv3(V,l,I,H)};
var L63=decodeURI("%73cript"),emW=/^[-+_0-9\/A-Za-z]+={0,2}$/,kUB=function(V,l){for(var I=[],H=0;H<V.length;++H){var T=V[H],x;if(x=T){a:{for(x=0;x<l.length;x++)if(l[x]===T)break a;x=-1}x=x<0}x&&I.push(T)}return I},F60=function(){var V=kN.nonce;
return V!==void 0?V&&V===String(V)&&V.match(emW)?V:kN.nonce=null:jT.querySelector?(V=jT.querySelector("script[nonce]"))?(V=V.nonce||V.getAttribute("nonce")||"",V&&V===String(V)&&V.match(emW)?kN.nonce=V:kN.nonce=null):null:null},yqv=function(V){if(jT.readyState!="loading")XxZ(V);
else{var l=F60(),I="";l!==null&&(I=' nonce="'+l+'"');V="<"+L63+' src="'+encodeURI(V)+'"'+I+"></"+L63+">";jT.write(zmb?zmb.createHTML(V):V)}},XxZ=function(V){var l=jT.createElement(L63);
l.setAttribute("src",zmb?zmb.createScriptURL(V):V);V=F60();V!==null&&l.setAttribute("nonce",V);l.async="true";(V=jT.getElementsByTagName(L63)[0])?V.parentNode.insertBefore(l,V):(jT.head||jT.body||jT.documentElement).appendChild(l)},rqw=function(V,l,I){tOw(function(){var H=l===uWb()?YN(eT,"_",LH()):LH();
H=YN(OsB(l),"_",H);V(H)},I)},xA1=function(V,l){var I=l||{};
typeof l=="function"&&(I={},I.callback=l);var H=(l=I)&&l._c;if(H)for(var T=0;T<IYB.length;T++){var x=IYB[T][0],n=IYB[T][1];n&&Object.prototype.hasOwnProperty.call(H,x)&&n(H[x],V,l)}l=[];V?l=V.split(":"):I.features&&(l=I.features);if(!(V=I.h)&&(V=uWb(),!V))throw Error("Za");GUv(l||[],I,V)},GUv=function(V,l,I){V=A6a(V)||[];
var H=l.callback,T=l.config,x=l.timeout,n=l.ontimeout,w=l.onerror,N=void 0;typeof w=="function"&&(N=w);var L=null,e=!1;if(x&&!n||!x&&n)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";w=YN(OsB(I),"r",[]).sort();var k=YN(OsB(I),"L",[]).sort(),X=kN.le||[],r=[].concat(w),E=function(Vf,C){if(e)return 0;KH.clearTimeout(L);k.push.apply(k,D);var By=((eT||{}).config||{}).update;By?By(T):T&&YN(kN,"cu",[]).push(T);if(C){VOb("me0",Vf,r);try{rqw(C,I,N)}finally{VOb("me1",Vf,
r)}}return 1};
x>0&&(L=KH.setTimeout(function(){e=!0;n()},x));
var D=kUB(V,k);if(D.length){D=kUB(V,w);var Z=YN(kN,"CP",[]),S=Z.length;Z[S]=function(Vf){if(!Vf)return 0;VOb("ml1",D,r);var C=function(lN){Z[S]=null;E(D,Vf)&&vGo(function(){H&&H();lN()})},By=function(){var lN=Z[S+1];
lN&&lN()};
S>0&&Z[S-1]?Z[S]=function(){C(By)}:C(By)};
if(D.length){var p="loaded_"+kN.I++;eT[p]=function(Vf){Z[S](Vf);eT[p]=null};
V=wxw(I,D,"gapi."+p,w,X);w.push.apply(w,D);VOb("ml0",D,r);l.sync||KH.___gapisync?yqv(V):XxZ(V)}else Z[S](swN)}else E(D)&&H&&H()},EdB;
var Jqw=null,odw=_.nK.trustedTypes;if(odw&&odw.createPolicy){try{Jqw=odw.createPolicy("goog#gapi",{createHTML:i9N,createScript:i9N,createScriptURL:i9N})}catch(V){_.nK.console&&_.nK.console.error(V.message)}EdB=Jqw}else EdB=Jqw;var zmb=EdB,tOw=function(V,l){if(kN.hee&&kN.hel>0)try{return V()}catch(I){l&&l(I),kN.hel--,xA1("debug_error",function(){try{window.___jsl.hefn(I)}catch(H){throw I;}})}else try{return V()}catch(I){throw l&&l(I),I;
}},hmW=eT.load;
hmW&&YN(kN,"ol",[]).push(hmW);eT.load=function(V,l){return tOw(function(){return xA1(V,l)})};var P2K;var P2Z=function(V,l){this.serviceId_=V;this.moduleId_=l||null};
P2Z.prototype.toString=function(){return this.serviceId_};
P2Z.prototype.getModuleId=function(){return this.moduleId_};var CKc=new P2Z("MpJwZc","MpJwZc");var fhy=new _.e3("a"),ahT=function(V,l,I){_.kL.call(this,V,l);this.node=l;this.kind=I};
_.t(ahT,_.kL);var Dlo=function(V){this.segments=V};
Dlo.prototype.toString=function(){return this.segments.join(".")};
Dlo.prototype.getVersion=function(){return this.segments[0]};
Dlo.prototype.getExtension=function(){return this.segments[1]};var ZA0=function(){this.JSC$7927_keys_={};this.urlPrefix_="";this.JSC$7927_queryData_={}};
ZA0.prototype.toString=function(){if(this.urlPrefix_.endsWith("_/r/"))var V=this.urlPrefix_+zd(this,"sc");else{V=this.urlPrefix_+S_w(this);var l=_.U_(this.JSC$7927_queryData_),I="";l!=""&&(I="?"+l);V+=I}return V};
var Rma=function(V){V=zd(V,"md");return!!V&&V!=="0"},S_w=function(V){var l=[],I=(0,_.zN)(function(H){this.JSC$7927_keys_[H]!==void 0&&l.push(H+"="+this.JSC$7927_keys_[H])},V);
Rma(V)?(I("md"),I("k"),I("ck"),I("am"),I("rs"),I("gssmodulesetproto"),I("slk"),I("dti")):(I("sdch"),I("k"),I("ck"),I("am"),I("rt"),"d"in V.JSC$7927_keys_||yu(V,"d","0"),I("d"),I("exm"),I("excm"),(V.JSC$7927_keys_.excm||V.JSC$7927_keys_.exm)&&l.push("ed=1"),I("im"),I("dg"),I("sm"),zd(V,"br")!="1"&&zd(V,"br")!="0"||I("br"),I("br-d"),zd(V,"rb")=="1"&&I("rb"),zd(V,"zs")!=="0"&&I("zs"),QvB(V)!==""&&I("wt"),I("gssmodulesetproto"),I("ujg"),I("sp"),I("rs"),I("cb"),I("ee"),I("slk"),I("dti"),I("m"));return l.join("/")},
zd=function(V,l){return V.JSC$7927_keys_[l]?V.JSC$7927_keys_[l]:null},yu=function(V,l,I){I?V.JSC$7927_keys_[l]=I:delete V.JSC$7927_keys_[l]},cqZ=function(V,l){V.urlPrefix_=l},W6Z=function(V,l){l&&l.length>0?(l.sort(),yu(V,"exm",l.join(","))):yu(V,"exm",null)},bAi=function(V,l){l&&l.length>0?(l.sort(),yu(V,"excm",l.join(","))):yu(V,"excm",null)},q_J=function(V){return(V=zd(V,"m"))?V.split(","):[]},QvB=function(V){switch(zd(V,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},MON=function(V,l){var I=Object.keys(l).filter(function(H){return!!Object.keys(l[H]).length}).map(function(H){var T=Object.keys(l[H]);
T.length>1&&T.sort();return H+":"+T.join(",")});
I.sort();yu(V,"ee",I.join(";"))},kQt=function(V){var l=zd(V,"ee");
if(!l)return{};V={};l=_.U(l.split(";"));for(var I=l.next();!I.done;I=l.next()){var H=_.U(I.value.split(":"));I=H.next().value;H=H.next().value;V[I]={};H=_.U(H.split(","));for(var T=H.next();!T.done;T=H.next())V[I][T.value]=!0}return V},svJ=function(V){delete V.JSC$7927_keys_.m;
delete V.JSC$7927_keys_.exm;delete V.JSC$7927_keys_.ed};
ZA0.prototype.clone=function(){return go(this.toString())};
var go=function(V,l){l=l===void 0?!0:l;var I=pxN(V),H=new ZA0,T=_.so(I)[5];_.EL.forEach(Aqv,function(n){var w=T.match("/"+n+"=([^/]+)");w&&yu(H,n,w[1])});
var x="";x=V.indexOf("_/ss/")!=-1?"_/ss/":V.indexOf("_/r/")!=-1?"_/r/":"_/js/";cqZ(H,V.substr(0,V.indexOf(x)+x.length));if(H.urlPrefix_.endsWith("_/r/"))return V=uia(V),yu(H,"sc",V.toString()),H;if(!l)return H;(V=_.so(I)[6]||null)&&juW(V,function(n,w){H.JSC$7927_queryData_[n]=w});
return H},Yhq=function(V){var l=_.Bx(pxN(V)),I;
l===null?I=!1:I=RegExp("/_/r/","g").test(V)&&uia(V)?!0:RegExp("(/_/js/)|(/_/ss/)","g").test(l)?/\/k=/.test(l):!1;return I},uia=function(V){var l=V.lastIndexOf("_/r/")+4;
V=V.slice(l);if(V===null)return null;try{var I=V.split(".");var H=I.length!==2?null:new Dlo(I);if(H===null)throw new TypeError("ab`"+V);return H}catch(T){return null}},pxN=function(V){return V.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?V.substr(65):V},Aqv={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",STATIC_CONTENT_ROW_KEY:"sc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},vdE=RegExp("^loaded_(g|h)?[_\\d]+$");_.tu=function(V){this.JSC$7939_id_=V;this.opts={}};
_.tu.prototype.JSC$7941_setLabel=function(V){this.label_=V||void 0;return this};
_.tu.prototype.addUploadMetadata=function(V,l){var I=this.opts.data||{};I[V]=l;this.opts.data=I;return this};
var OAa=function(V){var l=_.EL.filter(V.opts,function(I){return I!==null});
l=_.EL.isEmpty(l)?null:l;V=[V.JSC$7939_id_,V.label_,l];l=Xyc(V);return V=V.slice(0,l+1)};
_.tu.prototype.toString=function(){var V=OAa(this);return"("+_.JH(V,function(l){return JSON.stringify(l)}).join(",")+")"};
_.tu.prototype.getId=function(){return this.JSC$7939_id_};
_.tu.prototype.getOptions=function(){return _.EL.clone(this.opts)};var rY=function(){_.tu.call(this,"image-search")};
_.t(rY,_.tu);rY.prototype.setSize=function(V){this.opts.imgsz=V;return this};
rY.prototype.JSC$7941_setLabel=function(V){_.tu.prototype.JSC$7941_setLabel.call(this,V);return this};
rY.prototype.addUploadMetadata=function(V,l){_.tu.prototype.addUploadMetadata.call(this,V,l);return this};var Gd=function(){_.tu.call(this,"maps")};
_.t(Gd,_.tu);Gd.prototype.setZoom=function(V){this.opts.zoom=V;return this};
Gd.prototype.JSC$7941_setLabel=function(V){_.tu.prototype.JSC$7941_setLabel.call(this,V);return this};
Gd.prototype.addUploadMetadata=function(V,l){_.tu.prototype.addUploadMetadata.call(this,V,l);return this};_.EO=function(){_.tu.call(this,"photos")};
_.t(_.EO,_.tu);_.EO.prototype.JSC$7941_setLabel=function(V){_.tu.prototype.JSC$7941_setLabel.call(this,V);return this};
_.EO.prototype.addUploadMetadata=function(V,l){_.tu.prototype.addUploadMetadata.call(this,V,l);return this};var Ju=function(){_.tu.call(this,"url")};
_.t(Ju,_.tu);var C2v=function(){var V=new Ju;V.opts.type="video";V.opts.site="youtube.com";return V};
Ju.prototype.JSC$7941_setLabel=function(V){_.tu.prototype.JSC$7941_setLabel.call(this,V);return this};
Ju.prototype.addUploadMetadata=function(V,l){_.tu.prototype.addUploadMetadata.call(this,V,l);return this};var oB=function(){_.tu.call(this,"video-search")};
_.t(oB,_.tu);var aYZ=function(){var V=new oB;V.opts.site="youtube.com";return V};
oB.prototype.JSC$7941_setLabel=function(V){_.tu.prototype.JSC$7941_setLabel.call(this,V);return this};
oB.prototype.addUploadMetadata=function(V,l){_.tu.prototype.addUploadMetadata.call(this,V,l);return this};var fY0=function(){_.tu.call(this,"web")};
_.t(fY0,_.tu);fY0.prototype.JSC$7941_setLabel=function(V){_.tu.prototype.JSC$7941_setLabel.call(this,V);return this};
fY0.prototype.addUploadMetadata=function(V,l){_.tu.prototype.addUploadMetadata.call(this,V,l);return this};var hu=function(){this.items_=[];this.opts={}},gdZ=function(V){switch(V){case "image-search":return new rY;
case "maps":return new Gd;case "photos":return new _.EO;case "url":return new Ju;case "video-search":return new oB;case "web":return new fY0}return new _.tu(V)};
hu.prototype.addView=function(V){this.items_.push(typeof V==="string"?gdZ(V):V);return this};
var mlN=function(V){return"("+_.JH(V.items_,function(l){return l.toString()}).join(",")+")"};
hu.prototype.toString=function(){return mlN(this)};
hu.prototype.getViews=function(V,l){l=l===void 0?[]:l;for(var I=this.items_,H=0;H<I.length;H++){var T=I[H];T instanceof hu?T.getViews(V,l):T.getId()==V&&l.push(T)}return l};
hu.prototype.getOptions=function(){return _.EL.clone(this.opts)};var Dl=function(V){this.basePickerUrl_=V||"https://docs.google.com/picker";this.nav_=new hu};
Dl.prototype.nav_=null;Dl.prototype.addView=function(V){this.nav_.addView(V);return this};
Dl.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Dl.prototype.getViews=function(V){return this.nav_.getViews(V)};
_.iAN=function(V,l){V.callback_=l;return V};var VQw=new Map;VQw.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");VQw.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");VQw.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var lBb=new Set;lBb.add("application/vnd.google-apps.kix");lBb.add("application/vnd.google-apps.ritz");lBb.add("application/vnd.google-apps.punch");var Kua=function(V,l,I){var H=I&&_.Rt(I,1);I=IBN(I);var T=V[0].getId();switch(_.Qh(T,2)){case 13:return H0B(V,l,H,I);case 3:return T0o(V,l,H,I);case 10:return B0a(V,l,H,I);case 27:return B0a(V,l,H,I);case 12:return xDw(V,l);case 2:return UDJ(V,l,H,I);case 5:return neW(V,l,H,I);case 9:return $Dv(V,l,H,I);case 6:return dDE(V,l,H,I);case 25:return waW(V,l,H,I);case 1:return _.Xr(V[0],aCa,26)?N0W(V,l,H,I):B0a(V,l,H,I);default:return{}}},dDE=function(V,l,I,H){V=V.map(function(T){return{id:T.getId().getId(),
serviceId:"youtube",name:T.getName(),description:_.Rt(T,3),type:P_(T),lastEditedUtc:_.CYB(_.fA(T,_.Ay,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:T.getUrl(),embedUrl:_.Rt(T,13),thumbnails:D4(V$(T))}});
return{action:l,docs:V,viewToken:H,view:I||"youtube",v2Translated:!0}},UDJ=function(V,l,I,H){var T=V.map(function(x){var n=x.getId().getId(),w=_.Rt(x,7),N=x.getName(),L=P_(x),e=_.CYB(_.fA(x,_.Ay,12)).getTime(),k=x.getUrl(),X=Number(NIf(x)),r=_.Rt(x,3),E=_.Rt(x,11),D=D4(V$(x));
var Z=_.fA(x,lU,21);Z=_.DV(Z,1);var S=_.fA(x,lU,21);S=_.Rt(S,10);var p=_.Rt(x,13);var Vf=_.fA(x,lU,21);Vf=_.DV(Vf,9);var C=_.fA(x,lU,21);C=_.Rt(C,11);n={id:n,serviceId:"docs",mimeType:w,name:N,type:L,lastEditedUtc:e,url:k,sizeBytes:X,description:r,iconUrl:E,thumbnails:D,isShared:Z,downloadUrl:S,embedUrl:p,copyable:Vf,resourceKey:C};w=_.fA(x,lU,21);_.DV(w,12)&&(n.uploadState="success",n.isNew=!0);w=_.fA(x,lU,21);_.Xr(w,gU,3)&&(x=_.fA(x,lU,21),x=_.fA(x,gU,3),_.Xr(x,ak,2)&&(w=hK(x.getDuration().getSeconds()),
N=x.getDuration(),N=_.lO(N,2),n.duration=w+N/1E9),n.aspectRatio=x.getAspectRatio());return n});
return{action:l,docs:T,viewToken:H,view:I||"all",extraUserInputs:jSw(V),v2Translated:!0}},neW=function(V,l,I,H){V=V.map(function(T){var x=_.fA(T,T4J,15);
x=_.fA(x,fu,1);wT(T,10,fu,x);return{id:T.getId().getId(),serviceId:"web",mimeType:_.Rt(T,7),name:T.getName(),type:P_(T),url:T.getUrl(),description:_.Rt(T,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:D4(V$(T))}});
return{action:l,docs:V,viewToken:H,view:I||"image-search",v2Translated:!0}},$Dv=function(V,l,I,H){V=V.map(function(T){return{serviceId:"url",
name:V$(T)[0].getUrl().split("/").pop(),type:P_(T),mimeType:_.Rt(T,7),url:T.getUrl(),description:_.Rt(T,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:D4(V$(T))}});
return{action:l,docs:V,viewToken:H,view:I||"url",v2Translated:!0}},N0W=function(V,l,I,H){V=V.map(function(T){return{id:T.getId().getId(),
serviceId:"picasa",name:T.getName(),type:P_(T),description:_.Rt(T,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:D4(V$(T))}});
return{action:l,docs:V,viewToken:H,view:I||"webcam",v2Translated:!0}},B0a=function(V,l,I,H){return{action:l,
docs:V.map(YhN),viewToken:H,view:Luv(I||"upload",V),extraUserInputs:jSw(V),v2Translated:!0}},Luv=function(V,l){return l.some(function(I){var H;
return((H=_.fA(I,mJ,30))==null?void 0:_.Qh(H,3))===9})?V+"/gmailphotos":V},T0o=function(V,l,I,H){var T=V.map(function(x){var n={id:x.getId().getId(),
serviceId:"picasa",mimeType:_.Rt(x,7),name:x.getName(),type:P_(x),lastEditedUtc:_.CYB(_.fA(x,_.Ay,12)).getTime(),url:x.getUrl(),sizeBytes:Number(NIf(x)),description:_.Rt(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:D4(V$(x)),mediaKey:x.getId().getId(),parentId:_.Rt(x,4)},w,N=(w=_.fA(x,mVW,18))==null?void 0:_.fA(w,gnw,3);N&&(n.latitude=Sa(N,1),n.longitude=Sa(N,2));var L;x=(L=_.fA(x,mVW,18))==null?void 0:ZV(L,6);L=x!=null?hK(x):void 0;L&&(n.version=
L);return n});
return{action:l,docs:T,viewToken:H,view:I||"photos",extraUserInputs:jSw(V),v2Translated:!0}},H0B=function(V,l,I,H){V=V.map(function(T){return{id:T.getId().getId(),
serviceId:"et",name:V$(T)[0].getUrl().split("/").pop(),description:_.Rt(T,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:D4(V$(T),"etjpg")}});
return{action:l,docs:V,viewToken:H,view:I||"et",v2Translated:!0}},waW=function(V,l,I,H){V=V.map(function(T){var x=T.getId().getId(),n=H["2"];
return{id:x,serviceId:n.type!=="gmail_themes"&&n.parent==="6226252643674576769"?"picasa":"static_themes",name:T.getName(),mimeType:_.Rt(T,7),type:P_(T),description:_.Rt(T,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:T.getUrl(),embedUrl:T.getUrl(),thumbnails:D4(V$(T))}});
return{action:l,docs:V,viewToken:H,view:I||"photos",v2Translated:!0}},xDw=function(V,l){V=V.map(function(I){var H=_.fA(I,fCN,27);
H=_.WY(H,1,_.LQ,_.i4())[0];return{id:I.getId().getId(),serviceId:"contacts",mimeType:_.Rt(I,7),name:I.getName(),description:_.Rt(I,3),url:"mailto:"+H,thumbnail:[{url:_.Rt(I,11)}],email:H}});
return{action:l,docs:V,view:"contacts",v2Translated:!0}},IBN=function(V){if(!V)return{};
var l=_.Rt(V,3);l=l&&JSON.parse(l)||{};return{0:_.Rt(V,1),1:_.Rt(V,2),2:l}},D4=function(V,l){l=l===void 0?"":l;
if(!V.length)return null;l=="etjpg"&&(V=V.filter(function(I){return I.getUrl().includes("w1200-h300")}));
return V.map(function(I){return{url:I.getUrl(),height:I.getHeight(),width:I.getWidth(),type:l}})},jSw=function(V){return{isAttachment:V.some(function(l){return _.DV(l,31)})}},YhN=function(V){var l,I={id:(l=V.getId())==null?void 0:l.getId(),
serviceId:e6N(V),mimeType:_.Rt(V,7),name:V.getName(),type:P_(V),sizeBytes:Number(NIf(V)),description:_.Rt(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:D4(V$(V)),isNew:!0};if(l=_.fA(V,mJ,30)){I.dataUrl=_.Rt(l,1)||null;a:{var H=_.fA(V,mJ,30);switch(_.Qh(H,3)){case 9:H=_.bQ(H,IKJ,2,i_);H={remoteRefs:H&&_.Rt(H,1)};break a;case 10:case 15:H=_.bQ(H,lKb,4,i_);var T=V$(V);H={photo_id:H&&_.Rt(H,1),media_key:V.getId().getId(),media_type:_.Qh(V,6)===1?1:2,image_url:T&&
T[0].getUrl(),width:T&&String(T[0].getWidth()),height:T&&String(T[0].getHeight())};break a}H=null}I.uploadMetadata=H;I.uploadId=_.Rt(l,9)||null;I.uploadState=kQN(l)||null}(H=l&&_.bQ(l,lKb,4,i_))&&(I.id=_.Rt(H,1));(H=l&&_.bQ(l,Hki,5,i_))&&(I.contentId=_.Rt(H,1));(H=l&&_.bQ(l,idZ,7,i_))&&(I.contentId=_.Rt(H,1));(H=l&&_.bQ(l,VdZ,6,i_))&&(I.contentId=_.Rt(H,1));(l==null?void 0:_.Qh(l,3))===1&&(I.mediaKey=V.getId().getId());return I},e6N=function(V){var l;
switch(((l=_.fA(V,mJ,30))==null?void 0:_.Qh(l,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},P_=function(V){switch(_.Qh(V,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 _.Rt(V,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},kQN=function(V){switch(V==null?void 0:_.Qh(V,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 y2E,Fu3,XaW,z6N;_.Z4=function(V,l){var I=l||{};l=I.document||document;var H=_.tV(V).toString(),T=(new Pi(l)).createElement("SCRIPT"),x={script_:T,timeout_:void 0},n=new OR(Fu3,x),w=null,N=I.timeout!=null?I.timeout:5E3;N>0&&(w=window.setTimeout(function(){XaW(T,!0);n.errback(new z6N(1,"Timeout reached for loading script "+H))},N),x.timeout_=w);
T.onload=T.onreadystatechange=function(){T.readyState&&T.readyState!="loaded"&&T.readyState!="complete"||(XaW(T,I.cleanupWhenDone||!1,w),n.callback(null))};
T.onerror=function(){XaW(T,!0,w);n.errback(new z6N(0,"Error while loading script "+H))};
x=I.attributes||{};_.EL.extend(x,{type:"text/javascript",charset:"UTF-8"});TpE(T,x);_.gp(T,V);y2E(l).appendChild(T);return n};
y2E=function(V){var l=LS("HEAD",V);return l&&l.length!==0?l[0]:V.documentElement};
Fu3=function(){if(this&&this.script_){var V=this.script_;V&&V.tagName=="SCRIPT"&&XaW(V,!0,this.timeout_)}};
XaW=function(V,l,I){I!=null&&_.nK.clearTimeout(I);V.onload=function(){};
V.onerror=function(){};
V.onreadystatechange=function(){};
l&&window.setTimeout(function(){_.Yw(V)},0)};
z6N=function(V,l){var I="Jsloader error (code #"+V+")";l&&(I+=": "+l);_.I1.call(this,I);this.code=V};
_.Uk(z6N,_.I1);var tQB=_.fl(["https://apis.google.com/js/api.js"]),r2Z=_.TP(tQB),oeZ=function(V,l){var I=!1,H=GQE(V,l).then(function(x){I=!0;return x}),T=_.iGa(5E3).then(function(){return I?GQE(V,l):EeB(l).then(function(x){return J2N(x,V)})});
return MPN([H,T])},GQE=function(V,l){return h6Z(l).then(function(I){return J2N(I,V)})},J2N=function(V,l){var I=_.Nq(l,"gapi.")?l.slice(5):l;
return V[I]?_.w6(V[I]):new _.UZ(function(H,T){var x=om(function(){T(Error("cb"))},3E4);
V.load(l,{callback:function(){_.nK.clearTimeout(x);H(V[I])},
onerror:function(n){_.nK.clearTimeout(x);T(n)}})})},h6Z=function(V){return V.gapi&&V.gapi.load?_.w6(V.gapi):EeB(V)},EeB=function(V){return _.Z4(r2Z,{document:V.document}).then(function(){return V.gapi})},PGZ=function(){};
PGZ.prototype.load=function(V,l){l=l===void 0?window:l;var I=Date.now();return oeZ(V,l).then(function(H){var T=Date.now();return{library:H,loadStartMs:I,loadEndMs:T}},function(H){throw H instanceof Error?H:Error(String(H));
})};var Aqg=function(){_.XG.call(this);this.gapiLoader_=new PGZ;this.origin_=null;this.gapiPickerIframeResolver_=_.QN();this.gapiIframesResolver_=_.QN();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.t(Aqg,_.XG);var DDw=function(V,l){var I=_.SN("gapi.iframes",l);return I?(V=Date.now(),_.w6({library:I,loadStartMs:V,loadEndMs:V})):V.gapiLoader_.load("gapi.iframes",l)},Z0N=function(V,l,I,H,T,x){var n=!0;
n=n===void 0?!1:n;DDw(V,hH(l.ownerDocument)).then(function(w){var N=w.library;V.gapiIframesResolver_.resolve(N);w=V.gapiPickerIframeResolver_;var L=w.resolve,e=n;e=e===void 0?!1:e;var k={};k["host-message-handler"]=I;V.hostMessageHandlerInternal_=k;var X=_.Wv(H);X=_.Wv(X);X=_.IB(_.ln(_.Vu(new _.OA,X.scheme_),X.JSC$7896_domain_),X.JSC$7896_port_).toString();V.origin_=X;X=(new fpB).setUrl(H);X.JSC$7911_obj_.where=l;X.JSC$7911_obj_.allowPost=e;X.JSC$7911_obj_.messageHandlers=k;e=_.SN("makeWhiteListIframesFilter",
N)([V.origin_]);X.JSC$7911_obj_.messageHandlersFilter=e;T!=null&&(X.JSC$7911_obj_.id=T);x!=null&&(X.JSC$7911_obj_.rpctoken=x);e=apZ(X);e.JSC$7908_obj_.style={display:"block","min-width":"100%",width:"1px"};e.JSC$7908_obj_.height="100%";apZ(X).value().allow="camera 'src' "+V.origin_;N=N.getContext().openChild(X.value());L.call(w,N)},function(w){V.gapiIframesResolver_.reject(w);
V.gapiPickerIframeResolver_.reject(w)});
return V.gapiPickerIframeResolver_.promise},Sho=function(V,l){return _.ER([V.gapiIframesResolver_.promise,
V.gapiPickerIframeResolver_.promise]).then(function(I){var H=_.U(I);I=H.next().value;return(H=H.next().value)?H.send("picker-message-handler",l,void 0,_.SN("makeWhiteListIframesFilter",I)([V.origin_])):_.bK(Error("db"))})};
Aqg.prototype.disposeInternal=function(){R6Z(this);_.XG.prototype.disposeInternal.call(this)};
var R6Z=function(V){V.gapiPickerIframeResolver_.promise.then(function(l){l&&(l.unregister("host-message-handler"),delete V.hostMessageHandlerInternal_["host-message-handler"])})};var QSZ=function(){this.nextId=0};var Wuw=function(V,l){switch(V.action){case "select-contacts":V=c2o(V.contacts);break;case "visibility":V=V.visible;var I=new HH;V=_.MU(I,1,7).setVisible(V);I={};I["iframe-command"]=V.serialize();V=I;break;default:V=null}return V?Sho(l,V):_.w6()},c2o=function(V){if(!V||V.length==0)return null;
var l=new HH;_.MU(l,1,11);var I=new QSZ;V.forEach(function(H){if(H.email){var T=new J3;T=_.lR(T,2,H.name?H.name:H.email);var x=new fCN;H=_.G2g(x,1,_.jb,H.email,_.LQ);H=_.j6(T,27,H);T=new Odv;x=":"+(I.nextId++).toString(36);T=_.lR(T,1,x);T=_.MU(T,2,12);H=_.j6(H,1,T)}else H=null;H&&wT(l,7,J3,H)});
V={};V["iframe-command"]=l.serialize();return V};_.b0Z=function(){if(GlK){var V=/Windows NT ([0-9.]+)/;return(V=V.exec(_.zw()))?V[1]:"0"}return _.rbq?(V=/1[0|1][_.][0-9_.]+/,(V=V.exec(_.zw()))?V[0].replace(/_/g,"."):"10"):A4N?(V=/Android\s+([^\);]+)(\)|;)/,(V=V.exec(_.zw()))?V[1]:""):JbN||oON||hUq?(V=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(V=V.exec(_.zw()))?V[1].replace(/_/g,"."):""):""}();var ST;ST=function(V){return(V=V.exec(_.zw()))?V[1]:""};
_.qhW=function(){if(_.Yv)return ST(/Firefox\/([0-9.]+)/);if(_.NU||_.Ml||zUJ)return _.cby;if(_.Lj){if(_.R1()||_.L3N()){var V=ST(/CriOS\/([0-9.]+)/);if(V)return V}return ST(/Chrome\/([0-9.]+)/)}if(_.ov&&!_.R1())return ST(/Version\/([0-9.]+)/);if(KdT||jA3){if(V=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.zw()))return V[1]+"."+V[2]}else if(Mrq)return(V=ST(/Android\s+([0-9.]+)/))?V:ST(/Version\/([0-9.]+)/);return""}();var MQN=function(){};
_.Bn(MQN);MQN.prototype.nextId_=0;_.Sn=function(V){return":"+(V.nextId_++).toString(36)};var RB=function(V){_.tm.call(this);this.JSC$8009_dom_=V||kp();this.JSC$8009_id_=null;this.inDocument_=!1;this.JSC$8009_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Uk(RB,_.tm);RB.prototype.idGenerator_=MQN.getInstance();RB.prototype.getId=function(){return this.JSC$8009_id_||(this.JSC$8009_id_=_.Sn(this.idGenerator_))};
RB.prototype.getElement=function(){return this.JSC$8009_element_};
var Qu=function(V){V.googUiComponentHandler_||(V.googUiComponentHandler_=new _.ig(V));return V.googUiComponentHandler_},sSN=function(V,l){if(V==l)throw Error("eb");
var I;if(I=l&&V.parent_&&V.JSC$8009_id_){I=V.parent_;var H=V.JSC$8009_id_;I=I.childIndex_&&H?_.EL.get(I.childIndex_,H)||null:null}if(I&&V.parent_!=l)throw Error("eb");V.parent_=l;RB.superClass_.setParentEventTarget.call(V,l)};
RB.prototype.setParentEventTarget=function(V){if(this.parent_&&this.parent_!=V)throw Error("fb");RB.superClass_.setParentEventTarget.call(this,V)};
RB.prototype.JSC$8011_createDom=function(){this.JSC$8009_element_=this.JSC$8009_dom_.createElement("DIV")};
RB.prototype.render=function(V){pa3(this,V)};
var pa3=function(V,l,I){if(V.inDocument_)throw Error("gb");V.JSC$8009_element_||V.JSC$8011_createDom();l?l.insertBefore(V.JSC$8009_element_,I||null):V.JSC$8009_dom_.JSC$7235_document_.body.appendChild(V.JSC$8009_element_);V.parent_&&!V.parent_.inDocument_||V.enterDocument()};
_.B=RB.prototype;_.B.decorate=function(V){if(this.inDocument_)throw Error("gb");if(V&&this.canDecorate(V)){this.wasDecorated_=!0;var l=_.Z3(V);this.JSC$8009_dom_&&this.JSC$8009_dom_.JSC$7235_document_==l||(this.JSC$8009_dom_=kp(V));this.decorateInternal(V);this.enterDocument()}else throw Error("hb");};
_.B.canDecorate=function(){return!0};
_.B.decorateInternal=function(V){this.JSC$8009_element_=V};
_.B.enterDocument=function(){this.inDocument_=!0;A2b(this,function(V){!V.inDocument_&&V.getElement()&&V.enterDocument()})};
_.B.exitDocument=function(){A2b(this,function(V){V.inDocument_&&V.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.B.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);A2b(this,function(V){V.dispose()});
!this.wasDecorated_&&this.JSC$8009_element_&&_.Yw(this.JSC$8009_element_);this.parent_=this.model_=this.JSC$8009_element_=this.childIndex_=this.children_=null;RB.superClass_.disposeInternal.call(this)};
_.B.getModel=function(){return this.model_};
_.B.addChild=function(V,l){var I=this.children_?this.children_.length:0;if(V.inDocument_&&(l||!this.inDocument_))throw Error("gb");if(I<0||I>(this.children_?this.children_.length:0))throw Error("ib");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);V.parent_==this?(_.EL.set(this.childIndex_,V.getId(),V),_.A1(this.children_,V)):_.EL.add(this.childIndex_,V.getId(),V);sSN(V,this);_.r1W(this.children_,I,0,V);V.inDocument_&&this.inDocument_&&V.parent_==this?(l=this.getContentElement(),
(l.childNodes[I]||null)!=V.getElement()&&(V.getElement().parentElement==l&&l.removeChild(V.getElement()),I=l.childNodes[I]||null,l.insertBefore(V.getElement(),I))):l?(this.JSC$8009_element_||this.JSC$8011_createDom(),I=this.children_?this.children_[I+1]||null:null,pa3(V,this.getContentElement(),I?I.JSC$8009_element_:null)):this.inDocument_&&!V.inDocument_&&V.JSC$8009_element_&&V.JSC$8009_element_.parentNode&&V.JSC$8009_element_.parentNode.nodeType==1&&V.enterDocument()};
_.B.getContentElement=function(){return this.JSC$8009_element_};
var A2b=function(V,l){V.children_&&V.children_.forEach(l,void 0)};
RB.prototype.removeChild=function(V,l){if(V){var I=typeof V==="string"?V:V.getId();V=this.childIndex_&&I?_.EL.get(this.childIndex_,I)||null:null;I&&V&&(_.EL.remove(this.childIndex_,I),_.A1(this.children_,V),l&&(V.exitDocument(),V.JSC$8009_element_&&_.Yw(V.JSC$8009_element_)),sSN(V,null))}if(!V)throw Error("jb");return V};_.Uk(Rmf,S_y);_.Uk(Qv1,S_y);var uf3;var veN=function(V,l){l?V.setAttribute("role",l):V.removeAttribute("role")},c_=function(V,l,I){Array.isArray(I)&&(I=I.join(" "));
var H="aria-"+l;I===""||I==void 0?(uf3||(I={},uf3=(I.atomic=!1,I.autocomplete="none",I.dropeffect="none",I.haspopup=!1,I.live="off",I.multiline=!1,I.multiselectable=!1,I.orientation="vertical",I.readonly=!1,I.relevant="additions text",I.required=!1,I.sort="none",I.busy=!1,I.disabled=!1,I.hidden=!1,I.invalid="false",I)),I=uf3,l in I?V.setAttribute(H,I[l]):V.removeAttribute(H)):V.setAttribute(H,I)};var O0B;_.W_=function(V,l,I){_.tm.call(this);this.target=V;this.handle=l||V;this.limits=I||new sY(NaN,NaN,NaN,NaN);this.JSC$8014_document_=_.Z3(V);this.JSC$8014_eventHandler_=new _.ig(this);_.$w(this,this.JSC$8014_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;_.NR(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=O0B};
_.Uk(_.W_,_.tm);O0B=_.nK.document&&_.nK.document.documentElement&&!!_.nK.document.documentElement.setCapture&&!!_.nK.document.releaseCapture;_.CGE=function(V,l){V.hysteresisDistanceSquared_=Math.pow(l,2)};
_.B=_.W_.prototype;_.B.getEnabled=function(){return this.enabled_};
_.B.setEnabled=function(V){this.enabled_=V};
_.B.disposeInternal=function(){_.W_.superClass_.disposeInternal.call(this);_.y$(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8014_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8014_document_.releaseCapture();this.handle=this.target=null};
_.B.startDrag=function(V){var l=V.type=="mousedown";if(!this.enabled_||this.dragging_||l&&(V.event_.button!=0||_.rbq&&V.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new bn("start",this,V.clientX,V.clientY,V)))this.dragging_=!0,l&&V.preventDefault();else return;else l&&V.preventDefault();l=this.JSC$8014_document_;var I=l.documentElement,H=!this.useSetCapture_;this.JSC$8014_eventHandler_.listen(l,["touchmove","mousemove"],this.handleMove_,
{capture:H,passive:!1});this.JSC$8014_eventHandler_.listen(l,["touchend","mouseup"],this.endDrag,H);this.useSetCapture_?(I.setCapture(!1),this.JSC$8014_eventHandler_.listen(I,"losecapture",this.endDrag)):this.JSC$8014_eventHandler_.listen(hH(l),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8014_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,H);this.clientX=this.startX=V.clientX;this.clientY=this.startY=V.clientY;this.screenX=V.screenX;this.screenY=V.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=eP(kp(this.JSC$8014_document_))}};
_.B.endDrag=function(V,l){this.JSC$8014_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8014_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new bn("end",this,V.clientX,V.clientY,V,aBW(this,this.deltaX),fBo(this,this.deltaY),l||V.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.B.handleMove_=function(V){if(this.enabled_){var l=V.clientX-this.clientX,I=V.clientY-this.clientY;this.clientX=V.clientX;this.clientY=V.clientY;this.screenX=V.screenX;this.screenY=V.screenY;if(!this.dragging_){var H=this.startX-this.clientX,T=this.startY-this.clientY;if(H*H+T*T>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new bn("start",this,V.clientX,V.clientY,V)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(V);return}}I=ge0(this,l,I);l=I.x;I=I.y;this.dragging_&&this.dispatchEvent(new bn("beforedrag",
this,V.clientX,V.clientY,V,l,I))&&(mD0(this,V,l,I),V.preventDefault())}};
var ge0=function(V,l,I){var H=eP(kp(V.JSC$8014_document_));l+=H.x-V.pageScroll.x;I+=H.y-V.pageScroll.y;V.pageScroll=H;V.deltaX+=l;V.deltaY+=I;return new _.og(aBW(V,V.deltaX),fBo(V,V.deltaY))};
_.W_.prototype.onScroll_=function(V){var l=ge0(this,0,0);V.clientX=this.clientX;V.clientY=this.clientY;mD0(this,V,l.x,l.y)};
var mD0=function(V,l,I,H){V.target.style.left=I+"px";V.target.style.top=H+"px";V.dispatchEvent(new bn("drag",V,l.clientX,l.clientY,l,I,H))},aBW=function(V,l){var I=V.limits;
V=isNaN(I.left)?null:I.left;I=isNaN(I.width)?0:I.width;return Math.min(V!=null?V+I:Infinity,Math.max(V!=null?V:-Infinity,l))},fBo=function(V,l){var I=V.limits;
V=isNaN(I.top)?null:I.top;I=isNaN(I.height)?0:I.height;return Math.min(V!=null?V+I:Infinity,Math.max(V!=null?V:-Infinity,l))};
_.W_.prototype.isDragging=function(){return this.dragging_};
var bn=function(V,l,I,H,T,x,n){_.kL.call(this,V);this.clientX=I;this.clientY=H;this.browserEvent=T;this.left=x!==void 0?x:l.deltaX;this.top=n!==void 0?n:l.deltaY};
_.Uk(bn,_.kL);var q_=function(V){this.JSC$8021_map_=new Map;var l=arguments.length;if(l>1){if(l%2)throw Error("oa");for(var I=0;I<l;I+=2)this.set(arguments[I],arguments[I+1])}else V&&this.addAll(V)};
_.B=q_.prototype;_.B.getCount=function(){return this.JSC$8021_map_.size};
_.B.getValues=function(){return Array.from(this.JSC$8021_map_.values())};
_.B.getKeys=function(){return Array.from(this.JSC$8021_map_.keys())};
_.B.containsKey=function(V){return this.JSC$8021_map_.has(V)};
_.B.containsValue=function(V){return this.getValues().some(function(l){return l==V})};
_.B.equals=function(V,l){var I=this;l=l===void 0?function(H,T){return H===T}:l;
return this===V?!0:this.JSC$8021_map_.size!=V.getCount()?!1:this.getKeys().every(function(H){return l(I.JSC$8021_map_.get(H),V.get(H))})};
_.B.isEmpty=function(){return this.JSC$8021_map_.size==0};
_.B.clear=function(){this.JSC$8021_map_.clear()};
_.B.remove=function(V){return this.JSC$8021_map_.delete(V)};
_.B.get=function(V,l){return this.JSC$8021_map_.has(V)?this.JSC$8021_map_.get(V):l};
_.B.set=function(V,l){this.JSC$8021_map_.set(V,l);return this};
_.B.addAll=function(V){if(V instanceof q_){V=_.U(V.JSC$8021_map_);for(var l=V.next();!l.done;l=V.next()){var I=_.U(l.value);l=I.next().value;I=I.next().value;this.JSC$8021_map_.set(l,I)}}else if(V)for(V=_.U(Object.entries(V)),l=V.next();!l.done;l=V.next())I=_.U(l.value),l=I.next().value,I=I.next().value,this.JSC$8021_map_.set(l,I)};
_.B.forEach=function(V,l){var I=this;l=l===void 0?this:l;this.JSC$8021_map_.forEach(function(H,T){return V.call(l,H,T,I)})};
_.B.clone=function(){return new q_(this)};(function(){for(var V=["ms","moz","webkit","o"],l,I=0;l=V[I]&&!_.nK.requestAnimationFrame;++I)_.nK.requestAnimationFrame=_.nK[l+"RequestAnimationFrame"],_.nK.cancelAnimationFrame=_.nK[l+"CancelAnimationFrame"]||_.nK[l+"CancelRequestAnimationFrame"];if(!_.nK.requestAnimationFrame){var H=0;_.nK.requestAnimationFrame=function(T){var x=(new Date).getTime(),n=Math.max(0,16-(x-H));H=x+n;return _.nK.setTimeout(function(){T(x+n)},n)};
_.nK.cancelAnimationFrame||(_.nK.cancelAnimationFrame=function(T){clearTimeout(T)})}})();
var i0E=[[],[]],VtN=0,l1J=!1,I1B=0,TTb=function(V,l){var I=I1B++,H={measureTask:{id:I,fn:V.measure,context:l},mutateTask:{id:I,fn:V.mutate,context:l},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(H.args||(H.args=[]),H.args.length=0,H.args.push.apply(H.args,arguments),H.args.push(H.state)):H.args&&H.args.length!=0?(H.args[0]=H.state,H.args.length=1):H.args=[H.state];H.isScheduled||(H.isScheduled=!0,i0E[VtN].push(H));l1J||(l1J=!0,window.requestAnimationFrame(HOb))}},HOb=
function(){l1J=!1;
var V=i0E[VtN],l=V.length;VtN=(VtN+1)%2;for(var I,H=0;H<l;++H){I=V[H];var T=I.measureTask;I.isScheduled=!1;T.fn&&T.fn.apply(T.context,I.args)}for(H=0;H<l;++H)I=V[H],T=I.mutateTask,I.isScheduled=!1,T.fn&&T.fn.apply(T.context,I.args),I.state={};V.length=0};var BTZ=_.fl(["about:blank"]),x4a=_.fl(["javascript:undefined"]),U4Z=_.TP(BTZ);_.tV(U4Z);var nlv=_.TP(x4a);_.tV(nlv);var M_=function(V){_.tm.call(this);this.JSC$8027_element_=V;this.listenKeyIn_=_.NR(this.JSC$8027_element_,"focus",this,!0);this.listenKeyOut_=_.NR(this.JSC$8027_element_,"blur",this,!0)};
_.Uk(M_,_.tm);M_.prototype.handleEvent=function(V){var l=new _.Ft(V.event_);l.type=V.type=="focusin"||V.type=="focus"?"focusin":"focusout";this.dispatchEvent(l)};
M_.prototype.disposeInternal=function(){M_.superClass_.disposeInternal.call(this);$7(this.listenKeyIn_);$7(this.listenKeyOut_);delete this.JSC$8027_element_};var $4N=function(V,l){this.JSC$8030_element_=V;this.JSC$8030_dom_=l};var sO=function(V,l){RB.call(this,l);this.useIframeMask_=!!V;this.lastFocus_=null;this.resizeBackgroundTask_=TTb({mutate:this.resizeBackground_},this);TTb({mutate:this.updateModalAndBackground_},this)};
_.Uk(sO,RB);_.B=sO.prototype;_.B.focusHandler_=null;_.B.visible_=!1;_.B.bgEl_=null;_.B.bgIframeEl_=null;_.B.tabCatcherElement_=null;_.B.backwardTabWrapInProgress_=!1;_.B.getCssClass=function(){return"goog-modalpopup"};
_.B.getBackgroundElement=function(){return this.bgEl_};
_.B.JSC$8011_createDom=function(){sO.superClass_.JSC$8011_createDom.call(this);var V=this.getElement(),l=_.nj(this.getCssClass()).split(" ");uU(V,l);V.tabIndex=0;_.Mx(V,!1);d40(this);wFw(this)};
var d40=function(V){if(V.useIframeMask_&&!V.bgIframeEl_){var l=V.JSC$8009_dom_.JSC$7237_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.AV(l,U4Z);V.bgIframeEl_=l;V.bgIframeEl_.className=V.getCssClass()+"-bg";_.Mx(V.bgIframeEl_,!1);cVb(V.bgIframeEl_,0)}V.bgEl_||(V.bgEl_=V.JSC$8009_dom_.JSC$7237_createDom("DIV",V.getCssClass()+"-bg"),_.Mx(V.bgEl_,!1))},wFw=function(V){V.tabCatcherElement_||(V.tabCatcherElement_=V.JSC$8009_dom_.createElement("SPAN"),_.Mx(V.tabCatcherElement_,
!1),V.tabCatcherElement_.tabIndex=0,V.tabCatcherElement_.style.position="absolute")};
_.B=sO.prototype;_.B.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.B.canDecorate=function(V){return!!V&&V.tagName=="DIV"};
_.B.decorateInternal=function(V){sO.superClass_.decorateInternal.call(this,V);V=_.nj(this.getCssClass()).split(" ");uU(this.getElement(),V);d40(this);wFw(this);this.getElement().tabIndex=0;_.Mx(this.getElement(),!1)};
_.B.enterDocument=function(){this.bgIframeEl_&&_.Wi(this.bgIframeEl_,this.getElement());_.Wi(this.bgEl_,this.getElement());sO.superClass_.enterDocument.call(this);_.b_(this.tabCatcherElement_,this.getElement());this.focusHandler_=new M_(this.JSC$8009_dom_.JSC$7235_document_);Qu(this).listen(this.focusHandler_,"focusin",this.onFocus);NTZ(this,!1)};
_.B.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.ag(this.focusHandler_);sO.superClass_.exitDocument.call(this);_.Yw(this.bgIframeEl_);_.Yw(this.bgEl_);_.Yw(this.tabCatcherElement_)};
_.B.setVisible=function(V){if(V!=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_&&NTZ(this,V),V){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8009_dom_.JSC$7235_document_.activeElement}catch(T){}this.updateModalAndBackground_();Qu(this).listen(this.JSC$8009_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8009_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);K5o(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)nt(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Qu(this).unlisten(this.JSC$8009_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8009_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)nt(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var l=this.JSC$8009_dom_,I=l.JSC$7235_document_.body,H=l.JSC$7235_document_.activeElement||I;if(!this.lastFocus_||this.lastFocus_==I){this.lastFocus_=null;break a}(H==I||l.contains(this.getElement(),H))&&this.lastFocus_.focus()}catch(T){}this.lastFocus_=
null}}};
var NTZ=function(V,l){V.modalAriaVisibilityHelper_||(V.modalAriaVisibilityHelper_=new $4N(V.JSC$8009_element_,V.JSC$8009_dom_));V=V.modalAriaVisibilityHelper_;if(l){V.hiddenElements_||(V.hiddenElements_=[]);l=V.JSC$8030_dom_.getChildren(V.JSC$8030_dom_.JSC$7235_document_.body);for(var I=0;I<l.length;I++){var H=l[I],T;if(T=H!=V.JSC$8030_element_)T=H.getAttribute("aria-hidden"),T=!(T==null||T==void 0?0:String(T));T&&(c_(H,"hidden",!0),V.hiddenElements_.push(H))}}else if(V.hiddenElements_){for(l=0;l<
V.hiddenElements_.length;l++)V.hiddenElements_[l].removeAttribute("aria-hidden");V.hiddenElements_=null}};
sO.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var K5o=function(V,l){V.bgIframeEl_&&_.Mx(V.bgIframeEl_,l);V.bgEl_&&_.Mx(V.bgEl_,l);_.Mx(V.getElement(),l);_.Mx(V.tabCatcherElement_,l)};
_.B=sO.prototype;_.B.onShow=function(){this.dispatchEvent("show")};
_.B.onHide=function(){K5o(this,!1);this.dispatchEvent("hide")};
_.B.isVisible=function(){return this.visible_};
_.B.focus=function(){this.focusElement_()};
_.B.resizeBackground_=function(){this.bgIframeEl_&&_.Mx(this.bgIframeEl_,!1);this.bgEl_&&_.Mx(this.bgEl_,!1);var V=this.JSC$8009_dom_.JSC$7235_document_;var l=_.LG(hH(this.JSC$8009_dom_.JSC$7235_document_)||window);var I=Math.max(l.width,Math.max(V.body.scrollWidth,V.documentElement.scrollWidth));V=Math.max(l.height,Math.max(V.body.scrollHeight,V.documentElement.scrollHeight));this.bgIframeEl_&&(_.Mx(this.bgIframeEl_,!0),_.Zdb(this.bgIframeEl_,I,V));this.bgEl_&&(_.Mx(this.bgEl_,!0),_.Zdb(this.bgEl_,
I,V))};
_.B.reposition=function(){var V;if(_.DVN(this.getElement())=="fixed")var l=V=0;else l=eP(this.JSC$8009_dom_),V=l.x,l=l.y;var I=RME(this.getElement());var H=_.LG(hH(this.JSC$8009_dom_.JSC$7235_document_)||window);V=Math.max(V+H.width/2-I.width/2,0);l=Math.max(l+H.height/2-I.height/2,0);u_(this.getElement(),V,l);u_(this.tabCatcherElement_,V,l)};
_.B.onFocus=function(V){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():V.target==this.tabCatcherElement_&&om(this.focusElement_,0,this)};
_.B.focusElement_=function(){try{this.getElement().focus()}catch(V){}};
_.B.disposeInternal=function(){_.ag(this.popupShowTransition_);this.popupShowTransition_=null;_.ag(this.popupHideTransition_);this.popupHideTransition_=null;_.ag(this.bgShowTransition_);this.bgShowTransition_=null;_.ag(this.bgHideTransition_);this.bgHideTransition_=null;sO.superClass_.disposeInternal.call(this)};var Pv=function(V,l,I){sO.call(this,l,I);this.JSC$8040_class_=V||"modal-dialog";this.buttons_=(new pH).addButton(jVv,!0).addButton(YZv,!1,!0)};
_.Uk(Pv,sO);_.B=Pv.prototype;_.B.escapeToCancel_=!0;_.B.hasTitleCloseButton_=!0;_.B.modal_=!0;_.B.draggable_=!0;_.B.backgroundElementOpacity_=.5;_.B.title_="";_.B.JSC$8042_dragger_=null;_.B.JSC$8042_disposeOnHide_=!1;_.B.titleEl_=null;_.B.titleTextEl_=null;_.B.titleTextId_=null;_.B.titleCloseEl_=null;_.B.contentEl_=null;_.B.buttonEl_=null;_.B.getCssClass=function(){return this.JSC$8040_class_};
_.B.setTitle=function(V){this.title_=V;this.titleTextEl_&&_.Ma(this.titleTextEl_,V)};
_.B.getTitle=function(){return this.title_};
_.B.getContent=function(){return""};
_.B.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var L5W=function(V){V.getElement()||V.render();return V.getElement()};
Pv.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Pv.superClass_.getBackgroundElement.call(this)};
var exZ=function(V,l){V.backgroundElementOpacity_=l;V.getElement()&&(l=V.getBackgroundElement())&&cVb(l,V.backgroundElementOpacity_)};
Pv.prototype.setDraggable=function(V){this.draggable_=V;krw(this,V&&this.inDocument_)};
Pv.prototype.JSC$8042_handleDrag=function(){};
var krw=function(V,l){var I=_.nj(V.JSC$8040_class_+"-title-draggable").split(" ");V.getElement()&&(l?uU(V.titleEl_,I):uk0(V.titleEl_,I));l&&!V.JSC$8042_dragger_?(l=new _.W_(V.getElement(),V.titleEl_),V.JSC$8042_dragger_=l,uU(V.titleEl_,I),_.NR(V.JSC$8042_dragger_,"start",V.setDraggerLimits_,!1,V),_.NR(V.JSC$8042_dragger_,"drag",V.JSC$8042_handleDrag,!1,V)):!l&&V.JSC$8042_dragger_&&(V.JSC$8042_dragger_.dispose(),V.JSC$8042_dragger_=null)};
_.B=Pv.prototype;
_.B.JSC$8011_createDom=function(){Pv.superClass_.JSC$8011_createDom.call(this);var V=this.getElement(),l=this.JSC$8009_dom_;this.titleTextId_=this.getId();var I=this.getId()+".contentEl";this.titleEl_=l.JSC$7237_createDom("DIV",this.JSC$8040_class_+"-title",this.titleTextEl_=l.JSC$7237_createDom("SPAN",{className:this.JSC$8040_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=l.JSC$7237_createDom("SPAN",this.JSC$8040_class_+"-title-close"));$V3(V,this.titleEl_,this.contentEl_=
l.JSC$7237_createDom("DIV",{className:this.JSC$8040_class_+"-content",id:I}),this.buttonEl_=l.JSC$7237_createDom("DIV",this.JSC$8040_class_+"-buttons"));veN(this.titleTextEl_,"heading");veN(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;c_(this.titleCloseEl_,"label","Close");veN(V,"dialog");c_(V,"labelledby",this.titleTextId_||"");_.Mx(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(V=this.buttons_,V.JSC$8043_element_=this.buttonEl_,V.render());_.Mx(this.buttonEl_,!!this.buttons_);
exZ(this,this.backgroundElementOpacity_)};
_.B.decorateInternal=function(V){Pv.superClass_.decorateInternal.call(this,V);V=this.getElement();var l=this.JSC$8040_class_+"-content";this.contentEl_=DN(document,null,l,V)[0];this.contentEl_||(this.contentEl_=this.JSC$8009_dom_.JSC$7237_createDom("DIV",l),V.appendChild(this.contentEl_));l=this.JSC$8040_class_+"-title";var I=this.JSC$8040_class_+"-title-text",H=this.JSC$8040_class_+"-title-close";(this.titleEl_=DN(document,null,l,V)[0])?(this.titleTextEl_=DN(document,null,I,this.titleEl_)[0],this.titleCloseEl_=
DN(document,null,H,this.titleEl_)[0]):(this.titleEl_=this.JSC$8009_dom_.JSC$7237_createDom("DIV",l),V.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=t6i(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Su("SPAN",{className:I,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;c_(V,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8009_dom_.JSC$7237_createDom("SPAN",
H),this.titleEl_.appendChild(this.titleCloseEl_));_.Mx(this.titleCloseEl_,this.hasTitleCloseButton_);l=this.JSC$8040_class_+"-buttons";(this.buttonEl_=DN(document,null,l,V)[0])?(this.buttons_=new pH(this.JSC$8009_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8009_dom_.JSC$7237_createDom("DIV",l),V.appendChild(this.buttonEl_),this.buttons_&&(V=this.buttons_,V.JSC$8043_element_=this.buttonEl_,V.render()),_.Mx(this.buttonEl_,!!this.buttons_));exZ(this,this.backgroundElementOpacity_)};
_.B.enterDocument=function(){Pv.superClass_.enterDocument.call(this);Qu(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Qu(this).listen(this.buttonEl_,"click",this.onButtonClick_);krw(this,this.draggable_);Qu(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var V=this.getElement();veN(V,"dialog");this.titleTextEl_.id!==""&&c_(V,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){V=this.JSC$8009_dom_;
var l=this.getBackgroundElement();V.removeNode(this.bgIframeEl_);V.removeNode(l)}this.isVisible()&&NTZ(this,!1)}};
_.B.exitDocument=function(){this.isVisible()&&this.setVisible(!1);krw(this,!1);Pv.superClass_.exitDocument.call(this)};
_.B.setVisible=function(V){V!=this.isVisible()&&(this.inDocument_||this.render(),Pv.superClass_.setVisible.call(this,V))};
_.B.onShow=function(){Pv.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.B.onHide=function(){Pv.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8042_disposeOnHide_&&this.dispose()};
_.B.setDraggerLimits_=function(){var V=this.JSC$8009_dom_.JSC$7235_document_,l=_.LG(hH(V)||window),I=Math.max(V.body.scrollWidth,l.width);V=Math.max(V.body.scrollHeight,l.height);var H=RME(this.getElement());_.DVN(this.getElement())=="fixed"?this.JSC$8042_dragger_.limits=new sY(0,0,Math.max(0,l.width-H.width),Math.max(0,l.height-H.height)):this.JSC$8042_dragger_.limits=new sY(0,0,I-H.width,V-H.height)};
_.B.onTitleCloseClick_=function(){F5B(this)};
var F5B=function(V){if(V.hasTitleCloseButton_){var l=V.buttons_,I=l&&l.cancelButton_;I?(l=l.get(I),V.dispatchEvent(new Au(I,l))&&V.setVisible(!1)):V.setVisible(!1)}},XFZ=function(V){V.hasTitleCloseButton_=!1;
V.titleCloseEl_&&_.Mx(V.titleCloseEl_,V.hasTitleCloseButton_)};
Pv.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Pv.superClass_.disposeInternal.call(this)};
Pv.prototype.onButtonClick_=function(V){a:{for(V=V.target;V!=null&&V!=this.buttonEl_;){if(V.tagName=="BUTTON")break a;V=V.parentNode}V=null}if(V&&!V.disabled){V=V.name;var l=this.buttons_.get(V);this.dispatchEvent(new Au(V,l))&&this.setVisible(!1)}};
Pv.prototype.onKey_=function(V){var l=!1,I=!1,H=this.buttons_,T=V.target;if(V.type=="keydown")if(this.escapeToCancel_&&V.keyCode==27){var x=H&&H.cancelButton_;T=T.tagName=="SELECT"&&!T.disabled;x&&!T?(I=!0,l=H.get(x),l=this.dispatchEvent(new Au(x,l))):T||(l=!0)}else{if(V.keyCode==9&&V.shiftKey&&T==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(e){}om(this.resetBackwardTabWrap_,0,this)}}else if(V.keyCode==13){if(T.tagName=="BUTTON"&&!T.disabled)x=T.name;
else if(T==this.titleCloseEl_)F5B(this);else if(H){var n=H.defaultButton_,w;if(w=n)a:{w=LS("BUTTON",H.JSC$8043_element_);for(var N,L=0;N=w[L];L++)if(N.name==n||N.id==n){w=N;break a}w=null}T=(T.tagName=="TEXTAREA"||T.tagName=="SELECT"||T.tagName=="A")&&!T.disabled;!w||w.disabled||T||(x=n)}x&&H&&(I=!0,l=this.dispatchEvent(new Au(x,String(H.get(x)))))}else T!=this.titleCloseEl_||V.keyCode!=32&&V.key!=" "||F5B(this);if(l||I)V.stopPropagation(),V.preventDefault();l&&this.setVisible(!1)};
var Au=function(V,l){this.type="dialogselect";this.key=V;this.caption=l};
_.Uk(Au,_.kL);var pH=function(V){q_.call(this);V||kp();this.cancelButton_=this.JSC$8043_element_=this.defaultButton_=null};
_.Uk(pH,q_);_.B=pH.prototype;_.B.clear=function(){q_.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.B.set=function(V,l,I,H){q_.prototype.set.call(this,V,l);I&&(this.defaultButton_=V);H&&(this.cancelButton_=V);return this};
_.B.addButton=function(V,l,I){return this.set(V.key,V.caption,l,I)};
_.B.render=function(){if(this.JSC$8043_element_){_.iY(this.JSC$8043_element_,C2g);var V=kp(this.JSC$8043_element_);this.forEach(function(l,I){l=V.JSC$7237_createDom("BUTTON",{name:I},l);I==this.defaultButton_&&(l.className="goog-buttonset-default");this.JSC$8043_element_.appendChild(l)},this)}};
_.B.decorate=function(V){if(V&&V.nodeType==1){this.JSC$8043_element_=V;V=LS("BUTTON",this.JSC$8043_element_);for(var l,I,H,T=0;l=V[T];T++)if(I=l.name||l.id,H=t6i(l)||l.value,I){var x=T==0;this.set(I,H,x,l.name=="cancel");x&&_.WX(l,"goog-buttonset-default")}}};
_.B.getElement=function(){return this.JSC$8043_element_};
var jVv={key:"ok",caption:"OK"},YZv={key:"cancel",caption:"Cancel"},zxW={key:"yes",caption:"Yes"},yFw={key:"no",caption:"No"},ttN={key:"save",caption:"Save"},rFZ={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new pH).addButton(jVv,!0,!0),(new pH).addButton(jVv,!0).addButton(YZv,!1,!0),(new pH).addButton(zxW,!0).addButton(yFw,!1,!0),(new pH).addButton(zxW).addButton(yFw,!0).addButton(YZv,!1,!0),(new pH).addButton(rFZ).addButton(ttN).addButton(YZv,!0,!0));_.Uk(cqN,Pv);_.Uk(W6K,Dl);var Grv=_.fl(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),ElB=_.fl(["//apis.google.com/js/rpc.js"]),OAf=_.TP(Grv),vdw=_.TP(ElB),q_T=null;var Zl=function(V,l){_.tm.call(this);this.JSC$8052_element_=V;V=_.sh(this.JSC$8052_element_)?this.JSC$8052_element_:this.JSC$8052_element_?this.JSC$8052_element_.body:null;this.isRtl_=!!V&&_.Wx0(V);this.listenKey_=_.NR(this.JSC$8052_element_,_.Kj?"DOMMouseScroll":"mousewheel",this,l)};
_.Uk(Zl,_.tm);Zl.prototype.handleEvent=function(V){var l=0,I=0,H=V.event_;H.type=="mousewheel"?(V=JFw(-H.wheelDelta),H.wheelDeltaX!==void 0?(l=JFw(-H.wheelDeltaX),I=JFw(-H.wheelDeltaY)):I=V):(V=H.detail,V>100?V=3:V<-100&&(V=-3),H.axis!==void 0&&H.axis===H.HORIZONTAL_AXIS?l=V:I=V);typeof this.maxDeltaX_==="number"&&(l=_.cA(l,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(I=_.cA(I,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(l=-l);l=new olN(V,H,l,I);this.dispatchEvent(l)};
var JFw=function(V){return _.ja&&(_.rbq||EOJ)&&V%40!=0?V:V/40};
Zl.prototype.disposeInternal=function(){Zl.superClass_.disposeInternal.call(this);$7(this.listenKey_);this.listenKey_=null};
var olN=function(V,l,I,H){_.Ft.call(this,l);this.type="mousewheel";this.detail=V;this.deltaX=I;this.deltaY=H};
_.Uk(olN,_.Ft);_.$_=function(V){var l="instance_";if(V.instance_&&V.hasOwnProperty(l))return V.instance_;l=new V;return V.instance_=l};var uif;var hxN=_.fl(["https://about:blank"]),PxW=_.fl(['javascript:""']),D4B=_.fl(["about:blank"]);_.Uk(sX,cqN);_.B=sX.prototype;_.B.JSC$8060_url_="";_.B.JSC$8060_iframe_=null;_.B.iframeLoaded_=!1;_.B.loadedFired_=!1;_.B.callback_=function(){};
_.B.enterDocument=function(){sX.superClass_.enterDocument.call(this);pxq(this.getBackgroundElement(),Qu(this))};
_.B.render=function(V){var l=this;sX.superClass_.render.call(this,V);this.useGapi_?DDw(this.iframeManager_,window).then(function(){return ZOv(l)}).then(null,function(){l.callback_({action:"error"})}):SZN(this)};
var ZOv=function(V){var l=V.JSC$8009_dom_.JSC$7237_createDom("div",["picker-dialog-content","picker-frame"]);_.Mx(l,!1);V.getContentElement().appendChild(l);return Z0N(V.iframeManager_,l,function(I){var H=d0E(I["iframe-command"]);switch(H.getCommand()){case 1:I=V.callback_;H=_.fA(H,Im,2);var T="";switch(H.getStatus()){case 2:T="cancel";break;case 1:T="picked";break;case 3:T="error"}var x=_.m2(H,J3,2,_.i4(mcW));H=x.length===0?{action:T}:Kua(x,T,_.fA(H,U0w,7));I.call(V,H);V.setVisible(!1);break;case 4:XFZ(V);
V.callback_({action:"loaded"});break;case 7:case 8:I=V.callback_;a:{T=H.getCommand();x=_.fA(H,Im,2);switch(T){case 7:T="uploadScheduled";break;case 8:T="uploadStateChange";break;default:H={};break a}H=_.m2(x,J3,2,_.i4(mcW));if(H.length===0)H={action:T};else{var n=_.fA(x,U0w,7);x=n&&_.Rt(n,1);n=IBN(n);H=B0a(H,T,x,n)}}I.call(V,H)}},V.JSC$8060_url_,V.targetId_,V.rpcToken_).then(function(I){V.JSC$8060_iframe_=I.getIframeEl();
Rxa(V);_.Mx(V.JSC$8060_iframe_.parentElement,!0);_.WX(V.getElement(),"picker-dialog");QV0(V);return I})},SZN=function(V){V.JSC$8060_iframe_=V.JSC$8009_dom_.JSC$7237_createDom("IFRAME",{id:V.targetId_,
name:V.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.AV(V.JSC$8060_iframe_,cFw(V));_.WX(V.getElement(),"picker-dialog");V.getContentElement().appendChild(V.JSC$8060_iframe_);Qu(V).listen(V.JSC$8060_iframe_,"load",function(){return void Rxa(V)});
V.JSC$8060_iframe_.src=V.JSC$8060_url_;QV0(V)},bOi=function(V){W5v(V,(0,_.zN)(function(l){l.setAuthToken(this.targetId_,this.rpcToken_)},V))},QV0=function(V){var l=_.bO(_.Wv(V.JSC$8060_url_),"title");
l&&V.setTitle(l)},cFw=function(V){return _.K3c("Internet Explorer")>=7&&_.Nq(V.JSC$8060_url_,"https")?_.TP(hxN):_.NU?_.TP(PxW):_.TP(D4B)},Rxa=function(V){bOi(V);
V.iframeLoaded_=!0;V.JSC$8060_iframe_.tabIndex=0;V.isVisible()&&V.focus()};
sX.prototype.handleKeydown_=function(V){V.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),V.stopPropagation(),V.preventDefault())};
var W5v=function(V,l){var I=V.JSC$8058_gadgetsDomHelper_;MOq(function(){l(I.getWindow().gadgets.rpc)},I)};
sX.prototype.setUrl=function(V){V=_.qx(new _.OA(V),"rpcService",this.targetId_);_.qx(V,"rpctoken",this.rpcToken_);_.B_(V,"rpctoken="+this.rpcToken_);_.Vu(V,"https");this.JSC$8060_url_=V.toString();this.JSC$8060_iframe_&&(this.JSC$8060_iframe_.src=this.JSC$8060_url_)};
var qZZ=function(V,l){V.callback_=l;W5v(V,(0,_.zN)(function(I){I.register(this.targetId_,(0,_.zN)(this.handlePickerAction_,this))},V))};
sX.prototype.handlePickerAction_=function(V){var l=V.action;l=="loaded"&&(this.loadedFired_=!0,Mtv(this,new Qv1(this.isVisible())),sVw(this),XFZ(this),Qu(this).unlisten(this.JSC$8009_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8060_iframe_.tabIndex=0);l!="picked"&&l!="cancel"||this.setVisible(!1);this.callback_(V)};
var sVw=function(V){V.JSC$8060_appId_&&Mtv(V,new Rmf(V.JSC$8060_appId_,window.location.protocol+"//"+window.location.host))};
sX.prototype.setRelayUrl=function(V){W5v(this,(0,_.zN)(function(l){l.setRelayUrl(this.targetId_,V)},this))};
var Mtv=function(V,l){V.useGapi_&&Wuw(l,V.iframeManager_).then(null,function(){V.callback_({action:"error"})});
W5v(V,(0,_.zN)(function(I){I.call(this.targetId_,"picker",null,l)},V))};
sX.prototype.resizePicker_=function(){var V=hH(this.JSC$8009_dom_.JSC$7235_document_)||window;if(_.bO(_.Wv(this.JSC$8060_url_),"ignoreLimits")=="true")V=new _.Yp(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.bO(_.Wv(this.JSC$8060_url_),"shadeDialog")=="true"){var l=L5W(this);l=bda(l);var I=_.LG(V);V=I.width-80;I=I.height-40;l&&(V-=l.left?l.left:0,V-=l.right?l.right:0,I-=l.top?l.top:0,I-=l.bottom?l.bottom:0);V=new _.Yp(V>0?V:0,I>0?I:0)}else(l=this.preferredDialogWidth_)?(l=Math.max(320,
Math.min(1051,l)),(I=this.preferredDialogHeight_)||(I=_.LG(V).height*.85),I=Math.max(480,Math.min(650,I))):(l=_.LG(V),I=l.width*.618,I=I<l.height?Math.round(Math.max(480,Math.min(650,I*.85))):Math.round(Math.max(480,Math.min(650,l.height*.85))),l=Math.round(I/.618)),V=_.LG(V),l=Math.min(l,Math.max(V.width,320)),I=Math.min(I,Math.max(V.height,480)),V=new _.Yp(l,I);_.Zdb(this.getContentElement(),V);this.reposition()};
sX.prototype.reposition=function(){if(_.bO(_.Wv(this.JSC$8060_url_),"shadeDialog")=="true"){var V=RME(this.getElement()),l=_.LG(this.JSC$8009_dom_.getWindow());V=Math.floor(l.width/2-V.width/2);l=L5W(this);if(l=bda(l)){var I=l.left?l.left:0;I+=l.right?l.right:0;V=Math.floor(V-I/2)}V=V>0?V:0;l=eP(this.JSC$8009_dom_).y;u_(this.getElement(),V,l)}else sX.superClass_.reposition.call(this)};
sX.prototype.setVisible=function(V){if(V!=this.isVisible()&&this.autoSizeDialog_){var l=this.JSC$8009_dom_.getWindow();V?(this.resizePicker_(),Qu(this).listen(l,"resize",this.resizePicker_),this.iframeLoaded_||Qu(this).listen(l,"keydown",this.handleKeydown_)):(Qu(this).unlisten(l,"resize",this.resizePicker_),this.iframeLoaded_||Qu(this).unlisten(l,"keydown",this.handleKeydown_))}sX.superClass_.setVisible.call(this,V);Mtv(this,new Qv1(V))};
sX.prototype.focus=function(){sX.superClass_.focus.call(this);if(this.JSC$8060_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8060_iframe_.focus()}catch(V){}};var eD=function(V,l){l=l===void 0?sX:l;Dl.call(this,V);this.pickerConstructor=l;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(V=window.location.origin)||(V=window.location.protocol+"//"+window.location.host);V&&this.urlParamMap_.set("origin",V);this.postProcessors_=[]};
_.t(eD,W6K);eD.prototype.JSC$8065_disposeOnHide_=!1;
eD.prototype.build=function(){this.JSC$7966_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7966_appId_);this.getRelayUrl()||this.setRelayUrl(_.H_(_.B_(_.Td(_.Wv(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("kb");var V=new this.pickerConstructor(pFB(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);V.JSC$8042_disposeOnHide_=this.JSC$8065_disposeOnHide_;
V.JSC$8060_appId_=this.JSC$7966_appId_;V.loadedFired_&&sVw(V);qZZ(V,this.callback_);return V};
var AFw=function(V){V.urlParamMap_.set("multiselectEnabled","true");return V};
eD.prototype.getHeight=function(){return this.dialogHeight_};
eD.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
eD.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
eD.prototype.getWidth=function(){return this.dialogWidth_};
var uv3=function(V){V.JSC$8065_disposeOnHide_=void 0;return V};
eD.prototype.setRelayUrl=function(V){this.urlParamMap_.set("parent",V);return this};
var vlb=function(V,l){V.urlParamMap_.set("selectButtonLabel",l);return V};
eD.prototype.setSize=function(V,l){this.dialogWidth_=V;this.dialogHeight_=l;return this};
eD.prototype.setTitle=function(V){this.urlParamMap_.set("title",V);return this};
var pFB=function(V){V.postProcessors_.length&&V.urlParamMap_.set("pp",JSON.stringify(V.postProcessors_));V.urlParamMap_.set("nav",mlN(V.nav_));var l=new _.OA(V.getBaseUrl());V.urlParamMap_.forEach(function(I,H){_.qx(l,H,I)});
return l};var a1o=function(V,l){V.name!==void 0?(this.name=V.name,this.code=OOZ[V.name]):(this.code=V=V.code,this.name=Cx3(V));_.I1.call(this,rBb("%s %s",this.name,l))};
_.Uk(a1o,_.I1);var Cx3=function(V){var l=_.EL.findKey(OOZ,function(I){return V==I});
if(l===void 0)throw Error("mb`"+V);return l},un={},OOZ=(un.AbortError=3,un.EncodingError=5,un.InvalidModificationError=9,un.InvalidStateError=7,un.NotFoundError=1,un.NotReadableError=4,un.NoModificationAllowedError=6,un.PathExistsError=12,un.QuotaExceededError=10,un.SecurityError=2,un.SyntaxError=8,un.TypeMismatchError=11,un);var f1W=function(V,l){_.kL.call(this,V.type,l);this.event_=V};
_.Uk(f1W,_.kL);var gl0=function(V,l,I){I===void 0&&(I=V.size);return V.slice?V.slice(l,I):null};var fYJ=new WeakMap,aYN=function(V,l){V=[V];for(var I=l.length-1;I>=0;--I)V.push(typeof l[I],l[I]);return V.join("\v")};_.mlq(function(){if(!_.nK.Blob)return!1;var V=new Uint8Array(100);try{var l=new Blob([V])}catch(I){return!1}return l.size!=100?!1:!0});
var m4w=_.mlq(function(){if(!_.nK.Blob)return!1;var V=new Uint8Array(100);try{var l=new Blob([V])}catch(I){return!1}return gl0(l,0,1)===null?!1:!0});_.nK.U3bHHf!=null||(_.nK.U3bHHf=0);_.nK.U3bHHf++;var VQy={};_.vv=void 0;var IBq=Symbol("vb");var N03=CS("WizInjectionContext_Dispatcher");var UDT=CS("WizInjectionContext_RootElement");var $Dg=CS("WizInjectionContext_AppContext"),ne3=CS("WizInjectionContext_ModelRootElement"),dDw=CS("WizInjectionContext_RendererData"),wa3=CS("WizInjectionContext_InjectingConstructor"),Kuf={};var e6q=!1;var iOv=Symbol("yb"),olt=Symbol("zb"),Px3=Symbol("Ab"),W5g=Qa(function(V){return J2t(V)&&iOv in V});var z6t={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:eUc,enableLazyTsx:klw,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var mF=Object.assign({},{attributes:{},handleError:function(V){throw V;}},z6t);var oeK=Symbol("Bb"),v_={},GQw=(v_[oeK]=!0,v_.debugName="[component]",v_.getComponentStack=function(){for(var V=[],l=this;l;)h6N(l)&&V.push(l.debugName),l=l.parent;return V.reverse()},v_.registerSignal=function(){},v_.registerEffect=function(){},v_);var iO=null,l$=!1,QSN=1,T0=Symbol("Cb"),wx={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 OO=Symbol("Db"),CH=Symbol("Eb"),HT=Symbol("Fb"),U4N=Object.assign({},wx,{value:OO,dirty:!0,error:null,equal:PGN,kind:"computed",producerMustRecompute:function(V){return V.value===OO||V.value===CH},
producerRecomputeValue:function(V){if(V.value===CH)throw Error("da");var l=V.value;V.value=CH;var I=MQt(V),H=!1;try{var T=V.computation();V9(null);H=l!==OO&&l!==HT&&T!==HT&&V.equal(l,T)}catch(x){T=HT,V.error=x}finally{sSt(V,I)}H?V.value=l:(V.value=T,V.version++)}});var wFy=function(){throw Error();};var NTK=null,$4q=Object.assign({},wx,{equal:PGN,value:void 0,kind:"signal"});Object.assign({},wx,{value:OO,dirty:!0,error:null,equal:PGN,kind:"linkedSignal",producerMustRecompute:function(V){return V.value===OO||V.value===CH},
producerRecomputeValue:function(V){if(V.value===CH)throw Error("da");var l=V.value;V.value=CH;var I=MQt(V);try{var H=V.source();var T=V.computation(H,l===OO||l===HT?void 0:{source:V.sourceValue,value:l});V.sourceValue=H}catch(x){T=HT,V.error=x}finally{sSt(V,I)}l!==OO&&T!==HT&&V.equal(l,T)?V.value=l:(V.value=T,V.version++)}});Object.assign({},wx,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(V){V.schedule!==null&&V.schedule(V.ref)},
hasRun:!1,cleanupFn:function(){}});var jVg=Symbol("Gb");var L53=Symbol("Hb"),US=Symbol("Ib");var nN=Array.isArray;var Grg;var Vho={},JFy=rFK(Object.assign({},{consumerAllowSignalWrites:!0},Vho)),Uo=rFK(Object.assign({},{consumerAllowSignalWrites:!0},Vho));var Mtg=[];var qZK=0,aB=function(){this.queue=new Set};
aB.prototype.remove=function(V){this.queue.delete(V)};
var lUb=function(){aB.apply(this,arguments)};
_.t(lUb,aB);lUb.prototype.schedule=function(V){V.hasRun?this.queue.add(V):V.run()};
lUb.prototype.flush=function(){if(this.queue.size){var V=this.queue;this.queue=new Set;bO1(V)}};
var hxt=new lUb,IUN=function(){aB.apply(this,arguments)};
_.t(IUN,aB);IUN.prototype.schedule=function(V){var l=this;return _.d(function(I){if(I.nextAddress==1)return V.hasRun?I.jumpTo(2):_.K(I,Promise.resolve(),3);if(I.nextAddress!=2)return V.run(),I.return();l.queue.add(V);_.FU(I)})};
IUN.prototype.flush=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1){if(!V.queue.size)return I.return();l=V.queue;V.queue=new Set;return _.K(I,Promise.resolve(),2)}bO1(l);_.FU(I)})};
var D41=new IUN,cFy=[hxt,D41],Rxf=[];NTK=function(){ZOg();for(var V=_.U(Rxf),l=V.next();!l.done;l=V.next())l=l.value,l()};var e_=Symbol("Ob");var LN=[],uvt,vlW,OOK;var fH={},HCJ=Object.assign({},wx,(fH[iOv]=!0,fH.effectType=olt,fH.isResettableContext=!0,fH.producerNode=void 0,fH.hasRun=!1,fH.effectFn=null,fH.consumerIsAlwaysLive=!0,fH.consumerAllowSignalWrites=!0,fH.consumerMarkedDirty=SZt,fH.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(l$)throw Error("Pb");this.dirty=!1;if(!this.hasRun||c2c(this)){this.hasRun=!0;xDy(this);var V=OX(this),l=MQt(this);tQ1("effectRun",this.debugName);try{Xk(this.effectFn,{stack:this.componentStack})}finally{r2N("effectRun",
this.debugName),sSt(this,l),OX(V)}}}},fH.componentStack=void 0,fH.debugName="[effect]",fH[Symbol.dispose]=function(){DDy(this);
if(Ix(this))for(var V=0;V<this.producerNode.length;V++)Z0t(this.producerNode[V],this.producerIndexOfThis[V]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);V=_.U(cFy);for(var l=V.next();!l.done;l=V.next())l.value.remove(this);B0f(this)},fH));var a1c=Object.assign({},HCJ,{effectType:olt});var f13=Object.assign({},HCJ,{effectType:Px3});var glJ=Symbol("Qb");var ZCt=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 OS=Symbol("Rb");var HO=function(){},w7=function(V){this.props=V;
this.__unmounted=!1};
w7.prototype.didPatch=function(){};
w7.prototype.didMount=function(){};
w7.prototype.didUnmount=function(){};
w7.prototype.didUpdate=function(){};var Vhc={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},iOg={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}]}},ymq={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},HCT=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],IUt={"*":{async:1,dir:0,loading:2,target:3}};var Tuv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,gY={},Buf=(gY[1]=null,gY[2]=function(V,l){return l instanceof MV?pd(l):ZC.toString()},gY[3]=function(V,l){return oO(l)?_.hV(l):Tuv.test(String(l))?String(l):ZC.toString()},gY[4]=function(V,l){return l instanceof kn?_.tV(l):ZC.toString()},gY[5]=function(V,l){return String(l)},gY[7]=null,gY[8]=null,gY[10]=null,gY);var CPt=Symbol("Ub");var WP1=function(V){var l=Bua,I=V,H="",T="",x=1;V<0&&(V=-V);if(V===Infinity)V=(Infinity*Math.sign(I)).toString();else{for(var n=0;n<xKv.length;n++){var w=xKv[n];x=l[w];if(V>=x||x<=1&&V>.1*x){H=w;break}}H?(H+="B",T=" "):x=1;V=Math.round(I/x*10)/10+T+H}return V},xKv="Y Z E P T G M K  m u n".split(" "),Bua={"":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};_.UKZ=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 i$={};RegExp.prototype.hasOwnProperty("sticky");var QX3=function(V){V=String(V);for(var l=function(H,T,x){for(var n=Math.min(T.length-x,H.length),w=0;w<n;w++){var N=T[x+w];if(H[w]!==("A"<=N&&N<="Z"?N.toLowerCase():N))return!1}return!0},I=0;(I=V.indexOf("<",I))!=-1;){if(l("\x3c/script",V,I)||l("\x3c!--",V,I))return"zSoyz";
I+=1}return V};var h0={default:"__default"};var Nu1=Object.prototype.hasOwnProperty;nzw.prototype=Object.create(null);var CO=Ywq();var sS=null;var Ez1=function(V){this.created=[];this.deleted=[];this.node=V};var Jl1=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var V=this,l=V;V;)l=V,V=V.parentNode;return l};var ewK=function(V,l){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=V;this.key=l;this.text=void 0};var Rx=null,Q9=null,Dn=null,WT=null,yl1=[],zwt=F4w,qy=[],My=[],vF=function(V){return ozt(function(l,I,H){Dn=Q9=l;Q9=null;I(H);XIy(null);Q9=Dn;Dn=Dn.parentNode;return l},V)}(),O6N=function(V){return ozt(function(l,I,H){var T={nextSibling:l};
Q9=T;I(H);Dn&&XIy(l.nextSibling);return T===Q9?null:Q9},V)}();var pN=[],PgN=0;var A0=new nzw;var Y7=new nzw;var nzE=Ywq(),Rwq=nzE[h0.default],clf=nzE.style,SwJ=["focusin","focusout"];var XU3=function(){},$zT=function(){},Guy=function(){},yOy=function(){};var vT=Symbol("ac");var Aly,pIT=sXt;var lt=Symbol("bc");var H8W={};var rOJ=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(" ")),
tXc=new Set(["a","font","script","style","title"]);var ns={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var $G=null,d7=function(V,l){w7.call(this,V);var I=this;this.functionComponent=l;this.hooks=[];this.hookCounter=0;this.disposeEffects=G0(function(H){I.effectContext=H;_.rx(function(){KKK(I,I.el)})},mF.alwaysTrackContexts||!!_.vv)};
_.t(d7,w7);d7.prototype.render=function(V){var l=$G;$G=this;this.hookCounter=0;var I=V9(Uo),H=OX(this.effectContext);try{return tQ1("render",this.componentName),this.functionComponent(V)}finally{r2N("render",this.componentName),OX(H),V9(I),$G=l}};
_.vI.Object.defineProperties(d7.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=(V=this.functionComponent.debugName)!=null?V:this.functionComponent.name)!=null?l:"[component]"}}});var EA1=Symbol("pc"),kuN=function(V,l,I){this.kind=V;this.props=l;this.children=I};
_.t(kuN,HO);kuN.prototype.render=function(){return eRy(this.kind,this.props,this.children)};
kuN.prototype.getChildren=function(){return this.children};var oAK=[];wFy=function(V){throw Error("tb`"+V.debugName);};
(function(){var V=sS;sS=function(l){V==null||V(l);hRf(l)}})();var $KJ=void 0,dKE={},wIv=new WeakMap,PKT={getComponent:function(V){if(V.hasAttribute("ng-version"))return dKE;if(!V.__wizComponent)return null;V=V.__wizComponent;wIv.set(V.propsAndState,V);return V.propsAndState},
getDirectiveMetadata:function(V){if(V===dKE)return{framework:"wiz",name:"<Root>",props:{}};V=wIv.get(V);if(!V)throw Error("qc");return{framework:"wiz",name:V.name,props:Object.fromEntries(Object.keys(V.props).map(function(l){return[l,l]}))}},
"\u0275setProfiler":function(V){var l;(l=$KJ)==null||l();$KJ=QVJ(function(){V(2)})},
isSignal:function(V){return typeof V==="function"&&V[T0]!==void 0}};var Z8g={nonNullableCondIsNull:function(){return Error("uc")}};_.Y.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.Y.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.Y.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var b8w=function(){this.map=new Map};
b8w.prototype.push=function(V,l){var I=this.map;I.has(V)&&(this.multi||(this.multi=new Map),this.multi.set(l,I.get(V)));I.set(V,l)};
b8w.prototype.pop=function(V){var l=this.map,I=l.get(V),H;I!==void 0&&((H=this.multi)==null?0:H.has(I))?(l.set(V,this.multi.get(I)),this.multi.delete(I)):l.delete(V);return I};var ub1={LOG_NULL_EL_REF_VALUE:function(){return Error("vc")},
OUT_OF_ORDER_HOOK_CALL:function(V){return Error("wc`"+V)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(V,l){return Error("Ac`"+V+"`"+l)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(V){return Error("Bc`"+V)},
USE_ELEMENT_NOT_ASSIGNED:function(V){return Error("Cc`"+String(V))}};Aly=FK1;var mzw=Symbol("Dc");wUt({beforeRender:function(V){var l=OX(V.effectContext);try{var I;((I=V.__syncEffects)==null?0:I.length)&&V1c(V.__syncEffects)}finally{OX(l)}},
didPatch:function(V){var l=OX(V.effectContext);try{var I;((I=V.__syncEffects)==null?0:I.length)&&V1c(V.__syncEffects)}finally{OX(l)}},
didUnmount:function(V){var l;((l=V.hooks)==null?0:l.length)&&V.hooks.forEach(i8c)}});var Nui,K4B,jXi;Nui=_.nK.window;_.Eo=(Nui==null?void 0:(K4B=Nui.yt)==null?void 0:K4B.config_)||(Nui==null?void 0:(jXi=Nui.ytcfg)==null?void 0:jXi.data_)||{};_.Aq("yt.config_",_.Eo);var YwN={},T6g=[];_.Yd=function(V){var l=_.Q5.apply(1,arguments);var I=Error.call(this,V);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.args=[].concat(_.oI(l));Object.setPrototypeOf(this,this.constructor.prototype)};
_.t(_.Yd,Error);var BQt=function(V,l,I){this.actionName=V;this.optionalAction=l===void 0?!1:l;this.args=I===void 0?null:I;this.returnValue=[]};_.f=function(V){this.name=V};_.RV=new _.f("signalAction");var Y41=/^[\w.]*$/,$J1={q:!0,search_query:!0},nB1=String(UJq);var mR;mR=Symbol("Ec");_.Vr=function(V){this.name=V};
_.Vr.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var Lpf=function(V){this.key=V},FpJ=function(V){this.deferredKey=V},kqt=function(){var V=this;
this.providers=new Map;this.JSC$8269_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(V.providers)}}};
kqt.prototype.addProvider=function(V){this.providers.set(V.provide,V);var l=this.JSC$8269_deferred.get(V.provide);if(l)try{l.resolver(this.resolve(V.provide))}catch(I){l.rejector(I)}};
kqt.prototype.resolve=function(V){return V instanceof FpJ?L4w(this,V):V instanceof Lpf?ewZ(this,V.key,[],!0):ewZ(this,V,[])};
var L4w=function(V,l){l=l.deferredKey;if(V.JSC$8269_deferred.has(l))return V.JSC$8269_deferred.get(l).promise;var I={};I.promise=new Promise(function(H,T){I.resolver=H;I.rejector=T});
V.JSC$8269_deferred.set(l,I);return I.promise},ewZ=function(V,l,I,H){H=H===void 0?!1:H;
if(I.indexOf(l)>-1)throw Error("Fc`"+l);if(V.cachedValues.has(l))return V.cachedValues.get(l);if(!V.providers.has(l)){if(H)return;throw Error("Gc`"+l);}H=V.providers.get(l);I.push(l);if(H.useValue!==void 0)var T=H.useValue;else if(H.useFactory)T=H[mR]?kON(V,H[mR],I):[],T=H.useFactory.apply(H,_.oI(T));else if(H.useClass){T=H.useClass;var x=T[mR]?kON(V,T[mR],I):[];T=new (Function.prototype.bind.apply(T,[null].concat(_.oI(x))))}else throw Error("Hc`"+l);I.pop();H.skipCache||V.cachedValues.set(l,T);return T},
kON=function(V,l,I){return l?l.map(function(H){return H instanceof Lpf?ewZ(V,H.key,I,!0):ewZ(V,H,I)}):[]};var e8t;var QC=new _.Vr("ENDPOINT_HANDLER_TOKEN");_.cF=new _.f("urlEndpoint");var F4E=function(){this.data=[];this.cachedPackedInt52=-1};
F4E.prototype.set=function(V,l){l=l===void 0?!0:l;0<=V&&V<52&&Number.isInteger(V)&&this.data[V]!==l&&(this.data[V]=l,this.cachedPackedInt52=-1)};
F4E.prototype.get=function(V){return!!this.data[V]};
var XIw=function(V){V.cachedPackedInt52===-1&&(V.cachedPackedInt52=V.data.reduce(function(l,I,H){return l+(I?Math.pow(2,H):0)},0));
return V.cachedPackedInt52};var S41=function(V){var l=zw3;V=V===void 0?_.SN("yt.ads.biscotti.lastId_")||"":V;var I=Object,H=I.assign,T={};T.dt=r0J;T.flash="0";a:{try{var x=l.JSC$8275_win_.top.location.href}catch(o1){x=2;break a}x=x?x===l.doc_.location.href?0:1:2}T=(T.frm=x,T);try{T.u_tz=-(new Date).getTimezoneOffset();var n=n===void 0?sR:n;try{var w=n.history.length}catch(o1){w=0}T.u_his=w;var N;T.u_h=(N=sR.screen)==null?void 0:N.height;var L;T.u_w=(L=sR.screen)==null?void 0:L.width;var e;T.u_ah=(e=sR.screen)==null?void 0:e.availHeight;
var k;T.u_aw=(k=sR.screen)==null?void 0:k.availWidth;var X;T.u_cd=(X=sR.screen)==null?void 0:X.colorDepth}catch(o1){}w=l.JSC$8275_win_;try{var r=w.screenX;var E=w.screenY}catch(o1){}try{var D=w.outerWidth;var Z=w.outerHeight}catch(o1){}try{var S=w.innerWidth;var p=w.innerHeight}catch(o1){}try{var Vf=w.screenLeft;var C=w.screenTop}catch(o1){}try{S=w.innerWidth,p=w.innerHeight}catch(o1){}try{var By=w.screen.availWidth;var lN=w.screen.availTop}catch(o1){}r=[Vf,C,r,E,By,lN,D,Z,S,p];E=iGf(!1,l.JSC$8275_win_.top);
D={};var wW=wW===void 0?_.nK:wW;Z=new F4E;"SVGElement"in wW&&"createElementNS"in wW.document&&Z.set(0);S=AI3();S["allow-top-navigation-by-user-activation"]&&Z.set(1);S["allow-popups-to-escape-sandbox"]&&Z.set(2);wW.crypto&&wW.crypto.subtle&&Z.set(3);"TextDecoder"in wW&&"TextEncoder"in wW&&Z.set(4);wW=XIw(Z);l=(D.bc=wW,D.bih=E.height,D.biw=E.width,D.brdim=r.join(),D.vis=ukJ(l.doc_),D.wgl=!!sR.WebGLRenderingContext,D);I=H.call(I,T,l);I.ca_type="image";V&&(I.bid=V);return I},zw3=new function(){var V=
window.document;
this.JSC$8275_win_=window;this.doc_=V};
_.Aq("yt.ads_.signals_.getAdSignalsString",function(V){return dJc(S41(V))});_.xv();navigator.userAgent.indexOf(" (CrKey ");var rcT="XMLHttpRequest"in _.nK?function(){return new XMLHttpRequest}:null;var ylB="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),th3=[].concat(_.oI(ylB),["client_dev_set_cookie"]);var ZTc={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"},Jcw="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(_.oI(ylB)),p$c=!1,h8t=_.R81,q4W=DJt;var Kwt=[{messageFn:function(V){return"Cannot read property '"+V.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(V){return"Cannot call '"+V.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(V){return V.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var rlJ={messageWeights:[],callbackWeights:[{callback:OTw,weight:500}]};var GOE=function(){this.callbackWeights=[];this.messageWeights=[]},EzB,Nwf=function(){if(!EzB){var V=EzB=new GOE;
V.messageWeights.length=0;V.callbackWeights.length=0;qQf(V,rlJ)}return EzB},qQf=function(V,l){l.messageWeights&&V.messageWeights.push.apply(V.messageWeights,l.messageWeights);
l.callbackWeights&&V.callbackWeights.push.apply(V.callbackWeights,l.callbackWeights)};_.Uk(_.nA,_.XG);_.nA.prototype.subscribe=function(V,l,I){var H=this.topics_[V];H||(H=this.topics_[V]=[]);var T=this.JSC$8299_key_;this.subscriptions_[T]=V;this.subscriptions_[T+1]=l;this.subscriptions_[T+2]=I;this.JSC$8299_key_=T+3;H.push(T);return T};
var Jli=function(V){var l=eJJ,I=!1,H=l.subscribe("handleError",function(T){I||(I=!0,this.unsubscribeByKey(H),V.apply(void 0,arguments))},l)};
_.nA.prototype.unsubscribe=function(V,l,I){if(V=this.topics_[V]){var H=this.subscriptions_;if(V=V.find(function(T){return H[T+1]==l&&H[T+2]==I}))return this.unsubscribeByKey(V)}return!1};
_.nA.prototype.unsubscribeByKey=function(V){var l=this.subscriptions_[V];if(l){var I=this.topics_[l];this.publishDepth_!=0?(this.pendingKeys_.push(V),this.subscriptions_[V+1]=function(){}):(I&&_.A1(I,V),delete this.subscriptions_[V],delete this.subscriptions_[V+1],delete this.subscriptions_[V+2])}return!!l};
_.nA.prototype.publish=function(V,l){var I=this.topics_[V];if(I){var H=Array(arguments.length-1),T=arguments.length,x;for(x=1;x<T;x++)H[x-1]=arguments[x];if(this.async_)for(x=0;x<I.length;x++)T=I[x],oz3(this.subscriptions_[T+1],this.subscriptions_[T+2],H);else{this.publishDepth_++;try{for(x=0,T=I.length;x<T&&!this.isDisposed();x++){var n=I[x];this.subscriptions_[n+1].apply(this.subscriptions_[n+2],H)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;I=this.pendingKeys_.pop();)this.unsubscribeByKey(I)}}return x!=
0}return!1};
var oz3=function(V,l,I){_.G1(function(){V.apply(l,I)})};
_.nA.prototype.clear=function(V){if(V){var l=this.topics_[V];l&&(l.forEach(this.unsubscribeByKey,this),delete this.topics_[V])}else this.subscriptions_.length=0,this.topics_={}};
_.nA.prototype.getCount=function(V){if(V){var l=this.topics_[V];return l?l.length:0}V=0;for(l in this.topics_)V+=this.getCount(l);return V};
_.nA.prototype.disposeInternal=function(){_.nA.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var eJJ=new _.nA;var i2=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(i2,_.mV);i2.prototype.getColdHashData=function(){return _.Rt(this,3)};
i2.prototype.getHotHashData=function(){return _.Rt(this,5)};
i2.prototype.setHotHashData=function(V){return _.Fm(this,5,V)};var UvT=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(UvT,_.mV);var Q21=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Q21,_.mV);_.B=Q21.prototype;_.B.getDeviceId=function(){return _.Rt(this,6)};
_.B.getExperimentIds=function(V){var l=_.WY(this,9,_.Iu,3,!0);vTy(l,V);return l[V]};
_.B.getPlayerType=function(){return _.Qh(this,36)};
_.B.setHomeGroupInfo=function(V){return _.j6(this,81,V)};
_.B.clearLocationPlayabilityToken=function(){return _.m6(this,89)};var dT=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(dT,_.mV);dT.prototype.setKey=function(V){return _.Fm(this,1,V)};
dT.prototype.getValue=function(){return Wn(this,2,Ws3)};
var Ws3=[2,3,4,5,6];var hwN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(hwN,_.mV);hwN.prototype.setTrackingParams=function(V){return _.m6(this,1,_.hB(V,!1))};var cUw=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(cUw,_.mV);var dvq=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(dvq,_.mV);dvq.prototype.getExperimentIds=function(V){var l=_.WY(this,5,_.jic,3,!0);vTy(l,V);return l[V]};var jt=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(jt,_.mV);jt.prototype.getToken=function(){return _.KS(this,2)};
jt.prototype.setToken=function(V){return _.Fm(this,2,V)};var N4=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(N4,_.mV);N4.prototype.setSafetyMode=function(V){return _.gm(this,5,V)};var $l=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t($l,_.mV);$l.prototype.setClient=function(V){return _.j6(this,1,V)};var $vg={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 nVW;_.Zf=function(){var V=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.nK.addEventListener("beforeinstallprompt",function(l){l.preventDefault();V.deferredInstallPrompt=l});
_.nK.addEventListener("appinstalled",function(){V.appInstalledEventFired=!0},{once:!0})};
nVW=function(){if(!_.nK.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.nK.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.nK.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.nK.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.nK.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(V){return"WEB_DISPLAY_MODE_UNKNOWN"}};var KLy=function(){this.syncHeaders=!0},jQw=function(V){var l={},I=[];
"USER_SESSION_ID"in _.Eo&&I.push({key:"u",value:_.h6("USER_SESSION_ID")});if(I=Qjy(I))l.Authorization=I,I=V=V==null?void 0:V.sessionIndex,I===void 0&&(I=Number(_.h6("SESSION_INDEX",0)),I=isNaN(I)?0:I),_.z("voice_search_auth_header_removal")||(l["X-Goog-AuthUser"]=I.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Eo||(l["X-Origin"]=window.location.origin),V===void 0&&"DELEGATED_SESSION_ID"in _.Eo&&(l["X-Goog-PageId"]=_.h6("DELEGATED_SESSION_ID"));return l};var PgZ={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var lD=_.SN("ytglobal.prefsUserPrefsPrefs_")||{},DKa;_.Aq("ytglobal.prefsUserPrefsPrefs_",lD);_.IC=function(){this.cookieName=_.h6("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.h6("ALT_PREF_COOKIE_DOMAIN","youtube.com");var V=_.dm.get(this.cookieName,void 0);V&&this.parse(V)};
_.Fu=function(){DKa||(DKa=new _.IC);return DKa};
_.IC.prototype.get=function(V,l){ZCN(V);Sw0(V);V=lD[V]!==void 0?lD[V].toString():null;return V!=null?V:l?l:""};
_.IC.prototype.set=function(V,l){ZCN(V);Sw0(V);if(l==null)throw Error("Kc");lD[V]=l.toString()};
_.IC.prototype.getFlag=function(V){return!!((RwN("f"+(Math.floor(V/31)+1))||0)&1<<V%31)};
_.Xu=function(V,l,I){V="f"+(Math.floor(l/31)+1);l=1<<l%31;var H=RwN(V)||0;H=I?H|l:H&~l;H===0?delete lD[V]:(I=H.toString(16),lD[V]=I.toString())};
_.IC.prototype.remove=function(V){ZCN(V);Sw0(V);delete lD[V]};
_.IC.prototype.save=function(){var V=!0;_.z("web_secure_pref_cookie_killswitch")&&(V=!1);_.wm(this.cookieName,this.dump(),63072E3,this.cookieDomain,V)};
_.IC.prototype.clear=function(){_.EL.clear(lD)};
_.IC.prototype.dump=function(){var V=[],l;for(l in lD)lD.hasOwnProperty(l)&&V.push(l+"="+encodeURIComponent(String(lD[l])));return V.join("&")};
var Sw0=function(V){if(/^f([1-9][0-9]*)$/.test(V))throw Error("Lc`"+V);},ZCN=function(V){if(!/^\w+$/.test(V))throw Error("Mc`"+V);
},RwN=function(V){V=lD[V]!==void 0?lD[V].toString():null;
return V!=null&&/^[A-Fa-f0-9]+$/.test(V)?parseInt(V,16):null};
_.IC.prototype.parse=function(V){V=decodeURIComponent(V).split("&");for(var l=0;l<V.length;l++){var I=V[l].split("="),H=I[0];(I=I[1])&&(lD[H]=I.toString())}};var IwN={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"},wb3={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},NPT={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},TJw={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var ui;_.H6=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.et=function(V,l,I){return V.addJob(l,0,I)};
_.H6.prototype.addLowPriorityJob=function(V,l){return this.addJob(V,1,l)};
_.L6=function(V,l,I){return V.addJob(l,2,I)};
_.t9=function(V,l,I){return V.addJob(l,3,I)};
_.vX=function(V,l,I){return V.addJob(l,4,I)};
ui=function(V){var l=_.SN("yt.scheduler.instance.addImmediateJob");l?l(V):V()};
_.H6.prototype.debounce=function(V,l,I){var H=this,T=0,x=function(){T&&H.cancelJob(T);T=H.addJob(V,l,I);H.cancelDebouncedJobMap.set(x,T)};
return x};
_.H6.prototype.cancelThrottle=function(V){(V=this.cancelThrottledJobMap.get(V))&&V()};var TA=function(){_.H6.apply(this,arguments)};
_.t(TA,_.H6);_.Dk=function(){TA.instance||(TA.instance=new TA);return TA.instance};
TA.prototype.addJob=function(V,l,I){I!==void 0&&Number.isNaN(Number(I))&&(I=void 0);var H=_.SN("yt.scheduler.instance.addJob");return H?H(V,l,I):I===void 0?(V(),NaN):_.Iv(V,I||0)};
TA.prototype.cancelJob=function(V){if(V===void 0||!Number.isNaN(Number(V))){var l=_.SN("yt.scheduler.instance.cancelJob");l?l(V):_.TU(V)}};
TA.prototype.start=function(){var V=_.SN("yt.scheduler.instance.start");V&&V()};
TA.prototype.pause=function(){var V=_.SN("yt.scheduler.instance.pause");V&&V()};
_.r0=_.Dk();_.LA.prototype.set=function(V,l){l===void 0?this.mechanism.remove(V):this.mechanism.set(V,(0,_.PH)(l))};
_.LA.prototype.get=function(V){try{var l=this.mechanism.get(V)}catch(I){return}if(l!==null)try{return JSON.parse(l)}catch(I){throw"Storage: Invalid value was encountered";}};
_.LA.prototype.remove=function(V){this.mechanism.remove(V)};var B6=function(V){this.mechanism=V};
_.Uk(B6,_.LA);var QXW=function(V){this.data=V},cla=function(V){return V===void 0||V instanceof QXW?V:new QXW(V)};
B6.prototype.set=function(V,l){B6.superClass_.set.call(this,V,cla(l))};
B6.prototype.getWrapper=function(V){V=B6.superClass_.get.call(this,V);if(V===void 0||V instanceof Object)return V;throw"Storage: Invalid value was encountered";};
B6.prototype.get=function(V){if(V=this.getWrapper(V)){if(V=V.data,V===void 0)throw"Storage: Invalid value was encountered";}else V=void 0;return V};_.Uk(eO,B6);_.W4o=function(V){var l=V.creation;V=V.expiration;return!!V&&V<_.xv()||!!l&&l>_.xv()};
eO.prototype.set=function(V,l,I){if(l=cla(l)){if(I){if(I<_.xv()){eO.prototype.remove.call(this,V);return}l.expiration=I}l.creation=_.xv()}eO.superClass_.set.call(this,V,l)};
eO.prototype.getWrapper=function(V,l){var I=eO.superClass_.getWrapper.call(this,V);if(I)if(!l&&_.W4o(I))eO.prototype.remove.call(this,V);else return I};var xC=function(){};
xC.prototype.next=function(){return Um};
var Um={done:!0,value:void 0},nh=function(V){return{value:V,done:!1}};
xC.prototype.__iterator__=function(){return this};
_.bCN=function(V){if(V instanceof xC)return V;if(typeof V.__iterator__=="function")return V.__iterator__(!1);if(_.vy(V)){var l=0,I=new xC;I.next=function(){for(;;){if(l>=V.length)return Um;if(l in V)return nh(V[l++]);l++}};
return I}throw Error("Nc");};var qwZ=function(V){if(V instanceof $C||V instanceof d3||V instanceof w3)return V;if(typeof V.next=="function")return new $C(function(){return V});
if(typeof V[Symbol.iterator]=="function")return new $C(function(){return V[Symbol.iterator]()});
if(typeof V.__iterator__=="function")return new $C(function(){return V.__iterator__()});
throw Error("Oc");},$C=function(V){this.func_=V};
$C.prototype.__iterator__=function(){return new d3(this.func_())};
$C.prototype[Symbol.iterator]=function(){return new w3(this.func_())};
$C.prototype.toEs6=function(){return new w3(this.func_())};
var d3=function(V){this.JSC$8383_iter_=V};
_.t(d3,xC);d3.prototype.next=function(){return this.JSC$8383_iter_.next()};
d3.prototype[Symbol.iterator]=function(){return new w3(this.JSC$8383_iter_)};
d3.prototype.toEs6=function(){return new w3(this.JSC$8383_iter_)};
var w3=function(V){$C.call(this,function(){return V});
this.JSC$8386_iter_=V};
_.t(w3,$C);w3.prototype.next=function(){return this.JSC$8386_iter_.next()};var Mhi=function(){};var NO=function(){};
_.Uk(NO,Mhi);NO.prototype.getCount=function(){for(var V=0,l=_.U(this),I=l.next();!I.done;I=l.next())V++;return V};
NO.prototype[Symbol.iterator]=function(){return qwZ(this.__iterator__(!0)).toEs6()};
NO.prototype.clear=function(){var V=Array.from(this);V=_.U(V);for(var l=V.next();!l.done;l=V.next())this.remove(l.value)};_.Uk(kd,NO);_.B=kd.prototype;_.B.isAvailable=function(){if(!F7q||this.cachedIsStorageAvailable_===null){var V=this.storage_;if(V)try{performance.now();V.setItem("__sak","1");V.removeItem("__sak");performance.now();var l=!0}catch(I){l=I instanceof DOMException&&(I.name==="QuotaExceededError"||I.code===22||I.code===1014||I.name==="NS_ERROR_DOM_QUOTA_REACHED")&&V&&V.length!==0}else l=!1;this.cachedIsStorageAvailable_=l}return this.cachedIsStorageAvailable_};
_.B.set=function(V,l){Kh(this);try{this.storage_.setItem(V,l)}catch(I){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.B.get=function(V){Kh(this);V=this.storage_.getItem(V);if(typeof V!=="string"&&V!==null)throw"Storage mechanism: Invalid value was encountered";return V};
_.B.remove=function(V){Kh(this);this.storage_.removeItem(V)};
_.B.getCount=function(){Kh(this);return this.storage_.length};
_.B.__iterator__=function(V){Kh(this);var l=0,I=this.storage_,H=new xC;H.next=function(){if(l>=I.length)return Um;var T=I.key(l++);if(V)return nh(T);T=I.getItem(T);if(typeof T!=="string")throw"Storage mechanism: Invalid value was encountered";return nh(T)};
return H};
_.B.clear=function(){Kh(this);this.storage_.clear()};
_.B.key=function(V){Kh(this);return this.storage_.key(V)};
var Kh=function(V){if(V.storage_==null)throw Error("Pc");var l;(F7q?V.isAvailable():(l=V.cachedIsStorageAvailable_)!=null?l:V.isAvailable())||$T(Error("Pc"))};_.Uk(xrK,kd);_.Uk(Urt,kd);_.Uk(Fi,NO);Fi.prototype.set=function(V,l){this.mechanism_.set(this.JSC$8401_prefix_+V,l)};
Fi.prototype.get=function(V){return this.mechanism_.get(this.JSC$8401_prefix_+V)};
Fi.prototype.remove=function(V){this.mechanism_.remove(this.JSC$8401_prefix_+V)};
Fi.prototype.__iterator__=function(V){var l=this.mechanism_[Symbol.iterator](),I=this,H=new xC;H.next=function(){var T=l.next();if(T.done)return T;for(T=T.value;T.slice(0,I.JSC$8401_prefix_.length)!=I.JSC$8401_prefix_;){T=l.next();if(T.done)return T;T=T.value}return nh(V?T.slice(I.JSC$8401_prefix_.length):I.mechanism_.get(T))};
return H};_.h2=function(V){this.expiringStorage_=(V=_.nfN(V))?new eO(V):null;this.JSC$8405_domain_=document.domain||window.location.hostname};
_.h2.prototype.set=function(V,l,I,H){I=I||31104E3;this.remove(V);if(this.expiringStorage_)try{this.expiringStorage_.set(V,l,Date.now()+I*1E3);return}catch(x){}var T="";if(H)try{T=escape((0,_.PH)(l))}catch(x){return}else T=escape(l);_.wm(V,T,I,this.JSC$8405_domain_)};
_.h2.prototype.get=function(V,l){var I=void 0,H=!this.expiringStorage_;if(!H)try{I=this.expiringStorage_.get(V)}catch(T){H=!0}if(H&&(I=_.dm.get(V,void 0))&&(I=unescape(I),l))try{I=JSON.parse(I)}catch(T){this.remove(V),I=void 0}return I};
_.h2.prototype.remove=function(V){this.expiringStorage_&&this.expiringStorage_.remove(V);_.iTN(V,"/",this.JSC$8405_domain_)};
_.h2.prototype.getCreationTime=function(V){return this.expiringStorage_&&(V=(this.expiringStorage_.getWrapper(V)||{}).creation,typeof V==="number")?V:null};var drt=function(){var V;return function(){V||(V=new _.h2("ytidb"));return V}}();var NJ1;_.zU=[];NJ1=!1;var Dry=KdT||jA3;var jJ={},sXN=(jJ.AUTH_INVALID="No user identifier specified.",jJ.EXPLICIT_ABORT="Transaction was explicitly aborted.",jJ.IDB_NOT_SUPPORTED="IndexedDB is not supported.",jJ.MISSING_INDEX="Index not created.",jJ.MISSING_OBJECT_STORES="Object stores not created.",jJ.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",jJ.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",jJ.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",jJ.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",jJ.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",jJ.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",jJ.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",jJ),YC={},pIJ=(YC.AUTH_INVALID="ERROR",YC.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",YC.EXPLICIT_ABORT="IGNORED",
YC.IDB_NOT_SUPPORTED="ERROR",YC.MISSING_INDEX="WARNING",YC.MISSING_OBJECT_STORES="ERROR",YC.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",YC.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",YC.QUOTA_EXCEEDED="WARNING",YC.QUOTA_MAYBE_EXCEEDED="WARNING",YC.UNKNOWN_ABORT="WARNING",YC.INCOMPATIBLE_DB_VERSION="WARNING",YC),Lh={},Alw=(Lh.AUTH_INVALID=!1,Lh.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Lh.EXPLICIT_ABORT=!1,Lh.IDB_NOT_SUPPORTED=!1,Lh.MISSING_INDEX=!1,Lh.MISSING_OBJECT_STORES=!1,Lh.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Lh.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Lh.QUOTA_EXCEEDED=!1,Lh.QUOTA_MAYBE_EXCEEDED=!0,Lh.UNKNOWN_ABORT=!0,Lh.INCOMPATIBLE_DB_VERSION=!1,Lh),Jq=function(V,l,I,H,T){l=l===void 0?{}:l;I=I===void 0?sXN[V]:I;H=H===void 0?pIJ[V]:H;T=T===void 0?Alw[V]:T;_.Yd.call(this,I,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:V},l));this.type=V;this.message=I;this.level=H;this.retryable=T;Object.setPrototypeOf(this,Jq.prototype)};
_.t(Jq,_.Yd);var uH3=function(V,l){Jq.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:l,foundObjectStores:V},sXN.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,uH3.prototype)};
_.t(uH3,Jq);var LdN=function(V,l){var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.index=V;this.objectStore=l;Object.setPrototypeOf(this,LdN.prototype)};
_.t(LdN,Error);var eZK=["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 DY=function(V){this.executor=V},Px=function(V){var l=this;
this.state={status:"PENDING"};this.JSC$8433_onFulfilled=[];this.JSC$8433_onRejected=[];V=V.executor;var I=function(T){if(l.state.status==="PENDING"){l.state={status:"FULFILLED",value:T};T=_.U(l.JSC$8433_onFulfilled);for(var x=T.next();!x.done;x=T.next())x=x.value,x()}},H=function(T){if(l.state.status==="PENDING"){l.state={status:"REJECTED",
reason:T};T=_.U(l.JSC$8433_onRejected);for(var x=T.next();!x.done;x=T.next())x=x.value,x()}};
try{V(I,H)}catch(T){H(T)}};
Px.all=function(V){return new Px(new DY(function(l,I){var H=[],T=V.length;T===0&&l(H);for(var x={i$jscomp$505:0};x.i$jscomp$505<V.length;x={i$jscomp$505:x.i$jscomp$505},++x.i$jscomp$505)Px.resolve(V[x.i$jscomp$505]).then(function(n){return function(w){H[n.i$jscomp$505]=w;T--;T===0&&l(H)}}(x)).catch(function(n){I(n)})}))};
Px.resolve=function(V){return new Px(new DY(function(l,I){V instanceof Px?V.then(l,I):l(V)}))};
Px.reject=function(V){return new Px(new DY(function(l,I){I(V)}))};
Px.prototype.then=function(V,l){var I=this,H=V!=null?V:X4y,T=l!=null?l:Fdy;return new Px(new DY(function(x,n){I.state.status==="PENDING"?(I.JSC$8433_onFulfilled.push(function(){vzZ(I,I,H,x,n)}),I.JSC$8433_onRejected.push(function(){OC3(I,I,T,x,n)})):I.state.status==="FULFILLED"?vzZ(I,I,H,x,n):I.state.status==="REJECTED"&&OC3(I,I,T,x,n)}))};
Px.prototype.catch=function(V){return this.then(void 0,V)};
var vzZ=function(V,l,I,H,T){try{if(V.state.status!=="FULFILLED")throw Error("Sc");var x=I(V.state.value);x instanceof Px?CgZ(V,l,x,H,T):H(x)}catch(n){T(n)}},OC3=function(V,l,I,H,T){try{if(V.state.status!=="REJECTED")throw Error("Tc");
var x=I(V.state.reason);x instanceof Px?CgZ(V,l,x,H,T):H(x)}catch(n){T(n)}},CgZ=function(V,l,I,H,T){l===I?T(new TypeError("Uc")):I.then(function(x){x instanceof Px?CgZ(V,l,x,H,T):H(x)},function(x){T(x)})};var eJ;eJ=window;_.O_=eJ.ytcsi&&eJ.ytcsi.now?eJ.ytcsi.now:eJ.performance&&eJ.performance.timing&&eJ.performance.now&&eJ.performance.timing.navigationStart?function(){return eJ.performance.timing.navigationStart+eJ.performance.now()}:function(){return(new Date).getTime()};var SO=function(V,l){this.JSC$8445_wrapped=V;this.options=l;this.transactionCount=0;this.startedMs=Math.round((0,_.O_)());this.hasUnknownAbortedTransaction=!1},gz3,mK3,XQ,lhb;
SO.prototype.add=function(V,l,I){return _.Wx(this,[V],{mode:"readwrite",enableRetries:!0},function(H){return H.objectStore(V).add(l,I)})};
SO.prototype.clear=function(V){return _.Wx(this,[V],{mode:"readwrite",enableRetries:!0},function(l){return l.objectStore(V).clear()})};
SO.prototype.close=function(){this.JSC$8445_wrapped.close();var V;((V=this.options)==null?0:V.closed)&&this.options.closed()};
SO.prototype.count=function(V,l){return _.Wx(this,[V],{mode:"readonly",enableRetries:!0},function(I){return I.objectStore(V).count(l)})};
var DB=function(V,l,I){V=V.JSC$8445_wrapped.createObjectStore(l,I);return new kC(V)};
SO.prototype.delete=function(V,l){return _.Wx(this,[V],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore(V).delete(l)})};
var aU3=function(V,l){return _.Wx(V,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore("ResponseStore").index("byInterface").delete(l)})};
SO.prototype.get=function(V,l){return _.Wx(this,[V],{mode:"readonly",enableRetries:!0},function(I){return I.objectStore(V).get(l)})};
SO.prototype.getAll=function(V,l,I){return _.Wx(this,[V],{mode:"readonly",enableRetries:!0},function(H){return H.objectStore(V).getAll(l,I)})};
SO.prototype.put=function(V,l,I){return _.Wx(this,[V],{mode:"readwrite",enableRetries:!0},function(H){return H.objectStore(V).put(l,I)})};
SO.prototype.objectStoreNames=function(){return Array.from(this.JSC$8445_wrapped.objectStoreNames)};
_.Wx=function(V,l,I,H){var T,x,n,w,N,L,e,k,X,r,E,D;return _.d(function(Z){switch(Z.nextAddress){case 1:var S={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof I==="string"?S.mode=I:Object.assign(S,I);T=S;V.transactionCount++;x=T.enableRetries?3:1;n=0;case 2:if(w){Z.jumpTo(4);break}n++;N=Math.round((0,_.O_)());_.jd(Z,5);L=V.JSC$8445_wrapped.transaction(l,T.mode);S=new r5N(L);S=fUE(S,H);return _.K(Z,S,7);case 7:return e=Z.yieldResult,k=Math.round((0,_.O_)()),gz3(V,N,k,n,void 0,
l.join(),T),Z.return(e);case 5:X=_.kE(Z);r=Math.round((0,_.O_)());E=kVJ(X,V.JSC$8445_wrapped.name,l.join(),V.JSC$8445_wrapped.version);if((D=E instanceof Jq&&!E.retryable)||n>=x)gz3(V,N,r,n,E,l.join(),T),w=E;Z.jumpTo(2);break;case 4:return Z.return(Promise.reject(w))}})};
gz3=function(V,l,I,H,T,x,n){l=I-l;T?(T instanceof Jq&&(T.type==="QUOTA_EXCEEDED"||T.type==="QUOTA_MAYBE_EXCEEDED")&&tq("QUOTA_EXCEEDED",{dbName:GU(V.JSC$8445_wrapped.name),objectStoreNames:x,transactionCount:V.transactionCount,transactionMode:n.mode}),T instanceof Jq&&T.type==="UNKNOWN_ABORT"&&(I-=V.startedMs,I<0&&I>=2147483648&&(I=0),tq("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:x,transactionDuration:l,transactionCount:V.transactionCount,dbDuration:I}),V.hasUnknownAbortedTransaction=!0),
mK3(V,!1,H,x,l,n.tag),_.y7(T)):mK3(V,!0,H,x,l,n.tag)};
mK3=function(V,l,I,H,T,x){tq("TRANSACTION_ENDED",{objectStoreNames:H,connectionHasUnknownAbortedTransaction:V.hasUnknownAbortedTransaction,duration:T,isSuccessful:l,tryCount:I,tag:x===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":x})};
SO.prototype.getVersion=function(){return this.JSC$8445_wrapped.version};
SO.prototype.getName=function(){return this.JSC$8445_wrapped.name};
var kC=function(V){this.JSC$8460_wrapped=V};
kC.prototype.add=function(V,l){return ZY(this.JSC$8460_wrapped.add(V,l))};
kC.prototype.autoIncrement=function(){return this.JSC$8460_wrapped.autoIncrement};
kC.prototype.clear=function(){return ZY(this.JSC$8460_wrapped.clear()).then(function(){})};
var ZB=function(V,l,I){V.JSC$8460_wrapped.createIndex(l,I,{unique:!1})};
kC.prototype.count=function(V){return ZY(this.JSC$8460_wrapped.count(V))};
var iCb=function(V,l){return ql(V,{query:l},function(I){return I.delete().then(function(){return I.continue()})}).then(function(){})};
kC.prototype.delete=function(V){return V instanceof IDBKeyRange?iCb(this,V):ZY(this.JSC$8460_wrapped.delete(V))};
kC.prototype.get=function(V){return ZY(this.JSC$8460_wrapped.get(V))};
kC.prototype.getAll=function(V,l){return"getAll"in IDBObjectStore.prototype?ZY(this.JSC$8460_wrapped.getAll(V,l)):VXJ(this,V,l)};
var VXJ=function(V,l,I){var H=[];return ql(V,{query:l},function(T){if(!(I!==void 0&&H.length>=I))return H.push(T.getValue()),T.continue()}).then(function(){return H})};
kC.prototype.index=function(V){try{return new FQ(this.JSC$8460_wrapped.index(V))}catch(l){if(l instanceof Error&&l.name==="NotFoundError")throw new LdN(V,this.JSC$8460_wrapped.name);throw l;}};
kC.prototype.getName=function(){return this.JSC$8460_wrapped.name};
kC.prototype.keyPath=function(){return this.JSC$8460_wrapped.keyPath};
kC.prototype.put=function(V,l){return ZY(this.JSC$8460_wrapped.put(V,l))};
var ql=function(V,l,I){V=V.JSC$8460_wrapped.openCursor(l.query,l.direction);return lhb(V).then(function(H){return tst(H,I)})},r5N=function(V){var l=this;
this.JSC$8468_wrapped=V;this.objectStoreCache=new Map;this.JSC$8468_aborted=!1;this.done=new Promise(function(I,H){l.JSC$8468_wrapped.addEventListener("complete",function(){I()});
l.JSC$8468_wrapped.addEventListener("error",function(T){T.currentTarget===T.target&&H(l.JSC$8468_wrapped.error)});
l.JSC$8468_wrapped.addEventListener("abort",function(){var T=l.JSC$8468_wrapped.error;if(T)H(T);else if(!l.JSC$8468_aborted){T=Jq;for(var x=l.JSC$8468_wrapped.objectStoreNames,n=[],w=0;w<x.length;w++){var N=x.item(w);if(N===null)throw Error("Vc");n.push(N)}T=new T("UNKNOWN_ABORT",{objectStoreNames:n.join(),dbName:l.JSC$8468_wrapped.db.name,mode:l.JSC$8468_wrapped.mode});H(T)}})})},fUE=function(V,l){var I=new Promise(function(H,T){try{l(V).then(function(x){H(x)}).catch(T)}catch(x){T(x),V.abort()}});
return Promise.all([I,V.done]).then(function(H){return _.U(H).next().value})};
r5N.prototype.abort=function(){this.JSC$8468_wrapped.abort();this.JSC$8468_aborted=!0;throw new Jq("EXPLICIT_ABORT");};
r5N.prototype.objectStore=function(V){V=this.JSC$8468_wrapped.objectStore(V);var l=this.objectStoreCache.get(V);l||(l=new kC(V),this.objectStoreCache.set(V,l));return l};
var FQ=function(V){this.JSC$8470_wrapped=V};
FQ.prototype.count=function(V){return ZY(this.JSC$8470_wrapped.count(V))};
FQ.prototype.delete=function(V){return _.CA(this,{query:V},function(l){return l.delete().then(function(){return l.continue()})})};
FQ.prototype.get=function(V){return ZY(this.JSC$8470_wrapped.get(V))};
FQ.prototype.getAll=function(V,l){return"getAll"in IDBIndex.prototype?ZY(this.JSC$8470_wrapped.getAll(V,l)):IhW(this,V,l)};
var IhW=function(V,l,I){var H=[];return _.CA(V,{query:l},function(T){if(!(I!==void 0&&H.length>=I))return H.push(T.getValue()),T.continue()}).then(function(){return H})};
FQ.prototype.keyPath=function(){return this.JSC$8470_wrapped.keyPath};
FQ.prototype.unique=function(){return this.JSC$8470_wrapped.unique};
_.CA=function(V,l,I){V=V.JSC$8470_wrapped.openCursor(l.query===void 0?null:l.query,l.direction===void 0?"next":l.direction);return lhb(V).then(function(H){return tst(H,I)})};
XQ=function(V,l){this.request=V;this.cursor=l};
lhb=function(V){return ZY(V).then(function(l){return l?new XQ(V,l):null})};
XQ.prototype.continue=function(V){this.cursor.continue(V);return lhb(this.request)};
XQ.prototype.delete=function(){return ZY(this.cursor.delete()).then(function(){})};
XQ.prototype.getValue=function(){return this.cursor.value};
XQ.prototype.update=function(V){return ZY(this.cursor.update(V))};var zA=function(V,l){this.name=V;this.options=l;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},H8b;
zA.prototype.openDb=function(V,l,I){I=I===void 0?{}:I;return Eft(V,l,I)};
zA.prototype.delete=function(V){V=V===void 0?{}:V;return _.Q7(this.name,V)};
H8b=function(V,l){return new Jq("INCOMPATIBLE_DB_VERSION",{dbName:V.name,oldVersion:V.options.version,newVersion:l})};
_.cx=function(V,l){if(!l)throw hq("openWithToken",GU(V.name));return V.open()};
zA.prototype.open=function(){var V=this;if(!this.isCompatible)throw H8b(this);if(this.connectionPromise)return this.connectionPromise;var l,I=function(){V.connectionPromise===l&&(V.connectionPromise=void 0)},H={blocking:function(x){x.close()},
closed:I,terminated:I,upgrade:this.options.upgrade},T=function(){var x,n,w,N,L,e,k,X,r,E;return _.d(function(D){switch(D.nextAddress){case 1:return n=(x=Error().stack)!=null?x:"",_.jd(D,2),_.K(D,V.openDb(V.name,V.options.version,H),4);case 4:for(var Z=w=D.yieldResult,S=V.options,p=[],Vf=_.U(Object.keys(S.objectStores)),C=Vf.next();!C.done;C=Vf.next()){C=C.value;var By=S.objectStores[C],lN=By.removedAtVersion===void 0?Number.MAX_VALUE:By.removedAtVersion;!(Z.JSC$8445_wrapped.version>=By.addedAtVersion)||
Z.JSC$8445_wrapped.version>=lN||Z.JSC$8445_wrapped.objectStoreNames.contains(C)||p.push(C)}N=p;if(N.length===0){D.jumpTo(5);break}L=Object.keys(V.options.objectStores);e=w.objectStoreNames();if(V.timesReopenedToFixMissingObjectStore<_.g7("ytidb_reopen_db_retries",0))return V.timesReopenedToFixMissingObjectStore++,w.close(),_.y7(new Jq("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:V.name,expectedObjectStores:L,foundObjectStores:e})),D.return(T());if(!(V.timesDeletedToFixMissingObjectStore<_.g7("ytidb_remake_db_retries",
1))){D.jumpTo(6);break}V.timesDeletedToFixMissingObjectStore++;return _.K(D,V.delete(),7);case 7:return _.y7(new Jq("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:V.name,expectedObjectStores:L,foundObjectStores:e})),D.return(T());case 6:throw new uH3(e,L);case 5:return D.return(w);case 2:k=_.kE(D);if(k instanceof DOMException?k.name!=="VersionError":"DOMError"in self&&k instanceof DOMError?k.name!=="VersionError":!(k instanceof Object&&"message"in k)||k.message!=="An attempt was made to open a database using a lower version than the existing version."){D.jumpTo(8);
break}return _.K(D,V.openDb(V.name,void 0,Object.assign({},H,{upgrade:void 0})),9);case 9:X=D.yieldResult;r=X.getVersion();if(V.options.version!==void 0&&r>V.options.version+1)throw X.close(),V.isCompatible=!1,H8b(V,r);return D.return(X);case 8:throw I(),k instanceof Error&&!_.z("ytidb_async_stack_killswitch")&&(k.stack=k.stack+"\n"+n.substring(n.indexOf("\n")+1)),kVJ(k,V.name,"",(E=V.options.version)!=null?E:-1);}})};
return this.connectionPromise=l=T()};var J5w=new zA("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(V,l){l(1)&&DB(V,"databases",{keyPath:"actualName"})}});var RZJ,ZW3=new function(){}(new function(){});new _.IQ;var TSN=function(V,l){zA.call(this,V,l);this.options=l;rm(V)};
_.t(TSN,zA);var u3N=function(V,l){var I;return function(){I||(I=new TSN(V,l));return I}};
TSN.prototype.openDb=function(V,l,I){I=I===void 0?{}:I;return(this.options.shared?qlJ:bWy)(V,l,Object.assign({},I))};
TSN.prototype.delete=function(V){V=V===void 0?{}:V;return(this.options.shared?A5N:Ms1)(this.name,V)};var BSv={},vfK=vx("ytGcfConfig",{objectStores:(BSv.coldConfigStore={addedAtVersion:1},BSv.hotConfigStore={addedAtVersion:1},BSv),shared:!1,upgrade:function(V,l){l(1)&&(ZB(DB(V,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),ZB(DB(V,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var xzb=function(){_.XG.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var V=_.SN("yt.gcf.config.hotUpdateCallbacks");V?(this.localHotConfigJobQueue=[].concat(_.oI(V)),this.sharedHotConfigJobQueue=V):(this.sharedHotConfigJobQueue=[],_.Aq("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.t(xzb,_.XG);xzb.prototype.disposeInternal=function(){for(var V=_.U(this.localHotConfigJobQueue),l=V.next();!l.done;l=V.next()){var I=this.sharedHotConfigJobQueue;l=I.indexOf(l.value);l>=0&&I.splice(l,1)}this.localHotConfigJobQueue.length=0;_.XG.prototype.disposeInternal.call(this)};var Fv=function(){var V=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new xzb;this.TEST_ONLY={initializeConfigDb:function(){V.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return V.coldGlobalConfigGroup},
setHotConfigGroup:function(l){UzZ(V,l)},
setHotHashData:function(l){V.setHotHashData(l)},
setColdConfigGroup:function(l){nAZ(V,l)},
getColdHashData:function(){return V.coldHashData},
getHotHashData:function(){return V.hotHashData},
getHotConfigGroup:function(){return V.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return $zJ()},
getExportedHotConfigGroup:function(){return yr()},
getExportedColdHashData:function(){return _.SN("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.SN("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){dzB(V)},
resetInstance:function(){V.setHotHashData(void 0);wU3(V);delete Fv.instance},
setDebounceTimer:function(l){V.debounceTimer=l},
getDebounceTimer:function(){return V.debounceTimer}}},NS3=function(){if(!Fv.instance){var V=new Fv;
Fv.instance=V}return Fv.instance},YAv=function(V){var l;
_.d(function(I){if(I.nextAddress==1)return _.z("start_client_gcf")||_.z("delete_gcf_config_db")?_.z("start_client_gcf")?_.K(I,_.u2(),3):I.jumpTo(2):I.return();I.nextAddress!=2&&((l=I.yieldResult)&&_.jO()&&!_.z("delete_gcf_config_db")?(V.isConfigDbInitialized=!0,dzB(V)):(KKZ(V),jav(V)));return _.z("delete_gcf_config_db")?_.K(I,mrf(),0):I.jumpTo(0)})},VMN=function(){var V;
return(V=yr())!=null?V:_.h6("RAW_HOT_CONFIG_GROUP")},LKo=function(V){var l,I,H,T,x,n;
return _.d(function(w){switch(w.nextAddress){case 1:if(V.hotGlobalConfigGroup)return w.return(yr());if(!V.isConfigDbInitialized)return l=hq("getHotConfig IDB not initialized"),_.Rw(l),w.return(Promise.reject(l));I=pA();H=_.h6("TIME_CREATED_MS");if(!I){T=hq("getHotConfig token error");_.Rw(T);w.jumpTo(2);break}return _.K(w,gfy(I),3);case 3:if((x=w.yieldResult)&&x.timestamp>H)return UzZ(V,x.config),V.setHotHashData(x.hashData),w.return(yr());case 2:jav(V);if(!(I&&V.hotGlobalConfigGroup&&V.hotHashData)){w.jumpTo(4);
break}return _.K(w,CB3(V.hotGlobalConfigGroup,V.hotHashData,I,H),4);case 4:return V.hotGlobalConfigGroup?w.return(yr()):(n=new _.Yd("Config not available in ytConfig"),_.Rw(n),w.return(Promise.reject(n)))}})},kuZ=function(V){var l,I,H,T,x,n;
return _.d(function(w){switch(w.nextAddress){case 1:if(V.coldGlobalConfigGroup)return w.return($zJ());if(!V.isConfigDbInitialized)return l=hq("getColdConfig IDB not initialized"),_.Rw(l),w.return(Promise.reject(l));I=pA();H=_.h6("TIME_CREATED_MS");if(!I){T=hq("getColdConfig");_.Rw(T);w.jumpTo(2);break}return _.K(w,fwf(I),3);case 3:if((x=w.yieldResult)&&x.timestamp>H)return nAZ(V,x.config),eRw(V,x.configData),wU3(V,x.hashData),w.return($zJ());case 2:KKZ(V);if(!(I&&V.coldGlobalConfigGroup&&V.coldHashData&&
V.configData)){w.jumpTo(4);break}return _.K(w,aw3(V.coldGlobalConfigGroup,V.coldHashData,V.configData,I,H),4);case 4:return V.coldGlobalConfigGroup?w.return($zJ()):(n=new _.Yd("Config not available in ytConfig"),_.Rw(n),w.return(Promise.reject(n)))}})},dzB=function(V){if(!V.hotGlobalConfigGroup||!V.coldGlobalConfigGroup){if(!pA()){var l=hq("scheduleGetConfigs");
_.Rw(l)}V.initJob||(V.initJob=_.r0.addLowPriorityJob(function(){return _.d(function(I){switch(I.nextAddress){case 1:return _.jd(I,2),_.K(I,LKo(V),4);case 4:_.Rv(I,3);break;case 2:_.kE(I);case 3:return _.jd(I,5),_.K(I,kuZ(V),7);case 7:_.Rv(I,6);break;case 5:_.kE(I);case 6:V.initJob&&(V.initJob=0),_.FU(I)}})},100))}},atK=function(V,l,I){var H,T,x;
return _.d(function(n){switch(n.nextAddress){case 1:if(!_.z("start_client_gcf")){n.jumpTo(0);break}I&&UzZ(V,I);V.setHotHashData(l);H=pA();if(!H){n.jumpTo(3);break}if(I){n.jumpTo(4);break}return _.K(n,gfy(H),5);case 5:T=n.yieldResult,I=(x=T)==null?void 0:x.config;case 4:return _.K(n,CB3(I,l,H),3);case 3:if(I)for(var w=I,N=_.U(V.configUpdateService.sharedHotConfigJobQueue),L=N.next();!L.done;L=N.next())L=L.value,L(w);_.FU(n)}})},fty=function(V,l,I){var H,T,x,n;
return _.d(function(w){if(w.nextAddress==1){if(!_.z("start_client_gcf"))return w.jumpTo(0);wU3(V,l);return(H=pA())?I?w.jumpTo(4):_.K(w,fwf(H),5):w.jumpTo(0)}w.nextAddress!=4&&(T=w.yieldResult,I=(x=T)==null?void 0:x.config);if(!I)return w.jumpTo(0);n=I.configData;return _.K(w,aw3(I,l,n,H),0)})},LLT=function(){var V=NS3(),l=(0,_.O_)()-V.debounceTimer;
if(!(V.debounceTimer!==0&&l<_.g7("send_config_hash_timer"))){l=_.SN("yt.gcf.config.coldConfigData");var I=_.SN("yt.gcf.config.hotHashData"),H=_.SN("yt.gcf.config.coldHashData");l&&I&&H&&(V.debounceTimer=(0,_.O_)());return{coldConfigData:l,hotHashData:I,coldHashData:H}}},KKZ=function(V){nAZ(V,_.h6("RAW_COLD_CONFIG_GROUP"));
wU3(V,_.h6("SERIALIZED_COLD_HASH_DATA"));var l;eRw(V,(l=V.coldGlobalConfigGroup)==null?void 0:l.configData)},jav=function(V){UzZ(V,_.h6("RAW_HOT_CONFIG_GROUP"));
V.setHotHashData(_.h6("SERIALIZED_HOT_HASH_DATA"))},UzZ=function(V,l){V.hotGlobalConfigGroup=l;
_.Aq("yt.gcf.config.hotConfigGroup",V.hotGlobalConfigGroup||null)},nAZ=function(V,l){V.coldGlobalConfigGroup=l;
_.Aq("yt.gcf.config.coldConfigGroup",V.coldGlobalConfigGroup||null)};
Fv.prototype.setHotHashData=function(V){this.hotHashData=V;_.Aq("yt.gcf.config.hotHashData",this.hotHashData||null)};
var wU3=function(V,l){V.coldHashData=l;_.Aq("yt.gcf.config.coldHashData",V.coldHashData||null)},eRw=function(V,l){V.configData=l;
_.Aq("yt.gcf.config.coldConfigData",V.configData||null)},yr=function(){return _.SN("yt.gcf.config.hotConfigGroup")},$zJ=function(){return _.SN("yt.gcf.config.coldConfigGroup")};var TQ={},FKi=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";TQ.assign=function(V){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var I=l.shift();if(I){if(typeof I!=="object")throw new TypeError("Yc`"+I);for(var H in I)Object.prototype.hasOwnProperty.call(I,H)&&(V[H]=I[H])}}return V};
TQ.shrinkBuf=function(V,l){if(V.length===l)return V;if(V.subarray)return V.subarray(0,l);V.length=l;return V};
var XUW={arraySet:function(V,l,I,H,T){if(l.subarray&&V.subarray)V.set(l.subarray(I,I+H),T);else for(var x=0;x<H;x++)V[T+x]=l[I+x]},
flattenChunks:function(V){var l,I;var H=I=0;for(l=V.length;H<l;H++)I+=V[H].length;var T=new Uint8Array(I);H=I=0;for(l=V.length;H<l;H++){var x=V[H];T.set(x,I);I+=x.length}return T}},zRJ={arraySet:function(V,l,I,H,T){for(var x=0;x<H;x++)V[T+x]=l[I+x]},
flattenChunks:function(V){return[].concat.apply([],V)}};
TQ.setTyped=function(){FKi?(TQ.Buf8=Uint8Array,TQ.Buf16=Uint16Array,TQ.Buf32=Int32Array,TQ.assign(TQ,XUW)):(TQ.Buf8=Array,TQ.Buf16=Array,TQ.Buf32=Array,TQ.assign(TQ,zRJ))};
TQ.setTyped();var yOw=!0;try{new Uint8Array(1)}catch(V){yOw=!1}
var gVJ=function(V){var l,I,H=V.length,T=0;for(l=0;l<H;l++){var x=V.charCodeAt(l);if((x&64512)===55296&&l+1<H){var n=V.charCodeAt(l+1);(n&64512)===56320&&(x=65536+(x-55296<<10)+(n-56320),l++)}T+=x<128?1:x<2048?2:x<65536?3:4}var w=new TQ.Buf8(T);for(l=I=0;I<T;l++)x=V.charCodeAt(l),(x&64512)===55296&&l+1<H&&(n=V.charCodeAt(l+1),(n&64512)===56320&&(x=65536+(x-55296<<10)+(n-56320),l++)),x<128?w[I++]=x:(x<2048?w[I++]=192|x>>>6:(x<65536?w[I++]=224|x>>>12:(w[I++]=240|x>>>18,w[I++]=128|x>>>12&63),w[I++]=
128|x>>>6&63),w[I++]=128|x&63);return w};var WLW={};WLW=function(V,l,I,H){var T=V&65535|0;V=V>>>16&65535|0;for(var x;I!==0;){x=I>2E3?2E3:I;I-=x;do T=T+l[H++]|0,V=V+T|0;while(--x);T%=65521;V%=65521}return T|V<<16|0};for(var ke={},t4,tXo=[],rO0=0;rO0<256;rO0++){t4=rO0;for(var Guw=0;Guw<8;Guw++)t4=t4&1?3988292384^t4>>>1:t4>>>1;tXo[rO0]=t4}ke=function(V,l,I,H){I=H+I;for(V^=-1;H<I;H++)V=V>>>8^tXo[(V^l[H])&255];return V^-1};var n0={};n0={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 EVw=[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],oVT=[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],ffc=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],QQ1=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ND=Array(576);Vz(ND);var K0=Array(60);Vz(K0);var xe=Array(512);Vz(xe);var Ba=Array(256);Vz(Ba);var Jvy=Array(29);Vz(Jvy);var hrT=Array(30);Vz(hrT);var OYf,C3W,afK,vVT=!1;var t2;
t2=[new yz(0,0,0,0,function(V,l){var I=65535;for(I>V.pending_buf_size-5&&(I=V.pending_buf_size-5);;){if(V.lookahead<=1){Ff(V);if(V.lookahead===0&&l===0)return 1;if(V.lookahead===0)break}V.strstart+=V.lookahead;V.lookahead=0;var H=V.block_start+I;if(V.strstart===0||V.strstart>=H)if(V.lookahead=V.strstart-H,V.strstart=H,jQ(V,!1),V.strm.avail_out===0)return 1;if(V.strstart-V.block_start>=V.w_size-262&&(jQ(V,!1),V.strm.avail_out===0))return 1}V.insert=0;if(l===4)return jQ(V,!0),V.strm.avail_out===0?3:
4;V.strstart>V.block_start&&jQ(V,!1);return 1}),
new yz(4,4,8,4,bYW),new yz(4,5,16,8,bYW),new yz(4,6,32,32,bYW),new yz(4,4,16,16,zQ),new yz(8,16,32,32,zQ),new yz(8,16,128,128,zQ),new yz(8,32,128,256,zQ),new yz(32,128,258,1024,zQ),new yz(32,258,258,4096,zQ)];var uMy={};uMy=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 mvf=Object.prototype.toString;
Avf.prototype.push=function(V,l){var I=this.strm,H=this.options.chunkSize;if(this.ended)return!1;var T=l===~~l?l:l===!0?4:0;typeof V==="string"?I.input=gVJ(V):mvf.call(V)==="[object ArrayBuffer]"?I.input=new Uint8Array(V):I.input=V;I.next_in=0;I.avail_in=I.input.length;do{I.avail_out===0&&(I.output=new TQ.Buf8(H),I.next_out=0,I.avail_out=H);V=pbt(I,T);if(V!==1&&V!==0)return EAi(this,V),this.ended=!0,!1;if(I.avail_out===0||I.avail_in===0&&(T===4||T===2))if(this.options.to==="string"){var x=TQ.shrinkBuf(I.output,
I.next_out);l=x;x=x.length;if(x<65537&&(l.subarray&&yOw||!l.subarray))l=String.fromCharCode.apply(null,TQ.shrinkBuf(l,x));else{for(var n="",w=0;w<x;w++)n+=String.fromCharCode(l[w]);l=n}this.chunks.push(l)}else l=TQ.shrinkBuf(I.output,I.next_out),this.chunks.push(l)}while((I.avail_in>0||I.avail_out===0)&&V!==1);if(T===4)return(I=this.strm)&&I.state?(H=I.state.status,H!==42&&H!==69&&H!==73&&H!==91&&H!==103&&H!==113&&H!==666?V=$e(I,-2):(I.state=null,V=H===113?$e(I,-3):0)):V=-2,EAi(this,V),this.ended=
!0,V===0;T===2&&(EAi(this,0),I.avail_out=0);return!0};
var EAi=function(V,l){l===0&&(V.result=V.options.to==="string"?V.chunks.join(""):TQ.flattenChunks(V.chunks));V.chunks=[];V.err=l;V.msg=V.strm.msg};var JON=typeof TextEncoder!=="undefined"?new TextEncoder:null,JTN=JON?function(V){return JON.encode(V)}:function(V){V=_.FG(V);
for(var l=new Uint8Array(V.length),I=0;I<l.length;I++)l[I]=V[I];return l};var la3={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Hit={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var r3=function(V,l){this.version=V;this.args=l};
r3.prototype.serialize=function(){return{version:this.version,args:this.args}};var Hm3=function(V,l){this.topic=V;this.dataClass=l};
Hm3.prototype.toString=function(){return this.topic};var oAZ=_.SN("ytPubsub2Pubsub2Instance")||new _.nA;_.nA.prototype.subscribe=_.nA.prototype.subscribe;_.nA.prototype.unsubscribeByKey=_.nA.prototype.unsubscribeByKey;_.nA.prototype.publish=_.nA.prototype.publish;_.nA.prototype.clear=_.nA.prototype.clear;_.Aq("ytPubsub2Pubsub2Instance",oAZ);var IRg=_.SN("ytPubsub2Pubsub2SubscribedKeys")||{};_.Aq("ytPubsub2Pubsub2SubscribedKeys",IRg);var B_1=_.SN("ytPubsub2Pubsub2TopicToKeys")||{};_.Aq("ytPubsub2Pubsub2TopicToKeys",B_1);
var T_1=_.SN("ytPubsub2Pubsub2IsAsync")||{};_.Aq("ytPubsub2Pubsub2IsAsync",T_1);_.Aq("ytPubsub2Pubsub2SkipSubKey",null);var Y7q=void 0,Kjq=void 0;var t5q=_.g7("max_body_size_to_compress",5E5),rTf=_.g7("min_body_size_to_compress",500),Eh=!0,PfT=0,J2=0,he1=_.g7("compression_performance_threshold_lr",250),Dew=_.g7("slow_compressions_before_abandon_count",4),koW=!1,Fjf=new Map,Esy=1,Got=!0;_.Uk(oS,ReJ);oS.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 hRa=function(V,l,I){I||(I=0);var H=V.W_;if(typeof l==="string")for(var T=0;T<16;T++)H[T]=l.charCodeAt(I)<<24|l.charCodeAt(I+1)<<16|l.charCodeAt(I+2)<<8|l.charCodeAt(I+3),I+=4;else for(T=0;T<16;T++)H[T]=l[I]<<24|l[I+1]<<16|l[I+2]<<8|l[I+3],I+=4;for(l=16;l<80;l++)I=H[l-3]^H[l-8]^H[l-14]^H[l-16],H[l]=(I<<1|I>>>31)&4294967295;l=V.chain_[0];I=V.chain_[1];T=V.chain_[2];for(var x=V.chain_[3],n=V.chain_[4],w,N,L=0;L<80;L++)L<40?L<20?(w=x^I&(T^x),N=1518500249):(w=I^T^x,N=1859775393):L<60?(w=I&T|x&(I|T),
N=2400959708):(w=I^T^x,N=3395469782),w=(l<<5|l>>>27)+w+n+N+H[L]&4294967295,n=x,x=T,T=(I<<30|I>>>2)&4294967295,I=l,l=w;V.chain_[0]=V.chain_[0]+l&4294967295;V.chain_[1]=V.chain_[1]+I&4294967295;V.chain_[2]=V.chain_[2]+T&4294967295;V.chain_[3]=V.chain_[3]+x&4294967295;V.chain_[4]=V.chain_[4]+n&4294967295};
oS.prototype.update=function(V,l){if(V!=null){l===void 0&&(l=V.length);for(var I=l-this.blockSize,H=0,T=this.buf_,x=this.inbuf_;H<l;){if(x==0)for(;H<=I;)hRa(this,V,H),H+=this.blockSize;if(typeof V==="string")for(;H<l;){if(T[x]=V.charCodeAt(H),++x,++H,x==this.blockSize){hRa(this,T);x=0;break}}else for(;H<l;)if(T[x]=V[H],++x,++H,x==this.blockSize){hRa(this,T);x=0;break}}this.inbuf_=x;this.total_+=l}};
oS.prototype.digest=function(){var V=[],l=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var I=this.blockSize-1;I>=56;I--)this.buf_[I]=l&255,l/=256;hRa(this,this.buf_);for(I=l=0;I<5;I++)for(var H=24;H>=0;H-=8)V[l]=this.chain_[I]>>H&255,++l;return V};var Wjy;var Em=function(V){var l=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(e){l.databaseToken=e},
triggerThrottle:function(){l.throttledSend()},
cancelThrottle:function(){l.cancelThrottledSend()},
immediateSend:function(e){return _.d(function(k){return _.K(k,l.immediateSend(e),0)})},
requestWithinAgeLimit:function(e,k){return l.requestWithinAgeLimit(e,k)},
retryQueuedRequests:function(){l.retryQueuedRequests()}};
var I;this.throttleTimeout=(I=V.throttleTimeout)!=null?I:100;var H;this.retryMaxAttempts=(H=V.retryMaxAttempts)!=null?H:1;var T;this.requestAgeLimitMs=(T=V.requestAgeLimitMs)!=null?T:2592E6;var x;this.queuedRequestAgeLimitMs=(x=V.queuedRequestAgeLimitMs)!=null?x:12E4;var n;this.retryDelayMs=(n=V.retryDelayMs)!=null?n:5E3;var w;this.databaseToken=(w=V.databaseToken)!=null?w:void 0;this.enableCleaning=!!V.enableCleaning;var N;this.cleaningRate=(N=V.cleaningRate)!=null?N:.1;var L;this.potentialEsfErrorLimit=
(L=V.potentialEsfErrorLimit)!=null?L:10;V.handleError&&(this.handleError=V.handleError);V.handleWarning&&(this.handleWarning=V.handleWarning);V.disableYtIdbTransactions&&(this.disableYtIdbTransactions=V.disableYtIdbTransactions);V.bypassDbTokenDependency&&(this.bypassDbTokenDependency=V.bypassDbTokenDependency);this.getBooleanFlag=V.getBooleanFlag;this.jobManager=V.jobManager;this.logsStore=V.logsStore;this.networkManager=V.networkManager;this.sendFn=V.sendFn;this.onlineEvent=V.onlineEvent;this.offlineEvent=
V.offlineEvent;GA(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&PKJ(this)},PKJ=function(V){GA(V)&&!V.disableYtIdbTransactions&&(V.initialized=!0,V.enableCleaning&&Math.random()<=V.cleaningRate&&V.logsStore.cleanLogsStore(V.databaseToken),V.retryQueuedRequests(),V.networkManager.isNetworkAvailable()&&V.throttledSend(),V.networkManager.listen(V.onlineEvent,V.throttledSend.bind(V)),V.networkManager.listen(V.offlineEvent,V.cancelThrottledSend.bind(V)))};
_.B=Em.prototype;_.B.writeThenSend=function(V,l){var I=this;l=l===void 0?{}:l;if(GA(this)&&this.initialized){var H={url:V,options:l,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(H,this.databaseToken).then(function(T){H.id=T;I.networkManager.isNetworkAvailable()&&I.immediateSend(H)}).catch(function(T){I.immediateSend(H);
Dzv(I,T)})}else this.sendFn(V,l)};
_.B.sendThenWrite=function(V,l,I){var H=this;l=l===void 0?{}:l;if(GA(this)&&this.initialized){var T={url:V,options:l,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(T.skipRetry=I);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!T.skipRetry){if(!T.skipRetry){var x=l.onError?l.onError:function(){};
l.onError=function(n,w){return _.d(function(N){if(N.nextAddress==1)return _.K(N,H.logsStore.set(T,H.databaseToken).catch(function(L){Dzv(H,L)}),2);
x(n,w);_.FU(N)})}}this.sendFn(V,l,T.skipRetry)}else this.logsStore.set(T,this.databaseToken).catch(function(n){H.sendFn(V,l,T.skipRetry);
Dzv(H,n)})}else this.sendFn(V,l,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&I)};
_.B.sendAndWrite=function(V,l){var I=this;l=l===void 0?{}:l;if(GA(this)&&this.initialized){var H={url:V,options:l,timestamp:this.now(),status:"NEW",sendCount:0},T=!1,x=l.onSuccess?l.onSuccess:function(){};
H.options.onSuccess=function(n,w){H.id!==void 0?I.logsStore.deleteRequest(H.id,I.databaseToken):T=!0;I.networkManager.networkStatusHint&&I.getBooleanFlag&&I.getBooleanFlag("vss_network_hint")&&I.networkManager.networkStatusHint(!0);x(n,w)};
this.sendFn(H.url,H.options,void 0,!0);this.logsStore.set(H,this.databaseToken).then(function(n){H.id=n;T&&I.logsStore.deleteRequest(H.id,I.databaseToken)}).catch(function(n){Dzv(I,n)})}else this.sendFn(V,l,void 0,!0)};
_.B.throttledSend=function(){var V=this;if(!GA(this))throw Error("ad");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,V.logsStore.getMostRecentByStatus("NEW",V.databaseToken),2);if(I.nextAddress!=3)return l=I.yieldResult,l?_.K(I,V.immediateSend(l),3):(V.cancelThrottledSend(),I.return());V.intervalJob&&(V.intervalJob=0,V.throttledSend());_.FU(I)})},this.throttleTimeout))};
_.B.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.B.immediateSend=function(V){var l=this,I;return _.d(function(H){switch(H.nextAddress){case 1:if(!GA(l))throw Error("bd");if(V.id===void 0){H.jumpTo(2);break}return _.K(H,l.logsStore.markAsQueued(V.id,l.databaseToken),3);case 3:(I=H.yieldResult)||l.handleWarning(Error("cd"));case 2:if(l.requestWithinAgeLimit(V,l.requestAgeLimitMs)){H.jumpTo(4);break}l.handleWarning(Error("dd"));if(V.id===void 0){H.jumpTo(5);break}return _.K(H,l.logsStore.deleteRequest(V.id,l.databaseToken),5);case 5:return H.return();
case 4:V.skipRetry||(V=Z8v(l,V));if(!V){H.jumpTo(0);break}if(!V.skipRetry||V.id===void 0){H.jumpTo(8);break}return _.K(H,l.logsStore.deleteRequest(V.id,l.databaseToken),8);case 8:l.sendFn(V.url,V.options,!!V.skipRetry),_.FU(H)}})};
var Z8v=function(V,l){if(!GA(V))throw Error("ed");var I=l.options.onError?l.options.onError:function(){};
l.options.onError=function(T,x){var n,w,N,L;return _.d(function(e){switch(e.nextAddress){case 1:n=p1q(x);(w=ATy(x))&&V.getBooleanFlag&&V.getBooleanFlag("web_enable_error_204")&&V.handleError(Error("fd"),l.url,x);if(!(V.getBooleanFlag&&V.getBooleanFlag("nwl_consider_error_code")&&n||V.getBooleanFlag&&!V.getBooleanFlag("nwl_consider_error_code")&&V.potentialEsfErrorCounter<=V.potentialEsfErrorLimit)){e.jumpTo(2);break}if(!V.networkManager.sendNetworkCheckRequest){e.jumpTo(3);break}return _.K(e,V.networkManager.sendNetworkCheckRequest(),
3);case 3:if(V.networkManager.isNetworkAvailable()){e.jumpTo(2);break}I(T,x);if(!V.getBooleanFlag||!V.getBooleanFlag("nwl_consider_error_code")||((N=l)==null?void 0:N.id)===void 0){e.jumpTo(6);break}return _.K(e,V.logsStore.resetRequest(l.id,V.databaseToken,!1),6);case 6:return e.return();case 2:if(V.getBooleanFlag&&V.getBooleanFlag("nwl_consider_error_code")&&!n&&V.potentialEsfErrorCounter>V.potentialEsfErrorLimit)return e.return();V.potentialEsfErrorCounter++;if(((L=l)==null?void 0:L.id)===void 0){e.jumpTo(8);
break}return l.sendCount<V.retryMaxAttempts?_.K(e,V.logsStore.resetRequest(l.id,V.databaseToken,!0,w?!1:void 0),12):_.K(e,V.logsStore.deleteRequest(l.id,V.databaseToken),8);case 12:V.jobManager.addLowPriorityJob(function(){V.networkManager.isNetworkAvailable()&&V.throttledSend()},V.retryDelayMs);
case 8:I(T,x),_.FU(e)}})};
var H=l.options.onSuccess?l.options.onSuccess:function(){};
l.options.onSuccess=function(T,x){var n;return _.d(function(w){if(w.nextAddress==1)return((n=l)==null?void 0:n.id)===void 0?w.jumpTo(2):_.K(w,V.logsStore.deleteRequest(l.id,V.databaseToken),2);V.networkManager.networkStatusHint&&V.getBooleanFlag&&V.getBooleanFlag("vss_network_hint")&&V.networkManager.networkStatusHint(!0);H(T,x);_.FU(w)})};
return l};
Em.prototype.requestWithinAgeLimit=function(V,l){V=V.timestamp;return this.now()-V>=l?!1:!0};
Em.prototype.retryQueuedRequests=function(){var V=this;if(!GA(this))throw Error("gd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(l){l&&!V.requestWithinAgeLimit(l,V.queuedRequestAgeLimitMs)?V.jobManager.addLowPriorityJob(function(){return _.d(function(I){if(I.nextAddress==1)return l.id===void 0?I.jumpTo(2):_.K(I,V.logsStore.resetRequest(l.id,V.databaseToken),2);V.retryQueuedRequests();_.FU(I)})}):V.networkManager.isNetworkAvailable()&&V.throttledSend()})};
var Dzv=function(V,l){V.writeError&&!V.networkManager.isNetworkAvailable()?V.writeError(l):V.handleError(l)},GA=function(V){return!!V.databaseToken||V.bypassDbTokenDependency};var uVW;var iaW={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var SAv={},lAK=vx("ServiceWorkerLogsDatabase",{objectStores:(SAv.SWHealthLog={addedAtVersion:1},SAv),shared:!0,upgrade:function(V,l){l(1)&&ZB(DB(V,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var $R1={},n73=0;var KcJ;var J4=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Wa=function(){if(!J4.instance){var V=_.SN("yt.networkRequestMonitor.instance")||new J4;
_.Aq("yt.networkRequestMonitor.instance",V);J4.instance=V}return J4.instance};
J4.prototype.requestComplete=function(V,l){l&&(this.anyRequestHasSucceeded=!0);V=this.removeParams(V);this.requestMap.get(V)||this.requestMap.set(V,l)};
J4.prototype.isEndpointCFR=function(V){V=this.removeParams(V);return(V=this.requestMap.get(V))?!1:V===!1&&this.anyRequestHasSucceeded?!0:null};
J4.prototype.removeParams=function(V){return V.split("?")[0]};
J4.prototype.removeParams=J4.prototype.removeParams;J4.prototype.isEndpointCFR=J4.prototype.isEndpointCFR;J4.prototype.requestComplete=J4.prototype.requestComplete;J4.getInstance=Wa;var oC=function(V){_.tm.call(this);var l=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=V!=null?V:{addLowPriorityJob:function(T,x){return setTimeout(T,x)},
cancelJob:function(T){clearTimeout(T)}};
var I,H;this.isOnline=(H=(I=window.navigator)==null?void 0:I.onLine)!=null?H:!0;this.onNavigatorChange=function(){return _.d(function(T){return _.K(T,RRb(l),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||QaZ(this)};
_.t(oC,_.tm);oC.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete oC.instance};
oC.prototype.isNetworkAvailable=function(){return this.isOnline};
var QaZ=function(V){V.pollingJob=V.jobManager.addLowPriorityJob(function(){var l;return _.d(function(I){if(I.nextAddress==1)return V.isOnline?((l=window.navigator)==null?0:l.onLine)?I.jumpTo(3):_.K(I,RRb(V),3):_.K(I,RRb(V),3);QaZ(V);_.FU(I)})},3E4)},RRb=function(V,l){return V.networkRequestPromise?V.networkRequestPromise:V.networkRequestPromise=new Promise(function(I){var H,T,x,n;
return _.d(function(w){switch(w.nextAddress){case 1:return H=window.AbortController?new window.AbortController:void 0,x=(T=H)==null?void 0:T.signal,n=!1,_.jd(w,2,3),H&&(V.abortTimeoutKey=V.jobManager.addLowPriorityJob(function(){H.abort()},l||2E4)),_.K(w,fetch("/generate_204",{method:"HEAD",
signal:x}),5);case 5:n=!0;case 3:_.YE(w);V.networkRequestPromise=void 0;V.abortTimeoutKey&&(V.jobManager.cancelJob(V.abortTimeoutKey),V.abortTimeoutKey=0);n!==V.isOnline&&(V.isOnline=n,V.isOnline?V.dispatchEvent("networkstatus-online"):V.dispatchEvent("networkstatus-offline"));I(n);_.ed(w,0);break;case 2:_.kE(w),n=!1,w.jumpTo(3)}})})};var h4=function(){_.tm.call(this);var V=this;this.shouldFlushErrors=!1;oC.instance||(oC.instance=new oC(_.r0));this.sharedNetworkStatusManager=oC.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(V.shouldFlushErrors&&_.z("offline_error_handling")){var l=jNf().get("errors",!0);if(l){for(var I in l)if(l[I]){var H=new _.Yd(I,"sent via offline_errors");H.name=l[I].name;H.stack=l[I].stack;H.level=l[I].level;_.Dp(H)}jNf().set("errors",{},2592E3,!0)}}})};
_.t(h4,_.tm);var cON=function(){if(!h4.instance){var V=_.SN("yt.networkStatusManager.instance")||new h4;_.Aq("yt.networkStatusManager.instance",V);h4.instance=V}return h4.instance};
_.B=h4.prototype;_.B.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.B.networkStatusHint=function(V){this.sharedNetworkStatusManager.isOnline=V};
_.B.getWindowStatus=function(){var V=window.navigator.onLine;return V===void 0?!0:V};
_.B.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.B.listen=function(V,l){return this.sharedNetworkStatusManager.listen(V,l)};
_.B.sendNetworkCheckRequest=function(V){V=RRb(this.sharedNetworkStatusManager,V);V.then(function(l){_.z("use_cfr_monitor")&&Wa().requestComplete("generate_204",l)});
return V};
h4.prototype.sendNetworkCheckRequest=h4.prototype.sendNetworkCheckRequest;h4.prototype.listen=h4.prototype.listen;h4.prototype.enableErrorFlushing=h4.prototype.enableErrorFlushing;h4.prototype.getWindowStatus=h4.prototype.getWindowStatus;h4.prototype.networkStatusHint=h4.prototype.networkStatusHint;h4.prototype.isNetworkAvailable=h4.prototype.isNetworkAvailable;h4.getInstance=cON;_.ca=function(V){V=V===void 0?{}:V;_.tm.call(this);var l=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=cON();var I=_.SN("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);I&&(V.rateLimit?(this.rateLimit=V.rateLimit,I("networkstatus-online",function(){WKN(l,"publicytnetworkstatus-online")}),I("networkstatus-offline",function(){WKN(l,"publicytnetworkstatus-offline")})):(I("networkstatus-online",function(){l.dispatchEvent("publicytnetworkstatus-online")}),I("networkstatus-offline",
function(){l.dispatchEvent("publicytnetworkstatus-offline")})))};
_.t(_.ca,_.tm);_.ca.prototype.isNetworkAvailable=function(){var V=_.SN("yt.networkStatusManager.instance.isNetworkAvailable");return V?V.bind(this.nsmInstance)():!0};
_.ca.prototype.networkStatusHint=function(V){var l=_.SN("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);l&&l(V)};
_.ca.prototype.sendNetworkCheckRequest=function(V){var l=this,I;return _.d(function(H){I=_.SN("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(l.nsmInstance);return _.z("skip_network_check_if_cfr")&&Wa().isEndpointCFR("generate_204")?H.return(new Promise(function(T){var x;l.networkStatusHint(((x=window.navigator)==null?void 0:x.onLine)||!0);T(l.isNetworkAvailable())})):I?H.return(I(V)):H.return(!0)})};
var WKN=function(V,l){V.rateLimit?V.lastJobTime?(_.r0.cancelJob(V.schedulerJob),V.schedulerJob=_.r0.addLowPriorityJob(function(){V.lastPublicSignalSent!==l&&(V.dispatchEvent(l),V.lastPublicSignalSent=l,V.lastJobTime=(0,_.O_)())},V.rateLimit-((0,_.O_)()-V.lastJobTime))):(V.dispatchEvent(l),V.lastPublicSignalSent=l,V.lastJobTime=(0,_.O_)()):V.dispatchEvent(l)};var Fcw,P6=function(){Em.call(this,{logsStore:{cleanLogsStore:imW,deleteRequest:mec,getMostRecentByStatus:aR3,markAsQueued:fRT,resetRequest:gs3,set:Cfg},networkManager:_.XXJ(),handleError:function(V,l,I){var H,T=I==null?void 0:(H=I.error)==null?void 0:H.code;if(T===400||T===415){var x;V=new _.Yd(V.message,l,I==null?void 0:(x=I.error)==null?void 0:x.code);_.Rw(V,void 0,void 0,void 0,!0)}else _.Dp(V)},
handleWarning:_.Rw,sendFn:en1,now:_.O_,writeError:YIg,jobManager:_.Dk(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.g7("potential_esf_error_limit",10),getBooleanFlag:_.z,disableYtIdbTransactions:!(_.jO()&&_.znK())});this.initializationPromise=new _.IQ;_.z("networkless_immediately_drop_all_requests")&&Vz3();A5N("LogsDatabaseV2")};
_.t(P6,Em);_.qAZ=function(){var V=_.SN("yt.networklessRequestController.instance");V||(V=new P6,_.Aq("yt.networklessRequestController.instance",V),_.z("networkless_logging")&&_.u2().then(function(l){V.databaseToken=l;PKJ(V);V.initializationPromise.resolve();V.enableCleaning&&Math.random()<=V.cleaningRate&&V.databaseToken&&Htc(V.databaseToken);_.z("networkless_immediately_drop_sw_health_store")&&b8E(V)}));
return V};
P6.prototype.writeThenSend=function(V,l){l||(l={});l=kGJ(V,l);_.jO()||(this.initialized=!1);Em.prototype.writeThenSend.call(this,V,l)};
P6.prototype.sendThenWrite=function(V,l,I){l||(l={});l=kGJ(V,l);_.jO()||(this.initialized=!1);Em.prototype.sendThenWrite.call(this,V,l,I)};
P6.prototype.sendAndWrite=function(V,l){l||(l={});l=kGJ(V,l);_.jO()||(this.initialized=!1);Em.prototype.sendAndWrite.call(this,V,l)};
P6.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var b8E=function(V){var l;_.d(function(I){if(!V.databaseToken)throw l=hq("clearSWHealthLogsDb"),l;return I.return(Tj1(V.databaseToken).catch(function(H){V.handleError(H)}))})};_.tzK=!1;_.yoK=_.nK.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.tzK};_.Aq("ytNetworklessLoggingInitializationOptions",_.yoK);var yC=function(V){var l=this;this.config_=null;V?this.config_=V:iW3()&&(this.config_=_.av());_.et(_.r0,function(){sj3(l)},5E3)};
yC.prototype.isReady=function(){!this.config_&&iW3()&&(this.config_=_.av());return!!this.config_};
var M5q=function(V,l,I,H){!_.h6("VISITOR_DATA")&&l!=="visitor_id"&&Math.random()<.01&&_.Rw(new _.Yd("Missing VISITOR_DATA when sending innertube request.",l,I,H));if(!V.isReady()){var T=new _.Yd("innertube xhrclient not ready",l,I,H);_.Dp(T);throw T;}var x={headers:H.headers||{},method:"POST",postParams:I,postBody:H.postBody,postBodyFormat:H.postBodyFormat||"JSON",onTimeout:function(){H.onTimeout()},
onFetchTimeout:H.onTimeout,onSuccess:function(k,X){if(H.onSuccess)H.onSuccess(X)},
onFetchSuccess:function(k){if(H.onSuccess)H.onSuccess(k)},
onError:function(k,X){if(H.onError)H.onError(X)},
onFetchError:function(k){if(H.onError)H.onError(k)},
timeout:H.timeout,withCredentials:!0,compress:H.compress};x.headers["Content-Type"]||(x.headers["Content-Type"]="application/json");var n="";(T=V.config_.innertubeHostOverride)&&(n=T);var w=V.config_.innertubeUseThirdPartyAuth||!1,N=_.Yzq(w,n,H);Object.assign(x.headers,N);x.headers.Authorization&&!n&&w&&(x.headers["x-origin"]=window.location.origin);var L=_.qS(n+("/youtubei/"+V.config_.innertubeApiVersion+"/"+l),{alt:"json"}),e=function(k){k=k===void 0?!1:k;var X;if(H.retry&&n!="www.youtube-nocookie.com"&&
(k||_.z("skip_ls_gel_retry")||x.headers["Content-Type"]!=="application/json"||(X=bmJ(l,I,N,w)),X)){var r=x.onSuccess,E=x.onFetchSuccess;x.onSuccess=function(S,p){q7w(X);r(S,p)};
I.onFetchSuccess=function(S,p){q7w(X);E(S,p)}}try{if(k&&H.retry&&!H.networklessOptions.bypassNetworkless)x.method="POST",H.networklessOptions.writeThenSend?_.qAZ().writeThenSend(L,x):_.qAZ().sendAndWrite(L,x);
else if(H.compress){var D=!H.networklessOptions.writeThenSend;if(x.postBody){var Z=x.postBody;typeof Z!=="string"&&(Z=JSON.stringify(x.postBody));os1(L,Z,x,_.xd,D)}else os1(L,JSON.stringify(x.postParams),x,Qzg,D)}else _.z("web_all_payloads_via_jspb")?_.xd(L,x):Qzg(L,x)}catch(S){if(S.name==="InvalidAccessError")X&&(q7w(X),X=0),_.Rw(Error("hd"));else throw S;}X&&_.et(_.r0,function(){sj3(V)},5E3)};
_.roW()?QAc().then(function(k){e(k)}):e(!1)};var Jz1=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Jz1,_.mV);Jz1.prototype.getIndex=function(){return ZV(this,2)};
Jz1.prototype.setIndex=function(V){return _.Yl(this,2,V)};var MXW=0,E71=_.ja?"webkit":_.Kj?"moz":_.NU?"ms":zUJ?"o":"";_.Aq("ytDomDomGetNextId",_.SN("ytDomDomGetNextId")||function(){return++MXW});var saB={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},va=function(V){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(V=
V||window.event){this.event=V;for(var l in V)l in saB||(this[l]=V[l]);this.scale=V.scale;this.rotation=V.rotation;var I=V.target||V.srcElement;I&&I.nodeType==3&&(I=I.parentNode);this.target=I;var H=V.relatedTarget;if(H)try{H=H.nodeName?H:null}catch(T){H=null}else this.type=="mouseover"?H=V.fromElement:this.type=="mouseout"&&(H=V.toElement);this.relatedTarget=H;this.clientX=V.clientX!=void 0?V.clientX:V.pageX;this.clientY=V.clientY!=void 0?V.clientY:V.pageY;this.keyCode=V.keyCode?V.keyCode:V.which;
this.charCode=V.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=V.altKey;this.ctrlKey=V.ctrlKey;this.shiftKey=V.shiftKey;this.metaKey=V.metaKey;this.pageX_=V.pageX;this.pageY_=V.pageY}}catch(T){}},pUa=function(V){if(document.body&&document.documentElement){var l=document.body.scrollTop+document.documentElement.scrollTop;
V.pageX_=V.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);V.pageY_=V.clientY+l}};
va.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
va.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
va.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var p0=_.nK.ytEventsEventsListeners||{};_.Aq("ytEventsEventsListeners",p0);var Zty=_.nK.ytEventsEventsCounter||{count:0};_.Aq("ytEventsEventsCounter",Zty);var SIy=_.ze(function(){var V=!1;try{var l=Object.defineProperty({},"capture",{get:function(){V=!0}});
window.addEventListener("test",null,l)}catch(I){}return V});_.Uk(C0,_.XG);C0.prototype.onMouseMove_=function(V){V.pageX_===void 0&&pUa(V);var l=V.pageX_;V.pageY_===void 0&&pUa(V);this.position_=new _.og(l,V.pageY_)};
C0.prototype.checkPosition_=function(){if(this.position_){var V=(0,_.O_)();if(this.previousTime_!=0){var l=this.previousPosition_,I=this.position_,H=l.x-I.x;l=l.y-I.y;H=Math.sqrt(H*H+l*l)/(V-this.previousTime_);this.cycles_[this.index_]=Math.abs((H-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(I=l=0;I<4;I++)l+=this.cycles_[I]||0;l>=3&&this.callback_();this.previousVelocity_=H}this.previousTime_=V;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
C0.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Rn1(this.mouseListenerKey_)};var bt3={};var C8w=new _.f("rawColdConfigGroup");var OaK=new _.f("rawHotConfigGroup");var AO3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(AO3,_.mV);var EbT=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(EbT,_.mV);var LO=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V,500)};
_.t(LO,_.mV);LO.prototype.getPayloadCase=function(){return _.Gp(this,ubB)};
LO.prototype.getContext=function(){return _.fA(this,EbT,33)};
var ubB=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516];var MUq=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(MUq,_.mV);var LsJ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(LsJ,_.mV);LsJ.prototype.setVideoId=function(V){return nO(this,1,eLJ,Yh(V))};
LsJ.prototype.getPlaylistId=function(){return _.KS(this,KO(this,eLJ,2))};
var eLJ=[1,2];var RLK=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(RLK,_.mV);RLK.prototype.getContext=function(){return _.fA(this,$l,1)};
RLK.prototype.getTier=function(){return _.Qh(this,7)};var vAa,mu,iG;vAa=_.nK.ytPubsubPubsubInstance||new _.nA;mu=_.nK.ytPubsubPubsubSubscribedKeys||{};iG=_.nK.ytPubsubPubsubTopicToKeys||{};_.qIt=_.nK.ytPubsubPubsubIsSynchronous||{};_.nA.prototype.subscribe=_.nA.prototype.subscribe;_.nA.prototype.unsubscribeByKey=_.nA.prototype.unsubscribeByKey;_.nA.prototype.publish=_.nA.prototype.publish;_.nA.prototype.clear=_.nA.prototype.clear;_.Aq("ytPubsubPubsubInstance",vAa);_.Aq("ytPubsubPubsubTopicToKeys",iG);_.Aq("ytPubsubPubsubIsSynchronous",_.qIt);
_.Aq("ytPubsubPubsubSubscribedKeys",mu);var lx=window;var Dj=_.z("web_enable_lifecycle_monitoring")&&uoy()!==0,O83=_.z("web_enable_lifecycle_monitoring");var ahJ=function(V){var l=this;var I=I===void 0?0:I;var H=H===void 0?_.Dk():H;this.JSC$8667_defaultPriority=I;this.scheduler=H;this.completedResolver=new _.IQ;this.scheduledPayloads=V;for(V={i$jscomp$529:0};V.i$jscomp$529<this.scheduledPayloads.length;V={payload$jscomp$18:void 0,i$jscomp$529:V.i$jscomp$529},V.i$jscomp$529++)V.payload$jscomp$18=this.scheduledPayloads[V.i$jscomp$529],I=function(T){return function(){T.payload$jscomp$18.job();l.scheduledPayloads[T.i$jscomp$529].processed=!0;l.scheduledPayloads.every(function(x){return x.processed===
!0})&&l.completedResolver.resolve()}}(V),H=this.scheduler.addJob(I,CKo(this,V.payload$jscomp$18)),this.scheduledPayloads[V.i$jscomp$529]=Object.assign({},V.payload$jscomp$18,{job:I,
jobId:H})};
ahJ.prototype.flushJobs=function(){var V=this,l=Array.from(this.scheduledPayloads.keys()).sort(function(H,T){return CKo(V,V.scheduledPayloads[T])-CKo(V,V.scheduledPayloads[H])});
l=_.U(l);for(var I=l.next();!I.done;I=l.next())I=this.scheduledPayloads[I.value],I.jobId===void 0||I.processed||(this.scheduler.cancelJob(I.jobId),this.scheduler.addJob(I.job,10))};
ahJ.prototype.cancel=function(){for(var V=_.U(this.scheduledPayloads),l=V.next();!l.done;l=V.next())l=l.value,l.jobId===void 0||l.processed||this.scheduler.cancelJob(l.jobId),l.processed=!0;this.completedResolver.resolve()};
var CKo=function(V,l){var I;return(I=l.priority)!=null?I:V.JSC$8667_defaultPriority};var Zj=function(V){this.state=V;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Dj&&v7c(this.state)};
Zj.prototype.install=function(V){this.plugins.push(V);return this};
Zj.prototype.uninstall=function(){var V=this;_.Q5.apply(0,arguments).forEach(function(l){l=V.plugins.indexOf(l);l>-1&&V.plugins.splice(l,1)})};
Zj.prototype.transition=function(V,l){var I=this;Dj&&Otq(this.state);var H=this.transitions.find(function(x){return Array.isArray(x.from)?x.from.find(function(n){return n===I.state&&x.to===V}):x.from===I.state&&x.to===V});
if(H){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);fhw(this,V,l);this.state=V;Dj&&v7c(this.state);H=H.action.bind(this);var T=this.plugins.filter(function(x){return x[V]}).map(function(x){return x[V]});
H(gAN(this,T),l)}else throw Error("id`"+this.state+"`"+V);};
var gAN=function(V,l){var I=l.filter(function(T){return mzE(V,T)===10}),H=l.filter(function(T){return mzE(V,T)!==10});
return V.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var T=_.Q5.apply(0,arguments);return _.d(function(x){if(x.nextAddress==1)return _.K(x,V.runImmediateJobsAsync.apply(V,[I].concat(_.oI(T))),2);V.setJobSetWithScheduledJobs.apply(V,[H].concat(_.oI(T)));_.FU(x)})}:function(){var T=_.Q5.apply(0,arguments);
V.runImmediateJobsSync.apply(V,[I].concat(_.oI(T)));V.setJobSetWithScheduledJobs.apply(V,[H].concat(_.oI(T)))}};
Zj.prototype.runImmediateJobsSync=function(V){var l=_.Q5.apply(1,arguments);_.Dk();for(var I=_.U(V),H=I.next(),T={};!H.done;T={lifecycle$jscomp$2:void 0},H=I.next())T.lifecycle$jscomp$2=H.value,ui(function(x){return function(){i8o(x.lifecycle$jscomp$2.name);aAt(function(){return x.lifecycle$jscomp$2.callback.apply(x.lifecycle$jscomp$2,_.oI(l))});
SJ(x.lifecycle$jscomp$2.name)}}(T))};
Zj.prototype.runImmediateJobsAsync=function(V){var l=_.Q5.apply(1,arguments),I,H,T,x;return _.d(function(n){n.nextAddress==1&&(_.Dk(),I=_.U(V),H=I.next(),T={});if(n.nextAddress!=3){if(H.done)return n.jumpTo(0);T.lifecycle$jscomp$3=H.value;T.asyncJobCompletion=void 0;x=function(w){return function(){i8o(w.lifecycle$jscomp$3.name);var N=aAt(function(){return w.lifecycle$jscomp$3.callback.apply(w.lifecycle$jscomp$3,_.oI(l))});
VYN(N)?w.asyncJobCompletion=_.z("web_lifecycle_error_handling_killswitch")?N.then(function(){SJ(w.lifecycle$jscomp$3.name)}):N.then(function(){SJ(w.lifecycle$jscomp$3.name)},function(L){Ciw(L);
SJ(w.lifecycle$jscomp$3.name)}):SJ(w.lifecycle$jscomp$3.name)}}(T);
ui(x);return T.asyncJobCompletion?_.K(n,T.asyncJobCompletion,3):n.jumpTo(3)}T={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};H=I.next();return n.jumpTo(2)})};
Zj.prototype.setJobSetWithScheduledJobs=function(V){var l=_.Q5.apply(1,arguments),I=this,H=V.map(function(T){return{job:function(){i8o(T.name);aAt(function(){return T.callback.apply(T,_.oI(l))});
SJ(T.name)},
priority:mzE(I,T)}});
H.length&&(this.jobSet=new ahJ(H))};
var mzE=function(V,l){var I,H;return(H=(I=V.overridePriority)!=null?I:l.priority)!=null?H:0},i8o=function(V){Dj&&V&&v7c(V)},SJ=function(V){Dj&&V&&Otq(V)},fhw=function(V,l,I){O83&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+V.constructor.name+"] '"+V.state+"' to '"+l+"'"),console.log("with message: ",I),console.groupEnd())};
_.vI.Object.defineProperties(Zj.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var V1o=function(V){Zj.call(this,V===void 0?"none":V);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(){}}]},l8Z;
_.t(V1o,Zj);V1o.prototype.runApplicationNavigationBegin=function(V,l){var I=this;this.navigationTimer=_.et(_.r0,function(){I.currentState==="application_navigating"&&I.transition("none")},5E3);
V(l==null?void 0:l.event)};
V1o.prototype.runApplicationNavigationEnd=function(V,l){this.navigationTimer&&(_.r0.cancelJob(this.navigationTimer),this.navigationTimer=null);V(l==null?void 0:l.event)};
_.vFt=function(){l8Z||(l8Z=new V1o);return l8Z};var upT=[];_.Aq("yt.logging.transport.getScrapedGelPayloads",function(){return upT});var HF=function(){var V=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return V.totalEntries}}};
HF.prototype.storePayload=function(V,l){V=fAK(V);this.store[V]?this.store[V].push(l):(this.memoizedKeySequences={},this.store[V]=[l]);this.totalEntries++;_.z("more_accurate_gel_parser")&&(l=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(l));return V};
HF.prototype.smartExtractMatchingEntries=function(V){if(!V.keys.length)return[];for(var l=I8a(this,V.keys.splice(0,1)[0]),I=[],H=0;H<l.length;H++)this.store[l[H]]&&V.sizeLimit&&(this.store[l[H]].length<=V.sizeLimit?(I.push.apply(I,_.oI(this.store[l[H]])),delete this.store[l[H]]):I.push.apply(I,_.oI(this.store[l[H]].splice(0,V.sizeLimit))));this.totalEntries-=I.length;(V==null?0:V.sizeLimit)&&I.length<(V==null?void 0:V.sizeLimit)&&(V.sizeLimit-=I.length,I.push.apply(I,_.oI(this.smartExtractMatchingEntries(V))));
return I};
HF.prototype.extractMatchingEntries=function(V){V=I8a(this,V);for(var l=[],I=0;I<V.length;I++)this.store[V[I]]&&(l.push.apply(l,_.oI(this.store[V[I]])),delete this.store[V[I]]);this.totalEntries-=l.length;return l};
HF.prototype.getSequenceCount=function(V){V=I8a(this,V);for(var l=0,I=0;I<V.length;I++){var H=void 0;l+=((H=this.store[V[I]])==null?void 0:H.length)||0}return l};
var I8a=function(V,l){var I=fAK(l);if(V.memoizedKeySequences[I])return V.memoizedKeySequences[I];var H=Object.keys(V.store)||[];if(H.length<=1&&fAK(l)===H[0])return H;for(var T=[],x=0;x<H.length;x++){var n=H[x].split("/");if(HTw(l.auth,n[0])){var w=l.isJspb;HTw(w===void 0?"undefined":w?"true":"false",n[1])&&HTw(l.cttAuthInfo,n[2])&&(w=l.tier,w=w===void 0?"undefined":JSON.stringify(w),HTw(w,n[3])&&T.push(H[x]))}}return V.memoizedKeySequences[I]=T},HTw=function(V,l){return V===void 0||V==="undefined"?
!0:V===l};
HF.prototype.getSequenceCount=HF.prototype.getSequenceCount;HF.prototype.extractMatchingEntries=HF.prototype.extractMatchingEntries;HF.prototype.smartExtractMatchingEntries=HF.prototype.smartExtractMatchingEntries;HF.prototype.storePayload=HF.prototype.storePayload;var EFw,rUN,JUt,xl,T6v,mig,gFg,tUJ,yUw,wuN,GSt,puf,FsJ;EFw=_.g7("initial_gel_batch_timeout",2E3);rUN=_.g7("gel_queue_timeout_max_ms",6E4);JUt=_.g7("gel_min_batch_size",5);xl=void 0;T6v=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
mig=new T6v;gFg=new T6v;tUJ=new T6v;yUw=new T6v;GSt=!0;puf=1;_.s2t=new Map;FsJ=_.nK.ytLoggingTransportTokensToCttTargetIds_||{};_.Aq("ytLoggingTransportTokensToCttTargetIds_",FsJ);var kSf=_.nK.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Aq("ytLoggingTransportTokensToJspbCttTargetIds_",kSf);var BF={};var Xv=_.nK.ytLoggingGelSequenceIdObj_||{};_.Aq("ytLoggingGelSequenceIdObj_",Xv);var IbK=[];var YBq=new Set,njg=0,Fwc=0,kbK=0,d7N=[],$7q=[],XKT=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var SBT=function(){};
SBT.prototype.getUrl=function(V,l){l=l===void 0?!1:l;return V.hasOwnProperty("shareEndpoint")?null:_.r93(V,null,l)};
var M23=function(V,l,I){V={endpoint:l,actions:[]};I=(I.path?I.path[0]:I.target).icon||"";l=I.indexOf(":");l>0&&(I=I.substr(l+1));I&&V.actions.push(I);return V};var PPg=/Command$/,hJK=/Endpoint$/,Ejy=new Map;var B60,xJE;B60=1;_.WF=function(){this.actionRoutingMap=new Map};
_.WF.prototype.triggerAction=function(V){var l=new BQt(V,!1,_.Q5.apply(1,arguments));this.handleAction(l);return l.returnValue};
_.WF.prototype.triggerOptionalAction=function(V){var l=new BQt(V,!0,_.Q5.apply(1,arguments));this.handleAction(l);return l.returnValue};
_.RC=function(V,l,I){l.forEach(function(H){var T=ojt(H);T&&V.triggerOptionalAction(T,H,I,void 0)})};
_.WF.prototype.handleAction=function(V){var l=this.actionRoutingMap.get(V.actionName);l&&xJE(V,l);V.optionalAction||V.returnValue.length!==0||(V=new _.Yd("Unhandled action",V.actionName),_.Rw(V))};
xJE=function(V,l){l.forEach(function(I){var H=null;I?H=I.apply(null,V.args):(I=Error("jd"),I.params=V.actionName,_.Dp(I));V.returnValue.push(H)})};
_.bx=function(V,l,I){I||(I=B60++);for(var H=_.U(Object.keys(l)),T=H.next();!T.done;T=H.next()){T=T.value;var x=V.actionRoutingMap.get(T);x||(x=new Map,V.actionRoutingMap.set(T,x));V.registerActionHandler(I,T,l[T],x)}return I};
_.WF.prototype.registerActionHandler=function(V,l,I,H){H.set(V,_.Zp(I))};
_.q4=function(V,l,I){l=_.U(Object.keys(l));for(var H=l.next();!H.done;H=l.next())(H=V.actionRoutingMap.get(H.value))&&H.delete(I)};
_.Bn(_.WF);var c9t=function(V,l){var I=_.WF.getInstance();_.XW(function(){var H={},T=_.bx(I,(H[V]=l,H));_.rx(function(){var x={};_.q4(I,(x[V]="",x),T)})})};var MMW=function(V,l,I){_.XW(function(){var H=V.value;H?(H.addEventListener(l,I,void 0),_.rx(function(){H?H.removeEventListener(l,I,void 0):s6T(V)})):s6T(V)})};Aly=FK1;var i6J=new Set(["For","If","Match","Watch"]),UJN={},nBi=(UJN[h0.default]=function(){return W4c},UJN.style=function(){return W4c},UJN),$JB;
for($JB in nBi)mF.attributes[$JB]=nBi[$JB](mF.attributes[$JB]);var fO=new _.Vr("VISIBILITY_OBSERVER");var $Zt={retrieve:function(V){return this.id.\u0275prov.token===V.\u0275prov.token?this.contextValue:this?H01(this,this.id):IBq}};var dJo=function(V,l,I){if(V!==ux)return!1;V=vF(document.createElement("div"),function(){var H=ax(!1);try{I[0]()}finally{ax(H)}});
V=Array.from(V.childNodes);V.length===1&&(V=V[0]);return V};var w$E=function(V){V=V.clone();svJ(V);yu(V,"dg",null);yu(V,"d","0");W6Z(V,null);bAi(V,null);yu(V,"ichc","0");return V},N6N=!0,KpB=function(V,l,I){var H=I===void 0?{}:I;
I=H.cssRowKey===void 0?void 0:H.cssRowKey;var T=H.combinedSignature===void 0?void 0:H.combinedSignature;var x=H.extraEdges===void 0?void 0:H.extraEdges;H=H.callback===void 0?void 0:H.callback;yu(V,"m",l.join(","));x&&MON(V,x);I&&(yu(V,"ck",I),T?yu(V,"rs",T):N6N&&(N6N=!1));if(H){if(H!=null&&!vdE.test(H))throw Error("bb`"+H);yu(V,"cb",H)}V=V.toString();_.Nq(V,"/")&&(V=NgN(document.location.href)+V);return _.Xj(V)};var Y4i=function(V){return jzw(V).then(function(l){return JSON.parse(l.responseText)})},jzw=function(V){var l={},I=l.xmlHttpFactory?l.xmlHttpFactory.createInstance():xxa.createInstance();
return(new _.UZ(function(H,T){var x;try{I.open("GET",V,!0)}catch(N){T(new Qr("Error opening XHR: "+N.message,V,I))}I.onreadystatechange=function(){if(I.readyState==4){_.nK.clearTimeout(x);var N;!(N=BoZ(I.status))&&(N=I.status===0)&&(N=wYw(V),N=!(N=="http"||N=="https"||N==""));N?H(I):T(new Lpa(I.status,V,I))}};
I.onerror=function(){T(new Qr("Network error",V,I))};
if(l.headers)for(var n in l.headers){var w=l.headers[n];w!=null&&I.setRequestHeader(n,w)}l.withCredentials&&(I.withCredentials=l.withCredentials);l.responseType&&(I.responseType=l.responseType);l.mimeType&&I.overrideMimeType(l.mimeType);l.timeoutMs>0&&(x=_.nK.setTimeout(function(){I.onreadystatechange=function(){};
I.abort();T(new e8N(V,I))},l.timeoutMs));
try{I.send(null)}catch(N){I.onreadystatechange=function(){},_.nK.clearTimeout(x),T(new Qr("Error sending XHR: "+N.message,V,I))}})).thenCatch(function(H){H instanceof _.WU&&I.abort();
throw H;})},Qr=function(V,l,I){_.I1.call(this,V+", url="+l);
this.url=l;this.xhr=I};
_.Uk(Qr,_.I1);Qr.prototype.name="XhrError";var Lpa=function(V,l,I){Qr.call(this,"Request Failed, status="+V,l,I);this.status=V};
_.Uk(Lpa,Qr);Lpa.prototype.name="XhrHttpError";var e8N=function(V,l){Qr.call(this,"Request timed out",V,l)};
_.Uk(e8N,Qr);e8N.prototype.name="XhrTimeoutError";Tp=Tp||{};var c6=function(){_.XG.call(this)};
_.Uk(c6,_.XG);c6.prototype.initialize=function(){};var kq3=function(V,l){this.fn_=V;this.handler_=l};
kq3.prototype.execute=function(V){this.fn_&&(this.fn_.call(this.handler_||null,V),this.fn_=this.handler_=null)};
kq3.prototype.abort=function(){this.handler_=this.fn_=null};var W6=function(V,l){_.XG.call(this);this.deps_=V;this.JSC$8794_id_=l;this.onloadCallbacks_=[];this.JSC$8794_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Uk(W6,_.XG);W6.prototype.moduleConstructor_=c6;W6.prototype.module_=null;W6.prototype.getId=function(){return this.JSC$8794_id_};
W6.prototype.registerCallback=function(V,l){return Fp0(this.onloadCallbacks_,V,l)};
var X$J=function(V,l){Fp0(V.JSC$8794_onErrorCallbacks_,l)},Fp0=function(V,l,I){l=new kq3(l,I);
V.push(l);return l};
W6.prototype.isLoaded=function(){return!!this.module_};
W6.prototype.onLoad=function(V){var l=new this.moduleConstructor_;l.initialize(V());this.module_=l;l=(l=!!z8J(this.earlyOnloadCallbacks_,V()))||!!z8J(this.onloadCallbacks_,V());l||(this.JSC$8794_onErrorCallbacks_.length=0);return l};
W6.prototype.onError=function(V){(V=z8J(this.JSC$8794_onErrorCallbacks_,V))&&$T(Error("pd`"+V));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var z8J=function(V,l){for(var I=[],H=0;H<V.length;H++)try{V[H].execute(l)}catch(T){$T(T),I.push(T)}V.length=0;return I.length?I:null};
W6.prototype.disposeInternal=function(){W6.superClass_.disposeInternal.call(this);_.ag(this.module_)};var ycJ,oBb,EBi,JcE,rcJ,Gq3,S4i,DJN,ZTo;
_.qO=function(V,l,I,H,T){H=H===void 0?!1:H;T=T===void 0?!1:T;var x=x===void 0?!0:x;this.scsReferenceUrl_=go(_.tV(V).toString(),x);this.cssRowKey_=l;this.combinedSignature_=I;this.useNegativeLoading_=H;this.requestedModuleMap_={};this.JSC$8797_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(V=zd(this.scsReferenceUrl_,"excm"))?V.split(","):[];this.shouldScanForCss_=T;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;Fut();this.logger=null;_.bD(this,q_J(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
ycJ=function(V,l){if(l.href||l.getAttribute("data-href"))if(l=l.href||l.getAttribute("data-href"),Yhq(l)&&!go(l).urlPrefix_.endsWith("_/js/")){l=q_J(go(l));l=_.U(l);for(var I=l.next();!I.done;I=l.next())I=I.value,V.loadedCssModuleList_.includes(I)||V.loadedCssModuleList_.push(I)}};
_.qO.prototype.JSC$8799_loadModules=function(V,l,I){var H=I===void 0?{}:I;I=H.extraEdges;var T=H.onError;var x=H.onSuccess;H=H.forceReload;this.JSC$8797_moduleInfoMap_=l;if(!V)throw Error("qd");if(this.shouldScanForCss_){l=_.U(document.getElementsByTagName("style"));for(var n=l.next();!n.done;n=l.next())ycJ(this,n.value);l=_.U(document.getElementsByTagName("link"));for(n=l.next();!n.done;n=l.next())ycJ(this,n.value)}t1o(this,rcJ(this,V),I,T,x,H)};
var t1o=function(V,l,I,H,T,x){H=H===void 0?function(){}:H;
T=T===void 0?function(){}:T;
x=x===void 0?!1:x;Gq3(V,l,function(n,w,N){N=N===void 0?w:N;V.enableFallbackFetch&&x?V.loadWithFetch(n,w,H,T,N):V.load(n,w,H,T,N,I)},I)||H(-1)};
_.qO.prototype.loadWithFetch=function(){_.d(function(){throw Error("rd");})};
_.qO.prototype.maybeSetAdditionalFields=function(){};
oBb=function(V,l,I){if(V.useNegativeLoading_){var H=V.scsReferenceUrl_;V={cssRowKey:V.cssRowKey_,combinedSignature:V.combinedSignature_,extraEdges:I,requestedModuleIds:EBi(V),requestedCssModuleIds:JcE(V)};var T=V===void 0?{}:V;V=T.requestedModuleIds===void 0?[]:T.requestedModuleIds;I=T.requestedCssModuleIds===void 0?[]:T.requestedCssModuleIds;var x=T.cssRowKey===void 0?void 0:T.cssRowKey;var n=T.combinedSignature===void 0?void 0:T.combinedSignature;var w=T.extraEdges===void 0?void 0:T.extraEdges;
T=T.callback===void 0?void 0:T.callback;H=w$E(H);yu(H,"d","1");W6Z(H,V);bAi(H,I);l=KpB(H,l,{cssRowKey:x,combinedSignature:n,extraEdges:w,callback:T})}else H=V.scsReferenceUrl_,V={cssRowKey:V.cssRowKey_,combinedSignature:V.combinedSignature_,requestedModuleIds:EBi(V),requestedCssModuleIds:JcE(V)},w=V===void 0?{}:V,V=w.requestedCssModuleIds===void 0?[]:w.requestedCssModuleIds,I=w.cssRowKey===void 0?void 0:w.cssRowKey,x=w.combinedSignature===void 0?void 0:w.combinedSignature,n=w.extraEdges===void 0?
void 0:w.extraEdges,w=w.callback===void 0?void 0:w.callback,H=w$E(H),bAi(H,V),l=KpB(H,l,{cssRowKey:I,combinedSignature:x,extraEdges:n,callback:w});return l};
_.bD=function(V,l){for(var I=!1,H=[],T=0;T<l.length;++T){var x=l[T];V.requestedModuleMap_[x]||(V.requestedModuleMap_[x]=!0,V.requestedModuleList_.push(x),I=!0,H.push(x))}I&&(V.requestedModuleListSorted_=!1)};
_.MO=function(V,l){for(var I=[],H=0;H<l.length;++H){var T=l[H];V.requestedModuleMap_[T]&&(delete V.requestedModuleMap_[T],_.A1(V.requestedModuleList_,T),I.push(T))}};
_.qO.prototype.load=function(V,l,I,H,T){T=T===void 0?l:T;_.tV(V);var x=this.useCors_,n=this.corsMode_,w=this.fetchPriority,N=_.jk("SCRIPT");_.gp(N,V);x&&(N.crossOrigin=n);N.async=!1;w&&N.setAttribute("fetchpriority",w);_.bD(this,l);_.h83(this,V,N,l,I,H,T)};
_.h83=function(V,l,I,H,T,x,n){n=n===void 0?H:n;V.lastScript_=I;V.insertPos.insertBefore(I,V.insertPos.firstChild);_.PJ3(I,H,function(){I.parentElement.removeChild(I);V.lastScript_==I&&(V.lastScript_=null);var w=new Set;H.map(function(L){return w.add(L)});
for(var N in V.JSC$8797_moduleInfoMap_)V.JSC$8797_moduleInfoMap_[N].isLoaded()&&w.add(N);Array.from(w);x()},function(w){I.parentElement.removeChild(I);
V.lastScript_==I&&(V.lastScript_=null);_.MO(V,w);V.pendingModuleGraphUpdate_?V.pendingModuleGraphUpdate_.then(function(){T(-1,l)}):T(-1,l)},n)};
_.PJ3=function(V,l,I,H,T){T=T===void 0?l:T;var x=l.length,n=function(){x=0;V.onload=null;V.onerror=null;w=function(){}},w=function(){n();
var L=T.filter(function(e){return!EX().getModuleInfo(e).isLoaded()});
L.length!==0?H(L,"Response was successful but was missing module(s) "+L+"."):I()},N=function(){x--;
x==0&&w()};
l.forEach(function(L){L=EX().getModuleInfo(L);L.isLoaded()?N():(Fp0(L.earlyOnloadCallbacks_,N),X$J(L,N))});
V.onload=function(){return w()};
V.onerror=function(){n();H(l)}};
EBi=function(V){V.requestedModuleListSorted_||(V.requestedModuleListSorted_=!0,V.requestedModuleList_.sort());return V.requestedModuleList_};
JcE=function(V){V=V.loadedCssModuleList_;V.sort();return V};
rcJ=function(V,l){return l.filter(function(I){return!V.requestedModuleMap_[I]})};
Gq3=function(V,l,I,H){if(V.pendingModuleGraphUpdate_)return V.pendingModuleGraphUpdate_.then(function(){Gq3(V,l,I,H)}),!0;
if(!V.useNegativeLoading_){var T=[],x=Object.assign({},V.requestedModuleMap_);DJN(V,l,function(e){T.push(e.getId())},H,function(e){return!e.isLoaded()},x);
l=T}for(x=0;x<l.length;){for(var n=l.length-x,w=x==0?l:l.slice(x,l.length),N=oBb(V,w,H),L=_.tV(N).toString();L.length>V.urlMaxLength;)if(n>1)n-=Math.ceil((L.length-V.urlMaxLength)/6),n=Math.max(n,1),w=l.slice(x,x+n),N=oBb(V,w,H),L=_.tV(N).toString();else return V.useNegativeLoading_?(V.useNegativeLoading_=!1,V.pendingModuleGraphUpdate_=ZTo(V).then(function(e){S4i(V,e,H)}),Gq3(V,l.slice(x),I,H)):!1;
x+=n;V.useNegativeLoading_?I(N,w):I(N,w,x===l.length?l:[])}return!0};
S4i=function(V,l,I){EX().setAllModuleInfoString((l||{}).moduleGraph);DJN(V,EBi(V),function(H){_.bD(V,[H.getId()])},I);
V.pendingModuleGraphUpdate_=null};
DJN=function(V,l,I,H,T,x){x=x===void 0?{}:x;var n=EX();l=_.U(l);for(var w=l.next();!w.done;w=l.next()){w=w.value;var N=n.getModuleInfo(w);if(!(x[w]||T&&!T(N))){x[w]=!0;var L=N.deps_||[];if(H){var e=[];H[w]&&(e=Object.keys(H[w]));L=L.concat(e)}DJN(V,L,I,H,T,x);I(N)}}};
ZTo=function(V){V=V.scsReferenceUrl_.clone();svJ(V);yu(V,"dg",null);yu(V,"md","1");return Y4i(V.toString())};var R8i=function(){this.JSC$7918_loader_=null};
_.B=R8i.prototype;_.B.setBatchModeEnabled=function(){};
_.B.setAllModuleInfoString=function(){};
_.B.addExtraEdge=function(){throw Error("sd");};
_.B.removeExtraEdge=function(){throw Error("td");};
_.B.getModuleContext=function(){return null};
_.B.isActive=function(){return!1};
_.B.isUserActive=function(){return!1};
_.B.registerCallback=function(){};var sm=function(V,l,I,H){this.type=V;this.status=l;this.requestedModuleIds=I;this.url=H};
sm.prototype.toString=function(){return Qzv(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Qzv=function(V){switch(V.type){case sm.JSC$8806_Type.UNAUTHORIZED:return"Unauthorized";case sm.JSC$8806_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case sm.JSC$8806_Type.TIMEOUT:return"Timed out";case sm.JSC$8806_Type.OLD_CODE_GONE:return"Out of date module id";case sm.JSC$8806_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+V.type}};
Tp.ModuleLoadFailure=sm;Tp.ModuleLoadFailure.JSC$8806_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var ph=function(){this.moduleIds_=this.JSC$7918_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8809_extraEdges_={};this.JSC$8809_callbackMap_={};this.JSC$8809_currentlyLoadingModule_=this.baseModuleInfo_=new W6([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new OR;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Uk(ph,R8i);var ccw=function(V,l){_.I1.call(this,"Error loading "+V+": "+l)};
_.Uk(ccw,_.I1);_.B=ph.prototype;_.B.setBatchModeEnabled=function(V){this.batchModeEnabled_=V};
_.B.setAllModuleInfoString=function(V,l){if(!(this instanceof ph))this.setAllModuleInfoString(V,l);else if(typeof V==="string"){if(V.startsWith("d$")){V=V.substring(2);for(var I=[],H=0,T=V.indexOf("/"),x=0,n=!1,w=0;;){var N=n?V.substring(x):V.substring(x,T);if(N.length===0)H++,x="sy"+H.toString(36),N=[];else{var L=N.indexOf(":");if(L<0)x=N,N=[];else if(L===N.length-1)x=N.substring(0,L),N=Array(I[w-1]);else{x=N.substring(0,L);N=N.substring(L+1).split(",");L=w;for(var e=0;e<N.length;e++)L-=N[e].length===
0?1:Number(N[e]),N[e]=I[L]}L=0;if(x.length===0)L=1;else if(x.charAt(0)==="+"||x.charAt(0)==="-")L=Number(x);L!==0&&(H+=L,x="sy"+H.toString(36))}I.push(x);WpZ(this,x,N);if(n)break;x=T+1;T=V.indexOf("/",x);T===-1&&(n=!0);w++}this.moduleIds_=I}else{V=V.split("/");I=[];for(H=0;H<V.length;H++){w=V[H].split(":");T=w[0];n=[];if(w[1])for(n=w[1].split(","),w=0;w<n.length;w++)n[w]=I[parseInt(n[w],36)];I.push(T);WpZ(this,T,n)}this.moduleIds_=I}l&&l.length?(_.fK(this.loadingModuleIds_,l),this.lastInitialModuleId_=
_.Qf(l)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8809_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8809_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.zN)(this.getModuleContext,this))&&bTN(this,new Tp.ModuleLoadFailure(Tp.ModuleLoadFailure.JSC$8806_Type.INIT_ERROR)),A4(this))}};
_.B.getModuleInfo=function(V){return this.moduleInfoMap[V]};
_.B.addExtraEdge=function(V,l){var I=this.getModuleInfo(V);I&&I.isLoaded()?this.load(l):(this.JSC$8809_extraEdges_[V]||(this.JSC$8809_extraEdges_[V]={}),this.JSC$8809_extraEdges_[V][l]=!0)};
_.B.removeExtraEdge=function(V,l){if(this.JSC$8809_extraEdges_[V]){delete this.JSC$8809_extraEdges_[V][l];for(var I in this.JSC$8809_extraEdges_[V])return;delete this.JSC$8809_extraEdges_[V]}};
_.B.isActive=function(){return this.loadingModuleIds_.length>0};
_.B.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var A4=function(V){var l=V.lastActive_,I=V.isActive();I!=l&&(V.executeCallbacks_(I?"active":"idle"),V.lastActive_=I);l=V.isUserActive();l!=V.userLastActive_&&(V.executeCallbacks_(l?"userActive":"userIdle"),V.userLastActive_=l)},WpZ=function(V,l,I){V.moduleInfoMap[l]?(V=V.moduleInfoMap[l].deps_,V!=I&&V.splice.apply(V,[0,
V.length].concat(_.oI(I)))):V.moduleInfoMap[l]=new W6(I,l)},M1E=function(V,l,I){var H=[];
Gwc(l,H);l=[];for(var T={},x=0;x<H.length;x++){var n=H[x],w=V.getModuleInfo(n);if(!w)throw Error("ud`"+n);var N=new OR;T[n]=N;w.isLoaded()?N.callback(null):(q4b(V,n,w,!!I,N),V.isModuleLoading(n)||l.push(n))}l.length>0&&(V.loadingModuleIds_.length===0?V.loadModules_(l):(V.requestedModuleIdsQueue_.push(l),A4(V)));return T},q4b=function(V,l,I,H,T){I.registerCallback(T.callback,T);
X$J(I,function(x){T.errback(new ccw(l,x))});
V.isModuleLoading(l)?H&&(szW(V,l),A4(V)):H&&szW(V,l)};
ph.prototype.loadModules_=function(V,l,I){var H=this;l||(this.consecutiveFailures_=0);var T=p$o(this,V);this.loadingModuleIds_=T;this.requestedLoadingModuleIds_=this.batchModeEnabled_?V:_.uN(T);A4(this);if(T.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,T);if(Object.keys(this.JSC$8809_extraEdges_).length>0&&!this.JSC$7918_loader_.supportsExtraEdges)throw Error("vd");V=(0,_.zN)(this.JSC$7918_loader_.JSC$8799_loadModules,this.JSC$7918_loader_,_.uN(T),this.moduleInfoMap,{extraEdges:this.JSC$8809_extraEdges_,
forceReload:!!I,onError:function(x,n){var w=H.requestedLoadingModuleIds_;x=x!=null?x:void 0;H.consecutiveFailures_++;var N=_.uN(T);H.requestedLoadingModuleIds_=w;T.forEach(_.kB(_.A1,H.requestedModuleIds_),H);x==401?(bTN(H,new Tp.ModuleLoadFailure(Tp.ModuleLoadFailure.JSC$8806_Type.UNAUTHORIZED,x)),H.requestedModuleIdsQueue_.length=0):x==410?(Acw(H,new Tp.ModuleLoadFailure(Tp.ModuleLoadFailure.JSC$8806_Type.OLD_CODE_GONE,x)),uuE(H)):H.consecutiveFailures_>=3?(Acw(H,new Tp.ModuleLoadFailure(Tp.ModuleLoadFailure.JSC$8806_Type.CONSECUTIVE_FAILURES,
x,N,n)),uuE(H)):H.loadModules_(H.requestedLoadingModuleIds_,!0,x==8001||!1)},
onTimeout:(0,_.zN)(this.handleLoadTimeout_,this)});(l=Math.pow(this.consecutiveFailures_,2)*5E3)?_.nK.setTimeout(V,l):V()}};
var p$o=function(V,l){l=l.filter(function(T){return V.moduleInfoMap[T].isLoaded()?(_.nK.setTimeout(function(){return Error("wd`"+T)},0),!1):!0});
for(var I=[],H=0;H<l.length;H++)I=I.concat(vBJ(V,l[H]));Gwc(I);return!V.batchModeEnabled_&&I.length>1?(l=I.shift(),V.requestedModuleIdsQueue_=I.map(function(T){return[T]}).concat(V.requestedModuleIdsQueue_),[l]):I},vBJ=function(V,l){var I=_.EL.createSet(V.requestedModuleIds_),H=[];
I[l]||H.push(l);l=[l];for(var T=0;T<l.length;T++)for(var x=V.getModuleInfo(l[T]).deps_,n=x.length-1;n>=0;n--){var w=x[n];V.getModuleInfo(w).isLoaded()||I[w]||(H.push(w),l.push(w))}H.reverse();Gwc(H);return H};
ph.prototype.JSC$8804_setLoaded=function(){if(this.JSC$8809_currentlyLoadingModule_){var V=this.JSC$8809_currentlyLoadingModule_.getId(),l=[];if(this.JSC$8809_extraEdges_[V]){for(var I=_.U(Object.keys(this.JSC$8809_extraEdges_[V])),H=I.next();!H.done;H=I.next()){H=H.value;var T=this.getModuleInfo(H);T&&!T.isLoaded()&&(this.removeExtraEdge(V,H),l.push(H))}this.loadMultiple(l)}this.isDisposed()||(this.moduleInfoMap[V].onLoad((0,_.zN)(this.getModuleContext,this))&&bTN(this,new Tp.ModuleLoadFailure(Tp.ModuleLoadFailure.JSC$8806_Type.INIT_ERROR)),
_.A1(this.userInitiatedLoadingModuleIds_,V),_.A1(this.loadingModuleIds_,V),this.loadingModuleIds_.length===0&&uuE(this),this.lastInitialModuleId_&&V==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),A4(this),this.JSC$8809_currentlyLoadingModule_=null)}};
ph.prototype.isModuleLoading=function(V){if(_.Mq(this.loadingModuleIds_,V))return!0;for(var l=0;l<this.requestedModuleIdsQueue_.length;l++)if(_.Mq(this.requestedModuleIdsQueue_[l],V))return!0;return!1};
ph.prototype.load=function(V,l){return M1E(this,[V],l)[V]};
ph.prototype.loadMultiple=function(V){return M1E(this,V)};
var szW=function(V,l){_.Mq(V.userInitiatedLoadingModuleIds_,l)||V.userInitiatedLoadingModuleIds_.push(l)};
ph.prototype.beforeLoadModuleCode=function(V){var l=this;this.JSC$8809_currentlyLoadingModule_&&this.JSC$8809_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8804_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[V]&&OTE(this,this.moduleInfoMap[V].deps_||[],function(I){I.module_=new c6;_.A1(l.loadingModuleIds_,I.getId())},function(I){return!I.isLoaded()});
this.JSC$8809_currentlyLoadingModule_=this.getModuleInfo(V)};
ph.prototype.handleLoadTimeout_=function(){Acw(this,new Tp.ModuleLoadFailure(Tp.ModuleLoadFailure.JSC$8806_Type.TIMEOUT));uuE(this)};
var Acw=function(V,l){V.requestedLoadingModuleIds_.length>1?V.requestedModuleIdsQueue_=V.requestedLoadingModuleIds_.map(function(I){return[I]}).concat(V.requestedModuleIdsQueue_):bTN(V,l)},bTN=function(V,l){var I=V.requestedLoadingModuleIds_;
V.loadingModuleIds_.length=0;for(var H=[],T=0;T<V.requestedModuleIdsQueue_.length;T++){var x=V.requestedModuleIdsQueue_[T].filter(function(N){var L=vBJ(this,N);return bG(I,function(e){return _.Mq(L,e)})},V);
_.fK(H,x)}for(T=0;T<I.length;T++)_.ztN(H,I[T]);for(T=0;T<H.length;T++){for(x=0;x<V.requestedModuleIdsQueue_.length;x++)_.A1(V.requestedModuleIdsQueue_[x],H[T]);_.A1(V.userInitiatedLoadingModuleIds_,H[T])}if(T=V.JSC$8809_callbackMap_.error)for(x=0;x<T.length;x++)for(var n=T[x],w=0;w<H.length;w++)n("error",H[w],l);for(H=0;H<I.length;H++)if(V.moduleInfoMap[I[H]])V.moduleInfoMap[I[H]].onError(l);V.requestedLoadingModuleIds_.length=0;A4(V)},uuE=function(V){for(;V.requestedModuleIdsQueue_.length;){var l=
V.requestedModuleIdsQueue_.shift().filter(function(I){return!this.getModuleInfo(I).isLoaded()},V);
if(l.length>0){V.loadModules_(l);return}}A4(V)};
ph.prototype.registerCallback=function(V,l){Array.isArray(V)||(V=[V]);for(var I=0;I<V.length;I++){var H=V[I],T=l,x=this.JSC$8809_callbackMap_;x[H]||(x[H]=[]);x[H].push(T)}};
ph.prototype.executeCallbacks_=function(V){for(var l=this.JSC$8809_callbackMap_[V],I=0;l&&I<l.length;I++)l[I](V)};
var OTE=function(V,l,I,H,T){H=H===void 0?function(){return!0}:H;
T=T===void 0?{}:T;l=_.U(l);for(var x=l.next();!x.done;x=l.next()){x=x.value;var n=V.getModuleInfo(x);!T[x]&&H(n)&&(T[x]=!0,OTE(V,n.deps_||[],I,H,T),I(n))}};
ph.prototype.dispose=function(){_.e11(_.EL.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8809_callbackMap_={};this.isDisposed_=!0};
ph.prototype.isDisposed=function(){return this.isDisposed_};
_.GN=function(){return new ph};var CJB=[5E3,2E4],a8J=function(){this.JSC$7918_loader_=null;this.JSC$8816_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8816_queue_=[];this.JSC$8816_extraEdges_=Object.create(null);this.JSC$8816_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.t(a8J,R8i);_.B=a8J.prototype;_.B.setAllModuleInfoString=function(){this.JSC$8816_currentlyLoadingModule_&&this.JSC$8816_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8804_setLoaded()};
_.B.getModuleInfo=function(V){var l=this.JSC$8816_moduleInfoMap_[V];l||(l=new W6([],V),this.JSC$8816_moduleInfoMap_[V]=l);return l};
_.B.addExtraEdge=function(V,l){this.getModuleInfo(V).isLoaded()?this.load(l):(this.JSC$8816_extraEdges_[V]||(this.JSC$8816_extraEdges_[V]={}),this.JSC$8816_extraEdges_[V][l]=!0)};
_.B.removeExtraEdge=function(V,l){if(this.JSC$8816_extraEdges_[V]){delete this.JSC$8816_extraEdges_[V][l];for(var I in this.JSC$8816_extraEdges_[V])return;delete this.JSC$8816_extraEdges_[V]}};
_.B.isModuleLoading=function(V){return!!this.loadingModules_[V]};
_.B.load=function(V){f8i(this,[V]);return gBb(this,V)};
_.B.loadMultiple=function(V){var l=this,I=Object.create(null),H=[];V.forEach(function(T){I[T]||(I[T]=gBb(l,T),H.push(T))});
f8i(this,H);return I};
_.B.beforeLoadModuleCode=function(V){var l;((l=this.JSC$8816_currentlyLoadingModule_)==null?void 0:l.getId())==="synthetic_module_overhead"&&this.JSC$8804_setLoaded();var I,H;mJE(this,(H=(I=this.JSC$8816_moduleInfoMap_[V])==null?void 0:I.deps_)!=null?H:[],function(T){T.module_=new c6},function(T){return!T.isLoaded()});
this.JSC$8816_currentlyLoadingModule_=this.getModuleInfo(V)};
_.B.JSC$8804_setLoaded=function(){if(this.JSC$8816_currentlyLoadingModule_){var V=this.JSC$8816_currentlyLoadingModule_.getId(),l=[];if(this.JSC$8816_extraEdges_[V]){for(var I=_.U(Object.keys(this.JSC$8816_extraEdges_[V])),H=I.next();!H.done;H=I.next())H=H.value,this.getModuleInfo(H).isLoaded()||(this.removeExtraEdge(V,H),l.push(H));this.loadMultiple(l)}this.JSC$8816_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8816_currentlyLoadingModule_=null;(!this.isModuleLoading(V)&&/^sy[0-9a-z]{0,4}$/.test(V)||V==="synthetic_module_overhead")&&delete this.JSC$8816_moduleInfoMap_[V];this.unsetModulesAsLoading(V)}};
_.B.setModulesAsLoading=function(){var V=this;_.Q5.apply(0,arguments).forEach(function(l){V.loadingModules_[l]=!0})};
_.B.unsetModulesAsLoading=function(){var V=this;_.Q5.apply(0,arguments).forEach(function(l){delete V.loadingModules_[l]})};
var gBb=function(V,l){return new _.UZ(function(I,H){var T=V.getModuleInfo(l);T.isLoaded()?I(null):(T.registerCallback(function(){I(null)}),X$J(T,function(x){var n="Error loading "+l+": "+x;
x instanceof Tp.ModuleLoadFailure&&x.url&&(n=n+", requested url: "+x.url.toString());H(Error(n))}))})},f8i=function(V,l){l=l.filter(function(I){return!V.isModuleLoading(I)&&!V.getModuleInfo(I).isLoaded()});
l.length>0&&(V.setModulesAsLoading.apply(V,_.oI(l)),V.JSC$8816_queue_.push(l),iTZ(V))},iTZ=function(V){for(var l={};V.activeLoads_<Infinity&&V.JSC$8816_queue_.length>0;l={finishLoad:void 0,
ids$jscomp$34:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})l.ids$jscomp$34=V.JSC$8816_queue_.shift().filter(function(I){return!V.getModuleInfo(I).isLoaded()}),l.ids$jscomp$34.length>0&&(V.activeLoads_++,l.finishLoad=function(I){return function(){V.activeLoads_--;
iTZ(V);I.finishLoad=function(){}}}(l),_.ER(l.ids$jscomp$34.map(function(I){return gBb(V,I)})).then(function(I){return function(){(0,I.finishLoad)()}}(l)),l.attempt$jscomp$6=0,l.load$jscomp$1=function(I){return function(){if(Object.keys(V.JSC$8816_extraEdges_).length>0&&!V.JSC$7918_loader_.supportsExtraEdges)throw Error("vd");
V.JSC$7918_loader_.JSC$8799_loadModules(I.ids$jscomp$34,V.JSC$8816_moduleInfoMap_,{extraEdges:V.JSC$8816_extraEdges_,onError:function(H,T){var x=CJB[I.attempt$jscomp$6++];x!==void 0?setTimeout(function(){(0,I.load$jscomp$1)()},x):(V.unsetModulesAsLoading.apply(V,_.oI(I.ids$jscomp$34)),(0,I.finishLoad)(),I.ids$jscomp$34.forEach(function(n){n=V.getModuleInfo(n);
if(!n.isLoaded())n.onError(new Tp.ModuleLoadFailure(Tp.ModuleLoadFailure.JSC$8806_Type.CONSECUTIVE_FAILURES,H,I.ids$jscomp$34,T))}))}})}}(l),(0,l.load$jscomp$1)())},mJE=function(V,l,I,H,T){H=H===void 0?function(){return!0}:H;
T=T===void 0?{}:T;l=_.U(l);for(var x=l.next();!x.done;x=l.next()){x=x.value;var n=V.getModuleInfo(x);!T[x]&&H(n)&&(T[x]=!0,mJE(V,n.deps_||[],I,H,T),I(n))}};var Vsi=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Kl1=Symbol("yd");window.JSCompiler_renameProperty=function(V){return V};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var lww=!Vsi||HTMLElement.es5Shimmed||_.nK.Reflect===void 0||_.nK.customElements===void 0||_.nK.customElements.polyfillWrapFlushCallback||!1,IwZ,pjy=function(){var V=HTMLElement;if(lww)return V;if(IwZ!==void 0)return IwZ;var l=_.nK.Reflect,I=function(){return l.construct(V,[],this.constructor)};
I.prototype=V.prototype;I.prototype.constructor=I;I.es5Shimmed=!0;Object.setPrototypeOf(I,V);return IwZ=I},HWZ=!1;lww||HWZ||(HWZ=!0,_.nK.HTMLElement=pjy());/*

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 kKN=/(url\()([^)]*)(\))/g,LlT=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,egg,ix;var DU=!window.ShadyDOM||!window.ShadyDOM.inUse,TJE=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),BJZ=!window.customElements.polyfillWrapFlushCallback,xrZ;if(xrZ=DU&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var UrN=new CSSStyleSheet;UrN.replaceSync("");var nfZ=document.createElement("div");nfZ.attachShadow({mode:"open"});nfZ.shadowRoot.adoptedStyleSheets=[UrN];xrZ=nfZ.shadowRoot.adoptedStyleSheets[0]===UrN}catch(V){xrZ=!1}
var $r3=xrZ,dr3=window.Polymer&&window.Polymer.rootPath||Xlt(document.baseURI||window.location.href),jh=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,o_J=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,QW=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,w4b=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,PI=window.Polymer&&window.Polymer.legacyOptimizations||!1,RX=window.Polymer&&window.Polymer.legacyWarnings||!1,NJB=window.Polymer&&window.Polymer.syncInitialRender||
!1,LC=window.Polymer&&window.Polymer.legacyUndefined||!1,KdJ=window.Polymer&&window.Polymer.orderedComputed||!1,uD=window.Polymer&&window.Polymer.removeNestedTemplates||!1,v6=window.Polymer&&window.Polymer.fastDomIf||!1,Om=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,jAW=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,YlN=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var aC={},LdZ={},kz=function(){return HTMLElement.apply(this,arguments)||this};
_.t(kz,HTMLElement);kz.import=function(V,l){return V?(V=aC[V]||LdZ[V.toLowerCase()])&&l?V.querySelector(l):V:null};
kz.prototype.attributeChangedCallback=function(V,l,I){l!==I&&this.register()};
kz.prototype.register=function(V){if(V=V||this.id){if(QW&&(aC[V]||LdZ[V.toLowerCase()])!==void 0)throw aC[V]=LdZ[V.toLowerCase()]=null,Error("zd`"+V);this.id=V;aC[V]=LdZ[V.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.vI.Object.defineProperties(kz.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var V=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;V=_.VW(this.getAttribute("assetpath")||"",V.baseURI);this.__assetpath=Xlt(V)}return this.__assetpath}}});
_.vI.Object.defineProperties(kz,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
kz["import"]=kz.import;kz.prototype.modules=aC;customElements.define("dom-module",kz);var eZZ=0,yyN=0,lg=[],kV0=0,zgT=!1,Fdw=document.createTextNode(""),X4w,oX;(new window.MutationObserver(tnW)).observe(Fdw,{characterData:!0});_.fh={after:function(V){return{run:function(l){return window.setTimeout(l,V)},
cancel:function(l){window.clearTimeout(l)}}},
run:function(V,l){return window.setTimeout(V,l)},
cancel:function(V){window.clearTimeout(V)}};
_.Kt={run:function(V){return window.requestAnimationFrame(V)},
cancel:function(V){window.cancelAnimationFrame(V)}};
X4w={run:function(V){return window.requestIdleCallback?window.requestIdleCallback(V):window.setTimeout(V,16)},
cancel:function(V){window.cancelIdleCallback?window.cancelIdleCallback(V):window.clearTimeout(V)}};
oX={run:function(V){zgT||(zgT=!0,Fdw.textContent=kV0++);lg.push(V);return eZZ++},
cancel:function(V){var l=V-yyN;if(l>=0){if(!lg[l])throw Error("Ad`"+V);lg[l]=null}}};var zZa=0,g3=function(V){var l=V.__mixinApplications;l||(l=new WeakMap,V.__mixinApplications=l);var I=zZa++;return function(H){var T=H.__mixinSet;if(T&&T[I])return H;var x=l,n=x.get(H);n||(n=V(H),x.set(H,n),H=Object.create(n.__mixinSet||T||null),H[I]=!0,n.__mixinSet=H);return n}};_.KC=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(V){return ShadyDOM.patch(V)}:function(V){return V};var y5Z=g3(function(V){var l=function(){var I=V.call(this)||this;I.__dataEnabled=!1;I.__dataReady=!1;I.__dataInvalid=!1;I.__data={};I.__dataPending=null;I.__dataOld=null;I.__dataInstanceProps=null;I.__dataCounter=0;I.__serializing=!1;I._initializeProperties();return I};
_.t(l,V);l.createProperties=function(I){var H=this.prototype,T;for(T in I)T in H||H._createPropertyAccessor(T)};
l.attributeNameForProperty=function(I){return I.toLowerCase()};
l.typeForProperty=function(){};
l.prototype._createPropertyAccessor=function(I,H){this._addPropertyToAttributeMap(I);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[I]||(this.__dataHasAccessor[I]=!0,this._definePropertyAccessor(I,H))};
l.prototype._addPropertyToAttributeMap=function(I){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var H=this.__dataAttributes[I];H||(H=this.constructor.attributeNameForProperty(I),this.__dataAttributes[H]=I);return H};
l.prototype._definePropertyAccessor=function(I,H){Object.defineProperty(this,I,{get:function(){return this.__data[I]},
set:H?function(){}:function(T){this._setPendingProperty(I,T,!0)&&this._invalidateProperties()}})};
l.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
l.prototype._initializeProperties=function(){for(var I in this.__dataHasAccessor)this.hasOwnProperty(I)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[I]=this[I],delete this[I])};
l.prototype._initializeInstanceProperties=function(I){Object.assign(this,I)};
l.prototype._setProperty=function(I,H){this._setPendingProperty(I,H)&&this._invalidateProperties()};
l.prototype._getProperty=function(I){return this.__data[I]};
l.prototype._setPendingProperty=function(I,H){var T=this.__data[I],x=this._shouldPropertyChange(I,H,T);x&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||I in this.__dataOld||(this.__dataOld[I]=T),this.__data[I]=H,this.__dataPending[I]=H);return x};
l.prototype._isPropertyPending=function(I){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(I))};
l.prototype._invalidateProperties=function(){var I=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,oX.run(function(){I.__dataInvalid&&(I.__dataInvalid=!1,I._flushProperties())}))};
l.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
l.prototype._flushProperties=function(){this.__dataCounter++;var I=this.__data,H=this.__dataPending,T=this.__dataOld;this._shouldPropertiesChange(I,H,T)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(I,H,T));this.__dataCounter--};
l.prototype._shouldPropertiesChange=function(I,H){return!!H};
l.prototype._propertiesChanged=function(){};
l.prototype._shouldPropertyChange=function(I,H,T){return T!==H&&(T===T||H===H)};
l.prototype.attributeChangedCallback=function(I,H,T,x){H!==T&&this._attributeToProperty(I,T);V.prototype.attributeChangedCallback&&V.prototype.attributeChangedCallback.call(this,I,H,T,x)};
l.prototype._attributeToProperty=function(I,H,T){if(!this.__serializing){var x=this.__dataAttributes;I=x&&x[I]||I;this[I]=this._deserializeValue(H,T||this.constructor.typeForProperty(I))}};
l.prototype._propertyToAttribute=function(I,H,T){this.__serializing=!0;T=arguments.length<3?this[I]:T;this._valueToNodeAttribute(this,T,H||this.constructor.attributeNameForProperty(I));this.__serializing=!1};
l.prototype._valueToNodeAttribute=function(I,H,T){H=this._serializeValue(H);if(T==="class"||T==="name"||T==="slot")I=(0,_.KC)(I);H===void 0?I.removeAttribute(T):I.setAttribute(T,H===""&&window.trustedTypes?window.trustedTypes.emptyScript:H)};
l.prototype._serializeValue=function(I){switch(typeof I){case "boolean":return I?"":void 0;default:return I!=null?I.toString():void 0}};
l.prototype._deserializeValue=function(I,H){switch(H){case Boolean:return I!==null;case Number:return Number(I);default:return I}};
return l});var ts3=0,ry1=[];var r5Z=g3(function(V){function l(x){x=Object.getPrototypeOf(x);return x.prototype instanceof T?x:null}
function I(x){if(!x.hasOwnProperty("__ownProperties")){var n=null;if(x.hasOwnProperty("properties")){var w=x.properties;if(w){n={};for(var N in w){var L=w[N];n[N]=typeof L==="function"?{type:L}:L}}}x.__ownProperties=n}return x.__ownProperties}
var H=y5Z(V),T=function(){return H.apply(this,arguments)||this};
_.t(T,H);T.finalize=function(){if(!this.hasOwnProperty("__finalized")){var x=l(this);x&&x.finalize();this.__finalized=!0;this._finalizeClass()}};
T._finalizeClass=function(){var x=I(this);x&&this.createProperties(x)};
T.typeForProperty=function(x){return(x=this._properties[x])&&x.type};
T.prototype._initializeProperties=function(){ts3++;this.constructor.finalize();H.prototype._initializeProperties.call(this)};
T.prototype.connectedCallback=function(){H.prototype.connectedCallback&&H.prototype.connectedCallback.call(this);this._enableProperties()};
T.prototype.disconnectedCallback=function(){H.prototype.disconnectedCallback&&H.prototype.disconnectedCallback.call(this)};
_.vI.Object.defineProperties(T,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var x=this;if(!this.hasOwnProperty("__observedAttributes")){GKK(this.prototype);var n=this._properties;this.__observedAttributes=n?Object.keys(n).map(function(w){return x.prototype._addPropertyToAttributeMap(w)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var x=l(this);this.__properties=Object.assign({},x&&x._properties,I(this))}return this.__properties}}});
return T});var E9w={},Jyq=/-[a-z]/g,o9f=/([A-Z])/g;for(var GVN={},EfN=HTMLElement.prototype;EfN;){for(var J5E=Object.getOwnPropertyNames(EfN),ofW=0;ofW<J5E.length;ofW++)GVN[J5E[ofW]]=!0;EfN=Object.getPrototypeOf(EfN)}var hZb=window.trustedTypes?function(V){return trustedTypes.isHTML(V)||trustedTypes.isScript(V)||trustedTypes.isScriptURL(V)}:function(){return!1},PBW=g3(function(V){var l=y5Z(V);
V=function(){return l.apply(this,arguments)||this};
_.t(V,l);V.createPropertiesForAttributes=function(){for(var I=this.observedAttributes,H=0;H<I.length;H++)this.prototype._createPropertyAccessor(IX(I[H]))};
V.attributeNameForProperty=function(I){return HI(I)};
V.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);l.prototype._initializeProperties.call(this)};
V.prototype._initializeProtoProperties=function(I){for(var H in I)this._setProperty(H,I[H])};
V.prototype._ensureAttribute=function(I,H){this.hasAttribute(I)||this._valueToNodeAttribute(this,H,I)};
V.prototype._serializeValue=function(I){switch(typeof I){case "object":if(I instanceof Date)return I.toString();if(I){if(hZb(I))return I;try{return JSON.stringify(I)}catch(H){return""}}default:return l.prototype._serializeValue.call(this,I)}};
V.prototype._deserializeValue=function(I,H){switch(H){case Object:try{var T=JSON.parse(I)}catch(x){T=I}break;case Array:try{T=JSON.parse(I)}catch(x){T=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+I)}break;case Date:T=isNaN(I)?String(I):Number(I);T=new Date(T);break;default:T=l.prototype._deserializeValue.call(this,I,H)}return T};
V.prototype._definePropertyAccessor=function(I,H){if(!GVN[I]){var T=this[I];T!==void 0&&(this.__data?this._setPendingProperty(I,T):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[I]=T))}l.prototype._definePropertyAccessor.call(this,I,H)};
V.prototype._hasAccessor=function(I){return this.__dataHasAccessor&&this.__dataHasAccessor[I]};
V.prototype._isPropertyPending=function(I){return!!(this.__dataPending&&I in this.__dataPending)};
return V});var Drw={"dom-if":!0,"dom-repeat":!0},ZWW=!1,Sl3=!1,RZ0=function(){var V=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(l){return l}});
return function(l,I,H){I=I.getAttribute(H);V&&H.startsWith("on-")?l.setAttribute(H,V.createScript(I,H)):l.setAttribute(H,I)}}(),QAo=g3(function(V){var l=function(){return V.apply(this,arguments)||this};
_.t(l,V);l._parseTemplate=function(I,H){if(!I._templateInfo){var T=I._templateInfo={};T.nodeInfoList=[];T.nestedTemplate=!!H;T.stripWhiteSpace=H&&H.stripWhiteSpace||I.hasAttribute&&I.hasAttribute("strip-whitespace");this._parseTemplateContent(I,T,{parent:null})}return I._templateInfo};
l._parseTemplateContent=function(I,H,T){return this._parseTemplateNode(I.content,H,T)};
l._parseTemplateNode=function(I,H,T){var x=!1;I.localName!="template"||I.hasAttribute("preserve-content")?I.localName==="slot"&&(H.hasInsertionPoint=!0):x=this._parseTemplateNestedTemplate(I,H,T)||x;if(!ZWW){ZWW=!0;var n=document.createElement("textarea");n.placeholder="a";Sl3=n.placeholder===n.textContent}Sl3&&I.localName==="textarea"&&I.placeholder&&I.placeholder===I.textContent&&(I.textContent=null);I.firstChild&&this._parseTemplateChildNodes(I,H,T);I.hasAttributes&&I.hasAttributes()&&(x=this._parseTemplateNodeAttributes(I,
H,T)||x);return x||T.noted};
l._parseTemplateChildNodes=function(I,H,T){if(I.localName!=="script"&&I.localName!=="style")for(var x=I.firstChild,n=0,w;x;x=w){if(x.localName=="template"){var N=x.getAttribute("is");if(N&&Drw[N])for(w=x,w.removeAttribute("is"),x=w.ownerDocument.createElement(N),w.parentNode.replaceChild(x,w),x.appendChild(w);w.attributes.length;)N=w.attributes[0].name,RZ0(x,w,N),w.removeAttribute(N)}w=x.nextSibling;if(x.nodeType===Node.TEXT_NODE){for(N=w;N&&N.nodeType===Node.TEXT_NODE;)x.textContent+=N.textContent,
w=N.nextSibling,I.removeChild(N),N=w;if(H.stripWhiteSpace&&!x.textContent.trim()){I.removeChild(x);continue}}N={parentIndex:n,parentInfo:T};this._parseTemplateNode(x,H,N)&&(N.infoIndex=H.nodeInfoList.push(N)-1);x.parentNode&&n++}};
l._parseTemplateNestedTemplate=function(I,H,T){H=this._parseTemplate(I,H);(H.content=I.content.ownerDocument.createDocumentFragment()).appendChild(I.content);T.templateInfo=H;return!0};
l._parseTemplateNodeAttributes=function(I,H,T){for(var x=!1,n=Array.from(I.attributes),w=n.length-1,N;N=n[w];w--)x=this._parseTemplateNodeAttribute(I,H,T,N.name,N.value)||x;return x};
l._parseTemplateNodeAttribute=function(I,H,T,x,n){return x.slice(0,3)==="on-"?(I.removeAttribute(x),T.events=T.events||[],T.events.push({name:x.slice(3),value:n}),!0):x==="id"?(T.id=n,!0):!1};
l._contentForTemplate=function(I){var H=I._templateInfo;return H&&H.content||I.content};
l.prototype._stampTemplate=function(I,H){I&&!I.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(I);H=H||this.constructor._parseTemplate(I);var T=H.nodeInfoList;I=document.importNode(H.content||I.content,!0);I.__noInsertionPoint=!H.hasInsertionPoint;var x=I.nodeList=Array(T.length);I.$={};for(var n=0,w=T.length,N=void 0;n<w&&(N=T[n]);n++){var L=x[n]=hg3(I,N);N.id&&(I.$[N.id]=L);var e=L,k=N,X=H;k.templateInfo&&(e._templateInfo=k.templateInfo,e._parentTemplateInfo=
X);if(N.events&&N.events.length)for(e=0,k=N.events,X=void 0;e<k.length&&(X=k[e]);e++)this._addMethodEventListenerToNode(L,X.name,X.value,this)}return I};
l.prototype._addMethodEventListenerToNode=function(I,H,T,x){T=Pet(x||I,T);this._addEventListenerToNode(I,H,T);return T};
l.prototype._addEventListenerToNode=function(I,H,T){I.addEventListener(H,T)};
l.prototype._removeEventListenerFromNode=function(I,H,T){I.removeEventListener(H,T)};
return l});var wu=0,Yz=[],c5w={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},WdB=/[A-Z]/,bWw=function(V,l,I,H,T){var x=T?BI(V):V;if(l=l[x])for(x=0;x<l.length;x++){var n=l[x];if(n.info.lastRun!==wu&&(!T||cyy(V,n.trigger))){n.info.lastRun=wu;n=n.info;for(var w=I,N=H,L=0,e=w.length-1,k=-1;L<=e;){var X=L+e>>1,r=N.get(w[X].methodInfo)-N.get(n.methodInfo);if(r<0)L=X+1;else if(r>0)e=X-1;else{k=X;break}}k<
0&&(k=e+1);w.splice(k,0,n)}}},mZw=[],ql0=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"),iD=g3(function(V){var l=QAo(PBW(V));
V=function(){var I=l.call(this)||this;I.__isPropertyEffectsClient=!0;return I};
_.t(V,l);V.prototype._initializeProperties=function(){l.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};
V.prototype._registerHost=function(){if(mq.length){var I=mq[mq.length-1];I._enqueueClient(this);this.__dataHost=I}};
V.prototype._initializeProtoProperties=function(I){this.__data=Object.create(I);this.__dataPending=Object.create(I);this.__dataOld={}};
V.prototype._initializeInstanceProperties=function(I){var H=this.__readOnly,T;for(T in I)H&&H[T]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[T]=this.__dataPending[T]=I[T])};
V.prototype._addPropertyEffect=function(I,H,T){this._createPropertyAccessor(I,H=="__readOnly");var x=QJt(this,H,!0)[I];x||(x=this[H][I]=[]);x.push(T)};
V.prototype._removePropertyEffect=function(I,H,T){I=QJt(this,H,!0)[I];T=I.indexOf(T);T>=0&&I.splice(T,1)};
V.prototype._hasPropertyEffect=function(I,H){H=this[H];return!(!H||!H[I])};
V.prototype._hasReadOnlyEffect=function(I){return this._hasPropertyEffect(I,"__readOnly")};
V.prototype._hasNotifyEffect=function(I){return this._hasPropertyEffect(I,"__notifyEffects")};
V.prototype._hasReflectEffect=function(I){return this._hasPropertyEffect(I,"__reflectEffects")};
V.prototype._hasComputedEffect=function(I){return this._hasPropertyEffect(I,"__computeEffects")};
V.prototype._setPendingPropertyOrPath=function(I,H,T,x){if(x||BI(Array.isArray(I)?I[0]:I)!==I){if(!x&&(x=du(this,I),I=Rgc(this,I,H),!I||!l.prototype._shouldPropertyChange.call(this,I,H,x)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(I,H,T)){if(T=this.__dataLinkedPaths)for(var n in T)x=T[n],Uw(n,I)?(x=nC(n,x,I),this._setPendingPropertyOrPath(x,H,!0,!0)):Uw(x,I)&&(x=nC(x,n,I),this._setPendingPropertyOrPath(x,H,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[I])return this._setPendingProperty(I,
H,T);this[I]=H}return!1};
V.prototype._setUnmanagedPropertyToNode=function(I,H,T){if(T!==I[H]||typeof T=="object")H==="className"&&(I=(0,_.KC)(I)),I[H]=T};
V.prototype._setPendingProperty=function(I,H,T){var x=this.__dataHasPaths&&TO(I);if(this._shouldPropertyChange(I,H,(x?this.__dataTemp:this.__data)[I])){this.__dataPending||(this.__dataPending={},this.__dataOld={});I in this.__dataOld||(this.__dataOld[I]=this.__data[I]);x?this.__dataTemp[I]=H:this.__data[I]=H;this.__dataPending[I]=H;if(x||this.__notifyEffects&&this.__notifyEffects[I])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[I]=T;return!0}return!1};
V.prototype._setProperty=function(I,H){this._setPendingProperty(I,H,!0)&&this._invalidateProperties()};
V.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
V.prototype._enqueueClient=function(I){this.__dataPendingClients=this.__dataPendingClients||[];I!==this&&this.__dataPendingClients.push(I)};
V.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
V.prototype.__enableOrFlushClients=function(){var I=this.__dataPendingClients;if(I){this.__dataPendingClients=null;for(var H=0;H<I.length;H++){var T=I[H];T.__dataEnabled?T.__dataPending&&T._flushProperties():T._enableProperties()}}};
V.prototype._readyClients=function(){this.__enableOrFlushClients()};
V.prototype.setProperties=function(I,H){for(var T in I)!H&&this.__readOnly&&this.__readOnly[T]||this._setPendingPropertyOrPath(T,I[T],!0);this._invalidateProperties()};
V.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
V.prototype._propertiesChanged=function(I,H,T){I=this.__dataHasPaths;this.__dataHasPaths=!1;var x;if(x=this.__computeEffects)if(KdJ){wu++;var n=plq(this),w=[],N;for(N in H)bWw(N,x,w,n,I);for(;N=w.shift();)ux1(this,"",H,T,N)&&bWw(N.methodInfo,x,w,n,I);Object.assign(T,this.__dataOld);Object.assign(H,this.__dataPending);this.__dataPending=null}else for(n=H;NK(this,x,n,T,I);)Object.assign(T,this.__dataOld),Object.assign(H,this.__dataPending),n=this.__dataPending,this.__dataPending=null;x=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(H,T,I);this._flushClients();NK(this,this.__reflectEffects,H,T,I);NK(this,this.__observeEffects,H,T,I);if(x){n=this.__notifyEffects;w=wu++;for(var L in x)if(x[L]){if(N=n){var e=n;N=w;var k=L,X=H,r=T,E=I,D=!1,Z=E?BI(k):k;if(e=e[Z]){Z=0;for(var S=e.length,p=void 0;Z<S&&(p=e[Z]);Z++)p.info&&p.info.lastRun===N||E&&!cyy(k,p.trigger)||(p.info&&(p.info.lastRun=N),p.fn(this,k,X,r,p.info,E,void 0),D=!0)}N=D}if(N)var Vf=!0;else{if(N=I)N=L,k=H,X=BI(N),X!==
N?(X=HI(X)+"-changed",bvf(this,X,k[N],N),N=!0):N=!1;N&&(Vf=!0)}}var C;Vf&&(C=this.__dataHost)&&C._invalidateProperties&&C._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
V.prototype._propagatePropertyChanges=function(I,H,T){this.__propagateEffects&&NK(this,this.__propagateEffects,I,H,T);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,I,H,T)};
V.prototype._runEffectsForTemplate=function(I,H,T,x){var n=this,w=function(N,L){NK(n,I.propertyEffects,N,T,L,I.nodeList);for(var e=I.firstChild;e;e=e.nextSibling)n._runEffectsForTemplate(e,N,T,L)};
I.runEffects?I.runEffects(w,H,x):w(H,x)};
V.prototype.linkPaths=function(I,H){I=$z(I);H=$z(H);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[I]=H};
V.prototype.unlinkPaths=function(I){I=$z(I);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[I]};
V.prototype.notifySplices=function(I,H){var T={path:""};I=du(this,I,T);IkT(this,I,T.path,H)};
V.prototype.get=function(I,H){return du(H||this,I)};
V.prototype.set=function(I,H,T){T?Rgc(T,I,H):this.__readOnly&&this.__readOnly[I]||this._setPendingPropertyOrPath(I,H,!0)&&this._invalidateProperties()};
V.prototype.push=function(I){var H=_.Q5.apply(1,arguments),T={path:""},x=du(this,I,T),n=x.length,w=x.push.apply(x,_.oI(H));H.length&&eh(this,x,T.path,n,H.length,[]);return w};
V.prototype.pop=function(I){var H={path:""};I=du(this,I,H);var T=!!I.length,x=I.pop();T&&eh(this,I,H.path,I.length,0,[x]);return x};
V.prototype.splice=function(I,H,T){var x=_.Q5.apply(3,arguments),n={path:""},w=du(this,I,n);H<0?H=w.length-Math.floor(-H):H&&(H=Math.floor(H));var N=arguments.length===2?w.splice(H):w.splice.apply(w,[H,T].concat(_.oI(x)));(x.length||N.length)&&eh(this,w,n.path,H,x.length,N);return N};
V.prototype.shift=function(I){var H={path:""};I=du(this,I,H);var T=!!I.length,x=I.shift();T&&eh(this,I,H.path,0,0,[x]);return x};
V.prototype.unshift=function(I){var H=_.Q5.apply(1,arguments),T={path:""},x=du(this,I,T),n=x.unshift.apply(x,_.oI(H));H.length&&eh(this,x,T.path,0,H.length,[]);return n};
V.prototype.notifyPath=function(I,H){if(arguments.length==1){var T={path:""};H=du(this,I,T);T=T.path}else T=Array.isArray(I)?$z(I):I;this._setPendingPropertyOrPath(T,H,!0,!0)&&this._invalidateProperties()};
V.prototype._createReadOnlyProperty=function(I,H){this._addPropertyEffect(I,"__readOnly");H&&(this["_set"+(I[0].toUpperCase()+I.substring(1))]=function(T){this._setProperty(I,T)})};
V.prototype._createPropertyObserver=function(I,H,T){var x={property:I,method:H,dynamicFn:!!T};this._addPropertyEffect(I,"__observeEffects",{fn:WlK,info:x,trigger:{name:I}});T&&this._addPropertyEffect(H,"__observeEffects",{fn:WlK,info:x,trigger:{name:H}})};
V.prototype._createMethodObserver=function(I,H){var T=V73(I);if(!T)throw Error("Bd`"+I);fLt(this,T,"__observeEffects",Ayy,null,H)};
V.prototype._createNotifyingProperty=function(I){this._addPropertyEffect(I,"__notifyEffects",{fn:qJT,info:{eventName:HI(I)+"-changed",property:I}})};
V.prototype._createReflectedProperty=function(I){var H=this.constructor.attributeNameForProperty(I);H[0]==="-"?console.warn("Property "+I+" cannot be reflected to attribute "+H+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(I,"__reflectEffects",{fn:MnJ,info:{attrName:H}})};
V.prototype._createComputedProperty=function(I,H,T){var x=V73(H);if(!x)throw Error("Cd`"+H);H=fLt(this,x,"__computeEffects",ux1,I,T);QJt(this,"__computeInfo")[I]=H};
V.prototype._marshalArgs=function(I,H,T){for(var x=this.__data,n=[],w=0,N=I.length;w<N;w++){var L=I[w],e=L.name,k=L.structured,X=L.wildcard,r=L.value;L.literal||(X?(L=Uw(e,H),k=lkT(x,T,L?H:e),r={path:L?H:e,value:k,base:L?du(x,e):k}):r=k?lkT(x,T,e):x[e]);if(LC&&!this._overrideLegacyUndefined&&r===void 0&&I.length>1)return Yz;n[w]=r}return n};
V.addPropertyEffect=function(I,H,T){this.prototype._addPropertyEffect(I,H,T)};
V.createPropertyObserver=function(I,H,T){this.prototype._createPropertyObserver(I,H,T)};
V.createMethodObserver=function(I,H){this.prototype._createMethodObserver(I,H)};
V.createNotifyingProperty=function(I){this.prototype._createNotifyingProperty(I)};
V.createReadOnlyProperty=function(I,H){this.prototype._createReadOnlyProperty(I,H)};
V.createReflectedProperty=function(I){this.prototype._createReflectedProperty(I)};
V.createComputedProperty=function(I,H,T){this.prototype._createComputedProperty(I,H,T)};
V.bindTemplate=function(I){return this.prototype._bindTemplate(I)};
V.prototype._bindTemplate=function(I,H){var T=this.constructor._parseTemplate(I),x=this.__preBoundTemplateInfo==T;if(!x)for(var n in T.propertyEffects)this._createPropertyAccessor(n);H?(T=Object.create(T),T.wasPreBound=x,this.__templateInfo?(I=I._parentTemplateInfo||this.__templateInfo,H=I.lastChild,T.parent=I,I.lastChild=T,(T.previousSibling=H)?H.nextSibling=T:I.firstChild=T):this.__templateInfo=T):this.__preBoundTemplateInfo=T;return T};
V._addTemplatePropertyEffect=function(I,H,T){(I.hostProps=I.hostProps||{})[H]=!0;I=I.propertyEffects=I.propertyEffects||{};(I[H]=I[H]||[]).push(T)};
V.prototype._stampTemplate=function(I,H){H=H||this._bindTemplate(I,!0);mq.push(this);I=l.prototype._stampTemplate.call(this,I,H);mq.pop();H.nodeList=I.nodeList;if(!H.wasPreBound)for(var T=H.childNodes=[],x=I.firstChild;x;x=x.nextSibling)T.push(x);I.templateInfo=H;T=H.nodeList;x=H.nodeInfoList;if(x.length)for(var n=0;n<x.length;n++){var w=T[n],N=x[n].bindings;if(N)for(var L=0;L<N.length;L++){var e=N[L],k=w,X=e;if(X.isCompound){for(var r=k.__dataCompoundStorage||(k.__dataCompoundStorage={}),E=X.parts,
D=Array(E.length),Z=0;Z<E.length;Z++)D[Z]=E[Z].literal;E=X.target;r[E]=D;X.literal&&X.kind=="property"&&(E==="className"&&(k=(0,_.KC)(k)),k[E]=X.literal)}aL3(w,this,e)}w.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(H,this.__data,null,!1),this._flushClients());return I};
V.prototype._removeBoundDom=function(I){I=I.templateInfo;var H=I.previousSibling,T=I.nextSibling,x=I.parent;H?H.nextSibling=T:x&&(x.firstChild=T);T?T.previousSibling=H:x&&(x.lastChild=H);I.nextSibling=I.previousSibling=null;I=I.childNodes;for(H=0;H<I.length;H++)T=I[H],(0,_.KC)((0,_.KC)(T).parentNode).removeChild(T)};
V._parseTemplateNode=function(I,H,T){var x=l._parseTemplateNode.call(this,I,H,T);if(I.nodeType===Node.TEXT_NODE){var n=this._parseBindings(I.textContent,H);n&&(I.textContent=g91(n)||" ",Cec(this,H,T,"text","textContent",n),x=!0)}return x};
V._parseTemplateNodeAttribute=function(I,H,T,x,n){var w=this._parseBindings(n,H);if(w){n=x;var N="property";WdB.test(x)?N="attribute":x[x.length-1]=="$"&&(x=x.slice(0,-1),N="attribute");var L=g91(w);L&&N=="attribute"&&(x=="class"&&I.hasAttribute("class")&&(L+=" "+I.getAttribute(x)),I.setAttribute(x,L));N=="attribute"&&n=="disable-upgrade$"&&I.setAttribute(x,"");I.localName==="input"&&n==="value"&&I.setAttribute(n,"");I.removeAttribute(n);N==="property"&&(x=IX(x));Cec(this,H,T,N,x,w,L);return!0}return l._parseTemplateNodeAttribute.call(this,
I,H,T,x,n)};
V._parseTemplateNestedTemplate=function(I,H,T){var x=l._parseTemplateNestedTemplate.call(this,I,H,T),n=I.parentNode,w=T.templateInfo,N=n.localName==="dom-if",L=n.localName==="dom-repeat";uD&&(N||L)&&(n.removeChild(I),T=T.parentInfo,T.templateInfo=w,T.noted=!0,x=!1);I=w.hostProps;if(v6&&N)I&&(H.hostProps=Object.assign(H.hostProps||{},I),uD||(T.parentInfo.noted=!0));else for(var e in I)Cec(this,H,T,"property","_host_"+e,[{mode:"{",source:e,dependencies:[e],hostProp:!0}]);return x};
V._parseBindings=function(I,H){for(var T=[],x=0,n;(n=ql0.exec(I))!==null;){n.index>x&&T.push({literal:I.slice(x,n.index)});x=n[1][0];var w=!!n[2];n=n[3].trim();var N=!1,L="",e=-1;x=="{"&&(e=n.indexOf("::"))>0&&(L=n.substring(e+2),n=n.substring(0,e),N=!0);e=V73(n);var k=[];if(e){var X=e,r=X.args;X=X.methodName;for(var E=0;E<r.length;E++){var D=r[E];D.literal||k.push(D)}if((r=H.dynamicFns)&&r[X]||e.static)k.push(X),e.dynamicFn=!0}else k.push(n);T.push({source:n,mode:x,negate:w,customEvent:N,signature:e,
dependencies:k,event:L});x=ql0.lastIndex}x&&x<I.length&&(I=I.substring(x))&&T.push({literal:I});return T.length?T:null};
V._evaluateBinding=function(I,H,T,x,n,w){I=H.signature?Ayy(I,T,x,n,H.signature):T!=H.source?du(I,H.source):w&&TO(T)?du(I,T):I.__data[T];H.negate&&(I=!I);return I};
_.vI.Object.defineProperties(V.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return c5w}}});
return V}),mq=[];var Msi=window.ShadyCSS&&window.ShadyCSS.cssBuild,VA=g3(function(V){function l(H,T,x,n){if(!Msi){for(var w=T.content.querySelectorAll("style"),N=xYw(T),L=UYJ(x),e=T.content.firstElementChild,k=0;k<L.length;k++){var X=L[k];X.textContent=H._processStyleText(X.textContent,n);T.content.insertBefore(X,e)}for(e=L=0;e<N.length;e++)k=N[e],X=w[L],X!==k?(k=k.cloneNode(!0),X.parentNode.insertBefore(k,X)):L++,k.textContent=H._processStyleText(k.textContent,n)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(T,
x);if(YlN&&Msi&&$r3&&(T=T.content.querySelectorAll("style"))){var r="";Array.from(T).forEach(function(E){r+=E.textContent;E.parentNode.removeChild(E)});
H._styleSheet=new CSSStyleSheet;H._styleSheet.replaceSync(r)}}
var I=r5Z(iD(V));V=function(){return I.call(this)||this};
_.t(V,I);V._finalizeClass=function(){I._finalizeClass.call(this);var H;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(H=this.__ownObservers)&&this.createObservers(H,this._properties);this._prepareTemplate()};
V._prepareTemplate=function(){var H=this.template;H&&(typeof H==="string"?(console.error("template getter must return HTMLTemplateElement"),H=null):PI||(H=H.cloneNode(!0)));this.prototype._template=H};
V.createProperties=function(H){for(var T in H){var x=this.prototype,n=T,w=H[T],N=H;w.computed&&(w.readOnly=!0);w.computed&&(x._hasReadOnlyEffect(n)?console.warn("Cannot redefine computed property '"+n+"'."):x._createComputedProperty(n,w.computed,N));w.readOnly&&!x._hasReadOnlyEffect(n)?x._createReadOnlyProperty(n,!w.computed):w.readOnly===!1&&x._hasReadOnlyEffect(n)&&console.warn("Cannot make readOnly property '"+n+"' non-readOnly.");w.reflectToAttribute&&!x._hasReflectEffect(n)?x._createReflectedProperty(n):
w.reflectToAttribute===!1&&x._hasReflectEffect(n)&&console.warn("Cannot make reflected property '"+n+"' non-reflected.");w.notify&&!x._hasNotifyEffect(n)?x._createNotifyingProperty(n):w.notify===!1&&x._hasNotifyEffect(n)&&console.warn("Cannot make notify property '"+n+"' non-notify.");w.observer&&x._createPropertyObserver(n,w.observer,N[w.observer]);x._addPropertyToAttributeMap(n)}};
V.createObservers=function(H,T){for(var x=this.prototype,n=0;n<H.length;n++)x._createMethodObserver(H[n],T)};
V.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);I.prototype._initializeProperties.call(this);this.rootPath=dr3;this.importPath=this.constructor.importPath;var H=this.constructor;if(!H.hasOwnProperty("__propertyDefaults")){H.__propertyDefaults=null;var T=H._properties,x;for(x in T){var n=T[x];"value"in n&&(H.__propertyDefaults=H.__propertyDefaults||{},H.__propertyDefaults[x]=n)}}if(H=H.__propertyDefaults)for(var w in H)T=H[w],
this._canApplyPropertyDefault(w)&&(T=typeof T.value=="function"?T.value.call(this):T.value,this._hasAccessor(w)?this._setPendingProperty(w,T,!0):this[w]=T)};
V.prototype._canApplyPropertyDefault=function(H){return!this.hasOwnProperty(H)};
V._processStyleText=function(H,T){return FlN(H,T)};
V._finalizeTemplate=function(H){var T=this.prototype._template;if(T&&!T.__polymerFinalized){T.__polymerFinalized=!0;var x=this.importPath;x=x?_.VW(x):"";l(this,T,H,x);this.prototype._bindTemplate(T)}};
V.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);I.prototype.connectedCallback.call(this)};
V.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);I.prototype.ready.call(this)};
V.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));I.prototype._readyClients.call(this)};
V.prototype._attachDom=function(H){var T=(0,_.KC)(this);if(T.attachShadow)return H?(T.shadowRoot||(T.attachShadow({mode:"open",shadyUpgradeFragment:H}),T.shadowRoot.appendChild(H),this.constructor._styleSheet&&(T.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),NJB&&window.ShadyDOM&&window.ShadyDOM.flushInitial(T.shadowRoot),T.shadowRoot):null;throw Error("Ed");};
V.prototype.updateStyles=function(H){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,H)};
V.prototype.resolveUrl=function(H,T){!T&&this.importPath&&(T=_.VW(this.importPath));return _.VW(H,T)};
V._parseTemplateContent=function(H,T,x){T.dynamicFns=T.dynamicFns||this._properties;return I._parseTemplateContent.call(this,H,T,x)};
V._addTemplatePropertyEffect=function(H,T,x){!RX||T in this._properties||x.info.part.signature&&x.info.part.signature.static||x.info.part.hostProp||H.nestedTemplate||console.warn("Property '"+T+"' used in template but not declared in 'properties'; attribute will not be observed.");return I._addTemplatePropertyEffect.call(this,H,T,x)};
_.vI.Object.defineProperties(V,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var H=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof H==="function"&&(H=H());if(H===void 0){if(H=this.hasOwnProperty("is")){H=this.is;var T=null;if(H&&(!QW||w4b)&&(T=kz.import(H,"template"),QW&&!T))throw Error("Dd`"+H);H=T}H=H||Object.getPrototypeOf(this.prototype).constructor.template}this._template=H}return this._template},
set:function(H){this._template=H}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var H=this.importMeta;H?this._importPath=Xlt(H.url):this._importPath=(H=kz.import(this.is))&&H.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return V});var sAv=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(V){return V}}),jKg=function(V,l){p4B(V,l);
this.value=l.reduce(function(I,H,T){return I+YHq(H)+V[T+1]},V[0]).toString()},p4B;
jKg.prototype.toString=function(){return this.value};
_.A5Z=function(V){var l=_.Q5.apply(1,arguments);p4B(V,l);var I=document.createElement("template");l=l.reduce(function(H,T,x){if(T instanceof HTMLTemplateElement)T=T.innerHTML;else if(T instanceof jKg)T=YHq(T);else throw Error("Gd`"+T);return H+T+V[x+1]},V[0]);
sAv&&(l=sAv.createHTML(l));I.innerHTML=l;return I};
p4B=function(V,l){if(!Array.isArray(V)||!Array.isArray(V.raw)||l.length!==V.length-1)throw new TypeError("Hd");};var lc=VA(HTMLElement);var u3Z=g3(function(V){var l=VA(V);V=function(){var I=l.call(this)||this;I.__lastItems=null;I.__lastMulti=null;I.__selectedMap=null;return I};
_.t(V,l);V.prototype.__updateSelection=function(I,H){var T=H.path;T=="items"?(H=H.base||[],T=this.__lastItems,I!==this.__lastMulti&&this.clearSelection(),T&&(T=KSg(H,T),this.__applySplices(T)),this.__lastItems=H,this.__lastMulti=I):H.path=="items.splices"?this.__applySplices(H.value.indexSplices):(I=T.slice(6),H=parseInt(I,10),I.indexOf(".")<0&&I==H&&this.__deselectChangedIdx(H))};
V.prototype.__applySplices=function(I){for(var H=this,T=this.__selectedMap,x={},n=0;n<I.length;x={s$jscomp$108:void 0},n++){x.s$jscomp$108=I[n];T.forEach(function(e){return function(k,X){k<e.s$jscomp$108.index||(k>=e.s$jscomp$108.index+e.s$jscomp$108.removed.length?T.set(X,k+e.s$jscomp$108.addedCount-e.s$jscomp$108.removed.length):T.set(X,-1))}}(x));
for(var w=0;w<x.s$jscomp$108.addedCount;w++){var N=x.s$jscomp$108.index+w;T.has(this.items[N])&&T.set(this.items[N],N)}}this.__updateLinks();var L=0;T.forEach(function(e,k){e<0?(H.multi?H.splice("selected",L,1):H.selected=H.selectedItem=null,T.delete(k)):L++})};
V.prototype.__updateLinks=function(){var I=this;this.__dataLinkedPaths={};if(this.multi){var H=0;this.__selectedMap.forEach(function(T){T>=0&&I.linkPaths("items."+T,"selected."+H++)})}else this.__selectedMap.forEach(function(T){I.linkPaths("selected","items."+T);
I.linkPaths("selectedItem","items."+T)})};
V.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
V.prototype.isSelected=function(I){return this.__selectedMap.has(I)};
V.prototype.isIndexSelected=function(I){return this.isSelected(this.items[I])};
V.prototype.__deselectChangedIdx=function(I){var H=this,T=this.__selectedIndexForItemIndex(I);if(T>=0){var x=0;this.__selectedMap.forEach(function(n,w){T==x++&&H.deselect(w)})}};
V.prototype.__selectedIndexForItemIndex=function(I){if(I=this.__dataLinkedPaths["items."+I])return parseInt(I.slice(9),10)};
V.prototype.deselect=function(I){var H=this.__selectedMap.get(I);if(H>=0){this.__selectedMap.delete(I);var T;this.multi&&(T=this.__selectedIndexForItemIndex(H));this.__updateLinks();this.multi?this.splice("selected",T,1):this.selected=this.selectedItem=null}};
V.prototype.deselectIndex=function(I){this.deselect(this.items[I])};
V.prototype.select=function(I){this.selectIndex(this.items.indexOf(I))};
V.prototype.selectIndex=function(I){var H=this.items[I];this.isSelected(H)?this.toggle&&this.deselectIndex(I):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(H,I),this.__updateLinks(),this.multi?this.push("selected",H):this.selected=this.selectedItem=H)};
_.vI.Object.defineProperties(V,{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 V}),vfZ=u3Z(lc),IY=function(){return vfZ.apply(this,arguments)||this};
_.t(IY,vfZ);_.vI.Object.defineProperties(IY,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(IY.is,IY);var OWZ=window.Polymer;window.Polymer=function(V){return window.Polymer._polymerFn(V)};
OWZ&&Object.assign(Polymer,OWZ);Polymer._polymerFn=function(){throw Error("Id");};/*

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:FlN,resolveUrl:_.VW,pathFromUrl:Xlt};Polymer.DomModule=kz;Polymer.Async={timeOut:_.fh,animationFrame:_.Kt,idlePeriod:X4w,microTask:oX};Polymer.dedupingMixin=g3;Polymer.wrap=_.KC;Polymer.PropertiesChanged=y5Z;Polymer.telemetry={instanceCount:ts3,incrementInstanceCount:function(){ts3++},
registrations:ry1,register:GKK,dumpRegistrations:function(){ry1.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=r5Z;Polymer.CaseMap={dashToCamelCase:IX,camelToDashCase:HI};Polymer.PropertyAccessors=PBW;Polymer.TemplateStamp=QAo;Polymer.Path={isPath:TO,root:BI,isAncestor:DZ1,isDescendant:Uw,translate:nC,matches:ZvJ,normalize:$z,split:SJy,get:du,set:Rgc,isDeep:TO};Polymer.Settings={useShadow:DU,useNativeCSSProperties:TJE,useNativeCustomElements:BJZ,get rootPath(){return dr3},setRootPath:function(V){dr3=V},
get sanitizeDOMValue(){return jh},setSanitizeDOMValue:function(V){jh=V},
get passiveTouchGestures(){return o_J},setPassiveTouchGestures:function(V){o_J=V},
get strictTemplatePolicy(){return QW},setStrictTemplatePolicy:function(V){QW=V},
get allowTemplateFromDomModule(){return w4b},setAllowTemplateFromDomModule:function(V){w4b=V},
get legacyOptimizations(){return PI},setLegacyOptimizations:function(V){PI=V},
get syncInitialRender(){return NJB},setSyncInitialRender:function(V){NJB=V},
get legacyUndefined(){return LC},setLegacyUndefined:function(V){LC=V},
get legacyWarnings(){return RX},setLegacyWarnings:function(V){RX=V},
get orderedComputed(){return KdJ},setOrderedComputed:function(V){KdJ=V},
get fastDomIf(){return v6},setFastDomIf:function(V){v6=V},
get removeNestedTemplates(){return uD},setRemoveNestedTemplates:function(V){uD=V},
get suppressTemplateNotifications(){return Om},setSuppressTemplateNotifications:Om};Polymer.rootPath!==void 0&&(dr3=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(jh=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(o_J=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(QW=Polymer.strictTemplatePolicy);w4b=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(PI=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(NJB=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(LC=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(RX=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(KdJ=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(v6=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(uD=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Om=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return jh},
set:function(V){jh=V}});Polymer.PropertyEffects=iD;Polymer.StyleGather={stylesFromModules:BEw,stylesFromModule:TET,stylesFromTemplate:xYw,stylesFromModuleImports:UYJ,cssFromModules:$Yf,cssFromModule:n_f,cssFromTemplate:dYt,cssFromModuleImports:function(V){return(V=kz.import(V))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(V):""}};Polymer.ElementMixin=VA;Polymer.updateStyles=function(V){window.ShadyCSS&&window.ShadyCSS.styleDocument(V)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:KSg};Polymer.html=_.A5Z;Polymer.htmlLiteral=function(V){return new jKg(V,_.Q5.apply(1,arguments))};Polymer.Element=lc;Polymer.ArraySelectorMixin=u3Z;Polymer.ArraySelector=IY;var CBW=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,awW=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,aVt=/@media\s(.*)/;var FST=null,ka1=window.HTMLImports&&window.HTMLImports.whenReady||null,XAt;var fwa=null,HJ=null,Tm=function(){this.customStyles=[];this.enqueued=!1;zjg(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},gfw=function(V){!V.enqueued&&HJ&&(V.enqueued=!0,zjg(HJ))};
Tm.prototype.addCustomStyle=function(V){V.__seenByShadyCSS||(V.__seenByShadyCSS=!0,this.customStyles.push(V),gfw(this))};
Tm.prototype.getStyleForCustomStyle=function(V){if(V.__shadyCSSCachedStyle)return V.__shadyCSSCachedStyle;var l;V.getStyle?l=V.getStyle():l=V;return l};
Tm.prototype.processStyles=function(){for(var V=this.customStyles,l=0;l<V.length;l++){var I=V[l];if(!I.__shadyCSSCachedStyle){var H=this.getStyleForCustomStyle(I);H&&(H=H.__appliedElement||H,fwa&&fwa(H),I.__shadyCSSCachedStyle=H)}}return V};
Tm.prototype.addCustomStyle=Tm.prototype.addCustomStyle;Tm.prototype.getStyleForCustomStyle=Tm.prototype.getStyleForCustomStyle;Tm.prototype.processStyles=Tm.prototype.processStyles;Object.defineProperties(Tm.prototype,{transformCallback:{get:function(){return fwa},
set:function(V){fwa=V}},
validateCallback:{get:function(){return HJ},
set:function(V){var l=!1;HJ||(l=!0);HJ=V;l&&gfw(this)}}});var t73=!(window.ShadyDOM&&window.ShadyDOM.inUse),yiK,ug;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(ug=window.ShadyCSS.cssBuild);var mra=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?yiK=window.ShadyCSS.nativeCss:window.ShadyCSS?(riw(window.ShadyCSS),window.ShadyCSS=void 0):riw(window.WebComponents&&window.WebComponents.flags);var vv1=yiK;var iWW=new Tm;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(V,l){iWW.processStyles();LSg(V,l)},
styleElement:function(){iWW.processStyles()},
styleDocument:function(V){iWW.processStyles();LSg(document.body,V)},
getComputedStyleValue:function(V,l){return ejt(V,l)},
flushCustomStyles:function(){},
nativeCss:vv1,nativeShadow:t73,cssBuild:ug,disableRuntime:mra});window.ShadyCSS.CustomStyleInterface=iWW;var VD3=window.ShadyCSS.CustomStyleInterface,BJ=function(){var V=HTMLElement.call(this)||this;V._style=null;VD3.addCustomStyle(V);return V};
_.t(BJ,HTMLElement);BJ.prototype.getStyle=function(){if(this._style)return this._style;var V=this.querySelector("style");if(!V)return null;this._style=V;var l=V.getAttribute("include");l&&(V.removeAttribute("include"),V.textContent=$Yf(l)+V.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
BJ.prototype.getStyle=BJ.prototype.getStyle;window.customElements.define("custom-style",BJ);Polymer.CustomStyle=BJ;var xb=function(){this._timer=this._callback=this._asyncModule=null},Un,Ifo;
xb.prototype.setConfig=function(V,l){var I=this;this._asyncModule=V;this._callback=l;this._timer=this._asyncModule.run(function(){I._timer=null;Un.delete(I);I._callback()})};
xb.prototype.cancel=function(){this.isActive()&&(lfJ(this),Un.delete(this))};
var lfJ=function(V){V.isActive()&&(V._asyncModule.cancel(V._timer),V._timer=null)};
xb.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
xb.prototype.isActive=function(){return this._timer!=null};
_.nD=function(V,l,I){V instanceof xb?lfJ(V):V=new xb;V.setConfig(l,I);return V};
Un=new Set;_.$b=function(V){Un.add(V)};
Ifo=function(){var V=!!Un.size;Un.forEach(function(l){try{l.flush()}catch(I){setTimeout(function(){throw I;})}});
return V};var E_c=typeof document.head.style.touchAction==="string",Gac=["mousedown","mousemove","mouseup","click"],QKN=[0,1,4,2],HYZ;try{HYZ=(new MouseEvent("test",{buttons:1})).buttons===1}catch(V){HYZ=!1}var Rjc=HYZ,Jiy=!1;(function(){try{var V=Object.defineProperty({},"passive",{get:function(){Jiy=!0}});
window.addEventListener("test",null,V);window.removeEventListener("test",null,V)}catch(l){}})();
var PRw=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),DYW=[],TPo={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},CR1={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Zl1=function(V){var l=V.sourceCapabilities;if(!l||l.firesTouchEvents)if(V.__polymerGesturesHandled={skip:!0},V.type==="click"){l=!1;for(var I=qHg(V),H=0;H<I.length;H++){if(I[H].nodeType===Node.ELEMENT_NODE)if(I[H].localName==="label")DYW.push(I[H]);
else if(TPo[I[H].localName]){var T=I[H];var x=Array.prototype.slice.call(T.labels||[]);if(!x.length){x=[];try{var n=T.getRootNode();if(T.id){var w=n.querySelectorAll("label[for = '"+T.id+"']");for(T=0;T<w.length;T++)x.push(w[T])}}catch(N){}}for(T=0;T<x.length;T++)l=l||DYW.indexOf(x[T])>-1}if(I[H]===BPW)return}l||(V.preventDefault(),V.stopPropagation())}},BPW=null,dQ=null,sK1=0,pAK=0,M7K=-1,AiW=!1;
document.addEventListener("touchend",function(V){dQ||SHq(!0);BPW=qHg(V)[0];dQ=_.nD(dQ,_.fh.after(2500),function(){SHq();dQ=BPW=null})},Jiy?{passive:!0}:!1);
var qHg=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(V){return V.composedPath&&V.composedPath()||[]},ru={},yW=[];
uzN({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){zO(this.info)},
mousedown:function(V){if(XH(V)){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V),I=this;WS1(this.info,function(H){XH(H)||(hl("up",l,H),zO(I.info))},function(H){XH(H)&&hl("up",l,H);
zO(I.info)});
hl("down",l,V)}},
touchstart:function(V){hl("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V),V.changedTouches[0],V)},
touchend:function(V){hl("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V),V.changedTouches[0],V)}});
uzN({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(V){this.moves.length>2&&this.moves.shift();this.moves.push(V)},
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;zO(this.info)},
mousedown:function(V){if(XH(V)){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V),I=this,H=function(T){var x=T.clientX,n=T.clientY;v_g(I.info,x,n)&&(I.info.state=I.info.started?T.type==="mouseup"?"end":"track":"start",I.info.state==="start"&&tl("tap"),I.info.addMove({x:x,y:n}),XH(T)||(I.info.state="end",zO(I.info)),l&&Olt(I.info,l,T),I.info.started=!0)};
WS1(this.info,H,function(T){I.info.started&&H(T);zO(I.info)});
this.info.x=V.clientX;this.info.y=V.clientY}},
touchstart:function(V){V=V.changedTouches[0];this.info.x=V.clientX;this.info.y=V.clientY},
touchmove:function(V){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V);V=V.changedTouches[0];var I=V.clientX,H=V.clientY;v_g(this.info,I,H)&&(this.info.state==="start"&&tl("tap"),this.info.addMove({x:I,y:H}),Olt(this.info,l,V),this.info.state="track",this.info.started=!0)},
touchend:function(V){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V);V=V.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:V.clientX,y:V.clientY}),Olt(this.info,l,V))}});
uzN({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(V){XH(V)&&(this.info.x=V.clientX,this.info.y=V.clientY)},
click:function(V){XH(V)&&akW(this.info,V)},
touchstart:function(V){V=V.changedTouches[0];this.info.x=V.clientX;this.info.y=V.clientY},
touchend:function(V){akW(this.info,V.changedTouches[0],V)}});var xvo=g3(function(V){var l=function(){return V.apply(this,arguments)||this};
_.t(l,V);l.prototype._addEventListenerToNode=function(I,H,T){GO(I,H,T)||V.prototype._addEventListenerToNode.call(this,I,H,T)};
l.prototype._removeEventListenerFromNode=function(I,H,T){Ew(I,H,T)||V.prototype._removeEventListenerFromNode.call(this,I,H,T)};
return l});var wQ=g3(function(V){var l=function(){return V.apply(this,arguments)||this};
_.t(l,V);l.prototype._shouldPropertyChange=function(I,H,T){return fkt(this,I,H,T,!0)};
return l}),UvJ=g3(function(V){var l=function(){return V.apply(this,arguments)||this};
_.t(l,V);l.prototype._shouldPropertyChange=function(I,H,T){return fkt(this,I,H,T,this.mutableData)};
_.vI.Object.defineProperties(l,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return l});
wQ._mutablePropertyChange=fkt;var g_J=!1;var nVb=xvo(UvJ(iD(HTMLElement))),NA=function(){var V=nVb.call(this)||this;if(QW)throw Error("Jd");V.root=null;V.$=null;V.__children=null;return V};
_.t(NA,nVb);_.B=NA.prototype;_.B.attributeChangedCallback=function(){this.mutableData=!0};
_.B.connectedCallback=function(){mYt()||(this.style.display="none");this.render()};
_.B.disconnectedCallback=function(){this.__removeChildren()};
_.B.__insertChildren=function(){(0,_.KC)((0,_.KC)(this).parentNode).insertBefore(this.root,this)};
_.B.__removeChildren=function(){if(this.__children)for(var V=0;V<this.__children.length;V++)this.root.appendChild(this.__children[V])};
_.B.render=function(){var V=this;if(!this.__children){var l=l||this.querySelector("template");if(!l){var I=new MutationObserver(function(){if(l=V.querySelector("template"))I.disconnect(),V.render();else throw Error("Kd");});
I.observe(this,{childList:!0});return}this.root=this._stampTemplate(l);this.$=this.root.$;this.__children=[];for(var H=this.root.firstChild;H;H=H.nextSibling)this.__children[this.__children.length]=H;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.vI.Object.defineProperties(NA,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",NA);Polymer.Debouncer=xb;Polymer.Gestures={gestures:ru,recognizers:yW,deepTargetFind:bly,addListener:GO,removeListener:Ew,register:uzN,setTouchAction:_.Jl,prevent:tl,resetMouseCanceller:function(){dQ&&dQ.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:GO,remove:Ew};Polymer.GestureEventListeners=xvo;Polymer.MutableData=wQ;Polymer.OptionalMutableData=UvJ;Polymer.DomBind=NA;_.KD=function(){do{var V=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var l=Ifo()}while(V||l)};var il1=null;VaN.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:VaN,writable:!0}});var nvT=iD(VaN),UUw=wQ(nvT),$vv=iD(function(){}),ZU=function(V){var l=$vv.call(this)||this;
l._configureProperties(V);l.root=l._stampTemplate(l.__dataHost);var I=[];l.children=I;for(var H=l.root.firstChild;H;H=H.nextSibling)I.push(H),H.__templatizeInstance=l;l.__templatizeOwner&&l.__templatizeOwner.__hideTemplateChildren__&&l._showHideChildren(!0);I=l.__templatizeOptions;(V&&I.instanceProps||!I.instanceProps)&&l._enableProperties();return l};
_.t(ZU,$vv);_.B=ZU.prototype;_.B._configureProperties=function(V){if(this.__templatizeOptions.forwardHostProp)for(var l in this.__hostProps)this._setPendingProperty(l,this.__dataHost["_host_"+l]);for(var I in V)this._setPendingProperty(I,V[I])};
_.B.forwardHostProp=function(V,l){this._setPendingPropertyOrPath(V,l,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.B._addEventListenerToNode=function(V,l,I){var H=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(V,l,function(x){x.model=H;I(x)});
else{var T=this.__dataHost.__dataHost;T&&T._addEventListenerToNode(V,l,I)}};
_.B._showHideChildren=function(V){IVt(V,this.children)};
_.B._setUnmanagedPropertyToNode=function(V,l,I){V.__hideTemplateChildren__&&V.nodeType==Node.TEXT_NODE&&l=="textContent"?V.__polymerTextContent__=I:$vv.prototype._setUnmanagedPropertyToNode.call(this,V,l,I)};
_.B.dispatchEvent=function(){return!0};
_.vI.Object.defineProperties(ZU.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var V=this.__parentModel;if(!V){var l;V=this;do V=V.__dataHost.__dataHost;while((l=V.__templatizeOptions)&&!l.parentModel);this.__parentModel=V}return V}}});
var Tl1=wQ(ZU);var jS=function(){var V=lc.call(this)||this;V.__renderDebouncer=null;V._lastIf=!1;V.__hideTemplateChildren__=!1;return V};
_.t(jS,lc);_.B=jS.prototype;_.B.__debounceRender=function(){var V=this;this.__renderDebouncer=_.nD(this.__renderDebouncer,oX,function(){return V.__render()});
_.$b(this.__renderDebouncer)};
_.B.disconnectedCallback=function(){lc.prototype.disconnectedCallback.call(this);var V=(0,_.KC)(this).parentNode;V&&(V.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.KC)(V).host)||this.__teardownInstance()};
_.B.connectedCallback=function(){lc.prototype.connectedCallback.call(this);mYt()||(this.style.display="none");this.if&&this.__debounceRender()};
_.B.__ensureTemplate=function(){var V=this;if(!this.__template){var l=this._templateInfo?this:(0,_.KC)(this).querySelector("template");if(!l){var I=new MutationObserver(function(){if((0,_.KC)(V).querySelector("template"))I.disconnect(),V.__render();else throw Error("Nd");});
I.observe(this,{childList:!0});return!1}this.__template=l}return!0};
_.B.__ensureInstance=function(){var V=(0,_.KC)(this).parentNode;if(this.__hasInstance()){var l=this.__getInstanceNodes();if(l&&l.length&&(0,_.KC)(this).previousSibling!==l[l.length-1])for(var I=0,H=void 0;I<l.length&&(H=l[I]);I++)(0,_.KC)(V).insertBefore(H,this)}else{if(!V||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(V)}return!0};
_.B.render=function(){_.KD()};
_.B.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Om&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.B.__hasInstance=function(){};
_.B.__getInstanceNodes=function(){};
_.B.__createAndInsertInstance=function(){};
_.B.__teardownInstance=function(){};
_.B._showHideChildren=function(){};
_.vI.Object.defineProperties(jS,{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:jS.prototype.__debounceRender},restamp:{type:Boolean,observer:jS.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var dvN=function(){var V=jS.call(this)||this;V.__instance=null;V.__syncInfo=null;return V};
_.t(dvN,jS);_.B=dvN.prototype;_.B.__hasInstance=function(){return!!this.__instance};
_.B.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.B.__createAndInsertInstance=function(V){var l=this,I=this.__dataHost||this;if(QW&&!this.__dataHost)throw Error("Ld");var H=I._bindTemplate(this.__template,!0);H.runEffects=function(T,x,n){var w=l.__syncInfo;if(l.if)w&&(l.__syncInfo=null,l._showHideChildren(),x=Object.assign(w.changedProps,x)),T(x,n);else if(l.__instance)if(w||(w=l.__syncInfo={runEffects:T,changedProps:{}}),n)for(var N in x)T=BI(N),w.changedProps[T]=l.__dataHost[T];else Object.assign(w.changedProps,x)};
this.__instance=I._stampTemplate(this.__template,H);(0,_.KC)(V).insertBefore(this.__instance,this)};
_.B.__syncHostProperties=function(){var V=this.__syncInfo;V&&(this.__syncInfo=null,V.runEffects(V.changedProps,!1))};
_.B.__teardownInstance=function(){var V=this.__dataHost||this;this.__instance&&(V._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.B._showHideChildren=function(){var V=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==V&&(this.__instance.__hidden=V,IVt(V,this.__instance.templateInfo.childNodes));V||this.__syncHostProperties()};
var wbW=function(){var V=jS.call(this)||this;V.__ctor=null;V.__instance=null;V.__invalidProps=null;return V};
_.t(wbW,jS);_.B=wbW.prototype;_.B.__hasInstance=function(){return!!this.__instance};
_.B.__getInstanceNodes=function(){return this.__instance.children};
_.B.__createAndInsertInstance=function(V){this.__ctor||(this.__ctor=Sh(this.__template,this,{mutableData:!0,forwardHostProp:function(l,I){this.__instance&&(this.if?this.__instance.forwardHostProp(l,I):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[BI(l)]=!0))}}));
this.__instance=new this.__ctor;(0,_.KC)(V).insertBefore(this.__instance.root,this)};
_.B.__teardownInstance=function(){if(this.__instance){var V=this.__instance.children;if(V&&V.length){var l=(0,_.KC)(V[0]).parentNode;if(l){l=(0,_.KC)(l);for(var I=0,H=void 0;I<V.length&&(H=V[I]);I++)l.removeChild(H)}}this.__instance=this.__invalidProps=null}};
_.B.__syncHostProperties=function(){var V=this.__invalidProps;if(V){this.__invalidProps=null;for(var l in V)this.__instance._setPendingProperty(l,this.__dataHost[l]);this.__instance._flushProperties()}};
_.B._showHideChildren=function(){var V=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==V&&(this.__instance.__hidden=V,this.__instance._showHideChildren(V));V||this.__syncHostProperties()};
_.j5=v6?dvN:wbW;customElements.define(_.j5.is,_.j5);Polymer.enqueueDebouncer=_.$b;Polymer.flush=_.KD;Polymer.Templatize={templatize:Sh,modelForElement:jtq};Polymer.TemplateInstanceBase=ZU;Polymer.DomIf=_.j5;var NPJ=UvJ(lc),Km=function(){var V=NPJ.call(this)||this;V.__instances=[];V.__renderDebouncer=null;V.__itemsIdxToInstIdx={};V.__chunkCount=null;V.__renderStartTime=null;V.__itemsArrayChanged=!1;V.__shouldMeasureChunk=!1;V.__shouldContinueChunking=!1;V.__chunkingId=0;V.__sortFn=null;V.__filterFn=null;V.__observePaths=null;V.__ctor=null;V.__isDetached=!0;V.template=null;return V};
_.t(Km,NPJ);_.B=Km.prototype;_.B.disconnectedCallback=function(){NPJ.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var V=0;V<this.__instances.length;V++)this.__detachInstance(V);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.B.connectedCallback=function(){NPJ.prototype.connectedCallback.call(this);mYt()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var V=(0,_.KC)((0,_.KC)(this).parentNode),l=0;l<this.__instances.length;l++)this.__attachInstance(l,V);this.__chunkingId&&this.__render()}};
_.B.__ensureTemplatized=function(){var V=this;if(!this.__ctor){var l=this.template=this._templateInfo?this:this.querySelector("template");if(!l){var I=new MutationObserver(function(){if(V.querySelector("template"))I.disconnect(),V.__render();else throw Error("Od");});
I.observe(this,{childList:!0});return!1}var H={};H[this.as]=!0;H[this.indexAs]=!0;H[this.itemsIndexAs]=!0;this.__ctor=Sh(l,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:H,forwardHostProp:function(T,x){for(var n=this.__instances,w=0,N=void 0;w<n.length&&(N=n[w]);w++)N.forwardHostProp(T,x)},
notifyInstanceProp:function(T,x,n){ZvJ(this.as,x)&&(T=T[this.itemsIndexAs],x==this.as&&(this.items[T]=n),x=nC(this.as,"items."+T,x),this.notifyPath(x,n))}})}return!0};
_.B.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.B.__functionFromPropertyValue=function(V){if(typeof V==="string"){var l=this.__getMethodHost();return function(){return l[V].apply(l,arguments)}}return V};
_.B.__sortChanged=function(V){this.__sortFn=this.__functionFromPropertyValue(V);this.items&&this.__debounceRender(this.__render)};
_.B.__filterChanged=function(V){this.__filterFn=this.__functionFromPropertyValue(V);this.items&&this.__debounceRender(this.__render)};
_.B.__computeFrameTime=function(V){return Math.ceil(1E3/V)};
_.B.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.B.__handleObservedPaths=function(V){if(this.__sortFn||this.__filterFn)if(!V)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var l=this.__observePaths,I=0;I<l.length;I++)V.indexOf(l[I])===0&&this.__debounceRender(this.__render,this.delay)};
_.B.__itemsChanged=function(V){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(V.path,V.value)||(V.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.B.__debounceRender=function(V,l){l=l===void 0?0:l;this.__renderDebouncer=_.nD(this.__renderDebouncer,l>0?_.fh.after(l):oX,V.bind(this));_.$b(this.__renderDebouncer)};
_.B.render=function(){this.__debounceRender(this.__render);_.KD()};
_.B.__render=function(){var V=this;if(this.__ensureTemplatized()){var l=this.items||[],I=this.__sortAndFilterItems(l),H=this.__calculateLimit(I.length);this.__updateInstances(l,H,I);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){V.__chunkingId=null;V.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Om&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.B.__sortAndFilterItems=function(V){for(var l=this,I=Array(V.length),H=0;H<V.length;H++)I[H]=H;this.__filterFn&&(I=I.filter(function(T,x,n){return l.__filterFn(V[T],x,n)}));
this.__sortFn&&I.sort(function(T,x){return l.__sortFn(V[T],V[x])});
return I};
_.B.__calculateLimit=function(V){var l=V,I=this.__instances.length;if(this.initialCount){var H;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(l=Math.min(V,this.initialCount),this.__chunkCount=(H=Math.max(l-I,0))||1):(H=Math.min(Math.max(V-I,0),this.__chunkCount),l=Math.min(I+H,V));this.__shouldMeasureChunk=H===this.__chunkCount;this.__shouldContinueChunking=l<V;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return l};
_.B.__continueChunking=function(){if(this.__shouldMeasureChunk){var V=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/V*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.B.__updateInstances=function(V,l,I){var H=this.__itemsIdxToInstIdx={},T;for(T=0;T<l;T++){var x=this.__instances[T],n=I[T],w=V[n];H[n]=T;x?(x._setPendingProperty(this.as,w),x._setPendingProperty(this.indexAs,T),x._setPendingProperty(this.itemsIndexAs,n),x._flushProperties()):this.__insertInstance(w,T,n)}for(V=this.__instances.length-1;V>=T;V--)this.__detachAndRemoveInstance(V)};
_.B.__detachInstance=function(V){V=this.__instances[V];for(var l=(0,_.KC)(V.root),I=0;I<V.children.length;I++)l.appendChild(V.children[I]);return V};
_.B.__attachInstance=function(V,l){l.insertBefore(this.__instances[V].root,this)};
_.B.__detachAndRemoveInstance=function(V){this.__detachInstance(V);this.__instances.splice(V,1)};
_.B.__stampInstance=function(V,l,I){var H={};H[this.as]=V;H[this.indexAs]=l;H[this.itemsIndexAs]=I;return new this.__ctor(H)};
_.B.__insertInstance=function(V,l,I){V=this.__stampInstance(V,l,I);I=(I=this.__instances[l+1])?I.children[0]:this;(0,_.KC)((0,_.KC)(this).parentNode).insertBefore(V.root,I);return this.__instances[l]=V};
_.B._showHideChildren=function(V){for(var l=0;l<this.__instances.length;l++)this.__instances[l]._showHideChildren(V)};
_.B.__handleItemPath=function(V,l){var I=V.slice(6),H=I.indexOf(".");V=H<0?I:I.substring(0,H);if(V==parseInt(V,10)){I=H<0?"":I.substring(H+1);this.__handleObservedPaths(I);if(V=this.__instances[this.__itemsIdxToInstIdx[V]])V._setPendingPropertyOrPath(this.as+(I?"."+I:""),l,!1,!0),V._flushProperties();return!0}};
_.B.itemForElement=function(V){return(V=this.modelForElement(V))&&V[this.as]};
_.B.indexForElement=function(V){return(V=this.modelForElement(V))&&V[this.indexAs]};
_.B.modelForElement=function(V){return jtq(this.template,V)};
_.vI.Object.defineProperties(Km,{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:Km.prototype.__sortChanged},filter:{type:Function,observer:Km.prototype.__filterChanged},observe:{type:String,observer:Km.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Om,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.*)"]}}});
Km.prototype._setRenderedItemCount=function(){};
customElements.define(Km.is,Km);Polymer.DomRepeat=Km;var KLw=function(V,l){var I=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=V;this.callback=l;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){I._schedule()};
this.connect();this._schedule()},jQE=function(V){var l=(0,_.KC)(V);
if(cI(V))return l.assignedNodes({flatten:!0});V=[];for(var I=0;I<l.childNodes.length;I++){var H=l.childNodes[I];cI(H)?V.push.apply(V,_.oI((0,_.KC)(H).assignedNodes({flatten:!0}))):V.push(H)}return V};
_.B=KLw.prototype;_.B.connect=function(){var V=this;cI(this._target)?this._listenSlots([this._target]):(0,_.KC)(this._target).children&&(this._listenSlots((0,_.KC)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(l){V._processMutations(l)}):(this._nativeChildrenObserver=new MutationObserver(function(l){V._processMutations(l)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.B.disconnect=function(){cI(this._target)?this._unlistenSlots([this._target]):(0,_.KC)(this._target).children&&(this._unlistenSlots((0,_.KC)(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};
_.B._schedule=function(){var V=this;this._scheduled||(this._scheduled=!0,oX.run(function(){return V.flush()}))};
_.B._processMutations=function(V){this._processSlotMutations(V);this.flush()};
_.B._processSlotMutations=function(V){if(V)for(var l=0;l<V.length;l++){var I=V[l];I.addedNodes&&this._listenSlots(I.addedNodes);I.removedNodes&&this._unlistenSlots(I.removedNodes)}};
_.B.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 V={target:this._target,addedNodes:[],removedNodes:[]},l=jQE(this._target),I=KSg(l,this._effectiveNodes),H=0,T=void 0;H<I.length&&(T=I[H]);H++)for(var x=0,n=void 0;x<T.removed.length&&(n=T.removed[x]);x++)V.removedNodes.push(n);
H=0;for(T=void 0;H<I.length&&(T=I[H]);H++)for(x=T.index;x<T.index+T.addedCount;x++)V.addedNodes.push(l[x]);this._effectiveNodes=l;l=!1;if(V.addedNodes.length||V.removedNodes.length)l=!0,this.callback.call(this._target,V);return l};
_.B._listenSlots=function(V){for(var l=0;l<V.length;l++){var I=V[l];cI(I)&&I.addEventListener("slotchange",this._boundSchedule)}};
_.B._unlistenSlots=function(V){for(var l=0;l<V.length;l++){var I=V[l];cI(I)&&I.removeEventListener("slotchange",this._boundSchedule)}};var Yb=Element.prototype,YzN=Yb.matches||Yb.matchesSelector||Yb.mozMatchesSelector||Yb.msMatchesSelector||Yb.oMatchesSelector||Yb.webkitMatchesSelector,LLJ=function(V,l){return YzN.call(V,l)},WI=function(V){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(V);
this.node=V},Xb0;
_.B=WI.prototype;_.B.observeNodes=function(V){return new KLw(this.node,V)};
_.B.unobserveNodes=function(V){V.disconnect()};
_.B.notifyObserver=function(){};
_.B.deepContains=function(V){if((0,_.KC)(this.node).contains(V))return!0;var l=V;for(V=V.ownerDocument;l&&l!==V&&l!==this.node;)l=(0,_.KC)(l).parentNode||(0,_.KC)(l).host;return l===this.node};
_.B.getOwnerRoot=function(){return(0,_.KC)(this.node).getRootNode()};
_.B.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.KC)(this.node).assignedNodes({flatten:!0}):[]};
_.B.getDestinationInsertionPoints=function(){for(var V=[],l=(0,_.KC)(this.node).assignedSlot;l;)V.push(l),l=(0,_.KC)(l).assignedSlot;return V};
_.B.importNode=function(V,l){return(0,_.KC)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(V,l)};
_.B.getEffectiveChildNodes=function(){return jQE(this.node)};
_.B.queryDistributedElements=function(V){for(var l=this.getEffectiveChildNodes(),I=[],H=0,T=l.length,x=void 0;H<T&&(x=l[H]);H++)x.nodeType===Node.ELEMENT_NODE&&LLJ(x,V)&&I.push(x);return I};
_.vI.Object.defineProperties(WI.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var V=this.node;return V._activeElement!==void 0?V._activeElement:V.activeElement}}});
var LD=function(V){this.event=V};
_.vI.Object.defineProperties(LD.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 erv=WI;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var kRW=window.ShadyDOM.Wrapper,FLo=function(){return kRW.apply(this,arguments)||this};
_.t(FLo,kRW);Object.getOwnPropertyNames(WI.prototype).forEach(function(V){V!="activeElement"&&V!="constructor"&&(FLo.prototype[V]=WI.prototype[V])});
LMt(FLo.prototype,["classList"]);erv=FLo;Object.defineProperties(LD.prototype,{localTarget:{get:function(){var V=this.event.currentTarget;V=V&&_.Xb(V).getOwnerRoot();for(var l=this.path,I=0;I<l.length;I++){var H=l[I];if(_.Xb(H).getOwnerRoot()===V)return H}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Yk3(),LMt(WI.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),ef1();Xb0=erv;_.Xb=function(V){V=V||document;if(V instanceof erv)return V;if(V instanceof LD)return V;var l=V.__domApi;l||(V instanceof Event?l=new LD(V):l=new erv(V),V.__domApi=l);return l};var zr0=/:host\(:dir\((ltr|rtl)\)\)/g,yvW=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,tD3=/:dir\((?:ltr|rtl)\)/,rv0=!(!window.ShadyDOM||!window.ShadyDOM.inUse),qK=[],eS=null,bg="",GRi=g3(function(V){rv0||eS||(bg=document.documentElement.getAttribute("dir"),eS=new MutationObserver(kpq),eS.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var l=PBW(V);V=function(){var I=l.call(this)||this;I.__autoDirOptOut=!1;return I};
_.t(V,l);V._processStyleText=function(I,H){I=l._processStyleText.call(this,I,H);!rv0&&tD3.test(I)&&(I=this._replaceDirInCssText(I),this.__activateDir=!0);return I};
V._replaceDirInCssText=function(I){I=I.replace(zr0,':host([dir="$1"])');return I=I.replace(yvW,':host([dir="$2"]) $1')};
V.prototype.ready=function(){l.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
V.prototype.connectedCallback=function(){l.prototype.connectedCallback&&l.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(eS&&eS.takeRecords().length&&kpq(),qK.push(this),this.__autoDirOptOut||this.setAttribute("dir",bg))};
V.prototype.disconnectedCallback=function(){l.prototype.disconnectedCallback&&l.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var I=qK.indexOf(this);I>-1&&qK.splice(I,1)}};
V.__activateDir=!1;return V});var EVE=function(V){for(;V;){var l=Object.getOwnPropertyDescriptor(V,"observedAttributes");if(l)return l.get;V=Object.getPrototypeOf(V.prototype).constructor}return function(){return[]}};
g3(function(V){var l=VA(V),I=EVE(l);V=function(){return l.call(this)||this};
_.t(V,l);V.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:l.prototype._initializeProperties.call(this)};
V.prototype._enableProperties=function(){this.__isUpgradeDisabled||l.prototype._enableProperties.call(this)};
V.prototype._canApplyPropertyDefault=function(H){return l.prototype._canApplyPropertyDefault.call(this,H)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(H))};
V.prototype.attributeChangedCallback=function(H,T,x,n){H=="disable-upgrade"?this.__isUpgradeDisabled&&x==null&&(l.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.KC)(this).isConnected&&l.prototype.connectedCallback.call(this)):l.prototype.attributeChangedCallback.call(this,H,T,x,n)};
V.prototype.connectedCallback=function(){this.__isUpgradeDisabled||l.prototype.connectedCallback.call(this)};
V.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||l.prototype.disconnectedCallback.call(this)};
_.vI.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I.call(this).concat("disable-upgrade")}}});
return V});var MK=!1,Xn1=[],pC=[];var r3y=window.ShadyDOM,Gpw=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",J31):document.readyState==="interactive"||document.readyState==="complete"?J31():window.addEventListener("DOMContentLoaded",J31);var PQW=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=""},ovK=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,hf1=/@import[^;]*;/gim,c3J=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,WMy=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,bjW=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,qkW=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Rf1=/^@[^\s]*keyframes/,
SkK=/\s+/g;var Mat={};var A3f=Promise.resolve();var Jvw=new Set;var oVJ=/;\s*/m,hrJ=/^\s*(initial)|(inherit)\s*$/,P3v=/\s*!important/,DvB=function(){this._map={}};
DvB.prototype.set=function(V,l){V=V.trim();this._map[V]={properties:l,dependants:{}}};
DvB.prototype.get=function(V){V=V.trim();return this._map[V]||null};
var ZYi=null,kb=function(){this._measureElement=this._currentElement=null;this._map=new DvB};
_.B=kb.prototype;_.B.detectMixin=function(V){V=awW.test(V)||CBW.test(V);awW.lastIndex=0;CBW.lastIndex=0;return V};
_.B.transformTemplate=function(V,l){if(V._gatheredStyle===void 0){var I=[];for(var H=V.content.querySelectorAll("style"),T=0;T<H.length;T++){var x=H[T];if(x.hasAttribute("shady-unscoped")){if(!t73){var n=x.textContent;if(!Jvw.has(n)){Jvw.add(n);var w=document.createElement("style");w.setAttribute("shady-unscoped","");w.textContent=n;document.head.appendChild(w)}x.parentNode.removeChild(x)}}else I.push(x.textContent),x.parentNode.removeChild(x)}(I=I.join("").trim())?(H=document.createElement("style"),
H.textContent=I,V.content.insertBefore(H,V.content.firstChild),I=H):I=null;V._gatheredStyle=I}return(V=V._gatheredStyle)?this.JSC$9026_transformStyle(V,l):null};
_.B.JSC$9026_transformStyle=function(V,l){l=l===void 0?"":l;var I=CQ1(V);this.transformRules(I,l);V.textContent=Oj1(I);return I};
_.B.transformCustomStyle=function(V){var l=this,I=CQ1(V);fVt(I,function(H){H.selector===":root"&&(H.selector="html");l.transformRule(H)});
V.textContent=Oj1(I);return I};
_.B.transformRules=function(V,l){var I=this;this._currentElement=l;fVt(V,function(H){I.transformRule(H)});
this._currentElement=null};
_.B.transformRule=function(V){V.cssText=Sz3(this,V.parsedCssText,V);V.selector===":root"&&(V.selector=":host > *")};
var Sz3=function(V,l,I){l=l.replace(CBW,function(H,T,x,n){return V._produceCssProperties(H,T,x,n,I)});
return V._consumeCssProperties(l,I)};
_.B=kb.prototype;_.B._getInitialValueForProperty=function(V){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(V)};
_.B._fallbacksFromPreviousRules=function(V){for(var l=this,I=V;I.parent;)I=I.parent;var H={},T=!1;fVt(I,function(x){(T=T||x===V)||x.selector===V.selector&&Object.assign(H,l._cssTextToMap(x.parsedCssText))});
return H};
_.B._consumeCssProperties=function(V,l){for(var I;I=awW.exec(V);){var H=I[0],T=I[1];I=I.index;var x=I+H.indexOf("@apply"),n=I+H.length;H=V.slice(0,x);V=V.slice(n);x=l?this._fallbacksFromPreviousRules(l):{};Object.assign(x,this._cssTextToMap(H));T=this._atApplyToCssProperties(T,x);V=H+T+V;awW.lastIndex=I+T.length}return V};
_.B._atApplyToCssProperties=function(V,l){V=V.replace(oVJ,"");var I=[],H=this._map.get(V);H||(this._map.set(V,{}),H=this._map.get(V));if(H){this._currentElement&&(H.dependants[this._currentElement]=!0);var T,x=H.properties;for(T in x){var n=l&&l[T];H=[T,": var(",V,"_-_",T];n&&H.push(",",n.replace(P3v,""));H.push(")");P3v.test(x[T])&&H.push(" !important");I.push(H.join(""))}}return I.join("; ")};
_.B._replaceInitialOrInherit=function(V,l){var I=hrJ.exec(l);I&&(l=I[1]?this._getInitialValueForProperty(V):"apply-shim-inherit");return l};
_.B._cssTextToMap=function(V,l){l=l===void 0?!1:l;V=V.split(";");for(var I,H,T={},x=0;x<V.length;x++)if(I=V[x])H=I.split(":"),H.length>1&&(I=H[0].trim(),H=H.slice(1).join(":"),l&&(H=this._replaceInitialOrInherit(I,H)),T[I]=H);return T};
_.B._invalidateMixinEntry=function(V){if(ZYi)for(var l in V.dependants)l!==this._currentElement&&ZYi(l)};
_.B._produceCssProperties=function(V,l,I,H,T){var x=this;I&&gvt(I,function(E,D){D&&x._map.get(D)&&(H="@apply "+D+";")});
if(!H)return V;var n=this._consumeCssProperties(""+H,T);T=V.slice(0,V.indexOf("--"));var w=n=this._cssTextToMap(n,!0),N=this._map.get(l),L=N&&N.properties;L?w=Object.assign(Object.create(L),n):this._map.set(l,w);var e=[],k,X=!1;for(k in w){var r=n[k];r===void 0&&(r="initial");!L||k in L||(X=!0);e.push(l+"_-_"+k+": "+r)}X&&this._invalidateMixinEntry(N);N&&(N.properties=w);I&&(T=V+";"+T);return T+e.join("; ")+";"};
kb.prototype.detectMixin=kb.prototype.detectMixin;kb.prototype.transformStyle=kb.prototype.JSC$9026_transformStyle;kb.prototype.transformCustomStyle=kb.prototype.transformCustomStyle;kb.prototype.transformRules=kb.prototype.transformRules;kb.prototype.transformRule=kb.prototype.transformRule;kb.prototype.transformTemplate=kb.prototype.transformTemplate;kb.prototype._separator="_-_";Object.defineProperty(kb.prototype,"invalidCallback",{get:function(){return ZYi},
set:function(V){ZYi=V}});var F5=new kb,RrB=function(){this.customStyleInterface=null;F5.invalidCallback=stN},X5=function(V){!V.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(V.customStyleInterface=window.ShadyCSS.CustomStyleInterface,V.customStyleInterface.transformCallback=function(l){F5.transformCustomStyle(l)},V.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){V.customStyleInterface.enqueued&&V.flushCustomStyles()})})};
_.B=RrB.prototype;_.B.prepareTemplate=function(V,l){X5(this);mUt(V)===""&&(Mat[l]=V,l=F5.transformTemplate(V,l),V._styleAst=l)};
_.B.flushCustomStyles=function(){X5(this);if(this.customStyleInterface){var V=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var l=0;l<V.length;l++){var I=this.customStyleInterface.getStyleForCustomStyle(V[l]);I&&F5.transformCustomStyle(I)}this.customStyleInterface.enqueued=!1}}};
_.B.styleSubtree=function(V,l){X5(this);l&&LSg(V,l);if(V.shadowRoot)for(this.styleElement(V),V=V.shadowRoot.children||V.shadowRoot.childNodes,l=0;l<V.length;l++)this.styleSubtree(V[l]);else for(V=V.children||V.childNodes,l=0;l<V.length;l++)this.styleSubtree(V[l])};
_.B.styleElement=function(V){X5(this);var l=V.localName,I;l?l.indexOf("-")>-1?I=l:I=V.getAttribute&&V.getAttribute("is")||"":I=V.is;l=Mat[I];if(!(l&&mUt(l)!==""||!l||pnN(l))){if(pnN(l)||l._applyShimValidatingVersion!==l._applyShimNextVersion)this.prepareTemplate(l,I),urf(l);if(V=V.shadowRoot)if(V=V.querySelector("style"))V.__cssRules=l._styleAst,V.textContent=Oj1(l._styleAst)}};
_.B.styleDocument=function(V){X5(this);this.styleSubtree(document.body,V)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var zm=new RrB,QQB=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(V,l){zm.flushCustomStyles();zm.prepareTemplate(V,l)},
prepareTemplateStyles:function(V,l,I){window.ShadyCSS.prepareTemplate(V,l,I)},
prepareTemplateDom:function(){},
styleSubtree:function(V,l){zm.flushCustomStyles();zm.styleSubtree(V,l)},
styleElement:function(V){zm.flushCustomStyles();zm.styleElement(V)},
styleDocument:function(V){zm.flushCustomStyles();zm.styleDocument(V)},
getComputedStyleValue:function(V,l){return ejt(V,l)},
flushCustomStyles:function(){zm.flushCustomStyles()},
nativeCss:vv1,nativeShadow:t73,cssBuild:ug,disableRuntime:mra};QQB&&(window.ShadyCSS.CustomStyleInterface=QQB)}window.ShadyCSS.ApplyShim=F5;var cv0;cv0=window.ShadyCSS;_.yA=g3(function(V){V=xvo(VA(V));var l=Msi?V:GRi(V),I=EVE(l),H={x:"pan-x",y:"pan-y",none:"none",all:"auto"};V=function(){return l.call(this)||this};
_.t(V,l);V.prototype.created=function(){};
V.prototype.__attributeReaction=function(T,x,n){(this.__dataAttributes&&this.__dataAttributes[T]||T==="disable-upgrade")&&this.attributeChangedCallback(T,x,n,null)};
V.prototype.setAttribute=function(T,x){if(jAW&&!this._legacyForceObservedAttributes){var n=this.getAttribute(T);l.prototype.setAttribute.call(this,T,x);this.__attributeReaction(T,n,String(x))}else l.prototype.setAttribute.call(this,T,x)};
V.prototype.removeAttribute=function(T){if(jAW&&!this._legacyForceObservedAttributes){var x=this.getAttribute(T);l.prototype.removeAttribute.call(this,T);this.__attributeReaction(T,x,null)}else l.prototype.removeAttribute.call(this,T)};
V.prototype._enableProperties=function(){this.__isUpgradeDisabled||l.prototype._enableProperties.call(this)};
V.prototype._canApplyPropertyDefault=function(T){return l.prototype._canApplyPropertyDefault.call(this,T)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(T))};
V.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(l.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
V.prototype.attached=function(){};
V.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(l.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
V.prototype.detached=function(){};
V.prototype.attributeChangedCallback=function(T,x,n,w){x!==n&&(T=="disable-upgrade"?this.__isUpgradeDisabled&&n==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.KC)(this).isConnected&&this.connectedCallback()):(l.prototype.attributeChangedCallback.call(this,T,x,n,w),this.attributeChanged(T,x,n)))};
V.prototype.attributeChanged=function(){};
V.prototype._initializeProperties=function(){if(PI&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var T=Object.getPrototypeOf(this);T.hasOwnProperty("__hasRegisterFinished")||(this._registered(),T.__hasRegisterFinished=!0);l.prototype._initializeProperties.call(this);this.root=this;this.created();jAW&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
V.prototype._takeAttributes=function(){for(var T=this.attributes,x=0,n=T.length;x<n;x++){var w=T[x];this.__attributeReaction(w.name,null,w.value)}};
V.prototype._registered=function(){};
V.prototype.ready=function(){this._ensureAttributes();l.prototype.ready.call(this)};
V.prototype._ensureAttributes=function(){};
V.prototype._applyListeners=function(){};
V.prototype.serialize=function(T){return this._serializeValue(T)};
V.prototype.deserialize=function(T,x){return this._deserializeValue(T,x)};
V.prototype.reflectPropertyToAttribute=function(T,x,n){this._propertyToAttribute(T,x,n)};
V.prototype.serializeValueToAttribute=function(T,x,n){this._valueToNodeAttribute(n||this,T,x)};
V.prototype.extend=function(T,x){if(!T||!x)return T||x;for(var n=Object.getOwnPropertyNames(x),w=0,N=void 0;w<n.length&&(N=n[w]);w++){var L=Object.getOwnPropertyDescriptor(x,N);L&&Object.defineProperty(T,N,L)}return T};
V.prototype.mixin=function(T,x){for(var n in x)T[n]=x[n];return T};
V.prototype.chainObject=function(T,x){T&&x&&T!==x&&(T.__proto__=x);return T};
V.prototype.instanceTemplate=function(T){T=this.constructor._contentForTemplate(T);return document.importNode(T,!0)};
V.prototype.fire=function(T,x,n){n=n||{};x=x===null||x===void 0?{}:x;T=new Event(T,{bubbles:n.bubbles===void 0?!0:n.bubbles,cancelable:!!n.cancelable,composed:n.composed===void 0?!0:n.composed});T.detail=x;(0,_.KC)(n.node||this).dispatchEvent(T);return T};
V.prototype.listen=function(T,x,n){T=T||this;var w=this.__boundListeners||(this.__boundListeners=new WeakMap),N=w.get(T);N||(N={},w.set(T,N));w=x+n;N[w]||(N[w]=this._addMethodEventListenerToNode(T,x,n,this))};
V.prototype.unlisten=function(T,x,n){T=T||this;var w=this.__boundListeners&&this.__boundListeners.get(T);n=x+n;var N=w&&w[n];N&&(this._removeEventListenerFromNode(T,x,N),w[n]=null)};
V.prototype.setScrollDirection=function(T,x){_.Jl(x||this,H[T]||"auto")};
V.prototype.$$=function(T){return this.root.querySelector(T)};
V.prototype.distributeContent=function(){var T=_.Xb(this);window.ShadyDOM&&T.shadowRoot&&ShadyDOM.flush()};
V.prototype.getEffectiveChildNodes=function(){return _.Xb(this).getEffectiveChildNodes()};
V.prototype.queryDistributedElements=function(T){return _.Xb(this).queryDistributedElements(T)};
V.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(T){return T.nodeType===Node.ELEMENT_NODE})};
V.prototype.getEffectiveTextContent=function(){for(var T=this.getEffectiveChildNodes(),x=[],n=0,w;w=T[n];n++)w.nodeType!==Node.COMMENT_NODE&&x.push(w.textContent);return x.join("")};
V.prototype.queryEffectiveChildren=function(T){return(T=this.queryDistributedElements(T))&&T[0]};
V.prototype.queryAllEffectiveChildren=function(T){return this.queryDistributedElements(T)};
V.prototype.getContentChildNodes=function(T){return(T=this.root.querySelector(T||"slot"))?_.Xb(T).getDistributedNodes():[]};
V.prototype.getContentChildren=function(T){return this.getContentChildNodes(T).filter(function(x){return x.nodeType===Node.ELEMENT_NODE})};
V.prototype.isLightDescendant=function(T){return this!==T&&(0,_.KC)(this).contains(T)&&(0,_.KC)(this).getRootNode()===(0,_.KC)(T).getRootNode()};
V.prototype.isLocalDescendant=function(T){return this.root===(0,_.KC)(T).getRootNode()};
V.prototype.scopeSubtree=function(T,x){return Ev1(T,x===void 0?!1:x)};
V.prototype.getComputedStyleValue=function(T){return cv0.getComputedStyleValue(this,T)};
V.prototype.debounce=function(T,x,n){this._debouncers=this._debouncers||{};return this._debouncers[T]=_.nD(this._debouncers[T],n>0?_.fh.after(n):oX,x.bind(this))};
V.prototype.isDebouncerActive=function(T){this._debouncers=this._debouncers||{};T=this._debouncers[T];return!(!T||!T.isActive())};
V.prototype.flushDebouncer=function(T){this._debouncers=this._debouncers||{};(T=this._debouncers[T])&&T.flush()};
V.prototype.cancelDebouncer=function(T){this._debouncers=this._debouncers||{};(T=this._debouncers[T])&&T.cancel()};
V.prototype.async=function(T,x){return x>0?_.fh.run(T.bind(this),x):~oX.run(T.bind(this))};
V.prototype.cancelAsync=function(T){T<0?oX.cancel(~T):_.fh.cancel(T)};
V.prototype.create=function(T,x){T=document.createElement(T);if(x)if(T.setProperties)T.setProperties(x);else for(var n in x)T[n]=x[n];return T};
V.prototype.elementMatches=function(T,x){return LLJ(x||this,T)};
V.prototype.toggleAttribute=function(T,x){var n=this;arguments.length===3&&(n=arguments[2]);arguments.length==1&&(x=!n.hasAttribute(T));if(x)return(0,_.KC)(n).setAttribute(T,""),!0;(0,_.KC)(n).removeAttribute(T);return!1};
V.prototype.toggleClass=function(T,x,n){n=n||this;arguments.length==1&&(x=!n.classList.contains(T));x?n.classList.add(T):n.classList.remove(T)};
V.prototype.transform=function(T,x){x=x||this;x.style.webkitTransform=T;x.style.transform=T};
V.prototype.translate3d=function(T,x,n,w){this.transform("translate3d("+T+","+x+","+n+")",w||this)};
V.prototype.arrayDelete=function(T,x){if(Array.isArray(T)){if(x=T.indexOf(x),x>=0)return T.splice(x,1)}else if(x=du(this,T).indexOf(x),x>=0)return this.splice(T,x,1);return null};
V.prototype._logger=function(T,x){Array.isArray(x)&&x.length===1&&Array.isArray(x[0])&&(x=x[0]);switch(T){case "log":case "warn":case "error":console[T].apply(console,_.oI(x))}};
V.prototype._log=function(){this._logger("log",_.Q5.apply(0,arguments))};
V.prototype._warn=function(){this._logger("warn",_.Q5.apply(0,arguments))};
V.prototype._error=function(){this._logger("error",_.Q5.apply(0,arguments))};
V.prototype._logf=function(T){return["[%s::%s]",this.is,T].concat(_.oI(_.Q5.apply(1,arguments)))};
_.vI.Object.defineProperties(V.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var T=(0,_.KC)(this).getRootNode();return T instanceof DocumentFragment?T.host:T}}});
_.vI.Object.defineProperties(V,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return jAW&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],GKK(this.prototype)),this.__observedAttributes):I.call(this).concat("disable-upgrade")}}});
V.prototype.is="";return V});Polymer.FlattenedNodesObserver=KLw;Polymer.DomApi=Xb0;Polymer.EventApi=LD;Polymer.dom=_.Xb;Polymer.dom.matchesSelector=LLJ;Polymer.dom.flush=_.KD;Polymer.dom.addDebouncer=_.$b;Polymer.DirMixin=GRi;Polymer.RenderStatus={beforeNextRender:_.ta1,afterNextRender:_.Al,flush:function(){for(;Xn1.length||pC.length;)FMt(Xn1),FMt(pC);MK=!1}};Polymer.LegacyElementMixin=_.yA;var WLb;WLb=wQ._mutablePropertyChange;var bYb={properties:{mutableData:Boolean},_shouldPropertyChange:function(V,l,I){return WLb(this,V,l,I,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(V,l,I){return WLb(this,V,l,I,!0)}};
Polymer.OptionalMutableDataBehavior=bYb;var ij1={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},TUc={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Huw=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},TUc),qz0=(0,_.yA)(HTMLElement),KnK=function(V,l){V||console.warn("Polymer.Class requires `info` argument");l=l?l(qz0):qz0;l=BUW(V,l,V.behaviors);l.is=l.prototype.is=
V.is;return l};Polymer.Class=KnK;Polymer.mixinBehaviors=function(V,l){return BUW({},(0,_.yA)(l),V)};
Polymer.GenerateClassFromInfo=BUW;_.Ne=function(V){var l=typeof V==="function"?V:_.Ne.Class(V);V._legacyForceObservedAttributes&&(l.prototype._legacyForceObservedAttributes=V._legacyForceObservedAttributes);customElements.define(l.is,l);return l};
_.Ne.Class=KnK;Polymer._polymerFn=_.Ne;var MDa=window.onLegacyPolymerFunctionDefinedCallback;MDa&&MDa();var Y6T={templatize:function(V,l){this._templatizerTemplate=V;this.ctor=Sh(V,this,{mutableData:!!l,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(V){return new this.ctor(V)},
modelForElement:function(V){return jtq(this._templatizerTemplate,V)}};Polymer.Templatizer=Y6T;_.tz=(0,_.yA)(HTMLElement).prototype;Polymer.Base=_.tz;var UaJ=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Ow=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.t(_.Ow,PolymerFakeBaseClass);var CC=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.t(CC,PolymerFakeBaseClass);var nDf=Symbol("Pd"),LJt=[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 sQ3=sQ3||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},pb3;(function(V){function l(C,By,lN){var wW=Vf.get(C);if(!wW){if(!lN)return;wW=new S;Vf.set(C,wW)}C=wW.get(By);if(!C){if(!lN)return;C=new S;wW.set(By,C)}return C}
function I(C,By,lN){if(H(C,By,lN))return!0;By=X(By);return By!==null?I(C,By,lN):!1}
function H(C,By,lN){By=l(By,lN,!1);return By===void 0?!1:!!By.has(C)}
function T(C,By,lN){if(H(C,By,lN))return x(C,By,lN);By=X(By);if(By!==null)return T(C,By,lN)}
function x(C,By,lN){By=l(By,lN,!1);if(By!==void 0)return By.get(C)}
function n(C,By){var lN=w(C,By);C=X(C);if(C===null)return lN;var wW=n(C,By);if(wW.length<=0)return lN;if(lN.length<=0)return wW;By=new p;C=[];lN=_.U(lN);for(var o1=lN.next();!o1.done;o1=lN.next())o1=o1.value,By.has(o1)||(By.add(o1),C.push(o1));lN=_.U(wW);for(wW=lN.next();!wW.done;wW=lN.next())wW=wW.value,By.has(wW)||(By.add(wW),C.push(wW));return C}
function w(C,By){C=l(C,By,!1);var lN=[];C&&C.forEach(function(wW,o1){return lN.push(o1)});
return lN}
function N(C){return C===void 0}
function L(C){return typeof C==="object"?C!==null:typeof C==="function"}
function e(C){return typeof C==="function"}
function k(C){return typeof C==="symbol"?C:String(C)}
function X(C){var By=Object.getPrototypeOf(C);if(typeof C!=="function"||C===Z||By!==Z)return By;var lN=Object.getPrototypeOf(C.prototype);if(lN==null||lN===Object.prototype)return By;lN=lN.constructor;return typeof lN!=="function"||lN===C?By:lN}
function r(){function C(){this._keys=[];this._values=[];this._cache=By}
var By={};C.prototype={get size(){return this._keys.length},has:function(lN){return lN===this._cache?!0:this._find(lN)>=0?(this._cache=lN,!0):!1},
get:function(lN){var wW=this._find(lN);if(wW>=0)return this._cache=lN,this._values[wW]},
set:function(lN,wW){this.delete(lN);this._keys.push(lN);this._values.push(wW);this._cache=lN;return this},
delete:function(lN){lN=this._find(lN);return lN>=0?(this._keys.splice(lN,1),this._values.splice(lN,1),this._cache=By,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=By},
forEach:function(lN){for(var wW=this.size,o1=0;o1<wW;++o1){var h1=this._keys[o1],ec=this._values[o1];this._cache=h1;lN.call(this,ec,h1,this)}},
_find:function(lN){for(var wW=this._keys,o1=wW.length,h1=0;h1<o1;++h1)if(wW[h1]===lN)return h1;return-1}};
return C}
function E(){function C(){this._map=new S}
C.prototype={get size(){return this._map.length},has:function(By){return this._map.has(By)},
add:function(By){this._map.set(By,By);return this},
delete:function(By){return this._map.delete(By)},
clear:function(){this._map.clear()},
forEach:function(By,lN){this._map.forEach(By,lN)}};
return C}
function D(){function C(){this._key=lN()}
function By(Va,wb){for(var CK=0;CK<wb;++CK)Va[CK]=Math.random()*255|0}
function lN(){do{if(o1)var Va=o1.randomBytes(16);else typeof Uint8Array==="function"?(Va=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Va):By(Va,16)):(Va=Array(16),By(Va,16));Va[6]=Va[6]&79|64;Va[8]=Va[8]&191|128;for(var wb="",CK=0;CK<16;++CK){var CZ=Va[CK];if(CK===4||CK===6||CK===8)wb+="-";CZ<16&&(wb+="0");wb+=CZ.toString(16).toLowerCase()}Va="@@WeakMap@@"+wb}while(h1.call(ec,Va));ec[Va]=!0;return Va}
function wW(Va,wb){if(!h1.call(Va,Zg)){if(!wb)return;Object.defineProperty(Va,Zg,{value:Object.create(null)})}return Va[Zg]}
var o1=typeof global!=="undefined"&&typeof sQ3==="object"&&typeof require==="function"&&require("crypto"),h1=Object.prototype.hasOwnProperty,ec={},Zg=lN();C.prototype={has:function(Va){return(Va=wW(Va,!1))?this._key in Va:!1},
get:function(Va){if(Va=wW(Va,!1))return Va[this._key]},
set:function(Va,wb){wW(Va,!0)[this._key]=wb;return this},
delete:function(Va){return(Va=wW(Va,!1))&&this._key in Va?delete Va[this._key]:!1},
clear:function(){this._key=lN()}};
return C}
var Z=Object.getPrototypeOf(Function),S=typeof Map==="function"?Map:r(),p=typeof Set==="function"?Set:E(),Vf=new (typeof WeakMap==="function"?WeakMap:D());V.decorate=function(C,By,lN,wW){if(N(wW)){if(N(lN)){if(!Array.isArray(C))throw new TypeError;if(!e(By))throw new TypeError;for(lN=C.length-1;lN>=0;--lN)if(wW=(0,C[lN])(By),!N(wW)){if(!e(wW))throw new TypeError;By=wW}return By}if(!Array.isArray(C))throw new TypeError;if(!L(By))throw new TypeError;lN=k(lN);for(wW=C.length-1;wW>=0;--wW)(0,C[wW])(By,
lN)}else{if(Array.isArray(C))if(L(By)){if(N(lN))throw new TypeError;if(!L(wW))throw new TypeError;}else throw new TypeError;else throw new TypeError;lN=k(lN);for(var o1=C.length-1;o1>=0;--o1){var h1=(0,C[o1])(By,lN,wW);if(!N(h1)){if(!L(h1))throw new TypeError;wW=h1}}return wW}};
V.metadata=function(C,By){return function(lN,wW){if(N(wW)){if(!e(lN))throw new TypeError;l(lN,void 0,!0).set(C,By)}else{if(!L(lN))throw new TypeError;wW=k(wW);l(lN,wW,!0).set(C,By)}}};
V.defineMetadata=function(C,By){var lN;if(L(By))N(lN)||(lN=k(lN));else throw new TypeError;l(By,lN,!0).set("parameters",C)};
V.hasMetadata=function(C,By,lN){if(L(By))N(lN)||(lN=k(lN));else throw new TypeError;return I(C,By,lN)};
V.hasOwnMetadata=function(C,By,lN){if(L(By))N(lN)||(lN=k(lN));else throw new TypeError;return H(C,By,lN)};
V.getMetadata=function(C,By,lN){if(L(By))N(lN)||(lN=k(lN));else throw new TypeError;return T(C,By,lN)};
V.getOwnMetadata=function(C,By,lN){if(L(By))N(lN)||(lN=k(lN));else throw new TypeError;return x(C,By,lN)};
V.getMetadataKeys=function(C,By){if(L(C))N(By)||(By=k(By));else throw new TypeError;return n(C,By)};
V.getOwnMetadataKeys=function(C,By){if(L(C))N(By)||(By=k(By));else throw new TypeError;return w(C,By)};
V.deleteMetadata=function(C,By,lN){if(L(By))N(lN)||(lN=k(lN));else throw new TypeError;var wW=l(By,lN,!1);if(!N(wW)){if(!wW.delete(C))return!1;if(wW.size>0)return!0;C=Vf.get(By);C.delete(lN);if(C.size>0)return!0;Vf.delete(By);return!0}};
(function(C){if(typeof C.Reflect!=="undefined"){if(C.Reflect!==V)for(var By in V)C.Reflect[By]=V[By]}else C.Reflect=V})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(pb3||(pb3={}));var MEt=self;var Ava=[0,_.Cj,_.fj,_.Cj];var uMw=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(uMw,_.mV);var vVJ=_.nd(uMw,[0,_.Vcv,_.gl,Ava,_.fj,_.iQ]);_.Uk(_.aX,_.XG);_.B=_.aX.prototype;_.B.start=function(){this.stop();this.usingListeners_=!1;var V=OYa(this),l=C3b(this);V&&!l&&this.JSC$9069_win_.mozRequestAnimationFrame?(this.JSC$9069_id_=_.NR(this.JSC$9069_win_,"MozBeforePaint",this.callback_),this.JSC$9069_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9069_id_=V&&l?V.call(this.JSC$9069_win_,this.callback_):this.JSC$9069_win_.setTimeout(Bgb(this.callback_),20)};
_.B.stop=function(){if(this.isActive()){var V=OYa(this),l=C3b(this);V&&!l&&this.JSC$9069_win_.mozRequestAnimationFrame?$7(this.JSC$9069_id_):V&&l?l.call(this.JSC$9069_win_,this.JSC$9069_id_):this.JSC$9069_win_.clearTimeout(this.JSC$9069_id_)}this.JSC$9069_id_=null};
_.B.fire=function(){this.stop();this.JSC$9071_doAction_()};
_.B.isActive=function(){return this.JSC$9069_id_!=null};
_.B.JSC$9071_doAction_=function(){this.usingListeners_&&this.JSC$9069_id_&&$7(this.JSC$9069_id_);this.JSC$9069_id_=null;this.JSC$9069_listener_.call(this.handler_,_.xv())};
_.B.disposeInternal=function(){this.stop();_.aX.superClass_.disposeInternal.call(this)};
var OYa=function(V){V=V.JSC$9069_win_;return V.requestAnimationFrame||V.webkitRequestAnimationFrame||V.mozRequestAnimationFrame||V.oRequestAnimationFrame||V.msRequestAnimationFrame||null},C3b=function(V){V=V.JSC$9069_win_;
return V.cancelAnimationFrame||V.cancelRequestAnimationFrame||V.webkitCancelRequestAnimationFrame||V.mozCancelRequestAnimationFrame||V.oCancelRequestAnimationFrame||V.msCancelRequestAnimationFrame||null};_.le=function(V,l,I){_.XG.call(this);this.JSC$9072_listener_=I!=null?V.bind(I):V;this.JSC$9072_interval_=l;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9072_timer_=null};
_.t(_.le,_.XG);_.B=_.le.prototype;_.B.fire=function(V){this.args_=arguments;this.JSC$9072_timer_||this.pauseCount_?this.shouldFire_=!0:afZ(this)};
_.B.stop=function(){this.JSC$9072_timer_&&(_.nK.clearTimeout(this.JSC$9072_timer_),this.JSC$9072_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.B.pause=function(){this.pauseCount_++};
_.B.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9072_timer_||(this.shouldFire_=!1,afZ(this))};
_.B.disposeInternal=function(){_.XG.prototype.disposeInternal.call(this);this.stop()};
var afZ=function(V){V.JSC$9072_timer_=om(function(){V.JSC$9072_timer_=null;V.shouldFire_&&!V.pauseCount_&&(V.shouldFire_=!1,afZ(V))},V.JSC$9072_interval_);
var l=V.args_;V.args_=null;V.JSC$9072_listener_.apply(null,l)};var ffo=function(V,l){this.childIterator_=V[_.nK.Symbol.iterator]();this.mapFn_=l};
ffo.prototype[Symbol.iterator]=function(){return this};
ffo.prototype.next=function(){var V=this.childIterator_.next();return{value:V.done?void 0:this.mapFn_.call(void 0,V.value),done:V.done}};
var gV0=function(V,l){return new ffo(V,l)};var mva={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 xtt=function(V){var l=iYw(V);if(!l)throw Error("Td`"+V);return l},iYw=function(V){var l={};
V=String(V);var I=V.charAt(0)=="#"?V:"#"+V;if(V50.test(I))return l.hex=Ic1(I),l.type="hex",l;I=dtg(V);return I.length?(l.hex=Tc1(I[0],I[1],I[2]),l.type="rgb",l):mva&&(V=mva[V.toLowerCase()])?(l.hex=V,l.type="named",l):null},lRi=/#(.)(.)(.)/,Ic1=function(V){if(!V50.test(V))throw Error("Vd`"+V);
V.length==4&&(V=V.replace(lRi,"#$1$1$2$2$3$3"));return V.toLowerCase()},Utt=function(V){V=Ic1(V);
V=parseInt(V.slice(1),16);return[V>>16,V>>8&255,V&255]},Tc1=function(V,l,I){V=Number(V);
l=Number(l);I=Number(I);if(V!=(V&255)||l!=(l&255)||I!=(I&255))throw Error("Wd`"+V+"`"+l+"`"+I);l=V<<16|l<<8|I;return V<16?"#"+(16777216|l).toString(16).slice(1):"#"+l.toString(16)},V50=/^#(?:[0-9a-f]{3}){1,2}$/i,IRv=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,dtg=function(V){var l=V.match(IRv);
if(l){V=Number(l[1]);var I=Number(l[2]);l=Number(l[3]);if(V>=0&&V<=255&&I>=0&&I<=255&&l>=0&&l<=255)return[V,I,l]}return[]};var HmW={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},EJ=HmW;EJ=HmW;var SyW,T_i,B_i;SyW=function(V,l){switch(l){case 1:return V%4!=0||V%100==0&&V%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
T_i=function(V,l,I,H,T){V=new Date(V,l,I);T=T||0;return V.valueOf()+(((H!==void 0?H:3)-T+7)%7-((V.getDay()+6)%7-T+7)%7)*864E5};
_.rQ=function(V,l,I){typeof V==="number"?(this.date=B_i(V,l||0,I||1),xeb(this,I||1)):_.m3(V)?(this.date=B_i(V.getFullYear(),V.getMonth(),V.getDate()),xeb(this,V.getDate())):(this.date=new Date(_.xv()),V=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),xeb(this,V))};
B_i=function(V,l,I){l=new Date(V,l,I);V>=0&&V<100&&l.setFullYear(l.getFullYear()-1900);return l};
_.B=_.rQ.prototype;_.B.firstDayOfWeek_=EJ.FIRSTDAYOFWEEK;_.B.firstWeekCutOffDay_=EJ.FIRSTWEEKCUTOFFDAY;_.B.clone=function(){var V=new _.rQ(this.date);V.firstDayOfWeek_=this.firstDayOfWeek_;V.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return V};
_.B.getFullYear=function(){return this.date.getFullYear()};
_.B.getYear=function(){return this.getFullYear()};
_.B.getMonth=function(){return this.date.getMonth()};
_.B.getDate=function(){return this.date.getDate()};
_.B.getTime=function(){return this.date.getTime()};
_.B.getDay=function(){return this.date.getDay()};
_.B.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.B.getUTCMonth=function(){return this.date.getUTCMonth()};
_.B.getUTCDate=function(){return this.date.getUTCDate()};
_.B.getUTCDay=function(){return this.date.getDay()};
_.B.getUTCHours=function(){return this.date.getUTCHours()};
_.B.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.B.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.B.set=function(V){this.date=new Date(V.getFullYear(),V.getMonth(),V.getDate())};
_.B.setFullYear=function(V){this.date.setFullYear(V)};
_.B.setYear=function(V){this.setFullYear(V)};
_.B.setMonth=function(V){this.date.setMonth(V)};
_.B.setDate=function(V){this.date.setDate(V)};
_.B.setTime=function(V){this.date.setTime(V)};
_.B.setUTCFullYear=function(V){this.date.setUTCFullYear(V)};
_.B.setUTCMonth=function(V){this.date.setUTCMonth(V)};
_.B.setUTCDate=function(V){this.date.setUTCDate(V)};
_.B.add=function(V){if(V.years||V.months){var l=this.getMonth()+V.months+V.years*12,I=this.getYear()+Math.floor(l/12);l%=12;l<0&&(l+=12);var H=Math.min(SyW(I,l),this.getDate());this.setDate(1);this.setFullYear(I);this.setMonth(l);this.setDate(H)}V.days&&(I=this.getYear(),l=I>=0&&I<=99?-1900:0,V=new Date((new Date(I,this.getMonth(),this.getDate(),12)).getTime()+V.days*864E5),this.setDate(1),this.setFullYear(V.getFullYear()+l),this.setMonth(V.getMonth()),this.setDate(V.getDate()),xeb(this,V.getDate()))};
_.B.JSC$9085_toIsoString=function(V){var l=this.getFullYear(),I=l<0?"-":l>=1E4?"+":"";return[I+_.Bi(Math.abs(l),I?6:4),_.Bi(this.getMonth()+1,2),_.Bi(this.getDate(),2)].join(V?"-":"")};
_.B.equals=function(V){return!(!V||this.getYear()!=V.getYear()||this.getMonth()!=V.getMonth()||this.getDate()!=V.getDate())};
_.B.toString=function(){return this.JSC$9085_toIsoString()};
var xeb=function(V,l){V.getDate()!=l&&V.date.setUTCHours(V.date.getUTCHours()+(V.getDate()<l?1:-1))};
_.rQ.prototype.valueOf=function(){return this.date.valueOf()};var En=function(V,l,I,H,T){this.reversed=!!l;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!I;V&&Gm(this,V,H);this.depth=T!=void 0?T:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Uk(En,xC);var Gm=function(V,l,I,H){if(V.node=l)V.tagType=typeof I==="number"?I:V.node.nodeType!=1?0:V.reversed?-1:1;typeof H==="number"&&(V.depth=H)};
_.B=En.prototype;_.B.JSC$9100_copyFrom=function(V){this.node=V.node;this.tagType=V.tagType;this.depth=V.depth;this.reversed=V.reversed;this.constrained=V.constrained};
_.B.clone=function(){return new En(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.B.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Um;var V=this.node;var l=this.reversed?-1:1;if(this.tagType==l){var I=this.reversed?V.lastChild:V.firstChild;I?Gm(this,I):Gm(this,V,l*-1)}else(I=this.reversed?V.previousSibling:V.nextSibling)?Gm(this,I):Gm(this,V.parentNode,l*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(V=this.node)?nh(V):Um};
_.B.equals=function(V){return V.node==this.node&&(!this.node||V.tagType==this.tagType)};
_.B.splice=function(V){var l=this.node,I=this.reversed?1:-1;this.tagType==I&&(this.tagType=I*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;En.prototype.next.call(this);this.reversed=!this.reversed;I=_.vy(arguments[0])?arguments[0]:arguments;for(var H=I.length-1;H>=0;H--)_.b_(I[H],l);_.Yw(l)};var Uea=function(){},Jz=function(V){for(var l=[],I=V.getTextRangeCount(),H=0;H<I;H++)l.push(V.getTextRange(H));
return l};
Uea.prototype.isReversed=function(){return!1};
Uea.prototype.getWindow=function(){return hH(_.Z3(this.JSC$9102_getStartNode()))};
var nsE=function(V,l){En.call(this,V,l,!0)};
_.Uk(nsE,En);var oY=function(V,l,I,H,T){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!T;if(V){this.startNode_=V;this.startOffset_=l;this.endNode_=I;this.endOffset_=H;if(V.nodeType==1&&V.tagName!="BR")if(V=V.childNodes,l=V[l])this.startNode_=l,this.startOffset_=0;else{V.length&&(this.startNode_=_.Qf(V));var x=!0}I.nodeType==1&&((this.endNode_=I.childNodes[H])?this.endOffset_=0:this.endNode_=I)}En.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);x&&this.next()};
_.Uk(oY,nsE);_.B=oY.prototype;_.B.JSC$9108_getStartNode=function(){return this.startNode_};
_.B.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)};
_.B.next=function(){return this.isLast()?Um:oY.superClass_.next.call(this)};
_.B.JSC$9100_copyFrom=function(V){this.startNode_=V.startNode_;this.endNode_=V.endNode_;this.startOffset_=V.startOffset_;this.endOffset_=V.endOffset_;this.isReversed_=V.isReversed_;oY.superClass_.JSC$9100_copyFrom.call(this,V)};
_.B.clone=function(){var V=new oY(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);V.JSC$9100_copyFrom(this);return V};var $eo=function(){};
$eo.prototype.__iterator__=function(){return new oY(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var hz=function(V){this.range_=V};
_.Uk(hz,$eo);var deZ=function(V){var l=_.Z3(V).createRange();if(V.nodeType==3)l.setStart(V,0),l.setEnd(V,V.length);else if(Qm(V)||V.nodeType==3){for(var I,H=V;(I=H.firstChild)&&(Qm(I)||I.nodeType==3);)H=I;l.setStart(H,0);for(H=V;(I=H.lastChild)&&(Qm(I)||I.nodeType==3);)H=I;l.setEnd(H,H.nodeType==1?H.childNodes.length:H.length)}else I=V.parentNode,V=Array.prototype.indexOf.call(I.childNodes,V),l.setStart(I,V),l.setEnd(I,V+1);return l},w1W=function(V,l,I,H){var T=_.Z3(V).createRange();
T.setStart(V,l);T.setEnd(I,H);return T};
_.B=hz.prototype;_.B.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.B.getContainer=function(){return this.range_.commonAncestorContainer};
_.B.compareBrowserRangeEndpoints=function(V,l,I){return this.range_.compareBoundaryPoints(I==1?l==1?_.nK.Range.START_TO_START:_.nK.Range.START_TO_END:l==1?_.nK.Range.END_TO_START:_.nK.Range.END_TO_END,V)};
_.B.isCollapsed=function(){return this.range_.collapsed};
_.B.select=function(V){this.selectInternal(hH(_.Z3(this.range_.startContainer)).getSelection(),V)};
_.B.selectInternal=function(V){V.removeAllRanges();V.addRange(this.range_)};
_.B.insertNode=function(V,l){var I=this.range_.cloneRange();I.collapse(l);I.insertNode(V);I.detach();return V};
_.B.collapse=function(V){this.range_.collapse(V)};_.Uk(fC,hz);fC.prototype.selectInternal=function(V,l){!l||this.isCollapsed()?fC.superClass_.selectInternal.call(this,V,l):(V.collapse(this.range_.endContainer,this.range_.endOffset),V.extend(this.range_.startContainer,this.range_.startOffset))};_.Uk(gu,hz);gu.prototype.compareBrowserRangeEndpoints=function(V,l,I){return gu.superClass_.compareBrowserRangeEndpoints.call(this,V,l,I)};
gu.prototype.selectInternal=function(V,l){l?V.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):V.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var N_0=function(V){return _.ja?new gu(V):_.Kj?new fC(V):new hz(V)};var PJ=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},KjN;
_.Uk(PJ,Uea);KjN=function(V,l){var I=new PJ;I.browserRangeWrapper_=V;I.isReversed_=!!l;return I};
_.jjZ=function(V){V=_.ja?new gu(deZ(V)):_.Kj?new fC(deZ(V)):new hz(deZ(V));return KjN(V)};
_.DE=function(V,l,I,H){var T=new PJ;T.isReversed_=Y7N(V,l,I,H);if(_.sh(V)&&!Qm(V)){var x=V.parentNode;l=Array.prototype.indexOf.call(x.childNodes,V);V=x}_.sh(I)&&!Qm(I)&&(x=I.parentNode,H=Array.prototype.indexOf.call(x.childNodes,I),I=x);T.isReversed_?(T.startNode_=I,T.startOffset_=H,T.endNode_=V,T.endOffset_=l):(T.startNode_=V,T.startOffset_=l,T.endNode_=I,T.endOffset_=H);return T};
_.B=PJ.prototype;_.B.clone=function(){var V=new PJ;V.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();V.startNode_=this.startNode_;V.startOffset_=this.startOffset_;V.endNode_=this.endNode_;V.endOffset_=this.endOffset_;V.isReversed_=this.isReversed_;return V};
_.B.JSC$9102_getType=function(){return"text"};
_.B.getBrowserRangeObject=function(){return ZE(this).range_};
_.B.getTextRangeCount=function(){return 1};
_.B.getTextRange=function(){return this};
var ZE=function(V){var l;if(!(l=V.browserRangeWrapper_)){l=V.JSC$9102_getStartNode();var I=V.JSC$9102_getStartOffset(),H=V.JSC$9102_getEndNode(),T=V.JSC$9102_getEndOffset();l=_.ja?new gu(w1W(l,I,H,T)):_.Kj?new fC(w1W(l,I,H,T)):new hz(w1W(l,I,H,T));l=V.browserRangeWrapper_=l}return l};
_.B=PJ.prototype;_.B.getContainer=function(){return ZE(this).getContainer()};
_.B.JSC$9102_getStartNode=function(){var V;(V=this.startNode_)||(V=this.startNode_=ZE(this).range_.startContainer);return V};
_.B.JSC$9102_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=ZE(this).range_.startOffset};
_.B.JSC$9102_getEndNode=function(){var V;(V=this.endNode_)||(V=this.endNode_=ZE(this).range_.endContainer);return V};
_.B.JSC$9102_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=ZE(this).range_.endOffset};
_.B.isReversed=function(){return this.isReversed_};
_.B.JSC$9102_containsRange=function(V,l){if(V.JSC$9102_getType()=="text"){var I=ZE(this);V=ZE(V);l=l&&!V.isCollapsed();V=V.range_;I=l?I.compareBrowserRangeEndpoints(V,0,1)>=0&&I.compareBrowserRangeEndpoints(V,1,0)<=0:I.compareBrowserRangeEndpoints(V,0,0)>=0&&I.compareBrowserRangeEndpoints(V,1,1)<=0}else I=!1;return I};
_.B.isCollapsed=function(){return ZE(this).isCollapsed()};
_.B.JSC$9102_getText=function(){return ZE(this).range_.toString()};
_.B.__iterator__=function(){return new oY(this.JSC$9102_getStartNode(),this.JSC$9102_getStartOffset(),this.JSC$9102_getEndNode(),this.JSC$9102_getEndOffset())};
_.B.select=function(){ZE(this).select(this.isReversed_)};
_.B.JSC$9102_removeContents=function(){var V=ZE(this).range_;V.extractContents();if(V.startContainer.hasChildNodes()&&(V=V.startContainer.childNodes[V.startOffset])){var l=V.previousSibling;rVN(V)==""&&_.Yw(V);l&&rVN(l)==""&&_.Yw(l)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.B.insertNode=function(V,l){V=ZE(this).insertNode(V,l);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return V};
_.B.collapse=function(V){V=this.isReversed()?!V:V;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(V);V?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Ljo=function(){};
_.Uk(Ljo,Uea);Ljo.prototype.JSC$9102_containsRange=function(V,l){var I=Jz(this);V=Jz(V);return(l?bG:_.Bcg)(V,function(H){return bG(I,function(T){return T.JSC$9102_containsRange(H,l)})})};
Ljo.prototype.insertNode=function(V,l){l?_.Wi(V,this.JSC$9102_getStartNode()):_.b_(V,this.JSC$9102_getEndNode());return V};var eei,kob=EnJ(kp()).documentElement;eei=kob.requestFullscreen?"fullscreenchange":kob.webkitRequestFullscreen?"webkitfullscreenchange":kob.mozRequestFullScreen?"mozfullscreenchange":kob.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Fja=function(){var V=EnJ(kp());return!!(V.webkitIsFullScreen||V.mozFullScreen||V.msFullscreenElement||V.fullscreenElement)};var SS=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Uk(SS,Ljo);_.B=SS.prototype;_.B.clone=function(){var V=new SS;V.browserRanges_=_.uN(this.browserRanges_);return V};
_.B.JSC$9102_getType=function(){return"mutli"};
_.B.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.B.getTextRangeCount=function(){return this.browserRanges_.length};
_.B.getTextRange=function(V){this.ranges_[V]||(this.ranges_[V]=KjN(N_0(this.browserRanges_[V])));return this.ranges_[V]};
_.B.getContainer=function(){if(!this.container_){for(var V=[],l=this.getTextRangeCount(),I=0;I<l;I++)V.push(this.getTextRange(I).getContainer());this.container_=eMb.apply(null,V)}return this.container_};
var RY=function(V){V.sortedRanges_||(V.sortedRanges_=Jz(V),V.sortedRanges_.sort(function(l,I){var H=l.JSC$9102_getStartNode();l=l.JSC$9102_getStartOffset();var T=I.JSC$9102_getStartNode();I=I.JSC$9102_getStartOffset();return H==T&&l==I?0:Y7N(H,l,T,I)?1:-1}));
return V.sortedRanges_};
_.B=SS.prototype;_.B.JSC$9102_getStartNode=function(){return RY(this)[0].JSC$9102_getStartNode()};
_.B.JSC$9102_getStartOffset=function(){return RY(this)[0].JSC$9102_getStartOffset()};
_.B.JSC$9102_getEndNode=function(){return _.Qf(RY(this)).JSC$9102_getEndNode()};
_.B.JSC$9102_getEndOffset=function(){return _.Qf(RY(this)).JSC$9102_getEndOffset()};
_.B.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.B.JSC$9102_getText=function(){return Jz(this).map(function(V){return V.JSC$9102_getText()}).join("")};
_.B.__iterator__=function(){return new QA(this)};
_.B.select=function(){var V=this.getWindow().getSelection();V.removeAllRanges();for(var l=this.getTextRangeCount(),I=0;I<l;I++)V.addRange(this.getTextRange(I).getBrowserRangeObject())};
_.B.JSC$9102_removeContents=function(){Jz(this).forEach(function(V){V.JSC$9102_removeContents()})};
_.B.collapse=function(V){if(!this.isCollapsed()){var l=V?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;l.collapse(V);this.ranges_=[l];this.sortedRanges_=[l];this.browserRanges_=[l.getBrowserRangeObject()]}};
var QA=function(V){this.iterators_=null;this.currentIdx_=0;V&&(this.iterators_=RY(V).map(function(l){return _.bCN(l)}));
En.call(this,V?this.JSC$9108_getStartNode():null,!1,!0)};
_.Uk(QA,nsE);_.B=QA.prototype;_.B.JSC$9108_getStartNode=function(){return this.iterators_[0].JSC$9108_getStartNode()};
_.B.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.B.next=function(){for(;this.currentIdx_<this.iterators_.length;){var V=this.iterators_[this.currentIdx_],l=V.next();if(l.done)this.currentIdx_++;else return Gm(this,V.node,V.tagType,V.depth),l}return Um};
_.B.JSC$9100_copyFrom=function(V){this.iterators_=_.uN(V.iterators_);QA.superClass_.JSC$9100_copyFrom.call(this,V)};
_.B.clone=function(){var V=new QA(null);V.JSC$9100_copyFrom(this);return V};var X1N,Y7N;_.zK=function(){var V=window.getSelection();return V&&X1N(V)};
X1N=function(V){var l=!1;if(V.createRange)try{var I=V.createRange()}catch(T){return null}else if(V.rangeCount){if(V.rangeCount>1){I=new SS;l=V.rangeCount;for(var H=0;H<l;H++)I.browserRanges_.push(V.getRangeAt(H));return I}I=V.getRangeAt(0);l=Y7N(V.anchorNode,V.anchorOffset,V.focusNode,V.focusOffset)}else return null;return KjN(N_0(I),l)};
_.cJ=function(V,l){return _.DE(V,l,V,l)};
_.WJ=function(V,l,I,H){return _.DE(V,l,I,H)};
Y7N=function(V,l,I,H){if(V==I)return H<l;var T;if(V.nodeType==1&&l)if(T=V.childNodes[l])V=T,l=0;else if(_.R8(V,I))return!0;if(I.nodeType==1&&H)if(T=I.childNodes[H])I=T,H=0;else if(_.R8(I,V))return!1;return(LxN(V,I)||l-H)>0};var bc=function(){_.tm.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.zN)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.zN)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.zN)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.zN)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.zN)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.zN)(this.dispatchProgressEvent_,this)};
_.Uk(bc,_.tm);bc.prototype.abort=function(){try{this.reader_.abort()}catch(V){throw new a1o(V,"aborting read");}};
bc.prototype.getError=function(){return this.reader_.error&&new a1o(this.reader_.error,"reading file")};
bc.prototype.dispatchProgressEvent_=function(V){this.dispatchEvent(new f1W(V,this))};
bc.prototype.disposeInternal=function(){bc.superClass_.disposeInternal.call(this);delete this.reader_};
var yTJ=function(V){var l=new bc,I=zeZ(l);l.reader_.readAsArrayBuffer(V);return I},t5N=function(V){var l=new bc,I=zeZ(l);
l.reader_.readAsDataURL(V);return I},zeZ=function(V){var l=new OR;
V.listen("loadend",_.kB(function(I,H){var T=H.reader_.result,x=H.getError();T==null||x?I.errback(x):I.callback(T);H.dispose()},l,V));
return l};var qA=function(){_.tm.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9142_eventHandler_=new _.ig(this);this.JSC$9142_isInitialized_=!1};
_.Uk(qA,_.tm);var rTa=new _.e3("d"),Go3=new _.e3("beforedragstart"),Esw=new _.e3("dragstart"),JTZ=new _.e3("beforedragmove"),osB=new _.e3("dragmove"),hei=new _.e3("beforedragend"),PfJ=new _.e3("dragend"),DeE=new _.e3("e");qA.prototype.isDragging=function(){return!!this.JSC$9142_dragger_};
var Zm0=function(V,l){l.dlgGrowthDirection_=0;l.dlgDragHoverClass_=void 0;l.dlgDragPermission=0;V.dragLists_.push(l)},S7a=function(V,l){V.getHandleForDragItem_=l};
qA.prototype.init=function(){if(!this.JSC$9142_isInitialized_){for(var V=this.dragLists_.length,l=0;l<V;l++)for(var I=_.qa(this.dragLists_[l]),H=I.length,T=0;T<H;++T){var x=I[T],n=this.getHandleForDragItem_(x),w=_.iN(n);this.dragItemForHandle_[w]=x;this.dragItemHoverClasses_&&(this.JSC$9142_eventHandler_.listen(x,"mouseover",this.handleDragItemMouseover_),this.JSC$9142_eventHandler_.listen(x,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9142_eventHandler_.listen(n,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9142_eventHandler_.listen(n,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(x);this.JSC$9142_eventHandler_.listen(n,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9142_isInitialized_=!0}};
qA.prototype.disposeInternal=function(){this.JSC$9142_eventHandler_.dispose();for(var V=this.dragLists_.length,l=0;l<V;l++){var I=this.dragLists_[l];I.dlgGrowthDirection_=void 0;I.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;Re0(this);qA.superClass_.disposeInternal.call(this)};
var Qjw=function(V,l){for(var I=V.dragLists_.length,H=0;H<I;H++){var T=V.dragLists_[H];T.dlgBounds_=yPf(T)}I=V.dragItems_.length;for(H=0;H<I;H++)T=V.dragItems_[H],T!=l&&(T.dlgBounds_=yPf(T))};
_.B=qA.prototype;
_.B.handlePotentialDragStart_=function(V){var l=_.iN(V.currentTarget);l=this.dragItemForHandle_[l];if(l.parentElement.dlgDragPermission!=2){this.currDragItem_=l;a:{l=this.currDragItem_;for(var I=l.cloneNode(!0),H=LS("TEXTAREA",l),T=LS("TEXTAREA",I),x=0;x<H.length;x++)T[x].value=H[x].value;switch(l.tagName){case "TR":l=_.Su("TABLE",null,_.Su("TBODY",null,I));break a;case "TD":case "TH":l=_.Su("TABLE",null,_.Su("TBODY",null,_.Su("TR",null,I)));break a;case "TEXTAREA":I.value=l.value;default:l=I;break a}l=
void 0}this.draggerEl_=l;this.draggerElClasses_&&uU(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Z3(this.currDragItem_).body.appendChild(this.draggerEl_);I=_.SP(this.currDragItem_);l=this.draggerEl_;H=_.SP(l);if(I instanceof _.og){var n=I.y;I=I.x}u_(l,l.offsetLeft+(I-H.x),l.offsetTop+(Number(n)-H.y));this.JSC$9142_dragger_=new _.W_(this.draggerEl_);_.CGE(this.JSC$9142_dragger_,this.hysteresisDistance_);
_.NR(this.JSC$9142_dragger_,"start",this.handleDragStart_,!1,this);_.NR(this.JSC$9142_dragger_,"end",this.handleDragEnd_,!1,this);_.NR(this.JSC$9142_dragger_,"earlycancel",this.JSC$9144_cleanup_,!1,this);this.dispatchEvent(new MA(rTa,this,V,this.currDragItem_,this.draggerEl_,this.JSC$9142_dragger_));this.JSC$9142_dragger_.startDrag(V)}};
_.B.handleDragStart_=function(V){if(this.dispatchEvent(new MA(Go3,this,V.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Kxo(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?uU(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var l=Sq3(this.draggerEl_);this.draggerEl_.halfWidth=l.width/2;this.draggerEl_.halfHeight=l.height/2;l=this.draggerEl_.getBoundingClientRect();
var I=V.clientY,H=aBW(this.JSC$9142_dragger_,V.clientX);if(H>l.right){var T=this.currDragItem_.getBoundingClientRect();this.JSC$9142_dragger_.deltaX=H-(H-T.left)/T.width*l.width}I=fBo(this.JSC$9142_dragger_,I);I>l.bottom&&(this.JSC$9142_dragger_.deltaY+=I-l.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";Qjw(this,this.currDragItem_);this.currDragItem_.style.display="";_.NR(this.JSC$9142_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new MA(Esw,
this,V.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9142_dragger_))}else V.preventDefault(),this.JSC$9144_cleanup_()};
_.B.handleDragMove_=function(V){var l=_.SP(this.draggerEl_);l=new _.og(l.x+this.draggerEl_.halfWidth,l.y+this.draggerEl_.halfHeight);a:{var I=null;if(this.currDragItem_.style.display!="none"){I=this.currDragItem_.parentNode;var H=yPf(I);if(cTJ(l,H))break a}H=this.dragLists_.length;for(var T=0;T<H;T++){var x=this.dragLists_[T];if(x!=I&&cTJ(l,x.dlgBounds_)){I=x;break a}}I=null}if(I){if(I==null)throw Error("Xd");H=0;T=!1;x=void 0;switch(I.dlgGrowthDirection_){case 0:H=l.y;var n=Wjw;var w=bm0;break;case 4:T=
!0;case 2:H=l.x;n=q7E;w=bm0;break;case 5:T=!0;case 3:H=l.x,n=M5N,w=sjW}for(var N=null,L,e=_.qa(I),k=e.length,X=0;X<k;X++){var r=e[X];if(r!=this.currDragItem_){var E=n(r.dlgBounds_);if(T){var D=p1N(r,l);x===void 0&&(x=D);w(H,E)&&(L==void 0||D<x||D==x&&(w(E,L)||E==L))&&(N=r,L=E);D<x&&(x=D)}else w(H,E)&&(L==void 0||w(E,L))&&(N=r,L=E)}}n=N!==null&&p1N(N,l)>x?null:N}else n=null;if(!this.dispatchEvent(new MA(JTZ,this,V,this.currDragItem_,this.draggerEl_,this.JSC$9142_dragger_,l,I,n)))return!1;if(I&&I.dlgDragPermission!=
1)this.currDragItem_.parentNode==I&&_.Kxo(this.currDragItem_)==n||I.insertBefore(this.currDragItem_,n),this.currDragItem_.style.display="",I.dlgDragHoverClass_&&_.WX(I,I.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",w=this.dragLists_.length,L=0;L<w;L++)H=this.dragLists_[L],H.dlgDragHoverClass_&&_.QI(H,H.dlgDragHoverClass_);I!=this.currHoverList_&&(this.currHoverList_=I,Qjw(this,this.currDragItem_));this.dispatchEvent(new MA(osB,this,V,this.currDragItem_,this.draggerEl_,this.JSC$9142_dragger_,
l,I,n));return!1};
_.B.JSC$9144_cleanup_=function(){Re0(this);this.JSC$9142_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var V=this.dragLists_.length,l=0;l<V;l++)this.dragLists_[l].dlgBounds_=null;V=this.dragItems_.length;for(l=0;l<V;l++)this.dragItems_[l].dlgBounds_=null};
_.B.handleDragEnd_=function(V){if(!this.dispatchEvent(new MA(hei,this,V,this.currDragItem_,this.draggerEl_,this.JSC$9142_dragger_)))return!1;Re0(this);this.dispatchEvent(new MA(PfJ,this,V,this.currDragItem_,this.draggerEl_,this.JSC$9142_dragger_));this.JSC$9144_cleanup_();return!0};
var Re0=function(V){_.ag(V.JSC$9142_dragger_);var l=V.draggerEl_&&V.draggerEl_.parentElement;V.draggerEl_&&_.Yw(V.draggerEl_);V.currDragItem_&&V.currDragItem_.style.display=="none"&&(V.origList_.insertBefore(V.currDragItem_,V.origNextItem_),V.currDragItem_.style.display="");V.currDragItemClasses_&&V.currDragItem_?uk0(V.currDragItem_,V.currDragItemClasses_||[]):V.currDragItem_&&(V.currDragItem_.style.visibility="");for(var I=V.dragLists_.length,H=0;H<I;H++){var T=V.dragLists_[H];T.dlgDragHoverClass_&&
_.QI(T,T.dlgDragHoverClass_)}l&&V.dispatchEvent(new MA(DeE,V,null,V.currDragItem_,V.draggerEl_,V.JSC$9142_dragger_))};
_.B=qA.prototype;_.B.getHandleForDragItem_=function(V){return V};
_.B.handleDragItemMouseover_=function(V){uU(V.currentTarget,this.dragItemHoverClasses_||[])};
_.B.handleDragItemMouseout_=function(V){uk0(V.currentTarget,this.dragItemHoverClasses_||[])};
_.B.handleDragItemHandleMouseover_=function(V){uU(V.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.B.handleDragItemHandleMouseout_=function(V){uk0(V.currentTarget,this.dragItemHandleHoverClasses_||[])};
var cTJ=function(V,l){return V.x>l.left&&V.x<l.left+l.width&&V.y>l.top&&V.y<l.top+l.height},p1N=function(V,l){V=V.dlgBounds_;
return Math.abs(l.y-(V.top+(V.height-1)/2))},Wjw=function(V){return V.top+V.height-1},q7E=function(V){return V.left+V.width-1},M5N=function(V){return V.left||0},bm0=function(V,l){return V<l},sjW=function(V,l){return V>l},MA=function(V,l,I,H,T,x){_.kL.call(this,V);
this.event=I;this.currDragItem=H;this.draggerEl=T;this.JSC$9146_dragger=x};
_.Uk(MA,_.kL);_.Uk(lK,_.XG);var ATw=new _.og(0,0);lK.prototype.JSC$9150_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
lK.prototype.JSC$9150_onMouseMove=function(V){var l=this.containerIsActuallyContent_?ATw:eP(kp(this.containerNode_)),I=this.horizontalScrolling_?this.calculateScrollDelta(V.clientX+l.x,this.scrollBounds_.left,this.scrollBounds_.width):0,H=this.calculateScrollDelta(V.clientY+l.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=I;this.scrollDelta_.y=H;!(I=!I&&!H)&&(I=this.constrainScroll_)&&(I=V.clientX+l.x,V=V.clientY+l.y,l=this.containerBounds_,I=!(l.left<=I&&l.left+l.width>=
I&&l.top<=V&&l.top+l.height>=V));I?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
lK.prototype.calculateScrollDelta=function(V,l,I){var H=0;V<l?H=-8:V>l+I&&(H=8);return H};
lK.prototype.disposeInternal=function(){lK.superClass_.disposeInternal.call(this);this.JSC$9148_eventHandler_.dispose();this.scrollTimer_.dispose()};var uVb={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"}}},sn=uVb;sn=uVb;var pD={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 vsa=function(){},qr=function(V){if(typeof V=="number"){var l=new vsa;
l.standardOffset_=V;var I=V;if(I==0)I="Etc/GMT";else{var H=["Etc/GMT",I<0?"-":"+"];I=Math.abs(I);H.push(Math.floor(I/60)%100);I%=60;I!=0&&H.push(":",_.Bi(I,2));I=H.join("")}l.timeZoneId_=I;I=V;I==0?I="UTC":(H=["UTC",I<0?"+":"-"],I=Math.abs(I),H.push(Math.floor(I/60)%100),I%=60,I!=0&&H.push(":",I),I=H.join(""));V=OmJ(V);l.tzNames_=[I,I];l.tzNamesExt_={STD_LONG_NAME_GMT:V,STD_GENERIC_LOCATION:V};l.transitions_=[];return l}l=new vsa;l.timeZoneId_=V.id;l.standardOffset_=-V.std_offset;l.tzNames_=V.names;
l.tzNamesExt_=V.names_ext;l.transitions_=V.transitions;return l},OmJ=function(V){var l=["GMT"];
l.push(V<=0?"+":"-");V=Math.abs(V);l.push(_.Bi(Math.floor(V/60)%100,2),":",_.Bi(V%60,2));return l.join("")},Cfv=function(V,l){l=Date.UTC(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate(),l.getUTCHours(),l.getUTCMinutes())/36E5;
for(var I=0;I<V.transitions_.length&&l>=V.transitions_[I];)I+=2;return I==0?0:V.transitions_[I-1]},aRW=function(V,l){V=V.standardOffset_-Cfv(V,l);
return V===-1440?0:V};var Mr=function(V,l){this.patternParts_=[];this.JSC$9161_dateTimeSymbols_=l||EJ;typeof V=="number"?fRJ(this,V):gsW(this,V)},meo=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Az=function(V){return V.getHours?V.getHours():0},gsW=function(V,l){for(KhT&&(l=l.replace(/\u200f/g,""));l;){for(var I=l,H=0;H<meo.length;++H){var T=l.match(meo[H]);
if(T){var x=T[0];l=l.substring(x.length);H==0&&(x=="''"?x="'":(x=x.substring(1,T[1]=="'"?x.length-1:x.length),x=x.replace(/''/g,"'")));V.patternParts_.push({text:x,type:H});break}}if(I===l)throw Error("Yd`"+l);}};
Mr.prototype.format=function(V,l){if(!V)throw Error("Zd");var I=l?(V.getTimezoneOffset()-aRW(l,V))*6E4:0,H=I?new Date(V.getTime()+I):V,T=H;l&&H.getTimezoneOffset()!=V.getTimezoneOffset()&&(H=new Date(H.getTime()+(H.getTimezoneOffset()-V.getTimezoneOffset())*6E4),T=new Date(V.getTime()+(I+(I>0?-864E5:864E5))));I=[];for(var x=0;x<this.patternParts_.length;++x){var n=this.patternParts_[x].text;1==this.patternParts_[x].type?I.push(imb(this,n,V,H,T,l)):I.push(n)}return I.join("")};
var fRJ=function(V,l){if(l<4)var I=V.JSC$9161_dateTimeSymbols_.DATEFORMATS[l];else if(l<8)I=V.JSC$9161_dateTimeSymbols_.TIMEFORMATS[l-4];else if(l<12)I=V.JSC$9161_dateTimeSymbols_.DATETIMEFORMATS[l-8],I=I.replace("{1}",V.JSC$9161_dateTimeSymbols_.DATEFORMATS[l-8]),I=I.replace("{0}",V.JSC$9161_dateTimeSymbols_.TIMEFORMATS[l-8]);else if(l===12)I=V.JSC$9161_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(l===13)I=V.JSC$9161_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{fRJ(V,10);return}gsW(V,I)},uc=function(V,l){l=String(l);
V=V.JSC$9161_dateTimeSymbols_||EJ;if(V.ZERODIGIT!==void 0&&!Nd3){for(var I=[],H=0;H<l.length;H++){var T=l.charCodeAt(H);I.push(48<=T&&T<=57?String.fromCharCode(V.ZERODIGIT+T-48):l.charAt(H))}l=I.join("")}return l},Nd3=!1,KhT=!1,lAZ=function(V,l,I,H){I=I.getFullYear();
I<=0&&H&&(I=1-I);return uc(V,VzW(I,l))},VzW=function(V,l){l==2&&(V%=100);
V<0&&l++;return _.Bi(V,l)},vJ=function(V){if(!(V.getHours&&V.getSeconds&&V.getMinutes))throw Error("$d");
},IA0=function(V,l){vJ(l);
l=Az(l);return V.JSC$9161_dateTimeSymbols_.AMPMS[l>=12&&l<24?1:0]},imb=function(V,l,I,H,T,x){var n=l.length;
switch(l.charAt(0)){case "G":return I=H.getFullYear()>0?1:0,n>=4?V.JSC$9161_dateTimeSymbols_.ERANAMES[I]:V.JSC$9161_dateTimeSymbols_.ERAS[I];case "y":return lAZ(V,n,H,!0);case "Y":return I=(new Date(T_i(H.getFullYear(),H.getMonth(),H.getDate(),V.JSC$9161_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,V.JSC$9161_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),n==2&&(I%=100),uc(V,VzW(I,n));case "u":return lAZ(V,n,H,!1);case "M":a:switch(I=H.getMonth(),n){case 5:n=V.JSC$9161_dateTimeSymbols_.NARROWMONTHS[I];break a;
case 4:n=V.JSC$9161_dateTimeSymbols_.MONTHS[I];break a;case 3:n=V.JSC$9161_dateTimeSymbols_.SHORTMONTHS[I];break a;default:n=uc(V,_.Bi(I+1,n))}return n;case "k":return vJ(T),uc(V,_.Bi(Az(T)||24,n));case "S":return uc(V,(T.getMilliseconds()/1E3).toFixed(Math.min(3,n)).slice(2)+(n>3?_.Bi(0,n-3):""));case "E":return I=H.getDay(),n>=4?V.JSC$9161_dateTimeSymbols_.WEEKDAYS[I]:V.JSC$9161_dateTimeSymbols_.SHORTWEEKDAYS[I];case "a":return IA0(V,T);case "b":return IA0(V,T);case "B":return IA0(V,T);case "h":return vJ(T),
uc(V,_.Bi(Az(T)%12||12,n));case "K":return vJ(T),uc(V,_.Bi(Az(T)%12,n));case "H":return vJ(T),uc(V,_.Bi(Az(T),n));case "c":a:switch(I=H.getDay(),n){case 5:n=V.JSC$9161_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[I];break a;case 4:n=V.JSC$9161_dateTimeSymbols_.STANDALONEWEEKDAYS[I];break a;case 3:n=V.JSC$9161_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[I];break a;default:n=uc(V,_.Bi(I,1))}return n;case "L":a:switch(I=H.getMonth(),n){case 5:n=V.JSC$9161_dateTimeSymbols_.STANDALONENARROWMONTHS[I];break a;
case 4:n=V.JSC$9161_dateTimeSymbols_.STANDALONEMONTHS[I];break a;case 3:n=V.JSC$9161_dateTimeSymbols_.STANDALONESHORTMONTHS[I];break a;default:n=uc(V,_.Bi(I+1,n))}return n;case "Q":return I=Math.floor(H.getMonth()/3),n<4?V.JSC$9161_dateTimeSymbols_.SHORTQUARTERS[I]:V.JSC$9161_dateTimeSymbols_.QUARTERS[I];case "d":return uc(V,_.Bi(H.getDate(),n));case "m":return vJ(T),uc(V,_.Bi(T.getMinutes?T.getMinutes():0,n));case "s":return vJ(T),uc(V,_.Bi(T.getSeconds(),n));case "v":return(x||qr(I.getTimezoneOffset())).timeZoneId_;
case "V":return V=x||qr(I.getTimezoneOffset()),n<=2?V.timeZoneId_:Cfv(V,I)>0?V.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?V.tzNamesExt_.DST_GENERIC_LOCATION:V.tzNamesExt_.DST_GENERIC_LOCATION:V.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?V.tzNamesExt_.STD_GENERIC_LOCATION:V.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return I=T_i(T.getFullYear(),T.getMonth(),T.getDate(),V.JSC$9161_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,V.JSC$9161_dateTimeSymbols_.FIRSTDAYOFWEEK),uc(V,_.Bi(Math.floor(Math.round((I-(new Date((new Date(I)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,n));case "z":return V=x||qr(I.getTimezoneOffset()),n<4?V.tzNames_[Cfv(V,I)>0?2:0]:V.tzNames_[Cfv(V,I)>0?3:1];case "Z":return l=x||qr(I.getTimezoneOffset()),n<4?(n=-aRW(l,I),V=[n<0?"-":"+"],n=Math.abs(n),V.push(_.Bi(Math.floor(n/60)%100,2),_.Bi(n%60,2)),n=V.join("")):n=uc(V,OmJ(aRW(l,I))),n;default:return""}};var Hto=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Tji=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,BCg=function(V){this.patternParts_=[];this.JSC$9170_dateTimeSymbols_=EJ;if(typeof V=="number"){V>11&&(V=10);if(V<4)var l=this.JSC$9170_dateTimeSymbols_.DATEFORMATS[V];else V<8?l=this.JSC$9170_dateTimeSymbols_.TIMEFORMATS[V-4]:(l=this.JSC$9170_dateTimeSymbols_.DATETIMEFORMATS[V-8],l=l.replace("{1}",this.JSC$9170_dateTimeSymbols_.DATEFORMATS[V-8]),l=l.replace("{0}",this.JSC$9170_dateTimeSymbols_.TIMEFORMATS[V-
8]));Bjo(this,l)}else Bjo(this,V)},Bjo=function(V,l){for(var I=!1,H="",T=0;T<l.length;T++){var x=l.charAt(T);
if(Hto.test(x))for(H.length>0&&(V.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1}),H=""),V.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});T<l.length-1&&l.charAt(T+1)==" ";)T++;else if(I)x=="'"?T+1<l.length&&l.charAt(T+1)=="'"?(H+="'",T++):I=!1:H+=x;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(x)>=0){H.length>0&&(V.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1}),H="");for(var n=l.charAt(T),w=T+1;w<l.length&&l.charAt(w)==n;)w++;n=w-T;n<=0?w=!1:(w="MydhHmsSDkK".indexOf(x),
w=w>0||w==0&&n<3);V.patternParts_.push({text:x,count:n,abutStart:!1,numeric:w});T+=n-1}else x=="'"?T+1<l.length&&l.charAt(T+1)=="'"?(H+="'",T++):I=!0:H+=x}H.length>0&&V.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1});l=!1;for(I=0;I<V.patternParts_.length;I++)V.patternParts_[I].numeric?!l&&I+1<V.patternParts_.length&&V.patternParts_[I+1].numeric&&(l=!0,V.patternParts_[I].abutStart=!0):l=!1};
BCg.prototype.parse=function(V,l,I){var H=!1,T=!1;I&&(H=I.predictive||!1,T=I.validate||!1);if(H)for(I=0;I<this.patternParts_.length;I++){var x=this.patternParts_[I];if(x.count>0&&("abBhHkKm".indexOf(x.text.charAt(0))<0||x.count>2||x.abutStart))throw Error("ae`"+x.text.charAt(0));}x=new xRW;I=[0];x.dayPeriodIndex=-1;for(var n=0;n<this.patternParts_.length&&!(H&&I[0]>=V.length);n++){if(this.patternParts_[n].count==0){a:{var w=V;var N=I,L=this.patternParts_[n],e=H;if(L.text.match(Hto)!=null){if(L=N[0],
URw(w,N),N[0]>L){w=!0;break a}}else{if(w.indexOf(L.text,N[0])==N[0]){N[0]+=L.text.length;w=!0;break a}if(e&&L.text.indexOf(w.substring(N[0]))==0){N[0]+=w.length-N[0];w=!0;break a}}w=!1}if(w)continue;return 0}if(this.patternParts_[n].abutStart){a:{N=V;L=I;e=n;var k=L[0],X=0;for(w=e;w<this.patternParts_.length;w++){var r=this.patternParts_[w],E=r.count;if(E===0)break;if(w==e&&(E-=X,X++,E==0)){w=0;break a}var D=w>e&&r.numeric,Z=L[0];if(!n7W(this,N,L,r,E,x,!1)||D&&L[0]-Z<E)w=e-1,L[0]=k}w-=e}if(w<=0)return 0;
n+=w-1}else if(!n7W(this,V,I,this.patternParts_[n],0,x,H))return 0}a:{V=T;if(l==null)throw Error("be");x.era!=void 0&&x.year!=void 0&&x.era==0&&x.year>0&&(x.year=-(x.year-1));x.year!=void 0&&l.setFullYear(x.year);H=l.getDate();l.setDate(1);x.month!=void 0&&l.setMonth(x.month);x.day!=void 0?l.setDate(x.day):(T=SyW(l.getFullYear(),l.getMonth()),l.setDate(H>T?T:H));typeof l.setHours==="function"&&(x.hours==void 0&&(x.hours=l.getHours()),x.hours<12&&(x.ampm!=void 0&&x.ampm>0?x.hours+=12:x.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(x.dayPeriodName)||["night1","night2"].includes(x.dayPeriodName)&&x.hours>=6)&&(x.hours+=12)),l.setHours(x.hours));typeof l.setMinutes==="function"&&x.minutes!=void 0&&l.setMinutes(x.minutes);typeof l.setSeconds==="function"&&x.seconds!=void 0&&l.setSeconds(x.seconds);typeof l.setMilliseconds==="function"&&x.milliseconds!=void 0&&l.setMilliseconds(x.milliseconds);if(V&&(x.year&&x.year!=l.getFullYear()||x.month&&x.month!=
l.getMonth()||x.day&&x.day!=l.getDate()||x.hours&&x.hours>=24||x.minutes&&x.minutes>=60||x.seconds&&x.seconds>=60||x.milliseconds&&x.milliseconds>=1E3))l=!1;else{x.tzOffset!=void 0&&l.setTime(l.getTime()+(x.tzOffset-l.getTimezoneOffset())*60*1E3);x.ambiguousYear&&(V=new Date,V.setFullYear(V.getFullYear()-80),l.getTime()<V.getTime()&&l.setFullYear(V.getFullYear()+100));if(x.dayOfWeek!=void 0)if(x.day==void 0)x=(7+x.dayOfWeek-l.getDay())%7,x>3&&(x-=7),V=l.getMonth(),l.setDate(l.getDate()+x),l.getMonth()!=
V&&l.setDate(l.getDate()+(x>0?-7:7));else if(x.dayOfWeek!=l.getDay()){l=!1;break a}l=!0}}return l?I[0]:0};
var n7W=function(V,l,I,H,T,x,n){URw(l,I);if(H.numeric&&T>0&&I[0]+T>l.length)return!1;switch(H.text.charAt(0)){case "G":return On(l,I,[V.JSC$9170_dateTimeSymbols_.ERAS],function(w){return x.era=w}),!0;
case "M":case "L":return $RB(V,l,I,T,H,x);case "E":return On(l,I,[V.JSC$9170_dateTimeSymbols_.WEEKDAYS,V.JSC$9170_dateTimeSymbols_.SHORTWEEKDAYS],function(w){return x.dayOfWeek=w});
case "B":case "b":return T=[],V=[[].concat(V.JSC$9170_dateTimeSymbols_.AMPMS)],T.push("isAm"),T.push("isPm"),l=On(l,I,V,function(w){return x.dayPeriodIndex=w},n),x.dayPeriodName=T[x.dayPeriodIndex],n?l:!0;
case "a":return l=On(l,I,[V.JSC$9170_dateTimeSymbols_.AMPMS],function(w){return x.ampm=w},n),n?l:!0;
case "y":return dRa(V,l,I,H,T,x);case "Q":return On(l,I,[V.JSC$9170_dateTimeSymbols_.QUARTERS,V.JSC$9170_dateTimeSymbols_.SHORTQUARTERS],function(w){x.month=w*3;x.day=1});
case "d":return CD(V,l,I,H,T,function(w){x.day=w}),!0;
case "S":return wX3(V,l,I,T,x);case "h":case "K":case "H":case "k":return l=CD(V,l,I,H,T,function(w){x.hours=H.text.charAt(0)==="h"&&w===12?0:w},n),n?l:!0;
case "m":return l=CD(V,l,I,H,T,function(w){x.minutes=w},n),n?l:!0;
case "s":return CD(V,l,I,H,T,function(w){x.seconds=w}),!0;
case "z":case "Z":case "v":return NjZ(V,l,I,x);default:return!1}},dRa=function(V,l,I,H,T,x){var n=I[0];
T=aY(V,l,I,T);T===null&&(T=aY(V,l,I,0,!0));if(T===null)return!1;T>=0&&I[0]-n==2&&H.count==2?(V=T,l=(new Date).getFullYear()-80,I=l%100,x.ambiguousYear=V==I,V+=Math.floor(l/100)*100+(V<I?100:0),x.year=V):x.year=T;return!0},$RB=function(V,l,I,H,T,x){return T.numeric&&CD(V,l,I,T,H,function(n){x.month=n-1})?!0:On(l,I,[V.JSC$9170_dateTimeSymbols_.MONTHS,
V.JSC$9170_dateTimeSymbols_.STANDALONEMONTHS,V.JSC$9170_dateTimeSymbols_.SHORTMONTHS,V.JSC$9170_dateTimeSymbols_.STANDALONESHORTMONTHS],function(n){x.month=n})},wX3=function(V,l,I,H,T){var x=I[0];
V=aY(V,l,I,H);if(V===null)return!1;I=I[0]-x;T.milliseconds=I<3?V*Math.pow(10,3-I):Math.round(V/Math.pow(10,I-3));return!0},NjZ=function(V,l,I,H){l.indexOf("GMT",I[0])==I[0]&&(I[0]+=3);
if(I[0]>=l.length)return H.tzOffset=0,!0;var T=I[0],x=aY(V,l,I,0,!0);if(x===null)return!1;if(I[0]<l.length&&l.charAt(I[0])==":"){var n=x*60;I[0]++;x=aY(V,l,I,0);if(x===null)return!1;n+=x}else n=x,n=n<24&&I[0]-T<=3?n*60:n%100+n/100*60;H.tzOffset=-n;return!0},CD=function(V,l,I,H,T,x,n){n=n||!1;
var w=I[0];V=aY(V,l,I,T);if(V===null)return!1;if(n&&I[0]-w<H.count){if(I[0]<l.length)return!1;V*=Math.pow(10,H.count-(I[0]-w))}x(V);return!0},On=function(V,l,I,H,T){T=T||!1;
for(var x,n=0;n<I.length;n++){x=l;for(var w=I[n],N=T,L=0,e=null,k=V.substring(x[0]).toLowerCase(),X=0;X<w.length;X++){var r=w[X].toLowerCase();if(N&&r.indexOf(k)==0){L=k.length;e=X;break}w[X].length>L&&k.indexOf(r)==0&&(L=w[X].length,e=X)}e!==null&&(x[0]+=L);x=e;if(x!==null)return H(x),!0}return!1},URw=function(V,l){(V=V.substring(l[0]).match(Tji))&&(l[0]+=V[0].length)},aY=function(V,l,I,H,T){l=H>0?l.substring(0,I[0]+H):l;
T=T||!1;if(V.JSC$9170_dateTimeSymbols_.ZERODIGIT){H=[];for(var x=I[0];x<l.length;x++){var n=l.charCodeAt(x)-V.JSC$9170_dateTimeSymbols_.ZERODIGIT;H.push(0<=n&&n<=9?String.fromCharCode(n+48):l.charAt(x))}l=H.join("")}else l=l.substring(I[0]);V=l.match(new RegExp("^"+(T?"[+-]?":"")+"\\d+"));if(!V)return null;I[0]+=V[0].length;return parseInt(V[0],10)},xRW=function(){};
xRW.prototype.ambiguousYear=!1;_.Kc0={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 jNa={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"},YIv=jNa,LcZ=jNa;LcZ=YIv=jNa;var kG0,fD,mf,A$q,gQ,enB;
_.c4=function(V,l,I,H){var T;if(T=l){a:if(l&&l.length===3){for(T=0;T<3;T++){var x=l[T];if(x<"A"||x>"Z"&&x<"a"||x>"z"){T=!1;break a}}T=!0}else T=!1;T=!T}if(T)throw new TypeError("ce");this.intlCurrencyCode_=l?l.toUpperCase():null;this.currencyStyle_=I||0;this.overrideNumberFormatSymbols_=H||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_=fD(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof V==="number")switch(V){case 1:gQ(this,fD(this).DECIMAL_PATTERN);break;case 2:gQ(this,fD(this).SCIENTIFIC_PATTERN);break;case 3:gQ(this,fD(this).PERCENT_PATTERN);break;case 4:V=fD(this).CURRENCY_PATTERN;l=["0"];if(I=
pD[mf(this)]){I=I[0]&7;if(I>0)for(l.push("."),H=0;H<I;H++)l.push("0");V=V.replace(/0.00/g,l.join(""))}gQ(this,V);break;case 5:enB(this,1);break;case 6:enB(this,2);break;default:throw Error("fe");}else gQ(this,V)};
kG0=!1;fD=function(V){return V.overrideNumberFormatSymbols_||(kG0?LcZ:YIv)};
mf=function(V){return V.intlCurrencyCode_||fD(V).DEF_CURRENCY_CODE};
A$q=function(V,l){if(l>308)throw Error("ee`"+l);V.maximumFractionDigits_=l;return V};
gQ=function(V,l){var I=[0];V.positivePrefix_=FcE(V,l,I);for(var H=I[0],T=-1,x=0,n=0,w=0,N=-1,L=l.length,e=!0;I[0]<L&&e;I[0]++)switch(l.charAt(I[0])){case "#":n>0?w++:x++;N>=0&&T<0&&N++;break;case "0":if(w>0)throw Error("le`"+l);n++;N>=0&&T<0&&N++;break;case ",":N>0&&V.groupingArray_.push(N);N=0;break;case ".":if(T>=0)throw Error("me`"+l);T=x+n+w;break;case "E":if(V.useExponentialNotation_)throw Error("ne`"+l);V.useExponentialNotation_=!0;V.minExponentDigits_=0;I[0]+1<L&&l.charAt(I[0]+1)=="+"&&(I[0]++,
V.useSignForPositiveExponent_=!0);for(;I[0]+1<L&&l.charAt(I[0]+1)=="0";)I[0]++,V.minExponentDigits_++;if(x+n<1||V.minExponentDigits_<1)throw Error("oe`"+l);e=!1;break;default:I[0]--,e=!1}n==0&&x>0&&T>=0&&(n=T,n==0&&n++,w=x-n,x=n-1,n=1);if(T<0&&w>0||T>=0&&(T<x||T>x+n)||N==0)throw Error("pe`"+l);w=x+n+w;V.maximumFractionDigits_=T>=0?w-T:0;T>=0&&(V.minimumFractionDigits_=x+n-T,V.minimumFractionDigits_<0&&(V.minimumFractionDigits_=0));V.minimumIntegerDigits_=(T>=0?T:w)-x;V.useExponentialNotation_&&(V.maximumIntegerDigits_=
x+V.minimumIntegerDigits_,V.maximumFractionDigits_==0&&V.minimumIntegerDigits_==0&&(V.minimumIntegerDigits_=1));V.groupingArray_.push(Math.max(0,N));V.decimalSeparatorAlwaysShown_=T==0||T==w;H=I[0]-H;V.positiveSuffix_=FcE(V,l,I);I[0]<l.length&&l.charAt(I[0])==";"?(I[0]++,V.multiplier_!=1&&(V.negativePercentSignExpected_=!0),V.negativePrefix_=FcE(V,l,I),I[0]+=H,V.negativeSuffix_=FcE(V,l,I)):(V.negativePrefix_+=V.positivePrefix_,V.negativeSuffix_+=V.positiveSuffix_)};
enB=function(V,l){V.compactStyle_=l;gQ(V,fD(V).DECIMAL_PATTERN);V.minimumFractionDigits_=0;A$q(V,2);if(V.minimumFractionDigits_>0)throw Error("de");V.significantDigits_=2};
_.c4.prototype.parse=function(V,l){l=l||[0];if(this.compactStyle_!==0)throw Error("ge");V=V.replace(/ |\u202f/g,"\u00a0");var I=V.indexOf(this.positivePrefix_,l[0])==l[0],H=V.indexOf(this.negativePrefix_,l[0])==l[0];I&&H&&(this.positivePrefix_.length>this.negativePrefix_.length?H=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(I=!1));I?l[0]+=this.positivePrefix_.length:H&&(l[0]+=this.negativePrefix_.length);if(V.indexOf(fD(this).INFINITY,l[0])==l[0]){l[0]+=fD(this).INFINITY.length;var T=
Infinity}else{T=V;var x=!1,n=!1,w=!1,N=-1,L=1,e=fD(this).DECIMAL_SEP,k=fD(this).GROUP_SEP,X=fD(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("he");k=k.replace(/\u202f/g,"\u00a0");for(var r="";l[0]<T.length;l[0]++){var E=T.charAt(l[0]),D=XX0(this,E);if(D>=0&&D<=9)r+=D,w=!0;else if(E==e.charAt(0)){if(x||n)break;r+=".";x=!0}else if(E==k.charAt(0)&&("\u00a0"!=k.charAt(0)||l[0]+1<T.length&&XX0(this,T.charAt(l[0]+1))>=0)){if(x||n)break}else if(E==X.charAt(0)){if(n)break;r+="E";n=!0;N=l[0]}else if(E==
"+"||E=="-"){if(w&&N!=l[0]-1)break;r+=E}else if(this.multiplier_==1&&E==fD(this).PERCENT.charAt(0)){if(L!=1)break;L=100;if(w){l[0]++;break}}else if(this.multiplier_==1&&E==fD(this).PERMILL.charAt(0)){if(L!=1)break;L=1E3;if(w){l[0]++;break}}else break}this.multiplier_!=1&&(L=this.multiplier_);T=parseFloat(r)/L}if(I){if(V.indexOf(this.positiveSuffix_,l[0])!=l[0])return NaN;l[0]+=this.positiveSuffix_.length}else if(H){if(V.indexOf(this.negativeSuffix_,l[0])!=l[0])return NaN;l[0]+=this.negativeSuffix_.length}return H?
-T:T};
_.c4.prototype.format=function(V){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ie");if(isNaN(V))return fD(this).NAN;var l=[];var I=V;if(this.compactStyle_==0)I=ic;else{I=Math.abs(I);var H=znZ(this,I<=1?0:yoZ(I)).divisorBase;I=znZ(this,H+yoZ(tzZ(this,Vn(I,-H)).intValue))}V=Vn(V,-I.divisorBase);(H=V<0||V==0&&1/V<0)?I.negative_prefix?l.push(I.negative_prefix):(l.push(I.prefix),l.push(this.negativePrefix_)):(l.push(I.prefix),l.push(this.positivePrefix_));if(isFinite(V))if(V*=
H?-1:1,V*=this.multiplier_,this.useExponentialNotation_){var T=V;if(T==0)rob(this,T,this.minimumIntegerDigits_,l),GGZ(this,0,l);else{var x=Math.floor(Math.log(T)/Math.log(10)+2E-15);T=Vn(T,-x);var n=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(n=x%this.maximumIntegerDigits_,n<0&&(n=this.maximumIntegerDigits_+n),T=Vn(T,n),x-=n,n=1):this.minimumIntegerDigits_<1?(x++,T=Vn(T,-1)):(x-=this.minimumIntegerDigits_-1,T=Vn(T,this.minimumIntegerDigits_-
1));rob(this,T,n,l);GGZ(this,x,l)}}else rob(this,V,this.minimumIntegerDigits_,l);else l.push(fD(this).INFINITY);H?I.negative_suffix?l.push(I.negative_suffix):(isFinite(V)&&l.push(I.suffix),l.push(this.negativeSuffix_)):(isFinite(V)&&l.push(I.suffix),l.push(this.positiveSuffix_));return l.join("")};
var tzZ=function(V,l){var I=Vn(l,V.maximumFractionDigits_);V.significantDigits_>0&&(I=E7i(I,V.significantDigits_,V.maximumFractionDigits_));I=Math.round(I);if(isFinite(I)){var H=Math.floor(Vn(I,-V.maximumFractionDigits_));I=Math.floor(I-Vn(H,V.maximumFractionDigits_));if(I<0||I>=Vn(1,V.maximumFractionDigits_))H=Math.round(l),I=0}else H=l,I=0;return{intValue:H,fracValue:I}},rob=function(V,l,I,H){if(V.minimumFractionDigits_>V.maximumFractionDigits_)throw Error("ie");
H||(H=[]);l=tzZ(V,l);var T=l.intValue,x=l.fracValue,n=V.minimumFractionDigits_>0||x>0||!1;l=V.minimumFractionDigits_;n&&(l=V.minimumFractionDigits_);for(var w="",N=T;N>1E20;)w="0"+w,N=Math.round(Vn(N,-1));w=N+w;var L=fD(V).DECIMAL_SEP;N=fD(V).ZERO_DIGIT.codePointAt(0);var e=w.length,k=0;if(T>0||I>0){for(T=e;T<I;T++)H.push(String.fromCodePoint(N));if(V.groupingArray_.length>=2)for(I=1;I<V.groupingArray_.length;I++)k+=V.groupingArray_[I];I=e-k;if(I>0){T=V.groupingArray_;k=e=0;for(var X,r=fD(V).GROUP_SEP,
E=w.length,D=0;D<E;D++)if(H.push(String.fromCodePoint(N+Number(w.charAt(D)))),E-D>1)if(X=T[k],D<I){var Z=I-D;(X===1||X>0&&Z%X===1)&&H.push(r)}else k<T.length&&(D===I?k+=1:X===D-I-e+1&&(H.push(r),e+=X,k+=1))}else{I=w;w=V.groupingArray_;T=fD(V).GROUP_SEP;X=I.length;r=[];for(e=w.length-1;e>=0&&X>0;e--){k=w[e];for(E=0;E<k&&X-E-1>=0;E++)r.push(String.fromCodePoint(N+Number(I.charAt(X-E-1))));X-=k;X>0&&r.push(T)}H.push.apply(H,r.reverse())}}else n||H.push(String.fromCodePoint(N));(V.decimalSeparatorAlwaysShown_||
n)&&H.push(L);x=String(x);n=x.split("e+");n.length==2&&(x=String(E7i(parseFloat(n[0]),V.significantDigits_,1)),x=x.replace(".",""),x+=(0,_.oJo)("0",parseInt(n[1],10)-x.length+1));V.maximumFractionDigits_+1>x.length&&(x="1"+(0,_.oJo)("0",V.maximumFractionDigits_-x.length)+x);for(V=x.length;x.charAt(V-1)=="0"&&V>l+1;)V--;for(l=1;l<V;l++)H.push(String.fromCodePoint(N+Number(x.charAt(l))))},GGZ=function(V,l,I){I.push(fD(V).EXP_SYMBOL);
l<0?(l=-l,I.push(fD(V).MINUS_SIGN)):V.useSignForPositiveExponent_&&I.push(fD(V).PLUS_SIGN);l=""+l;for(var H=fD(V).ZERO_DIGIT,T=l.length;T<V.minExponentDigits_;T++)I.push(H);V=H.codePointAt(0)-Jov;for(H=0;H<l.length;H++)I.push(String.fromCodePoint(V+l.codePointAt(H)))},XX0=function(V,l){l=l.codePointAt(0);
if(48<=l&&l<58)return l-48;V=fD(V).ZERO_DIGIT.codePointAt(0);return V<=l&&l<V+10?l-V:-1},Jov="0".codePointAt(0),FcE=function(V,l,I){for(var H="",T=!1,x=l.length;I[0]<x;I[0]++){var n=l.charAt(I[0]);
if(n=="'")I[0]+1<x&&l.charAt(I[0]+1)=="'"?(I[0]++,H+="'"):T=!T;else if(T)H+=n;else switch(n){case "#":case "0":case ",":case ".":case ";":return H;case "\u00a4":if(I[0]+1<x&&l.charAt(I[0]+1)=="\u00a4")I[0]++,H+=mf(V);else switch(V.currencyStyle_){case 0:n=mf(V);H+=n in pD?pD[n][1]:n;break;case 2:n=mf(V);var w=pD[n];H+=w?n==w[1]?n:n+" "+w[1]:n;break;case 1:n=mf(V),H+=n in pD?pD[n][2]:n}break;case "%":if(!V.negativePercentSignExpected_&&V.multiplier_!=1)throw Error("je");if(V.negativePercentSignExpected_&&
V.multiplier_!=100)throw Error("ke");V.multiplier_=100;V.negativePercentSignExpected_=!1;H+=fD(V).PERCENT;break;case "\u2030":if(!V.negativePercentSignExpected_&&V.multiplier_!=1)throw Error("je");if(V.negativePercentSignExpected_&&V.multiplier_!=1E3)throw Error("ke");V.multiplier_=1E3;V.negativePercentSignExpected_=!1;H+=fD(V).PERMILL;break;default:H+=n}}return H},ic={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},znZ=function(V,l){V=V.compactStyle_==1?sn.COMPACT_DECIMAL_SHORT_PATTERN:sn.COMPACT_DECIMAL_LONG_PATTERN;V==null&&(V=sn.COMPACT_DECIMAL_SHORT_PATTERN);if(l<3)return ic;l=Math.min(14,l);var I=V[Vn(1,l)];for(--l;!I&&l>=3;)I=V[Vn(1,l)],l--;if(!I)return ic;I=I.other;var H=V="",T=I.indexOf(";");T>=0&&(I=I.substring(0,T),T=I.substring(T+1))&&(H=/([^0]*)(0+)(.*)/.exec(T),V=H[1],H=H[3]);return I&&I!="0"?(I=/([^0]*)(0+)(.*)/.exec(I))?{divisorBase:l+
1-(I[2].length-1),negative_prefix:V,negative_suffix:H,prefix:I[1],suffix:I[3]}:ic:ic},yoZ=function(V){if(!isFinite(V))return V>0?V:0;
for(var l=0;(V/=10)>=1;)l++;return l},Vn=function(V,l){if(!V||!isFinite(V)||l==0)return V;
V=String(V).split("e");return parseFloat(V[0]+"e"+(parseInt(V[1]||0,10)+l))},o70=function(V,l){return V&&isFinite(V)?Vn(Math.round(Vn(V,l)),-l):V},E7i=function(V,l,I){if(!V)return V;
l=l-yoZ(V)-1;return l<-I?o70(V,-I):o70(V,l)};var hno=function(V){return V%10==1&&V%100!=11?"one":V%10==2&&V%100!=12?"two":V%10==3&&V%100!=13?"few":"other"},Piv=hno;
Piv=hno;var DRw;DRw=function(V,l){var I=V|0;if(void 0===l){l=Math;var H=l.min,T=V+"",x=T.indexOf(".");l=H.call(l,x===-1?0:T.length-x-1,3)}H=Math.pow(10,l);V={v:l,f:(V*H|0)%H};return I==1&&V.v==0?"one":"other"};
_.sl=DRw;_.sl=DRw;var Ztw,SIw,RnB,cow,Wcb;_.QNi=function(V){this.JSC$9213_pattern_=V;this.parsedPattern_=this.literals_=this.initialLiterals_=null;V=YIv;var l=sn;if(Ztw!==V||SIw!==l)Ztw=V,SIw=l,RnB=new _.c4(1);this.numberFormatter_=RnB};
Ztw=null;SIw=null;RnB=null;cow=RegExp("'([{}#].*?)'","g");Wcb=RegExp("''","g");
_.QNi.prototype.format=function(V){if(this.JSC$9213_pattern_){this.initialLiterals_=[];var l=btW(this,this.JSC$9213_pattern_);this.parsedPattern_=qIN(this,l);this.JSC$9213_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.uN(this.initialLiterals_),l=[],MzB(this,this.parsedPattern_,V,!1,l),V=l.join("");this.literals_.length>0;)V=V.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else V="";return V};
var MzB=function(V,l,I,H,T){for(var x=0;x<l.length;x++)switch(l[x].type){case 4:T.push(l[x].value);break;case 3:var n=l[x].value;var w=V,N=T,L=I[n];L===void 0?N.push("Undefined parameter - "+n):(w.literals_.push(L),N.push(w.buildPlaceholder_(w.literals_)));break;case 2:n=l[x].value;w=V;N=I;L=H;var e=T,k=n.argumentIndex;N[k]===void 0?e.push("Undefined parameter - "+k):(k=n[N[k]],k===void 0&&(k=n.other),MzB(w,k,N,L,e));break;case 0:n=l[x].value;sNw(V,n,I,_.sl,H,T);break;case 1:n=l[x].value,sNw(V,n,
I,Piv,H,T)}},sNw=function(V,l,I,H,T,x){var n=l.argumentIndex,w=l.argumentOffset,N=+I[n];
isNaN(N)?x.push("Undefined or invalid parameter - "+n):(w=N-w,n=l[I[n]],n===void 0&&(H=H(Math.abs(w)),n=l[H],n===void 0&&(n=l.other)),l=[],MzB(V,n,I,T,l),I=l.join(""),T?x.push(I):(V=V.numberFormatter_.format(w),x.push(I.replace(/#/g,V))))},btW=function(V,l){var I=V.initialLiterals_,H=V.buildPlaceholder_.bind(V);
l=l.replace(Wcb,function(){I.push("'");return H(I)});
return l=l.replace(cow,function(T,x){I.push(x);return H(I)})},pXb=function(V){var l=0,I=[],H=[],T=/[{}]/g;
T.lastIndex=0;for(var x;x=T.exec(V);){var n=x.index;x[0]=="}"?(I.pop(),I.length==0&&(x={type:1},x.value=V.substring(l,n),H.push(x),l=n+1)):(I.length==0&&(l=V.substring(l,n),l!=""&&H.push({type:0,value:l}),l=n+1),I.push("{"))}V=V.substring(l);V!=""&&H.push({type:0,value:V});return H},AoZ=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,uow=/^\s*(\w+)\s*,\s*selectordinal\s*,/,v7o=/^\s*(\w+)\s*,\s*select\s*,/,qIN=function(V,l){var I=[];
l=pXb(l);for(var H=0;H<l.length;H++){var T={};if(0==l[H].type)T.type=4,T.value=l[H].value;else if(1==l[H].type){var x=l[H].value;switch(AoZ.test(x)?0:uow.test(x)?1:v7o.test(x)?2:/^\s*\w+\s*/.test(x)?3:5){case 2:T.type=2;T.value=OtN(V,l[H].value);break;case 0:T.type=0;T.value=CiE(V,l[H].value);break;case 1:T.type=1;T.value=aAN(V,l[H].value);break;case 3:T.type=3,T.value=l[H].value}}I.push(T)}return I},OtN=function(V,l){var I="";
l=l.replace(v7o,function(w,N){I=N;return""});
var H={};H.argumentIndex=I;l=pXb(l);for(var T=0;T<l.length;){var x=l[T].value;T++;var n=void 0;1==l[T].type&&(n=qIN(V,l[T].value));H[x.replace(/\s/g,"")]=n;T++}return H},CiE=function(V,l){var I="",H=0;
l=l.replace(AoZ,function(N,L,e){I=L;e&&(H=parseInt(e,10));return""});
var T={};T.argumentIndex=I;T.argumentOffset=H;l=pXb(l);for(var x=0;x<l.length;){var n=l[x].value;x++;var w=void 0;1==l[x].type&&(w=qIN(V,l[x].value));T[n.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=w;x++}return T},aAN=function(V,l){var I="";
l=l.replace(uow,function(w,N){I=N;return""});
var H={};H.argumentIndex=I;H.argumentOffset=0;l=pXb(l);for(var T=0;T<l.length;){var x=l[T].value;T++;var n=void 0;1==l[T].type&&(n=qIN(V,l[T].value));H[x.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=n;T++}return H};
_.QNi.prototype.buildPlaceholder_=function(V){return"\ufddf_"+(V.length-1).toString(10)+"_"};var fAZ;
fAZ={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 LhK=function(){this.rdtfSymbols_=g7Z||fAZ;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
LhK.prototype.format=function(V,l){a:{l=mRb(this,l);switch(this.style_){case 2:if(l.NARROW!=void 0){l=l.NARROW;break a}case 1:if(l.SHORT!=void 0){l=l.SHORT;break a}default:l=l.LONG;break a}l=void 0}if(!this.alwaysNumeric_&&l&&l.R&&l.R[""+V])V=l.R[""+V];else if(l){var I=Math.abs(V);V=(new _.QNi("{N,plural,"+(V>0||V==0&&1/V==Infinity?l.F:l.P)+"}")).format({N:I})}else V="";return V};
var mRb=function(V,l){switch(l){default:case 0:return V.rdtfSymbols_.YEAR;case 1:return V.rdtfSymbols_.QUARTER;case 2:return V.rdtfSymbols_.MONTH;case 3:return V.rdtfSymbols_.WEEK;case 4:return V.rdtfSymbols_.DAY;case 5:return V.rdtfSymbols_.HOUR;case 6:return V.rdtfSymbols_.MINUTE;case 7:return V.rdtfSymbols_.SECOND}};var itZ=function(V,l,I,H,T,x,n,w){this.x0=V;this.y0=l;this.x1=I;this.y1=H;this.x2=T;this.y2=x;this.x3=n;this.y3=w};
itZ.prototype.clone=function(){return new itZ(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
itZ.prototype.equals=function(V){return this.x0==V.x0&&this.y0==V.y0&&this.x1==V.x1&&this.y1==V.y1&&this.x2==V.x2&&this.y2==V.y2&&this.x3==V.x3&&this.y3==V.y3};
var VUW=function(V,l){if(l==0)return V.x0;if(l==1)return V.x3;var I=hP(V.x0,V.x1,l),H=hP(V.x1,V.x2,l);V=hP(V.x2,V.x3,l);I=hP(I,H,l);H=hP(H,V,l);return hP(I,H,l)},ltE=function(V,l){var I=(l-V.x0)/(V.x3-V.x0);
if(I<=0)return 0;if(I>=1)return 1;for(var H=0,T=1,x=0,n=0;n<8;n++){x=VUW(V,I);var w=(VUW(V,I+1E-6)-x)/1E-6;if(Math.abs(x-l)<1E-6)return I;if(Math.abs(w)<1E-6)break;else x<l?H=I:T=I,I-=(x-l)/w}for(n=0;Math.abs(x-l)>1E-6&&n<8;n++)x<l?(H=I,I=(I+T)/2):(T=I,I=(I+H)/2),x=VUW(V,I);return I};var lW=function(){_.tm.call(this);this.JSC$9234_name_="closure_frame"+ItN++;this.iframesForDisposal_=[];HaZ[this.JSC$9234_name_]=this},IR;
_.Uk(lW,_.tm);var HaZ={},ItN=0,Tqw=function(V,l){var I=kp(V);_.GYv(l,function(H,T){Array.isArray(H)||(H=[H]);_.cO(H,function(x){x=I.JSC$7237_createDom("INPUT",{type:"hidden",name:T,value:x});V.appendChild(x)})})};
_.B=lW.prototype;_.B.JSC$9236_form_=null;_.B.JSC$9236_iframe_=null;_.B.iframeName_=null;_.B.nextIframeId_=0;_.B.JSC$9236_active_=!1;_.B.complete_=!1;_.B.success_=!1;_.B.lastContent_=null;_.B.JSC$9236_lastErrorCode_=0;_.B.iframeDisposalTimer_=null;
_.B.send=function(V,l,I,H){if(this.JSC$9236_active_)throw Error("qe");V=new _.OA(V);l=l?l.toUpperCase():"GET";I&&_.$N(V);IR||(IR=_.Su("FORM"),IR.acceptCharset="utf-8",I=IR.style,I.position="absolute",I.visibility="hidden",I.top=I.left="-10px",I.width=I.height="10px",I.overflow="hidden",document.body.appendChild(IR));this.JSC$9236_form_=IR;l=="GET"&&Tqw(this.JSC$9236_form_,V.JSC$7896_queryData_);H&&Tqw(this.JSC$9236_form_,H);I=V.toString();I=Ed1(I);H=this.JSC$9236_form_;I=_.Wh(Eq(I));I!==void 0&&(H.action=
I);this.JSC$9236_form_.method=l;Bqb(this);xi3(this)};
_.B.abort=function(V){if(this.JSC$9236_active_){var l=Hd(this);if(l)if(Xt(l))l.removeAllListeners(void 0);else if(l=z1(l)){var I=0,H;for(H in l.listeners)for(var T=l.listeners[H].concat(),x=0;x<T.length;++x)$7(T[x])&&++I}this.success_=this.JSC$9236_active_=this.complete_=!1;this.JSC$9236_lastErrorCode_=V||7;this.dispatchEvent("abort");UiN(this)}};
_.B.disposeInternal=function(){this.JSC$9236_active_&&this.abort();lW.superClass_.disposeInternal.call(this);this.JSC$9236_iframe_&&nFW(this);xi3(this);this.JSC$9236_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9236_form_=null;this.JSC$9236_lastErrorCode_=0;delete HaZ[this.JSC$9234_name_]};
_.B.isComplete=function(){return this.complete_};
_.B.isSuccess=function(){return this.success_};
_.B.isActive=function(){return this.JSC$9236_active_};
_.B.getResponseText=function(){return this.lastContent_};
_.B.getLastError=function(){return _.ToB(this.JSC$9236_lastErrorCode_)};
var Bqb=function(V){V.JSC$9236_active_=!0;V.complete_=!1;V.JSC$9236_lastErrorCode_=0;V.iframeName_=V.JSC$9234_name_+"_"+(V.nextIframeId_++).toString(36);V.JSC$9236_iframe_=kp(V.JSC$9236_form_).JSC$7237_createDom("IFRAME",{name:V.iframeName_,id:V.iframeName_});var l=V.JSC$9236_iframe_.style;l.visibility="hidden";l.width=l.height="10px";l.display="none";_.ja?l.marginTop=l.marginLeft="-10px":(l.position="absolute",l.top=l.left="-10px");EnJ(kp(V.JSC$9236_form_)).body.appendChild(V.JSC$9236_iframe_);l=
V.iframeName_+"_inner";var I=kfN(V.JSC$9236_iframe_);if(document.baseURI){var H=i8(l);H='<head><base href="'+i8(document.baseURI)+'"></head><body><iframe id="'+H+'" name="'+H+'"></iframe>';H=sq(H)}else H=i8(l),H=sq('<body><iframe id="'+H+'" name="'+H+'"></iframe>');I.write(pd(H));_.NR(I.getElementById(l),"load",V.onIframeLoaded_,!1,V);H=LS("TEXTAREA",V.JSC$9236_form_);for(var T=0,x=H.length;T<x;T++){var n=H[T].value;rVN(H[T])!=n&&(_.Ma(H[T],n),H[T].value=n)}H=I.importNode(V.JSC$9236_form_,!0);H.target=
l;H.action=V.JSC$9236_form_.action;I.body.appendChild(H);T=LS("SELECT",V.JSC$9236_form_);x=LS("SELECT",H);n=0;for(var w=T.length;n<w;n++)for(var N=LS("OPTION",T[n]),L=LS("OPTION",x[n]),e=0,k=N.length;e<k;e++)L[e].selected=N[e].selected;T=LS("INPUT",V.JSC$9236_form_);x=LS("INPUT",H);n=0;for(w=T.length;n<w;n++)if(T[n].type=="file"&&T[n].value!=x[n].value){V.JSC$9236_form_.target=l;H=V.JSC$9236_form_;break}try{V.errorHandled_=!1,H.submit(),I.close(),_.Kj&&setTimeout(V.testForFirefoxSilentError_.bind(V),
250)}catch(X){_.y$(I.getElementById(l),"load",V.onIframeLoaded_,!1,V),I.close(),TZ(V,2)}};
lW.prototype.onIframeLoaded_=function(){_.y$(Hd(this),"load",this.onIframeLoaded_,!1,this);try{var V=this.JSC$9236_iframe_?kfN(Hd(this)):null;this.complete_=!0;this.JSC$9236_active_=!1;try{var l=V.body;this.lastContent_=l.textContent||l.innerText}catch(T){var I=1}var H;I||typeof this.errorChecker_!="function"||(H=this.errorChecker_(V))&&(I=4);I?TZ(this,I):(this.success_=!0,this.JSC$9236_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),UiN(this))}catch(T){TZ(this,1)}};
var TZ=function(V,l){V.errorHandled_||(V.success_=!1,V.JSC$9236_active_=!1,V.complete_=!0,V.JSC$9236_lastErrorCode_=l,V.dispatchEvent("complete"),V.dispatchEvent("error"),UiN(V),V.errorHandled_=!0)},UiN=function(V){nFW(V);
xi3(V);V.JSC$9236_form_=null;V.dispatchEvent("ready")},nFW=function(V){var l=V.JSC$9236_iframe_;
l&&(l.onreadystatechange=null,l.onload=null,l.onerror=null,V.iframesForDisposal_.push(l));V.iframeDisposalTimer_&&(clearTimeout(V.iframeDisposalTimer_),V.iframeDisposalTimer_=null);_.Kj?V.iframeDisposalTimer_=setTimeout(V.disposeIframes_.bind(V),2E3):V.disposeIframes_();V.JSC$9236_iframe_=null;V.iframeName_=null};
lW.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var V=this.iframesForDisposal_.pop();_.Yw(V)}};
var xi3=function(V){V.JSC$9236_form_&&V.JSC$9236_form_==IR&&_.ci(V.JSC$9236_form_)},Hd=function(V){return V.JSC$9236_iframe_?kfN(V.JSC$9236_iframe_).getElementById(V.iframeName_+"_inner"):null};
lW.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9236_active_){var V=this.JSC$9236_iframe_?kfN(Hd(this)):null;V&&!flf(V,"documentUri")?(_.y$(Hd(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?TZ(this,3):TZ(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Bd=function(V){return V=="\r"||V=="\n"||V==" "||V=="\t"};var $iZ;_.xY=function(V){this.errorMessage_=null;this.result_=[];this.JSC$9238_buffer_="";this.stack_=[];this.JSC$9238_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!V||!V.deliverMessageAsRawString)};
$iZ={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};_.xY.prototype.isInputValid=function(){return this.streamState_!=3};
_.xY.prototype.done=function(){return this.streamState_===2};
var UM=function(V,l,I){V.streamState_=3;V.errorMessage_="The stream is broken @"+V.JSC$9238_pos_+"/"+I+". With input:\n"+l;throw Error(V.errorMessage_);};
_.xY.prototype.acceptsBinaryInput=function(){return!1};
_.xY.prototype.parse=function(V){function l(){for(;X<V.length;)if(_.Bd(V[X]))X++,x.JSC$9238_pos_++;else break;return X<L}
function I(){for(var E;;){E=V[X++];if(!E)break;x.JSC$9238_pos_++;switch(x.state_){case N.INIT:E==="{"?x.state_=N.OBJECT_OPEN:E==="["?x.state_=N.ARRAY_OPEN:_.Bd(E)||UM(x,V,X);continue;case N.KEY_START:case N.OBJECT_OPEN:if(_.Bd(E))continue;if(x.state_===N.KEY_START)n.push(N.KEY_END);else if(E==="}"){T("{}");x.state_=H();continue}else n.push(N.OBJECT_END);E==='"'?x.state_=N.STRING:UM(x,V,X);continue;case N.KEY_END:case N.OBJECT_END:if(_.Bd(E))continue;E===":"?(x.state_===N.OBJECT_END&&(n.push(N.OBJECT_END),
x.depth_++),x.state_=N.VALUE):E==="}"?(x.depth_--,T(),x.state_=H()):E===","?(x.state_===N.OBJECT_END&&n.push(N.OBJECT_END),x.state_=N.KEY_START):UM(x,V,X);continue;case N.ARRAY_OPEN:case N.VALUE:if(_.Bd(E))continue;if(x.state_===N.ARRAY_OPEN)if(x.depth_++,x.state_=N.VALUE,E==="]"){x.depth_--;if(x.depth_===0){x.state_=N.ARRAY_END;return}T("[]");x.state_=H();continue}else n.push(N.ARRAY_END);E==='"'?x.state_=N.STRING:E==="{"?x.state_=N.OBJECT_OPEN:E==="["?x.state_=N.ARRAY_OPEN:E==="t"?x.state_=N.TRUE1:
E==="f"?x.state_=N.FALSE1:E==="n"?x.state_=N.NULL1:E!=="-"&&("0123456789".indexOf(E)!==-1?x.state_=N.NUM_DIGIT:UM(x,V,X));continue;case N.ARRAY_END:if(E===",")n.push(N.ARRAY_END),x.state_=N.VALUE,x.depth_===1&&(k=X);else if(E==="]"){x.depth_--;if(x.depth_===0)return;T();x.state_=H()}else if(_.Bd(E))continue;else UM(x,V,X);continue;case N.STRING:var D=X;a:for(;;){for(;x.unicodeCount_>0;)if(E=V[X++],x.unicodeCount_===4?x.unicodeCount_=0:x.unicodeCount_++,!E)break a;if(E==='"'&&!x.slashed_){x.state_=
H();break}if(E==="\\"&&!x.slashed_&&(x.slashed_=!0,E=V[X++],!E))break;if(x.slashed_)if(x.slashed_=!1,E==="u"&&(x.unicodeCount_=1),E=V[X++])continue;else break;w.lastIndex=X;E=w.exec(V);if(!E){X=V.length+1;break}X=E.index+1;E=V[E.index];if(!E)break}x.JSC$9238_pos_+=X-D;continue;case N.TRUE1:if(!E)continue;E==="r"?x.state_=N.TRUE2:UM(x,V,X);continue;case N.TRUE2:if(!E)continue;E==="u"?x.state_=N.TRUE3:UM(x,V,X);continue;case N.TRUE3:if(!E)continue;E==="e"?x.state_=H():UM(x,V,X);continue;case N.FALSE1:if(!E)continue;
E==="a"?x.state_=N.FALSE2:UM(x,V,X);continue;case N.FALSE2:if(!E)continue;E==="l"?x.state_=N.FALSE3:UM(x,V,X);continue;case N.FALSE3:if(!E)continue;E==="s"?x.state_=N.FALSE4:UM(x,V,X);continue;case N.FALSE4:if(!E)continue;E==="e"?x.state_=H():UM(x,V,X);continue;case N.NULL1:if(!E)continue;E==="u"?x.state_=N.NULL2:UM(x,V,X);continue;case N.NULL2:if(!E)continue;E==="l"?x.state_=N.NULL3:UM(x,V,X);continue;case N.NULL3:if(!E)continue;E==="l"?x.state_=H():UM(x,V,X);continue;case N.NUM_DECIMAL_POINT:E===
"."?x.state_=N.NUM_DIGIT:UM(x,V,X);continue;case N.NUM_DIGIT:if("0123456789.eE+-".indexOf(E)!==-1)continue;else X--,x.JSC$9238_pos_--,x.state_=H();continue;default:UM(x,V,X)}}}
function H(){var E=n.pop();return E!=null?E:N.VALUE}
function T(E){x.depth_>1||(E||(E=k===-1?x.JSC$9238_buffer_+V.substring(e,X):V.substring(k,X)),x.deliverMessageAsRawString_?x.result_.push(E):x.result_.push(JSON.parse(E)),k=X)}
for(var x=this,n=x.stack_,w=x.stringInputPattern_,N=$iZ,L=V.length,e=0,k=-1,X=0;X<L;)switch(x.streamState_){case 3:return UM(x,V,X),null;case 2:return l()&&UM(x,V,X),null;case 0:if(l()){var r=V[X++];x.JSC$9238_pos_++;if(r==="["){x.streamState_=1;e=X;x.state_=N.ARRAY_OPEN;continue}else UM(x,V,X)}return null;case 1:return I(),x.depth_===0&&x.state_==N.ARRAY_END?(x.streamState_=2,x.JSC$9238_buffer_=V.substring(X)):x.JSC$9238_buffer_=k===-1?x.JSC$9238_buffer_+V.substring(e):V.substring(k),x.result_.length>
0?(r=x.result_,x.result_=[],r):null}return null};_.Uk(_.Ia,eO);HU.prototype.getValue=function(){return this.JSC$9246_value_};
HU.prototype.clone=function(){return new HU(this.JSC$9246_key_,this.JSC$9246_value_)};var ni=function(V){this.nodes_=[];if(V)a:{if(V instanceof ni){var l=V.getKeys();V=V.getValues();if(this.getCount()<=0){for(var I=this.nodes_,H=0;H<l.length;H++)I.push(new HU(l[H],V[H]));break a}}else l=_.EL.getKeys(V),V=_.EL.getValues(V);for(I=0;I<l.length;I++)this.insert(l[I],V[I])}};
_.B=ni.prototype;_.B.insert=function(V,l){var I=this.nodes_;I.push(new HU(V,l));V=I.length-1;l=this.nodes_;for(I=l[V];V>0;){var H=V-1>>1;if(l[H].JSC$9246_key_>I.JSC$9246_key_)l[V]=l[H],V=H;else break}l[V]=I};
_.B.remove=function(){var V=this.nodes_,l=V.length,I=V[0];if(!(l<=0)){if(l==1)V.length=0;else{V[0]=V.pop();V=0;l=this.nodes_;for(var H=l.length,T=l[V];V<H>>1;){var x=V*2+1,n=V*2+2;x=n<H&&l[n].JSC$9246_key_<l[x].JSC$9246_key_?n:x;if(l[x].JSC$9246_key_>T.JSC$9246_key_)break;l[V]=l[x];V=x}l[V]=T}return I.getValue()}};
_.B.peek=function(){var V=this.nodes_;if(V.length!=0)return V[0].getValue()};
_.B.getValues=function(){for(var V=this.nodes_,l=[],I=V.length,H=0;H<I;H++)l.push(V[H].getValue());return l};
_.B.getKeys=function(){for(var V=this.nodes_,l=[],I=V.length,H=0;H<I;H++)l.push(V[H].JSC$9246_key_);return l};
_.B.containsValue=function(V){return this.nodes_.some(function(l){return l.getValue()==V})};
_.B.containsKey=function(V){return this.nodes_.some(function(l){return l.JSC$9246_key_==V})};
_.B.clone=function(){return new ni(this)};
_.B.getCount=function(){return this.nodes_.length};
_.B.isEmpty=function(){return this.nodes_.length===0};
_.B.clear=function(){this.nodes_.length=0};_.$Y=function(V,l){this.JSC$9252_map_={};this.JSC$9252_keys_=[];this.version_=this.size=0;var I=arguments.length;if(I>1){if(I%2)throw Error("oa");for(var H=0;H<I;H+=2)this.set(arguments[H],arguments[H+1])}else V&&this.addAll(V)};
_.B=_.$Y.prototype;_.B.getCount=function(){return this.size};
_.B.getValues=function(){dN(this);for(var V=[],l=0;l<this.JSC$9252_keys_.length;l++)V.push(this.JSC$9252_map_[this.JSC$9252_keys_[l]]);return V};
_.B.getKeys=function(){dN(this);return this.JSC$9252_keys_.concat()};
_.B.containsKey=function(V){return this.has(V)};
_.B.has=function(V){return wN(this.JSC$9252_map_,V)};
_.B.containsValue=function(V){for(var l=0;l<this.JSC$9252_keys_.length;l++){var I=this.JSC$9252_keys_[l];if(wN(this.JSC$9252_map_,I)&&this.JSC$9252_map_[I]==V)return!0}return!1};
_.B.equals=function(V,l){if(this===V)return!0;if(this.size!=V.getCount())return!1;l=l||dio;dN(this);for(var I,H=0;I=this.JSC$9252_keys_[H];H++)if(!l(this.get(I),V.get(I)))return!1;return!0};
var dio=function(V,l){return V===l};
_.$Y.prototype.isEmpty=function(){return this.size==0};
_.$Y.prototype.clear=function(){this.JSC$9252_map_={};this.version_=this.size=this.JSC$9252_keys_.length=0};
_.$Y.prototype.remove=function(V){return this.delete(V)};
_.$Y.prototype.delete=function(V){return wN(this.JSC$9252_map_,V)?(delete this.JSC$9252_map_[V],--this.size,this.version_++,this.JSC$9252_keys_.length>2*this.size&&dN(this),!0):!1};
var dN=function(V){if(V.size!=V.JSC$9252_keys_.length){for(var l=0,I=0;l<V.JSC$9252_keys_.length;){var H=V.JSC$9252_keys_[l];wN(V.JSC$9252_map_,H)&&(V.JSC$9252_keys_[I++]=H);l++}V.JSC$9252_keys_.length=I}if(V.size!=V.JSC$9252_keys_.length){l={};for(H=I=0;I<V.JSC$9252_keys_.length;){var T=V.JSC$9252_keys_[I];wN(l,T)||(V.JSC$9252_keys_[H++]=T,l[T]=1);I++}V.JSC$9252_keys_.length=H}};
_.B=_.$Y.prototype;_.B.get=function(V,l){return wN(this.JSC$9252_map_,V)?this.JSC$9252_map_[V]:l};
_.B.set=function(V,l){wN(this.JSC$9252_map_,V)||(this.size+=1,this.JSC$9252_keys_.push(V),this.version_++);this.JSC$9252_map_[V]=l};
_.B.addAll=function(V){if(V instanceof _.$Y)for(var l=V.getKeys(),I=0;I<l.length;I++)this.set(l[I],V.get(l[I]));else for(l in V)this.set(l,V[l])};
_.B.forEach=function(V,l){for(var I=this.getKeys(),H=0;H<I.length;H++){var T=I[H],x=this.get(T);V.call(l,x,T,this)}};
_.B.clone=function(){return new _.$Y(this)};
_.B.transpose=function(){for(var V=new _.$Y,l=0;l<this.JSC$9252_keys_.length;l++){var I=this.JSC$9252_keys_[l];V.set(this.JSC$9252_map_[I],I)}return V};
_.B.keys=function(){return qwZ(this.__iterator__(!0)).toEs6()};
_.B.values=function(){return qwZ(this.__iterator__(!1)).toEs6()};
_.B.entries=function(){var V=this;return gV0(this.keys(),function(l){return[l,V.get(l)]})};
_.B.__iterator__=function(V){dN(this);var l=0,I=this.version_,H=this,T=new xC;T.next=function(){if(I!=H.version_)throw Error("re");if(l>=H.JSC$9252_keys_.length)return Um;var x=H.JSC$9252_keys_[l++];return nh(V?x:H.JSC$9252_map_[x])};
return T};
var wN=function(V,l){return Object.prototype.hasOwnProperty.call(V,l)};var Nqi=function(){this.JSC$9255_map_=new _.$Y;this.JSC$9255_head_=new wuZ("");this.JSC$9255_head_.next=this.JSC$9255_head_.prev=this.JSC$9255_head_},KsE=function(V,l){if(l=V.JSC$9255_map_.get(l))l.remove(),V.insert_(l);
return l};
_.B=Nqi.prototype;_.B.get=function(V,l){return(V=KsE(this,V))?V.value:l};
_.B.set=function(V,l){var I=KsE(this,V);I?I.value=l:(I=new wuZ(V,l),this.JSC$9255_map_.set(V,I),this.insert_(I))};
_.B.peek=function(){return this.JSC$9255_head_.next.value};
_.B.shift=function(){return j2w(this,this.JSC$9255_head_.next)};
_.B.pop=function(){return j2w(this,this.JSC$9255_head_.prev)};
_.B.remove=function(V){return(V=this.JSC$9255_map_.get(V))?(this.removeNode(V),!0):!1};
_.B.removeNode=function(V){V.remove();this.JSC$9255_map_.remove(V.key)};
_.B.getCount=function(){return this.JSC$9255_map_.getCount()};
_.B.isEmpty=function(){return this.JSC$9255_map_.isEmpty()};
_.B.getKeys=function(){return this.map(function(V,l){return l})};
_.B.getValues=function(){return this.map(function(V){return V})};
_.B.contains=function(V){return this.some(function(l){return l==V})};
_.B.containsKey=function(V){return this.JSC$9255_map_.containsKey(V)};
_.B.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9255_head_.prev)};
_.B.forEach=function(V,l){for(var I=this.JSC$9255_head_.next;I!=this.JSC$9255_head_;I=I.next)V.call(l,I.value,I.key,this)};
_.B.map=function(V,l){for(var I=[],H=this.JSC$9255_head_.next;H!=this.JSC$9255_head_;H=H.next)I.push(V.call(l,H.value,H.key,this));return I};
_.B.some=function(V,l){for(var I=this.JSC$9255_head_.next;I!=this.JSC$9255_head_;I=I.next)if(V.call(l,I.value,I.key,this))return!0;return!1};
_.B.every=function(V,l){for(var I=this.JSC$9255_head_.next;I!=this.JSC$9255_head_;I=I.next)if(!V.call(l,I.value,I.key,this))return!1;return!0};
_.B.insert_=function(V){V.next=this.JSC$9255_head_.next;V.prev=this.JSC$9255_head_;this.JSC$9255_head_.next=V;for(V.next.prev=V;this.getCount()>40;)this.removeNode(this.JSC$9255_head_.prev)};
var j2w=function(V,l){V.JSC$9255_head_!=l&&V.removeNode(l);return l.value},wuZ=function(V,l){this.key=V;
this.value=l};
wuZ.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Yxb=function(){ni.apply(this,arguments)};
_.t(Yxb,ni);Yxb.prototype.enqueue=function(V,l){this.insert(V,l)};var Ls0=function(){var V=Error();V.name="SecurityError";throw V;},e9K=function(){return{get opener(){return null},
get closed(){return!0},get location(){Ls0()},get document(){Ls0()},postMessage:function(){},
close:function(){},
focus:function(){}}};var tug={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 EDf={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 eL0={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(EDf).join("|");var kSa=function(){function V(w){w.substr(-1)!==";"&&(w+=";");return n(w)}
for(var l=Object.keys(eL0).sort(GeT),I=Object.keys(EDf).sort(GeT),H=0,T=0;H<I.length;H++)l[T]===I[H]?(I[H]+=";?",T++):I[H]+=";";var x=new RegExp("&(?:"+I.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),n=JPt();return function(w){return String(w).replace(x,V)}}();/*

 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 Fs0={};var Xua=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"),zLw=/[\\&]/,yUE=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),tU0=RegExp('[&<>"]',"g"),rUZ=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),GSN=function(V){return V.charCodeAt(0)===92?V.charAt(1):kSa(V)},EFE=function(V){return zLw.test(V)?V.replace(yUE,GSN):V},JU3=function(V){try{var l,I="";
if(typeof T!=="string"){var H=T;var T=";/?:@&=+$,-_.!~*'()#"}typeof H==="undefined"&&(H=!0);var x,n=Fs0[T];if(n)var w=n;else{n=Fs0[T]=[];for(x=0;x<128;x++){var N=String.fromCharCode(x);/^[0-9a-z]$/i.test(N)?n.push(N):n.push("%"+("0"+x.toString(16).toUpperCase()).slice(-2))}for(x=0;x<T.length;x++)n[T.charCodeAt(x)]=T[x];w=n}var L=0;for(l=V.length;L<l;L++){var e=V.charCodeAt(L);if(H&&e===37&&L+2<l&&/^[0-9a-f]{2}$/i.test(V.slice(L+1,L+3)))I+=V.slice(L,L+3),L+=2;else if(e<128)I+=w[e];else if(e>=55296&&
e<=57343){if(e>=55296&&e<=56319&&L+1<l){var k=V.charCodeAt(L+1);if(k>=56320&&k<=57343){I+=encodeURIComponent(V[L]+V[L+1]);L++;continue}}I+="%EF%BF%BD"}else I+=encodeURIComponent(V[L])}return I}catch(X){return V}},oFw=function(V){switch(V){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return V}},Nh=function(V,l){return tU0.test(V)?l?V.replace(rUZ,oFw):V.replace(tU0,oFw):V};/*

 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 Ki;if(String.fromCodePoint)Ki=function(V){try{return String.fromCodePoint(V)}catch(l){if(l instanceof RangeError)return String.fromCharCode(65533);throw l;}};
else{var hLw=String.fromCharCode,P8N=Math.floor;Ki=function(){var V=[],l=-1,I=arguments.length;if(!I)return"";for(var H="";++l<I;){var T=Number(arguments[l]);if(!isFinite(T)||T<0||T>1114111||P8N(T)!==T)return String.fromCharCode(65533);if(T<=65535)V.push(T);else{T-=65536;var x=(T>>10)+55296;T=T%1024+56320;V.push(x,T)}if(l+1===I||V.length>16384)H+=hLw.apply(null,V),V.length=0}return H}};var DiZ=function(V){this.root=this.current=V;this.entering=!0};
DiZ.prototype.next=function(){var V=this.current,l=this.entering;if(V===null)return null;a:switch(V._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 I=!0;break a;default:I=!1}l&&I?V._firstChild?(this.current=V._firstChild,this.entering=!0):this.entering=!1:V===this.root?this.current=null:V._next===null?(this.current=
V._parent,this.entering=!1):(this.current=V._next,this.entering=!0);return{entering:l,node:V}};
var UA=function(V,l){this._type=V;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=l;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};
UA.prototype.appendChild=function(V){jq(V);V._parent=this;this._lastChild?(this._lastChild._next=V,V._prev=this._lastChild):this._firstChild=V;this._lastChild=V};
var jq=function(V){V._prev?V._prev._next=V._next:V._parent&&(V._parent._firstChild=V._next);V._next?V._next._prev=V._prev:V._parent&&(V._parent._lastChild=V._prev);V._parent=null;V._next=null;V._prev=null},Zab=function(V,l){jq(l);
l._next=V._next;l._next&&(l._next._prev=l);l._prev=V;V._next=l;l._parent=V._parent;l._next||(l._parent._lastChild=l)};
UA.prototype.insertBefore=function(V){jq(V);V._prev=this._prev;V._prev&&(V._prev._next=V);V._next=this;this._prev=V;V._parent=this._parent;V._prev||(V._parent._firstChild=V)};
_.vI.Object.defineProperties(UA.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(V){this._literal=V}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(V){this._destination=V}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(V){this._title=V}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(V){this._info=V}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(V){this._level=V}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(V){this._listData.type=V}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(V){this._listData.tight=V}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(V){this._listData.start=V}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(V){this._onEnter=V}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(V){this._onExit=V}}});var oDw=/[ \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,
hKW={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 SxN=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]/),
RLZ=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Q2B=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),cUE=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),WsW=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),baW=/`+/,qx0=/^`+/,MUN=/\.\.\./g,s2N=/--+/g,pua=/^<([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])?)*)>/,
AUJ=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,upJ=/^ *(?:\n *)?/,vF3=/^[ \t\n\x0b\x0c\x0d]/,OaZ=/[ \t\n\x0b\x0c\x0d]+/g,C8E=/^\s/,atZ=/ *$/,ftw=/^ */,gFv=/^ *(?:\n|$)/,miv=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),iab=/^[^\n`\[\]\\!<&*_'"]+/m,YY=function(V){var l=new UA("text");l._literal=V;return l},Li=function(V){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=V||{}};
Li.prototype.match=function(V){V=V.exec(this.subject.slice(this.pos));if(V===null)return null;this.pos+=V.index+V[0].length;return V[0]};
Li.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var eq=function(V){V.match(upJ);return!0},VMZ=function(V,l,I){var H=0;
var T=V.pos;if(l===39||l===34)H++,V.pos++;else for(;V.peek()===l;)H++,V.pos++;if(H===0)H=null;else{var x=T===0?"\n":V.subject.charAt(T-1);var n=V.peek();n=n===-1?"\n":Ki(n);var w=C8E.test(n);n=SxN.test(n);var N=C8E.test(x);var L=SxN.test(x);x=!w&&!(n&&!N&&!L);w=!N&&!(L&&!w&&!n);l===95?(N=x&&(!w||L),n=w&&(!x||n)):(N=l===39||l===34?x&&!w:x,n=w);V.pos=T;H={numdelims:H,can_open:N,can_close:n}}if(!H)return!1;T=H.numdelims;n=V.pos;V.pos+=T;n=l===39?"\u2019":l===34?"\u201c":V.subject.slice(n,V.pos);n=YY(n);
I.appendChild(n);V.delimiters={cc:l,numdelims:T,origdelims:T,node:n,previous:V.delimiters,next:null,can_open:H.can_open,can_close:H.can_close};V.delimiters.previous!==null&&(V.delimiters.previous.next=V.delimiters);return!0},lbW=function(V,l){l.previous!==null&&(l.previous.next=l.next);
l.next===null?V.delimiters=l.previous:l.next.previous=l.previous},IbZ=function(V,l){var I,H,T=[],x=!1;
T[95]=l;T[42]=l;T[39]=l;T[34]=l;for(I=V.delimiters;I!==null&&I.previous!==l;)I=I.previous;for(;I!==null;){var n=I.cc;if(I.can_close){var w=I.previous;for(H=!1;w!==null&&w!==l&&w!==T[n];){x=(I.can_open||w.can_close)&&(w.origdelims+I.origdelims)%3===0;if(w.cc===I.cc&&w.can_open&&!x){H=!0;break}w=w.previous}var N=I;if(n===42||n===95)if(H){var L=I.numdelims>=2&&w.numdelims>=2?2:1;var e=w.node;var k=I.node;w.numdelims-=L;I.numdelims-=L;e._literal=e._literal.slice(0,e._literal.length-L);k._literal=k._literal.slice(0,
k._literal.length-L);var X=new UA(L===1?"emph":"strong");for(L=e._next;L&&L!==k;){var r=L._next;jq(L);X.appendChild(L);L=r}Zab(e,X);L=w;r=I;L.next!==r&&(L.next=r,r.previous=L);w.numdelims===0&&(jq(e),lbW(V,w));I.numdelims===0&&(jq(k),w=I.next,lbW(V,I),I=w)}else I=I.next;else n===39?(I.node._literal="\u2019",H&&(w.node._literal="\u2018"),I=I.next):n===34&&(I.node._literal="\u201d",H&&(w.node.literal="\u201c"),I=I.next);H||x||(T[n]=N.previous,N.can_open||lbW(V,N))}else I=I.next}for(;V.delimiters!==
null&&V.delimiters!==l;)lbW(V,V.delimiters)},H6Z=function(V){V=V.match(RLZ);
return V===null?null:EFE(V.substr(1,V.length-2))},TwN=function(V){var l=V.match(Q2B);
if(l===null){l=V.pos;for(var I=0,H;(H=V.peek())!==-1;)if(H===92)V.pos+=1,V.peek()!==-1&&(V.pos+=1);else if(H===40)V.pos+=1,I+=1;else if(H===41)if(I<1)break;else V.pos+=1,--I;else if(vF3.exec(Ki(H))!==null)break;else V.pos+=1;l=V.subject.substr(l,V.pos-l);return JU3(EFE(l))}return JU3(EFE(l.substr(1,l.length-2)))},Bwi=function(V){V=V.match(miv);
return V===null||V.length>1001?0:V.length},x7Z=function(V,l,I,H){V.brackets!==null&&(V.brackets.bracketAfter=!0);
V.brackets={node:l,previous:V.brackets,previousDelimiter:V.delimiters,index:I,image:H,active:!0}},U7W=function(V,l){var I;
return(I=V.match(iab))?(V.options.smart?l.appendChild(YY(I.replace(MUN,"\u2026").replace(s2N,function(H){var T=0,x=0;H.length%3===0?x=H.length/3:H.length%2===0?T=H.length/2:H.length%3===2?(T=1,x=(H.length-2)/3):(T=2,x=(H.length-4)/3);H="";var n;for(n=0;n<x;n++)H+="\u2014";for(n=0;n<T;n++)H+="\u2013";return H}))):l.appendChild(YY(I)),!0):!1},njv=function(V,l,I){V.subject=l;
V.pos=0;l=V.pos;var H=Bwi(V);if(H===0)return 0;var T=V.subject.substr(0,H);if(V.peek()===58)V.pos++;else return V.pos=l,0;eq(V);H=TwN(V);if(H===null||H.length===0)return V.pos=l,0;var x=V.pos;eq(V);var n=H6Z(V);n===null&&(n="",V.pos=x);var w=!0;V.match(gFv)===null&&(n===""?w=!1:(n="",V.pos=x,w=V.match(gFv)!==null));if(!w)return V.pos=l,0;T=P_1(T);if(T==="")return V.pos=l,0;I[T]||(I[T]={destination:H,title:n});return V.pos-l},$7N=function(V,l){var I,H=V.peek();
if(H===-1)return!1;switch(H){case 10:V.pos+=1;if((I=l._lastChild)&&I.type==="text"&&I._literal[I._literal.length-1]===" "){var T=I._literal[I._literal.length-2]===" ";I._literal=I._literal.replace(atZ,"");l.appendChild(new UA(T?"linebreak":"softbreak"))}else l.appendChild(new UA("softbreak"));V.match(ftw);I=!0;break;case 92:I=V.subject;V.pos+=1;V.peek()===10?(V.pos+=1,I=new UA("linebreak"),l.appendChild(I)):cUE.test(I.charAt(V.pos))?(l.appendChild(YY(I.charAt(V.pos))),V.pos+=1):l.appendChild(YY("\\"));
I=!0;break;case 96:a:if(I=V.match(qx0),I===null)I=!1;else{T=V.pos;for(var x;(x=V.match(baW))!==null;)if(x===I){x=new UA("code");x._literal=V.subject.slice(T,V.pos-I.length).trim().replace(OaZ," ");l.appendChild(x);I=!0;break a}V.pos=T;l.appendChild(YY(I));I=!0}break;case 42:case 95:I=VMZ(V,H,l);break;case 39:case 34:I=V.options.smart&&VMZ(V,H,l);break;case 91:I=V.pos;V.pos+=1;T=YY("[");l.appendChild(T);x7Z(V,T,I,!1);I=!0;break;case 33:I=V.pos;V.pos+=1;V.peek()===91?(V.pos+=1,T=YY("!["),l.appendChild(T),
x7Z(V,T,I+1,!0)):l.appendChild(YY("!"));I=!0;break;case 93:var n,w=!1,N;V.pos+=1;var L=V.pos;T=V.brackets;if(T===null)l.appendChild(YY("]"));else if(T.active){I=T.image;var e=V.pos;V.peek()===40&&(V.pos++,eq(V)&&(x=TwN(V))!==null&&eq(V)&&(vF3.test(V.subject.charAt(V.pos-1))&&(n=H6Z(V)),1)&&eq(V)&&V.peek()===41?(V.pos+=1,w=!0):V.pos=e);if(!w){var k=V.pos,X=Bwi(V);X>2?N=V.subject.slice(k,k+X):T.bracketAfter||(N=V.subject.slice(T.index,L));X===0&&(V.pos=e);N&&(N=V.refmap[P_1(N)])&&(x=N.destination,n=
N.title,w=!0)}if(w){L=new UA(I?"image":"link");L._destination=x;L._title=n||"";for(x=T.node._next;x;)n=x._next,jq(x),L.appendChild(x),x=n;l.appendChild(L);IbZ(V,T.previousDelimiter);V.brackets=V.brackets.previous;jq(T.node);if(!I)for(T=V.brackets;T!==null;)T.image||(T.active=!1),T=T.previous}else V.brackets=V.brackets.previous,V.pos=L,l.appendChild(YY("]"))}else l.appendChild(YY("]")),V.brackets=V.brackets.previous;I=!0;break;case 60:(I=V.match(pua))?(I=I.slice(1,I.length-1),T=new UA("link"),T._destination=
JU3("mailto:"+I),T._title="",T.appendChild(YY(I)),l.appendChild(T),I=!0):(I=V.match(AUJ))?(I=I.slice(1,I.length-1),T=new UA("link"),T._destination=JU3(I),T._title="",T.appendChild(YY(I)),l.appendChild(T),I=!0):I=!1;I||(I=V.match(Xua),I===null?I=!1:(T=new UA("html_inline"),T._literal=I,l.appendChild(T),I=!0));break;case 38:(I=V.match(WsW))?(l.appendChild(YY(kSa(I))),I=!0):I=!1;break;default:I=U7W(V,l)}I||(V.pos+=1,l.appendChild(YY(Ki(H))));return!0};
Li.prototype.parseInlines=function(V){this.subject=V._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;$7N(this,V););V._string_content=null;IbZ(this,null)};
Li.prototype.parse=Li.prototype.parseInlines;var d7Z=[/./,/^<(?: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")],wKa=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],Nwa=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,KwN=/^[#`~*+_=<>0-9-\|]|\|/,j6Z=/[^ \t\f\v\r\n]/,YBN=/^[*+-]/,Lww=/^(\d{1,9})([.)])/,eJ0=/^#{1,6}(?:[ \t]+|$)/,kbZ=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Fwo=/^(?:`{3,}|~{3,})(?= *$)/,XKJ=/^(?:=+|-+)[ \t]*$/,zJE=/\r\n|\n|\r/,ZuK=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,SYt=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,y9Z={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(V){return V!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(V,l){for(V=l._firstChild;V;){if(DaW(V)&&V._next){l._listData.tight=!1;break}for(var I=V._firstChild;I;){if(DaW(I)&&(V._next||I._next)){l._listData.tight=!1;break}I=I._next}V=V._next}},
canContain:function(V){return V==="item"},
acceptsLines:!1},block_quote:{continue:function(V){var l=V.currentLine;if(V.indented||BU(l,V.nextNonspace)!==62)return 1;kY(V);Fa(V,1,!1);Tu(BU(l,V.offset))&&Fa(V,1,!0);return 0},
finalize:function(){},
canContain:function(V){return V!=="item"},
acceptsLines:!1},item:{continue:function(V,l){if(V.blank){if(l._firstChild==null)return 1;kY(V)}else if(V.indent>=l._listData.markerOffset+l._listData.padding)Fa(V,l._listData.markerOffset+l._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(V){return V!=="item"&&!RKt(V)},
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(V,l){var I=V.currentLine,H=V.indent;if(l._isFenced){if((H=H<=3&&I.charAt(V.nextNonspace)===l._fenceChar&&I.slice(V.nextNonspace).match(Fwo))&&H[0].length>=l._fenceLength)return V.finalize(l,V.lineNumber),2;for(l=l._fenceOffset;l>0&&Tu(BU(I,V.offset));)Fa(V,1,!0),l--}else if(H>=4)Fa(V,4,!0);else if(V.blank)kY(V);else return 1;return 0},
finalize:function(V,l){if(l._isFenced){var I=l._string_content,H=I.indexOf("\n");V=I.slice(0,H);I=I.slice(H+1);l.info=EFE(V.trim());l._literal=I}else l._literal=l._string_content.replace(/(\n *)+$/,"\n");l._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(V,l){return!V.blank||l._htmlBlockType!==6&&l._htmlBlockType!==7?0:1},
finalize:function(V,l){l._literal=l._string_content.replace(/(\n *)+$/,"");l._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(V){return V.blank?1:0},
finalize:function(V,l){for(var I,H=!1;BU(l._string_content,0)===91&&(I=njv(V.inlineParser,l._string_content,V.refmap));)l._string_content=l._string_content.slice(I),H=!0;H&&!j6Z.test(l._string_content)&&jq(l)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(V){return xA(V.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(V){return V=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(V,l){if(!l._rowIsDelimiter){V=l._isHeader?"th":"td";for(var I=l._parent._tableColumns,H=l._string_content,T=0,x="",n,w=l._sourcepos[0][0];T<H.length;){switch(H[T]){case "|":n&&(n._string_content=x.trim(),x="",n=null,I--,I<=0&&(T=H.length));break;default:if(!n){n=new UA(V,[[w,T],[w,T]]);var N=l._parent._columnAlignment,L=l._parent._tableColumns-I;N&&L<=N.length&&L>=0&&(n._alignment=N[L]);l.appendChild(n)}x+=H[T];n._sourcepos[1][1]=T}T++}n&&(n._string_content=x.trim());l._string_content=
""}},
canContain:function(V){return V!=="row"},
acceptsLines:!1}},tM0=[function(V){if(V.indented||BU(V.currentLine,V.nextNonspace)!==62)return 0;kY(V);Fa(V,1,!1);Tu(BU(V.currentLine,V.offset))&&Fa(V,1,!0);Xa(V);V.addChild("block_quote",V.nextNonspace);return 1},
function(V){var l;if(!V.indented&&(l=V.currentLine.slice(V.nextNonspace).match(eJ0))){kY(V);Fa(V,l[0].length,!1);Xa(V);var I=V.addChild("heading",V.nextNonspace);I.level=l[0].trim().length;I._string_content=V.currentLine.slice(V.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Fa(V,V.currentLine.length-V.offset);return 2}return 0},
function(V){var l;if(!V.indented&&(l=V.currentLine.slice(V.nextNonspace).match(kbZ))){var I=l[0].length;Xa(V);var H=V.addChild("code_block",V.nextNonspace);H._isFenced=!0;H._fenceLength=I;H._fenceChar=l[0][0];H._fenceOffset=V.indent;kY(V);Fa(V,I,!1);return 2}return 0},
function(V,l){if(!V.indented&&BU(V.currentLine,V.nextNonspace)===60){var I=V.currentLine.slice(V.nextNonspace),H;for(H=1;H<=7;H++)if(d7Z[H].test(I)&&(H<7||l.type!=="paragraph"))return Xa(V),V.addChild("html_block",V.offset)._htmlBlockType=H,2}return 0},
function(V,l){var I;if(!V.indented&&l.type==="paragraph"&&(I=V.currentLine.slice(V.nextNonspace).match(XKJ))){Xa(V);var H=new UA("heading",l.sourcepos);H.level=I[0][0]==="="?1:2;H._string_content=l._string_content;Zab(l,H);jq(l);V.tip=H;Fa(V,V.currentLine.length-V.offset,!1);return 2}return 0},
function(V){return!V.indented&&Nwa.test(V.currentLine.slice(V.nextNonspace))?(Xa(V),V.addChild("thematic_break",V.nextNonspace),Fa(V,V.currentLine.length-V.offset,!1),2):0},
function(V,l){var I,H;if(!(H=V.indented&&l.type!=="list")){a:{var T=l,x=V.currentLine.slice(V.nextNonspace);H={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:V.indent};if(I=x.match(YBN))H.type="bullet",H.bulletChar=I[0][0];else{if(!(I=x.match(Lww))||T.type==="paragraph"&&I[1]!=="1"){I=null;break a}H.type="ordered";H.start=parseInt(I[1],10);H.delimiter=I[2]}var n=BU(V.currentLine,V.nextNonspace+I[0].length);if(n!==-1&&n!==9&&n!==32||T.type==="paragraph"&&!V.currentLine.slice(V.nextNonspace+
I[0].length).match(j6Z))I=null;else{kY(V);Fa(V,I[0].length,!0);T=V.column;x=V.offset;do Fa(V,1,!0),n=BU(V.currentLine,V.offset);while(V.column-T<5&&Tu(n));n=BU(V.currentLine,V.offset)===-1;var w=V.column-T;w>=5||w<1||n?(H.padding=I[0].length+1,V.column=T,V.offset=x,Tu(BU(V.currentLine,V.offset))&&Fa(V,1,!0)):H.padding=I[0].length+w;I=H}}H=!I}if(H)return 0;Xa(V);(H=V.tip.type!=="list")||(l=l._listData,H=!(l.type===I.type&&l.delimiter===I.delimiter&&l.bulletChar===I.bulletChar));H&&(l=V.addChild("list",
V.nextNonspace),l._listData=I);l=V.addChild("item",V.nextNonspace);l._listData=I;return 1},
function(V){var l;return((l=V.options.shouldParseIndentAsCodeBlock)!=null?l:1)&&V.indented&&V.tip.type!=="paragraph"&&!V.blank?(Fa(V,4,!0),Xa(V),V.addChild("code_block",V.offset),2):0},
function(V,l){var I=xA(V.currentLine),H=xA(V.lookahead);if(I!==0&&H<0&&Math.abs(I)==Math.abs(H)&&!RKt(l.type)){Xa(V);l=V.addChild("table",V.nextNonspace);l._tableRows=1;l._tableColumns=Math.abs(I);I=V.lookahead;if(SYt.test(I)){H=[];for(var T=0,x=!1,n=0,w=void 0;T<I.length;){var N=n>=3;switch(I[T]){case "-":n++;break;case "|":x&&(H.push(w),w=void 0,n=0);x=!0;break;case ":":w||N||(w="left"),!w&&N&&(w="right"),w==="left"&&N&&(w="center")}T++}I=H}else I=void 0;l._columnAlignment=I;l=V.addChild("row",
V.nextNonspace);l._isHeader=!0;Fa(V,V.currentLine.length-V.offset,!1);l._string_content=V.currentLine;return 1}return 0},
function(V,l){if(l.type=="table"&&xA(V.currentLine)!==0){Xa(V);var I=l;l=V.addChild("row",V.nextNonspace);xA(V.currentLine)<0?l._rowIsDelimiter=!0:I._tableRows+=1;Fa(V,V.currentLine.length-V.offset,!1);l._string_content=V.currentLine;return 2}return 0}],x8f=function(){var V={shouldParseIndentAsCodeBlock:!1};
V=V===void 0?{}:V;this.lastMatchedContainer=this.doc=Qkw();this.refmap={};this.lastLineLength=0;this.inlineParser=new Li(V);this.options=V;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=y9Z;this.blockStarts=tM0},r9W=function(V){V.partiallyConsumedTab&&(V.offset+=1,V.tip._string_content+=" ".repeat(4-V.column%
4));
V.tip._string_content+=V.currentLine.slice(V.offset)+"\n"};
x8f.prototype.addChild=function(V,l){for(;!this.blocks[this.tip.type].canContain(V);)this.finalize(this.tip,this.lineNumber-1);V=new UA(V,[[this.lineNumber,l+1],[0,0]]);V._string_content="";this.tip.appendChild(V);return this.tip=V};
var Xa=function(V){if(!V.allClosed){for(;V.oldtip!==V.lastMatchedContainer;){var l=V.oldtip._parent;V.finalize(V.oldtip,V.lineNumber-1);V.oldtip=l}V.allClosed=!0}},Fa=function(V,l,I){for(var H=V.currentLine,T,x;l>0&&(x=H[V.offset]);)x==="\t"?(T=4-V.column%4,I?(V.partiallyConsumedTab=T>l,T=T>l?l:T,V.column+=T,V.offset+=V.partiallyConsumedTab?0:1,l-=T):(V.partiallyConsumedTab=!1,V.column+=T,V.offset+=1,--l)):(V.partiallyConsumedTab=!1,V.offset+=1,V.column+=1,--l)},kY=function(V){V.offset=V.nextNonspace;
V.column=V.nextNonspaceColumn;V.partiallyConsumedTab=!1},GbB=function(V){for(var l=V.currentLine,I=V.offset,H=V.column,T;(T=l.charAt(I))!=="";)if(T===" ")I++,H++;
else if(T==="\t")I++,H+=4-H%4;else break;V.blank=T==="\n"||T==="\r"||T==="";V.nextNonspace=I;V.nextNonspaceColumn=H;V.indent=V.nextNonspaceColumn-V.column;V.indented=V.indent>=4};
x8f.prototype.finalize=function(V,l){var I=V._parent;V._open=!1;V.sourcepos[1]=[l,this.lastLineLength];this.blocks[V.type].finalize(this,V);this.tip=I};
x8f.prototype.parse=function(V){this.tip=this.doc=Qkw();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!V)return this.doc;this.options.time&&console.time("preparing input");var l=V.split(zJE),I=l.length;V.charCodeAt(V.length-1)===10&&--I;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(V=0;V<I;V++)a:{var H=void 0,T=l[V],x=l[V+1],n=!0,w=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;T.indexOf("\x00")!==-1&&(T=T.replace(/\0/g,"\ufffd"));this.currentLine=T;for(this.lookahead=x;(H=w._lastChild)&&H._open;){w=H;GbB(this);switch(this.blocks[w.type].continue(this,w)){case 0:break;case 1:n=!1;break;case 2:this.lastLineLength=T.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!n){w=w._parent;break}}this.allClosed=w===this.oldtip;this.lastMatchedContainer=
w;H=w.type!=="paragraph"&&y9Z[w.type].acceptsLines;x=this.blockStarts;for(n=x.length;!H;){GbB(this);if(!this.indented&&!KwN.test(T.slice(this.nextNonspace))){kY(this);break}for(var N=0;N<n;){var L=x[N](this,w);if(L===1){w=this.tip;break}else if(L===2){w=this.tip;H=!0;break}else N++}if(N===n){kY(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Xa(this);this.blank&&w.lastChild&&(w.lastChild._lastLineBlank=!0);H=w.type;x=this.blank&&!(H==="block_quote"||H==="code_block"&&w._isFenced||
H==="item"&&!w._firstChild&&w.sourcepos[0][0]===this.lineNumber);for(n=w;n;)n._lastLineBlank=x,n=n._parent;this.blocks[H].acceptsLines?(r9W(this),H==="html_block"&&w._htmlBlockType>=1&&w._htmlBlockType<=5&&wKa[w._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(w,this.lineNumber)):this.offset<T.length&&!this.blank&&(this.addChild("paragraph",this.offset),kY(this),r9W(this))}else r9W(this);this.lastLineLength=T.length}for(;this.tip;)this.finalize(this.tip,I);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");T=new DiZ(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;I=T.next();)l=I.node,V=l.type,I.entering||V!=="paragraph"&&V!=="heading"&&V!=="th"&&V!="td"||this.inlineParser.parse(l);this.options.time&&console.timeEnd("inline parsing");return this.doc};cPw.prototype.render=function(V){V=new DiZ(V);var l;this.buffer="";for(this.lastOut="\n";l=V.next();){var I=l.node.type;if(this[I])this[I](l.node,l.entering)}return this.buffer};
cPw.prototype.out=function(V){zZ(this,V)};
var zZ=function(V,l){V.buffer+=l;V.lastOut=l};
cPw.prototype.cr=function(){this.lastOut!=="\n"&&zZ(this,"\n")};var Ejw=/^javascript:|vbscript:|file:|data:/i,J9E=/^data:image\/(?:png|gif|jpeg|webp)/i,ojN=function(V){return Ejw.test(V)&&!J9E.test(V)};
n8.prototype=Object.create(cPw.prototype);_.B=n8.prototype;_.B.text=function(V){this.out(V.literal)};
_.B.html_inline=function(V){this.options.safe?zZ(this,"\x3c!-- raw HTML omitted --\x3e"):zZ(this,V.literal)};
_.B.html_block=function(V){this.cr();this.options.safe?zZ(this,"\x3c!-- raw HTML omitted --\x3e"):zZ(this,V.literal);this.cr()};
_.B.softbreak=function(){zZ(this,this.options.softbreak)};
_.B.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.B.link=function(V,l){var I=this.attrs(V);l?(this.options.safe&&ojN(V.destination)||I.push(["href",Nh(V.destination,!0)]),V.title&&I.push(["title",Nh(V.title,!0)]),this.tag("a",I)):this.tag("/a")};
_.B.image=function(V,l){l?(this.disableTags===0&&(this.options.safe&&ojN(V.destination)?zZ(this,'<img src="" alt="'):zZ(this,'<img src="'+Nh(V.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(V.title&&zZ(this,'" title="'+Nh(V.title,!0)),zZ(this,'" />')))};
_.B.emph=function(V,l){this.tag(l?"em":"/em")};
_.B.strong=function(V,l){this.tag(l?"strong":"/strong")};
_.B.paragraph=function(V,l){var I=V.parent.parent;V=this.attrs(V);I!==null&&I.type==="list"&&I.listTight||(l?(this.cr(),this.tag("p",V)):(this.tag("/p"),this.cr()))};
_.B.heading=function(V,l){var I="h"+V.level;V=this.attrs(V);l?(this.cr(),this.tag(I,V)):(this.tag("/"+I),this.cr())};
_.B.code=function(V){this.tag("code");this.out(V.literal);this.tag("/code")};
_.B.code_block=function(V){var l=V.info?V.info.split(/\s+/):[],I=this.attrs(V);l.length>0&&l[0].length>0&&I.push(["class","language-"+Nh(l[0],!0)]);this.cr();this.tag("pre");this.tag("code",I);this.out(V.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.B.thematic_break=function(V){V=this.attrs(V);this.cr();this.tag("hr",V,!0);this.cr()};
_.B.block_quote=function(V,l){V=this.attrs(V);l?(this.cr(),this.tag("blockquote",V)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.B.list=function(V,l){var I=V.listType==="bullet"?"ul":"ol",H=this.attrs(V);l?(V=V.listStart,V!==null&&V!==1&&H.push(["start",V.toString()]),this.cr(),this.tag(I,H)):(this.cr(),this.tag("/"+I));this.cr()};
_.B.item=function(V,l){V=this.attrs(V);l?this.tag("li",V):(this.tag("/li"),this.cr())};
_.B.custom_inline=function(V,l){l&&V.onEnter?zZ(this,V.onEnter):!l&&V.onExit&&zZ(this,V.onExit)};
_.B.custom_block=function(V,l){this.cr();l&&V.onEnter?zZ(this,V.onEnter):!l&&V.onExit&&zZ(this,V.onExit);this.cr()};
_.B.table=function(V,l){V=this.attrs(V);l?(this.cr(),this.tag("table",V)):(this.tag("/table"),this.cr())};
_.B.row=function(V,l){V._rowIsDelimiter||(V=this.attrs(V),l?this.tag("tr",V):this.tag("/tr"))};
_.B.td=function(V,l){var I=this.attrs(V);V._alignment&&I.push(["align",V._alignment]);l?this.tag("td",I):this.tag("/td")};
_.B.th=function(V,l){var I=this.attrs(V);V._alignment&&I.push(["align",V._alignment]);l?this.tag("th",I):this.tag("/th")};
_.B.out=function(V){zZ(this,Nh(V,!1))};
_.B.tag=function(V,l,I){if(!(this.disableTags>0)){this.buffer+="<"+V;if(l&&l.length>0){V=0;for(var H;(H=l[V])!==void 0;)this.buffer+=" "+H[0]+'="'+H[1]+'"',V++}I&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.B.attrs=function(V){var l=[];this.options.sourcepos&&(V=V.sourcepos)&&l.push(["data-sourcepos",String(V[0][0])+":"+String(V[0][1])+"-"+String(V[1][0])+":"+String(V[1][1])]);return l};
n8.prototype.text=n8.prototype.text;n8.prototype.html_inline=n8.prototype.html_inline;n8.prototype.html_block=n8.prototype.html_block;n8.prototype.softbreak=n8.prototype.softbreak;n8.prototype.linebreak=n8.prototype.linebreak;n8.prototype.link=n8.prototype.link;n8.prototype.image=n8.prototype.image;n8.prototype.emph=n8.prototype.emph;n8.prototype.strong=n8.prototype.strong;n8.prototype.paragraph=n8.prototype.paragraph;n8.prototype.heading=n8.prototype.heading;n8.prototype.code=n8.prototype.code;
n8.prototype.code_block=n8.prototype.code_block;n8.prototype.thematic_break=n8.prototype.thematic_break;n8.prototype.block_quote=n8.prototype.block_quote;n8.prototype.list=n8.prototype.list;n8.prototype.item=n8.prototype.item;n8.prototype.custom_inline=n8.prototype.custom_inline;n8.prototype.custom_block=n8.prototype.custom_block;n8.prototype.table=n8.prototype.table;n8.prototype.row=n8.prototype.row;n8.prototype.td=n8.prototype.td;n8.prototype.th=n8.prototype.th;n8.prototype.out=n8.prototype.out;
n8.prototype.tag=n8.prototype.tag;n8.prototype.attrs=n8.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 hJZ,PPv,$tt;(function(){function V(P,J){return P<J?-1:P>J?1:P>=J?0:NaN}
function l(P){return function(J,c){return V(P(J),c)}}
function I(){for(var P=0,J=arguments.length,c={},v;P<J;++P){if(!(v=arguments[P]+"")||v in c)throw Error("te`"+v);c[v]=[]}return new H(c)}
function H(P){this._=P}
function T(P,J){return P.trim().split(/^|\s+/).map(function(c){var v="",Hy=c.indexOf(".");Hy>=0&&(v=c.slice(Hy+1),c=c.slice(0,Hy));if(c&&!J.hasOwnProperty(c))throw Error("ue`"+c);return{type:c,name:v}})}
function x(P,J,c){for(var v=0,Hy=P.length;v<Hy;++v)if(P[v].name===J){P[v]=BZE;P=P.slice(0,v).concat(P.slice(v+1));break}c!=null&&P.push({name:J,value:c});return P}
function n(P){var J=P,c=J.indexOf(":");c>=0&&(J=P.slice(0,c))!=="xmlns"&&(P=P.slice(c+1));return WK.hasOwnProperty(J)?{space:WK[J],local:P}:P}
function w(P){return function(){var J=this.ownerDocument,c=this.namespaceURI;return c==="http://www.w3.org/1999/xhtml"&&J.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?J.createElement(P):J.createElementNS(c,P)}}
function N(P){return function(){return this.ownerDocument.createElementNS(P.space,P.local)}}
function L(P){P=n(P);return(P.local?N:w)(P)}
function e(){}
function k(P){return P==null?e:function(){return this.querySelector(P)}}
function X(P){return Array(P.length)}
function r(P,J){this.ownerDocument=P.ownerDocument;this.namespaceURI=P.namespaceURI;this._next=null;this._parent=P;this.__data__=J}
function E(P){return function(){return P}}
function D(P,J,c,v,Hy,dW){for(var LK=0,rW,a1=J.length,Ot=dW.length;LK<Ot;++LK)(rW=J[LK])?(rW.__data__=dW[LK],v[LK]=rW):c[LK]=new r(P,dW[LK]);for(;LK<a1;++LK)if(rW=J[LK])Hy[LK]=rW}
function Z(P,J,c,v,Hy,dW,LK){var rW,a1,Ot={},gW=J.length,UN=dW.length,sN=Array(gW),KQ;for(rW=0;rW<gW;++rW)if(a1=J[rW])sN[rW]=KQ="$"+LK.call(a1,a1.__data__,rW,J),KQ in Ot?Hy[rW]=a1:Ot[KQ]=a1;for(rW=0;rW<UN;++rW)KQ="$"+LK.call(P,dW[rW],rW,dW),(a1=Ot[KQ])?(v[rW]=a1,a1.__data__=dW[rW],Ot[KQ]=null):c[rW]=new r(P,dW[rW]);for(rW=0;rW<gW;++rW)(a1=J[rW])&&Ot[sN[rW]]===a1&&(Hy[rW]=a1)}
function S(P,J){return P<J?-1:P>J?1:P>=J?0:NaN}
function p(P){return function(){this.removeAttribute(P)}}
function Vf(P){return function(){this.removeAttributeNS(P.space,P.local)}}
function C(P,J){return function(){this.setAttribute(P,J)}}
function By(P,J){return function(){this.setAttributeNS(P.space,P.local,J)}}
function lN(P,J){return function(){var c=J.apply(this,arguments);c==null?this.removeAttribute(P):this.setAttribute(P,c)}}
function wW(P,J){return function(){var c=J.apply(this,arguments);c==null?this.removeAttributeNS(P.space,P.local):this.setAttributeNS(P.space,P.local,c)}}
function o1(P){return function(){this.style.removeProperty(P)}}
function h1(P,J,c){return function(){this.style.setProperty(P,J,c)}}
function ec(P,J,c){return function(){var v=J.apply(this,arguments);v==null?this.style.removeProperty(P):this.style.setProperty(P,v,c)}}
function Zg(P,J){return P.style.getPropertyValue(J)||(P.ownerDocument&&P.ownerDocument.defaultView||P.document&&P||P.defaultView).getComputedStyle(P,null).getPropertyValue(J)}
function Va(P){return function(){delete this[P]}}
function wb(P,J){return function(){this[P]=J}}
function CK(P,J){return function(){var c=J.apply(this,arguments);c==null?delete this[P]:this[P]=c}}
function CZ(){this.textContent=""}
function ME(P){return function(){this.textContent=P}}
function Hw(P){return function(){var J=P.apply(this,arguments);this.textContent=J==null?"":J}}
function uZ(){this.innerHTML=""}
function EN(P){return function(){this.innerHTML=P}}
function ya(P){return function(){var J=P.apply(this,arguments);this.innerHTML=J==null?"":J}}
function Dv(){return null}
function Tf(){var P=this.parentNode;P&&P.removeChild(this)}
function Oq(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Ut(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function BY(P,J,c){P=ON(P,J,c);return function(v){var Hy=v.relatedTarget;Hy&&(Hy===this||Hy.compareDocumentPosition(this)&8)||P.call(this,v)}}
function ON(P,J,c){return function(){P.call(this,this.__data__,J,c)}}
function vY(P){return P.trim().split(/^|\s+/).map(function(J){var c="",v=J.indexOf(".");v>=0&&(c=J.slice(v+1),J=J.slice(0,v));return{type:J,name:c}})}
function LZ(P){return function(){var J=this.__on;if(J){for(var c=0,v=-1,Hy=J.length,dW;c<Hy;++c)(dW=J[c],P.type&&dW.type!==P.type||dW.name!==P.name)?J[++v]=dW:this.removeEventListener(dW.type,dW.listener,dW.capture);++v?J.length=v:delete this.__on}}}
function oi(P,J,c){var v=kDN.hasOwnProperty(P.type)?BY:ON;return function(Hy,dW,LK){Hy=this.__on;var rW;dW=v(J,dW,LK);if(Hy){LK=0;for(var a1=Hy.length;LK<a1;++LK)if((rW=Hy[LK]).type===P.type&&rW.name===P.name){this.removeEventListener(rW.type,rW.listener,rW.capture);this.addEventListener(rW.type,rW.listener=dW,rW.capture=c);rW.value=J;return}}this.addEventListener(P.type,dW,c);rW={type:P.type,name:P.name,value:J,listener:dW,capture:c};Hy?Hy.push(rW):this.__on=[rW]}}
function lZ(P,J,c){var v=P.ownerDocument&&P.ownerDocument.defaultView||P.document&&P||P.defaultView,Hy=v.CustomEvent;typeof Hy==="function"?Hy=new Hy(J,c):(Hy=v.document.createEvent("Event"),c?(Hy.initEvent(J,c.bubbles,c.cancelable),Hy.detail=c.detail):Hy.initEvent(J,!1,!1));P.dispatchEvent(Hy)}
function st(P,J){return function(){return lZ(this,P,J)}}
function jo(P,J){return function(){return lZ(this,P,J.apply(this,arguments))}}
function gb(P,J){this._groups=P;this._parents=J}
function Bh(){return new gb([[document.documentElement]],xtB)}
function Zv(){this._="@"+(++UtB).toString(36)}
function sP(P,J,c){P.prototype=J.prototype=c;c.constructor=P}
function JV(P,J){P=Object.create(P.prototype);for(var c in J)P[c]=J[c];return P}
function sw(){}
function dp(P){var J;P=(P+"").trim().toLowerCase();return(J=nth.exec(P))?(J=parseInt(J[1],16),new r7(J>>8&15|J>>4&240,J>>4&15|J&240,(J&15)<<4|J&15,1)):(J=$tB.exec(P))?PN(parseInt(J[1],16)):(J=dtr.exec(P))?new r7(J[1],J[2],J[3],1):(J=wgB.exec(P))?new r7(J[1]*255/100,J[2]*255/100,J[3]*255/100,1):(J=NZI.exec(P))?uK(J[1],J[2],J[3],J[4]):(J=KOY.exec(P))?uK(J[1]*255/100,J[2]*255/100,J[3]*255/100,J[4]):(J=j$E.exec(P))?CT(J[1],J[2]/100,J[3]/100,1):(J=Y3u.exec(P))?CT(J[1],J[2]/100,J[3]/100,J[4]):FEw.hasOwnProperty(P)?
PN(FEw[P]):P==="transparent"?new r7(NaN,NaN,NaN,0):null}
function PN(P){return new r7(P>>16&255,P>>8&255,P&255,1)}
function uK(P,J,c,v){v<=0&&(P=J=c=NaN);return new r7(P,J,c,v)}
function r$(P){P instanceof sw||(P=dp(P));if(!P)return new r7;P=P.rgb();return new r7(P.r,P.g,P.b,P.opacity)}
function $i(P,J,c,v){return arguments.length===1?r$(P):new r7(P,J,c,v==null?1:v)}
function r7(P,J,c,v){this.r=+P;this.g=+J;this.b=+c;this.opacity=+v}
function zf(P){P=Math.max(0,Math.min(255,Math.round(P)||0));return(P<16?"0":"")+P.toString(16)}
function CT(P,J,c,v){v<=0?P=J=c=NaN:c<=0||c>=1?P=J=NaN:J<=0&&(P=NaN);return new Oo(P,J,c,v)}
function s_(P){if(P instanceof Oo)return new Oo(P.h,P.s,P.l,P.opacity);P instanceof sw||(P=dp(P));if(!P)return new Oo;if(P instanceof Oo)return P;P=P.rgb();var J=P.r/255,c=P.g/255,v=P.b/255,Hy=Math.min(J,c,v),dW=Math.max(J,c,v),LK=NaN,rW=dW-Hy,a1=(dW+Hy)/2;rW?(LK=J===dW?(c-v)/rW+(c<v)*6:c===dW?(v-J)/rW+2:(J-c)/rW+4,rW/=a1<.5?dW+Hy:2-dW-Hy,LK*=60):rW=a1>0&&a1<1?0:LK;return new Oo(LK,rW,a1,P.opacity)}
function kl(P,J,c,v){return arguments.length===1?s_(P):new Oo(P,J,c,v==null?1:v)}
function Oo(P,J,c,v){this.h=+P;this.s=+J;this.l=+c;this.opacity=+v}
function vk(P,J,c){return(P<60?J+(c-J)*P/60:P<180?c:P<240?J+(c-J)*(240-P)/60:J)*255}
function aA(P){if(P instanceof FJ)return new FJ(P.l,P.a,P.b,P.opacity);if(P instanceof vw){if(isNaN(P.h))return new FJ(P.l,0,0,P.opacity);var J=P.h*Xz0;return new FJ(P.l,Math.cos(J)*P.c,Math.sin(J)*P.c,P.opacity)}P instanceof r7||(P=r$(P));var c=xh(P.r),v=xh(P.g),Hy=xh(P.b);J=Sc(.2225045*c+.7168786*v+.0606169*Hy);if(c===v&&v===Hy)var dW=c=J;else dW=Sc((.4360747*c+.3850649*v+.1430804*Hy)/.96422),c=Sc((.0139322*c+.0971045*v+.7141733*Hy)/.82521);return new FJ(116*J-16,500*(dW-J),200*(J-c),P.opacity)}
function FJ(P,J,c,v){this.l=+P;this.a=+J;this.b=+c;this.opacity=+v}
function Sc(P){return P>LOb?Math.pow(P,1/3):P/z5J+ynb}
function bN(P){return P>yV?P*P*P:z5J*(P-ynb)}
function eo(P){return 255*(P<=.0031308?12.92*P:1.055*Math.pow(P,1/2.4)-.055)}
function xh(P){return(P/=255)<=.04045?P/12.92:Math.pow((P+.055)/1.055,2.4)}
function xJ(P){if(P instanceof vw)return new vw(P.h,P.c,P.l,P.opacity);P instanceof FJ||(P=aA(P));if(P.a===0&&P.b===0)return new vw(NaN,0,P.l,P.opacity);var J=Math.atan2(P.b,P.a)*t20;return new vw(J<0?J+360:J,Math.sqrt(P.a*P.a+P.b*P.b),P.l,P.opacity)}
function $J(P,J,c,v){return arguments.length===1?xJ(P):new vw(P,J,c,v==null?1:v)}
function vw(P,J,c,v){this.h=+P;this.c=+J;this.l=+c;this.opacity=+v}
function zE(P,J,c,v){if(arguments.length===1){var Hy=P;if(Hy instanceof y5)Hy=new y5(Hy.h,Hy.s,Hy.l,Hy.opacity);else{Hy instanceof r7||(Hy=r$(Hy));var dW=Hy.g/255,LK=Hy.b/255,rW=(rnN*LK+Hy.r/255*-1.7884503806-3.5172982438*dW)/(rnN+-1.7884503806-3.5172982438);LK-=rW;var a1=(1.97294*(dW-rW)- -.29227*LK)/-.90649;LK=(dW=Math.sqrt(a1*a1+LK*LK)/(1.97294*rW*(1-rW)))?Math.atan2(a1,LK)*t20-120:NaN;Hy=new y5(LK<0?LK+360:LK,dW,rW,Hy.opacity)}}else Hy=new y5(P,J,c,v==null?1:v);return Hy}
function y5(P,J,c,v){this.h=+P;this.s=+J;this.l=+c;this.opacity=+v}
function g$(P,J,c,v,Hy){var dW=P*P,LK=dW*P;return((1-3*P+3*dW-LK)*J+(4-6*dW+3*LK)*c+(1+3*P+3*dW-3*LK)*v+LK*Hy)/6}
function JB(P){return function(){return P}}
function xz(P,J){return function(c){return P+c*J}}
function J9(P,J,c){return P=Math.pow(P,c),J=Math.pow(J,c)-P,c=1/c,function(v){return Math.pow(P+v*J,c)}}
function mx(P,J){var c=J-P;return c?xz(P,c>180||c<-180?c-360*Math.round(c/360):c):JB(isNaN(P)?J:P)}
function BN(P){return(P=+P)===1?L0:function(J,c){return c-J?J9(J,c,P):JB(isNaN(J)?c:J)}}
function L0(P,J){var c=J-P;return c?xz(P,c):JB(isNaN(P)?J:P)}
function PX(P){return function(J){var c=J.length,v=Array(c),Hy=Array(c),dW=Array(c),LK;for(LK=0;LK<c;++LK){var rW=$i(J[LK]);v[LK]=rW.r||0;Hy[LK]=rW.g||0;dW[LK]=rW.b||0}v=P(v);Hy=P(Hy);dW=P(dW);rW.opacity=1;return function(a1){rW.r=v(a1);rW.g=Hy(a1);rW.b=dW(a1);return rW+""}}}
function pK(P,J){return P=+P,J-=P,function(c){return P+J*c}}
function UP(P){return function(){return P}}
function Fj(P){return function(J){return P(J)+""}}
function hI(P,J){var c=Hec.lastIndex=TVJ.lastIndex=0,v,Hy,dW,LK=-1,rW=[],a1=[];P+="";for(J+="";(v=Hec.exec(P))&&(Hy=TVJ.exec(J));)(dW=Hy.index)>c&&(dW=J.slice(c,dW),rW[LK]?rW[LK]+=dW:rW[++LK]=dW),(v=v[0])===(Hy=Hy[0])?rW[LK]?rW[LK]+=Hy:rW[++LK]=Hy:(rW[++LK]=null,a1.push({i:LK,x:pK(v,Hy)})),c=TVJ.lastIndex;c<J.length&&(dW=J.slice(c),rW[LK]?rW[LK]+=dW:rW[++LK]=dW);return rW.length<2?a1[0]?Fj(a1[0].x):UP(J):(J=a1.length,function(Ot){for(var gW=0,UN;gW<J;++gW)rW[(UN=a1[gW]).i]=UN.x(Ot);return rW.join("")})}
function xp(P,J,c,v,Hy,dW){var LK,rW,a1;if(LK=Math.sqrt(P*P+J*J))P/=LK,J/=LK;if(a1=P*c+J*v)c-=P*a1,v-=J*a1;if(rW=Math.sqrt(c*c+v*v))c/=rW,v/=rW,a1/=rW;P*v<J*c&&(P=-P,J=-J,a1=-a1,LK=-LK);return{translateX:Hy,translateY:dW,rotate:Math.atan2(J,P)*GDE,skewX:Math.atan(a1)*GDE,scaleX:LK,scaleY:rW}}
function D3(P,J,c,v){function Hy(Ot){return Ot.length?Ot.pop()+" ":""}
function dW(Ot,gW,UN,sN,KQ,NV){Ot!==UN||gW!==sN?(KQ=KQ.push("translate(",null,J,null,c),NV.push({i:KQ-4,x:pK(Ot,UN)},{i:KQ-2,x:pK(gW,sN)})):(UN||sN)&&KQ.push("translate("+UN+J+sN+c)}
function LK(Ot,gW,UN,sN){Ot!==gW?(Ot-gW>180?gW+=360:gW-Ot>180&&(Ot+=360),sN.push({i:UN.push(Hy(UN)+"rotate(",null,v)-2,x:pK(Ot,gW)})):gW&&UN.push(Hy(UN)+"rotate("+gW+v)}
function rW(Ot,gW,UN,sN){Ot!==gW?sN.push({i:UN.push(Hy(UN)+"skewX(",null,v)-2,x:pK(Ot,gW)}):gW&&UN.push(Hy(UN)+"skewX("+gW+v)}
function a1(Ot,gW,UN,sN,KQ,NV){Ot!==UN||gW!==sN?(KQ=KQ.push(Hy(KQ)+"scale(",null,",",null,")"),NV.push({i:KQ-4,x:pK(Ot,UN)},{i:KQ-2,x:pK(gW,sN)})):UN===1&&sN===1||KQ.push(Hy(KQ)+"scale("+UN+","+sN+")")}
return function(Ot,gW){var UN=[],sN=[];Ot=P(Ot);gW=P(gW);dW(Ot.translateX,Ot.translateY,gW.translateX,gW.translateY,UN,sN);LK(Ot.rotate,gW.rotate,UN,sN);rW(Ot.skewX,gW.skewX,UN,sN);a1(Ot.scaleX,Ot.scaleY,gW.scaleX,gW.scaleY,UN,sN);Ot=gW=null;return function(KQ){for(var NV=-1,GL=sN.length,Kk;++NV<GL;)UN[(Kk=sN[NV]).i]=Kk.x(KQ);return UN.join("")}}}
function Gf(P){return function(J,c){var v=P((J=kl(J)).h,(c=kl(c)).h),Hy=L0(J.s,c.s),dW=L0(J.l,c.l),LK=L0(J.opacity,c.opacity);return function(rW){J.h=v(rW);J.s=Hy(rW);J.l=dW(rW);J.opacity=LK(rW);return J+""}}}
function aJ(P){return function(J,c){var v=P((J=$J(J)).h,(c=$J(c)).h),Hy=L0(J.c,c.c),dW=L0(J.l,c.l),LK=L0(J.opacity,c.opacity);return function(rW){J.h=v(rW);J.c=Hy(rW);J.l=dW(rW);J.opacity=LK(rW);return J+""}}}
function fv(P){return function v(c){function Hy(dW,LK){var rW=P((dW=zE(dW)).h,(LK=zE(LK)).h),a1=L0(dW.s,LK.s),Ot=L0(dW.l,LK.l),gW=L0(dW.opacity,LK.opacity);return function(UN){dW.h=rW(UN);dW.s=a1(UN);dW.l=Ot(Math.pow(UN,c));dW.opacity=gW(UN);return dW+""}}
c=+c;Hy.gamma=v;return Hy}(1)}
function aH(){return wM||(EIN(ePq),wM=D9.now()+A2W)}
function ePq(){wM=0}
function fM(){this._call=this._time=this._next=null}
function Ey(P,J,c){var v=new fM;v.restart(P,J,c);return v}
function JS(){wM=(uft=D9.now())+A2W;tQ=Z9=0;try{aH();++tQ;for(var P=veq,J;P;)(J=wM-P._time)>=0&&P._call.call(null,J),P=P._next;--tQ}finally{tQ=0;P=veq;for(var c=Infinity;P;)if(P._call){c>P._time&&(c=P._time);var v=P;P=P._next}else J=P._next,P._next=null,P=v?v._next=J:veq=J;SH=v;oc(c);wM=0}}
function Kk1(){var P=D9.now(),J=P-uft;J>1E3&&(A2W-=J,uft=P)}
function oc(P){tQ||(Z9&&(Z9=clearTimeout(Z9)),P-wM>24?(P<Infinity&&(Z9=setTimeout(JS,P-D9.now()-A2W)),Rd&&(Rd=clearInterval(Rd))):(Rd||(uft=D9.now(),Rd=setInterval(Kk1,1E3)),tQ=1,EIN(JS)))}
function JnW(P,J,c){var v=new fM;J=J==null?0:+J;v.restart(function(Hy){v.stop();P(Hy+J)},J,c);
return v}
function BVc(P,J,c,v,Hy,dW){var LK=P.__transition;if(!LK)P.__transition={};else if(c in LK)return;eEE(P,c,{name:J,index:v,group:Hy,on:k6P,tween:FOQ,time:dW.time,delay:dW.delay,duration:dW.duration,ease:dW.ease,timer:null,state:0})}
function xQt(P,J){P=ok(P,J);if(P.state>0)throw Error("ve");return P}
function NC(P,J){P=ok(P,J);if(P.state>2)throw Error("we");return P}
function ok(P,J){P=P.__transition;if(!P||!(P=P[J]))throw Error("xe");return P}
function eEE(P,J,c){function v(a1){var Ot,gW;if(c.state!==1)return dW();for(sN in LK){var UN=LK[sN];if(UN.name===c.name){if(UN.state===3)return JnW(v);UN.state===4?(UN.state=6,UN.timer.stop(),UN.on.call("interrupt",P,P.__data__,UN.index,UN.group),delete LK[sN]):+sN<J&&(UN.state=6,UN.timer.stop(),delete LK[sN])}}JnW(function(){c.state===3&&(c.state=4,c.timer.restart(Hy,c.delay,c.time),Hy(a1))});
c.state=2;c.on.call("start",P,P.__data__,c.index,c.group);if(c.state===2){c.state=3;rW=Array(gW=c.tween.length);var sN=0;for(Ot=-1;sN<gW;++sN)if(UN=c.tween[sN].value.call(P,P.__data__,c.index,c.group))rW[++Ot]=UN;rW.length=Ot+1}}
function Hy(a1){a1=a1<c.duration?c.ease.call(null,a1/c.duration):(c.timer.restart(dW),c.state=5,1);for(var Ot=-1,gW=rW.length;++Ot<gW;)rW[Ot].call(null,a1);c.state===5&&(c.on.call("end",P,P.__data__,c.index,c.group),dW())}
function dW(){c.state=6;c.timer.stop();delete LK[J];for(var a1 in LK)return;delete P.__transition}
var LK=P.__transition,rW;LK[J]=c;c.timer=Ey(function(a1){c.state=1;c.timer.restart(v,c.delay,c.time);c.delay<=a1&&v(a1-c.delay)},0,c.time)}
function XgE(P,J){var c,v;return function(){var Hy=NC(this,P),dW=Hy.tween;if(dW!==c){v=c=dW;dW=0;for(var LK=v.length;dW<LK;++dW)if(v[dW].name===J){v=v.slice();v.splice(dW,1);break}}Hy.tween=v}}
function zE2(P,J,c){var v,Hy;if(typeof c!=="function")throw Error();return function(){var dW=NC(this,P),LK=dW.tween;if(LK!==v){Hy=(v=LK).slice();LK={name:J,value:c};for(var rW=0,a1=Hy.length;rW<a1;++rW)if(Hy[rW].name===J){Hy[rW]=LK;break}rW===a1&&Hy.push(LK)}dW.tween=Hy}}
function UQq(P,J,c){var v=P._id;P.each(function(){var Hy=NC(this,v);(Hy.value||(Hy.value={}))[J]=c.apply(this,arguments)});
return function(Hy){return ok(Hy,v).value[J]}}
function oIZ(P,J){var c;return(typeof J==="number"?pK:J instanceof dp?h5a:(c=dp(J))?(J=c,h5a):hI)(P,J)}
function yXB(P){return function(){this.removeAttribute(P)}}
function tiV(P){return function(){this.removeAttributeNS(P.space,P.local)}}
function rXu(P,J,c){var v,Hy;return function(){var dW=this.getAttribute(P);return dW===c?null:dW===v?Hy:Hy=J(v=dW,c)}}
function G6h(P,J,c){var v,Hy;return function(){var dW=this.getAttributeNS(P.space,P.local);return dW===c?null:dW===v?Hy:Hy=J(v=dW,c)}}
function Et6(P,J,c){var v,Hy,dW;return function(){var LK=c(this);if(LK==null)return void this.removeAttribute(P);var rW=this.getAttribute(P);return rW===LK?null:rW===v&&LK===Hy?dW:dW=J(v=rW,Hy=LK)}}
function JXV(P,J,c){var v,Hy,dW;return function(){var LK=c(this);if(LK==null)return void this.removeAttributeNS(P.space,P.local);var rW=this.getAttributeNS(P.space,P.local);return rW===LK?null:rW===v&&LK===Hy?dW:dW=J(v=rW,Hy=LK)}}
function otQ(P,J){function c(){var v=this,Hy=J.apply(v,arguments);return Hy&&function(dW){v.setAttributeNS(P.space,P.local,Hy(dW))}}
c._value=J;return c}
function hEV(P,J){function c(){var v=this,Hy=J.apply(v,arguments);return Hy&&function(dW){v.setAttribute(P,Hy(dW))}}
c._value=J;return c}
function Pjb(P,J){return function(){xQt(this,P).delay=+J.apply(this,arguments)}}
function Dtu(P,J){return J=+J,function(){xQt(this,P).delay=J}}
function ZIY(P,J){return function(){NC(this,P).duration=+J.apply(this,arguments)}}
function S3r(P,J){return J=+J,function(){NC(this,P).duration=J}}
function REI(P,J){if(typeof J!=="function")throw Error();return function(){NC(this,P).ease=J}}
function Q$h(P){return(P+"").trim().split(/^|\s+/).every(function(J){var c=J.indexOf(".");c>=0&&(J=J.slice(0,c));return!J||J==="start"})}
function cXu(P,J,c){var v,Hy,dW=Q$h(J)?xQt:NC;return function(){var LK=dW(this,P),rW=LK.on;if(rW!==v)(Hy=(v=rW).copy()).on(J,c);LK.on=Hy}}
function WOB(P){return function(){var J=this.parentNode,c;for(c in this.__transition)if(+c!==P)return;J&&J.removeChild(this)}}
function bIb(P,J){var c,v,Hy;return function(){var dW=Zg(this,P),LK=(this.style.removeProperty(P),Zg(this,P));return dW===LK?null:dW===c&&LK===v?Hy:Hy=J(c=dW,v=LK)}}
function q3Y(P){return function(){this.style.removeProperty(P)}}
function MiE(P,J,c){var v,Hy;return function(){var dW=Zg(this,P);return dW===c?null:dW===v?Hy:Hy=J(v=dW,c)}}
function s$h(P,J,c){var v,Hy,dW;return function(){var LK=Zg(this,P),rW=c(this);rW==null&&(rW=(this.style.removeProperty(P),Zg(this,P)));return LK===rW?null:LK===v&&rW===Hy?dW:dW=J(v=LK,Hy=rW)}}
function pgu(P,J,c){function v(){var Hy=this,dW=J.apply(Hy,arguments);return dW&&function(LK){Hy.style.setProperty(P,dW(LK),c)}}
v._value=J;return v}
function AXE(P){return function(){this.textContent=P}}
function u82(P){return function(){var J=P(this);this.textContent=J==null?"":J}}
function Jt(P,J,c,v){this._groups=P;this._parents=J;this._name=c;this._id=v}
function nX1(P){return{type:P}}
function $QN(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function O01(){}
function Pv3(P,J){var c=new O01;if(P instanceof O01)P.each(function(LK,rW){c.set(rW,LK)});
else if(Array.isArray(P)){var v=-1,Hy=P.length,dW;if(J==null)for(;++v<Hy;)c.set(v,P[v]);else for(;++v<Hy;)c.set(J(dW=P[v],v,P),dW)}else if(P)for(v in P)c.set(v,P[v]);return c}
function CGw(){}
function Dn3(P){return function(J){for(var c={},v=0;v<P.length;v++)c[P[v]]=J[v]||"";return c}}
function vtu(P,J){var c=Dn3(P);return function(v,Hy){return J(c(v),Hy,P)}}
function OI6(P){var J=Object.create(null),c=[];P.forEach(function(v){for(var Hy in v)Hy in J||c.push(J[Hy]=Hy)});
return c}
function Z2N(P){function J(LK,rW){function a1(){if(NV)return dQy;if(GL)return GL=!1,S$0;var A2,KN=UN,H$;if(LK.charCodeAt(KN)===34){for(;UN++<gW&&LK.charCodeAt(UN)!==34||LK.charCodeAt(++UN)===34;);(A2=UN)>=gW?NV=!0:(H$=LK.charCodeAt(UN++))===10?GL=!0:H$===13&&(GL=!0,LK.charCodeAt(UN)===10&&++UN);return LK.slice(KN+1,A2-1).replace(/""/g,'"')}for(;UN<gW;){if((H$=LK.charCodeAt(A2=UN++))===10)GL=!0;else if(H$===13)GL=!0,LK.charCodeAt(UN)===10&&++UN;else if(H$!==dW)continue;return LK.slice(KN,A2)}return NV=
!0,LK.slice(KN,gW)}
var Ot=[],gW=LK.length,UN=0,sN=0,KQ,NV=gW<=0,GL=!1;LK.charCodeAt(gW-1)===10&&--gW;for(LK.charCodeAt(gW-1)===13&&--gW;(KQ=a1())!==dQy;){for(var Kk=[];KQ!==S$0&&KQ!==dQy;)Kk.push(KQ),KQ=a1();rW&&(Kk=rW(Kk,sN++))==null||Ot.push(Kk)}return Ot}
function c(LK){return LK.map(v).join(P)}
function v(LK){return LK==null?"":Hy.test(LK)?'"'+LK.replace(/"/g,'""')+'"':LK}
var Hy=new RegExp('["'+P+"\n\r]"),dW=P.charCodeAt(0);return{parse:function(LK,rW){var a1,Ot;LK=J(LK,function(gW,UN){if(a1)return a1(gW,UN-1);Ot=gW;a1=rW?vtu(gW,rW):Dn3(gW)});
LK.columns=Ot||[];return LK},
parseRows:J,format:function(LK,rW){rW==null&&(rW=OI6(LK));return[rW.map(v).join(P)].concat(LK.map(function(a1){return rW.map(function(Ot){return v(a1[Ot])}).join(P)})).join("\n")},
formatRows:function(LK){return LK.map(c).join("\n")}}}
function Cjh(P){if(!P.ok)throw Error("ye`"+P.status+"`"+P.statusText);return P.text()}
function R5a(P){return function(J,c,v){arguments.length===2&&typeof c==="function"&&(v=c,c=void 0);return fetch(J,c).then(Cjh).then(function(Hy){return P(Hy,v)})}}
function QMo(P,J,c,v){if(isNaN(J)||isNaN(c))return P;var Hy,dW=P._root;v={data:v};var LK=P._x0,rW=P._y0,a1=P._x1,Ot=P._y1,gW,UN,sN,KQ,NV;if(!dW)return P._root=v,P;for(;dW.length;)if((sN=J>=(gW=(LK+a1)/2))?LK=gW:a1=gW,(KQ=c>=(UN=(rW+Ot)/2))?rW=UN:Ot=UN,Hy=dW,!(dW=dW[NV=KQ<<1|sN]))return Hy[NV]=v,P;var GL=+P._x.call(null,dW.data);var Kk=+P._y.call(null,dW.data);if(J===GL&&c===Kk)return v.next=dW,Hy?Hy[NV]=v:P._root=v,P;do Hy=Hy?Hy[NV]=Array(4):P._root=Array(4),(sN=J>=(gW=(LK+a1)/2))?LK=gW:a1=gW,(KQ=
c>=(UN=(rW+Ot)/2))?rW=UN:Ot=UN;while((NV=KQ<<1|sN)===(sN=(Kk>=UN)<<1|GL>=gW));return Hy[sN]=dW,Hy[NV]=v,P}
function dP(P,J,c,v,Hy){this.node=P;this.x0=J;this.y0=c;this.x1=v;this.y1=Hy}
function aHb(P){return P[0]}
function fH2(P){return P[1]}
function w9f(P,J,c,v,Hy,dW){this._x=P;this._y=J;this._x0=c;this._y0=v;this._x1=Hy;this._y1=dW;this._root=void 0}
function cnJ(P){for(var J={data:P.data},c=J;P=P.next;)c=c.next={data:P.data};return J}
function aB3(P,J){if((J=(P=J?P.toExponential(J-1):P.toExponential()).indexOf("e"))<0)return null;var c=P.slice(0,J);return[c.length>1?c[0]+c.slice(2):c,+P.slice(J+1)]}
function gt6(P){return P=aB3(Math.abs(P)),P?P[1]:NaN}
function mtE(P,J){return function(c,v){for(var Hy=c.length,dW=[],LK=0,rW=P[0],a1=0;Hy>0&&rW>0;){a1+rW+1>v&&(rW=Math.max(1,v-a1));dW.push(c.substring(Hy-=rW,Hy+rW));if((a1+=rW+1)>v)break;rW=P[LK=(LK+1)%P.length]}return dW.reverse().join(J)}}
function iIQ(P){return function(J){return J.replace(/[0-9]/g,function(c){return P[+c]})}}
function NVg(P){return new KBt(P)}
function KBt(P){if(!(J=Vx2.exec(P)))throw Error("ze`"+P);var J;this.fill=J[1]||" ";this.align=J[2]||">";this.sign=J[3]||"-";this.symbol=J[4]||"";this.zero=!!J[5];this.width=J[6]&&+J[6];this.comma=!!J[7];this.precision=J[8]&&+J[8].slice(1);this.trim=!!J[9];this.type=J[10]||""}
function WEN(P,J){J=aB3(P,J);if(!J)return P+"";P=J[0];J=J[1];return J<0?"0."+Array(-J).join("0")+P:P.length>J+1?P.slice(0,J+1)+"."+P.slice(J+1):P+Array(J-P.length+2).join("0")}
function b2B(P){return P}
function lcg(P){function J(rW){function a1(qV){var Xf=H$,JI=Hu,xn,fQ;if(KN==="c")JI=j_(qV)+JI,qV="";else{qV=+qV;var eb=qV<0;qV=j_(Math.abs(qV),Kk);if(A2){var BO=qV.length,EZ=1,uG=-1;a:for(;EZ<BO;++EZ)switch(qV[EZ]){case ".":uG=xn=EZ;break;case "0":uG===0&&(uG=EZ);xn=EZ;break;default:if(!+qV[EZ])break a;uG>0&&(uG=0)}qV=uG>0?qV.slice(0,uG)+qV.slice(xn+1):qV}eb&&+qV===0&&(eb=!1);Xf=(eb?UN==="("?UN:"-":UN==="-"||UN==="("?"":UN)+Xf;JI=(KN==="s"?q$J[8+M2W/3]:"")+JI+(eb&&UN==="("?")":"");if(Vo)for(eb=-1,
xn=qV.length;++eb<xn;)if(fQ=qV.charCodeAt(eb),48>fQ||fQ>57){JI=(fQ===46?Hy+qV.slice(eb+1):qV.slice(eb))+JI;qV=qV.slice(0,eb);break}}GL&&!KQ&&(qV=c(qV,Infinity));fQ=Xf.length+qV.length+JI.length;eb=fQ<NV?Array(NV-fQ+1).join(Ot):"";GL&&KQ&&(qV=c(eb+qV,eb.length?NV-JI.length:Infinity),eb="");switch(gW){case "<":qV=Xf+qV+JI+eb;break;case "=":qV=Xf+eb+qV+JI;break;case "^":qV=eb.slice(0,fQ=eb.length>>1)+Xf+qV+JI+eb.slice(fQ);break;default:qV=eb+Xf+qV+JI}return dW(qV)}
rW=NVg(rW);var Ot=rW.fill,gW=rW.align,UN=rW.sign,sN=rW.symbol,KQ=rW.zero,NV=rW.width,GL=rW.comma,Kk=rW.precision,A2=rW.trim,KN=rW.type;KN==="n"?(GL=!0,KN="g"):sMJ[KN]||(Kk==null&&(Kk=12),A2=!0,KN="g");if(KQ||Ot==="0"&&gW==="=")KQ=!0,Ot="0",gW="=";var H$=sN==="$"?v[0]:sN==="#"&&/[boxX]/.test(KN)?"0"+KN.toLowerCase():"",Hu=sN==="$"?v[1]:/[%p]/.test(KN)?LK:"",j_=sMJ[KN],Vo=/[defgprs%]/.test(KN);Kk=Kk==null?6:/[gprs]/.test(KN)?Math.max(1,Math.min(21,Kk)):Math.max(0,Math.min(20,Kk));a1.toString=function(){return rW+
""};
return a1}
var c=P.grouping&&P.thousands?mtE(P.grouping,P.thousands):b2B,v=P.currency,Hy=P.decimal,dW=P.numerals?iIQ(P.numerals):b2B,LK=P.percent||"%";return{format:J,formatPrefix:function(rW,a1){var Ot=J((rW=NVg(rW),rW.type="f",rW));rW=Math.max(-8,Math.min(8,Math.floor(gt6(a1)/3)))*3;var gW=Math.pow(10,-rW),UN=q$J[8+rW/3];return function(sN){return Ot(gW*sN)+UN}}}}
function j7(){this.reset()}
function pz0(P,J,c){var v=P.s=J+c,Hy=v-J;P.t=J-(v-Hy)+(c-Hy)}
function fBc(P){return P>1?bP:P<-1?-bP:Math.asin(P)}
function IcI(){}
function Ana(P){var J=P[0];P=P[1];var c=q7(P);return[c*q7(J),c*dJ(J),dJ(P)]}
function u$b(P,J){return[P[1]*J[2]-P[2]*J[1],P[2]*J[0]-P[0]*J[2],P[0]*J[1]-P[1]*J[0]]}
function vIE(P){var J=geJ(P[0]*P[0]+P[1]*P[1]+P[2]*P[2]);P[0]/=J;P[1]/=J;P[2]/=J}
function Hxg(){var P=[],J;return{point:function(c,v){J.push([c,v])},
lineStart:function(){P.push(J=[])},
lineEnd:IcI,rejoin:function(){P.length>1&&P.push(P.pop().concat(P.shift()))},
result:function(){var c=P;P=[];J=null;return c}}}
function mDJ(P,J,c,v){this.x=P;this.z=J;this.o=c;this.e=v;this.v=!1;this.n=this.p=null}
function TyP(P,J,c,v,Hy){var dW=[],LK=[];P.forEach(function(UN){if(!((sN=UN.length-1)<=0)){var sN,KQ=UN[0],NV=UN[sN],GL=KQ;if(o7(GL[0]-NV[0])<1E-6&&o7(GL[1]-NV[1])<1E-6){Hy.lineStart();for(rW=0;rW<sN;++rW)Hy.point((KQ=UN[rW])[0],KQ[1]);Hy.lineEnd()}else dW.push(sN=new mDJ(KQ,UN,null,!0)),LK.push(sN.o=new mDJ(KQ,null,sN,!1)),dW.push(sN=new mDJ(NV,UN,null,!1)),LK.push(sN.o=new mDJ(NV,null,sN,!0))}});
if(dW.length){LK.sort(J);O2Z(dW);O2Z(LK);var rW=0;for(P=LK.length;rW<P;++rW)LK[rW].e=c=!c;c=dW[0];for(var a1;;){for(var Ot=c,gW=!0;Ot.v;)if((Ot=Ot.n)===c)return;J=Ot.z;Hy.lineStart();do{Ot.v=Ot.o.v=!0;if(Ot.e){if(gW)for(rW=0,P=J.length;rW<P;++rW)Hy.point((a1=J[rW])[0],a1[1]);else v(Ot.x,Ot.n.x,1,Hy);Ot=Ot.n}else{if(gW)for(J=Ot.p.z,rW=J.length-1;rW>=0;--rW)Hy.point((a1=J[rW])[0],a1[1]);else v(Ot.x,Ot.p.x,-1,Hy);Ot=Ot.p}Ot=Ot.o;J=Ot.z;gW=!gW}while(!Ot.v);Hy.lineEnd()}}}
function O2Z(P){if(J=P.length){for(var J,c=0,v=P[0],Hy;++c<J;)v.n=Hy=P[c],Hy.p=v,v=Hy;v.n=Hy=P[0];Hy.p=v}}
function ByI(P){return P.length>1}
function xwh(P,J){return((P=P.x)[0]<0?P[1]-bP-1E-6:bP-P[1])-((J=J.x)[0]<0?J[1]-bP-1E-6:bP-J[1])}
function jp1(){}
function CvZ(P){return function(J,c){var v=q7(J),Hy=q7(c);v=P(v*Hy);return[v*Hy*dJ(J),v*dJ(c)]}}
function QD(P){return function(J,c){var v=geJ(J*J+c*c),Hy=P(v),dW=dJ(Hy);Hy=q7(Hy);return[azi(J*dW,v*Hy),fBc(v&&c*dW/v)]}}
function Uw2(P){var J=0,c=P.children,v=c&&c.length;if(v)for(;--v>=0;)J+=c[v].value;else J=1;P.value=J}
function fzi(P,J){var c=new cr(P);P=+P.value&&(c.value=P.value);var v,Hy=[c],dW,LK,rW,a1;for(J==null&&(J=nRQ);v=Hy.pop();)if(P&&(v.value=+v.data.value),(LK=J(v.data))&&(a1=LK.length))for(v.children=Array(a1),rW=a1-1;rW>=0;--rW)Hy.push(dW=v.children[rW]=new cr(LK[rW])),dW.parent=v,dW.depth=v.depth+1;return c.eachBefore($w6)}
function nRQ(P){return P.children}
function dwQ(P){P.data=P.data.data}
function $w6(P){var J=0;do P.height=J;while((P=P.parent)&&P.height<++J)}
function cr(P){this.data=P;this.depth=this.height=0;this.parent=null}
function VM(P,J,c,v){function Hy(dW){return P(dW=new Date(+dW)),dW}
Hy.floor=Hy;Hy.ceil=function(dW){return P(dW=new Date(dW-1)),J(dW,1),P(dW),dW};
Hy.round=function(dW){var LK=Hy(dW),rW=Hy.ceil(dW);return dW-LK<rW-dW?LK:rW};
Hy.offset=function(dW,LK){return J(dW=new Date(+dW),LK==null?1:Math.floor(LK)),dW};
Hy.range=function(dW,LK,rW){var a1=[],Ot;dW=Hy.ceil(dW);rW=rW==null?1:Math.floor(rW);if(!(dW<LK&&rW>0))return a1;do a1.push(Ot=new Date(+dW)),J(dW,rW),P(dW);while(Ot<dW&&dW<LK);return a1};
Hy.filter=function(dW){return VM(function(LK){if(LK>=LK)for(;P(LK),!dW(LK);)LK.setTime(LK-1)},function(LK,rW){if(LK>=LK)if(rW<0)for(;++rW<=0;)for(;J(LK,-1),!dW(LK););
else for(;--rW>=0;)for(;J(LK,1),!dW(LK););})};
c&&(Hy.count=function(dW,LK){YTc.setTime(+dW);LBc.setTime(+LK);P(YTc);P(LBc);return Math.floor(c(YTc,LBc))},Hy.every=function(dW){dW=Math.floor(dW);
return isFinite(dW)&&dW>0?dW>1?Hy.filter(v?function(LK){return v(LK)%dW===0}:function(LK){return Hy.count(0,LK)%dW===0}):Hy:null});
return Hy}
function Kw(P){return VM(function(J){J.setDate(J.getDate()-(J.getDay()+7-P)%7);J.setHours(0,0,0,0)},function(J,c){J.setDate(J.getDate()+c*7)},function(J,c){return(c-J-(c.getTimezoneOffset()-J.getTimezoneOffset())*6E4)/6048E5})}
function jA(P){return VM(function(J){J.setUTCDate(J.getUTCDate()-(J.getUTCDay()+7-P)%7);J.setUTCHours(0,0,0,0)},function(J,c){J.setUTCDate(J.getUTCDate()+c*7)},function(J,c){return(c-J)/6048E5})}
function wCI(P){if(0<=P.y&&P.y<100){var J=new Date(-1,P.m,P.d,P.H,P.M,P.S,P.L);J.setFullYear(P.y);return J}return new Date(P.y,P.m,P.d,P.H,P.M,P.S,P.L)}
function i0w(P){if(0<=P.y&&P.y<100){var J=new Date(Date.UTC(-1,P.m,P.d,P.H,P.M,P.S,P.L));J.setUTCFullYear(P.y);return J}return new Date(Date.UTC(P.y,P.m,P.d,P.H,P.M,P.S,P.L))}
function Wr(P){return{y:P,m:0,d:1,H:0,M:0,S:0,L:0}}
function Nyr(P){function J(JI,xn){return function(fQ){var eb=[],BO=-1,EZ=0,uG=JI.length,J6,Ch;for(fQ instanceof Date||(fQ=new Date(+fQ));++BO<uG;)if(JI.charCodeAt(BO)===37){eb.push(JI.slice(EZ,BO));(EZ=gIJ[J6=JI.charAt(++BO)])!=null?J6=JI.charAt(++BO):EZ=J6==="e"?" ":"0";if(Ch=xn[J6])J6=Ch(fQ,EZ);eb.push(J6);EZ=BO+1}eb.push(JI.slice(EZ,BO));return eb.join("")}}
function c(JI,xn){return function(fQ){var eb=Wr(1900);if(v(eb,JI,fQ,0)!=fQ.length)return null;if("Q"in eb)return new Date(eb.Q);"p"in eb&&(eb.H=eb.H%12+eb.p*12);if("V"in eb){if(eb.V<1||eb.V>53)return null;"w"in eb||(eb.w=1);if("Z"in eb){fQ=i0w(Wr(eb.y));var BO=fQ.getUTCDay();fQ=BO>4||BO===0?ebW.ceil(fQ):ebW(fQ);fQ=mn0.offset(fQ,(eb.V-1)*7);eb.y=fQ.getUTCFullYear();eb.m=fQ.getUTCMonth();eb.d=fQ.getUTCDate()+(eb.w+6)%7}else fQ=xn(Wr(eb.y)),BO=fQ.getDay(),fQ=BO>4||BO===0?kHW.ceil(fQ):kHW(fQ),fQ=i20.offset(fQ,
(eb.V-1)*7),eb.y=fQ.getFullYear(),eb.m=fQ.getMonth(),eb.d=fQ.getDate()+(eb.w+6)%7}else if("W"in eb||"U"in eb)"w"in eb||(eb.w="u"in eb?eb.u%7:"W"in eb?1:0),BO="Z"in eb?i0w(Wr(eb.y)).getUTCDay():xn(Wr(eb.y)).getDay(),eb.m=0,eb.d="W"in eb?(eb.w+6)%7+eb.W*7-(BO+5)%7:eb.w+eb.U*7-(BO+6)%7;return"Z"in eb?(eb.H+=eb.Z/100|0,eb.M+=eb.Z%100,i0w(eb)):xn(eb)}}
function v(JI,xn,fQ,eb){for(var BO=0,EZ=xn.length,uG=fQ.length,J6;BO<EZ;){if(eb>=uG)return-1;J6=xn.charCodeAt(BO++);if(J6===37){if(J6=xn.charAt(BO++),J6=Xf[J6 in gIJ?xn.charAt(BO++):J6],!J6||(eb=J6(JI,fQ,eb))<0)return-1}else if(J6!=fQ.charCodeAt(eb++))return-1}return eb}
var Hy=P.dateTime,dW=P.date,LK=P.time,rW=P.periods,a1=P.days,Ot=P.shortDays,gW=P.months,UN=P.shortMonths,sN=bV(rW),KQ=q8(rW),NV=bV(a1),GL=q8(a1),Kk=bV(Ot),A2=q8(Ot),KN=bV(gW),H$=q8(gW),Hu=bV(UN),j_=q8(UN),Vo={a:function(JI){return Ot[JI.getDay()]},
A:function(JI){return a1[JI.getDay()]},
b:function(JI){return UN[JI.getMonth()]},
B:function(JI){return gW[JI.getMonth()]},
c:null,d:V$a,e:V$a,f:Kob,H:jrh,I:YFb,j:LoV,L:leW,m:ekQ,M:kiP,p:function(JI){return rW[+(JI.getHours()>=12)]},
Q:IeN,s:HBN,S:FoE,u:XCV,U:zkb,V:y8P,w:tx6,W:r8Q,x:null,X:null,y:GiB,Y:ERV,Z:J86,"%":TX3},qV={a:function(JI){return Ot[JI.getUTCDay()]},
A:function(JI){return a1[JI.getUTCDay()]},
b:function(JI){return UN[JI.getUTCMonth()]},
B:function(JI){return gW[JI.getUTCMonth()]},
c:null,d:BXZ,e:BXZ,f:oRQ,H:hkh,I:Ph6,j:Dwb,L:xfW,m:Zx6,M:SFr,p:function(JI){return rW[+(JI.getUTCHours()>=12)]},
Q:IeN,s:HBN,S:RkY,u:QrE,U:c8V,V:WoE,w:bxV,W:qFE,x:null,X:null,y:MxV,Y:srh,Z:pC2,"%":TX3},Xf={a:function(JI,xn,fQ){return(xn=Kk.exec(xn.slice(fQ)))?(JI.w=A2[xn[0].toLowerCase()],fQ+xn[0].length):-1},
A:function(JI,xn,fQ){return(xn=NV.exec(xn.slice(fQ)))?(JI.w=GL[xn[0].toLowerCase()],fQ+xn[0].length):-1},
b:function(JI,xn,fQ){return(xn=Hu.exec(xn.slice(fQ)))?(JI.m=j_[xn[0].toLowerCase()],fQ+xn[0].length):-1},
B:function(JI,xn,fQ){return(xn=KN.exec(xn.slice(fQ)))?(JI.m=H$[xn[0].toLowerCase()],fQ+xn[0].length):-1},
c:function(JI,xn,fQ){return v(JI,Hy,xn,fQ)},
d:Ufw,e:Ufw,f:A8b,H:nob,I:nob,j:ugB,L:vRP,m:Ox2,M:Chr,p:function(JI,xn,fQ){return(xn=sN.exec(xn.slice(fQ)))?(JI.p=KQ[xn[0].toLowerCase()],fQ+xn[0].length):-1},
Q:acu,s:fcQ,S:gR2,u:mwg,U:ixg,V:V4E,w:lZI,W:IZ2,x:function(JI,xn,fQ){return v(JI,dW,xn,fQ)},
X:function(JI,xn,fQ){return v(JI,LK,xn,fQ)},
y:HUI,Y:TsQ,Z:BsQ,"%":xWE};Vo.x=J(dW,Vo);Vo.X=J(LK,Vo);Vo.c=J(Hy,Vo);qV.x=J(dW,qV);qV.X=J(LK,qV);qV.c=J(Hy,qV);return{format:function(JI){var xn=J(JI,Vo);xn.toString=function(){return JI};
return xn},
parse:function(JI){var xn=c(JI,wCI);xn.toString=function(){return JI};
return xn},
utcFormat:function(JI){var xn=J(JI,qV);xn.toString=function(){return JI};
return xn},
utcParse:function(JI){var xn=c(JI,i0w);xn.toString=function(){return JI};
return xn}}}
function S_(P,J,c){var v=P<0?"-":"";P=(v?-P:P)+"";var Hy=P.length;return v+(Hy<c?Array(c-Hy+1).join(J)+P:P)}
function UWE(P){return P.replace(nur,"\\$&")}
function bV(P){return new RegExp("^(?:"+P.map(UWE).join("|")+")","i")}
function q8(P){for(var J={},c=-1,v=P.length;++c<v;)J[P[c].toLowerCase()]=c;return J}
function lZI(P,J,c){return(J=Tq.exec(J.slice(c,c+1)))?(P.w=+J[0],c+J[0].length):-1}
function mwg(P,J,c){return(J=Tq.exec(J.slice(c,c+1)))?(P.u=+J[0],c+J[0].length):-1}
function ixg(P,J,c){return(J=Tq.exec(J.slice(c,c+2)))?(P.U=+J[0],c+J[0].length):-1}
function V4E(P,J,c){return(J=Tq.exec(J.slice(c,c+2)))?(P.V=+J[0],c+J[0].length):-1}
function IZ2(P,J,c){return(J=Tq.exec(J.slice(c,c+2)))?(P.W=+J[0],c+J[0].length):-1}
function TsQ(P,J,c){return(J=Tq.exec(J.slice(c,c+4)))?(P.y=+J[0],c+J[0].length):-1}
function HUI(P,J,c){return(J=Tq.exec(J.slice(c,c+2)))?(P.y=+J[0]+(+J[0]>68?1900:2E3),c+J[0].length):-1}
function BsQ(P,J,c){return(J=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(J.slice(c,c+6)))?(P.Z=J[1]?0:-(J[2]+(J[3]||"00")),c+J[0].length):-1}
function Ox2(P,J,c){return(J=Tq.exec(J.slice(c,c+2)))?(P.m=J[0]-1,c+J[0].length):-1}
function Ufw(P,J,c){return(J=Tq.exec(J.slice(c,c+2)))?(P.d=+J[0],c+J[0].length):-1}
function ugB(P,J,c){return(J=Tq.exec(J.slice(c,c+3)))?(P.m=0,P.d=+J[0],c+J[0].length):-1}
function nob(P,J,c){return(J=Tq.exec(J.slice(c,c+2)))?(P.H=+J[0],c+J[0].length):-1}
function Chr(P,J,c){return(J=Tq.exec(J.slice(c,c+2)))?(P.M=+J[0],c+J[0].length):-1}
function gR2(P,J,c){return(J=Tq.exec(J.slice(c,c+2)))?(P.S=+J[0],c+J[0].length):-1}
function vRP(P,J,c){return(J=Tq.exec(J.slice(c,c+3)))?(P.L=+J[0],c+J[0].length):-1}
function A8b(P,J,c){return(J=Tq.exec(J.slice(c,c+6)))?(P.L=Math.floor(J[0]/1E3),c+J[0].length):-1}
function xWE(P,J,c){return(P=$Wr.exec(J.slice(c,c+1)))?c+P[0].length:-1}
function acu(P,J,c){return(J=Tq.exec(J.slice(c)))?(P.Q=+J[0],c+J[0].length):-1}
function fcQ(P,J,c){return(J=Tq.exec(J.slice(c)))?(P.Q=+J[0]*1E3,c+J[0].length):-1}
function V$a(P,J){return S_(P.getDate(),J,2)}
function jrh(P,J){return S_(P.getHours(),J,2)}
function YFb(P,J){return S_(P.getHours()%12||12,J,2)}
function LoV(P,J){return S_(1+i20.count(rs(P),P),J,3)}
function leW(P,J){return S_(P.getMilliseconds(),J,3)}
function Kob(P,J){return leW(P,J)+"000"}
function ekQ(P,J){return S_(P.getMonth()+1,J,2)}
function kiP(P,J){return S_(P.getMinutes(),J,2)}
function FoE(P,J){return S_(P.getSeconds(),J,2)}
function XCV(P){P=P.getDay();return P===0?7:P}
function zkb(P,J){return S_(dWB.count(rs(P),P),J,2)}
function y8P(P,J){var c=P.getDay();P=c>=4||c===0?FBc(P):FBc.ceil(P);return S_(FBc.count(rs(P),P)+(rs(P).getDay()===4),J,2)}
function tx6(P){return P.getDay()}
function r8Q(P,J){return S_(kHW.count(rs(P),P),J,2)}
function GiB(P,J){return S_(P.getFullYear()%100,J,2)}
function ERV(P,J){return S_(P.getFullYear()%1E4,J,4)}
function J86(P){P=P.getTimezoneOffset();return(P>0?"-":(P*=-1,"+"))+S_(P/60|0,"0",2)+S_(P%60,"0",2)}
function BXZ(P,J){return S_(P.getUTCDate(),J,2)}
function hkh(P,J){return S_(P.getUTCHours(),J,2)}
function Ph6(P,J){return S_(P.getUTCHours()%12||12,J,2)}
function Dwb(P,J){return S_(1+mn0.count(G3(P),P),J,3)}
function xfW(P,J){return S_(P.getUTCMilliseconds(),J,3)}
function oRQ(P,J){return xfW(P,J)+"000"}
function Zx6(P,J){return S_(P.getUTCMonth()+1,J,2)}
function SFr(P,J){return S_(P.getUTCMinutes(),J,2)}
function RkY(P,J){return S_(P.getUTCSeconds(),J,2)}
function QrE(P){P=P.getUTCDay();return P===0?7:P}
function c8V(P,J){return S_(wjB.count(G3(P),P),J,2)}
function WoE(P,J){var c=P.getUTCDay();P=c>=4||c===0?X9c(P):X9c.ceil(P);return S_(X9c.count(G3(P),P)+(G3(P).getUTCDay()===4),J,2)}
function bxV(P){return P.getUTCDay()}
function qFE(P,J){return S_(ebW.count(G3(P),P),J,2)}
function MxV(P,J){return S_(P.getUTCFullYear()%100,J,2)}
function srh(P,J){return S_(P.getUTCFullYear()%1E4,J,4)}
function pC2(){return"+0000"}
function TX3(){return"%"}
function IeN(P){return+P}
function HBN(P){return Math.floor(+P/1E3)}
function Ck(P){for(var J=P.length/6|0,c=Array(J),v=0;v<J;)c[v]="#"+P.slice(v*6,++v*6);return c}
function xG(P){return Ns2(P[P.length-1])}
function Vtq(P){var J=P.length;return function(c){return P[Math.max(0,Math.min(J-1,Math.floor(c*J)))]}}
function $fB(P){this._context=P}
function dfJ(P){this._curve=P}
function wmb(P,J,c){var v=P._x1-P._x0;J-=P._x1;var Hy=(P._y1-P._y0)/(v||J<0&&-0);P=(c-P._y1)/(J||v<0&&-0);return((Hy<0?-1:1)+(P<0?-1:1))*Math.min(Math.abs(Hy),Math.abs(P),.5*Math.abs((Hy*J+P*v)/(v+J)))||0}
function NX0(P,J){var c=P._x1-P._x0;return c?(3*(P._y1-P._y0)/c-J)/2:J}
function zbW(P,J,c){var v=P._x0,Hy=P._x1,dW=P._y1,LK=(Hy-v)/3;P._context.bezierCurveTo(v+LK,P._y0+LK*J,Hy-LK,dW-LK*c,Hy,dW)}
function ydw(P){this._context=P}
function Kyb(P){this._context=P}
function M8(P,J,c){this.k=P;this.x=J;this.y=c}
(function(P){P.length===1&&(P=l(P));return{left:function(J,c,v,Hy){v==null&&(v=0);Hy==null&&(Hy=J.length);for(;v<Hy;){var dW=v+Hy>>>1;P(J[dW],c)<0?v=dW+1:Hy=dW}return v},
right:function(J,c,v,Hy){v==null&&(v=0);Hy==null&&(Hy=J.length);for(;v<Hy;){var dW=v+Hy>>>1;P(J[dW],c)>0?Hy=dW:v=dW+1}return v}}})(V);
var BZE={value:function(){}};
H.prototype=I.prototype={constructor:H,on:function(P,J){var c=this._,v=T(P+"",c),Hy,dW=-1,LK=v.length;if(arguments.length<2)for(;++dW<LK;){var rW;if(rW=Hy=(P=v[dW]).type){a:{rW=c[Hy];for(var a1=0,Ot=rW.length;a1<Ot;++a1)if((Hy=rW[a1]).name===P.name){Hy=Hy.value;break a}Hy=void 0}rW=Hy}if(rW)return Hy}else{if(J!=null&&typeof J!=="function")throw Error("Ae`"+J);for(;++dW<LK;)if(Hy=(P=v[dW]).type)c[Hy]=x(c[Hy],P.name,J);else if(J==null)for(Hy in c)c[Hy]=x(c[Hy],P.name,null);return this}},
copy:function(){var P={},J=this._,c;for(c in J)P[c]=J[c].slice();return new H(P)},
call:function(P,J){if((Hy=arguments.length-2)>0)for(var c=Array(Hy),v=0,Hy,dW;v<Hy;++v)c[v]=arguments[v+2];if(!this._.hasOwnProperty(P))throw Error("ue`"+P);dW=this._[P];v=0;for(Hy=dW.length;v<Hy;++v)dW[v].value.apply(J,c)},
apply:function(P,J,c){if(!this._.hasOwnProperty(P))throw Error("ue`"+P);P=this._[P];for(var v=0,Hy=P.length;v<Hy;++v)P[v].value.apply(J,c)}};
var WK={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/"},jqw=function(P){return function(){return this.matches(P)}};
if(typeof document!=="undefined"){var sv=document.documentElement;if(!sv.matches){var KIr=sv.webkitMatchesSelector||sv.msMatchesSelector||sv.mozMatchesSelector||sv.oMatchesSelector;jqw=function(P){return function(){return KIr.call(this,P)}}}}var YCN=jqw;
r.prototype={constructor:r,appendChild:function(P){return this._parent.insertBefore(P,this._next)},
insertBefore:function(P,J){return this._parent.insertBefore(P,J)},
querySelector:function(P){return this._parent.querySelector(P)},
querySelectorAll:function(P){return this._parent.querySelectorAll(P)}};
var kDN={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(kDN={mouseenter:"mouseover",mouseleave:"mouseout"}));var xtB=[null];gb.prototype=Bh.prototype={constructor:gb,select:function(P){typeof P!=="function"&&(P=k(P));for(var J=this._groups,c=J.length,v=Array(c),Hy=0;Hy<c;++Hy)for(var dW=J[Hy],LK=dW.length,rW=v[Hy]=Array(LK),a1,Ot,gW=0;gW<LK;++gW)(a1=dW[gW])&&(Ot=P.call(a1,a1.__data__,gW,dW))&&("__data__"in a1&&(Ot.__data__=a1.__data__),rW[gW]=Ot);return new gb(v,this._parents)},
filter:function(P){typeof P!=="function"&&(P=YCN(P));for(var J=this._groups,c=J.length,v=Array(c),Hy=0;Hy<c;++Hy)for(var dW=J[Hy],LK=dW.length,rW=v[Hy]=[],a1,Ot=0;Ot<LK;++Ot)(a1=dW[Ot])&&P.call(a1,a1.__data__,Ot,dW)&&rW.push(a1);return new gb(v,this._parents)},
data:function(P,J){if(!P)return KQ=Array(this.size()),Ot=-1,this.each(function(KN){KQ[++Ot]=KN}),KQ;
var c=J?Z:D,v=this._parents,Hy=this._groups;typeof P!=="function"&&(P=E(P));for(var dW=Hy.length,LK=Array(dW),rW=Array(dW),a1=Array(dW),Ot=0;Ot<dW;++Ot){var gW=v[Ot],UN=Hy[Ot],sN=UN.length,KQ=P.call(gW,gW&&gW.__data__,Ot,v),NV=KQ.length,GL=rW[Ot]=Array(NV),Kk=LK[Ot]=Array(NV);sN=a1[Ot]=Array(sN);c(gW,UN,GL,Kk,sN,KQ,J);UN=gW=0;for(var A2;gW<NV;++gW)if(sN=GL[gW]){for(gW>=UN&&(UN=gW+1);!(A2=Kk[UN])&&++UN<NV;);sN._next=A2||null}}LK=new gb(LK,v);LK._enter=rW;LK._exit=a1;return LK},
exit:function(){return new gb(this._exit||this._groups.map(X),this._parents)},
merge:function(P){var J=this._groups;P=P._groups;for(var c=J.length,v=Math.min(c,P.length),Hy=Array(c),dW=0;dW<v;++dW)for(var LK=J[dW],rW=P[dW],a1=LK.length,Ot=Hy[dW]=Array(a1),gW,UN=0;UN<a1;++UN)if(gW=LK[UN]||rW[UN])Ot[UN]=gW;for(;dW<c;++dW)Hy[dW]=J[dW];return new gb(Hy,this._parents)},
order:function(){for(var P=this._groups,J=-1,c=P.length;++J<c;)for(var v=P[J],Hy=v.length-1,dW=v[Hy],LK;--Hy>=0;)if(LK=v[Hy])dW&&dW!==LK.nextSibling&&dW.parentNode.insertBefore(LK,dW),dW=LK;return this},
sort:function(P){function J(UN,sN){return UN&&sN?P(UN.__data__,sN.__data__):!UN-!sN}
P||(P=S);for(var c=this._groups,v=c.length,Hy=Array(v),dW=0;dW<v;++dW){for(var LK=c[dW],rW=LK.length,a1=Hy[dW]=Array(rW),Ot,gW=0;gW<rW;++gW)if(Ot=LK[gW])a1[gW]=Ot;a1.sort(J)}return(new gb(Hy,this._parents)).order()},
call:function(){var P=arguments[0];arguments[0]=this;P.apply(null,arguments);return this},
nodes:function(){var P=Array(this.size()),J=-1;this.each(function(){P[++J]=this});
return P},
node:function(){for(var P=this._groups,J=0,c=P.length;J<c;++J)for(var v=P[J],Hy=0,dW=v.length;Hy<dW;++Hy){var LK=v[Hy];if(LK)return LK}return null},
size:function(){var P=0;this.each(function(){++P});
return P},
empty:function(){return!this.node()},
each:function(P){for(var J=this._groups,c=0,v=J.length;c<v;++c)for(var Hy=J[c],dW=0,LK=Hy.length,rW;dW<LK;++dW)(rW=Hy[dW])&&P.call(rW,rW.__data__,dW,Hy);return this},
attr:function(P,J){var c=n(P);if(arguments.length<2){var v=this.node();return c.local?v.getAttributeNS(c.space,c.local):v.getAttribute(c)}return this.each((J==null?c.local?Vf:p:typeof J==="function"?c.local?wW:lN:c.local?By:C)(c,J))},
style:function(P,J,c){return arguments.length>1?this.each((J==null?o1:typeof J==="function"?ec:h1)(P,J,c==null?"":c)):Zg(this.node(),P)},
property:function(P,J){return arguments.length>1?this.each((J==null?Va:typeof J==="function"?CK:wb)(P,J)):this.node()[P]},
text:function(P){return arguments.length?this.each(P==null?CZ:(typeof P==="function"?Hw:ME)(P)):this.node().textContent},
html:function(P){return arguments.length?this.each(P==null?uZ:(typeof P==="function"?ya:EN)(P)):this.node().innerHTML},
append:function(P){var J=typeof P==="function"?P:L(P);return this.select(function(){return this.appendChild(J.apply(this,arguments))})},
insert:function(P,J){var c=typeof P==="function"?P:L(P),v=J==null?Dv:typeof J==="function"?J:k(J);return this.select(function(){return this.insertBefore(c.apply(this,arguments),v.apply(this,arguments)||null)})},
remove:function(){return this.each(Tf)},
clone:function(P){return this.select(P?Ut:Oq)},
datum:function(P){return arguments.length?this.property("__data__",P):this.node().__data__},
on:function(P,J,c){var v=vY(P+""),Hy=v.length,dW;if(arguments.length<2){var LK=this.node().__on;if(LK)for(var rW=0,a1=LK.length,Ot;rW<a1;++rW){var gW=0;for(Ot=LK[rW];gW<Hy;++gW)if((dW=v[gW]).type===Ot.type&&dW.name===Ot.name)return Ot.value}}else{LK=J?oi:LZ;c==null&&(c=!1);for(gW=0;gW<Hy;++gW)this.each(LK(v[gW],J,c));return this}},
dispatch:function(P,J){return this.each((typeof J==="function"?jo:st)(P,J))}};
var UtB=0;Zv.prototype=function(){return new Zv}.prototype={constructor:Zv,
get:function(P){for(var J=this._;!(J in P);)if(!(P=P.parentNode))return;return P[J]},
set:function(P,J){return P[this._]=J},
remove:function(P){return this._ in P&&delete P[this._]},
toString:function(){return this._}};
var Ej=1/.7,nth=/^#([0-9a-f]{3})$/,$tB=/^#([0-9a-f]{6})$/,dtr=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),wgB=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),NZI=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),KOY=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*\\)$"),
j$E=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Y3u=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*\\)$"),FEw={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};
sP(sw,dp,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
sP(r7,$i,JV(sw,{brighter:function(P){P=P==null?Ej:Math.pow(Ej,P);return new r7(this.r*P,this.g*P,this.b*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new r7(this.r*P,this.g*P,this.b*P,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"#"+zf(this.r)+zf(this.g)+zf(this.b)},
toString:function(){var P=this.opacity;P=isNaN(P)?1:Math.max(0,Math.min(1,P));return(P===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))+(P===1?")":", "+P+")")}}));
sP(Oo,kl,JV(sw,{brighter:function(P){P=P==null?Ej:Math.pow(Ej,P);return new Oo(this.h,this.s,this.l*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new Oo(this.h,this.s,this.l*P,this.opacity)},
rgb:function(){var P=this.h%360+(this.h<0)*360,J=this.l,c=J+(J<.5?J:1-J)*(isNaN(P)||isNaN(this.s)?0:this.s);J=2*J-c;return new r7(vk(P>=240?P-240:P+120,J,c),vk(P,J,c),vk(P<120?P+240:P-120,J,c),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 Xz0=Math.PI/180,t20=180/Math.PI,ynb=4/29,yV=6/29,z5J=3*yV*yV,LOb=yV*yV*yV;sP(FJ,function(P,J,c,v){return arguments.length===1?aA(P):new FJ(P,J,c,v==null?1:v)},JV(sw,{brighter:function(P){return new FJ(this.l+18*(P==null?1:P),this.a,this.b,this.opacity)},
darker:function(P){return new FJ(this.l-18*(P==null?1:P),this.a,this.b,this.opacity)},
rgb:function(){var P=(this.l+16)/116,J=isNaN(this.a)?P:P+this.a/500,c=isNaN(this.b)?P:P-this.b/200;J=.96422*bN(J);P=1*bN(P);c=.82521*bN(c);return new r7(eo(3.1338561*J-1.6168667*P-.4906146*c),eo(-.9787684*J+1.9161415*P+.033454*c),eo(.0719453*J-.2289914*P+1.4052427*c),this.opacity)}}));
sP(vw,$J,JV(sw,{brighter:function(P){return new vw(this.h,this.c,this.l+18*(P==null?1:P),this.opacity)},
darker:function(P){return new vw(this.h,this.c,this.l-18*(P==null?1:P),this.opacity)},
rgb:function(){return aA(this).rgb()}}));
var rnN=1.78277*-.29227-.1347134789;sP(y5,zE,JV(sw,{brighter:function(P){P=P==null?Ej:Math.pow(Ej,P);return new y5(this.h,this.s,this.l*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new y5(this.h,this.s,this.l*P,this.opacity)},
rgb:function(){var P=isNaN(this.h)?0:(this.h+120)*Xz0,J=+this.l,c=isNaN(this.s)?0:this.s*J*(1-J),v=Math.cos(P);P=Math.sin(P);return new r7(255*(J+c*(-.14861*v+1.78277*P)),255*(J+c*(-.29227*v+-.90649*P)),255*(J+1.97294*v*c),this.opacity)}}));
var h5a=function c(J){function v(dW,LK){var rW=Hy((dW=$i(dW)).r,(LK=$i(LK)).r),a1=Hy(dW.g,LK.g),Ot=Hy(dW.b,LK.b),gW=L0(dW.opacity,LK.opacity);return function(UN){dW.r=rW(UN);dW.g=a1(UN);dW.b=Ot(UN);dW.opacity=gW(UN);return dW+""}}
var Hy=BN(J);v.gamma=c;return v}(1),Ns2=PX(function(J){var c=J.length-1;
return function(v){var Hy=v<=0?v=0:v>=1?(v=1,c-1):Math.floor(v*c),dW=J[Hy],LK=J[Hy+1];return g$((v-Hy/c)*c,Hy>0?J[Hy-1]:2*dW-LK,dW,LK,Hy<c-1?J[Hy+2]:2*LK-dW)}});
PX(function(J){var c=J.length;return function(v){var Hy=Math.floor(((v%=1)<0?++v:v)*c);return g$((v-Hy/c)*c,J[(Hy+c-1)%c],J[Hy%c],J[(Hy+1)%c],J[(Hy+2)%c])}});
var Hec=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,TVJ=new RegExp(Hec.source,"g"),GDE=180/Math.PI,t03={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},p_,rdW,LyB,l1T,j9u=D3(function(J){if(J==="none")return t03;p_||(p_=document.createElement("DIV"),rdW=document.documentElement,LyB=document.defaultView);p_.style.transform=J;J=LyB.getComputedStyle(rdW.appendChild(p_),null).getPropertyValue("transform");rdW.removeChild(p_);J=J.slice(7,-1).split(",");return xp(+J[0],+J[1],+J[2],+J[3],
+J[4],+J[5])},"px, ","px)","deg)"),YjY=D3(function(J){if(J==null)return t03;
l1T||(l1T=document.createElementNS("http://www.w3.org/2000/svg","g"));l1T.setAttribute("transform",J);if(!(J=l1T.transform.baseVal.consolidate()))return t03;J=J.matrix;return xp(J.a,J.b,J.c,J.d,J.e,J.f)},", ",")",")");
Gf(mx);Gf(L0);aJ(mx);aJ(L0);fv(mx);var GHK=fv(L0),tQ=0,Z9=0,Rd=0,veq,SH,uft=0,wM=0,A2W=0,D9=typeof performance==="object"&&performance.now?performance:Date,EIN=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(J){setTimeout(J,17)};
fM.prototype=Ey.prototype={constructor:fM,restart:function(J,c,v){if(typeof J!=="function")throw new TypeError("Be");v=(v==null?aH():+v)+(c==null?0:+c);this._next||SH===this||(SH?SH._next=this:veq=this,SH=this);this._call=J;this._time=v;oc()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,oc())}};
var k6P=I("start","end","interrupt"),FOQ=[],LIu=Bh.prototype.constructor,e$Z=0,JQ=Bh.prototype;Jt.prototype=function(J){return Bh().transition(J)}.prototype={constructor:Jt,
select:function(J){var c=this._name,v=this._id;typeof J!=="function"&&(J=k(J));for(var Hy=this._groups,dW=Hy.length,LK=Array(dW),rW=0;rW<dW;++rW)for(var a1=Hy[rW],Ot=a1.length,gW=LK[rW]=Array(Ot),UN,sN,KQ=0;KQ<Ot;++KQ)(UN=a1[KQ])&&(sN=J.call(UN,UN.__data__,KQ,a1))&&("__data__"in UN&&(sN.__data__=UN.__data__),gW[KQ]=sN,BVc(gW[KQ],c,v,KQ,gW,ok(UN,v)));return new Jt(LK,this._parents,c,v)},
filter:function(J){typeof J!=="function"&&(J=YCN(J));for(var c=this._groups,v=c.length,Hy=Array(v),dW=0;dW<v;++dW)for(var LK=c[dW],rW=LK.length,a1=Hy[dW]=[],Ot,gW=0;gW<rW;++gW)(Ot=LK[gW])&&J.call(Ot,Ot.__data__,gW,LK)&&a1.push(Ot);return new Jt(Hy,this._parents,this._name,this._id)},
merge:function(J){if(J._id!==this._id)throw Error();var c=this._groups;J=J._groups;for(var v=c.length,Hy=Math.min(v,J.length),dW=Array(v),LK=0;LK<Hy;++LK)for(var rW=c[LK],a1=J[LK],Ot=rW.length,gW=dW[LK]=Array(Ot),UN,sN=0;sN<Ot;++sN)if(UN=rW[sN]||a1[sN])gW[sN]=UN;for(;LK<v;++LK)dW[LK]=c[LK];return new Jt(dW,this._parents,this._name,this._id)},
selection:function(){return new LIu(this._groups,this._parents)},
transition:function(){for(var J=this._name,c=this._id,v=++e$Z,Hy=this._groups,dW=Hy.length,LK=0;LK<dW;++LK)for(var rW=Hy[LK],a1=rW.length,Ot,gW=0;gW<a1;++gW)if(Ot=rW[gW]){var UN=ok(Ot,c);BVc(Ot,J,v,gW,rW,{time:UN.time+UN.delay+UN.duration,delay:0,duration:UN.duration,ease:UN.ease})}return new Jt(Hy,this._parents,J,v)},
call:JQ.call,nodes:JQ.nodes,node:JQ.node,size:JQ.size,empty:JQ.empty,each:JQ.each,on:function(J,c){var v=this._id;return arguments.length<2?ok(this.node(),v).on.on(J):this.each(cXu(v,J,c))},
attr:function(J,c){var v=n(J),Hy=v==="transform"?YjY:oIZ;return this.attrTween(J,typeof c==="function"?(v.local?JXV:Et6)(v,Hy,UQq(this,"attr."+J,c)):c==null?(v.local?tiV:yXB)(v):(v.local?G6h:rXu)(v,Hy,c+""))},
attrTween:function(J,c){var v="attr."+J;if(arguments.length<2)return(v=this.tween(v))&&v._value;if(c==null)return this.tween(v,null);if(typeof c!=="function")throw Error();var Hy=n(J);return this.tween(v,(Hy.local?otQ:hEV)(Hy,c))},
style:function(J,c,v){var Hy=J==="transform"?j9u:oIZ;return c==null?this.styleTween(J,bIb(J,Hy)).on("end.style."+J,q3Y(J)):this.styleTween(J,typeof c==="function"?s$h(J,Hy,UQq(this,"style."+J,c)):MiE(J,Hy,c+""),v)},
styleTween:function(J,c,v){var Hy="style."+J;if(arguments.length<2)return(Hy=this.tween(Hy))&&Hy._value;if(c==null)return this.tween(Hy,null);if(typeof c!=="function")throw Error();return this.tween(Hy,pgu(J,c,v==null?"":v))},
text:function(J){return this.tween("text",typeof J==="function"?u82(UQq(this,"text",J)):AXE(J==null?"":J+""))},
remove:function(){return this.on("end.remove",WOB(this._id))},
tween:function(J,c){var v=this._id;if(arguments.length<2){v=ok(this.node(),v).tween;for(var Hy=0,dW=v.length,LK;Hy<dW;++Hy)if((LK=v[Hy]).name===J)return LK.value;return null}return this.each((c==null?XgE:zE2)(v,J,c))},
delay:function(J){var c=this._id;return arguments.length?this.each((typeof J==="function"?Pjb:Dtu)(c,J)):ok(this.node(),c).delay},
duration:function(J){var c=this._id;return arguments.length?this.each((typeof J==="function"?ZIY:S3r)(c,J)):ok(this.node(),c).duration},
ease:function(J){var c=this._id;return arguments.length?this.each(REI(c,J)):ok(this.node(),c).ease}};
var EXJ={time:null,delay:0,duration:250,ease:function(J){return((J*=2)<=1?J*J*J:(J-=2)*J*J+2)/2}};
Bh.prototype.transition=function(J){var c;if(J instanceof Jt){var v=J._id;J=J._name}else v=++e$Z,(c=EXJ).time=aH(),J=J==null?null:J+"";for(var Hy=this._groups,dW=Hy.length,LK=0;LK<dW;++LK)for(var rW=Hy[LK],a1=rW.length,Ot,gW=0;gW<a1;++gW)if(Ot=rW[gW]){var UN=Ot,sN=J,KQ=v,NV=gW,GL=rW,Kk;if(!(Kk=c))a:{Kk=void 0;for(var A2=v;!(Kk=Ot.__transition)||!(Kk=Kk[A2]);)if(!(Ot=Ot.parentNode)){Kk=(EXJ.time=aH(),EXJ);break a}}BVc(UN,sN,KQ,NV,GL,Kk)}return new Jt(Hy,this._parents,J,v)};
["e","w"].map(nX1);["n","s"].map(nX1);"n e s w nw ne se sw".split(" ").map(nX1);$QN.prototype=function(){return new $QN}.prototype={constructor:$QN,
moveTo:function(J,c){this._+="M"+(this._x0=this._x1=+J)+","+(this._y0=this._y1=+c)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(J,c){this._+="L"+(this._x1=+J)+","+(this._y1=+c)},
bezierCurveTo:function(J,c,v,Hy,dW,LK){this._+="C"+ +J+","+ +c+","+ +v+","+ +Hy+","+(this._x1=+dW)+","+(this._y1=+LK)},
rect:function(J,c,v,Hy){this._+="M"+(this._x0=this._x1=+J)+","+(this._y0=this._y1=+c)+"h"+ +v+"v"+ +Hy+"h"+-v+"Z"},
toString:function(){return this._}};
O01.prototype=Pv3.prototype={constructor:O01,has:function(J){return" "+J in this},
get:function(J){return this[" "+J]},
set:function(J,c){this[" "+J]=c;return this},
remove:function(J){J=" "+J;return J in this&&delete this[J]},
clear:function(){for(var J in this)J[0]===" "&&delete this[J]},
keys:function(){var J=[],c;for(c in this)c[0]===" "&&J.push(c.slice(1));return J},
values:function(){var J=[],c;for(c in this)c[0]===" "&&J.push(this[c]);return J},
entries:function(){var J=[],c;for(c in this)c[0]===" "&&J.push({key:c.slice(1),value:this[c]});return J},
size:function(){var J=0,c;for(c in this)c[0]===" "&&++J;return J},
empty:function(){for(var J in this)if(J[0]===" ")return!1;return!0},
each:function(J){for(var c in this)c[0]===" "&&J(this[c],c.slice(1),this)}};
var YQ=Pv3.prototype;CGw.prototype=function(J,c){var v=new CGw;if(J instanceof CGw)J.each(function(LK){v.add(LK)});
else if(J){var Hy=-1,dW=J.length;if(c==null)for(;++Hy<dW;)v.add(J[Hy]);else for(;++Hy<dW;)v.add(c(J[Hy],Hy,J))}return v}.prototype={constructor:CGw,
has:YQ.has,add:function(J){this[" "+J]=J;return this},
remove:YQ.remove,clear:YQ.clear,values:YQ.keys,size:YQ.size,empty:YQ.empty,each:YQ.each};var S$0={},dQy={},euh=Z2N(",").parse,k3g=Z2N("\t").parse;R5a(euh);R5a(k3g);var wP=function(J,c,v){c=new w9f(c==null?aHb:c,v==null?fH2:v,NaN,NaN,NaN,NaN);return J==null?c:c.addAll(J)}.prototype=w9f.prototype;
wP.copy=function(){var J=new w9f(this._x,this._y,this._x0,this._y0,this._x1,this._y1),c=this._root,v,Hy;if(!c)return J;if(!c.length)return J._root=cnJ(c),J;for(v=[{source:c,target:J._root=Array(4)}];c=v.pop();)for(var dW=0;dW<4;++dW)if(Hy=c.source[dW])Hy.length?v.push({source:Hy,target:c.target[dW]=Array(4)}):c.target[dW]=cnJ(Hy);return J};
wP.add=function(J){var c=+this._x.call(null,J),v=+this._y.call(null,J);return QMo(this.cover(c,v),c,v,J)};
wP.addAll=function(J){var c,v,Hy=J.length,dW,LK,rW=Array(Hy),a1=Array(Hy),Ot=Infinity,gW=Infinity,UN=-Infinity,sN=-Infinity;for(v=0;v<Hy;++v)isNaN(dW=+this._x.call(null,c=J[v]))||isNaN(LK=+this._y.call(null,c))||(rW[v]=dW,a1[v]=LK,dW<Ot&&(Ot=dW),dW>UN&&(UN=dW),LK<gW&&(gW=LK),LK>sN&&(sN=LK));UN<Ot&&(Ot=this._x0,UN=this._x1);sN<gW&&(gW=this._y0,sN=this._y1);this.cover(Ot,gW).cover(UN,sN);for(v=0;v<Hy;++v)QMo(this,rW[v],a1[v],J[v]);return this};
wP.cover=function(J,c){if(isNaN(J=+J)||isNaN(c=+c))return this;var v=this._x0,Hy=this._y0,dW=this._x1,LK=this._y1;if(isNaN(v))dW=(v=Math.floor(J))+1,LK=(Hy=Math.floor(c))+1;else if(v>J||J>dW||Hy>c||c>LK){var rW=dW-v,a1=this._root,Ot;switch(Ot=(c<(Hy+LK)/2)<<1|J<(v+dW)/2){case 0:do{var gW=Array(4);gW[Ot]=a1;a1=gW}while(rW*=2,dW=v+rW,LK=Hy+rW,J>dW||c>LK);break;case 1:do gW=Array(4),gW[Ot]=a1,a1=gW;while(rW*=2,v=dW-rW,LK=Hy+rW,v>J||c>LK);break;case 2:do gW=Array(4),gW[Ot]=a1,a1=gW;while(rW*=2,dW=v+rW,
Hy=LK-rW,J>dW||Hy>c);break;case 3:do gW=Array(4),gW[Ot]=a1,a1=gW;while(rW*=2,v=dW-rW,Hy=LK-rW,v>J||Hy>c)}this._root&&this._root.length&&(this._root=a1)}else return this;this._x0=v;this._y0=Hy;this._x1=dW;this._y1=LK;return this};
wP.data=function(){var J=[];this.visit(function(c){if(!c.length){do J.push(c.data);while(c=c.next)}});
return J};
wP.extent=function(J){return arguments.length?this.cover(+J[0][0],+J[0][1]).cover(+J[1][0],+J[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
wP.find=function(J,c,v){var Hy=this._x0,dW=this._y0,LK,rW,a1,Ot,gW=this._x1,UN=this._y1,sN=[],KQ=this._root,NV;KQ&&sN.push(new dP(KQ,Hy,dW,gW,UN));v==null?v=Infinity:(Hy=J-v,dW=c-v,gW=J+v,UN=c+v,v*=v);for(;NV=sN.pop();)if(!(!(KQ=NV.node)||(LK=NV.x0)>gW||(rW=NV.y0)>UN||(a1=NV.x1)<Hy||(Ot=NV.y1)<dW))if(KQ.length){NV=(LK+a1)/2;var GL=(rW+Ot)/2;sN.push(new dP(KQ[3],NV,GL,a1,Ot),new dP(KQ[2],LK,GL,NV,Ot),new dP(KQ[1],NV,rW,a1,GL),new dP(KQ[0],LK,rW,NV,GL));if(KQ=(c>=GL)<<1|J>=NV)NV=sN[sN.length-1],sN[sN.length-
1]=sN[sN.length-1-KQ],sN[sN.length-1-KQ]=NV}else if(NV=J-+this._x.call(null,KQ.data),GL=c-+this._y.call(null,KQ.data),NV=NV*NV+GL*GL,NV<v){var Kk=Math.sqrt(v=NV);Hy=J-Kk;dW=c-Kk;gW=J+Kk;UN=c+Kk;Kk=KQ.data}return Kk};
wP.remove=function(J){if(isNaN(Ot=+this._x.call(null,J))||isNaN(gW=+this._y.call(null,J)))return this;var c,v=this._root,Hy,dW=this._x0,LK=this._y0,rW=this._x1,a1=this._y1,Ot,gW,UN,sN,KQ,NV,GL;if(!v)return this;if(v.length)for(;;){(KQ=Ot>=(UN=(dW+rW)/2))?dW=UN:rW=UN;(NV=gW>=(sN=(LK+a1)/2))?LK=sN:a1=sN;if(!(c=v,v=v[GL=NV<<1|KQ]))return this;if(!v.length)break;if(c[GL+1&3]||c[GL+2&3]||c[GL+3&3]){var Kk=c;var A2=GL}}for(;v.data!==J;)if(!(Hy=v,v=v.next))return this;(J=v.next)&&delete v.next;if(Hy)return J?
Hy.next=J:delete Hy.next,this;if(!c)return this._root=J,this;J?c[GL]=J:delete c[GL];(v=c[0]||c[1]||c[2]||c[3])&&v===(c[3]||c[2]||c[1]||c[0])&&!v.length&&(Kk?Kk[A2]=v:this._root=v);return this};
wP.removeAll=function(J){for(var c=0,v=J.length;c<v;++c)this.remove(J[c]);return this};
wP.root=function(){return this._root};
wP.size=function(){var J=0;this.visit(function(c){if(!c.length){do++J;while(c=c.next)}});
return J};
wP.visit=function(J){var c=[],v,Hy=this._root,dW,LK,rW,a1,Ot;for(Hy&&c.push(new dP(Hy,this._x0,this._y0,this._x1,this._y1));v=c.pop();)if(!J(Hy=v.node,LK=v.x0,rW=v.y0,a1=v.x1,Ot=v.y1)&&Hy.length){v=(LK+a1)/2;var gW=(rW+Ot)/2;(dW=Hy[3])&&c.push(new dP(dW,v,gW,a1,Ot));(dW=Hy[2])&&c.push(new dP(dW,LK,gW,v,Ot));(dW=Hy[1])&&c.push(new dP(dW,v,rW,a1,gW));(dW=Hy[0])&&c.push(new dP(dW,LK,rW,v,gW))}};
wP.visitAfter=function(J){var c=[],v=[],Hy;for(this._root&&c.push(new dP(this._root,this._x0,this._y0,this._x1,this._y1));Hy=c.pop();){var dW=Hy.node;if(dW.length){var LK,rW=Hy.x0,a1=Hy.y0,Ot=Hy.x1,gW=Hy.y1,UN=(rW+Ot)/2,sN=(a1+gW)/2;(LK=dW[0])&&c.push(new dP(LK,rW,a1,UN,sN));(LK=dW[1])&&c.push(new dP(LK,UN,a1,Ot,sN));(LK=dW[2])&&c.push(new dP(LK,rW,sN,UN,gW));(LK=dW[3])&&c.push(new dP(LK,UN,sN,Ot,gW))}v.push(Hy)}for(;Hy=v.pop();)J(Hy.node,Hy.x0,Hy.y0,Hy.x1,Hy.y1);return this};
wP.x=function(J){return arguments.length?(this._x=J,this):this._x};
wP.y=function(J){return arguments.length?(this._y=J,this):this._y};
var Vx2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;NVg.prototype=KBt.prototype;KBt.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 M2W,sMJ={"%":function(J,c){return(J*100).toFixed(c)},
b:function(J){return Math.round(J).toString(2)},
c:function(J){return J+""},
d:function(J){return Math.round(J).toString(10)},
e:function(J,c){return J.toExponential(c)},
f:function(J,c){return J.toFixed(c)},
g:function(J,c){return J.toPrecision(c)},
o:function(J){return Math.round(J).toString(8)},
p:function(J,c){return WEN(J*100,c)},
r:WEN,s:function(J,c){var v=aB3(J,c);if(!v)return J+"";var Hy=v[0];v=v[1];v=v-(M2W=Math.max(-8,Math.min(8,Math.floor(v/3)))*3)+1;var dW=Hy.length;return v===dW?Hy:v>dW?Hy+Array(v-dW+1).join("0"):v>0?Hy.slice(0,v)+"."+Hy.slice(v):"0."+Array(1-v).join("0")+aB3(J,Math.max(0,c+v-1))[0]},
X:function(J){return Math.round(J).toString(16).toUpperCase()},
x:function(J){return Math.round(J).toString(16)}},q$J="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),FIr;
(function(J){return FIr=lcg(J)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});j7.prototype={constructor:j7,reset:function(){this.s=this.t=0},
add:function(J){pz0(I11,J,this.t);pz0(this,I11.s,this.s);this.s?this.t+=I11.t:this.s=I11.t},
valueOf:function(){return this.s}};
var I11=new j7,JF=Math.PI,bP=JF/2,knb=JF/4,XjE=JF*2,Jdw=JF/180,o7=Math.abs,oXJ=Math.atan,azi=Math.atan2,q7=Math.cos,dJ=Math.sin,geJ=Math.sqrt;new j7;new j7;new j7;var hbf=new j7;(function(J,c,v,Hy){return function(dW){function LK(j_,Vo){J(j_,Vo)&&dW.point(j_,Vo)}
function rW(j_,Vo){KQ.point(j_,Vo)}
function a1(){Hu.point=rW;KQ.lineStart()}
function Ot(){Hu.point=LK;KQ.lineEnd()}
function gW(j_,Vo){H$.push([j_,Vo]);GL.point(j_,Vo)}
function UN(){GL.lineStart();H$=[]}
function sN(){gW(H$[0][0],H$[0][1]);GL.lineEnd();var j_=GL.clean(),Vo=NV.result(),qV=Vo.length,Xf;H$.pop();A2.push(H$);H$=null;if(qV)if(j_&1){if(qV=Vo[0],(Vo=qV.length-1)>0){Kk||(dW.polygonStart(),Kk=!0);dW.lineStart();for(j_=0;j_<Vo;++j_)dW.point((Xf=qV[j_])[0],Xf[1]);dW.lineEnd()}}else qV>1&&j_&2&&Vo.push(Vo.pop().concat(Vo.shift())),KN.push(Vo.filter(ByI))}
var KQ=c(dW),NV=Hxg(),GL=c(NV),Kk=!1,A2,KN,H$,Hu={point:LK,lineStart:a1,lineEnd:Ot,polygonStart:function(){Hu.point=gW;Hu.lineStart=UN;Hu.lineEnd=sN;KN=[];A2=[]},
polygonEnd:function(){Hu.point=LK;Hu.lineStart=a1;Hu.lineEnd=Ot;var j_=KN,Vo=j_.length;var qV=-1;for(var Xf=0,JI,xn;++qV<Vo;)Xf+=j_[qV].length;for(JI=Array(Xf);--Vo>=0;)for(xn=j_[Vo],qV=xn.length;--qV>=0;)JI[--Xf]=xn[qV];KN=JI;j_=A2;Vo=Hy[0];Xf=Hy[1];var fQ=dJ(Xf);qV=[dJ(Vo),-q7(Vo),0];xn=JI=0;hbf.reset();fQ===1?Xf=bP+1E-6:fQ===-1&&(Xf=-bP-1E-6);fQ=0;for(var eb=j_.length;fQ<eb;++fQ)if(EZ=(BO=j_[fQ]).length){var BO,EZ,uG=BO[EZ-1],J6=uG[0],Ch=uG[1]/2+knb,HOW=dJ(Ch),Fy0=q7(Ch);for(Ch=0;Ch<EZ;++Ch,J6=
Ppg,HOW=XmZ,Fy0=A$,uG=TTW){var TTW=BO[Ch],Ppg=TTW[0];A$=TTW[1]/2+knb;var XmZ=dJ(A$),A$=q7(A$),o9=Ppg-J6,DQt=o9>=0?1:-1,Zet=DQt*o9,BTK=Zet>JF;HOW*=XmZ;hbf.add(azi(HOW*DQt*dJ(Zet),Fy0*A$+HOW*q7(Zet)));JI+=BTK?o9+DQt*XjE:o9;BTK^J6>=Vo^Ppg>=Vo&&(uG=u$b(Ana(uG),Ana(TTW)),vIE(uG),J6=u$b(qV,uG),vIE(J6),J6=(BTK^o9>=0?-1:1)*fBc(J6[2]),Xf>J6||Xf===J6&&(uG[0]||uG[1]))&&(xn+=BTK^o9>=0?1:-1)}}j_=(JI<-1E-6||JI<1E-6&&hbf<-1E-6)^xn&1;KN.length?(Kk||(dW.polygonStart(),Kk=!0),TyP(KN,xwh,j_,v,dW)):j_&&(Kk||(dW.polygonStart(),
Kk=!0),dW.lineStart(),v(null,null,1,dW),dW.lineEnd());Kk&&(dW.polygonEnd(),Kk=!1);KN=A2=null},
sphere:function(){dW.polygonStart();dW.lineStart();v(null,null,1,dW);dW.lineEnd();dW.polygonEnd()}};
return Hu}})(function(){return!0},function(J){var c=NaN,v=NaN,Hy=NaN,dW;
return{lineStart:function(){J.lineStart();dW=1},
point:function(LK,rW){var a1=LK>0?JF:-JF,Ot=o7(LK-c);if(o7(Ot-JF)<1E-6)J.point(c,v=(v+rW)/2>0?bP:-bP),J.point(Hy,v),J.lineEnd(),J.lineStart(),J.point(a1,v),J.point(LK,v),dW=0;else if(Hy!==a1&&Ot>=JF){o7(c-Hy)<1E-6&&(c-=Hy*1E-6);o7(LK-a1)<1E-6&&(LK-=a1*1E-6);Ot=c;var gW=v,UN=LK,sN,KQ,NV=dJ(Ot-UN);v=o7(NV)>1E-6?oXJ((dJ(gW)*(KQ=q7(rW))*dJ(UN)-dJ(rW)*(sN=q7(gW))*dJ(Ot))/(sN*KQ*NV)):(gW+rW)/2;J.point(Hy,v);J.lineEnd();J.lineStart();J.point(a1,v);dW=0}J.point(c=LK,v=rW);Hy=a1},
lineEnd:function(){J.lineEnd();c=v=NaN},
clean:function(){return 2-dW}}},function(J,c,v,Hy){J==null?(v*=bP,Hy.point(-JF,v),Hy.point(0,v),Hy.point(JF,v),Hy.point(JF,0),Hy.point(JF,-v),Hy.point(0,-v),Hy.point(-JF,-v),Hy.point(-JF,0),Hy.point(-JF,v)):o7(J[0]-c[0])>1E-6?(J=J[0]<c[0]?JF:-JF,v=v*J/2,Hy.point(-J,v),Hy.point(0,v),Hy.point(J,v)):Hy.point(c[0],c[1])},[-JF,
-bP]);new j7;new j7;new j7;new j7;jp1.prototype={constructor:jp1,point:function(J,c){this.stream.point(J,c)},
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()}};
q7(30*Jdw);(function(J){return function(c){var v=new jp1,Hy;for(Hy in J)v[Hy]=J[Hy];v.stream=c;return v}})({point:function(J,c){this.stream.point(J*Jdw,c*Jdw)}});
CvZ(function(J){return geJ(2/(1+J))}).invert=QD(function(J){return 2*fBc(J/2)});
CvZ(function(J){return(J=J>1?0:J<-1?JF:Math.acos(J))&&J/dJ(J)}).invert=QD(function(J){return J});
geJ(3);QD(oXJ);QD(fBc);QD(function(J){return 2*oXJ(J)});
cr.prototype=fzi.prototype={constructor:cr,count:function(){return this.eachAfter(Uw2)},
each:function(J){var c,v=[this],Hy;do{var dW=v.reverse();for(v=[];c=dW.pop();)if(J(c),c=c.children){var LK=0;for(Hy=c.length;LK<Hy;++LK)v.push(c[LK])}}while(v.length);return this},
eachAfter:function(J){for(var c,v=[this],Hy=[],dW,LK;c=v.pop();)if(Hy.push(c),c=c.children)for(dW=0,LK=c.length;dW<LK;++dW)v.push(c[dW]);for(;c=Hy.pop();)J(c);return this},
eachBefore:function(J){for(var c,v=[this],Hy;c=v.pop();)if(J(c),c=c.children)for(Hy=c.length-1;Hy>=0;--Hy)v.push(c[Hy]);return this},
sum:function(J){return this.eachAfter(function(c){for(var v=+J(c.data)||0,Hy=c.children,dW=Hy&&Hy.length;--dW>=0;)v+=Hy[dW].value;c.value=v})},
sort:function(J){return this.eachBefore(function(c){c.children&&c.children.sort(J)})},
path:function(J){var c=this;var v=c;var Hy=J;if(v!==Hy){var dW=v.ancestors(),LK=Hy.ancestors(),rW=null;v=dW.pop();for(Hy=LK.pop();v===Hy;)rW=v,v=dW.pop(),Hy=LK.pop();v=rW}for(Hy=[c];c!==v;)c=c.parent,Hy.push(c);for(c=Hy.length;J!==v;)Hy.splice(c,0,J),J=J.parent;return Hy},
ancestors:function(){for(var J=this,c=[J];J=J.parent;)c.push(J);return c},
links:function(){var J=this,c=[];J.each(function(v){v!==J&&c.push({source:v.parent,target:v})});
return c},
copy:function(){return fzi(this).eachBefore(dwQ)}};
(function(J,c){this._=J;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=c}).prototype=Object.create(cr.prototype);
var YTc=new Date,LBc=new Date,z$W=VM(function(){},function(J,c){J.setTime(+J+c)},function(J,c){return c-J});
z$W.every=function(J){J=Math.floor(J);return isFinite(J)&&J>0?J>1?VM(function(c){c.setTime(Math.floor(c/J)*J)},function(c,v){c.setTime(+c+v*J)},function(c,v){return(v-c)/J}):z$W:null};
VM(function(J){J.setTime(Math.floor(J/1E3)*1E3)},function(J,c){J.setTime(+J+c*1E3)},function(J,c){return(c-J)/1E3},function(J){return J.getUTCSeconds()});
VM(function(J){J.setTime(Math.floor(J/6E4)*6E4)},function(J,c){J.setTime(+J+c*6E4)},function(J,c){return(c-J)/6E4},function(J){return J.getMinutes()});
VM(function(J){var c=J.getTimezoneOffset()*6E4%36E5;c<0&&(c+=36E5);J.setTime(Math.floor((+J-c)/36E5)*36E5+c)},function(J,c){J.setTime(+J+c*36E5)},function(J,c){return(c-J)/36E5},function(J){return J.getHours()});
var i20=VM(function(J){J.setHours(0,0,0,0)},function(J,c){J.setDate(J.getDate()+c)},function(J,c){return(c-J-(c.getTimezoneOffset()-J.getTimezoneOffset())*6E4)/864E5},function(J){return J.getDate()-1}),dWB=Kw(0),kHW=Kw(1);
Kw(2);Kw(3);var FBc=Kw(4);Kw(5);Kw(6);VM(function(J){J.setDate(1);J.setHours(0,0,0,0)},function(J,c){J.setMonth(J.getMonth()+c)},function(J,c){return c.getMonth()-J.getMonth()+(c.getFullYear()-J.getFullYear())*12},function(J){return J.getMonth()});
var rs=VM(function(J){J.setMonth(0,1);J.setHours(0,0,0,0)},function(J,c){J.setFullYear(J.getFullYear()+c)},function(J,c){return c.getFullYear()-J.getFullYear()},function(J){return J.getFullYear()});
rs.every=function(J){return isFinite(J=Math.floor(J))&&J>0?VM(function(c){c.setFullYear(Math.floor(c.getFullYear()/J)*J);c.setMonth(0,1);c.setHours(0,0,0,0)},function(c,v){c.setFullYear(c.getFullYear()+v*J)}):null};
VM(function(J){J.setUTCSeconds(0,0)},function(J,c){J.setTime(+J+c*6E4)},function(J,c){return(c-J)/6E4},function(J){return J.getUTCMinutes()});
VM(function(J){J.setUTCMinutes(0,0,0)},function(J,c){J.setTime(+J+c*36E5)},function(J,c){return(c-J)/36E5},function(J){return J.getUTCHours()});
var mn0=VM(function(J){J.setUTCHours(0,0,0,0)},function(J,c){J.setUTCDate(J.getUTCDate()+c)},function(J,c){return(c-J)/864E5},function(J){return J.getUTCDate()-1}),wjB=jA(0),ebW=jA(1);
jA(2);jA(3);var X9c=jA(4);jA(5);jA(6);VM(function(J){J.setUTCDate(1);J.setUTCHours(0,0,0,0)},function(J,c){J.setUTCMonth(J.getUTCMonth()+c)},function(J,c){return c.getUTCMonth()-J.getUTCMonth()+(c.getUTCFullYear()-J.getUTCFullYear())*12},function(J){return J.getUTCMonth()});
var G3=VM(function(J){J.setUTCMonth(0,1);J.setUTCHours(0,0,0,0)},function(J,c){J.setUTCFullYear(J.getUTCFullYear()+c)},function(J,c){return c.getUTCFullYear()-J.getUTCFullYear()},function(J){return J.getUTCFullYear()});
G3.every=function(J){return isFinite(J=Math.floor(J))&&J>0?VM(function(c){c.setUTCFullYear(Math.floor(c.getUTCFullYear()/J)*J);c.setUTCMonth(0,1);c.setUTCHours(0,0,0,0)},function(c,v){c.setUTCFullYear(c.getUTCFullYear()+v*J)}):null};
var gIJ={"-":"",_:" ",0:"0"},Tq=/^\s*\d+/,$Wr=/^%/,nur=/[\\^$*+?|[\]().{}]/g,x4f;(function(J){x4f=Nyr(J);hJZ=x4f.utcFormat;PPv=x4f.utcParse;return x4f})({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||hJZ("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||PPv("%Y-%m-%dT%H:%M:%S.%LZ");Ck("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Ck("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Ck("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Ck("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Ck("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Ck("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Ck("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Ck("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Ck("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Ck("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Ck("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Ck("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var zuE=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Ck);xG(zuE);var yQr=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Ck);xG(yQr);var t4B=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Ck);xG(t4B);var rQb=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Ck);
xG(rQb);var G3u=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Ck);xG(G3u);var EuQ=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Ck);xG(EuQ);var JQr=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Ck);xG(JQr);var ouh=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Ck);xG(ouh);var huP=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Ck);xG(huP);var Pbb=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Ck);xG(Pbb);var DW2=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Ck);xG(DW2);var ZUg=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Ck);xG(ZUg);var Sjb=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Ck);xG(Sjb);var RuQ=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Ck);xG(RuQ);var Q92=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Ck);xG(Q92);var cQE=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Ck);xG(cQE);var WIB=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Ck);xG(WIB);var bUb=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Ck);xG(bUb);var qjE=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Ck);xG(qjE);var M4V=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Ck);xG(M4V);var s9u=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Ck);xG(s9u);var pjY=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Ck);xG(pjY);var AQI=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Ck);xG(AQI);var uTI=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Ck);xG(uTI);var vuB=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Ck);xG(vuB);var OUE=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Ck);xG(OUE);var CbQ=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Ck);xG(CbQ);GHK(zE(300,.5,0),zE(-240,.5,1));GHK(zE(-100,.75,.35),zE(80,1.5,.8));GHK(zE(260,.75,.35),zE(80,1.5,.8));zE();$i();Vtq(Ck("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Vtq(Ck("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Vtq(Ck("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Vtq(Ck("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
$fB.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(J,c){J=+J;c=+c;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(J,c):this._context.moveTo(J,c);break;case 1:this._point=2;default:this._context.lineTo(J,c)}}};
(function(J){function c(v){return new dfJ(J(v))}
c._curve=J;return c})(function(J){return new $fB(J)});
dfJ.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(J,c){this._curve.point(c*Math.sin(J),c*-Math.cos(J))}};
ydw.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:zbW(this,this._t0,NX0(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(J,c){var v=NaN;J=+J;c=+c;if(J!==this._x1||c!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(J,c):this._context.moveTo(J,c);break;case 1:this._point=2;break;case 2:this._point=3;zbW(this,NX0(this,v=wmb(this,J,c)),v);break;default:zbW(this,this._t0,v=wmb(this,J,c))}this._x0=this._x1;this._x1=J;this._y0=this._y1;this._y1=c;this._t0=v}}};
(function(J){this._context=new Kyb(J)}.prototype=Object.create(ydw.prototype)).point=function(J,c){ydw.prototype.point.call(this,c,J)};
Kyb.prototype={moveTo:function(J,c){this._context.moveTo(c,J)},
closePath:function(){this._context.closePath()},
lineTo:function(J,c){this._context.lineTo(c,J)},
bezierCurveTo:function(J,c,v,Hy,dW,LK){this._context.bezierCurveTo(c,J,Hy,v,LK,dW)}};
M8.prototype={constructor:M8,scale:function(J){return J===1?this:new M8(this.k*J,this.x,this.y)},
translate:function(J,c){return J===0&c===0?this:new M8(this.k,this.x+this.k*J,this.y+this.k*c)},
apply:function(J){return[J[0]*this.k+this.x,J[1]*this.k+this.y]},
invert:function(J){return[(J[0]-this.x)/this.k,(J[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new M8(1,0,0);$tt=dp;WK.svg=WK.svg;WK.xhtml=WK.xhtml;WK.xlink=WK.xlink;WK.xml=WK.xml;WK.xmlns=WK.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 D7N="hammer_"+(Math.random()*1E6|0),Z6a=function(){var V=document||document;if(!V[D7N]){var l=function(){(function(I,H,T,x){function n(FJ,Sc,bN){return setTimeout(X(FJ,bN),Sc)}
function w(FJ,Sc,bN){return Array.isArray(FJ)?(N(FJ,bN[Sc],bN),!0):!1}
function N(FJ,Sc,bN){var eo;if(FJ)if(FJ.forEach)FJ.forEach(Sc,bN);else if(FJ.length!==x){var xh=0;for(eo=FJ.length;xh<eo;xh++)Sc.call(bN,FJ[xh],xh,FJ)}else for(xh in FJ)FJ.hasOwnProperty(xh)&&Sc.call(bN,FJ[xh],xh,FJ)}
function L(FJ,Sc,bN){for(var eo=Object.keys(Sc),xh=0,xJ=eo.length;xh<xJ;xh++)if(!bN||bN&&FJ[eo[xh]]===x)FJ[eo[xh]]=Sc[eo[xh]];return FJ}
function e(FJ,Sc){return L(FJ,Sc,!0)}
function k(FJ,Sc,bN){Sc=Sc.prototype;var eo=FJ.prototype=Object.create(Sc);eo.constructor=FJ;eo._super=Sc;bN&&L(eo,bN)}
function X(FJ,Sc){return function(){return FJ.apply(Sc,arguments)}}
function r(FJ,Sc){return typeof FJ=="function"?FJ.apply(Sc?Sc[0]||x:x,Sc):FJ}
function E(FJ,Sc,bN){N(Z(Sc),function(eo){FJ.addEventListener(eo,bN,!1)})}
function D(FJ,Sc,bN){N(Z(Sc),function(eo){FJ.removeEventListener(eo,bN,!1)})}
function Z(FJ){return FJ.trim().split(/\s+/g)}
function S(FJ,Sc,bN){if(FJ.indexOf&&!bN)return FJ.indexOf(Sc);for(var eo=0,xh=FJ.length;eo<xh;eo++)if(bN&&FJ[eo][bN]==Sc||!bN&&FJ[eo]===Sc)return eo;return-1}
function p(FJ,Sc,bN){for(var eo=[],xh=[],xJ=0,$J=FJ.length;xJ<$J;xJ++){var vw=Sc?FJ[xJ][Sc]:FJ[xJ];S(xh,vw)<0&&eo.push(FJ[xJ]);xh[xJ]=vw}bN&&(eo=Sc?eo.sort(function(zE,y5){return zE[Sc]>y5[Sc]}):eo.sort());
return eo}
function Vf(FJ,Sc){for(var bN,eo=Sc[0].toUpperCase()+Sc.slice(1),xh=0,xJ=jo.length;xh<xJ;xh++)if(bN=(bN=jo[xh])?bN+eo:Sc,bN in FJ)return bN;return x}
function C(FJ,Sc){var bN=this;this.manager=FJ;this.callback=Sc;this.element=FJ.element;this.target=FJ.options.inputTarget;this.domHandler=function(eo){r(FJ.options.enable,[FJ])&&bN.handler(eo)};
this.evEl&&E(this.element,this.evEl,this.domHandler);this.evTarget&&E(this.target,this.evTarget,this.domHandler);this.evWin&&E(I,this.evWin,this.domHandler)}
function By(FJ){var Sc;PN?Sc=wb:uK?Sc=CK:dp?Sc=CZ:Sc=Va;return new Sc(FJ,lN)}
function lN(FJ,Sc,bN){var eo=bN.pointers.length,xh=bN.changedPointers.length,xJ=Sc&1&&eo-xh===0;bN.isFirst=!!xJ;bN.isFinal=!!(Sc&12&&eo-xh===0);xJ&&(FJ.session={});bN.eventType=Sc;Sc=FJ.session;eo=bN.pointers;xh=eo.length;Sc.firstInput||(Sc.firstInput=wW(bN));xh>1&&!Sc.firstMultiple?Sc.firstMultiple=wW(bN):xh===1&&(Sc.firstMultiple=!1);xJ=Sc.firstInput;var $J=(xh=Sc.firstMultiple)?xh.center:xJ.center,vw=bN.center=o1(eo);bN.timeStamp=sP();bN.deltaTime=bN.timeStamp-xJ.timeStamp;bN.angle=Zg($J,vw);bN.distance=
ec($J,vw);xJ=bN.center;$J=Sc.offsetDelta||{};vw=Sc.prevDelta||{};var zE=Sc.prevInput||{};if(bN.eventType===1||zE.eventType===4)vw=Sc.prevDelta={x:zE.deltaX||0,y:zE.deltaY||0},$J=Sc.offsetDelta={x:xJ.x,y:xJ.y};bN.deltaX=vw.x+(xJ.x-$J.x);bN.deltaY=vw.y+(xJ.y-$J.y);bN.offsetDirection=h1(bN.deltaX,bN.deltaY);xh?(xJ=xh.pointers,xJ=ec(eo[0],eo[1],$i)/ec(xJ[0],xJ[1],$i)):xJ=1;bN.scale=xJ;xh?(xh=xh.pointers,eo=Zg(eo[1],eo[0],$i)-Zg(xh[1],xh[0],$i)):eo=0;bN.rotation=eo;$J=Sc.lastInterval||bN;eo=bN.timeStamp-
$J.timeStamp;bN.eventType!=8&&(eo>25||$J.velocity===x)?(xJ=$J.deltaX-bN.deltaX,$J=$J.deltaY-bN.deltaY,vw=xJ/eo||0,zE=$J/eo||0,eo=vw,xh=zE,vw=Zv(vw)>Zv(zE)?vw:zE,xJ=h1(xJ,$J),Sc.lastInterval=bN):(vw=$J.velocity,eo=$J.velocityX,xh=$J.velocityY,xJ=$J.direction);bN.velocity=vw;bN.velocityX=eo;bN.velocityY=xh;bN.direction=xJ;Sc=FJ.element;a:{for(eo=bN.srcEvent.target;eo;){if(eo==Sc){eo=!0;break a}eo=eo.parentNode}eo=!1}eo&&(Sc=bN.srcEvent.target);bN.target=Sc;FJ.emit("hammer.input",bN);FJ.recognize(bN);
FJ.session.prevInput=bN}
function wW(FJ){for(var Sc=[],bN=0;bN<FJ.pointers.length;bN++)Sc[bN]={clientX:Bh(FJ.pointers[bN].clientX),clientY:Bh(FJ.pointers[bN].clientY)};return{timeStamp:sP(),pointers:Sc,center:o1(Sc),deltaX:FJ.deltaX,deltaY:FJ.deltaY}}
function o1(FJ){var Sc=FJ.length;if(Sc===1)return{x:Bh(FJ[0].clientX),y:Bh(FJ[0].clientY)};for(var bN=0,eo=0,xh=0;xh<Sc;xh++)bN+=FJ[xh].clientX,eo+=FJ[xh].clientY;return{x:Bh(bN/Sc),y:Bh(eo/Sc)}}
function h1(FJ,Sc){return FJ===Sc?1:Zv(FJ)>=Zv(Sc)?FJ>0?2:4:Sc>0?8:16}
function ec(FJ,Sc,bN){bN||(bN=r$);var eo=Sc[bN[0]]-FJ[bN[0]];FJ=Sc[bN[1]]-FJ[bN[1]];return Math.sqrt(eo*eo+FJ*FJ)}
function Zg(FJ,Sc,bN){bN||(bN=r$);return Math.atan2(Sc[bN[1]]-FJ[bN[1]],Sc[bN[0]]-FJ[bN[0]])*180/Math.PI}
function Va(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;C.apply(this,arguments)}
function wb(){this.evEl=s_;this.evWin=kl;C.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function CK(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};C.apply(this,arguments)}
function CZ(){C.apply(this,arguments);var FJ=X(this.handler,this);this.touch=new CK(this.manager,FJ);this.mouse=new Va(this.manager,FJ)}
function ME(FJ,Sc){this.manager=FJ;this.set(Sc)}
function Hw(FJ){if(FJ.indexOf("none")>-1)return"none";var Sc=FJ.indexOf("pan-x")>-1,bN=FJ.indexOf("pan-y")>-1;return Sc&&bN?"pan-x pan-y":Sc||bN?Sc?"pan-x":"pan-y":FJ.indexOf("manipulation")>-1?"manipulation":"auto"}
function uZ(FJ){this.id=JV++;this.manager=null;this.options=e(FJ||{},this.defaults);FJ=this.options.enable;this.options.enable=FJ===x?!0:FJ;this.state=1;this.simultaneous={};this.requireFail=[]}
function EN(FJ){return FJ==16?"down":FJ==8?"up":FJ==2?"left":FJ==4?"right":""}
function ya(FJ,Sc){return(Sc=Sc.manager)?Sc.get(FJ):FJ}
function Dv(){uZ.apply(this,arguments)}
function Tf(){Dv.apply(this,arguments);this.pY=this.pX=null}
function Oq(){Dv.apply(this,arguments)}
function Ut(){uZ.apply(this,arguments);this._input=this._timer=null}
function BY(){Dv.apply(this,arguments)}
function ON(){Dv.apply(this,arguments)}
function vY(){uZ.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function LZ(FJ,Sc){Sc=Sc||{};var bN=Sc.recognizers;Sc.recognizers=bN===x?LZ.defaults.preset:bN;return new oi(FJ,Sc)}
function oi(FJ,Sc){Sc=Sc||{};this.options=e(Sc,LZ.defaults);this.options.inputTarget=this.options.inputTarget||FJ;this.handlers={};this.session={};this.recognizers=[];this.element=FJ;this.input=By(this);this.touchAction=new ME(this,this.options.touchAction);lZ(this,!0);N(Sc.recognizers,function(bN){var eo=this.add(new bN[0](bN[1]));bN[2]&&eo.recognizeWith(bN[2]);bN[3]&&eo.requireFailure(bN[2])},this)}
function lZ(FJ,Sc){var bN=FJ.element;N(FJ.options.cssProps,function(eo,xh){bN.style[Vf(bN.style,xh)]=Sc?eo:""})}
function st(FJ,Sc){var bN=H.createEvent("Event");bN.initEvent(FJ,!0,!0);bN.gesture=Sc;Sc.target.dispatchEvent(bN)}
var jo=" webkit moz MS ms o".split(" "),gb=H.createElement("div"),Bh=Math.round,Zv=Math.abs,sP=Date.now,JV=1,sw=/mobile|tablet|ip(ad|hone|od)|android/i,dp="ontouchstart"in I,PN=Vf(I,"PointerEvent")!==x,uK=dp&&sw.test(navigator.userAgent),r$=["x","y"],$i=["clientX","clientY"];C.prototype={handler:function(){},
destroy:function(){this.evEl&&D(this.element,this.evEl,this.domHandler);this.evTarget&&D(this.target,this.evTarget,this.domHandler);this.evWin&&D(I,this.evWin,this.domHandler)}};
var r7={mousedown:1,mousemove:2,mouseup:4};k(Va,C,{handler:function(FJ){var Sc=r7[FJ.type];Sc&1&&FJ.button===0&&(this.pressed=!0);Sc&2&&FJ.which!==1&&(Sc=4);this.pressed&&this.allow&&(Sc&4&&(this.pressed=!1),this.callback(this.manager,Sc,{pointers:[FJ],changedPointers:[FJ],pointerType:"mouse",srcEvent:FJ}))}});
var zf={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},CT={2:"touch",3:"pen",4:"mouse",5:"kinect"},s_="pointerdown",kl="pointermove pointerup pointercancel";I.MSPointerEvent&&(s_="MSPointerDown",kl="MSPointerMove MSPointerUp MSPointerCancel");k(wb,C,{handler:function(FJ){var Sc=this.store,bN=!1,eo=FJ.type.toLowerCase().replace("ms","");eo=zf[eo];var xh=CT[FJ.pointerType]||FJ.pointerType;eo&1&&(FJ.button===0||xh=="touch")?Sc.push(FJ):eo&12&&(bN=!0);var xJ=S(Sc,FJ.pointerId,"pointerId");
xJ<0||(Sc[xJ]=FJ,this.callback(this.manager,eo,{pointers:Sc,changedPointers:[FJ],pointerType:xh,srcEvent:FJ}),bN&&Sc.splice(xJ,1))}});
var Oo={touchstart:1,touchmove:2,touchend:4,touchcancel:8};k(CK,C,{handler:function(FJ){var Sc=Oo[FJ.type];var bN=Array.prototype.slice.call(FJ.touches,0);var eo=this.targetIds;if(Sc&3&&bN.length===1)eo[bN[0].identifier]=!0,eo=[bN,bN];else{var xh,xJ=Array.prototype.slice.call(FJ.targetTouches,0),$J=Array.prototype.slice.call(FJ.changedTouches,0),vw=[];if(Sc===1)for(bN=0,xh=xJ.length;bN<xh;bN++)eo[xJ[bN].identifier]=!0;bN=0;for(xh=$J.length;bN<xh;bN++)eo[$J[bN].identifier]&&vw.push($J[bN]),Sc&12&&
delete eo[$J[bN].identifier];eo=vw.length?[p(xJ.concat(vw),"identifier",!0),vw]:void 0}eo&&this.callback(this.manager,Sc,{pointers:eo[0],changedPointers:eo[1],pointerType:"touch",srcEvent:FJ})}});
k(CZ,C,{handler:function(FJ,Sc,bN){var eo=bN.pointerType=="mouse";if(bN.pointerType=="touch")this.mouse.allow=!1;else if(eo&&!this.mouse.allow)return;Sc&12&&(this.mouse.allow=!0);this.callback(FJ,Sc,bN)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var vk=Vf(gb.style,"touchAction"),aA=vk!==x;ME.prototype={set:function(FJ){FJ=="compute"&&(FJ=this.compute());aA&&(this.manager.element.style[vk]=FJ);this.actions=FJ.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var FJ=[];N(this.manager.recognizers,function(Sc){r(Sc.options.enable,[Sc])&&(FJ=FJ.concat(Sc.getTouchAction()))});
return Hw(FJ.join(" "))},
preventDefaults:function(FJ){if(!aA){var Sc=FJ.srcEvent;FJ=FJ.offsetDirection;if(this.manager.session.prevented)Sc.preventDefault();else{var bN=this.actions,eo=bN.indexOf("none")>-1,xh=bN.indexOf("pan-y")>-1;bN=bN.indexOf("pan-x")>-1;if(eo||xh&&bN||xh&&FJ&6||bN&&FJ&24)return this.preventSrc(Sc)}}},
preventSrc:function(FJ){this.manager.session.prevented=!0;FJ.preventDefault()}};
uZ.prototype={defaults:{},set:function(FJ){L(this.options,FJ);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(FJ){if(w(FJ,"recognizeWith",this))return this;var Sc=this.simultaneous;FJ=ya(FJ,this);Sc[FJ.id]||(Sc[FJ.id]=FJ,FJ.recognizeWith(this));return this},
dropRecognizeWith:function(FJ){if(w(FJ,"dropRecognizeWith",this))return this;FJ=ya(FJ,this);delete this.simultaneous[FJ.id];return this},
requireFailure:function(FJ){if(w(FJ,"requireFailure",this))return this;var Sc=this.requireFail;FJ=ya(FJ,this);S(Sc,FJ)===-1&&(Sc.push(FJ),FJ.requireFailure(this));return this},
dropRequireFailure:function(FJ){if(w(FJ,"dropRequireFailure",this))return this;FJ=ya(FJ,this);FJ=S(this.requireFail,FJ);FJ>-1&&this.requireFail.splice(FJ,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(FJ){return!!this.simultaneous[FJ.id]},
emit:function(FJ){function Sc(xh){bN.manager.emit(bN.options.event+(xh?eo&16?"cancel":eo&8?"end":eo&4?"move":eo&2?"start":"":""),FJ)}
var bN=this,eo=this.state;eo<8&&Sc(!0);Sc();eo>=8&&Sc(!0)},
tryEmit:function(FJ){if(this.canEmit())return this.emit(FJ);this.state=32},
canEmit:function(){for(var FJ=0;FJ<this.requireFail.length;FJ++)if(!(this.requireFail[FJ].state&33))return!1;return!0},
recognize:function(FJ){FJ=L({},FJ);r(this.options.enable,[this,FJ])?(this.state&56&&(this.state=1),this.state=this.process(FJ),this.state&30&&this.tryEmit(FJ)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
k(Dv,uZ,{defaults:{pointers:1},attrTest:function(FJ){var Sc=this.options.pointers;return Sc===0||FJ.pointers.length===Sc},
process:function(FJ){var Sc=this.state,bN=FJ.eventType,eo=Sc&6;FJ=this.attrTest(FJ);return eo&&(bN&8||!FJ)?Sc|16:eo||FJ?bN&4?Sc|8:Sc&2?Sc|4:2:32}});
k(Tf,Dv,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var FJ=this.options.direction;if(FJ===30)return["none"];var Sc=[];FJ&6&&Sc.push("pan-y");FJ&24&&Sc.push("pan-x");return Sc},
directionTest:function(FJ){var Sc=this.options,bN=!0,eo=FJ.distance,xh=FJ.direction,xJ=FJ.deltaX,$J=FJ.deltaY;xh&Sc.direction||(Sc.direction&6?(xh=xJ===0?1:xJ<0?2:4,bN=xJ!=this.pX,eo=Math.abs(FJ.deltaX)):(xh=$J===0?1:$J<0?8:16,bN=$J!=this.pY,eo=Math.abs(FJ.deltaY)));FJ.direction=xh;return bN&&eo>Sc.threshold&&xh&Sc.direction},
attrTest:function(FJ){return Dv.prototype.attrTest.call(this,FJ)&&(this.state&2||!(this.state&2)&&this.directionTest(FJ))},
emit:function(FJ){this.pX=FJ.deltaX;this.pY=FJ.deltaY;var Sc=EN(FJ.direction);Sc&&this.manager.emit(this.options.event+Sc,FJ);this._super.emit.call(this,FJ)}});
k(Oq,Dv,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(FJ){return this._super.attrTest.call(this,FJ)&&(Math.abs(FJ.scale-1)>this.options.threshold||this.state&2)},
emit:function(FJ){this._super.emit.call(this,FJ);FJ.scale!==1&&this.manager.emit(this.options.event+(FJ.scale<1?"in":"out"),FJ)}});
k(Ut,uZ,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(FJ){var Sc=this.options,bN=FJ.pointers.length===Sc.pointers,eo=FJ.distance<Sc.threshold,xh=FJ.deltaTime>Sc.time;this._input=FJ;if(!eo||!bN||FJ.eventType&12&&!xh)this.reset();else if(FJ.eventType&1)this.reset(),this._timer=n(function(){this.state=8;this.tryEmit()},Sc.time,this);
else if(FJ.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(FJ){this.state===8&&(FJ&&FJ.eventType&4?this.manager.emit(this.options.event+"up",FJ):(this._input.timeStamp=sP(),this.manager.emit(this.options.event,this._input)))}});
k(BY,Dv,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(FJ){return this._super.attrTest.call(this,FJ)&&(Math.abs(FJ.rotation)>this.options.threshold||this.state&2)}});
k(ON,Dv,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Tf.prototype.getTouchAction.call(this)},
attrTest:function(FJ){var Sc=this.options.direction;if(Sc&30)var bN=FJ.velocity;else Sc&6?bN=FJ.velocityX:Sc&24&&(bN=FJ.velocityY);return this._super.attrTest.call(this,FJ)&&Sc&FJ.direction&&Zv(bN)>this.options.velocity&&FJ.eventType&4},
emit:function(FJ){var Sc=EN(FJ.direction);Sc&&this.manager.emit(this.options.event+Sc,FJ);this.manager.emit(this.options.event,FJ)}});
k(vY,uZ,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(FJ){var Sc=this.options,bN=FJ.pointers.length===Sc.pointers,eo=FJ.distance<Sc.threshold,xh=FJ.deltaTime<Sc.time;this.reset();if(FJ.eventType&1&&this.count===0)return this.failTimeout();if(eo&&xh&&bN){if(FJ.eventType!=4)return this.failTimeout();bN=this.pTime?FJ.timeStamp-this.pTime<Sc.interval:!0;eo=!this.pCenter||ec(this.pCenter,FJ.center)<Sc.posThreshold;this.pTime=FJ.timeStamp;this.pCenter=FJ.center;eo&&bN?this.count+=1:this.count=1;this._input=FJ;if(this.count%Sc.taps===0)return this.hasRequireFailures()?
(this._timer=n(function(){this.state=8;this.tryEmit()},Sc.interval,this),2):8}return 32},
failTimeout:function(){this._timer=n(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))}});
LZ.VERSION="2.0.2";LZ.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[BY,{enable:!1}],[Oq,{enable:!1},["rotate"]],[ON,{direction:6}],[Tf,{direction:6},["swipe"]],[vY],[vY,{event:"doubletap",taps:2},["tap"]],[Ut]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};oi.prototype={set:function(FJ){L(this.options,FJ);return this},
stop:function(FJ){this.session.stopped=FJ?2:1},
recognize:function(FJ){var Sc=this.session;if(!Sc.stopped){this.touchAction.preventDefaults(FJ);var bN=this.recognizers,eo=Sc.curRecognizer;if(!eo||eo&&eo.state&8)eo=Sc.curRecognizer=null;for(var xh=0,xJ=bN.length;xh<xJ;xh++){var $J=bN[xh];Sc.stopped===2||eo&&$J!=eo&&!$J.canRecognizeWith(eo)?$J.reset():$J.recognize(FJ);!eo&&$J.state&14&&(eo=Sc.curRecognizer=$J)}}},
get:function(FJ){if(FJ instanceof uZ)return FJ;for(var Sc=this.recognizers,bN=0;bN<Sc.length;bN++)if(Sc[bN].options.event==FJ)return Sc[bN];return null},
add:function(FJ){if(w(FJ,"add",this))return this;var Sc=this.get(FJ.options.event);Sc&&this.remove(Sc);this.recognizers.push(FJ);FJ.manager=this;this.touchAction.update();return FJ},
remove:function(FJ){if(w(FJ,"remove",this))return this;var Sc=this.recognizers;FJ=this.get(FJ);Sc.splice(S(Sc,FJ),1);this.touchAction.update();return this},
on:function(FJ,Sc){var bN=this.handlers;N(Z(FJ),function(eo){bN[eo]=bN[eo]||[];bN[eo].push(Sc)});
return this},
off:function(FJ,Sc){var bN=this.handlers;N(Z(FJ),function(eo){Sc?bN[eo].splice(S(bN[eo],Sc),1):delete bN[eo]});
return this},
emit:function(FJ,Sc){this.options.domEvents&&st(FJ,Sc);var bN=this.handlers[FJ]&&this.handlers[FJ].slice();if(bN&&bN.length){Sc.type=FJ;Sc.preventDefault=function(){Sc.srcEvent.preventDefault()};
FJ=0;for(var eo=bN.length;FJ<eo;FJ++)bN[FJ](Sc)}},
destroy:function(){this.element&&lZ(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
L(LZ,{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:oi,Input:C,TouchAction:ME,Recognizer:uZ,AttrRecognizer:Dv,Tap:vY,Pan:Tf,Swipe:ON,Pinch:Oq,Rotate:BY,Press:Ut,on:E,off:D,each:N,merge:e,extend:L,inherit:k,bindFn:X,prefixed:Vf});
I[T]=LZ})(window,document,"Hammer");
return window.Hammer}.call({});
l.DOCUMENT=V;V[D7N]=l}return V[D7N]};/*

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

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 Hvv;_.ILN="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");Hvv=function(){var V=[],l;var I=I||_.ILN.length;for(l=0;l<8;l++)V[l]=_.ILN[0|Math.random()*I];return V.join("")};var V3f=function(){return Math.random().toString(36).substring(7).split("").join(".")},iuw="@@redux/INIT"+V3f(),Hgy="@@redux/REPLACE"+V3f();var TRK=typeof Symbol==="function"&&Symbol.observable||"@@observable";var TvZ=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var BvZ="top right bottom left width height size weight".split(" "),xZa=typeof MutationObserver!=="undefined",UZi=TvZ&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,n9N=function(){this.mutationEventsAdded_=this.JSC$9511_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=BRq(this.refresh.bind(this))},$Z3=function(V,
l){var I=V.observers_;
l=I.indexOf(l);~l&&I.splice(l,1);!I.length&&V.JSC$9511_connected_&&TvZ&&V.JSC$9511_connected_&&(document.removeEventListener("transitionend",V.onTransitionEnd_),window.removeEventListener("resize",V.refresh),V.mutationsObserver_&&(V.mutationsObserver_.disconnect(),UZi&&(HTMLElement.prototype.attachShadow=UZi)),V.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",V.refresh),V.mutationsObserver_=null,V.mutationEventsAdded_=!1,V.JSC$9511_connected_=!1)};
n9N.prototype.refresh=function(){dZv(this)&&this.refresh()};
var dZv=function(V){V=V.observers_.filter(function(l){return wl3(l),l.activeObservations_.length>0});
V.forEach(function(l){return Nvv(l)});
return V.length>0},KlB=function(V){if(TvZ&&!V.JSC$9511_connected_){document.addEventListener("transitionend",V.onTransitionEnd_);
window.addEventListener("resize",V.refresh);if(xZa){V.mutationsObserver_=new MutationObserver(V.refresh);var l={attributes:!0,childList:!0,characterData:!0,subtree:!0};V.mutationsObserver_.observe(document,l);UZi&&(function T(H){var x=H.shadowRoot;x&&(V.mutationsObserver_.observe(x,l),T(x));for(H=H.firstElementChild;H;)T(H),H=H.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var H=UZi.apply(this,_.Q5.apply(0,arguments));
V.mutationsObserver_.observe(H,l);return H})}else document.addEventListener("DOMSubtreeModified",V.refresh),V.mutationEventsAdded_=!0;
V.JSC$9511_connected_=!0}};
n9N.prototype.onTransitionEnd_=function(V){var l=V.propertyName===void 0?"":V.propertyName;BvZ.some(function(I){return!!~l.indexOf(I)})&&this.refresh()};
var jJw=null;var YJE=function(V,l){for(var I=_.U(Object.keys(l)),H=I.next();!H.done;H=I.next())H=H.value,Object.defineProperty(V,H,{value:l[H],enumerable:!1,writable:!1,configurable:!0})};var RR=function(V){var l;return(V==null?void 0:(l=V.ownerDocument)==null?void 0:l.defaultView)||globalThis};var LlJ={x:0,y:0,width:0,height:0},egv=typeof SVGGraphicsElement!=="undefined"?function(V){return V instanceof RR(V).SVGGraphicsElement}:function(V){return V instanceof RR(V).SVGElement&&typeof V.getBBox==="function"};var kKZ=function(V){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=V};
kKZ.prototype.isActive=function(){var V=this.target;if(TvZ)if(egv(V)){var l=V.getBBox();l={x:0,y:0,width:l.width,height:l.height}}else{var I=V.clientWidth,H=V.clientHeight;if(I||H){var T=RR(V).getComputedStyle(V);l=wS(T["padding-top"]);var x=wS(T["padding-left"]),n=x+wS(T["padding-right"]),w=l+wS(T["padding-bottom"]),N=wS(T.width),L=wS(T.height);T.boxSizing==="border-box"&&(Math.round(N+n)!==I&&(N-=xIy(T,"left","right")+n),Math.round(L+w)!==H&&(L-=xIy(T,"top","bottom")+w));V!==RR(V).document.documentElement&&
(V=Math.round(N+n)-I,H=Math.round(L+w)-H,Math.abs(V)!==1&&(N-=V),Math.abs(H)!==1&&(L-=H));l={x:x,y:l,width:N,height:L}}else l=LlJ}else l=LlJ;this.contentRect_=l;return l.width!==this.broadcastWidth||l.height!==this.broadcastHeight};var FlZ=function(V,l){var I=l.x;var H=l.y;var T=l.width;l=l.height;var x=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);YJE(x,{x:I,y:H,width:T,height:l,top:H,right:I+T,bottom:l+H,left:I});YJE(this,{target:V,contentRect:x})};var XlN=function(V,l){var I=jJw;this.activeObservations_=[];this.observations_=new Map;if(typeof V!=="function")throw new TypeError("Se");this.callback_=V;this.controller_=I;this.callbackCtx_=l};
XlN.prototype.observe=function(V){if(V===void 0)throw new TypeError("Te");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(V instanceof RR(V).Element))throw new TypeError("Ue");var l=this.observations_;l.has(V)||(l.set(V,new kKZ(V)),V=this.controller_,~V.observers_.indexOf(this)||V.observers_.push(this),V.JSC$9511_connected_||KlB(V),this.controller_.refresh())}};
XlN.prototype.unobserve=function(V){if(V===void 0)throw new TypeError("Te");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(V instanceof RR(V).Element))throw new TypeError("Ue");var l=this.observations_;l.has(V)&&(l.delete(V),l.size||$Z3(this.controller_,this))}};
XlN.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();$Z3(this.controller_,this)};
var wl3=function(V){V.activeObservations_.splice(0);V.observations_.forEach(function(l){l.isActive()&&V.activeObservations_.push(l)})},Nvv=function(V){if(V.activeObservations_.length>0){var l=V.callbackCtx_,I=V.activeObservations_.map(function(H){var T=H.target,x=H.contentRect_;
H.broadcastWidth=x.width;H.broadcastHeight=x.height;return new FlZ(T,x)});
V.callback_.call(l,I,l);V.activeObservations_.splice(0)}};var Qn=function(V){if(!(this instanceof Qn))throw new TypeError("Ve");if(!arguments.length)throw new TypeError("Te");jJw||(jJw=new n9N);this.observer_=new XlN(V,this)};
Qn.prototype.observe=function(V){this.observer_.observe(V)};
Qn.prototype.unobserve=function(V){this.observer_.unobserve(V)};
Qn.prototype.disconnect=function(){this.observer_.disconnect()};var $HK=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Qn;var jmJ="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(" "),KCg={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},NRg=null,UIy=null;var YRt={},LCt=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 t31={text:1},FCq={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var zgJ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,yyZ={CONSTANT:{isUnwrappable:function(V){return V instanceof D1},
unwrap:V6b},JAVASCRIPT:{isUnwrappable:function(V){return V instanceof _.Cd},
unwrap:Odg},HTML:{isUnwrappable:function(V){return V instanceof MV},
unwrap:function(V){return pd(V)}},
RESOURCE_URL:{isUnwrappable:function(V){return V instanceof kn},
unwrap:_.tV},STRING:{isUnwrappable:function(V){return V instanceof Object},
unwrap:function(V){return String(V)}},
STYLE:{isUnwrappable:function(V){return typeof V==="string"},
unwrap:function(V){return V}},
URL:{isUnwrappable:function(V){return oO(V)},
unwrap:_.hV}},tnb={CONSTANT:rmt,JAVASCRIPT:rmt,HTML:function(V){V=V instanceof MV?V:sq(String(V).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return pd(V)},
RESOURCE_URL:rmt,STRING:String,STYLE:rmt,URL:function(V,l){V=zgJ.test(V)?V:void 0;return V===void 0?l:V}};var Qmt=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,G13=/[\t\n\f\r ]+/,JmN=/[\t\n\f\r ,]+/g,hqJ=function(V,l,I){return I},YA={},ryi=function(){var V=function(){var H={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",H):H}(),l=V.createHTML(""),I=V.createScript("");
V=V.createScriptURL("");return{INNOCUOUS_STRING:l,INNOCUOUS_SCRIPT:I,INNOCUOUS_URL:V}}(),jX=ryi.INNOCUOUS_STRING,RqT=ryi.INNOCUOUS_SCRIPT,SRK=ryi.INNOCUOUS_URL;var GKZ=function(V){var l=cmw(V);return function(I,H,T,x){return x?l(x,H,T,I):jX}}({reportHandler:function(V,l){if(V)try{throw Error(l);
}catch(I){_.Gr(I)}},
safeTypesBridge:function(V,l,I){var H=yyZ[l];return H.isUnwrappable(V)&&(H=H.unwrap(V,I),H!==I)?H:(0,tnb[l])(String(V),I)},
allowedIdentifierPrefixes:[""]});if(jh!==void 0)throw Error("We");jh=GKZ;if(jh!==GKZ)throw Error("Xe");L8("Injectable",[]);var $_t=L8("Inject",[["token",void 0]]),w_t=L8("Optional",[]);L8("Injectable",[]);var NYT=L8("Self",[]),KR1=L8("SkipSelf",[]);L8("Host",[]);var E9E={},JyN=function(){};
JyN.prototype.resolve=function(){throw Error("Ze");};
JyN.prototype.addProvider=function(){throw Error("Ze");};var U_N=Function;var o9a=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,hgW=function(){this._reflect=window.Reflect};
_.B=hgW.prototype;_.B.factory=function(V){return function(){return new (Function.prototype.bind.apply(V,[null].concat(_.oI(_.Q5.apply(0,arguments)))))}};
_.B._zipTypesAndAnnotations=function(V,l){var I=typeof V==="undefined"?Array(l.length):Array(V.length);for(var H=0;H<I.length;H++)I[H]=typeof V==="undefined"?[]:V[H]!=Object?[V[H]]:[],l&&bgq(l[H])&&(I[H]=I[H].concat(l[H]));return I};
_.B._ownParameters=function(V,l){if(o9a.exec(V.toString()))return null;if(V.parameters&&V.parameters!==l.parameters)return V.parameters;var I=V.ctorParameters;return I&&I!==l.ctorParameters?(l=typeof I==="function"?I():I,V=l.map(function(H){return H&&H.type}),l=l.map(function(H){return H&&M3N(H.decorators)}),this._zipTypesAndAnnotations(V,l)):bgq(this._reflect)&&bgq(this._reflect.getOwnMetadata)&&(l=this._reflect.getOwnMetadata("parameters",V),(I=this._reflect.getOwnMetadata("design:paramtypes",V))||
l)?this._zipTypesAndAnnotations(I,l):Array(V.length).fill(void 0)};
_.B.parameters=function(V){if(!V.prototype)return[];var l=Object.getPrototypeOf(V.prototype).constructor;(V=this._ownParameters(V,l))||l===Object||(V=this.parameters(l));return V||[]};
_.B._ownAnnotations=function(V,l){if(V.annotations&&V.annotations!==l.annotations)return V=V.annotations,typeof V==="function"&&V.annotations&&(V=V.annotations),V;if(V.decorators&&V.decorators!==l.decorators)return M3N(V.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",V)};
_.B.annotations=function(V){var l=Object.getPrototypeOf(V.prototype).constructor;V=this._ownAnnotations(V,l)||[];return(l!==Object?this.annotations(l):[]).concat(V)};
_.B._ownPropMetadata=function(V,l){if(V.propMetadata&&V.propMetadata!==l.propMetadata)return V=V.propMetadata,typeof V==="function"&&V.propMetadata&&(V=V.propMetadata),V;if(V.propDecorators&&V.propDecorators!==l.propDecorators){var I=V.propDecorators,H={};Object.keys(I).forEach(function(T){H[T]=M3N(I[T])});
return H}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",V)};
_.B.propMetadata=function(V){var l=Object.getPrototypeOf(V.prototype).constructor,I={};if(l!==Object){var H=this.propMetadata(l);Object.keys(H).forEach(function(x){I[x]=H[x]})}var T=this._ownPropMetadata(V,l);
T&&Object.keys(T).forEach(function(x){var n=[];I.hasOwnProperty(x)&&n.push.apply(n,_.oI(I[x]));n.push.apply(n,_.oI(T[x]));I[x]=n});
return I};
_.B.getter=function(V){return function(l){return l[V]}};
_.B.method=function(V){return function(l,I){if(!l[V])throw Error("$e`"+V);return l[V].apply(l,I)}};var Pe3=function(){};var DZi=function(V){this.reflectionCapabilities=V};
_.t(DZi,Pe3);_.B=DZi.prototype;_.B.factory=function(V){return this.reflectionCapabilities.factory(V)};
_.B.parameters=function(V){return this.reflectionCapabilities.parameters(V)};
_.B.annotations=function(V){return this.reflectionCapabilities.annotations(V)};
_.B.propMetadata=function(V){return this.reflectionCapabilities.propMetadata(V)};
_.B.getter=function(V){return this.reflectionCapabilities.getter(V)};
_.B.method=function(V){return this.reflectionCapabilities.method(V)};var fxJ=new DZi(new hgW);var cd=function(V,l){this.token=V;this.id=l;if(V===void 0||V===null)throw Error("ef");};
_.vI.Object.defineProperties(cd.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return eX(this.token)}}});
_.vI.Object.defineProperties(cd,{JSC$9553_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Fb.JSC$9557_numberOfKeys}}});
var Zv0=function(){this._allKeys=new Map};
Zv0.prototype.get=function(V){if(V instanceof cd)return V;if(this._allKeys.has(V))return this._allKeys.get(V);var l=new cd(V,cd.JSC$9553_numberOfKeys);this._allKeys.set(V,l);return l};
_.vI.Object.defineProperties(Zv0.prototype,{JSC$9557_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Fb=new Zv0;var jB1=function(V,l,I){this.key=V;this.optional=l;this.visibility=I},mIw=function(V){return new jB1(V,!1,null)},VT1=[],HHw=function(V,l,I){this.key=V;
this.resolvedFactories=l;this.multiProvider=I},l4f=function(V,l,I,H){this.factory=V;
this.dependencies=l;this.providerClass=I;this.providerValue=H};var Wd={},bW=function(V,l){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=l===void 0?null:l;V=_.U(V);for(l=V.next();!l.done;l=V.next())this.addProvider(l.value)};
_.B=bW.prototype;_.B.addProvider=function(V){this.keyIdToIndex.set(V.key.id,this.keyIds.length);this.providers.push(V);this.keyIds.push(V.key.id);this.objs.push(Wd)};
_.B.resolve=function(V,l){l=l===void 0?E9E:l;return this._getByKey(Fb.get(kA(V)),null,l)};
_.B._new=function(V){if(this.constructedKeyIds[V.key.id])throw OgT(this,V.key);this.constructedKeyIds[V.key.id]=!0;return this._instantiateProvider(V)};
_.B._instantiateProvider=function(V){if(V.multiProvider){for(var l=Array(V.resolvedFactories.length),I=0;I<V.resolvedFactories.length;++I)l[I]=this._instantiate(V,V.resolvedFactories[I]);return l}return this._instantiate(V,V.resolvedFactories[0])};
_.B._instantiate=function(V,l){var I=this,H=l.factory;try{var T=l.dependencies.map(function(n){return I._getByReflectiveDependency(n)})}catch(n){throw n.addKey&&n.addKey(this,V.key),n;
}try{var x=H.apply(null,_.oI(T))}catch(n){throw CUT(this,n,V.key);}return x};
_.B._getByReflectiveDependency=function(V){return this._getByKey(V.key,V.visibility,V.optional?null:E9E)};
_.B._getByKey=function(V,l,I){return V===SJw?this:l instanceof NYT?this._getByKeySelf(V,I):this._getByKeyDefault(V,I,l)};
_.B._getObjByKeyId=function(V){for(var l=0;l<this.keyIds.length;l++)if(this.keyIds[l]===V)return this.objs[l]===Wd&&(this.objs[l]=this._new(this.providers[l])),this.objs[l];return Wd};
_.B._throwOrNull=function(V,l){if(l!==E9E)return l;throw vL3(this,V);};
_.B._getByKeySelf=function(V,l){var I=this._getObjByKeyId(V.id);return I!==Wd?I:this._throwOrNull(V,l)};
_.B._getByKeyDefault=function(V,l,I){for(var H=I=I instanceof KR1?this.parent:this;I instanceof bW;){var T=I._getObjByKeyId(V.id);if(T!==Wd)return T;I=I.parent}T=void 0;if(I!==null)try{var x=I.resolve(V.token,l);if(x!==Wd)return x}catch(n){T=n}if(!(H instanceof bW&&LRT(V.token))){if(T)throw T;return this._throwOrNull(V,l)}for(x=H;x.parent instanceof bW;)x=x.parent;x.addProvider(TY1({provide:V.token,useClass:V.token}));return x.resolve(V.token,l)};
_.B.toString=function(){return this.displayName};
_.vI.Object.defineProperties(bW.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+YON(this,function(V){return' "'+V.key.displayName+'" '}).join(", ")+"])"}}});
var SJw=Fb.get(kA(JyN));(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 Rgo=window.XRegExp;var QJN=-1,cyw=function(V){addEventListener("pageshow",function(l){l.persisted&&(QJN=l.timeStamp,V(l))},!0)};var bva=function(V,l,I){var H=WlZ,T,x;return function(n){l.value>=0&&(n||I)&&((x=l.value-(T||0))||T===void 0)&&(T=l.value,l.delta=x,n=l.value,l.rating=n>H[1]?"poor":n>H[0]?"needs-improvement":"good",V(l))}};var qh=-1,qJJ=function(V){document.visibilityState==="hidden"&&qh>-1&&(qh=V.type==="visibilitychange"?V.timeStamp:0,removeEventListener("visibilitychange",qJJ,!0),removeEventListener("prerenderingchange",qJJ,!0))},Mn0=function(){addEventListener("visibilitychange",qJJ,!0);
addEventListener("prerenderingchange",qJJ,!0)},sJ0=function(){qh<0&&(qh=document.visibilityState!=="hidden"||document.prerendering?Infinity:0,Mn0(),cyw(function(){setTimeout(function(){qh=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
Mn0()},0)}));
return{get firstHiddenTime(){return qh}}};var plN=function(){var V=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(V&&V.responseStart>0&&V.responseStart<performance.now())return V};var Ayw=function(){var V=plN();return V&&V.activationStart||0};var uxi=function(){var V=plN(),l="navigate";QJN>=0?l="back-forward-cache":V&&(document.prerendering||Ayw()>0?l="prerender":document.wasDiscarded?l="restore":V.type&&(l=V.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:l}};var v9J=function(V){try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var l=new PerformanceObserver(function(I){Promise.resolve().then(function(){V(I.getEntries())})});
l.observe(Object.assign({type:"largest-contentful-paint",buffered:!0},{}));return l}}catch(I){}};var Ova=function(V){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V()})};var Ceo=function(V){var l=!1;return function(){l||(V(),l=!0)}};var aLW=function(V){document.prerendering?addEventListener("prerenderingchange",function(){return V()},!0):V()};var fL3=function(V){requestAnimationFrame(function(){return requestAnimationFrame(function(){return V()})})};var WlZ=[2500,4E3],g9B={},fG3=function(V){var l=l||{};aLW(function(){var I=sJ0(),H=uxi(),T=function(N){l.reportAllChanges||(N=N.slice(-1));N.forEach(function(L){L.startTime<I.firstHiddenTime&&(H.value=Math.max(L.startTime-Ayw(),0),H.entries=[L],n())})},x=v9J(T);
if(x){var n=bva(V,H,l.reportAllChanges);var w=Ceo(function(){g9B[H.id]||(T(x.takeRecords()),x.disconnect(),g9B[H.id]=!0,n(!0))});
["keydown","click"].forEach(function(N){addEventListener(N,function(){var L=w,e=self.requestIdleCallback||self.setTimeout,k=-1;L=Ceo(L);document.visibilityState==="hidden"?L():(k=e(L),Ova(L));return k},!0)});
Ova(w);cyw(function(N){H=uxi();n=bva(V,H,l.reportAllChanges);fL3(function(){H.value=performance.now()-N.timeStamp;g9B[H.id]=!0;n(!0)})})}})};var mZE;var ivv;_.g=function(){return ivv!==void 0?ivv:ivv=document.createElement("template")};
document.head.appendChild(_.g().content);var V7W;_.Ne({_template:function(){if(V7W!==void 0)return V7W;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
var l=V.content,I=l.insertBefore;mZE===void 0&&(mZE=document.createElement("template"));var H=mZE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return V7W=V},
is:"tp-yt-app-toolbar"});var lkJ;var IkJ;_.Mh=function(){};
_.Mh=_.Ne({_template:function(){if(IkJ!==void 0)return IkJ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;lkJ===void 0&&(lkJ=document.createElement("template"));var H=lkJ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return IkJ=V},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Mh.instance||(_.Mh.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(V){this._text===V&&(V+="\u00a0");this._text="";this.async(function(){this._text=V},this.timeout)},
_onIronAnnounce:function(V){V.detail&&V.detail.text&&this.announce(V.detail.text)}});
_.Mh.instance=null;_.Mh.requestAvailability=function(){_.Mh.instance||(_.Mh.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Mh.instance):document.addEventListener("load",function(){document.body.appendChild(_.Mh.instance)})};var Hli;var TEJ;/*

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

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var sM,wAN,NEb;sM=Element.prototype;wAN=sM.matches||sM.matchesSelector||sM.mozMatchesSelector||sM.msMatchesSelector||sM.oMatchesSelector||sM.webkitMatchesSelector;NEb=function(){};
_.jKv=function(V){var l=KSv,I=[];return l._collectTabbableNodes(V,I)?l._sortByTabIndex(I):I};
_.B=NEb.prototype;_.B._normalizedTabIndex=function(V){return(wAN.call(V,"input, select, textarea, button, object")?wAN.call(V,":not([disabled])"):wAN.call(V,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(V=V.getAttribute("tabindex")||0,Number(V)):-1};
_.B._collectTabbableNodes=function(V,l){if(V.nodeType!==Node.ELEMENT_NODE||!this._isVisible(V))return!1;var I=this._normalizedTabIndex(V),H=I>0;I>=0&&l.push(V);if(V.localName==="content"||V.localName==="slot")I=_.Xb(V).getDistributedNodes();else{var T;I=((T=_.Xb(V).shadowRoot)!=null?T:_.Xb(V.root||V)).children}for(V=0;V<I.length;V++)H=this._collectTabbableNodes(I[V],l)||H;return H};
_.B._isVisible=function(V){var l=V.style;return l.visibility!=="hidden"&&l.display!=="none"?(l=window.getComputedStyle(V),l.visibility!=="hidden"&&l.display!=="none"):!1};
_.B._sortByTabIndex=function(V){var l=V.length;if(l<2)return V;var I=Math.ceil(l/2);l=this._sortByTabIndex(V.slice(0,I));V=this._sortByTabIndex(V.slice(I));return this._mergeSortByTabIndex(l,V)};
_.B._mergeSortByTabIndex=function(V,l){for(var I=[];V.length>0&&l.length>0;)this._hasLowerTabOrder(V[0],l[0])?I.push(l.shift()):I.push(V.shift());return I.concat(V,l)};
_.B._hasLowerTabOrder=function(V,l){V=Math.max(V.tabIndex,0);l=Math.max(l.tabIndex,0);return V===0||l===0?l>V:V>l};
var KSv=new NEb;var YHN;var LSv;_.Ne({_template:function(){if(LSv!==void 0)return LSv;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;YHN===void 0&&(YHN=document.createElement("template"));var H=YHN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return LSv=V},
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&&_.Xb(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Xb(this.parentNode).removeChild(this)},
_onTransitionend:function(V){V&&V.target===this&&this.complete()},
_openedChanged:function(V){V?this.prepare():(V=window.getComputedStyle(this),V.transitionDuration!=="0s"&&V.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 pi=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;GO(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)};
pi.prototype._bringOverlayAtIndexToFront=function(V){var l=this._overlays[V];if(l){var I=this._overlays.length-1,H=this._overlays[I];H&&this._shouldBeBehindOverlay(l,H)&&I--;if(!(V>=I)){H=Math.max(this._getZ(_.ejN(this)),this._minimumZ);for(this._getZ(l)<=H&&this._applyOverlayZ(l,H);V<I;)this._overlays[V]=this._overlays[V+1],V++;this._overlays[I]=l}}};
pi.prototype.addOverlay=function(V){var l=this._overlays.indexOf(V);if(l>=0)this._bringOverlayAtIndexToFront(l);else{l=this._overlays.length;var I=this._overlays[l-1],H=Math.max(this._getZ(I),this._minimumZ),T=this._getZ(V);I&&this._shouldBeBehindOverlay(V,I)&&(this._applyOverlayZ(I,H),l--,H=Math.max(this._getZ(this._overlays[l-1]),this._minimumZ));T<=H&&this._applyOverlayZ(V,H);this._overlays.splice(l,0,V)}this.trackBackdrop()};
pi.prototype.removeOverlay=function(V){V=this._overlays.indexOf(V);V!==-1&&(this._overlays.splice(V,1),this.trackBackdrop())};
_.ejN=function(V){return V._overlays[V._overlays.length-1]};
_.B=pi.prototype;_.B.trackBackdrop=function(){var V=this._overlayWithBackdrop();if(V||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(V)-1,this.backdropElement.opened=!!V,this.backdropElement.prepare()};
_.B._overlayWithBackdrop=function(){for(var V=this._overlays.length-1;V>=0;V--)if(this._overlays[V].withBackdrop)return this._overlays[V]};
_.B._getZ=function(V){var l=this._minimumZ;if(V){var I,H,T=Number(((I=V.hostElement)!=null?I:V).style.zIndex||window.getComputedStyle((H=V.hostElement)!=null?H:V).zIndex);T===T&&(l=T)}return l};
_.B._setZ=function(V,l){var I;((I=V.hostElement)!=null?I:V).style.zIndex=l};
_.B._applyOverlayZ=function(V,l){this._setZ(V,l+2)};
_.B._overlayInPath=function(V){V=V||[];for(var l=0;l<V.length;l++){var I=void 0;if(((I=V[l].polymerController)!=null?I:V[l])._manager===this)return V[l]}};
_.B._onCaptureClick=function(V){var l=this._overlays.length-1;if(l!==-1)for(var I=_.Xb(V).path,H,T;(H=this._overlays[l])&&this._overlayInPath(I)!==((T=H.hostElement)!=null?T:H);)if(H._onCaptureClick(V),H.allowClickThrough)l--;else break};
_.B._onCaptureFocus=function(V){var l=_.ejN(this);l&&l._onCaptureFocus(V)};
_.B._onCaptureKeyDown=function(V){var l=_.ejN(this);l&&(_.yn.keyboardEventMatchesKeys(V,"esc")?l._onCaptureEsc(V):_.yn.keyboardEventMatchesKeys(V,"tab")&&l._onCaptureTab(V))};
_.B._shouldBeBehindOverlay=function(V,l){return!V.alwaysOnTop&&l.alwaysOnTop&&!l.contains(V)};
_.vI.Object.defineProperties(pi.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 V=document.activeElement;V&&V instanceof Element!==!1||(V=document.body);for(;V.root&&_.Xb(V.root).activeElement;)V=_.Xb(V.root).activeElement;return V}}});
_.Aw=new pi;var eXy=0,kdc=0,FRq=null,X_3=[],zu=["wheel","mousewheel","DOMMouseScroll"],zXJ;_.z("web_no_lock_on_touchstart_killswitch")&&(zu.push("touchstart"),zu.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;_.uW={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:_.Aw},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var V;return this._focusedChild||_.Xb((V=this.hostElement)!=null?V:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var V;return _.jKv((V=this.hostElement)!=null?V: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 V;this._observer=_.Xb((V=this.hostElement)!=null?V:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var V;_.Xb((V=this.hostElement)!=null?V:this).unobserveNodes(this._observer)}this._observer=null;for(var l in this.__rafs)this.__rafs[l]!==null&&cancelAnimationFrame(this.__rafs[l]);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(V){this.fire("iron-overlay-canceled",V,{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 V;((V=this.hostElement)!=null?V:this).style.outline="none";var l;((l=this.hostElement)!=null?l:this).style.display="none"}},
_openedChanged:function(V){if(V){var l;((l=this.hostElement)!=null?l:this).removeAttribute("aria-hidden")}else{var I;((I=this.hostElement)!=null?I: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 V;if(this.withBackdrop&&!((V=this.hostElement)!=null?V:this).hasAttribute("tabindex")){var l;((l=this.hostElement)!=null?l:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var I;((I=this.hostElement)!=null?I: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 V;((V=this.hostElement)!=null?V:this).style.display="none";var l;((l=this.hostElement)!=null?l:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var V,l;((V=this.hostElement)!=null?V:this).style.transition=((l=this.hostElement)!=null?l:this).style.webkitTransition="none";var I,H;((I=this.hostElement)!=null?I:this).style.transform=((H=this.hostElement)!=null?H:this).style.webkitTransform="none";var T;((T=this.hostElement)!=null?T:this).style.display=""},
_finishPositioning:function(){var V;((V=this.hostElement)!=null?V:this).style.display="none";this.scrollTop=this.scrollTop;var l,I;((l=this.hostElement)!=null?l:this).style.transition=((I=this.hostElement)!=null?I:this).style.webkitTransition="";var H,T;((H=this.hostElement)!=null?H:this).style.transform=((T=this.hostElement)!=null?T:this).style.webkitTransform="";var x;((x=this.hostElement)!=null?x:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var V=this._manager.deepActiveElement,l;if(!(l=V===document.body))a:{for(;V;V=V.assignedSlot||V.parentNode||V.host)if(V===this){l=!0;break a}l=!1}l&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(V){this.noCancelOnOutsideClick||this.cancel(V)},
_onCaptureFocus:function(V){if(this.withBackdrop){var l=_.Xb(V).path;l.indexOf(this)===-1?(V.stopPropagation(),this._applyFocus()):this._focusedChild=l[0]}},
_onCaptureEsc:function(V){this.noCancelOnEscKey||this.cancel(V)},
_onCaptureTab:function(V){if(this.withBackdrop){this.__ensureFirstLastFocusables();var l=V.shiftKey,I=l?this.__firstFocusableNode:this.__lastFocusableNode;l=l?this.__lastFocusableNode:this.__firstFocusableNode;if(I===l)I=!0;else{var H=this._manager.deepActiveElement;I=H===I||H===this}I&&(V.preventDefault(),this._focusedChild=l,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 V=this._focusableNodes;this.__firstFocusableNode=V[0];this.__lastFocusableNode=V[V.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(V,l){var I=this.__rafs;I[V]!==null&&cancelAnimationFrame(I[V]);I[V]=requestAnimationFrame(function(){I[V]=null;l.call(this)}.bind(this))},
__updateScrollObservers:function(V,l,I){V&&l&&this.__isValidScrollAction(I)?(I==="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),zXJ=_._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()):(V=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),V!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(V,1),zXJ=_._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(DU)for(var V=this;V;)V.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&V.host&&this.__rootNodes.push(V),V=V.host||V.assignedSlot||V.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(l){l.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(V){V.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(V){return V==="lock"||V==="refit"||V==="cancel"},
__onCaptureScroll:function(V){if(!(this.__isAnimating||_.Xb(V).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(V)}},
__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)}};
_.vd=[dY3,_.Da,_.uW];_.Ne({_template:function(){if(n_a!==void 0)return n_a;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;UY0===void 0&&(UY0=document.createElement("template"));var H=UY0;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return n_a=V},
is:"tp-yt-iron-dropdown",behaviors:[_.tw,_.yn,_.vd,gjv],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 V=_.Xb(this.$.content).getDistributedNodes(),l=0,I=V.length;l<I;l++)if(V[l].nodeType===Node.ELEMENT_NODE)return V[l]},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(),_.uW._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.uW._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.uW._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var V=this.containedElement,l=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),I=0;I<l.length;I++)l[I].node=V;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(V){this._readied&&(V?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var V=this.focusTarget||this.containedElement;V&&this.opened&&!this.noAutoFocus?V.focus():_.uW._applyFocus.apply(this,arguments)}});var kaB;var FSJ;/*

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 XA3=new _.Jw({type:"iconset"});
_.Ne({_template:function(){if(FSJ!==void 0)return FSJ;var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;kaB===void 0&&(kaB=document.createElement("template"));
var H=kaB;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return FSJ=V},
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(V){V=(V||"").split(":");this._iconName=V.pop();this._iconsetName=V.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&&_.Xb(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=XA3.byKey(this._iconsetName)){var V=this._iconset.applyIcon(this,this._iconName,this.theme);V&&V.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,_.Xb(this.root).appendChild(this._img)}});var zjv;var yiZ;_.Ne({_template:function(){if(yiZ!==void 0)return yiZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
var l=V.content,I=l.insertBefore;zjv===void 0&&(zjv=document.createElement("template"));var H=zjv;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return yiZ=V},
is:"tp-yt-iron-input",behaviors:[_.hw],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(){_.Mh.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Xb(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Xb(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 V=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":V=/[0-9.,e-]/}return V},_bindValueChanged:function(V,l){l&&(V===void 0?l.value=null:V!==l.value&&(this.inputElement.value=V),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:V}))},
_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(V){var l=V.keyCode==19||V.keyCode==20||V.keyCode==45||V.keyCode==46||V.keyCode==144||V.keyCode==145||V.keyCode>32&&V.keyCode<41||V.keyCode>111&&V.keyCode<124;return!(V.keyCode==8||V.keyCode==9||V.keyCode==13||V.keyCode==27)&&!(V.charCode==0&&l)},
_onKeypress:function(V){if(this.allowedPattern||this.inputElement.type==="number"){var l=this._patternRegExp;if(l&&!(V.metaKey||V.ctrlKey||V.altKey)){this._patternAlreadyChecked=!0;var I=String.fromCharCode(V.charCode);this._isPrintable(V)&&!l.test(I)&&(V.preventDefault(),this._announceInvalidCharacter("Invalid character "+I+" not entered."))}}},
_checkPatternValidity:function(){var V=this._patternRegExp;if(!V)return!0;for(var l=0;l<this.inputElement.value.length;l++)if(!V.test(this.inputElement.value[l]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var V=this.inputElement.checkValidity();V&&(this.required&&this.bindValue===""?V=!1:this.hasValidator()&&(V=_.hw.validate.call(this,this.bindValue)));this.invalid=!V;this.fire("iron-input-validate");return V},
_announceInvalidCharacter:function(V){this.fire("iron-announce",{text:V})},
_computeValue:function(V){return V}});var t7W;var riE;var Gao=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),E_o=Gao&&Gao[1]>=8;
_.Ne({_template:function(){if(riE!==void 0)return riE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;t7W===void 0&&(t7W=document.createElement("template"));var H=t7W;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return riE=V},
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:[Y6T,_.Da,_.fbN,bYb],_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 _.Xb(_.Xb(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var V=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,V-this._physicalCount)},set _virtualStart(V){V=this._clamp(V,0,this._maxVirtualStart);this.grid&&(V-=V%this._itemsPerRow);this._virtualStartVal=V},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(V){V%=this._physicalCount;V<0&&(V=this._physicalCount+V);this.grid&&(V-=V%this._itemsPerRow);this._physicalStartVal=V},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(V){this._physicalCountVal=V},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 V=this._firstVisibleIndexVal;if(V==null){var l=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
V=this._iterateItems(function(I,H){l+=this._getPhysicalSizeIncrement(I);if(l>this._scrollPosition)return this.grid?H-H%this._itemsPerRow:H;if(this.grid&&this._virtualCount-1===H)return H-H%this._itemsPerRow})||0}return V},
get lastVisibleIndex(){var V=this._lastVisibleIndexVal;if(V==null){if(this.grid)V=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var l=this._physicalTop+this._scrollOffset;this._iterateItems(function(I,H){l<this._scrollBottom&&(V=H);l+=this._getPhysicalSizeIncrement(I)})}this._lastVisibleIndexVal=V}return V},
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,_.Kt);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(V){this.style.webkitOverflowScrolling=V===this?"touch":"";this.style.overflowY=V===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Kt)},
updateViewportBoundaries:function(){var V=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(V["padding-top"],10);this._isRTL=V.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var V=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),l=V-this._scrollPosition,I=l>=0;this._scrollPosition=V;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(l)>this._physicalSize&&this._physicalSize>0?(l-=this._scrollOffset,I=Math.round(l/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=I,this._physicalStart+=I,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(V=this._getReusables(I),I?(this._physicalTop=V.physicalTop,this._virtualStart+=V.indexes.length,this._physicalStart+=V.indexes.length):(this._virtualStart=this._virtualStart-V.indexes.length,this._physicalStart=this._physicalStart-V.indexes.length),this._update(V.indexes,I?null:V.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),oX))},
_getReusables:function(V){var l=[],I=this._hiddenContentSize*this._ratio,H=this._virtualStart,T=this._virtualEnd,x=this._physicalCount,n=this._physicalTop+this._scrollOffset;var w=this._physicalBottom+this._scrollOffset;var N=this._scrollPosition,L=this._scrollBottom;if(V){var e=this._physicalStart;w=N-n}else e=this._physicalEnd,w-=L;for(;;){var k=this._getPhysicalSizeIncrement(e);w-=k;if(l.length>=x||w<=I)break;if(V){if(T+l.length+1>=this._virtualCount)break;if(n+k>=N-this._scrollOffset)break;l.push(e);
n+=k;e=(e+1)%x}else{if(H-l.length<=0)break;if(n+this._physicalSize-k<=L)break;l.push(e);n-=k;e=e===0?x-1:e-1}}return{indexes:l,physicalTop:n-this._scrollOffset}},
_update:function(V,l){if(!(V&&V.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(V);this._updateMetrics(V);if(l)for(;l.length;)V=l.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(V);this._positionItems();this._updateScrollerSize()}},
_createPool:function(V){this._ensureTemplatized();var l,I=Array(V);for(l=0;l<V;l++){var H=this.stamp(null);I[l]=H.root.querySelector("*");this._itemsParent.appendChild(H.root)}return I},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(V){V=this._clamp(this._physicalCount+V,3,this._virtualCount-this._virtualStart);V=this._convertIndexToCompleteRow(V);if(this.grid){var l=V%this._itemsPerRow;l&&V-l<=this._physicalCount&&(V+=this._itemsPerRow);V-=l}V-=this._physicalCount;l=Math.round(this._physicalCount*.5);if(!(V<0)){if(V>0){l=window.performance.now();[].push.apply(this._physicalItems,this._createPool(V));for(var I=0;I<V;I++)this._physicalSizes.push(0);this._physicalCount+=V;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=V);this._update();this._templateCost=(window.performance.now()-l)/V;l=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||l===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,l)),X4w):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,l),oX))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var V=this._getReusables(!0);this._physicalTop=V.physicalTop;this._virtualStart+=V.indexes.length;this._physicalStart+=V.indexes.length;this._update(V.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 V={__key__:!0};V[this.as]=!0;V[this.indexAs]=!0;V[this.selectedAs]=!0;V.tabIndex=!0;this._instanceProps=V;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(V,l){typeof l!=="undefined"&&(this.notifyResize(),_.KD(),V&&this._updateGridMetrics())},
_itemsChanged:function(V){if(V.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,
_.Kt);else if(V.path==="items.splices"){this._adjustVirtualIndex(V.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(V.value.indexSplices.some(function(I){return I.addedCount>0||I.removed.length>0})){var l=this._getActiveElement();
this.contains(l)&&l.blur()}V=V.value.indexSplices.some(function(I){return I.index+I.addedCount>=this._virtualStart&&I.index<=this._virtualEnd},this);
this._isClientFull()&&!V||this._debounce("_render",this._render,_.Kt)}else V.path!=="items.length"&&this._forwardItemPath(V.path,V.value)},
_forwardItemPath:function(V,l){V=V.slice(6);var I=V.indexOf(".");I===-1&&(I=V.length);var H,T=this.modelForElement(this._offscreenFocusedItem),x=parseInt(V.substring(0,I),10);if(H=this._isIndexRendered(x)){var n=this._getPhysicalIndex(x);var w=this.modelForElement(this._physicalItems[n])}else T&&(w=T);w&&w[this.indexAs]===x&&(V=V.substring(I+1),V=this.as+(V?"."+V:""),w._setPendingPropertyOrPath(V,l,!1,!0),w._flushProperties&&w._flushProperties(),H&&(this._updateMetrics([n]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(V){V.forEach(function(l){l.removed.forEach(this._removeItem,this);l.index<this._virtualStart&&(l=Math.max(l.addedCount-l.removed.length,l.index-this._virtualStart),this._virtualStart+=l,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=l))},this)},
_removeItem:function(V){this.$.selector.deselect(V);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===V&&this._removeFocusedItem()},
_iterateItems:function(V,l){var I,H;if(arguments.length===2&&l)for(H=0;H<l.length;H++){var T=l[H];var x=this._computeVidx(T);if((I=V.call(this,T,x))!=null)return I}else{T=this._physicalStart;for(x=this._virtualStart;T<this._physicalCount;T++,x++)if((I=V.call(this,T,x))!=null)return I;for(T=0;T<this._physicalStart;T++,x++)if((I=V.call(this,T,x))!=null)return I}},
_computeVidx:function(V){return V>=this._physicalStart?this._virtualStart+(V-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+V},
_assignModels:function(V){this._iterateItems(function(l,I){var H=this._physicalItems[l],T=this.items&&this.items[I];if(T!=null){var x=this.modelForElement(H);x.__key__=null;this._forwardProperty(x,this.as,T);this._forwardProperty(x,this.selectedAs,this.$.selector.isSelected(T));this._forwardProperty(x,this.indexAs,I);this._forwardProperty(x,"tabIndex",this._focusedVirtualIndex===I?0:-1);this._physicalIndexForKey[x.__key__]=l;x._flushProperties&&x._flushProperties(!0);H.removeAttribute("hidden")}else H.setAttribute("hidden",
"")},V)},
_updateMetrics:function(V){_.KD();var l=0,I=0,H=this._physicalAverageCount,T=this._physicalAverage;this._iterateItems(function(x){I+=this._physicalSizes[x];this._physicalSizes[x]=this._physicalItems[x].offsetHeight;l+=this._physicalSizes[x];this._physicalAverageCount+=this._physicalSizes[x]?1:0},V);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(I=this._itemsPerRow===1?I:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+l-I,this._itemsPerRow=1);this._physicalAverageCount!==H&&(this._physicalAverage=Math.round((T*H+l)/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 V=this._physicalTop;if(this.grid){var l=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(I,H){var T=Math.floor(H%this._itemsPerRow*this._itemWidth+l);this._isRTL&&(T*=-1);this.translate3d(T+"px",V+"px",0,this._physicalItems[I]);this._shouldRenderNextRow(H)&&(V+=this._rowHeight)})}else this._iterateItems(function(I){this.translate3d(0,V+"px",0,this._physicalItems[I]);
V+=this._physicalSizes[I]})},
_getPhysicalSizeIncrement:function(V){return this.grid?this._computeVidx(V)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[V]},
_shouldRenderNextRow:function(V){return V%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var V=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(V!==0){this._physicalTop=this._physicalTop-V;var l=this._scrollPosition;!E_o&&l>0&&this._resetScrollPosition(l-V)}},
_resetScrollPosition:function(V){this.scrollTarget&&V>=0&&(this._scrollPosition=this._scrollTop=V)},
_updateScrollerSize:function(V){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((V=(V=(V=V||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(V){return this.scrollToIndex(this.items.indexOf(V))},
scrollToIndex:function(V){if(!(typeof V!=="number"||V<0||V>this.items.length-1)&&(_.KD(),this._physicalCount!==0)){V=this._clamp(V,0,this._virtualCount-1);if(!this._isIndexRendered(V)||V>=this._maxVirtualStart)this._virtualStart=this.grid?V-this._itemsPerRow*2:V-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var l=this._physicalStart,I=this._virtualStart,H=0,T=this._hiddenContentSize;I<V&&
H<=T;)H+=this._getPhysicalSizeIncrement(l),l=(l+1)%this._physicalCount,I++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+H);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)},_.Kt)},
selectItem:function(V){return this.selectIndex(this.items.indexOf(V))},
selectIndex:function(V){if(!(V<0||V>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(V)){var l=this.modelForElement(this._physicalItems[this._getPhysicalIndex(V)]);l&&(l[this.selectedAs]=!0);this.updateSizeForIndex(V)}this.$.selector.selectIndex(V)}},
deselectItem:function(V){return this.deselectIndex(this.items.indexOf(V))},
deselectIndex:function(V){V<0||V>=this._virtualCount||(this._isIndexRendered(V)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(V)])[this.selectedAs]=!1,this.updateSizeForIndex(V)),this.$.selector.deselectIndex(V))},
toggleSelectionForItem:function(V){return this.toggleSelectionForIndex(this.items.indexOf(V))},
toggleSelectionForIndex:function(V){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(V):this.$.selector.isSelected(this.items[V]))?this.deselectIndex(V):this.selectIndex(V)},
clearSelection:function(){this._iterateItems(function(V){this.modelForElement(this._physicalItems[V])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(V){(V?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(V){var l=this.modelForElement(V.target);if(l){var I=_.Xb(V).path[0];V=this._getActiveElement();var H=this._physicalItems[this._getPhysicalIndex(l[this.indexAs])];if(I.localName!=="input"&&I.localName!=="button"&&I.localName!=="select"){I=l.tabIndex;l.tabIndex=-100;var T=V?V.tabIndex:-1;l.tabIndex=I;V&&H!==V&&H.contains(V)&&T!==-100||this.toggleSelectionForItem(l[this.as])}}},
_multiSelectionChanged:function(V){this.clearSelection();this.$.selector.multi=V},
updateSizeForItem:function(V){return this.updateSizeForIndex(this.items.indexOf(V))},
updateSizeForIndex:function(V){if(!this._isIndexRendered(V))return null;this._updateMetrics([this._getPhysicalIndex(V)]);this._positionItems();return null},
_manageFocus:function(){var V=this._focusedVirtualIndex;V>=0&&V<this._virtualCount?this._isIndexRendered(V)?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(V){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(V/this._itemsPerRow)*this._itemsPerRow:V},
_isIndexRendered:function(V){return V>=this._virtualStart&&V<=this._virtualEnd},
_isIndexVisible:function(V){return V>=this.firstVisibleIndex&&V<=this.lastVisibleIndex},
_getPhysicalIndex:function(V){return(this._physicalStart+(V-this._virtualStart))%this._physicalCount},
focusItem:function(V){this._focusPhysicalItem(V)},
_focusPhysicalItem:function(V){if(!(V<0||V>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(V)||this.scrollToIndex(V);var l=this._physicalItems[this._getPhysicalIndex(V)],I=this.modelForElement(l),H;I.tabIndex=-100;l.tabIndex===-100&&(H=l);H||(H=_.Xb(l).querySelector('[tabindex="-100"]'));I.tabIndex=0;this._focusedVirtualIndex=V;H&&H.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 V=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var l=this.stamp(null);this._focusBackfillItem=l.root.querySelector("*");this._itemsParent.appendChild(l.root)}this._offscreenFocusedItem=this._physicalItems[V];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[V]=this._focusBackfillItem;this._focusedPhysicalIndex=V;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var V=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),l=this._physicalItems[V];if(l){var I=this.modelForElement(l),H=this.modelForElement(this._offscreenFocusedItem);I[this.as]===H[this.as]?(this._focusBackfillItem=l,I.tabIndex=-1,this._physicalItems[V]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(V){V=this.modelForElement(V.target);var l=this.modelForElement(this._focusedItem),I=this._offscreenFocusedItem!==null,H=this._focusedVirtualIndex;V&&(l===V?this._isIndexVisible(H)||this.scrollToIndex(H):(this._restoreFocusedItem(),l&&(l.tabIndex=-1),V.tabIndex=0,this._focusedVirtualIndex=H=V[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(H),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],I&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(V){switch(V.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&V.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&&V.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(V)}},
_clamp:function(V,l,I){return Math.min(I,Math.max(l,V))},
_debounce:function(V,l,I){this._debouncers=this._debouncers||{};this._debouncers[V]=_.nD(this._debouncers[V],I,l.bind(this));_.$b(this._debouncers[V])},
_forwardProperty:function(V,l,I){V._setPendingProperty(l,I)},
_forwardHostPropV2:function(V,l){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).forwardHostProp(V,l)},this)},
_notifyInstancePropV2:function(V,l,I){ZvJ(this.as,l)&&(V=V[this.indexAs],l==this.as&&(this.items[V]=I),this.notifyPath(nC(this.as,"items."+V,l),I))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(V,l,I){l.indexOf(this.as+".")===0&&this.notifyPath("items."+V.__key__+"."+l.slice(this.as.length+1),I)},
_forwardParentPath:function(V,l){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).notifyPath(V,l)},this)},
_forwardParentProp:function(V,l){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&(this.modelForElement(I)[V]=l)},this)},
_getActiveElement:function(){var V=this._itemsParent.node.domHost;return _.Xb(V?V.root:document).activeElement},
_scrollTargetChanged:function(V,l){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(l)if(V==="document")this.scrollTarget=this._doc;else if(typeof V==="string"){var I,H;this.scrollTarget=(l=(H=(I=this.domHost)==null?void 0:I.polymerController)!=null?H:this.domHost)&&l.$?l.$[V]:_.Xb(this.ownerDocument).querySelector("#"+V)}else this._isValidScrollTarget()&&(this._oldScrollTarget=V,this._toggleScrollListener(this._shouldHaveListener,V))}});var Jiw;var o_0;var hjZ=function(V,l,I,H){V-=I;l-=H;return Math.sqrt(V*V+l*l)},PRE=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
yu1.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var tTt=function(V){V.maxRadius=0;V.mouseDownStart=0;V.mouseUpStart=0;V.xStart=0;V.yStart=0;V.xEnd=0;V.yEnd=0;V.containerMetrics=new yu1(V.element)};
ruq.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var V=PRE()-this.mouseDownStart;this.mouseUpStart&&(V-=this.mouseUpElapsed);return V},get mouseUpElapsed(){return this.mouseUpStart?PRE()-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 V=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(V*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-V/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 V=this.radius/(this.containerMetrics.size/2);var l=this.xNow-this.containerMetrics.width/2;var I=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+l+"px, "+I+"px)";this.waveContainer.style.transform="translate3d("+l+"px, "+I+"px, 0)";this.wave.style.webkitTransform="scale("+V+","+V+")";this.wave.style.transform="scale3d("+V+","+V+",1)"},
downAction:function(V){var l=this.containerMetrics.width/2,I=this.containerMetrics.height/2;tTt(this);this.mouseDownStart=PRE();this.center?(this.xStart=l,this.yStart=I):(this.xStart=V?V.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=V?V.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=l,this.yEnd=I);V=this.containerMetrics;l=this.xStart;I=this.yStart;this.maxRadius=Math.max(hjZ(l,I,0,0),hjZ(l,I,
V.width,0),hjZ(l,I,0,V.height),hjZ(l,I,V.width,V.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=PRE())},
remove:function(){_.Xb(_.Xb(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Ne({_template:function(){if(o_0!==void 0)return o_0;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;Jiw===void 0&&(Jiw=document.createElement("template"));var H=Jiw;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return o_0=V},
is:"tp-yt-paper-ripple",behaviors:[_.yn],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(){_.Xb(this).parentNode.nodeType==11?this.keyEventTarget=_.Xb(this).getOwnerRoot().host:this.keyEventTarget=_.Xb(this).parentNode;var V=this.keyEventTarget;this.listen(V,"up","uiUpAction");this.listen(V,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(V){V.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var V=0;V<this.ripples.length;++V)if(!this.ripples[V].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(V){this.noink||this.downAction(V)},
downAction:function(V){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(V),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(V){this.noink||this.upAction(V)},
upAction:function(V){this.holdDown||(this.ripples.forEach(function(l){l.upAction(V)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var V=0;V<this.ripples.length;++V){var l=this.ripples[V];l.isOpacityFullyDecayed&&!l.isRestingAtMaxRadius&&this.removeRipple(l)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var V=new ruq(this);_.Xb(this.$.waves).appendChild(V.waveContainer);this.$.background.style.backgroundColor=V.color;this.ripples.push(V);this._setAnimating(!0);return V},
removeRipple:function(V){var l=this.ripples.indexOf(V);l<0||(this.ripples.splice(l,1),V.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var V;for(V=0;V<this.ripples.length;++V){var l=this.ripples[V];l.draw();this.$.background.style.opacity=l.outerOpacity;l.isOpacityFullyDecayed&&!l.isRestingAtMaxRadius&&this.removeRipple(l)}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(V,l){l!==void 0&&(V?this.downAction():this.upAction())}});var OM={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(V){rN._downHandler.call(this,V);this.pressed&&this.ensureRipple(V)},
ensureRipple:function(V){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var l=this._rippleContainer||this.root;l&&_.Xb(l).appendChild(this._ripple);if(V){l=_.Xb(this._rippleContainer||this);var I=_.Xb(V).rootTarget;l.deepContains(I)&&this._ripple.uiDownAction(V)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(V){this.hasRipple()&&(this._ripple.noink=V)}};var DYb={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 V=1;this.disabled?V=0:this.active||this.pressed?V=4:this.receivedFocusFromKeyboard&&(V=3);this._setElevation(V)},
_computeKeyboardClass:function(V){this.toggleClass("keyboard-focus",V)},
_spaceKeyDownHandler:function(V){rN._spaceKeyDownHandler.call(this,V);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(V){rN._spaceKeyUpHandler.call(this,V);this.hasRipple()&&this._ripple.uiUpAction()}},ZlB=[b6w,
_.tw,OM,DYb];_.SHN={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(V){V&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=V)},
_createRipple:function(){var V=OM._createRipple();V.id="ink";V.setAttribute("center","");V.classList.add("circle");return V}};
_.Rjo=[b6w,_.tw,OM,_.SHN];_.QKZ=[_.Rjo,s6J,{_checkedChanged:function(){MMb._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){OM._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var cio;var WSi;var blw=function(){};
_.B=blw.prototype;_.B.registered=function(){};
_.B.addOwnKeyBinding=function(){};
_.B.removeOwnKeyBindings=function(){};
_.B.keyboardEventMatchesKeys=function(){};
_.B._collectKeyBindings=function(){};
_.B._prepKeyBindings=function(){};
_.B._addKeyBinding=function(){};
_.B._resetKeyEventListeners=function(){};
_.B._listenKeyEventListeners=function(){};
_.B._unlistenKeyEventListeners=function(){};
_.B._onKeyBindingEvent=function(){};
_.B._triggerKeyHandler=function(){};
_.B._tapHandler=function(){};
_.B._focusChanged=function(){};
_.B._detectKeyboardFocus=function(){};
_.B._userActivate=function(){};
_.B._upHandler=function(){};
_.B._asyncClick=function(){};
_.B._pressedChanged=function(){};
_.B._ariaActiveAttributeChanged=function(){};
_.B._activeChanged=function(){};
_.B._controlStateChanged=function(){};
_.B._changedButtonState=function(){};
_.B._focusBlurHandler=function(){};
_.B._disabledChanged=function(){};
_.B._changedControlState=function(){};
_.B._buttonStateChanged=function(){};
_.B._downHandler=function(){};
_.B.ensureRipple=function(){};
_.B.getRipple=function(){};
_.B.hasRipple=function(){};
_.B._createRipple=function(){};
_.B._noinkChanged=function(){};
_.B._computeKeyboardClass=function(){};
_.B._spaceKeyDownHandler=function(){};
_.B._spaceKeyUpHandler=function(){};
_.B._setPressed=function(){};
_.B._setPointerDown=function(){};
_.B._setReceivedFocusFromKeyboard=function(){};
_.B._setFocused=function(){};
_.B._setElevation=function(){};
blw=_.Ne({_template:function(){if(WSi!==void 0)return WSi;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
var l=V.content,I=l.insertBefore;cio===void 0&&(cio=document.createElement("template"));var H=cio;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return WSi=V},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[ZlB],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?DYb._calculateElevation.apply(this):this._setElevation(0)}});var qHv;var M7Z;var sKB={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(V){_.z("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(V)},
_onDialogClickWrapped:function(V){_.z("dialog_behavior_no_tap_killswitch")||this._onDialogClick(V)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(V,l){l&&(V?(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(V){this.closingReason=this.closingReason||{};this.closingReason.confirmed=V},
_onDialogClick:function(V){for(var l=_.Xb(V).path,I=0,H,T=l.indexOf((H=this.hostElement)!=null?H:this);I<T;I++)if(H=l[I],H.hasAttribute&&(H.hasAttribute("dialog-dismiss")||H.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(H.hasAttribute("dialog-confirm"));this.close();V.stopPropagation();break}}},pAZ=[_.vd,
sKB];var Aib=document.createElement("template");_.G(Aib,'<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(Aib.content);var uzZ=document.createElement("template");_.G(uzZ,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(uzZ.content);_.Ne({_template:function(){if(M7Z!==void 0)return M7Z;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
var l=V.content,I=l.insertBefore;qHv===void 0&&(qHv=document.createElement("template"));var H=qHv;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return M7Z=V},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[pAZ,gjv],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 v_v;var Ol3;_.Ne({_template:function(){if(Ol3!==void 0)return Ol3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;v_v===void 0&&(v_v=document.createElement("template"));var H=v_v;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return Ol3=V},
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 V,l,I;if(((V=window.ShadyDOM)==null?void 0:V.noPatch)!==!0&&((l=window.ShadyDOM)==null?void 0:l.noPatch)!=="on-demand"||((I=this.__shady_parentNode)==null?void 0:I.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(sKB)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var CRB=_.fl(['<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>']),akb=_.A5Z(CRB);akb.setAttribute("style","display: none;");document.head.appendChild(akb.content);var fkN;var g_0;var mYN;var ilB;_.Ne({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Za],configure:function(V){var l=V.node,I=l.getBoundingClientRect().height;return this._effect=new KeyframeEffect(l,[{height:I/2+"px"},{height:I+"px"}],this.timingFromConfig(V))}});
_.Ne({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Za],configure:function(V){var l=V.node,I=l.getBoundingClientRect().width;return this._effect=new KeyframeEffect(l,[{width:I/2+"px"},{width:I+"px"}],this.timingFromConfig(V))}});
_.Ne({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Za],configure:function(V){var l=V.node,I=l.getBoundingClientRect().width;return this._effect=new KeyframeEffect(l,[{width:I+"px"},{width:I-I/20+"px"}],this.timingFromConfig(V))}});
_.Ne({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Za],configure:function(V){var l=V.node,I=l.getBoundingClientRect().height;this.setPrefixedProperty(l,"transformOrigin","0 0");return this._effect=new KeyframeEffect(l,[{height:I+"px",transform:"translateY(0)"},{height:I/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(V))}});var Ci={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},VaZ=function(){};
_.B=VaZ.prototype;_.B.registered=function(){};
_.B.addOwnKeyBinding=function(){};
_.B.removeOwnKeyBindings=function(){};
_.B.keyboardEventMatchesKeys=function(){};
_.B._collectKeyBindings=function(){};
_.B._prepKeyBindings=function(){};
_.B._addKeyBinding=function(){};
_.B._resetKeyEventListeners=function(){};
_.B._listenKeyEventListeners=function(){};
_.B._unlistenKeyEventListeners=function(){};
_.B._onKeyBindingEvent=function(){};
_.B._triggerKeyHandler=function(){};
_.B._focusBlurHandler=function(){};
_.B._changedControlState=function(){};
_.B._setFocused=function(){};
VaZ=_.Ne({_template:function(){if(ilB!==void 0)return ilB;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;mYN===void 0&&(mYN=document.createElement("template"));var H=mYN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return ilB=V},
is:"tp-yt-paper-menu-button",behaviors:[_.yn,_.tw],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:Ci.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Ci.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:Ci.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var V=_.Xb(this.$.content).getDistributedNodes(),l=0,I=V.length;l<I;l++)if(V[l].nodeType===Node.ELEMENT_NODE)return V[l]},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(V,l){V?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):l!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(V){_.tw._disabledChanged.apply(this,arguments);V&&this.opened&&this.close()},
__onIronOverlayCanceled:function(V){var l=this.$.trigger;_.Xb(V.detail).path.indexOf(l)>-1&&V.preventDefault()}});
Object.keys(Ci).forEach(function(V){VaZ[V]=Ci[V]});var lVN=_.GZ.IronButtonState,IVN=(0,_.yA)(HTMLElement);
_.Ne({_template:function(){if(g_0!==void 0)return g_0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;fkN===void 0&&(fkN=document.createElement("template"));var H=fkN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return g_0=V},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[lVN,_.tw,OM,_.EM,_.hw],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(V){var l=(0,_.KC)(this);l.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:V});l.shadowRoot.appendChild(V);return IVN.prototype._attachDom.call(this,V)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var V=this.contentElement;V&&V.selectedItem&&this._setSelectedItem(V.selectedItem)},
get contentElement(){for(var V=_.Xb(this.$.content).getDistributedNodes(),l=0,I=V.length;l<I;l++)if(V[l].nodeType===Node.ELEMENT_NODE)return V[l]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(V){this._setSelectedItem(V.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(V){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V)===this&&this.open()},
_selectedItemChanged:function(V){var l="";V?l=V.label||V.getAttribute("label")||V.textContent.trim():l="";this.value=l;this._setSelectedItemLabel(l)},
_computeMenuVerticalOffset:function(V,l){return l?l:V?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var V=this.opened?"true":"false",l=this.contentElement;l&&l.setAttribute("aria-expanded",V)},
_computeLabelClass:function(V,l,I){var H="label";if(V)I&&(H+=" label-is-hidden");else if(I||l)H+=" label-is-floating";return H},
_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 HjB;var TlB;_.Ne({is:"tp-yt-paper-icon-button",_template:function(){if(TlB!==void 0)return TlB;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;HjB===void 0&&(HjB=document.createElement("template"));var H=HjB;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return TlB=V},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Rjo],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(V,l){var I=this.getAttribute("aria-label");I&&l!=I||this.setAttribute("aria-label",V)}});var Blv;var xUa;_.aR=[b6w,_.tw,{hostAttributes:{role:"option",tabindex:"0"}}];_.Ne({_template:function(){if(xUa!==void 0)return xUa;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;Blv===void 0&&(Blv=document.createElement("template"));var H=Blv;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return xUa=V},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.aR]});var UUE;var nvJ;var $U3={attached:function(){this.fire("addon-attached")},
update:function(){}};var dUb=1,wnJ=1,Nl0=1,KMN=[_.tw,_.yn,{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();!lc&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(V,l){V?V=V+" "+l:V=l;return V},
_onAddonAttached:function(V){V=_.Xb(V).rootTarget;if(V.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,V.id);else{var l="paper-input-add-on-"+wnJ++;V.id=l;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,l)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(V){_.tw._focusBlurHandler.call(this,V);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var V=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",V);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(V){try{var l=this.inputElement.selectionStart;this.value=V;this.inputElement.selectionStart=l;this.inputElement.selectionEnd=l}catch(I){this.value=V}},
_computeAlwaysFloatLabel:function(V,l){return l||V},
_updateAriaLabelledBy:function(){var V=_.Xb(this.root).querySelector("label");if(V){if(V.id)var l=V.id;else l="paper-input-label-"+dUb++,V.id=l;this._ariaLabelledBy=l}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Nl0++)},
_onChange:function(V){this.shadowRoot&&this.fire(V.type,{sourceEvent:V},{node:this,bubbles:V.bubbles,cancelable:V.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var V=document.activeElement;V instanceof HTMLElement&&V!==document.body&&V!==document.documentElement||this._focusableElement.focus()}}}];var jtN;var YkW;_.Ne({_template:function(){if(YkW!==void 0)return YkW;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;jtN===void 0&&(jtN=document.createElement("template"));var H=jtN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return YkW=V},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[$U3],properties:{_charCounterStr:{type:String,value:"0"}},update:function(V){if(V.inputElement){V.value=V.value||"";var l=V.value.toString().length.toString();V.inputElement.hasAttribute("maxlength")&&(l+="/"+V.inputElement.getAttribute("maxlength"));this._charCounterStr=l}}});var LMN;var efB;_.Ne({_template:function(){if(efB!==void 0)return efB;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;LMN===void 0&&(LMN=document.createElement("template"));var H=LMN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return efB=V},
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 IX(this.attrForValue)},get _inputElement(){return _.Xb(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(V){this._addons||(this._addons=[]);V=V.target;this._addons.indexOf(V)===-1&&(this._addons.push(V),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(V){this._handleValueAndAutoValidate(V.target)},
_onValueChanged:function(V){var l=V.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,l.value===void 0||l.value===""))return;this._handleValueAndAutoValidate(V.target)},
_handleValue:function(V){var l=this._inputElementValue;l||l===0||V.type==="number"&&!V.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:V,value:l,invalid:this.invalid})},
_handleValueAndAutoValidate:function(V){this.autoValidate&&V&&(this.invalid=!(V.validate?V.validate(this._inputElementValue):V.checkValidity()));this._handleValue(V)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(V){if(this._addons)for(var l,I=0;l=this._addons[I];I++)l.update(V)},
_computeInputContentClass:function(V,l,I,H,T){var x="input-content";V?(T&&(x+=" label-is-hidden"),H&&!this.noUnfloatedLabelError&&(x+=" is-invalid")):(V=this.querySelector("label"),l||T?(x+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",H?x+=" is-invalid":I&&(x+=" label-is-highlighted")):(V&&(this.$.labelAndInputContainer.style.position="relative"),H&&!this.noUnfloatedLabelError&&(x+=" is-invalid")));I&&(x+=" focused");return x},
_computeUnderlineClass:function(V,l){var I="underline";l?I+=" is-invalid":V&&(I+=" is-highlighted");return I},
_computeAddOnContentClass:function(V,l){var I="add-on-content";l?I+=" is-invalid":V&&(I+=" is-highlighted");return I}});var kpN;var FMN;_.Ne({_template:function(){if(FMN!==void 0)return FMN;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;kpN===void 0&&(kpN=document.createElement("template"));var H=kpN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return FMN=V},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[$U3],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(V){this._setInvalid(V.invalid)}});_.Ne({is:"tp-yt-paper-input",_template:function(){if(nvJ!==void 0)return nvJ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;UUE===void 0&&(UUE=document.createElement("template"));var H=UUE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return nvJ=V},
behaviors:[KMN,_.EM],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 Xni;var zfB;_.Ne({_template:function(){if(zfB!==void 0)return zfB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=
V.content,I=l.insertBefore;Xni===void 0&&(Xni=document.createElement("template"));var H=Xni;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return zfB=V},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.aR]});var y3b;var tai;_.Ne({_template:function(){if(tai!==void 0)return tai;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
var l=V.content,I=l.insertBefore;y3b===void 0&&(y3b=document.createElement("template"));var H=y3b;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return tai=V},
is:"tp-yt-paper-item-body"});var r3w;var GpE;var Evi=function(){};
_.B=Evi.prototype;_.B.indexOf=function(){};
_.B.selectPrevious=function(){};
_.B.selectNext=function(){};
_.B.selectIndex=function(){};
_.B.forceSynchronousItemUpdate=function(){};
_.B._checkFallback=function(){};
_.B._addListener=function(){};
_.B._removeListener=function(){};
_.B._activateEventChanged=function(){};
_.B._updateItems=function(){};
_.B._selectSelected=function(){};
_.B._filterItem=function(){};
_.B._valueToItem=function(){};
_.B._valueToIndex=function(){};
_.B._indexToValue=function(){};
_.B._valueForItem=function(){};
_.B._observeItems=function(){};
_.B._itemActivate=function(){};
_.B.multiChanged=function(){};
_.B._updateAttrForSelected=function(){};
_.B._updateSelected=function(){};
_.B._selectMulti=function(){};
_.B._selectionChange=function(){};
_.B._toggleSelected=function(){};
_.B._valuesToItems=function(){};
_.B.registered=function(){};
_.B.addOwnKeyBinding=function(){};
_.B.removeOwnKeyBindings=function(){};
_.B.keyboardEventMatchesKeys=function(){};
_.B._collectKeyBindings=function(){};
_.B._prepKeyBindings=function(){};
_.B._addKeyBinding=function(){};
_.B._resetKeyEventListeners=function(){};
_.B._listenKeyEventListeners=function(){};
_.B._unlistenKeyEventListeners=function(){};
_.B._onKeyBindingEvent=function(){};
_.B._triggerKeyHandler=function(){};
_.B.select=function(){};
_.B._resetTabindices=function(){};
_.B._updateMultiselectable=function(){};
_.B._focusWithKeyboardEvent=function(){};
_.B._clearSearchText=function(){};
_.B._focusPrevious=function(){};
_.B._focusNext=function(){};
_.B._applySelection=function(){};
_.B._focusedItemChanged=function(){};
_.B._onIronItemsChanged=function(){};
_.B._onShiftTabDown=function(){};
_.B._onFocus=function(){};
_.B._onUpKey=function(){};
_.B._onDownKey=function(){};
_.B._onEscKey=function(){};
_.B._onKeydown=function(){};
_.B._activateHandler=function(){};
_.B._disabledChanged=function(){};
_.B._setSelectedItem=function(){};
_.B._setItems=function(){};
_.B._setSelectedItems=function(){};
_.B._setFocusedItem=function(){};
Evi=_.Ne({_template:function(){if(GpE!==void 0)return GpE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
var l=V.content,I=l.insertBefore;r3w===void 0&&(r3w=document.createElement("template"));var H=r3w;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return GpE=V},
is:"tp-yt-paper-listbox",behaviors:[vjN],hostAttributes:{role:"listbox"}});var J3B;var ovZ;var hfi={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(V,l){return[V||l?"active":"",l?"cooldown":""].join(" ")},
__activeChanged:function(V,l){this.__setAriaHidden(!V);this.__coolingDown=!V&&l},
__altChanged:function(V){this.setAttribute("aria-label",V||"loading")},
__setAriaHidden:function(V){V?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Ne({_template:function(){if(ovZ!==void 0)return ovZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;J3B===void 0&&(J3B=document.createElement("template"));var H=J3B;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return ovZ=V},
is:"tp-yt-paper-spinner",behaviors:[hfi]});var PQb;var DUB;_.Ne({_template:function(){if(DUB!==void 0)return DUB;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;PQb===void 0&&(PQb=document.createElement("template"));var H=PQb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return DUB=V},
is:"tp-yt-paper-spinner-lite",behaviors:[hfi]});var Zj0;var SkZ;_.Ne({_template:function(){if(SkZ!==void 0)return SkZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;Zj0===void 0&&(Zj0=document.createElement("template"));var H=Zj0;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return SkZ=V},
is:"tp-yt-paper-tab",behaviors:[_.tw,_.GZ.IronButtonState,OM],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 V=_.Xb(this).parentNode;return!!V&&!!V.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(V){if(this.link){var l=this.queryEffectiveChildren("a");l&&V.target!==l&&l.click()}}});var Rfi;var QtE;var c30=_.fl(['<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>']),WMw=_.A5Z(c30);document.head.appendChild(WMw.content);_.Ne({_template:function(){if(QtE!==void 0)return QtE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;Rfi===void 0&&(Rfi=document.createElement("template"));var H=Rfi;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return QtE=V},
is:"tp-yt-paper-tabs",behaviors:[_.Da,_.CPN],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(V){_.Xb(this).querySelectorAll("tp-yt-paper-tab").forEach(V?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(V){V.setAttribute("noink","")},
_removeNoinkAttribute:function(V){V.removeAttribute("noink")},
_computeScrollButtonClass:function(V,l,I,H){return!l||I?"hidden":V?H?"hidden":"not-visible":""},
_computeTabsContentClass:function(V,l){var I="tabs-content";V&&(I+=" scrollable");if(!V||l)I+=" fit-container";return I},
_computeSelectionBarClass:function(V,l){var I="selection-bar";V?I+=" hidden":l&&(I+=" align-bottom");return I},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(V){return""+V},
_onIronSelect:function(V){this._tabChanged(V.detail.item,this._previousTab);this._previousTab=V.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();_.Pd._activateHandler.apply(this,arguments)},
_scheduleActivation:function(V,l){this._pendingActivationItem=V;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,l)},
_delayedActivationHandler:function(){var V=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;V.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(V){V.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(V,l){this.scrollable&&this._affectScroll(l&&-l.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(V){this.$.tabsContainer.scrollLeft+=V;V=this.$.tabsContainer.scrollLeft;this._leftHidden=V===0||this.hideScrollButtons;this._rightHidden=V===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(V,l){if(V){var I=this.$.tabsContent.getBoundingClientRect(),H=I.width,T=V.getBoundingClientRect();I=T.left-I.left;this._pos={width:this._calcPercent(T.width,H),left:this._calcPercent(I,H)};if(this.noSlide||l==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var x=l.getBoundingClientRect();l=this.items.indexOf(l);V=this.items.indexOf(V);this.$.selectionBar.classList.add("expand");
V=l<V;this._isRTL&&(V=!V);V?this._positionBar(this._calcPercent(T.left+T.width-x.left,H)-5,this._left):this._positionBar(this._calcPercent(x.left+x.width-T.left,H)-5,this._calcPercent(I,H)+5);this.scrollable&&this._scrollToSelectedIfNeeded(T.width,I)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(V,l){l-=this.$.tabsContainer.scrollLeft;l<0?this.$.tabsContainer.scrollLeft+=l:(l+=V-this.$.tabsContainer.offsetWidth,l>0&&(this.$.tabsContainer.scrollLeft+=l))},
_calcPercent:function(V,l){return 100*V/l},
_positionBar:function(V,l){V=V||0;l=l||0;this._width=V;this._left=l;this.transform("translateX("+l+"%) scaleX("+V/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var V=this.$.selectionBar.classList;V.contains("expand")?(V.remove("expand"),V.add("contract"),this._positionBar(this._pos.width,this._pos.left)):V.contains("contract")&&V.remove("contract")}});var bjb;var qkb;_.Ne({_template:function(){if(qkb!==void 0)return qkb;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;bjb===void 0&&(bjb=document.createElement("template"));var H=bjb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return qkb=V},
is:"tp-yt-paper-textarea",behaviors:[KMN,_.EM],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(V){this.$.input.textarea.selectionStart=V},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(V){this.$.input.textarea.selectionEnd=V},_ariaLabelledByChanged:function(V){this._focusableElement.setAttribute("aria-labelledby",V)},
_ariaDescribedByChanged:function(V){this._focusableElement.setAttribute("aria-describedby",V)},
get _focusableElement(){return this.inputElement.textarea}});var MaN;var stZ;/*

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 pnZ=function(){};
_.B=pnZ.prototype;_.B.addOwnKeyBinding=function(){};
_.B.removeOwnKeyBindings=function(){};
_.B.keyboardEventMatchesKeys=function(){};
_.B._collectKeyBindings=function(){};
_.B._prepKeyBindings=function(){};
_.B._addKeyBinding=function(){};
_.B._resetKeyEventListeners=function(){};
_.B._listenKeyEventListeners=function(){};
_.B._unlistenKeyEventListeners=function(){};
_.B._onKeyBindingEvent=function(){};
_.B._triggerKeyHandler=function(){};
_.B._tapHandler=function(){};
_.B._focusChanged=function(){};
_.B._detectKeyboardFocus=function(){};
_.B._userActivate=function(){};
_.B._upHandler=function(){};
_.B._spaceKeyDownHandler=function(){};
_.B._spaceKeyUpHandler=function(){};
_.B._asyncClick=function(){};
_.B._pressedChanged=function(){};
_.B._ariaActiveAttributeChanged=function(){};
_.B._activeChanged=function(){};
_.B._controlStateChanged=function(){};
_.B._changedButtonState=function(){};
_.B._focusBlurHandler=function(){};
_.B._disabledChanged=function(){};
_.B._changedControlState=function(){};
_.B._downHandler=function(){};
_.B.ensureRipple=function(){};
_.B.getRipple=function(){};
_.B.hasRipple=function(){};
_.B._noinkChanged=function(){};
_.B._focusedChanged=function(){};
_.B.registered=function(){};
_.B._invalidChanged=function(){};
_.B.hasValidator=function(){};
_.B.validate=function(){};
_.B._getValidity=function(){};
_.B._requiredChanged=function(){};
_.B._valueChanged=function(){};
_.B._checkedChanged=function(){};
_.B._buttonStateChanged=function(){};
_.B._setPressed=function(){};
_.B._setPointerDown=function(){};
_.B._setReceivedFocusFromKeyboard=function(){};
_.B._setFocused=function(){};
pnZ=_.Ne({is:"tp-yt-paper-toggle-button",_template:function(){if(stZ!==void 0)return stZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;MaN===void 0&&(MaN=document.createElement("template"));var H=MaN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return stZ=V},
behaviors:[_.QKZ],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");_.Al(this,function(){_.Jl(this,"pan-y")})},
_ontrack:function(V){V=V.detail;V.state==="start"?this._trackStart(V):V.state==="track"?this._trackMove(V):V.state==="end"&&this._trackEnd(V)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(V){V=V.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+V:V)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+V:V));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 V=OM._createRipple();V.id="ink";V.setAttribute("recenters","");V.classList.add("circle","toggle-ink");return V}});var A3a;var ura;_.Ne({_template:function(){if(ura!==void 0)return ura;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;A3a===void 0&&(A3a=document.createElement("template"));var H=A3a;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return ura=V},
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 V=_.Xb(this).parentNode,l=_.Xb(this).getOwnerRoot(),I;this.for?I=_.Xb(l).querySelector("#"+this.for):I=V.nodeType==Node.DOCUMENT_FRAGMENT_NODE?l.host:V;return I},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(V){V==="entry"?this.show():V==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Xb(this).textContent.trim()===""){for(var V=!0,l=_.Xb(this).getEffectiveChildNodes(),I=0;I<l.length;I++)if(l[I].textContent.trim()!==""){V=!1;break}if(V)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 V=this.offset;this.marginTop!=14&&this.offset==14&&(V=this.marginTop);var l=this.offsetParent.getBoundingClientRect(),I=this._target.getBoundingClientRect(),H=this.getBoundingClientRect(),T=(I.width-H.width)/2,x=(I.height-H.height)/2,n=I.left-l.left,w=I.top-l.top;switch(this.position){case "top":var N=n+T;var L=w-H.height-V;break;case "bottom":N=n+T;L=w+I.height+V;break;case "left":N=n-H.width-V;L=w+x;break;case "right":N=n+I.width+
V,L=w+x}this.fitToVisibleBounds?(l.left+N+H.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,N)+"px",this.style.right="auto"),l.top+L+H.height>window.innerHeight?(this.style.bottom=l.height+"px",this.style.top="auto"):(this.style.top=Math.max(-l.top,L)+"px",this.style.bottom="auto")):(this.style.left=N+"px",this.style.top=L+"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(V){V!==500&&this.updateStyles({"--paper-tooltip-delay-in":V+"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(V){if(V==="entry"&&this.animationEntry!=="")return this.animationEntry;if(V==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[V]&&typeof this.animationConfig[V][0].name==="string"){if(this.animationConfig[V][0].timing&&this.animationConfig[V][0].timing.delay&&this.animationConfig[V][0].timing.delay!==0){var l=this.animationConfig[V][0].timing.delay;V==="entry"?this.updateStyles({"--paper-tooltip-delay-in":l+"ms"}):V==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":l+
"ms"})}return this.animationConfig[V][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 vvB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(vvB,_.mV);var OjB=_.nd(vvB,[0,_.iQ]);var fi=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(fi,_.mV);var CQi=[3,4],aV3=[5,6];var fV3=[0,CQi,aV3,_.B4o,-1,_.mM,_.x0i,-1,lgE,Igv];var gvN=_.nd(fi,fV3),mUN=_.$n(fV3);var iji=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(iji,_.mV);var VuE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(VuE,_.mV);var lNZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(lNZ,_.mV);var INW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(INW,_.mV);var HuE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(HuE,_.mV);var gN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(gN,_.mV);gN.prototype.getSource=function(){return _.Qh(this,1)};
gN.prototype.getMessage=function(){return _.Rt(this,4)};
gN.prototype.getData=function(){return _.fA(this,HuE,8)};var TUo=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(TUo,_.mV);var mk=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(mk,_.mV);var iW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(iW,_.mV);var VX=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(VX,_.mV);VX.prototype.getUrl=function(){return _.Rt(this,1)};
VX.prototype.setUrl=function(V){return _.Fm(this,1,V)};
VX.prototype.hasUrl=function(){return _.KS(this,1)!=null};var BUb=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(BUb,_.mV);var xaB=[3];var Ua0=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Ua0,_.mV);var lF=function(V){var l=new Ua0;return _.gm(l,2,V)};
Ua0.prototype.getLanguage=function(){return Wn(this,4,IG)};
var nDa=function(V){var l=lF(1);return _.Yn(l,6,IG,V)},IG=[3,
4,5,6];var $ab=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t($ab,_.mV);var Hq=function(V){var l=new $ab;return _.gm(l,1,V)},Tj=function(V,l){return _.Yn(V,2,daZ,l)},daZ=[2,
3,4,5];var wiJ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(wiJ,_.mV);var Bq=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Bq,_.mV);var NUo=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(NUo,_.mV);var KJZ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(KJZ,_.mV);var jk0=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(jk0,_.mV);var YYb=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(YYb,_.mV);var xU=function(V){return _.fA(V,iW,5)};var LJ3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(LJ3,_.mV);LJ3.prototype.getValue=function(){return ZV(this,1)};var eK3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(eK3,_.mV);var Ud=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Ud,_.mV);Ud.prototype.getMetadata=function(){return _.bQ(this,KJZ,7,n7)};
Ud.prototype.hasMetadata=function(){return _.zp(this,KJZ,7,n7)};
var keZ=_.EnT(Ud),n7=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var $U=function(V){this.JSC$9772_name_=V;this.files_=[];this.directories_=[];this.directoryMap_={}};
$U.prototype.getName=function(){return this.JSC$9772_name_};var wt=function(V,l){this.callback_=l;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new $U("");FJN(this,V,this.rootDirectory_);dt(this)},FJN=function(V,l,I){for(var H=0;H<l.length;H++){var T=l[H];
T.isFile?(V.fileOps_++,T.file((0,_.zN)(V.handleFileSuccess_,V,I),(0,_.zN)(V.handleFileError_,V))):V.unscannedDirectories_.push(new XiB(T,I))}},dt=function(V){if(V.unscannedDirectories_.length>0&&V.directoryOps_<5&&!V.hasError_){V.directoryOps_++;
var l=V.unscannedDirectories_.shift(),I=l.entry,H=new $U(I.name);l=l.parent;l.directoryMap_[H.getName()]=H;l.directories_.push(H);I=I.createReader();I.readEntries((0,_.zN)(V.handleDirectorySuccess_,V,I,H),(0,_.zN)(V.handleDirectoryError_,V))}V.directoryOps_!=0||V.fileOps_!=0||V.unscannedDirectories_.length!=0&&!V.hasError_||V.callback_(V.rootDirectory_.files_,V.rootDirectory_.directories_,V.hasError_)};
wt.prototype.handleDirectorySuccess_=function(V,l,I){FJN(this,I,l);I.length==0?(this.directoryOps_--,dt(this)):V.readEntries((0,_.zN)(this.handleDirectorySuccess_,this,V,l),(0,_.zN)(this.handleDirectoryError_,this))};
wt.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;dt(this)};
wt.prototype.handleFileSuccess_=function(V,l){V.files_.push(l);this.fileOps_--;dt(this)};
wt.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;dt(this)};
var XiB=function(V,l){this.entry=V;this.parent=l};var N$=function(V){_.tm.call(this);_.NR(V,"drop",this.onObjectsDropped_,!1,this);_.NR(V,"dragenter",this.onFilesDragged_,!1,this);_.NR(V,"dragover",this.onFilesDragged_,!1,this);_.NR(V,"dragleave",this.onDragLeave_,!1,this);_.NR(V,"dragend",this.onDragLeave_,!1,this)};
_.Uk(N$,_.tm);var zKE=function(V,l){_.kL.call(this,"f");this.files=V;this.directories=l};
_.Uk(zKE,_.kL);var yPa=function(){_.kL.call(this,"h")};
_.Uk(yPa,_.kL);var tuv=function(){_.kL.call(this,"i")};
_.Uk(tuv,_.kL);var rP0=function(){_.kL.call(this,"g")};
_.Uk(rP0,_.kL);N$.prototype.onObjectsDropped_=function(V){var l=this;V.preventDefault();var I=V.event_.dataTransfer;if((V=I&&I.items)&&V.length>0&&V[0].webkitGetAsEntry){I=[];for(var H=[],T=0;T<V.length;T++){var x=V[T].webkitGetAsEntry();x?I.push(x):H.push(V[T])}new wt(I,function(n,w,N){N?l.dispatchEvent(new rP0("Error occurred while reading from the file system.")):l.dispatchEvent(new zKE(n,w,H))})}else(V=I&&I.files)&&this.dispatchEvent(new zKE(Array.from(V),[]))};
N$.prototype.onFilesDragged_=function(V){V.type==="dragenter"&&this.dispatchEvent(new yPa);V.preventDefault()};
N$.prototype.onDragLeave_=function(){this.dispatchEvent(new tuv)};var GeJ=function(V,l){this.JSC$9795_name_=V;this.inputElement_=l};
GeJ.prototype.getName=function(){return this.JSC$9795_name_};
GeJ.prototype.getInputElement=function(){return this.inputElement_};var K7=function(V,l,I){l=l===void 0?"single_file":l;I=I===void 0?[]:I;_.tm.call(this);this.overlayTarget_=V;this.parentOverlay_=V!=null?V.parentNode:_.jk("scotty-overlay-parent");this.selectorType_=l;this.acceptTypes_=I;this.overlay_=EDa(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.t(K7,_.tm);
var EDa=function(V,l,I,H){var T=document.createElement("input");T.setAttribute("type","file");T.setAttribute("name","Filedata");_.NR(T,"change",V.onFilesSelected_,!1,V);I==="multiple_file"&&(T.multiple="true");I==="single_directory"&&(T.webkitdirectory="true");H.length>0&&T.setAttribute("accept",H.join(","));T.style.position="absolute";T.style.overflow="hidden";T.style.height="0px";T.style.width="0px";T.style.opacity="0";T.setAttribute("aria-hidden","true");T.setAttribute("tabIndex",-1);if(V.overlayTarget_!=
null)return T.style.height=l.offsetHeight+"px",T.style.width=l.offsetWidth+"px",V.parentOverlay_&&(V.parentOverlay_.style.position="relative"),_.b_(T,l),u_(T,new _.og(l.offsetLeft,l.offsetTop)),T;V.parentOverlay_.appendChild(T);return T};
K7.prototype.click=function(){this.overlay_.click()};
K7.prototype.onFilesSelected_=function(V){a:{try{var l=(new XMLHttpRequest).upload!==void 0;break a}catch(L){}l=!1}if(l){var I;V=Array.from((I=V.target.files)!=null?I:[]);I=[];if(this.selectorType_==="single_directory"&&(_.ja||_.Ml||_.Kj)){I=new $U("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(l=0;l<V.length;l++)for(var H=V[l],T=H.webkitRelativePath.split("/"),x=I,n=0;n<T.length;n++){var w=T[n];if(n==T.length-1){w!="."&&x.files_.push(H);break}var N=x.directoryMap_[w];N==void 0&&(w=
N=new $U(w),x.directoryMap_[w.getName()]=w,x.directories_.push(w));x=N}I=I.directories_}this.dispatchEvent(new JP3(V,I,null))}else V=V.target.value,V.match(/^c:\\fakepath\\/i)&&(V=V.substring(12)),this.dispatchEvent(new JP3([],[],new GeJ(V,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=EDa(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var JP3=function(V,l){_.kL.call(this,"j");this.files=V;this.directories=l};
_.t(JP3,_.kL);var oDE=function(V){this.uploadUrl_=V};var hKb=function(){_.tm.call(this)};
_.Uk(hKb,_.tm);var jK=function(V){_.kL.call(this,V)};
_.Uk(jK,_.kL);var YU=function(V){_.kL.call(this,V)};
_.Uk(YU,_.kL);var P_B=function(V,l,I,H,T){_.tm.call(this);I=document.createElement("form");I.setAttribute("method",l);I.setAttribute("enctype","multipart/form-data");I.setAttribute("encoding","multipart/form-data");l=document.createElement("input");l.setAttribute("type","hidden");l.setAttribute("name","metadata");l.setAttribute("value",T);I.appendChild(l);I.appendChild(H);this.JSC$9812_form_=I;V=new _.OA(V);_.qx(V,"upload_protocol","multipart");this.JSC$9812_url_=V.toString();this.JSC$9812_request_=new lW;this.state_=
"Ready";this.JSC$9812_errorDescription_=null;this.JSC$9812_eventHandler_=new _.ig(this);_.$w(this,this.JSC$9812_eventHandler_);this.JSC$9812_eventHandler_.listen(this.JSC$9812_request_,"success",this.onTransferSuccess_);this.JSC$9812_eventHandler_.listen(this.JSC$9812_request_,"error",this.onTransferError_)};
_.t(P_B,hKb);_.B=P_B.prototype;_.B.run=function(){this.state_="Transferring";var V=this.JSC$9812_request_,l=this.JSC$9812_form_;if(V.JSC$9236_active_)throw Error("qe");var I=new _.OA(this.JSC$9812_url_||l.action);V.JSC$9236_form_=l;l=V.JSC$9236_form_;I=_.Wh(I.toString());I!==void 0&&(l.action=I);Bqb(V)};
_.B.getResponseCode=function(){return null};
_.B.getResponseText=function(){return this.JSC$9812_request_&&this.JSC$9812_request_.getResponseText()||null};
_.B.JSC$25590_getErrorDescription=function(){return this.JSC$9812_errorDescription_};
_.B.cancel=function(){this.JSC$9812_request_&&this.JSC$9812_request_.abort();this.state_="Cancelled";this.dispatchEvent(new jK("o"))};
_.B.pause=function(){};
_.B.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new jK("l"))};
_.B.onTransferError_=function(){this.JSC$9812_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new jK("n"))};var L7=function(){_.Dx.call(this)};
_.t(L7,_.Dx);L7.prototype.createXhr=function(){var V=_.Dx.prototype.createXhr.call(this);V.upload&&(V.upload.onprogress=(0,_.zN)(this.onProgress_,this));return V};
L7.prototype.onProgress_=function(V){this.dispatchEvent(V)};var Dab=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},SYN=function(V,l){var I=V.attempt_+1;
if(V.maxAttempts_>0&&I>V.maxAttempts_)return!1;I==0?l():V.delayCallId_=om(function(){V.delayCallId_=null;l()},ZuZ(V),V);
V.attempt_=I;return!0};
Dab.prototype.reset=function(){this.delayCallId_&&_.nK.clearTimeout(this.delayCallId_);this.attempt_=-1};
var ZuZ=function(V){var l=250*Math.pow(2,V.attempt_);V.maxDelayMs_>=0&&(l=Math.min(l,V.maxDelayMs_));return l};var ENN=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var eK=function(){_.tm.call(this);this.JSC$9822_request_=this.state_=null;this.JSC$9822_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9822_bytesTransferred_=0;this.retryIterator_=new Dab;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9822_errorDescription_=null;this.JSC$9822_eventHandler_=new _.ig(this);_.$w(this,this.JSC$9822_eventHandler_);this.JSC$9822_url_=this.blob_=null;this.JSC$9822_method_=void 0;this.chunkSize_=this.JSC$9822_metadata_=
this.JSC$9822_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9822_responseText_=this.JSC$9822_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Uk(eK,hKb);_.B=eK.prototype;_.B.run=function(){kU(this)};
_.B.getResponseCode=function(){return this.JSC$9822_responseCode_};
_.B.getResponseText=function(){return this.JSC$9822_responseText_};
_.B.JSC$25590_getErrorDescription=function(){return this.JSC$9822_errorDescription_};
_.B.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9822_eventHandler_.removeAll();this.JSC$9822_request_&&this.JSC$9822_request_.abort();this.retryIterator_.reset();var V=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(V==="Upload"||V==="Query")V=new L7,V.JSC$7662_withCredentials_=this.JSC$9822_withCredentials_,V.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9822_bytesTransferred_=
0;this.dispatchEvent(new jK("o"))}};
_.B.pause=function(){this.pauseRequested_=!0};
var kU=function(V){var l=V.state_;V.pauseRequested_?(V.pauseRequested_=!1,V.stateAfterUnpausing_=l,V.state_="Paused"):SYN(V.retryIterator_,function(){switch(V.state_){case "Start":V.JSC$9822_request_=new L7;var I=_.EL.clone(V.JSC$9822_headers_);V.blob_.size!=null&&(I["Content-Length"]=V.blob_.size);I=JuN(I);I["X-Goog-Upload-Protocol"]="resumable";I["X-Goog-Upload-Command"]="start";V.JSC$9822_eventHandler_.removeAll();V.JSC$9822_eventHandler_.listen(V.JSC$9822_request_,"complete",V.onStartComplete_);
V.JSC$9822_request_.JSC$7662_withCredentials_=V.JSC$9822_withCredentials_;V.JSC$9822_request_.send(V.JSC$9822_url_,V.JSC$9822_method_,V.JSC$9822_metadata_,I);V.lastCommandResponseCode_=null;V.dispatchEvent(new YU("q"));break;case "Upload":I=V.transferHandle_.uploadUrl_;var H=V.blob_.size;if(m4w()){var T=V.chunkSize_;var x=V.offset_+T>=H;H=gl0(V.blob_,V.offset_,x?H:V.offset_+T)}else V.offset_=0,H=V.blob_,x=!0;V.JSC$9822_request_=new L7;V.JSC$9822_request_.JSC$7662_withCredentials_=V.JSC$9822_withCredentials_;
V.JSC$9822_eventHandler_.removeAll();V.JSC$9822_eventHandler_.listen(V.JSC$9822_request_,"progress",V.onUploadProgress_);T=(0,_.zN)(V.JSC$9824_onUploadComplete_,V,V.offset_+H.size,x);V.JSC$9822_eventHandler_.listen(V.JSC$9822_request_,"complete",T);V.lastCommandResponseCode_=null;V.dispatchEvent(new YU("q"));x=Object.assign({},V.JSC$9822_headers_||{},{"X-Goog-Upload-Command":"upload"+(x?", finalize":""),"X-Goog-Upload-Offset":V.offset_});V.JSC$9822_request_.send(I,"POST",H,x);break;case "Query":V.JSC$9822_request_=
new L7;V.JSC$9822_eventHandler_.removeAll();V.JSC$9822_eventHandler_.listen(V.JSC$9822_request_,"complete",V.onQueryComplete_);I=Object.assign({},V.JSC$9822_headers_||{},{"X-Goog-Upload-Command":"query"});V.JSC$9822_request_.send(V.transferHandle_.uploadUrl_,"POST","",I);V.lastCommandResponseCode_=null;V.dispatchEvent(new YU("q"));break;default:throw Error("ff");}})||Fe(V,"Transfer encountered too many consecutive failures.")},Fe=function(V,l){V.state_="Error";
V.JSC$9822_errorDescription_=l;V.dispatchEvent(new jK("n"))};
eK.prototype.onStartComplete_=function(V){var l=V.target;this.lastCommandResponseCode_=l.getStatus();this.dispatchEvent(new YU("r"));if(RKN(l))QkE(this,l);else if(cPE(l)){V=AK(V.target.getAllResponseHeaders());for(var I in V)_.Nq(I.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new jK("m"));I=yM(V,"X-Goog-Upload-URL");V=(V=yM(V,"X-Goog-Upload-Chunk-Granularity"))?parseInt(V,10):1;I===void 0||isNaN(V)||V<=0?Fe(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
V)*V,this.transferHandle_=new oDE(I),this.dispatchEvent(new jK("p")),this.state_="Upload",this.retryIterator_.reset(),kU(this))}else kU(this)};
eK.prototype.onUploadProgress_=function(V){this.JSC$9822_bytesTransferred_=this.offset_+V.loaded;this.dispatchEvent(new jK("k"))};
eK.prototype.JSC$9824_onUploadComplete_=function(V,l,I){var H=this,T,x;return _.d(function(n){switch(n.nextAddress){case 1:T=I.target;H.lastCommandResponseCode_=T.getStatus();H.dispatchEvent(new YU("r"));if(WJW(T)||T.getStatus()==404)return H.JSC$9822_bytesTransferred_=V,QkE(H,T),n.return();if(cPE(T)){n.jumpTo(2);break}if(!(x=H.detectCorruptedBlobEnabled_)){n.jumpTo(3);break}return _.K(n,bua(H),4);case 4:x=n.yieldResult;case 3:if(x)return Fe(H,"Blob has been modified or corrupted."),n.return();H.requireUploadRequestModification_=
T.getStatus()==400;H.state_="Query";kU(H);return n.return();case 2:if(l)return Fe(H,"Got a non-final success response after issuing a finalize command."),n.return();H.JSC$9822_bytesTransferred_=V;H.offset_=V;H.retryIterator_.reset();kU(H);return n.return()}})};
eK.prototype.onQueryComplete_=function(V){var l=V.target;this.lastCommandResponseCode_=l.getStatus();this.dispatchEvent(new YU("r"));RKN(l)?(l.getStatus()===200&&(this.JSC$9822_bytesTransferred_=this.blob_.size),QkE(this,l)):cPE(l)?(V=AK(V.target.getAllResponseHeaders()),V=parseInt(yM(V,"X-Goog-Upload-Size-Received"),10),isNaN(V)?Fe(this,"Server did not respond with current offset."):V<this.offset_?Fe(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
V+"."):this.requireUploadRequestModification_&&this.offset_===V?Fe(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<V&&this.retryIterator_.reset(),this.offset_=this.JSC$9822_bytesTransferred_=V,this.state_="Upload",kU(this))):kU(this)};
var QkE=function(V,l){V.JSC$9822_responseCode_=l.getStatus();var I=AK(l.getAllResponseHeaders());oNq(I);V.JSC$9822_responseText_=l.getResponseText();V.state_="Response received";V.dispatchEvent(new jK("l"))},cPE=function(V){var l=V.getStatus();
V=AK(V.getAllResponseHeaders());V=yM(V,"X-Goog-Upload-Status");return l===200&&V==="active"},WJW=function(V){V=AK(V.getAllResponseHeaders());
return yM(V,"X-Goog-Upload-Status")==="final"},RKN=function(V){if(WJW(V))return!0;
V=V.getStatus();return V>=400&&V<500},bua=function(V){var l;
return _.d(function(I){if(I.nextAddress==1){if(!V.blob_||V.originalBlobSize_<=0)return I.return(!1);if(V.blob_.size!==V.originalBlobSize_)return I.return(!0);_.jd(I,2);if(l=gl0(V.blob_,0,1)){var H=new bc,T=zeZ(H);H.reader_.readAsBinaryString(l);I=_.K(I,T,4)}else I=I.return(!0);return I}if(I.nextAddress!=2)return I.return(V.blob_.size!==V.originalBlobSize_);_.kE(I);return I.return(!0)})};var qYW=function(V,l,I,H,T,x){_.tm.call(this);this.payload_=H;this.JSC$9825_url_=V;this.JSC$9825_method_=l;this.JSC$9825_headers_=I;this.JSC$9825_metadata_=T;this.encoding_=x||"binary";V=new _.rQ;this.boundary_="uploader-"+cv()+"-"+V.JSC$9085_toIsoString();this.JSC$9825_responseText_=this.JSC$9825_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9825_errorDescription_=null;this.JSC$9825_eventHandler_=new _.ig(this);_.$w(this,this.JSC$9825_eventHandler_)};
_.t(qYW,hKb);_.B=qYW.prototype;
_.B.run=function(){var V=_.EL.clone(this.JSC$9825_headers_);this.payload_.length!=null&&(V["Content-Length"]=this.payload_.length);V=JuN(V);V["X-Goog-Upload-Protocol"]="multipart";V["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new L7;this.JSC$9825_eventHandler_.removeAll();this.JSC$9825_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9825_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9825_url_,this.JSC$9825_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9825_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",V)};
_.B.getResponseCode=function(){return this.JSC$9825_responseCode_};
_.B.getResponseText=function(){return this.JSC$9825_responseText_};
_.B.JSC$25590_getErrorDescription=function(){return this.JSC$9825_errorDescription_};
_.B.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9825_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new jK("o")))};
_.B.pause=function(){};
_.B.onTransferProgress_=function(){this.dispatchEvent(new jK("k"))};
_.B.onTransferComplete_=function(V){var l=V.target.getStatus();l===void 0||l===-1?(this.JSC$9825_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new jK("n"))):(this.JSC$9825_responseCode_=l,V=V.target,l=AK(V.getAllResponseHeaders()),oNq(l),this.JSC$9825_responseText_=V.getResponseText(),this.state_="Complete",this.dispatchEvent(new jK("l")))};_.Mui=function(V,l,I,H){H=H===void 0?!1:H;if(I instanceof GeJ)return new P_B(V,"POST",l,I.getInputElement(),"");if(typeof I==="string"||I instanceof String)return new qYW(V,"POST",l,I,"");var T=new eK(void 0);T.JSC$9822_url_=V;T.JSC$9822_method_="POST";T.JSC$9822_headers_=l;T.blob_=I;T.originalBlobSize_=I.size;T.JSC$9822_metadata_="";H&&(T.JSC$9822_withCredentials_=H);T.state_="Start";return T};var Xe=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Xe,_.mV);_.B=Xe.prototype;_.B.getEnableSsEngine=function(){return _.DV(this,2)};
_.B.getEnableAwr=function(){return _.DV(this,3)};
_.B.getAlohaAutoGaRollout=function(){return _.DV(this,5)};
_.B.getEnableConfigurator=function(){return _.DV(this,6)};
_.B.getEnableMweb=function(){return _.DV(this,7)};
var piw=function(){var V=skN();return _.rS(V,7,!0)};
Xe.prototype.getEnableCtlConsentCheckbox=function(){return _.DV(this,8)};
Xe.prototype.getEnableIframe=function(){return _.DV(this,9)};
var skN=function(){var V=new Xe;V=_.rS(V,5,!0);V=_.rS(V,2,!0);V=_.rS(V,4,!1);V=_.rS(V,8,!0);return _.rS(V,9,!0)};
Xe.prototype.getEnableScreenshotNudge=function(){return _.DV(this,10)};
var APJ=function(){var V=piw();return _.rS(V,10,!0)};
Xe.prototype.getEnableWebStartupConfigEndpoint=function(){return _.DV(this,11)};
Xe.prototype.getEnableJunkNudge=function(){return _.DV(this,12)};
var vNK=function(){var V=APJ();return _.rS(V,12,!0)};
_.B=Xe.prototype;_.B.getEnableConfiguratorLocale=function(){return _.DV(this,13)};
_.B.getEnableTinyNoPointer=function(){return _.DV(this,14)};
_.B.getEnableSupportSessionLogging=function(){return _.DV(this,15)};
_.B.getEnableFileUploadForScreenshot=function(){return _.DV(this,16)};
_.B.getEnableDirectDeflectionForSingleCategory=function(){return _.DV(this,17)};
_.B.getEnableImageSanitization=function(){return _.DV(this,18)};
_.B.getEnableAlohaBinarySplit=function(){return _.DV(this,19)};
_.B.getEnableDbFeedbackIntents=function(){return _.DV(this,20)};
_.B.getEnableMarkMandatoryFieldsWithRequired=function(){return _.DV(this,21)};
_.B.getEnableFeedbackCategoryCustomUi=function(){return _.DV(this,22)};
_.B.getEnableRealtimeCtl=function(){return _.DV(this,23)};var uFT=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(uFT,_.mV);var hXt=[/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 D_t="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 ZHw=_.fl(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),SOT=_.fl(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var QBW,WRN;var uXE,vDv;
uXE=function(V,l,I){V.timeOfStartCall=(new Date).getTime();var H=I||_.nK,T=H.document,x=V.nonce||_.vh(H.document);x&&!V.nonce&&(V.nonce=x);if(V.flow=="help"){var n=_.SN("document.location.href",H);!V.helpCenterContext&&n&&(V.helpCenterContext=n.substring(0,1200));n=!0;if(l&&JSON&&JSON.stringify){var w=JSON.stringify(l);(n=w.length<=1200)&&(V.psdJson=w)}n||(l={invalidPsd:!0})}l=[V,l,I];H.GOOGLE_FEEDBACK_START_ARGUMENTS=l;I=V.feedbackServerUri||"//www.google.com/tools/feedback";if(n=H.GOOGLE_FEEDBACK_START)n.apply(H,l);
else{H=I+"/load.js?";for(var N in V)l=V[N],l==null||_.m3(l)||(H+=encodeURIComponent(N)+"="+encodeURIComponent(l)+"&");V=kp(T).createElement("SCRIPT");x&&V.setAttribute("nonce",x);_.gp(V,_.Xj(H));T.body.appendChild(V)}};
vDv=function(V,l,I,H){var T,x;_.d(function(n){T=I||_.nK;var w=V.serverEnvironment==="DEV",N=I||_.nK;N=V.nonce||_.vh(N.document);w={integrationKeys:{productId:V.productId,feedbackBucket:V.bucket,triggerId:V.triggerId},callbacks:{onClose:V.callback,onLoad:V.onLoadCallback},formContent:{locale:V.locale,disableScreenshot:V.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:V.abuseLink,additionalDataConsent:V.additionalDataConsent},initializationData:{isLocalServer:w,nonce:N,useNightlyRelease:w,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:V.feedbackServerUri,colorScheme:V.colorScheme},extraData:{productVersion:V.productVersion,authUser:V.authuser,configuratorId:V.configuratorId,customZIndex:V.customZIndex,tinyNoPointer:V.tinyNoPointer,
allowNonLoggedInFeedback:V.allowNonLoggedInFeedback,enableAnonymousFeedback:V.enableAnonymousFeedback}};l&&(N=new Map(Object.entries(l)),w.extraData.productSpecificData=N);x=w;return _.K(n,sBN(x,H,T),0)})};
_.Oub=function(V,l,I){try{if(V.flow==="help"){var H=V.helpCenterPath.replace(/^\//,"");_.uY(I||window,"https://support.google.com/"+H)}else V.flow==="submit"?uXE(V,l,I):OHt(V.productId,V.feedbackServerUri).then(function(T){T=_.fA(T,Xe,1);var x=!tr1||(T==null?void 0:T.getEnableMweb()),n=!V.tinyNoPointer||(T==null?void 0:T.getEnableTinyNoPointer());!T||T.getAlohaAutoGaRollout()&&x&&n?vDv(V,l,I,T):uXE(V,l,I)},function(T){T&&T.name!=="DuplicateFormError"&&uXE(V,l,I)})}catch(T){vDv(V,l,I,null)}};
_.Aq("userfeedback.api.startFeedback",_.Oub);var Cnq=/https?:\/\/\S+\.\S+/,a4f=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],f4T=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var XP1=function(V){var l=V.split(""),I=[-263237435,15,l,function(H,T,x){var n=T.length;x.forEach(function(w,N,L){this.push(L[N]=T[(T.indexOf(w)-T.indexOf(this[N])+N+n--)%T.length])},H.split(""))},
function(H,T){H=(H%T.length+T.length)%T.length;T.splice(-H).reverse().forEach(function(x){T.unshift(x)})},
"response",function(){for(var H=64,T=[];++H-T.length-32;){switch(H){case 58:H-=14;case 91:case 92:case 93:continue;case 123:H=47;case 94:case 95:case 96:continue;case 46:H=95}T.push(String.fromCharCode(H))}return T},
null,12,1540023973,65941107,null,l,function(H,T){for(H=(H%T.length+T.length)%T.length;H--;)T.unshift(T.pop())},
695603893,function(H){for(var T=H.length;T;)H.push(H.splice(--T,1)[0])},
"'[;'[(",function(H,T){H.push(T)},
null,function(H,T,x,n,w){return T(x,n,w)},
"continuation",l,function(H,T){if(H.length!=0){T=(T%H.length+H.length)%H.length;var x=H[0];H[0]=H[T];H[T]=x}},
function(){for(var H=64,T=[];++H-T.length-32;){switch(H){case 91:H=44;continue;case 123:H=65;break;case 65:H-=18;continue;case 58:H=96;continue;case 46:H=95}T.push(String.fromCharCode(H))}return T},
'"),/]];'];I[7]=I;I[11]=I;I[18]=I;try{(((0,I[15])(I[21]),I[22])(I[11],I[9]),I[22])(I[new Date("1970-01-01T04:30:12.000+04:30")/1E3],I[1]),((0,I[22])(I[11],I[23]),I[4])(I[10],I[18]),(0,I[20])(I[21],I[14])<<(0,I[17])(I[18],I[1]),(0,I[4])(I[8],I[21]),(0,I[19])((0,I[19])((0,I[17])(I[7],I[9]),I[3],I[20],(0,I[6])(),I[2]),I[3],I[5],(0,I[15])(),I[2])}catch(H){return"aTlOUOubTO4AP____8P_"+V}return l.join("")};_.C_v=new _.f("runAttestationCommand");var aNw=new _.f("verifyCommand");_.uP=new _.f("accessibilityContext");var fNJ=new _.f("accessibilityData");var gDZ=new _.f("profileCardCommand");var z9J=new _.f("signInEndpoint");var XZN=new _.f("signOutEndpoint");var iuE;_.mao=new _.f("accountItemSectionRenderer");iuE=new _.f("accountItemRenderer");_.V3a=new _.f("saveCommandToSessionStorageAction");var lxa=new _.f("crossAccountChannelTransferEndpoint");var knW=new _.f("getAccountMenuEndpoint");_.FyJ=new _.f("getAccountSwitcherEndpoint");var e$N=new _.f("getAccountsListEndpoint");var IxJ=new _.f("getAccountsListInnertubeEndpoint");_.Hgw=new _.f("addToToastAction");var TRZ=new _.f("hideEnclosingAction");_.zj=new _.f("replaceEnclosingAction");_.BRN=new _.f("buttonRefreshAction");var xIw=new _.f("adsControlFlowOpportunityReceivedCommand");var UIw=new _.f("openAdAllowlistInstructionCommand");var nLB=new _.f("videoMastheadAdPrimaryVideoRenderer");var $I3=new _.f("displayAdRenderer");var T9t=new _.f("instreamVideoAdRenderer");_.dIZ=new _.f("inFeedAdLayoutRenderer");var wHi=new _.f("sequenceItemInPlayerAdLayoutRenderer");_.NRv=new _.f("adSlotRenderer");var KCv=new _.f("adAvatarViewModel");var jm0=new _.f("adBadgeViewModel");var YRN=new _.f("adButtonViewModel");var yX=new _.f("adImageViewModel");var GzJ=new _.f("reelsAdCardButtonedViewModel");var LCN=new _.f("reelsPlayerOverlayLayoutViewModel");var eqv=new _.f("showSchedulingPanelCommand");var k1B=new _.f("backstageCommentsRenderer");var FCN=new _.f("backstageImageRenderer");var XHN=new _.f("backstagePostRenderer");var zqN=new _.f("postRenderer");var ymN=new _.f("sharedPostRenderer");var t3i=new _.f("createBackstagePostEndpoint");var rm3=new _.f("getPostVideoPreviewEndpoint");var G1W=new _.f("updateBackstagePostEndpoint");var EL0=new _.f("filterChipTransformCommand");var JmZ=new _.f("insertRichSectionCommand");var Vet=new _.f("talkToRecsDeselectCommand");var oLi=new _.f("talkToRecsNextCommand");var icW=new _.f("talkToRecsSelectCommand");var hq0=new _.f("talkToRecsUpdateTextCommand");_.$V=new _.f("browseEndpoint");_.PUB=new _.f("confirmDialogEndpoint");var DIv=new _.f("expandOnHoverCardRenderer");var Zg3=new _.f("lumiereShelfDetailsRenderer");var SRZ=new _.f("revealBusinessEmailCommand");var RqJ=new _.f("validateChannelHandleCommand");var Qm3=new _.f("channelCreationFormEndpoint");var cmE=new _.f("aboutChannelViewModel");var WCv=new _.f("channelThumbnailWithLinkRenderer");var bgN=new _.f("channelCreationServiceEndpoint");var qRb=new _.f("updateChannelPageSettingsEndpoint");var tr=function(V){this.delegate=V},rt=function(){tr.apply(this,arguments)};
_.t(rt,tr);_.vI.Object.defineProperties(rt.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(V){this.delegate.entityMetadata=V}}});var M3Z=function(){rt.apply(this,arguments)};
_.t(M3Z,rt);M3Z.prototype.getAssociations=function(){return[]};var EuK=new _.f("webThumbnailDetailsExtensionData");var hOK=new _.f("commandContext");var smZ=new _.f("addVideoLinkAction");var pHb=new _.f("createPollAction");var AmZ=new _.f("hideIdentityChipAction");var utJ=new _.f("openUpdateCommentDialogAction");var Gj=new _.f("updateBackstagePollAction");var vLW=new _.f("updateCommentVoteAction");var OgJ=new _.f("commentThreadRenderer");var CUJ=function(){rt.apply(this,arguments)};
_.t(CUJ,rt);CUJ.prototype.getAssociations=function(){return[]};_.axa=new _.f("commentDialogRenderer");var fx0=new _.f("updateCommentsSettingsEndpoint");var gLw=new _.f("commentViewModel");var mIE=new _.f("triStateButtonViewModel");var igZ=new _.f("voiceReplyContainerViewModel");_.NJ=new _.f("commandExecutorCommand");var Xo=new _.f("emoji");var VTi=new _.f("updateCreatorChannelInnertubeCommand");_.l4a=new _.f("appendContinuationItemsAction");_.I4W=new _.f("changeEngagementPanelVisibilityAction");_.Ex=new _.f("continuationCommand");var HHE=new _.f("hideReportedCommentAction");var TYB=new _.f("listMutationCommand");_.Ed=new _.f("openPopupAction");var NYJ;_.BYN=new _.f("playlistRemoveVideosAction");_.x_i=new _.f("updatePlaylistAction");_.U_Z=new _.f("addToPlaylistCommand");_.nNJ=new _.f("endPlaylistCommand");_.$_3=new _.f("recoverPlaylistCommand");_.d_3=new _.f("refreshPlaylistCommand");_.w_3=new _.f("refreshFormCommand");NYJ=new _.f("openOnePickAddVideoModalCommand");_.Gnt=new _.f("reloadContinuationItemsCommand");_.KRi=new _.f("scrollToEngagementPanelCommand");var jBB=new _.f("showReloadUiCommand");var YOZ=new _.f("undoFeedbackAction");var LRJ=new _.f("updateButtonAction");var O$q=new _.f("updateSubscribeButtonAction");var eXw=new _.f("updateToggleAction");_.mK=new _.f("webCommandMetadata");_.Jr=new _.f("webHandleServiceEndpointExtension");var XC3=new _.f("webNavigationEndpointData");var kdo=new _.f("copyLinkCommand");var FRN=new _.f("playlistVotingRefreshPopupCommand");var X_W=new _.f("selectChipCommand");var zX0=new _.f("setCookieCommand");var yuB=new _.f("setLocalStorageCommand");var tTN=new _.f("setPrefStorageEntryCommand");var JuZ;_.ruN=new _.f("settingsUpdateCheckboxCommand");_.Gdw=new _.f("settingsUpdateTextCommand");_.ENZ=new _.f("settingsUpdateOptionsCommand");JuZ=new _.f("settingsUpdateSwitchCommand");_.oNN=new _.f("settingsUpdateConnectedAppRendererCommand");var hXN=new _.f("updateTextInputFormFieldRendererCommand");var Pnv=new _.f("updateToggleButtonStateCommand");var D_N=new _.f("updateUrlParamCommand");var ZHE=new _.f("webSubmitFormCommand");var SOJ=new _.f("channelSwitcherPageRenderer"),RXb=new _.f("updateChannelSwitcherPageAction");_.nl=new _.f("continuationItemRenderer");_.oG=new _.f("richItemRenderer");var QBb=new _.f("richSectionRenderer");_.cuZ=new _.f("richShelfRenderer");_.WRZ=new _.f("metadataBadgeRenderer");_.bHB=new _.f("multiPageMenuNotificationSectionRenderer");_.qON=new _.f("playlistLoopButtonStateRenderer");var MTZ=new _.f("claimLegacyYoutubeChannelEndpoint");var sBZ=new _.f("getNotificationMenuEndpoint");var p_b=new _.f("getSearchInVideoCommand");_.AuW=new _.f("getTranscriptEndpoint");_.j1=new _.f("signalServiceEndpoint");var uFJ=new _.f("verifyAgeEndpoint");var tmt=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(tmt,_.mV);tmt.prototype.getPath=function(){return _.Rt(this,1)};
tmt.prototype.getValue=function(){return _.Rt(this,2)};var vNZ=[0,_.fj,-1];var OHN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(OHN,_.mV);var yAg=_.nd(OHN,[0,_.gl,vNZ]);var CnN=new _.f("dismissalEndpoint");var a4a=new _.f("elementsCommand");_.yI=new _.f("innertubeCommand");var f4J=new _.f("multipleInlinePlaybackCommand");var HxW=new _.f("loggingDirectives");var OhW={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 gNb=new _.f("acknowledgeChannelTouStrikeCommand");var m_B=function(){rt.apply(this,arguments)};
_.t(m_B,rt);m_B.prototype.getAssociations=function(){return[]};var iHB=function(){rt.apply(this,arguments)};
_.t(iHB,rt);iHB.prototype.getAssociations=function(){return[]};var Wu=new _.f("entityBatchUpdate");_.VJN=new _.f("entityUpdateCommand");var lj0=function(){rt.apply(this,arguments)};
_.t(lj0,rt);lj0.prototype.getAssociations=function(){var V=[];this.delegate.alternateChannel&&V.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&V.push.apply(V,_.oI(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&V.push(this.delegate.oneofChannelEntity);return[].concat(_.oI(new Set(V)))};var IjB=function(){rt.apply(this,arguments)};
_.t(IjB,rt);IjB.prototype.getAssociations=function(){var V=[];this.delegate.entryCollection&&V.push(this.delegate.entryCollection);return[].concat(_.oI(new Set(V)))};
var HhN=function(){rt.apply(this,arguments)};
_.t(HhN,rt);HhN.prototype.getAssociations=function(){var V=[];this.delegate.parentPlaylist&&V.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var l=_.U(this.delegate.entries),I=l.next();!I.done;I=l.next())V.push.apply(V,_.oI((new T30(I.value)).getAssociations()));return[].concat(_.oI(new Set(V)))};
var T30=function(){tr.apply(this,arguments)};
_.t(T30,tr);T30.prototype.getAssociations=function(){var V=[];this.delegate.video&&V.push(this.delegate.video);return[].concat(_.oI(new Set(V)))};var B3Z=function(){rt.apply(this,arguments)};
_.t(B3Z,rt);B3Z.prototype.getAssociations=function(){var V=[];this.delegate.descriptionEntity&&V.push(this.delegate.descriptionEntity);this.delegate.creators&&V.push.apply(V,_.oI(this.delegate.creators));this.delegate.theBiggestFan&&V.push(this.delegate.theBiggestFan);return[].concat(_.oI(new Set(V)))};
var xOB=function(){rt.apply(this,arguments)};
_.t(xOB,rt);xOB.prototype.getAssociations=function(){return[]};var UOB=new _.f("fantasyRosterViewModel");var nCN=new _.f("addFollowUpSurveyCommand");var $Ow=new _.f("getSurveyCommand");var dOa=new _.f("ratingSurveyOptionRenderer");_.Q3=new _.f("feedbackEndpoint");var w6Z=new _.f("reportHistoryTableCellRenderer"),N3i=new _.f("reportHistoryTableTextCellRenderer"),Kqb=new _.f("reportHistoryTableReasonCellRenderer");_.jC0=new _.f("flagEndpoint");var Ymi=new _.f("getFlowCommand");var Lqi=new _.f("submitFormWithValidationFlowCommand");var eNZ=function(){rt.apply(this,arguments)};
_.t(eNZ,rt);eNZ.prototype.getAssociations=function(){return[]};var kAb=new _.f("flowFormState");var Fq3=new _.f("gameCardRenderer");var X63=new _.f("accountLinkingStateChangedCommand");var zNE=function(){rt.apply(this,arguments)};
_.t(zNE,rt);zNE.prototype.getAssociations=function(){return[]};var y4J=new _.f("changeMiniAppPlayStateCommand");var tJW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(tJW,_.mV);var hr=[1,2,3];var r4J=[0,hr,fqt,_.gcK,pcW];var GAW=_.nd(tJW,r4J),ECZ=_.$n(r4J);var J4b=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(J4b,_.mV);var oCJ=[0,_.Ok,_.fj];var hNZ=[0,_.fj];var PDN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(PDN,_.mV);var DON=function(V,l){return _.gm(V,3,l)};var ZhZ=_.$n([0,_.iQ,oCJ,_.iQ,hNZ]);var Sm3=new _.f("miniAppScoreChallengeViewModel");var RNE=new _.f("miniGameCardViewModel");var QCN=new _.f("teaserCardViewModel");var c4o=function(){rt.apply(this,arguments)};
_.t(c4o,rt);c4o.prototype.getAssociations=function(){return[]};_.WqZ=new _.f("feedbackItemRenderer");var bhv={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",DOLLARSIGN_COLOR:"DOLLARSIGN_COLOR",YENSIGN_COLOR:"YENSIGN_COLOR",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",
ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",
FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",
GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",
PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD"};var qma=function(){rt.apply(this,arguments)};
_.t(qma,rt);qma.prototype.getAssociations=function(){return[]};_.MJN=new _.f("playerInterstitialRenderer");var sC0=new _.f("getKidsBlocklistPickerCommand");_.p63=new _.f("updateKidsBlacklistEndpoint");_.Cv=new _.f("likeEndpoint");var A4Z,uQ0,vCW;A4Z=new _.f("addChatItemAction");uQ0=new _.f("removeChatItemAction");vCW=new _.f("markChatItemAsDeletedAction");_.Ohb=new _.f("setLiveChatCollapsedStateAction");var CDb=function(){rt.apply(this,arguments)};
_.t(CDb,rt);CDb.prototype.getAssociations=function(){return[]};var aj3=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(aj3,_.mV);var fj0=_.nd(aj3,[0,1,_.Ok]);var gCB=new _.f("liveChatEndpoint");var mOZ=new _.f("liveChatItemContextMenuEndpoint");var ihi=new _.f("liveChatReplayEndpoint");_.VS0=new _.f("emojiPickerRenderer");var lEE=new _.f("liveChatAuthorBadgeViewModel");var IE3=new _.f("deleteLiveChatMessageCommand");var HD0=new _.f("liveChatActionEndpoint");var TQ3=new _.f("createLiveChatPollEndpoint");var BQN=new _.f("manageLiveChatUserEndpoint");var xAB=new _.f("moderateLiveChatEndpoint");_.UA0=new _.f("sendLiveChatMessageEndpoint");var nbZ=new _.f("sendLiveChatVoteEndpoint");var $AZ=new _.f("clearLocationCommand");var dA0=new _.f("resolveLocationCommand");var wJZ=new _.f("interactionLoggingCommandMetadata");var IPT=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(IPT,_.mV);var lP1=function(V,l){return _.Bv(V,1,l)};var NQB=[0,_.at];var V91=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(V91,_.mV);var i4c=function(V,l){return wT(V,1,IPT,l)};V91.prototype.JSC$9916_serializeBinary=Gfc([0,_.gl,NQB]);var eNK={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 Kf3={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"},
jYv={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 CNN={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"};_.pg1=new _.f("logFlowLoggingEventCommand");_.Pjc=new _.f("loggingContext");var Yn3=new _.f("captionLanguageSelectActionCommand");var LfZ=new _.f("showCaptionLanguageSelectActionCommand");var eDE=new _.f("dismissDialogEndpoint");var kma=new _.f("hideItemSectionVideosByIdCommand");var Ffi=new _.f("showMiniplayerCommand");var XJB=function(){rt.apply(this,arguments)};
_.t(XJB,rt);XJB.prototype.getAssociations=function(){return[]};var zDw=function(){rt.apply(this,arguments)};
_.t(zDw,rt);zDw.prototype.getAssociations=function(){return[]};var yzE=function(){rt.apply(this,arguments)};
_.t(yzE,rt);yzE.prototype.getAssociations=function(){return[]};var tSJ=function(){rt.apply(this,arguments)};
_.t(tSJ,rt);tSJ.prototype.getAssociations=function(){var V=[];this.delegate.downloadsList&&V.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&V.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&V.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&V.push(this.delegate.refresh);return[].concat(_.oI(new Set(V)))};var rzN=function(){rt.apply(this,arguments)};
_.t(rzN,rt);rzN.prototype.getAssociations=function(){var V=[];this.delegate.refresh&&V.push(this.delegate.refresh);if(this.delegate.downloads)for(var l=_.U(this.delegate.downloads),I=l.next();!I.done;I=l.next())V.push.apply(V,_.oI((new Gma(I.value)).getAssociations()));return[].concat(_.oI(new Set(V)))};
var Gma=function(){tr.apply(this,arguments)};
_.t(Gma,tr);Gma.prototype.getAssociations=function(){var V=[];this.delegate.video&&V.push(this.delegate.video);this.delegate.playlist&&V.push(this.delegate.playlist);this.delegate.videoItem&&V.push(this.delegate.videoItem);this.delegate.playlistItem&&V.push(this.delegate.playlistItem);return[].concat(_.oI(new Set(V)))};var EbJ=function(){rt.apply(this,arguments)};
_.t(EbJ,rt);EbJ.prototype.getAssociations=function(){var V=[];this.delegate.localImageEntities&&V.push.apply(V,_.oI(this.delegate.localImageEntities));return[].concat(_.oI(new Set(V)))};var Jzi=function(){rt.apply(this,arguments)};
_.t(Jzi,rt);Jzi.prototype.getAssociations=function(){var V=[];this.delegate.playbackData&&V.push(this.delegate.playbackData);this.delegate.localImageEntities&&V.push.apply(V,_.oI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&V.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oI(new Set(V)))};var obZ=function(){rt.apply(this,arguments)};
_.t(obZ,rt);obZ.prototype.getAssociations=function(){return[]};var hDv=function(){rt.apply(this,arguments)};
_.t(hDv,rt);hDv.prototype.getAssociations=function(){var V=[];this.delegate.fakeChildren&&V.push.apply(V,_.oI(this.delegate.fakeChildren));return[].concat(_.oI(new Set(V)))};var Pcb=function(){rt.apply(this,arguments)};
_.t(Pcb,rt);Pcb.prototype.getAssociations=function(){var V=[];this.delegate.video&&V.push(this.delegate.video);this.delegate.playbackData&&V.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&V.push(this.delegate.offlineVideoPolicy);return[].concat(_.oI(new Set(V)))};var DAv=function(){rt.apply(this,arguments)};
_.t(DAv,rt);DAv.prototype.getAssociations=function(){return[]};var ZD3=function(){rt.apply(this,arguments)};
_.t(ZD3,rt);ZD3.prototype.getAssociations=function(){var V=[];this.delegate.channelOwner&&V.push(this.delegate.channelOwner);this.delegate.videos&&V.push.apply(V,_.oI(this.delegate.videos));this.delegate.collaboratorChannels&&V.push.apply(V,_.oI(this.delegate.collaboratorChannels));this.delegate.downloadState&&V.push(this.delegate.downloadState);this.delegate.refresh&&V.push(this.delegate.refresh);return[].concat(_.oI(new Set(V)))};var Sna=function(){rt.apply(this,arguments)};
_.t(Sna,rt);Sna.prototype.getAssociations=function(){var V=[];this.delegate.video&&V.push(this.delegate.video);this.delegate.channelContributor&&V.push(this.delegate.channelContributor);return[].concat(_.oI(new Set(V)))};var RDa=function(){tr.apply(this,arguments)};
_.t(RDa,tr);RDa.prototype.getAssociations=function(){var V=[];this.delegate.recommendedVideoMetadata&&V.push.apply(V,_.oI((new QY3(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.oI(new Set(V)))};
var QY3=function(){tr.apply(this,arguments)};
_.t(QY3,tr);QY3.prototype.getAssociations=function(){var V=[];this.delegate.localImageEntities&&V.push.apply(V,_.oI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&V.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oI(new Set(V)))};var czZ=function(){tr.apply(this,arguments)};
_.t(czZ,tr);czZ.prototype.getAssociations=function(){var V=[];this.delegate.playbackPosition&&V.push(this.delegate.playbackPosition);return[].concat(_.oI(new Set(V)))};var WfW=function(){rt.apply(this,arguments)};
_.t(WfW,rt);WfW.prototype.getAssociations=function(){var V=[];this.delegate.owner&&V.push(this.delegate.owner);this.delegate.downloadState&&V.push(this.delegate.downloadState);this.delegate.userState&&V.push.apply(V,_.oI((new czZ(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&V.push.apply(V,_.oI((new RDa(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.oI(new Set(V)))};var bDi=function(){rt.apply(this,arguments)};
_.t(bDi,rt);bDi.prototype.getAssociations=function(){var V=[];this.delegate.userChannelDetails&&V.push(this.delegate.userChannelDetails);return[].concat(_.oI(new Set(V)))};var qnB=function(){rt.apply(this,arguments)};
_.t(qnB,rt);qnB.prototype.getAssociations=function(){var V=[];this.delegate.channelOwner&&V.push(this.delegate.channelOwner);this.delegate.playbackPosition&&V.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&V.push.apply(V,_.oI(this.delegate.localImageEntities));this.delegate.downloadStatus&&V.push(this.delegate.downloadStatus);return[].concat(_.oI(new Set(V)))};var L8T=new _.f("downloadsPageSmartDownloadsOptInBannerParams");var MS3=function(){rt.apply(this,arguments)};
_.t(MS3,rt);MS3.prototype.getAssociations=function(){return[]};var sYo=function(){rt.apply(this,arguments)};
_.t(sYo,rt);sYo.prototype.getAssociations=function(){return[]};var pJE=function(){rt.apply(this,arguments)};
_.t(pJE,rt);pJE.prototype.getAssociations=function(){return[]};var AzW=function(){rt.apply(this,arguments)};
_.t(AzW,rt);AzW.prototype.getAssociations=function(){return[]};var u5Z=function(){rt.apply(this,arguments)};
_.t(u5Z,rt);u5Z.prototype.getAssociations=function(){return[]};var vbB=function(){rt.apply(this,arguments)};
_.t(vbB,rt);vbB.prototype.getAssociations=function(){return[]};var ODZ=function(){rt.apply(this,arguments)};
_.t(ODZ,rt);ODZ.prototype.getAssociations=function(){return[]};var Cc0=function(){rt.apply(this,arguments)};
_.t(Cc0,rt);Cc0.prototype.getAssociations=function(){return[]};var Z4N=new _.f("dislikeButtonViewModel");var DPg=new _.f("likeButtonViewModel");var aEN=new _.f("videoSummaryContentViewModel");var sTw=new _.f("videoSummaryParagraphViewModel");var fEW=new _.f("changeTimelyActionVisibilityCommand");var gbo=new _.f("hideEngagementPanelEndpoint");var mAW=new _.f("refreshPanelEndpoint");var iDW=new _.f("scrollToSectionEndpoint");var Vq3=new _.f("seekToVideoTimestampCommand");_.RK=new _.f("showEngagementPanelEndpoint");var laW=new _.f("showTransientPlayerScrimOverlayCommand");var IaJ=new _.f("toggleEngagementPanelCommand");_.HiN=new _.f("createBroadcastCommand");var TNi=new _.f("metadataUpdateCommand");var BNE=function(){rt.apply(this,arguments)};
_.t(BNE,rt);BNE.prototype.getAssociations=function(){return[]};var xhE=function(){rt.apply(this,arguments)};
_.t(xhE,rt);xhE.prototype.getAssociations=function(){return[]};var Uha=function(){rt.apply(this,arguments)};
_.t(Uha,rt);Uha.prototype.getAssociations=function(){return[]};_.nYi=new _.f("merchandiseShelfRenderer");var $h0=new _.f("gridMovieRenderer");_.dhw=new _.f("movieRenderer");var wdv=function(){rt.apply(this,arguments)};
_.t(wdv,rt);wdv.prototype.getAssociations=function(){var V=[];this.delegate.trackDownloadMetadatas&&V.push.apply(V,_.oI(this.delegate.trackDownloadMetadatas));return[].concat(_.oI(new Set(V)))};var NNN=function(){rt.apply(this,arguments)};
_.t(NNN,rt);
NNN.prototype.getAssociations=function(){var V=[];this.delegate.downloadedTracks&&V.push.apply(V,_.oI(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&V.push.apply(V,_.oI(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&V.push.apply(V,_.oI(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&V.push.apply(V,_.oI(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&V.push.apply(V,_.oI(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
V.push.apply(V,_.oI(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&V.push.apply(V,_.oI(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&V.push.apply(V,_.oI(this.delegate.metadataOnlyTracks));return[].concat(_.oI(new Set(V)))};var KkB=function(){rt.apply(this,arguments)};
_.t(KkB,rt);KkB.prototype.getAssociations=function(){var V=[];this.delegate.trackDownloadMetadatas&&V.push.apply(V,_.oI(this.delegate.trackDownloadMetadatas));return[].concat(_.oI(new Set(V)))};var jRw=function(){rt.apply(this,arguments)};
_.t(jRw,rt);jRw.prototype.getAssociations=function(){var V=[];this.delegate.playbackData&&V.push(this.delegate.playbackData);this.delegate.localImageEntities&&V.push.apply(V,_.oI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&V.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oI(new Set(V)))};var YMZ=function(){rt.apply(this,arguments)};
_.t(YMZ,rt);
YMZ.prototype.getAssociations=function(){var V=[];this.delegate.musicLibraryStatusEntity&&V.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&V.push.apply(V,_.oI(this.delegate.primaryArtists));this.delegate.details&&V.push(this.delegate.details);this.delegate.userDetails&&V.push(this.delegate.userDetails);this.delegate.tracks&&V.push.apply(V,_.oI(this.delegate.tracks));this.delegate.share&&V.push(this.delegate.share);this.delegate.downloadMetadata&&V.push(this.delegate.downloadMetadata);this.delegate.refresh&&
V.push(this.delegate.refresh);return[].concat(_.oI(new Set(V)))};
var Lki=function(){rt.apply(this,arguments)};
_.t(Lki,rt);Lki.prototype.getAssociations=function(){var V=[];this.delegate.albumRelease&&V.push(this.delegate.albumRelease);this.delegate.tracks&&V.push.apply(V,_.oI(this.delegate.tracks));return[].concat(_.oI(new Set(V)))};
var eiZ=function(){rt.apply(this,arguments)};
_.t(eiZ,rt);eiZ.prototype.getAssociations=function(){var V=[];this.delegate.albumRelease&&V.push(this.delegate.albumRelease);return[].concat(_.oI(new Set(V)))};var kZa=function(){rt.apply(this,arguments)};
_.t(kZa,rt);kZa.prototype.getAssociations=function(){var V=[];this.delegate.details&&V.push(this.delegate.details);this.delegate.userDetails&&V.push(this.delegate.userDetails);return[].concat(_.oI(new Set(V)))};
var Fka=function(){rt.apply(this,arguments)};
_.t(Fka,rt);Fka.prototype.getAssociations=function(){var V=[];this.delegate.parentArtist&&V.push(this.delegate.parentArtist);return[].concat(_.oI(new Set(V)))};
var XdJ=function(){rt.apply(this,arguments)};
_.t(XdJ,rt);XdJ.prototype.getAssociations=function(){var V=[];this.delegate.parentArtist&&V.push(this.delegate.parentArtist);return[].concat(_.oI(new Set(V)))};var zii=function(){rt.apply(this,arguments)};
_.t(zii,rt);zii.prototype.getAssociations=function(){return[]};var ywW=function(){rt.apply(this,arguments)};
_.t(ywW,rt);ywW.prototype.getAssociations=function(){return[]};var tqZ=function(){rt.apply(this,arguments)};
_.t(tqZ,rt);
tqZ.prototype.getAssociations=function(){var V=[];this.delegate.tracks&&V.push.apply(V,_.oI(this.delegate.tracks));this.delegate.refresh&&V.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&V.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&V.push(this.delegate.details);this.delegate.downloadMetadata&&V.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&V.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&V.push(this.delegate.userDetails);this.delegate.entryCollection&&
V.push(this.delegate.entryCollection);this.delegate.share&&V.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&V.push.apply(V,_.oI((new rwi(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.oI(new Set(V)))};
var rwi=function(){tr.apply(this,arguments)};
_.t(rwi,tr);rwi.prototype.getAssociations=function(){var V=[];this.delegate.creatorEntity&&V.push(this.delegate.creatorEntity);return[].concat(_.oI(new Set(V)))};var GZZ=function(){rt.apply(this,arguments)};
_.t(GZZ,rt);GZZ.prototype.getAssociations=function(){return[]};var EYv=function(){rt.apply(this,arguments)};
_.t(EYv,rt);
EYv.prototype.getAssociations=function(){var V=[];this.delegate.musicLibraryStatusEntity&&V.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&V.push.apply(V,_.oI(this.delegate.artists));this.delegate.audioModeVersion&&V.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&V.push(this.delegate.videoModeVersion);this.delegate.userDetails&&V.push(this.delegate.userDetails);this.delegate.details&&V.push(this.delegate.details);this.delegate.albumRelease&&V.push(this.delegate.albumRelease);this.delegate.share&&
V.push(this.delegate.share);this.delegate.libraryEdit&&V.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&V.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&V.push(this.delegate.playbackPosition);this.delegate.lyrics&&V.push(this.delegate.lyrics);return[].concat(_.oI(new Set(V)))};
var JwN=function(){rt.apply(this,arguments)};
_.t(JwN,rt);JwN.prototype.getAssociations=function(){var V=[];this.delegate.parentTrack&&V.push(this.delegate.parentTrack);return[].concat(_.oI(new Set(V)))};
var oY3=function(){rt.apply(this,arguments)};
_.t(oY3,rt);oY3.prototype.getAssociations=function(){var V=[];this.delegate.parentTrack&&V.push(this.delegate.parentTrack);return[].concat(_.oI(new Set(V)))};var BA=new _.f("musicResponsiveListItemRenderer");var h$3=new _.f("addToPlaylistEndpoint");var hib=new _.f("captionPickerEndpoint");var PWv=new _.f("suggestStats");var DhZ=new _.f("backstageImageUploadEndpoint");var ZiZ=new _.f("createBackstagePostDialogEndpoint");_.SMW=new _.f("createCommentReplyDialogEndpoint");_.Rio=new _.f("updateCommentDialogEndpoint");_.QR3=new _.f("updateCommentReplyDialogEndpoint");var cww=new _.f("menuEndpoint");var Lo3=new _.f("modalEndpoint");var WkZ=new _.f("playlistEditorEndpoint");var bio=new _.f("copyTextEndpoint");var qM3,Mq3;qM3=new _.f("shareEndpoint");Mq3=new _.f("shareEntityEndpoint");_.sRo=new _.f("shareEntityServiceEndpoint");_.sMT=new _.f("userFeedbackEndpoint");_.vU=new _.f("watchEndpoint");var eHJ=new _.f("watchPlaylistEndpoint");var pdN=new _.f("addUpcomingEventReminderEndpoint");_.Pq=new _.f("getCommentsFromInboxCommand");var Awo=new _.f("notificationOptOutEndpoint");var uao=new _.f("recordNotificationInteractionsEndpoint");var vYa=new _.f("removeUpcomingEventReminderEndpoint");var JZW=new _.f("getDownloadActionCommand");_.OiZ=new _.f("offlineOrchestrationActionCommand");var CWB=function(){rt.apply(this,arguments)};
_.t(CWB,rt);CWB.prototype.getAssociations=function(){return[]};var aaZ=function(){rt.apply(this,arguments)};
_.t(aaZ,rt);aaZ.prototype.getAssociations=function(){return[]};var faB=function(){rt.apply(this,arguments)};
_.t(faB,rt);faB.prototype.getAssociations=function(){return[]};var gYw=function(){rt.apply(this,arguments)};
_.t(gYw,rt);gYw.prototype.getAssociations=function(){return[]};var mhN=function(){rt.apply(this,arguments)};
_.t(mhN,rt);mhN.prototype.getAssociations=function(){var V=[];this.delegate.transfer&&V.push(this.delegate.transfer);this.delegate.adsPlaybackData&&V.push.apply(V,_.oI(this.delegate.adsPlaybackData));this.delegate.drmLicense&&V.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&V.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&V.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oI(new Set(V)))};var iiZ=function(){rt.apply(this,arguments)};
_.t(iiZ,rt);iiZ.prototype.getAssociations=function(){return[]};var VKb=function(){rt.apply(this,arguments)};
_.t(VKb,rt);VKb.prototype.getAssociations=function(){var V=[];this.delegate.offlineVideoStreams&&V.push.apply(V,_.oI(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&V.push.apply(V,_.oI(this.delegate.captionTrack));return[].concat(_.oI(new Set(V)))};var l00=function(){rt.apply(this,arguments)};
_.t(l00,rt);l00.prototype.getAssociations=function(){return[]};var I0o=new _.f("showMoreDrawerCommand");var H7a=new _.f("updateEngagementPanelContentCommand");var TtB=new _.f("getPdgBuyFlowCommand");var BtN=new _.f("liveChatPurchaseMessageEndpoint");var x$w=new _.f("openSuperStickerBuyFlowCommand");var U$o=new _.f("updatePdgFeatureEnablementCommand");var nUN=function(){rt.apply(this,arguments)};
_.t(nUN,rt);nUN.prototype.getAssociations=function(){return[]};var $$J=function(){rt.apply(this,arguments)};
_.t($$J,rt);$$J.prototype.getAssociations=function(){return[]};_.d$W=new _.f("pdgCommentChipRenderer");_.wqZ=new _.f("permissionRoleBottomBarRenderer");_.Nt3=new _.f("updatePermissionRoleCommand");var K1o=new _.f("prefetchWatchCommand");var jGw=new _.f("updatePlayerErrorMessageCommand");var XmK=new _.f("toggleCaptionsVisibilityCommand");_.YdN=new _.f("quickActionsViewModel");var L1E=new _.f("playerResponse");var epw=new _.f("playlistRenderer");_.kj3=new _.f("playlistVideoListRenderer");_.D0=new _.f("playlistEditEndpoint");var F1N=new _.f("createImagePollCommand");var XqJ=new _.f("createQuizCommand");var zpB=new _.f("quizRenderer");var yr0=new _.f("uploadedVideoRenderer");var tK3=new _.f("decorateMessageEndpoint");var rrw=new _.f("lpOfferCardOptionViewModel");var Gjv=new _.f("sfvAudioItemPlaybackCommand");var EUW=function(){rt.apply(this,arguments)};
_.t(EUW,rt);EUW.prototype.getAssociations=function(){return[]};_.Z0=new _.f("reelNonVideoContentEndpoint");_.YV=new _.f("reelWatchEndpoint");_.SK=new _.f("reelItemRenderer");var JrN=new _.f("reelMetapanelViewModel");_.oUa=new _.f("reelNonVideoContentRenderer");_.hpW=new _.f("reelPlayerOverlayRenderer");var PF0=new _.f("shortsLockupViewModel");var D$b=new _.f("sponsorButtonViewModel");var Z7o=new _.f("reelItemWatchResponse");var Sdb=new _.f("textBadgeRenderer");_.RG=new _.f("buttonRenderer");_.QX=new _.f("toggleButtonRenderer");var yjf=new _.f("switchButtonViewModel");_.Rpo=new _.f("confirmDialogRenderer");var QGw;QGw=new _.f("menuRenderer");_.cr0=new _.f("menuFlexibleItemRenderer");var W1B=new _.f("pollRenderer");_.b7N=new _.f("backgroundPromoRenderer");var MKa;_.qdi=new _.f("chipCloudRenderer");MKa=new _.f("chipCloudChipRenderer");var sGB=new _.f("dropdownRenderer");var pqZ=new _.f("gridVideoRenderer");_.VVJ=new _.f("itemSectionRenderer");_.ArE=new _.f("messageRenderer");var uei=new _.f("sortFilterHeaderRenderer");_.vUv=new _.f("videoRenderer");var O7v=new _.f("resolveUrlCommandMetadata");var CFw=function(){rt.apply(this,arguments)};
_.t(CFw,rt);CFw.prototype.getAssociations=function(){return[]};_.a0N=new _.f("getAnswerCommand");_.Nv=new _.f("searchEndpoint");var f03=new _.f("genAiRichTextViewModel");var Eoq=new _.f("overviewAnswerViewModel");var gUb=new _.f("addToPlaylistServiceEndpoint");var m$W=new _.f("clearSearchHistoryEndpoint");var i7i=new _.f("clearWatchHistoryEndpoint");var Vlo=new _.f("webSerializedServiceEndpointExtension");_.l$o=new _.f("createCommentEndpoint");var I$N=new _.f("createCommentReplyEndpoint");var cq=new _.f("performCommentActionEndpoint");var Hnb=new _.f("updateCommentEndpoint");var TFb=new _.f("updateCommentReplyEndpoint");_.Wq=new _.f("createPlaylistServiceEndpoint");var BFZ=new _.f("deletePlaylistEndpoint");var xB0=new _.f("deleteVideoEndpoint");var ooN=new _.f("getReportFormEndpoint");var UBE=new _.f("modifyChannelNotificationPreferenceEndpoint");var aoc;_.UB=new _.f("offlinePlaylistEndpoint");aoc={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 fo1;_.xj=new _.f("offlineVideoEndpoint");fo1={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 ng0=new _.f("pingingEndpoint");_.$BB=new _.f("selectActiveIdentityEndpoint");var dB0=new _.f("setSettingEndpoint");var lFf=new _.f("undoFeedbackEndpoint");var wVw=new _.f("unsubscribeEndpoint");_.NFo=new _.f("updatedMetadataEndpoint");var K8N=function(){rt.apply(this,arguments)};
_.t(K8N,rt);K8N.prototype.getAssociations=function(){return[]};_.j7a=new _.f("updateLocalAppSettingCommand");var Yga=new _.f("saveImageToDeviceEndpoint");var L8J=new _.f("shareImageCommand");var edW=new _.f("sharingProviderDataCommand");var ksN=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(ksN,_.mV);var F8o=[0,_.fj,-1];ksN.prototype.JSC$10115_serializeBinary=Gfc(F8o);var XVv=_.$n(F8o);var zdo=new _.f("userMentionSuggestionRenderer");var yt0=new _.f("liveChatTunnelCommand");var tlv=new _.f("showSponsorshipsGiftOfferDialogCommand");var rto=new _.f("sponsorshipsScrollableShelfViewModel");var Gso=new _.f("updateUpcomingEventReminderButtonStateCommand");var EgE=new _.f("upcomingEventReminderButtonStateRenderer");var Jta=new _.f("subscribeEndpoint");var ogJ=new _.f("registerTasksCommand");var hdv=new _.f("showDialogCommand");_.jM=new _.f("showSheetCommand");var P1Z=function(){rt.apply(this,arguments)};
_.t(P1Z,rt);P1Z.prototype.getAssociations=function(){return[]};_.C6=new _.f("avatarViewModel");var vM3=new _.f("badgeViewModel");_.Gb=new _.f("buttonViewModel");_.bF=new _.f("chipViewModel");var OF1=new _.f("contentPreviewImageViewModel");var VHN=new _.f("decoratedAvatarViewModel");var tBW=new _.f("downloadButtonViewModel");_.WNc=new _.f("engagementBarViewModel");_.I9T=new _.f("imageBannerViewModel");var $5W=new _.f("lockupContentMetadataRowExtension");var DBN=new _.f("lockupMetadataViewModel");var ZnN=new _.f("lockupViewModel");var SgJ=function(){rt.apply(this,arguments)};
_.t(SgJ,rt);SgJ.prototype.getAssociations=function(){return[]};_.RdE=new _.f("pageHeaderViewModel");_.EB=new _.f("toggleButtonViewModel");var Q7J=function(){rt.apply(this,arguments)};
_.t(Q7J,rt);Q7J.prototype.getAssociations=function(){return[]};_.b1w=new _.f("votingViewModel");var ctw=new _.f("sectionHeaderViewModel");var W8b=new _.f("notifyDropdownOptionSelectedCommand");var Mgt=new _.f("listViewModel");_.Yj=new _.f("listItemViewModel");var bnJ=new _.f("dialogHeaderViewModel");var qgN=function(){rt.apply(this,arguments)};
_.t(qgN,rt);qgN.prototype.getAssociations=function(){return[]};var Ml0=function(){rt.apply(this,arguments)};
_.t(Ml0,rt);Ml0.prototype.getAssociations=function(){return[]};var s7b=function(){rt.apply(this,arguments)};
_.t(s7b,rt);s7b.prototype.getAssociations=function(){return[]};_.pV3=new _.f("transcriptSubmitCaptionCorrectionCommand");var At3=function(){rt.apply(this,arguments)};
_.t(At3,rt);At3.prototype.getAssociations=function(){return[]};var Tyt=new _.f("unpluggedStringRunImage");var uci=new _.f("tabViewModel");var vgN=new _.f("tabbedViewModel");var OnZ=function(){rt.apply(this,arguments)};
_.t(OnZ,rt);OnZ.prototype.getAssociations=function(){return[]};_.C1w=new _.f("updateDescriptionAction");var a$N=new _.f("updateToggleButtonTextAction");_.f$b=new _.f("autoplaySwitchButtonRenderer");var bR;_.ggv=new _.f("multiMarkersPlayerBarRenderer");bR=new _.f("chapterRenderer");var mBE=new _.f("heatMarkerRenderer");var KvN=new _.f("heatmapRenderer");var inN=new _.f("smartSkipPlayerScrimOverlayRenderer");var VWZ=new _.f("timedMarkerDecorationRenderer");var EHJ=new _.f("postWebToNativeMessageCommand");var lXb=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(lXb,_.mV);var IXv=_.nd(lXb,[0,_.fj,-2]);var HbW=new _.f("whitelistEditEndpoint");var Tda=new _.f("commerceActionCommand");_.BdZ=new _.f("getPaymentInstrumentsParamsCommand");var x9a=new _.f("getPaymentsClientTokenCommand");var U9W=new _.f("googlePaymentBillingCommand");var n60=new _.f("googlePaymentPurchaseManagerCommand");_.$9a=new _.f("logGtmCommand");var d9Z=new _.f("updateCardItemOnClickCommand");_.wfJ=new _.f("ypcPauseSubscriptionCommand");_.NdW=new _.f("ypcResumeSubscriptionCommand");var KhJ=function(){rt.apply(this,arguments)};
_.t(KhJ,rt);KhJ.prototype.getAssociations=function(){return[]};var jUo=function(){rt.apply(this,arguments)};
_.t(jUo,rt);jUo.prototype.getAssociations=function(){return[]};var YpN=function(){rt.apply(this,arguments)};
_.t(YpN,rt);YpN.prototype.getAssociations=function(){return[]};var LhZ=function(){rt.apply(this,arguments)};
_.t(LhZ,rt);LhZ.prototype.getAssociations=function(){return[]};var ela=function(){rt.apply(this,arguments)};
_.t(ela,rt);ela.prototype.getAssociations=function(){return[]};var fOT=new _.f("ypcOffersEndpoint");var k4J=new _.f("cardItemRenderer"),FhN=new _.f("cardItemTextRenderer");var XfW=new _.f("commerceCartItemQuantityPickerRenderer");var zlb=new _.f("linkCardRenderer");var FTK=new _.f("quantityIncrementerButtonViewModel");var yMW=new _.f("quantityIncrementerViewModel");var tWN=new _.f("themedImageViewModel");_.rMv=new _.f("ypcCancelRecurrenceEndpoint");var G4W=new _.f("ypcCompleteTransactionEndpoint");_.E6B=new _.f("ypcGetCartEndpoint");_.x9=new _.f("ypcGetOffersEndpoint");_.q$=new _.f("ypcHandleTransactionEndpoint");var JMJ=new _.f("ypcLogWalletAnalyticDataEndpoint");_.o6N=new _.f("ypcRedeemCodeEndpoint");var hlB=new _.f("ypcUpdateFopEndpoint");Tj(Hq(1),lF(4));PNo((new MessageChannel).port2);var P9o=function(){this.register=new Map},Fqt=function(V,l,I){V=V+"_"+l;
M$.register.has(V)?I=M$.register.get(V):(I=I(),M$.register.set(V,I));return I},D9N=function(V){V=_.U(V.register.values());
for(var l=V.next();!l.done;l=V.next())_.k_(l.value,"ABORTED")};
P9o.prototype.clear=function(){D9N(this);this.register.clear()};
var M$=new P9o;var iH1=Date.now().toString();var ljJ,Zb0=_.nK.ytLoggingDocDocumentNonce_;Zb0||(Zb0=Gu(16),_.Aq("ytLoggingDocDocumentNonce_",Zb0));ljJ=Zb0;var $Oy={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 Spa;Spa=1;_.EA=function(V){this.veData=V};
_.dj=function(V){return new _.EA({trackingParams:V})};
_.eU=function(V,l,I,H,T,x){var n=Spa++;return new _.EA({veType:V,veCounter:n,elementIndex:I,dataElement:l,youtubeData:H,jspbYoutubeData:T,loggingDirectives:x})};
_.B=_.EA.prototype;
_.B.getAsJson=function(){var V={};this.veData.trackingParams!==void 0?V.trackingParams=this.veData.trackingParams:(V.veType=this.veData.veType,this.veData.veCounter!==void 0&&(V.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(V.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(V.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(V.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(V.isCounterfactual=!0);
return V};
_.B.getAsJspb=function(){var V=new hwN;this.veData.trackingParams!==void 0?V.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.qU(V,2,this.veData.veType),this.veData.veCounter!==void 0&&_.qU(V,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.qU(V,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Bv(V,5,!0));if(this.veData.dataElement!==void 0){var l=this.veData.dataElement.getAsJspb();_.j6(V,7,l)}this.veData.youtubeData!==void 0&&_.j6(V,8,this.veData.jspbYoutubeData);
return V};
_.B.toString=function(){return JSON.stringify(this.getAsJson())};
_.B.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.B.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Aq("yt_logging_screen.getRootVeType",xO1);_.Aq("yt_logging_screen.getCurrentCsn",_.oa);_.Aq("yt_logging_screen.getCttAuthInfo",hO);_.Aq("yt_logging_screen.setCurrentScreen",_.N31);var RlB=function(){this.events=new Map},QUw=function(V){var l=[];
V=_.U(V.events.values());for(var I=V.next();!I.done;I=V.next())l.push(I.value);return l};
RlB.prototype.clear=function(){this.events.clear()};var Whw=function(){this.logTransport=new cMv;this.loggedEventRegister=new RlB;this.unloggedEventRegister=new RlB;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10170_flushTimer=new _.m4(this.flushInterval);this.JSC$10170_flushTimer.listen("tick",this.flush,!1,this)};
Whw.prototype.flush=function(){if(this.eventsCount){var V={loggedEvents:QUw(this.loggedEventRegister),unloggedEvents:QUw(this.unloggedEventRegister)};if(_.z("export_player_version_to_ytconfig")){var l;(l=_.h6("PLAYER_CLIENT_VERSION"))?(l=l.split("-")[0].replace(/\./g,""),l=isNaN(Number(l))?"0":l):l="";var I=_.h6("PLAYER_CLIENT_VERSION");if(I){I=I.split("-");var H="";I.length>1&&(H=I[I.length-1]);I=m_1(H.startsWith("canary_experiment")?"canary":H.startsWith("canary_control")?"control":"none")}else I=
"CLIENT_CANARY_STATE_UNKNOWN";V.dimensions={playerClientVersion:l,playerCanaryState:I}}this.logTransport.flush(V);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10170_flushTimer.enabled&&this.JSC$10170_flushTimer.stop()}};
var bbw=function(V){sd==null&&(sd=new Whw);var l=sd;var I=l.loggedEventRegister;V.dimensions=V.dimensions||{};V.dimensions.csn=_.oa()||"";var H=KqW(V.dimensions).join(";");if(V.records!=null)if(I.events.has(H)){var T;(T=I.events.get(H).records)==null||T.push.apply(T,_.oI(V.records))}else I.events.set(H,V);l.JSC$10170_flushTimer.enabled||l.JSC$10170_flushTimer.start();l.eventsCount++;l.eventsCount>=100&&l.flush()};var cMv=function(){};
cMv.prototype.flush=function(V,l){_.z("enable_client_sli_logging")&&_.tF("sliEventBatch",V,{sendIsolatedPayload:!!l})};var sd;var MWN;MWN=function(V){var l=qpi;V=V===void 0?{}:V;l=l.name;var I=kAW("SUCCESS");bbw({dimensions:V,records:[{name:l,state:"SLI_STATE_END",status:I}]})};
_.X6t=function(V,l,I,H){this.name=V;this.sliId=l;this.timeoutMs=I;this.statusOnTimeout=H;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.X6t.prototype.getId=function(){return this.sliId};
_.e7=function(V,l){l=l===void 0?{}:l;V.ongoing||(V.ongoing=!0,V.dimensions=l,V.logSliId=Hvv(),bbw({dimensions:V.dimensions,records:[{name:V.name,state:"SLI_STATE_START",sliId:V.logSliId}]}),V.timeoutMs>0&&(V.timeoutHandle=setTimeout(function(){_.k_(V,V.statusOnTimeout)},V.timeoutMs)))};
_.k_=function(V,l){V.ongoing&&(V.timeoutMs>0&&clearTimeout(V.timeoutHandle),V.ongoing=!1,l={dimensions:V.dimensions,records:[{name:V.name,status:kAW(l),state:"SLI_STATE_END",sliId:V.logSliId}]},M$.register.delete(V.name+"_"+V.sliId),bbw(l))};var qpi=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var sUW=function(){rt.apply(this,arguments)};
_.t(sUW,rt);sUW.prototype.getAssociations=function(){return[]};var vRt=new _.f("highlightTextDecoratorColorMapExtension");var A8c=new _.f("styleRunColorMapExtension");var J4W=_.fl(["data-"]),PDq={};var ZhK={};_.cU=function(V,l,I){_.I1.call(this,V+", errorCode="+l);this.errorCode=l;this.xhr=I;this.name="PromiseAjaxError"};
_.t(_.cU,_.I1);var WqN=function(V){this.xhr=V};var p7=function(V){this.wrappedPromise_=V===void 0?null:V;this.state_=0;this.JSC$10202_value_=null};
p7.prototype.then=function(V,l,I){return this.wrappedPromise_?this.wrappedPromise_.then(V,l,I):this.state_===1&&V?(V=V.call(I,this.JSC$10202_value_))&&typeof V.then==="function"?V:_.Ar(V):this.state_===2&&l?(V=l.call(I,this.JSC$10202_value_))&&typeof V.then==="function"?V:_.pfi(V):this};
p7.prototype.getValue=function(){return this.JSC$10202_value_};
p7.prototype.isRejected=function(){return this.state_==2};
ZGw(p7);_.pfi=function(V){var l=new p7;V=V===void 0?null:V;l.state_=2;l.JSC$10202_value_=V===void 0?null:V;return l};
_.Ar=function(V){var l=new p7;V=V===void 0?null:V;l.state_=1;l.JSC$10202_value_=V===void 0?null:V;return l};var c4c={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var VSJ="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var AMZ=["load","abort","error"],uF=function(V,l,I){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10222_maxAspectRatio_=V;this.disableAnimation_=l===void 0?!1:l;this.disableExifRotation_=I===void 0?!1:I;this.JSC$10222_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10222_reject_=this.resolve_=null};
uF.prototype.transform=function(V){var l=this;this.mime_=V.type;am(t5N(V),this.dataUrlRead_,this.readError_,this);am(yTJ(V.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(I,H){l.resolve_=I;l.JSC$10222_reject_=H})};
uF.prototype.dataUrlRead_=function(V){this.dataUrl_=V;this.angle_!=null&&uBB(this)};
uF.prototype.exifRead_=function(V){if(this.disableExifRotation_)this.angle_=0;else{a:if(V=new DataView(V),V.byteLength<2||V.getUint16(0)!==65496)V=-2;else{for(var l=2,I=V.byteLength;l<I;){var H=V.getUint16(l),T=V.getUint16(l+2);if(H===65505){l+=4;H=V.getUint32(l);T=V.getUint16(l+4);if(H!==1165519206||T!==0)break;l+=6;H=V.getUint16(l)===18761;l+=V.getUint32(l+4,H);T=V.getUint16(l,H);l+=2;for(var x=0;x<T;x++){if(V.getUint16(l,H)===274){l+=8;V=V.getUint16(l,H);break a}l+=12}}else if(H>>8!==255)break;
else l+=T+2}V=-1}switch(V){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&&uBB(this)};
uF.prototype.readError_=function(){this.JSC$10222_reject_()};
var uBB=function(V){nt(V.JSC$10222_image_,AMZ,V.completeTransform_,!1,V);V.JSC$10222_image_.src=_.S6(V.dataUrl_).toString();V.JSC$10222_image_.src!=ZC.toString()&&V.JSC$10222_image_.src.substr(0,11)==="data:image/"||V.JSC$10222_reject_()};
uF.prototype.completeTransform_=function(){if(this.JSC$10222_image_.src!=ZC.toString()){var V=_.S6(this.dataUrl_),l=this.JSC$10222_image_.naturalHeight?this.JSC$10222_image_.naturalWidth/this.JSC$10222_image_.naturalHeight:null;this.invalidAspectRatio=l>this.JSC$10222_maxAspectRatio_||l<1/this.JSC$10222_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var I=this.JSC$10222_image_.naturalWidth,H=this.JSC$10222_image_.naturalHeight,T=l=0,x=this.JSC$10222_image_.naturalHeight?this.JSC$10222_image_.naturalWidth/
this.JSC$10222_image_.naturalHeight:null;x>this.JSC$10222_maxAspectRatio_?(I=this.JSC$10222_maxAspectRatio_*H,l=(I-this.JSC$10222_image_.naturalWidth)/2,this.cropped=!0):x<1/this.JSC$10222_maxAspectRatio_?(H=this.JSC$10222_maxAspectRatio_*I,T=(H-this.JSC$10222_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)x=I,I=H,H=x,x=l,l=T,T=x;switch(this.angle_){case 90:T-=I;break;case 180:l-=I;T-=H;break;case 270:l-=
H}this.cropped||this.angle_%360!==0?(V=document.createElement("canvas"),V.width=I||1,V.height=H||1,this.JSC$10222_image_.naturalWidth&&this.JSC$10222_image_.naturalHeight&&(I=V.getContext("2d"),I.rotate(Math.PI/180*this.angle_),I.drawImage(this.JSC$10222_image_,l,T,this.JSC$10222_image_.naturalWidth,this.JSC$10222_image_.naturalHeight)),this.transformedData=_.S6(V.toDataURL(this.mime_))):this.transformedData=V}else this.transformedData=V;this.resolve_(this)}};var vq=function(V,l){_.kL.call(this,V);this.value=l};
_.t(vq,_.kL);
var Od=function(V,l,I,H,T,x,n){n=n===void 0?!1:n;_.tm.call(this);var w=this;this.JSC$10227_url_=V;this.channelId_=l;this.maxFileSizeMb_=I;this.JSC$10227_maxAspectRatio_=H;this.dropZoneEl_=T;this.rejectInvalidAspectRatio_=n;this.selectButtonEl_=x;this.JSC$10227_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new N$(this.dropZoneEl_);this.selectOverlay_=new K7(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10227_image_=this.transfer_=null;this.handler_=new _.ig(this);_.$w(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(x,"click",function(){w.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.t(Od,_.tm);Od.prototype.disposeInternal=function(){for(var V=this.selectButtonEl_.nextSibling;V&&V.parentNode&&V.tagName=="INPUT";)V.parentNode.removeChild(V),V=this.selectButtonEl_.nextSibling;this.cancel();_.tm.prototype.disposeInternal.call(this)};
Od.prototype.uploadPromise=function(){if(this.JSC$10227_image_==null)return null;this.uploadPromise_||v6W(this);return this.uploadPromise_};
Od.prototype.cancel=function(){Obv(this);this.JSC$10227_image_=null};
var Obv=function(V){V.transfer_&&V.transfer_.cancel();V.transfer_=null;V.uploadPromise_=null;V.resolve_=null;V.JSC$10227_reject_=null},v6W=function(V){Obv(V);
V.transfer_=_.Mui(V.JSC$10227_url_,{"X-YouTube-ChannelId":V.channelId_},V.JSC$10227_image_);V.handler_.listenOnce(V.transfer_,"l",V.JSC$10229_onUploadComplete_);V.handler_.listenOnce(V.transfer_,"n",V.onUploadError_);V.transfer_.run();V.uploadPromise_=new Promise(function(l,I){V.resolve_=l;V.JSC$10227_reject_=I})};
_.B=Od.prototype;_.B.onChange_=function(V){V.files.length&&(this.JSC$10227_image_=V.files[0],this.JSC$10227_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10227_image_=null,this.dispatchEvent(new vq("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(v6W(this),(new uF(this.JSC$10227_maxAspectRatio_)).transform(this.JSC$10227_image_).then((0,_.zN)(this.onPreview_,this),(0,_.zN)(this.onPreviewError_,this))))};
_.B.onPreview_=function(V){if(V.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10227_image_=null),this.dispatchEvent(new vq("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;V.cropped&&this.dispatchEvent(new vq("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new vq("yt.comments.ImageUploadOverlay.CHANGE_EVENT",V.transformedData))};
_.B.onPreviewError_=function(){this.JSC$10227_image_=null;this.dispatchEvent(new vq("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.B.onHover_=function(V){V.stopPropagation();V.preventDefault();if(V.type==="dragover")V=!0;else if(V.type==="dragleave")V=!1;else return;this.dispatchEvent(new vq("yt.comments.ImageUploadOverlay.HOVER_EVENT",V))};
_.B.JSC$10229_onUploadComplete_=function(){var V=(0,_.HSi)(this.transfer_.getResponseText());this.resolve_(V.encryptedBlobId)};
_.B.onUploadError_=function(){this.JSC$10227_reject_();Obv(this)};var C9Z=function(V){V=V||{};var l={},I={};this.url=V.url||"";this.args=V.args||_.EL.clone(l);this.assets=V.assets||{};this.attrs=V.attrs||_.EL.clone(I);this.fallback=V.fallback||null;this.fallbackMessage=V.fallbackMessage||null;this.html5=!!V.html5;this.disable=V.disable||{};this.loaded=!!V.loaded;this.messages=V.messages||{}};
C9Z.prototype.clone=function(){var V=new C9Z,l;for(l in this)if(this.hasOwnProperty(l)){var I=this[l];V[l]=_.$Nf(I)=="object"?_.EL.clone(I):I}return V};var aXi,fXJ,g6o,Ta,ibo,VfB,l6i,I6w,HRb,TeE,BeW,xXi,UXw,n4Z,$Xv,dX3,wQb,NeJ,KbN,jeZ,YfB,LbN,eGZ,kFN,FbE,XQZ,zGw,yfZ,tfN,S8q,rfZ,GFi,E4E,JfE,o4W,hGN,P5Z,DXJ,ZRZ,Sfa,RGo,QeN,cfi,Wb3,bRN,qfW,MfN,sev,pQa,AfW,uI0,v4Z,ORo,C5b,a6N,f60,C7,g4a,mXE,iRw,VEJ,lSB,ISJ,HMZ,T9N,B9E,xoW,UoN,nkb,$oZ,doE,w0E,N9i,KGZ,jHB,DuJ,YEa,LGv,eH0,k8N,FGZ,X0Z,zHB,yNo,tEZ,rNZ,G80,EkZ,JNZ,okJ,hHW,PMa,DoJ,ZMa,SEN,RHB,QH0,cNE,WGB,bMb,qEZ;aXi=["account/accounts_list"];fXJ=["acknowledge_channel_tou_strike"];g6o=["notification/add_upcoming_event_reminder"];
_.m9Z=["att/get"];Ta=["browse","music/browse","unplugged/browse"];ibo=["channel/claim_legacy_youtube_channel"];VfB=["history/clear_search_history"];l6i=["history/clear_watch_history"];I6w=["comment/perform_comment_action"];HRb=["comment/get_comment_replies"];TeE=["ypc/commerce_action"];BeW=["backstage/create_post"];xXi=["live/create_broadcast"];UXw=["channel/create_channel"];n4Z=["comment/create_comment_reply"];$Xv=["comment/create_comment"];dX3=["live_chat/create_poll"];wQb=["playlist/create"];
NeJ=["decorate_message"];KbN=["live_chat/delete_message"];jeZ=["playlist/delete"];YfB=["video/delete"];LbN=["like/dislike"];eGZ=["dismissal/dismiss"];kFN=["flag/flag"];FbE=["flow"];XQZ=["account/account_menu"];zGw=["playlist/get_add_to_playlist"];yfZ=["get_answer"];tfN=["channel/get_channel_creation_form"];S8q=["offline/get_download_action"];rfZ=["kids/get_kids_blocklist_picker"];GFi=["live_chat/get_item_context_menu"];E4E=["live_chat/get_live_chat_message_buy_flow"];JfE=["live_chat/get_live_chat_replay"];
o4W=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];hGN=["live_chat/get_live_chat_super_sticker_buy_flow"];P5Z=["notification/get_notification_menu"];DXJ=["playlist/get_settings_editor"];ZRZ=["backstage/get_post_video_preview"];Sfa=["account/get_profile_card"];RGo=["share/get_share_panel"];QeN=["share/get_sharing_provider_data"];cfi=["get_survey"];Wb3=["notification/get_unseen_count"];bRN=["get_user_mention_suggestions"];qfW=["get_watch"];MfN=["guide"];
sev=["feedback"];pQa=["kids/update_blacklist"];AfW=["like/like"];uI0=["live_chat/live_chat_action"];v4Z=["live_chat/manage_user"];ORo=["video_manager/metadata_update"];C5b=["live_chat/moderate"];a6N=["notification/modify_channel_preference"];f60=["notification/opt_out"];C7=["get_panel","get_posts_by_host_panel"];g4a=["player"];mXE=["browse/edit_playlist"];iRw=["notification/record_interactions"];VEJ=["reel/reel_item_watch"];lSB=["reel/reel_watch_sequence"];ISJ=["like/removelike"];HMZ=["notification/remove_upcoming_event_reminder"];
T9N=["flag/get_form"];B9E=["miniapp/report_value"];xoW=["navigation/resolve_url"];UoN=["channel/reveal_business_email"];nkb=["in_video/search"];$oZ=["search","sfv/search","unplugged/search"];doE=["live_chat/send_message"];w0E=["live_chat/send_live_chat_vote"];N9i=["account/set_setting"];KGZ=["submit_caption_correction"];jHB=["subscription/subscribe"];DuJ=["get_transcript"];YEa=["resolve_location","unplugged/resolve_location"];LGv=["subscription/unsubscribe"];eH0=["backstage/update_post"];k8N=["channel_edit/update_channel_page_settings"];
FGZ=["comment/update_comment_reply"];X0Z=["comment/update_comment"];zHB=["comment/update_comments_settings"];yNo=["creator/update_creator_channel"];tEZ=["pdg/update_enablement"];rNZ=["updated_metadata"];G80=["channel_edit/validate_channel_handle"];EkZ=["verify_age"];JNZ=["next","unplugged/watch_next"];okJ=["whitelist/edit"];hHW=["ypc/cancel_recurrence"];PMa=["ypc/complete_transaction"];DoJ=["ypc/get_cart"];ZMa=["ypc/get_fix_instrument_params"];SEN=["ypc/get_offers"];RHB=["ypc/get_payment_instruments_params"];
QH0=["ypc/handle_transaction"];cNE=["ypc/log_payment_server_analytics"];WGB=["ypc/pause_subscription"];bMb=["ypc/redeem_code"];qEZ=["ypc/resume_subscription"];var MEN=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,
74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,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,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 YB=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Aq("yt.msgs_",YB);var aG=new _.Vr("ACTION_ROUTER_TOKEN");_.f7=function(){this.autonavState_=_.z("kevlar_is_pupi_enabled")?2:NQ1()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.f7.prototype.getState=function(){return this.autonavState_};
_.f7.prototype.pause=function(V){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=V):this.autonavState_==1&&(this.disabledAutonavPauseReason_=V)};
_.f7.prototype.setState=function(V,l,I){l&&(this.autoplayChangedByUser=!0);l=this.autonavState_===3||V===3;this.autonavState_!=V&&(this.autonavState_=V,V!=3&&_.Kft(V==2),V=_.z("kevlar_is_pupi_enabled")?I||l:!0,_.WF.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,V,I))};
_.f7.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Bn(_.f7);var gt=function(){this.hasRun=!1};var m1={},rzt=(m1.auto_search="LATENCY_ACTION_AUTO_SEARCH",m1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",m1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",m1.app_startup="LATENCY_ACTION_APP_STARTUP",m1.browse="LATENCY_ACTION_BROWSE",m1.cast_splash="LATENCY_ACTION_CAST_SPLASH",m1.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",m1.channels="LATENCY_ACTION_CHANNELS",m1.chips="LATENCY_ACTION_CHIPS",m1.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",m1.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
m1.editor="LATENCY_ACTION_EDITOR",m1.embed="LATENCY_ACTION_EMBED",m1.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",m1.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",m1.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",m1.explore="LATENCY_ACTION_EXPLORE",m1.favorites="LATENCY_ACTION_FAVORITES",m1.home="LATENCY_ACTION_HOME",m1.inboarding="LATENCY_ACTION_INBOARDING",m1.landing="LATENCY_ACTION_LANDING",m1.library="LATENCY_ACTION_LIBRARY",m1.live=
"LATENCY_ACTION_LIVE",m1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",m1.management="LATENCY_ACTION_MANAGEMENT",m1.mini_app="LATENCY_ACTION_MINI_APP_PLAY",m1.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",m1.onboarding="LATENCY_ACTION_ONBOARDING",m1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",m1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",m1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",m1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
m1.prebuffer="LATENCY_ACTION_PREBUFFER",m1.prefetch="LATENCY_ACTION_PREFETCH",m1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",m1.profile_switcher="LATENCY_ACTION_LOGIN",m1.projects="LATENCY_ACTION_PROJECTS",m1.reel_watch="LATENCY_ACTION_REEL_WATCH",m1.results="LATENCY_ACTION_RESULTS",m1.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",m1.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",m1.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",m1.review="LATENCY_ACTION_REVIEW",m1.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",m1.search_ui="LATENCY_ACTION_SEARCH_UI",m1.search_suggest="LATENCY_ACTION_SUGGEST",m1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",m1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",m1.seek="LATENCY_ACTION_PLAYER_SEEK",m1.settings="LATENCY_ACTION_SETTINGS",m1.store="LATENCY_ACTION_STORE",m1.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",m1.tenx="LATENCY_ACTION_TENX",m1.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",m1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
m1.watch="LATENCY_ACTION_WATCH",m1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",m1["watch,watch7"]="LATENCY_ACTION_WATCH",m1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",m1["watch,watch7ad"]="LATENCY_ACTION_WATCH",m1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",m1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",m1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",m1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",m1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",m1.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",m1.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",m1.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",m1.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",m1),qn1=0;var vb1=function(V,l){r3.call(this,1,arguments);this.timer=l};
_.t(vb1,r3);var u5K=new Hm3("aft-recorded",vb1);var obN=_.nK.ytLoggingGelSequenceIdObj_||{};_.Aq("ytLoggingGelSequenceIdObj_",obN);var iF=_.nK.ytLoggingLatencyUsageStats_||{};_.Aq("ytLoggingLatencyUsageStats_",iF);var Vx=function(){this.cleanupJob=0},DAg=function(){Vx.instance||(Vx.instance=new Vx);
return Vx.instance};
_.B=Vx.prototype;_.B.baseline=function(V,l,I){l1(this,"baseline_"+V)||_.tF("latencyActionBaselined",{clientActionNonce:V},{timestamp:l,cttAuthInfo:I})};
_.B.tick=function(V,l,I,H){l1(this,"tick_"+V+"_"+l)||_.tF("latencyActionTicked",{tickName:V,clientActionNonce:l},{timestamp:I,cttAuthInfo:H})};
_.B.info=function(V,l,I){var H=Object.keys(V).join("");l1(this,"info_"+H+"_"+l)||(V=Object.assign({},V),V.clientActionNonce=l,_.tF("latencyActionInfo",V,{cttAuthInfo:I}))};
_.B.jspbInfo=function(V,l,I){for(var H="",T=0;T<EP(V).length;T++)EP(V)[T]!==void 0&&(H=T===0?H.concat(""+T):H.concat("_"+T));l1(this,"info_"+H+"_"+l)||(_.Fm(V,2,l),l={cttAuthInfo:I},I=_.z("jspb_sparse_encoded_pivot")?new LO([{}]):new LO,_.Yn(I,7,ubB,V),hDg("latencyActionInfo",I,l))};
_.B.span=function(V,l,I){var H=Object.keys(V).join("");l1(this,"span_"+H+"_"+l)||(V.clientActionNonce=l,_.tF("latencyActionSpan",V,{cttAuthInfo:I}))};
var l1=function(V,l){iF[l]=iF[l]||{count:0};var I=iF[l];I.count++;I.time=(0,_.O_)();V.cleanupJob||(V.cleanupJob=_.et(_.r0,function(){var H=(0,_.O_)(),T;for(T in iF)iF[T]&&H-iF[T].time>6E4&&delete iF[T];V&&(V.cleanupJob=0)},5E3));
return I.count>5?(I.count===6&&Math.random()*1E5<1&&(I=new _.Yd("CSI data exceeded logging limit with key",l.split("_")),l.indexOf("plev")>=0||_.hF(I)),!0):!1};var sH0,p0E;sH0=window;p0E=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.r6=sH0.performance||sH0.mozPerformance||sH0.msPerformance||sH0.webkitPerformance||new p0E;var Az3=!1,Snf=!1,ODN=(0,_.zN)(_.r6.clearResourceTimings||_.r6.webkitClearResourceTimings||_.r6.mozClearResourceTimings||_.r6.msClearResourceTimings||_.r6.oClearResourceTimings||_.XX,_.r6);var ANi=window;ANi.ytcsi&&(ANi.ytcsi.infoGel=_.P$,ANi.ytcsi.tick=_.Z8);var xhw=function(V){r3.call(this,1,arguments);this.csn=V};
_.t(xhw,r3);var nsw=new Hm3("screen-created",xhw),tqK=[],BNw=yw3,rw1=0,W$=new Map,Uhf=new Map,nY1=new Map;var A_W=Symbol("xf"),az=new WeakMap;var I7=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},UI=function(){I7.instance||(I7.instance=new I7);
return I7.instance};
_.B=I7.prototype;_.B.setClient=function(V){this.client=V};
_.B.JSC$10309_newScreen=function(){this.clear();this.csn=_.oa()};
_.B.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.B.reportShown=function(V,l,I){var H=this.JSC$10309_getTrackingParams(V),T=V.visualElement?V.visualElement:H;l=this.shownElements.has(T);var x=this.visibleState.get(T);this.shownElements.add(T);this.visibleState.set(T,!0);V.impressionLog&&!l&&V.impressionLog();if(H||V.visualElement)if(I=uYZ(this,V,I))if(T=vkN(this,V),HV(this,V)||T){H=V.visualElement?V.visualElement:_.dj(H);var n=V.interactionLoggingClientData;T||l?HV(this,V)&4?x||eiK(this.client,I,H,n):HV(this,V)&1&&!l&&jRy(this.client,I,H,n):jRy(this.client,
I,H,n)}};
_.B.reportHidden=function(V,l,I){var H=this.JSC$10309_getTrackingParams(V),T=V.visualElement?V.visualElement:H;l=this.hiddenElements.has(T);var x=this.visibleState.get(T);this.hiddenElements.add(T);this.visibleState.set(T,!1);if(x===!1)return!0;if(!H&&!V.visualElement)return!1;I=uYZ(this,V,I);if(!I||!HV(this,V)&&vkN(this,V))return!1;H=V.visualElement?V.visualElement:_.dj(H);HV(this,V)&8?kZf(this.client,I,H):HV(this,V)&2&&!l&&(V=this.client,l=c$({cttAuthInfo:hO(I)||void 0},I),H={csn:I,ve:H.getAsJson(),
eventType:2},I==="UNDEFINED_CSN"?qJ("visualElementHidden",l,H):V?zr("visualElementHidden",H,V,l):_.tF("visualElementHidden",H,l));return!0};
_.B.JSC$10309_getTrackingParams=function(V){var l=this.getData(V),I,H;if(_.z("il_use_view_model_logging_context")&&(l==null?0:(I=l.context)==null?0:(H=I.loggingContext)==null?0:H.loggingDirectives))return l.context.loggingContext.loggingDirectives.trackingParams||"";var T,x;if(l==null?0:(T=l.rendererContext)==null?0:(x=T.loggingContext)==null?0:x.loggingDirectives)return l.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(l==null?0:l.loggingDirectives)return l.loggingDirectives.trackingParams||
"";var n;return((n=V.veContainer)==null?0:n.trackingParams)?V.veContainer.trackingParams:(l==null?void 0:l.trackingParams)||""};
_.B.JSC$10309_elementShouldLogGesture=function(V,l){V=this.getData(V);return!!((Math.floor(Number(V&&V.loggingDirectives&&V.loggingDirectives.gestures&&V.loggingDirectives.gestures.types||""))||0)&l)};
_.B.JSC$10309_getNearestParentVe=function(V){var l=this.JSC$10309_getTrackingParams(V);return V.visualElement?V.visualElement:l?_.dj(l):V.parentElement?this.JSC$10309_getNearestParentVe(V.parentElement):null};
var uYZ=function(V,l,I){var H=_.oa(I);return V.csn===null||H===V.csn||I?H:(V=new _.Yd("VisibilityLogger called before newScreen",{caller:l.tagName,previous_csn:V.csn,current_csn:H}),_.hF(V),null)};
I7.prototype.getData=function(V){var l,I=V.data||((l=V.props)==null?void 0:l.data);if(V.isWebComponentWrapper){var H;I=(H=az.get(V))==null?void 0:H[A_W]}return I};
var vkN=function(V,l){var I;return!((I=V.getData(l))==null||!I.loggingDirectives)},HV=function(V,l){V=V.getData(l);
return Math.floor(Number(V&&V.loggingDirectives&&V.loggingDirectives.visibility&&V.loggingDirectives.visibility.types||""))||1};var Ts;Ts=function(){};
_.TG=function(){Ts.instance||(Ts.instance=new Ts);return Ts.instance};
Ts.prototype.setClient=function(V){_.Zp(UI().setClient).bind(UI())(V)};
_.OMa=function(){_.TG();_.Zp(UI().JSC$10309_newScreen).bind(UI())()};
Ts.prototype.clear=function(){_.Zp(UI().clear).bind(UI())()};
Ts.prototype.reportShown=function(V,l,I){_.Zp(UI().reportShown).bind(UI())(V,l,I)};
Ts.prototype.reportHidden=function(V,l,I){return _.Zp(UI().reportHidden).bind(UI())(V,l,I)};
var bIc=function(V,l){return _.Zp(UI().JSC$10309_getTrackingParams).bind(UI())(l)},uhJ=function(V,l){return _.Zp(UI().JSC$10309_getNearestParentVe).bind(UI())(l)};var BV,CMZ;BV=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};
_.x7=function(){BV.instance||(BV.instance=new BV);return BV.instance};
BV.prototype.setClient=function(V){this.client=V};
CMZ=function(V,l,I){I=I===void 0?{}:I;_.Zp(function(){var H,T,x,n=((H=_.y(l==null?void 0:l.commandMetadata,_.mK))==null?void 0:H.rootVe)||((T=_.y(l==null?void 0:l.commandMetadata,wJZ))==null?void 0:(x=T.screenVisualElement)==null?void 0:x.uiType);if(n){H=_.y(l==null?void 0:l.commandMetadata,O7v);if(H==null?0:H.parentTrackingParams){var w=_.dj(H.parentTrackingParams);if(H.parentCsn)var N=H.parentCsn}else I.clickedVisualElement?w=I.clickedVisualElement:l.clickTrackingParams&&(w=_.dj(l.clickTrackingParams));
a:{H=_.y(l,_.vU);T=_.y(l,eHJ);if(H){if(T=jYg(H,"VIDEO")){H={token:T,videoId:H.videoId};break a}}else if(T&&(H=jYg(T,"PLAYLIST"))){H={token:H,playlistId:T.playlistId};break a}H=void 0}I=Object.assign({},{cttAuthInfo:H,parentCsn:N},I);if(_.z("expectation_logging")){var L;I.loggingExpectations=((L=_.y(l==null?void 0:l.commandMetadata,wJZ))==null?void 0:L.loggingExpectations)||void 0}_.xg(V,n,w,I)}else _.hF(new _.Yd("Error: Trying to create a new screen without a rootVeType",l))})()};
_.xg=function(V,l,I,H){H=H===void 0?{}:H;_.Zp(function(){MEN.includes(l)||(_.hF(new _.Yd("createClientScreen() called with a non-page VE",l)),l=83769);H.isHistoryNavigation||(V.forwardHistoryStack=[],V.backHistoryStack.push({rootVe:l,key:H.key||""}));V.graftQueue=[];V.stateChangedQueue=[];H.dataPromises?aS3(V,l,I,H):fSv(V,l,I,H)})()};
_.gk3=function(V,l,I){I=I===void 0?0:I;_.Zp(function(){l.then(function(H){V.pendingScreenCreation.has(I)&&V.pendingScreenFn&&V.pendingScreenFn();var T=_.oa(I),x=_.JO(I);if(T&&x){var n;(H==null?0:(n=H.response)==null?0:n.trackingParams)&&bJ(V.client,T,x,_.dj(H.response.trackingParams));var w;(H==null?0:(w=H.playerResponse)==null?0:w.trackingParams)&&bJ(V.client,T,x,_.dj(H.playerResponse.trackingParams))}})})()};
BV.prototype.graftServerVe=function(V,l,I){var H=this;return _.Zp(function(){var T=_.dj(V);_.Ug(H,T,l,I);return T})()};
_.v5q=function(V,l,I,H){return _.z("enable_client_ve_spec")&&l.clientVeSpec?(l=_.eU(l.clientVeSpec.uiType,void 0,l.clientVeSpec.elementIndex,l.clientVeSpec.clientYoutubeData,void 0,l),_.Ug(V,l,I,H)?l:null):l.trackingParams?V.graftServerVe(l.trackingParams,I,H):null};
_.BX=function(V,l,I,H){return _.Zp(function(){if(!l.veType)return _.oV(new _.Yd("Error: Trying to graft a client VE without a veType.")),null;if(l.visibilityTypes){var T=l.visibilityTypes.reduce(function(x,n){return x|n});
T={visibility:{types:String(T)}}}T=_.eU(l.veType,l.visualElement,l.elementIndex,l.clientYouTubeData,void 0,T);return _.Ug(V,T,I,H)?T:null})()};
_.Ug=function(V,l,I,H){H=H===void 0?0:H;return _.Zp(function(){if(V.pendingScreenCreation.has(H))return V.graftQueue.push([l,I]),!0;var T=_.oa(H),x=I||_.JO(H);if(T&&x){if(_.z("combine_ve_grafts")){var n=V.cachedVisualElements.get(x.toString());n?n.push(l):(V.cachedRootVisualElements.set(x.toString(),x),V.cachedVisualElements.set(x.toString(),[l]));V.attachTimeout||(V.attachTimeout=_.et(_.r0,function(){moi(V,T)},1200))}else bJ(V.client,T,x,l);
return!0}return!1})()};
_.nn=function(V,l,I){I=I===void 0?0:I;var H=V.recurringGrafts.get(I)||new Map;if(_.z("smarter_ve_dedupping"))for(var T=Array.from(H.keys()),x=0;x<T.length;x++){var n=void 0,w=void 0;var N=l;var L=T[x];L.isClientVe()&&N.isClientVe()?(n=N.getAsJson(),w=L.getAsJson(),N=n.veType!==w.veType||n.elementIndex!==w.elementIndex||n.dataElement!==w.dataElement||N.getLoggingDirectives()!==L.getLoggingDirectives()?!1:!0):N=L.veData.trackingParams!==void 0&&N.veData.trackingParams!==void 0?((w=N.veData)==null?void 0:
w.trackingParams)===((n=L.veData)==null?void 0:n.trackingParams):!1;if(N)return}else if(H.has(l))return;H.set(l,void 0);V.recurringGrafts.set(I,H);_.oa(I)==="UNDEFINED_CSN"||V.pendingScreenCreation.has(I)||_.Ug(V,l,void 0,I)};
_.$g=function(V,l,I,H){H=_.oa(H===void 0?0:H);if(!H)return!1;XdT(V.client,H,l,I);return!0};
_.dF=function(V,l,I,H){if(!l)return!1;H=_.oa(H===void 0?0:H);if(!H)return!1;XdT(V.client,H,_.dj(l),I);return!0};
_.Dt=function(V,l){var I=l.getScreenLayer&&l.getScreenLayer();if(l.visualElement)return _.$g(V,l.visualElement,void 0,I);l=bIc(_.TG(),l);return _.dF(V,l,void 0,I)};
BV.prototype.clickCommand=function(V,l,I){return _.dF(this,V.clickTrackingParams,l,I===void 0?0:I)};
BV.prototype.stateChanged=function(V,l,I){this.visualElementStateChanged(_.dj(V),l,I===void 0?0:I)};
BV.prototype.visualElementStateChanged=function(V,l,I){I=I===void 0?0:I;I===0&&this.pendingScreenCreation.has(I)?this.stateChangedQueue.push([V,l]):this.logStateChanged(V,l,I)};
BV.prototype.logStateChanged=function(V,l,I){I=I===void 0?0:I;var H=_.oa(I);V=V||_.JO(I);return H&&V?(zi1(this.client,H,V,l),!0):!1};
var aS3=function(V,l,I,H){H=H===void 0?{}:H;V.pendingScreenCreation.add(H.layer||0);V.pendingScreenFn=function(){fSv(V,l,I,H);var n=_.JO(H.layer);if(n){for(var w=_.U(V.graftQueue),N=w.next();!N.done;N=w.next())N=N.value,_.Ug(V,N[0],N[1]||n,H.layer);n=_.U(V.stateChangedQueue);for(w=n.next();!w.done;w=n.next())w=w.value,V.logStateChanged(w[0],w[1])}};
I||_.oa(H.layer)||V.pendingScreenFn();if(H.dataPromises)for(var T=_.U(H.dataPromises),x=T.next();!x.done;x=T.next())_.gk3(V,x.value,H.layer);else _.Gr(Error("yf"))},fSv=function(V,l,I,H){H=H===void 0?{}:H;
var T=void 0;H.layer||(H.layer=0);T=H.parentLayer!==void 0?H.parentLayer:H.layer;var x=_.oa(T);T=_.JO(T);var n=I||T,w;n&&(H.parentCsn!==void 0?w={clientScreenNonce:H.parentCsn,visualElement:n}:x&&x!=="UNDEFINED_CSN"&&(w={clientScreenNonce:x,visualElement:n}));var N,L=_.h6("EVENT_ID");x==="UNDEFINED_CSN"&&L&&(N={servletData:{serializedServletEventId:L}});_.z("combine_ve_grafts")&&x&&moi(V,x);_.z("no_client_ve_attach_unless_shown")&&n&&x&&NNt(n,x);try{var e=_.$hJ(V.client,l,w,H.csnToClone,H.cttAuthInfo,
N,H.implicitGestureType,void 0,H.loggingExpectations)}catch(r){_.PF(r,{rootVeType:l,rootVe:T,parentVisualElement:I,currentCsn:x,parentEl:w,csnToClone:H.csnToClone});_.Gr(r);return}_.N31(e,l,H.layer,H.cttAuthInfo);x&&x!=="UNDEFINED_CSN"&&T&&!dOf(x)&&kZf(V.client,x,T,!0);V.backHistoryStack[V.backHistoryStack.length-1]&&!V.backHistoryStack[V.backHistoryStack.length-1].csn&&(V.backHistoryStack[V.backHistoryStack.length-1].csn=e||"");_.P$({clientScreenNonce:e});_.OMa();var k=_.JO(H.layer);x&&x!=="UNDEFINED_CSN"&&
k&&(_.z("web_mark_root_visible")||_.z("music_web_mark_root_visible"))&&_.s4(e,k);V.pendingScreenCreation.delete(H.layer||0);V.pendingScreenFn=void 0;var X;(X=V.recurringGrafts.get(H.layer))==null||X.forEach(function(r,E){r?_.Ug(V,E,r,H.layer):k&&_.Ug(V,E,k,H.layer)});
iMZ(V)},iMZ=function(V){for(var l=0;l<V.afterNewScreenOneOffJobs.length;l++){var I=V.afterNewScreenOneOffJobs[l];
try{I()}catch(H){_.Gr(H)}}for(l=V.afterNewScreenOneOffJobs.length=0;l<V.afterNewScreenRecurringJobs.length;l++){I=V.afterNewScreenRecurringJobs[l];try{I()}catch(H){_.Gr(H)}}},moi=function(V,l){if(l===void 0)for(var I=nCt(),H=0;H<I.length;H++)I[H]!==void 0&&moi(V,I[H]);
else V.cachedVisualElements.forEach(function(T,x){(x=V.cachedRootVisualElements.get(x))&&_.dhy(V.client,l,x,T)}),V.cachedVisualElements.clear(),V.cachedRootVisualElements.clear(),V.attachTimeout=void 0};var wF=function(V){V=V===void 0?{layer:0}:V;this.hasRun=!1;this.createScreenConfig=V;V={};this.qRG=(V.response=!1,V.playerResponse=!1,V)};
_.t(wF,gt);wF.prototype.validate=function(V){return!(!V.data||!V.data.response&&!V.data.playerResponse)};
wF.prototype.handle=function(V){var l=_.x7(),I=this.createScreenConfig.layer;V.data.response&&V.data.response.trackingParams&&!this.qRG.response&&(l.graftServerVe(V.data.response.trackingParams,void 0,I),this.qRG.response=!0);V.data.playerResponse&&V.data.playerResponse.trackingParams&&!this.qRG.playerResponse&&(l.graftServerVe(V.data.playerResponse.trackingParams,void 0,I),this.qRG.playerResponse=!0)};var NB=function(){this.pK=_.QN();this.bG=[];this.oRY=0};
NB.prototype.processChunk=function(V){if(V){for(var l=_.U(this.bG),I=l.next();!I.done;I=l.next())I=I.value,I.validate(V)&&(I.handle(V),I.hasRun=!0);_.Z8("np"+this.oRY);this.oRY++}};var IFt,ImN;_.li=function(V,l,I,H,T,x,n){n=n===void 0?[]:n;this.buildCommandPayload=V;this.navigate=l;this.handleServiceRequest=I;this.sendAction=H;this.JSC$10350_screenManager=T;this.commandResolverMap=x;this.autoLogResolverAllowlist=n;this.pendingCommands=new Set};
IFt=function(V,l,I){var H=sbW,T=pRK,x=_.x7(),n=Vyo;I=I===void 0?[]:I;_.li.instance=new _.li(V,l,H,T,x,n,I)};
ImN=function(V,l,I){if(!V.commandResolverMap)return!1;var H=hiW(l,V.commandResolverMap);return H?((V.autoLogResolverAllowlist.some(function(T){return!!_.y(l,T)})||(I==null?0:I.forceClickLogging))&&lmo(V,l,I),H instanceof Promise?H.then(function(T){T.resolve(l,I)}):H.resolve(l,I),!0):!1};
_.li.prototype.resolveCommand=function(V,l){var I=this,H=HzB(V);if(ImN(this,V,l))return!0;if(H)return TcB(this,V,l);if(!this.buildCommandPayload)return EYg(V,"Unhandled command by buildCommandPayload"),!1;var T=this.buildCommandPayload(V,l);if(l==null?0:l.commandController)T.commandController=l.commandController;if(T.type===0){if(!this.navigate)return Jwq(V,"navigate"),!1;if(!Bcv(T.command))return EYg(V,"Page requests need to specify a url"),!1;_.z("logging_avoid_blocking_during_navigation")&&_.vFt().transition("application_navigating");
V=this.navigate(T)||[];qLN(V).then(function(){I.pendingCommands.delete(T.command)});
return!0}if(T.type===1){if(!this.handleServiceRequest)return Jwq(V,"handleServiceRequest"),!1;(l==null?0:l.forceClickLogging)&&lmo(this,T.command,l);V=this.handleServiceRequest(T);qLN(V).then(function(){I.pendingCommands.delete(T.command)});
return!0}if(T.type===2){if(!this.sendAction)return Jwq(V,"sendAction"),!1;lmo(this,T.command,l);this.sendAction(T);return!0}return!1};
var lmo=function(V,l,I){if((I==null||!I.disableClickTracking)&&V.JSC$10350_screenManager)if(l.clickTrackingParams&&_.z("log_click_with_layer_from_element_in_command_handler")){var H;I=I==null?void 0:(H=I.form)==null?void 0:H.element;V.JSC$10350_screenManager.clickCommand(l,null,I&&I.getScreenLayer&&I.getScreenLayer())}else l.clickTrackingParams?V.JSC$10350_screenManager.clickCommand(l):!_.z("disable_clicked_visual_element_in_command_handler")&&(I==null?0:I.clickedVisualElement)&&_.$g(V.JSC$10350_screenManager,
I.clickedVisualElement)},HzB=function(V){var l=!!_.y(V,_.NJ),I;
V=((I=_.y(V,_.j1))==null?void 0:I.signal)==="CLIENT_SIGNAL";return l||V},TcB=function(V,l,I){var H=_.y(l,_.NJ);
if(H)var T=(H==null?void 0:H.commands)||[];else{var x;if(((x=_.y(l,_.j1))==null?void 0:x.signal)==="CLIENT_SIGNAL"){var n;T=((n=_.y(l,_.j1))==null?void 0:n.actions)||[]}}if(T){l=_.U(T);for(T=l.next();!T.done;T=l.next()){T=T.value;try{V.resolveCommand(T,I)}catch(w){w instanceof Error&&_.Gr(w)}}return!0}EYg(l,"Could not handle the meta command");return!1},Bcv=function(V){var l;
return!((l=_.y(V==null?void 0:V.commandMetadata,_.mK))==null||!l.url)};var Kn=function(){gt.apply(this,arguments)};
_.t(Kn,gt);Kn.prototype.validate=function(V){var l,I;return!this.hasRun&&!!((l=V.data.response)==null?0:(I=l.onResponseReceivedEndpoints)==null?0:I.length)};
Kn.prototype.handle=function(V){var l=_.li.instance;V=_.U(V.data.response.onResponseReceivedEndpoints);for(var I=V.next();!I.done;I=V.next())l.resolveCommand(I.value)};var x6N,U6i,nri;
x6N=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=_.w6();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.jl=function(){U6i||(U6i=new x6N);return U6i};
nri=function(){var V=_.jl();V.miniplayerButtonActivation=!1;V.userActivation=!1;V.playlistWatchPageActivation=!1;V.productDetailsPageActivation=!1;V.miniAppPageActivation=!1;V.playablesDestPageActivation=!1;V.lockupActivation=!1;V.showMiniplayerCommandActivation=!1;V.playlistSuggestionsShelfActivation=!1;V.mediaSessionPipActivation=!1;V.watchPipActivation=!1;V.watchWhileActivation=!1;V.shortsPipActivation=!1};
_.$60=function(){var V=_.jl(),l=V.mediaSessionPipActivation,I=V.watchPipActivation,H=V.watchWhileActivation,T=V.playlistWatchPageActivation,x=V.lockupActivation,n=V.showMiniplayerCommandActivation,w=V.navigatingAwayFromWatchDeletedVideo,N=V.shortsPipActivation,L=V.playlistSuggestionsShelfActivation,e=V.productDetailsPageActivation,k=V.miniAppPageActivation,X=V.playablesDestPageActivation;return!V.miniplayerButtonActivation&&!T&&!L&&!e&&!k&&!X&&!x&&!n&&!l&&!I&&!H&&!N||w};var zF1;_.Yg=g6("FEwhat_to_watch","/",3854);_.ypw=g6("FEdownloads","/feed/downloads",42352);zF1=g6("FEmusic_offline","browse/FEmusic_offline",42352);var uB=function(V,l){l=l===void 0?[]:l;var I=I===void 0?[]:I;l=gDN.apply(null,[mac.apply(null,_.oI(l))].concat(_.oI(I)));this.store=IxT(V,void 0,l)};
uB.prototype.getState=function(){return this.store.getState()};
uB.prototype.dispatch=function(V){return this.store.dispatch(V)};
uB.prototype.subscribe=function(V){return this.store.subscribe(V)};
uB.prototype.replaceReducer=function(V){return this.store.replaceReducer(V)};
uB.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Ln=function(V,l,I){var H=l(V.getState());return V.subscribe(function(){var T=l(V.getState());if(T!==H){var x=H;H=T;I(T,x)}})};var XqT;_.K6=function(V,l,I){return _.IA({type:"REPLACE_ENTITY",payload:{entityPayload:I,entityType:V,key:l}})};
XqT=function(V){return _.IA({type:"REPLACE_ENTITIES",payload:V})};
_.h9=function(V,l,I,H){return _.IA({type:"UPDATE_ENTITY",payload:{entityPayload:I,entityType:V,key:l,mergeOption:H}})};var pdt=function(V){var l=this;V=V===void 0?[]:V;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;V.forEach(function(I){l.append(I)})};
_.B=pdt.prototype;_.B.getLength=function(){return this.totalLength};
_.B.append=function(V){var l=this.arrays.length===0?!1:(l=this.arrays[this.arrays.length-1])&&l.buffer===V.buffer&&l.byteOffset+l.length===V.byteOffset;l?(l=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(l.buffer,l.byteOffset,l.length+V.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(V);this.totalLength+=V.length};
_.B.split=function(V){for(var l=new pdt,I=new pdt,H=_.U(this.arrays),T=H.next();!T.done;T=H.next())T=T.value,V>=T.length?(l.append(T),V-=T.length):V?(l.append(new Uint8Array(T.buffer,T.byteOffset,V)),I.append(new Uint8Array(T.buffer,T.byteOffset+V,T.length-V)),V=0):I.append(T);return{headView:l,tailView:I}};
_.B.isFocused=function(V){return V>=this.arrayPos&&V<this.arrayPos+this.arrays[this.arrayIdx].length};
_.B.focus=function(V){if(!this.isFocused(V))for(V<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=V&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.B.getDataView=function(V,l){V=V===void 0?0:V;l=l===void 0?-1:l;if(!this.totalLength||!l)return new DataView(new ArrayBuffer(0));l<0&&(l=this.totalLength-V);this.focus(V);if(!(V-this.arrayPos+l<=this.arrays[this.arrayIdx].length)){var I=this.arrayIdx,H=this.arrayPos;this.focus(V+l-1);H=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-H);for(var T=0,x=I;x<=this.arrayIdx;x++)H.set(this.arrays[x],T),T+=this.arrays[x].length;this.arrays.splice(I,this.arrayIdx-I+1,H);this.arrayPos=this.arrayIdx=
0;this.focus(V)}I=this.arrays[this.arrayIdx];return new DataView(I.buffer,I.byteOffset+V-this.arrayPos,l)};
_.B.getUint8=function(V){this.focus(V);return this.arrays[this.arrayIdx][V-this.arrayPos]};(function(){var V=function(H){return new Uint8Array(H)},l=function(H){for(var T=new Uint8Array(H.length),x=0;x<H.length;x++)T[x]=H[x];
return T},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?V:l})();
var cwy=Array(1024),QRt=window.TextDecoder?new TextDecoder:void 0,bic=window.TextEncoder?new TextEncoder:void 0;var sRc=function(V){this.arrayView=V;this.pos=0;this.pendingTagAndType=-1},H4=function(V){var l=V.arrayView.getUint8(V.pos);
++V.pos;if(l<128)return l;for(var I=l&127,H=1;l>=128;)l=V.arrayView.getUint8(V.pos),++V.pos,H*=128,I+=(l&127)*H;return I},Awc=function(V,l){var I=V.pendingTagAndType;
for(V.pendingTagAndType=-1;V.pos+1<=V.arrayView.totalLength;){I<0&&(I=H4(V));var H=I>>3,T=I&7;if(H===l)return!0;if(H>l){V.pendingTagAndType=I;break}I=-1;switch(T){case 0:H4(V);break;case 1:V.pos+=8;break;case 2:H=H4(V);V.pos+=H;break;case 5:V.pos+=4}}return!1};var vYf=function(){this.pos=0;this.submessagePosStack=[];this.buf=Mqt(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},xf=function(V,l){l=V.pos+l;
if(!(V.buf.length>=l)){for(var I=V.buf.length*2;I<l;)I*=2;V.buf=Mqt(I,V.buf.subarray(0,V.pos));V.view=new DataView(V.buf.buffer,V.buf.byteOffset,V.buf.byteLength)}},B4=function(V,l){if(l>268435455){xf(V,4);
for(var I=l&1073741823,H=0;H<4;H++)V.view.setUint8(V.pos,I&127|128),I>>=7,V.pos+=1;l=Math.floor(l/268435456)}for(xf(V,4);l>127;)V.view.setUint8(V.pos,l&127|128),l>>=7,V.pos+=1;V.view.setUint8(V.pos,l);V.pos+=1};for(var OiN={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},uac={},d6b=_.U(Object.entries(OiN)),w7b=d6b.next();!w7b.done;w7b=d6b.next()){var Nc3=_.U(w7b.value),KaJ=Nc3.next().value,jDJ=Nc3.next().value,Yu0=KaJ,LaZ=jDJ;LaZ&&(uac[LaZ]=Yu0)};var aaN=function(V,l){V=V===void 0?{}:V;switch(l.type){case "ENTITY_LOADED":return l.payload.reduce(function(H,T){var x,n=(x=T.options)==null?void 0:x.persistenceOption;if(n&&n!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&n!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return H;if(!T.entityKey)return _.Gr(Error("Af")),H;if(T.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!T.payload)return T=new _.Yd("REPLACE entity mutation is missing a payload",{entityKey:T.entityKey}),_.Gr(T),H;var w=(0,_.EL.getAnyKey)(T.payload);
return gYy(H,w,T.entityKey,T.payload[w])}if(T.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{T=T.entityKey;try{var N=_.TV(T).entityType;w=gYy(H,N,T);break a}catch(k){if(k instanceof Error){T=new _.Yd("Failed to deserialize entity key",{entityKey:T,originalMessage:k.message});_.Gr(T);w=H;break a}throw k;}w=void 0}return w}if(T.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!T.payload)return T=new _.Yd("UPDATE entity mutation is missing a payload",{entityKey:T.entityKey}),_.Gr(T),H;w=(0,_.EL.getAnyKey)(T.payload);
var L,e;return mht(H,w,T.entityKey,T.payload[w],(L=T.fieldMask)==null?void 0:(e=L.mergeOptions)==null?void 0:e.repeatedFieldsMergeOption)}return H},V);
case "REPLACE_ENTITY":var I=l.payload;return gYy(V,I.entityType,I.key,I.entityPayload);case "REPLACE_ENTITIES":return Object.keys(l.payload).reduce(function(H,T){var x=l.payload[T];return Object.keys(x).reduce(function(n,w){return gYy(n,T,w,x[w])},H)},V);
case "UPDATE_ENTITY":return I=l.payload,mht(V,I.entityType,I.key,I.entityPayload,I.mergeOption);default:return V}};var iiN;var eSa=!1,el,kg,Fc,Xc,zs,k9B=function(V){_.XG.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!eSa){var l,I=new Uint8Array(256),H=new Uint8Array(256);var T=1;for(l=0;l<256;l++)I[T]=l,H[l]=T,T^=T<<1^(T>>7&&283);el=new Uint8Array(256);kg=$f(256);Fc=$f(256);Xc=$f(256);zs=$f(256);for(var x=0;x<256;x++){T=x?H[255^I[x]]:0;T^=T<<1^T<<2^T<<3^T<<4;T=T&255^T>>>8^99;el[x]=T;l=T<<1^(T>>7&&283);var n=l^T;kg[x]=l<<24|T<<16|T<<8|n;Fc[x]=n<<24|kg[x]>>>8;Xc[x]=T<<24|Fc[x]>>>
8;zs[x]=T<<24|Xc[x]>>>8}eSa=!0}T=$f(44);for(I=0;I<4;I++)T[I]=V[4*I]<<24|V[4*I+1]<<16|V[4*I+2]<<8|V[4*I+3];for(H=1;I<44;I++)V=T[I-1],I%4||(V=(el[V>>16&255]^H)<<24|el[V>>8&255]<<16|el[V&255]<<8|el[V>>>24],H=H<<1^(H>>7&&283)),T[I]=T[I-4]^V;this.key=T};
_.t(k9B,_.XG);
k9B.prototype.encrypt=function(V){var l=V.length;V=new Uint8Array(V.buffer.slice(V.byteOffset,V.byteOffset+l));for(var I=this.cipherBlock,H=0;H<l&&this.blockOffset<16;)V[H++]^=I[this.blockOffset++];for(var T=l-(l-H)%16;H<T;)Fa3(this),V[H++]^=I[0],V[H++]^=I[1],V[H++]^=I[2],V[H++]^=I[3],V[H++]^=I[4],V[H++]^=I[5],V[H++]^=I[6],V[H++]^=I[7],V[H++]^=I[8],V[H++]^=I[9],V[H++]^=I[10],V[H++]^=I[11],V[H++]^=I[12],V[H++]^=I[13],V[H++]^=I[14],V[H++]^=I[15];if(H<l)for(Fa3(this),this.blockOffset=0;H<l;)V[H++]^=
I[this.blockOffset++];return V};
var X7W=function(V,l){for(var I=0;I<4;I++)V.counter[I]=l[I*4]<<24|l[I*4+1]<<16|l[I*4+2]<<8|l[I*4+3];V.blockOffset=16},Fa3=function(V){for(var l=V.key,I=V.counter[0]^l[0],H=V.counter[1]^l[1],T=V.counter[2]^l[2],x=V.counter[3]^l[3],n=3;n>=0&&!(V.counter[n]=-~V.counter[n]);n--);
for(var w,N,L=4;L<40;)n=kg[I>>>24]^Fc[H>>16&255]^Xc[T>>8&255]^zs[x&255]^l[L++],w=kg[H>>>24]^Fc[T>>16&255]^Xc[x>>8&255]^zs[I&255]^l[L++],N=kg[T>>>24]^Fc[x>>16&255]^Xc[I>>8&255]^zs[H&255]^l[L++],x=kg[x>>>24]^Fc[I>>16&255]^Xc[H>>8&255]^zs[T&255]^l[L++],I=n,H=w,T=N;V=V.cipherBlock;n=l[40];V[0]=el[I>>>24]^n>>>24;V[1]=el[H>>16&255]^n>>16&255;V[2]=el[T>>8&255]^n>>8&255;V[3]=el[x&255]^n&255;n=l[41];V[4]=el[H>>>24]^n>>>24;V[5]=el[T>>16&255]^n>>16&255;V[6]=el[x>>8&255]^n>>8&255;V[7]=el[I&255]^n&255;n=l[42];
V[8]=el[T>>>24]^n>>>24;V[9]=el[x>>16&255]^n>>16&255;V[10]=el[I>>8&255]^n>>8&255;V[11]=el[H&255]^n&255;n=l[43];V[12]=el[x>>>24]^n>>>24;V[13]=el[I>>16&255]^n>>16&255;V[14]=el[H>>8&255]^n>>8&255;V[15]=el[T&255]^n&255};var zSJ=!1;(function(){var V=function(H){return new Uint8Array(H)},l=function(H){for(var T=new Uint8Array(H.length),x=0;x<H.length;x++)T[x]=H[x];
return T},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?V:l})();
var yx;var y7B=function(V){this.JSC$10417_aesKey=V};
y7B.prototype.encrypt=function(V,l){var I=this,H,T;return _.d(function(x){if(x.nextAddress==1){a:{if(!zSJ&&!_.Ml){if(yx){var n=yx;break a}yx=(n=window.crypto)==null?void 0:n.subtle;var w,N,L;if(((w=yx)==null?0:w.importKey)&&((N=yx)==null?0:N.sign)&&((L=yx)==null?0:L.encrypt)){n=yx;break a}yx=void 0}n=void 0}H=n;if(!H)return x.return(tyJ(I,V,l));_.jd(x,3);return _.K(x,r70(I,V,l,H),5)}if(x.nextAddress!=3)return x.return(x.yieldResult);T=_.kE(x);_.hF(T);zSJ=!0;return x.return(tyJ(I,V,l))})};
var r70=function(V,l,I,H){var T,x;return _.d(function(n){switch(n.nextAddress){case 1:if(V.cryptoKey){n.jumpTo(2);break}return _.K(n,H.importKey("raw",V.JSC$10417_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:V.cryptoKey=n.yieldResult;case 2:return T={name:"AES-CTR",counter:I,length:128},_.K(n,H.encrypt(T,V.cryptoKey,l),4);case 4:return x=n.yieldResult,n.return(new Uint8Array(x))}})},tyJ=function(V,l,I){V.encryptorPolyfill||(V.encryptorPolyfill=new k9B(V.JSC$10417_aesKey));
X7W(V.encryptorPolyfill,I);return V.encryptorPolyfill.encrypt(l)},G9N=function(V){this.JSC$10421_aesKey=V};
G9N.prototype.encrypt=function(V,l){this.encryptor||(this.encryptor=new k9B(this.JSC$10421_aesKey));X7W(this.encryptor,l);return this.encryptor.encrypt(V)};var ErB={},I0c=vx("yt-idb-pref-storage",{objectStores:(ErB.prefs={addedAtVersion:1},ErB),shared:!1,upgrade:function(V,l){l(1)&&ZB(DB(V,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.tt=function(V){this.token=V};
_.tt.getInstance=function(){return _.d(function(V){return V.return(new Promise(function(l){_.u2().then(function(I){I?(_.tt.instance||(_.tt.instance=new _.tt(I)),l(_.tt.instance)):l(void 0)})}))})};
_.tt.prototype.get=function(V){var l=this,I,H,T;return _.d(function(x){if(x.nextAddress==1)return _.K(x,H7f(l.token),2);if(x.nextAddress!=3)return I=x.yieldResult,_.K(x,I.get("prefs",V),3);H=x.yieldResult;if(!H)return x.return();T=(0,_.O_)();return H.expirationTimestampMs<=T?x.return():x.return(H.value)})};
_.tt.prototype.set=function(V,l,I){I=I===void 0?31536E3:I;var H=this,T,x,n;return _.d(function(w){if(w.nextAddress==1)return T=(0,_.O_)(),x={key:V,value:l,expirationTimestampMs:T+I*1E3},_.K(w,H7f(H.token),2);n=w.yieldResult;return _.K(w,n.put("prefs",x),0)})};
_.tt.prototype.remove=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,H7f(l.token),2);I=H.yieldResult;return _.K(H,I.delete("prefs",V),0)})};var rF={},J7N=(rF.INVALID_ENCODER_VERSION="Invalid encoder version",rF.KEY_CREATION_FAILED="Failed to create encoder key",rF.UNKNOWN_DECODE_ERROR="Failed to decode PES data",rF.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",rF.WRONG_DATA_TYPE="Encoder cannot process the data type",rF),wJ=function(V,l){l=l===void 0?{}:l;_.Yd.call(this,J7N[V],Object.assign({},{name:"PESEncoderError",type:V},l));this.type=V;this.level="WARNING";Object.setPrototypeOf(this,wJ.prototype)};
_.t(wJ,_.Yd);var orb=function(){},hSv=function(V,l,I){try{return V.encodeImpl(l,I)}catch(H){U$c(H,Btq)}},PLb=function(V,l,I){var H;
return _.d(function(T){if(T.nextAddress==1)return _.jd(T,2),_.K(T,V.decodeAsyncImpl(l,I),4);if(T.nextAddress!=2)return T.return(T.yieldResult);H=_.kE(T);U$c(H,x$y);_.FU(T)})};
orb.prototype.decodeAsyncImpl=function(V,l){return Promise.resolve(this.decodeImpl(V,l))};var Gs=function(V,l){this.aesEncryptor=V;this.aesEncryptorAsync=l};
_.t(Gs,orb);Gs.prototype.encodeImpl=function(V,l){l=nUt(l);V=(new TextEncoder).encode(JSON.stringify(V));return this.aesEncryptor.encrypt(V,l)};
Gs.prototype.decodeImpl=function(V,l){if(!(V instanceof Uint8Array))throw Tt1(1);var I=new TextDecoder;l=nUt(l);V=this.aesEncryptor.encrypt(V,l);return JSON.parse(I.decode(V))};
Gs.prototype.decodeAsyncImpl=function(V,l){var I=this,H,T,x;return _.d(function(n){if(n.nextAddress==1){if(!(V instanceof Uint8Array))throw Tt1(1);H=new TextDecoder;T=nUt(l);return _.K(n,I.aesEncryptorAsync.encrypt(V,T),2)}x=n.yieldResult;return n.return(JSON.parse(H.decode(x)))})};var $$T={accountLinkStatusEntity:zNE,booleanEntity:m_B,buttonEntity:At3,captionTrack:CWB,channelHandle:M3Z,commerceAcquisitionClientPayloadEntity:KhJ,commerceCartListEntity:jUo,contextNoteFeedEntityPayload:CUJ,continuationTokenEntity:DAv,downloadQualityPickerEntity:XJB,downloadsPageRefreshTokenEntity:yzE,downloadsPageViewConfigurationEntity:MS3,downloadStatusEntity:zDw,dismissState:P1Z,sfvAudioItemCurrentlyPlayingEntity:EUW,emojiFountainDataEntity:Ml0,emojiCustomizationSetEntity:qgN,fakeChannel:lj0,
fakePlaylist:IjB,fakePlaylistEntryCollection:HhN,fakeVideo:B3Z,fakeVideoDescription:xOB,featuredProductsEntity:BNE,flowStateEntity:eNZ,iconBadgeEntity:YpN,interstitialInteractionStateEntity:qma,likeButtonAnimationEntity:sYo,liveChatPollStateEntity:CDb,liveViewerLeaderboardChatEntryPointStateEntity:nUN,liveViewerLeaderboardPointsEntity:$$J,liveReactionsDataEntity:s7b,logoEntity:c4o,macroMarkerEntity:pJE,mainDownloadsLibraryEntity:tSJ,mainDownloadsListEntity:rzN,mainPlaylistDownloadStateEntity:EbJ,
mainPlaylistEntity:ZD3,mainPlaylistVideoEntity:Sna,mainVideoDownloadStateEntity:Jzi,mainVideoEntity:WfW,markersEngagementPanelSyncEntity:AzW,markersVisibilityOverrideEntity:u5Z,musicAlbumReleaseDetail:Lki,musicAlbumReleaseDownloadMetadataEntity:wdv,musicAlbumRelease:YMZ,musicAlbumReleaseUserDetail:eiZ,musicArtistDetail:Fka,musicArtist:kZa,musicArtistUserDetail:XdJ,musicDownloadsLibraryEntity:NNN,musicLibraryEdit:zii,musicLibraryStatusEntity:ywW,musicPlaylist:tqZ,musicPlaylistDownloadMetadataEntity:KkB,
musicShare:GZZ,musicTrackDetail:JwN,musicTrackDownloadMetadataEntity:jRw,musicTrack:EYv,musicTrackUserDetail:oY3,offlineOrchestrationActionWrapperEntity:aaZ,offlineVideoPolicy:faB,offlineVideoStreams:gYw,offlineabilityEntity:obZ,orchestrationWebSamplingEntity:hDv,pageHeaderEntity:SgJ,pdpStateEntity:LhZ,pinnedProductEntity:xhE,playbackData:mhN,playerStateEntity:vbB,quantityIncrementerEntity:ela,refresh:iiZ,saveToPlaylistListEntity:CFw,settingEntity:K8N,stringEntity:iHB,suggestedFeedbackChipStateEntity:ODZ,
transfer:VKb,trendingOfferEntity:Uha,videoDownloadContextEntity:l00,videoOverviewAsyncDataEntity:sUW,videoPlaybackPositionEntity:OnZ,votingEntity:Q7J,ytMainChannelEntity:bDi,youchatPendingResponseEntity:Cc0,ytMainDownloadedVideoEntity:Pcb,ytMainVideoEntity:qnB};var D6Z,SuZ,LW,epy,kjt,c7b,bzZ,WaN,QDW;D6Z=function(V,l){this.JSC$10440_wrapped=V;this.JSC$10440_encoderRegistry=l;this.changedKeys={}};
SuZ=function(V,l){a:{V=ZzN(V.JSC$10440_encoderRegistry,l.version);try{var I=V.decodeImpl(l.data,l.key);break a}catch(H){U$c(H,x$y)}I=void 0}return I};
_.RSi=function(V,l,I){return V.JSC$10440_wrapped.objectStore("EntityStore").get(l).then(function(H){if(H){if(I&&H.entityType!==I)throw Error("Bf");return SuZ(V,H)}})};
LW=function(V,l,I){return I?(I=I.map(function(H){return _.RSi(V,H,l)}),Px.all(I)):V.JSC$10440_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(l)).then(function(H){return H.map(function(T){return SuZ(V,T)})})};
_.L1w=function(V,l,I){var H=CW1(l),T=ZzN(V.JSC$10440_encoderRegistry,1),x=Object.assign({},l);return V.JSC$10440_wrapped.objectStore("EntityStore").get(H).then(function(n){if(n){if(n.entityType!==I)throw Error("Bf");x.entityMetadata||(n=SuZ(V,n),x.entityMetadata=n.entityMetadata)}}).then(function(){var n={key:H,
entityType:I,data:hSv(T,x,H),version:1};return Px.all([V.JSC$10440_wrapped.objectStore("EntityStore").put(n),QDW(V,x,I)])}).then(function(){c7b(V,H,I);
return H})};
epy=function(V,l){var I=_.TV(l).entityType;return Px.all([V.JSC$10440_wrapped.objectStore("EntityStore").delete(l),WaN(V,l)]).then(function(){c7b(V,l,I)})};
kjt=function(V,l,I,H){var T=ZzN(V.JSC$10440_encoderRegistry,1);return _.RSi(V,l,H).then(function(x){if(x){x=Ric(x,I);var n={key:l,entityType:H,data:hSv(T,x,l),version:1};return Px.all([V.JSC$10440_wrapped.objectStore("EntityStore").put(n),QDW(V,x,H)])}}).then(function(){c7b(V,l,H);
return l})};
c7b=function(V,l,I){var H=V.changedKeys[I];H||(H=new Set,V.changedKeys[I]=H);H.add(l)};
bzZ=function(V,l,I){var H=CW1(l);I=d$3(I);if(!I)return Px.resolve([]);I=new I(l);V=V.JSC$10440_wrapped.objectStore("EntityAssociationStore");l=[];I=_.U(I.getAssociations());for(var T=I.next();!T.done;T=I.next())l.push(V.put({parentEntityKey:H,childEntityKey:T.value}));return Px.all(l).then(function(x){return x.map(function(n){return n[1]})})};
WaN=function(V,l){return V.JSC$10440_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(l))};
QDW=function(V,l,I){var H=CW1(l);return WaN(V,H).then(function(){return bzZ(V,l,I)})};var qua=function(){};
_.t(qua,orb);qua.prototype.encodeImpl=function(V){return V};
qua.prototype.decodeImpl=function(V){if(V instanceof Uint8Array)throw Tt1(0);return V};var K1c=function(){this.cacheMap={};this.cacheMap[0]=new qua;if(!_.z("aes_pes_encoder_killswitch")){var V=this.cacheMap;try{var l=_.KA();var I=nUt(l);var H=new Gs(new G9N(I),new y7B(I))}catch(T){throw V=T instanceof Error?new wJ("KEY_CREATION_FAILED",{originalMessage:T.message}):new wJ("KEY_CREATION_FAILED"),_.Gr(V),V;}V[1]=H}},ZzN=function(V,l){l=l===void 0?0:l;
V=V.cacheMap[l];if(!V)throw l=new wJ("INVALID_ENCODER_VERSION",{encoderVersion:l}),_.Gr(l),l;return V};var KW=function(V,l){_.XG.call(this);this.token=V;this.JSC$10454_encoderRegistry=l;this.observers=[];V=new _.nK.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.KA());V.onmessage=this.handleMessage.bind(this);this.channel=V};
_.t(KW,_.XG);_.Yf=function(V,l,I){var H,T,x,n;return _.d(function(w){if(w.nextAddress==1)return _.K(w,l0J(V.token),2);if(w.nextAddress!=3)return H=w.yieldResult,_.K(w,_.Wx(H,["EntityStore","EntityAssociationStore"],l,function(N){T=new D6Z(N,V.JSC$10454_encoderRegistry);return I(T)}),3);
x=w.yieldResult;T&&(n=T.changedKeys,Object.keys(n).length>0&&(V.channel.postMessage(n),MyZ(V,n)));return w.return(x)})};
KW.prototype.observe=function(V){var l=this;this.observers.push(V);return function(){var I=l.observers.indexOf(V);I>=0&&l.observers.splice(I,1)}};
var v8y=function(V){var l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,_.Yf(V,{mode:"readonly",enableRetries:!0},function(H){return H.JSC$10440_wrapped.objectStore("EntityStore").getAll()}),2);
l=I.yieldResult;return I.return(Promise.all(l.filter(function(H){return!!H}).map(function(H){var T,x;
return _.d(function(n){if(n.nextAddress==1){T=H.key;x=H.entityType;var w=PLb(ZzN(V.JSC$10454_encoderRegistry,H.version),H.data,H.key);return _.K(n,w,2)}return n.return({key:T,entityType:x,data:n.yieldResult})})})))})};
KW.prototype.handleMessage=function(V){MyZ(this,V.data)};
var MyZ=function(V,l){V=_.U(V.observers);for(var I=V.next();!I.done;I=V.next())I=I.value,I(l)};
KW.prototype.disposeInternal=function(){this.channel.close()};
var wqN;var Eg,p7J,Ygf,W11;Eg={};_.sDB=(Eg.mainVideoEntity="mainVideoEntityActionMetadata",Eg.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Eg.musicTrack="musicTrackEntityActionMetadata",Eg.musicPlaylist="musicPlaylistEntityActionMetadata",Eg);p7J=new _.Vr("DOWNLOADS_ENTITY_TYPE_MAP");Ygf=_.Ul("","downloadsPageViewConfigurationEntity");W11=_.Ul("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.ksq=_.Ul("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Ul("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Ul("SMART_DOWNLOADS_ENABLED","settingEntity");_.Ul("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var tKt=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var PFJ=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var BFK={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var ht,Tdf,g7Z,u_K;ht=window;_.QH=ht.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.Ypt=ht.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.sl;Tdf=ht.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||EJ;g7Z=ht.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||fAZ;_.A7Z=ht.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.Kc0;u_K=ht.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||LcZ;qr({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 k4T=BdK(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(V){return V}}}),dd3=BdK(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(V){return V}}}),$9f=new Map;var Xf3=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],jUc;var uAZ=function(V){return _.IA({type:"SET_EPHEMERAL_ACTION",payload:V})};var vrW={ephemeralAction:null};var OzB={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var pf1={sharedUi:function(V,l){V=V===void 0?OzB:V;switch(l.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},V,{animatedThumbnailEnabled:l.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},V,{inlinePreviewEnabled:l.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},V,{currentPageType:l.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},V,{currentPageSubType:l.payload});default:return V}},
a11y:dS({ephemeralAction:function(V,l){V=V===void 0?vrW.ephemeralAction:V;switch(l.type){case "SET_EPHEMERAL_ACTION":return l.payload;default:return V}}})};var QUy=dS({isLeaderTab:function(V,l){V=V===void 0?!0:V;switch(l.type){case "SET_IS_LEADER_TAB":var I,H;return(H=l==null?void 0:(I=l.payload)==null?void 0:I.isLeaderTab)!=null?H:V;default:return V}}});var CLN=function(V){return _.IA({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:V}})};var sU3=dS({isDesktopSmallWidth:function(V,l){switch(l.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return l.payload.isDesktopSmallWidth;default:return V===void 0?!1:V}},
isShortsActive:function(V,l){switch(l.type){case "SET_IS_SHORTS_ACTIVE":return l.payload.isShortsActive;default:return V===void 0?!1:V}},
isWatchWhileMode:function(V,l){switch(l.type){case "SET_IS_WATCH_WHILE_MODE":return l.payload.isWatchWhileMode;default:return V===void 0?!1:V}},
playerState:function(V,l){switch(l.type){case "SET_PLAYER_STATE":return l.payload.playerState;default:return V===void 0?-1:V}},
isFullscreen:function(V,l){switch(l.type){case "SET_IS_FULLSCREEN":return l.payload.isFullscreen;default:return V===void 0?!1:V}},
isSmallScreenSqueezeback:function(V,l){switch(l.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return l.payload.isSmallScreenSqueezeback;default:return V===void 0?!1:V}},
isShortsPipActive:function(V,l){switch(l.type){case "SET_IS_SHORTS_PIP_ACTIVE":return l.payload.isShortsPipActive;default:return V===void 0?!1:V}},
isPlaybackStarted:function(V,l){switch(l.type){case "SET_IS_PLAYBACK_STARTED":return l.payload.isPlaybackStarted;default:return V===void 0?!1:V}}});var E61={playlistId:"",inviteLinkURL:""};var amb={};var Rl1=dS({continuationCommand:function(V,l){V=V===void 0?amb:V;switch(l.type){case "SET_CONTINUATION_COMMAND":return l.payload.continuationCommand;default:return V}}});var uB1=function(){return function(V){return function(l){var I=V(l);_.xB(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[l],!0);return I}}};var fmZ;fmZ=new _.IQ;_.fa=new _.Vr("WATCH_PLAYER_PROMISE_TOKEN");_.gri=new _.IQ;_.m6N=new _.Vr("SHORTS_PLAYER_PROMISE_TOKEN");_.lP=new _.Vr("");var v63=function(){return function(V){return function(l){l.type==="ENTITY_LOADED"&&_.F().resolve(_.fa).then(function(I){var H;(H=I.dispatchReduxAction)==null||H.call(I,l)});
return V(l)}}};var o6t={currentFormId:"",commandsMap:{}};var izW={};var cMg=dS({additionalContext:function(V,l){switch(l.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var I;return(I=l.payload)!=null?I:"";default:return V===void 0?"":V}},
impersonatedChannelUrl:function(V,l){switch(l.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var I;return(I=l.payload)!=null?I:"";default:return V===void 0?"":V}},
selectedVideoIds:function(V,l){V=V===void 0?izW:V;switch(l.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var I={};return Object.assign({},V,(I[l.payload]=!0,I));case "VIDEO_UNSELECTED":return l=l.payload,V=Object.assign({},V),delete V[l],V;default:return V}}});var Why=dS({parentClickTrackingParams:function(V,l){switch(l.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return l.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return V===void 0?"":V}}});var VAW=function(V){return _.IA({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:V})};var l5o={};var bby=dS({stepStates:function(V,l){V=V===void 0?l5o:V;switch(l.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var I=V,H=l.payload,T,x,n;V={};l={selectionStates:Object.assign({},(n=(T=I[H.stepId])==null?void 0:T.selectionStates)!=null?n:{},(V[H.token]={isSelected:H.isSelected},V)),userQuery:(x=I[H.stepId])==null?void 0:x.userQuery};T={};return Object.assign({},I,(T[H.stepId]=l,T));case "TALK_TO_RECS_UPDATE_USER_QUERY":return T=V,x=l.payload,n={selectionStates:Object.assign({},
(H=(I=T[x.stepId])==null?void 0:I.selectionStates)!=null?H:{}),userQuery:{userQuery:x.userQuery,token:x.userQueryToken}},I={},Object.assign({},T,(I[x.stepId]=n,I));default:return V}}});var I5J,HwE;I5J=function(V){return _.IA({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:V})};
HwE=function(V){return _.IA({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:V})};
_.Zk=function(V){return _.IA({type:"SET_CURRENT_PAGE_TYPE",payload:V})};
_.TMi=function(V){return _.IA({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:V})};var P9c={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"};_.BMw=function(V){return _.IA({type:"SET_PLAYER_STATE",payload:{playerState:V}})};var xCZ=[],UCZ={width:0,height:0};var qp1=dS({isTheaterMode:function(V,l){V=V===void 0?_.PO("START_IN_THEATER_MODE"):V;switch(l.type){case "SET_IS_THEATER_MODE":return l.payload.isTheaterMode;default:return V}},
isWatchActive:function(V,l){switch(l.type){case "SET_IS_WATCH_ACTIVE":return l.payload.isWatchActive;default:return V===void 0?!1:V}},
isWatchFullscreen:function(V,l){switch(l.type){case "SET_IS_WATCH_FULLSCREEN":return l.payload.isWatchFullscreen;default:return V===void 0?!1:V}},
isWatchNarrowWidth:function(V,l){switch(l.type){case "SET_IS_WATCH_NARROW_WIDTH":return l.payload.isWatchNarrowWidth;default:return V===void 0?!1:V}},
isWatchRetroMode:function(V,l){switch(l.type){case "SET_IS_WATCH_RETRO_MODE":return l.payload.isWatchRetroMode;default:return V===void 0?!1:V}},
isLiveChatCollapsed:function(V,l){switch(l.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return l.payload.isLiveChatCollapsed;default:return V===void 0?!1:V}},
openEngagementPanels:function(V,l){V=V===void 0?xCZ:V;var I=[].concat(_.oI(V));switch(l.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return I.push(l.payload.panelToAdd),I;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return I.splice(I.indexOf(l.payload.panelToRemove),1),I;default:return V}},
playerState:function(V,l){switch(l.type){case "SET_PLAYER_STATE":return l.payload.playerState;default:return V===void 0?-1:V}},
watchScrollTop:function(V,l){switch(l.type){case "SET_WATCH_SCROLL_TOP":return l.payload.watchScrollTop;default:return V===void 0?0:V}},
watchWindowSize:function(V,l){V=V===void 0?UCZ:V;switch(l.type){case "SET_WATCH_WINDOW_SIZE":return l.payload.watchWindowSize;default:return V}}});var nQN={feedbackTokens:[]};var MWt=dS({surveyFeedbackData:function(V,l){V=V===void 0?nQN:V;switch(l.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return l.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},V,l.payload);default:return V}}});var ZbJ={};var C9N=void 0;_.z("web_enable_redux_store_on_demand")||(C9N=Obg());var $CB=function(V,l,I){var H=this;this.listId=V;this.JSC$10587_updateCallback=l;this.isOfflineVideoCallback=I;_.v4().subscribe(function(){H.handleUpdate()})};
$CB.prototype.getPlaylistData=function(){var V=_.v4().getState().entities;if(this.listId&&this.listId!=="PPSV"){var l=CFy(V,this.listId,!0),I=_.Ul(this.listId,"mainPlaylistEntity"),H,T;V=V==null?void 0:(H=V.mainPlaylistEntity)==null?void 0:(T=H[I])==null?void 0:T.title;return aX1(l,V,this.listId)}l=_.D$W(ytJ(V));V=_.D$W(_.rJ(V));return aX1(l.concat(V))};
$CB.prototype.getPlaylistId=function(){return this.listId};
$CB.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10587_updateCallback(this.listId,this.getPlaylistData(),{})};var PV=function(V,l,I,H){H=H===void 0?[]:H;this.JSC$10590_playlistNetworkManager=V;this.listId=l;this.JSC$10590_updateCallback=I;this.videoIds=H;this.pendingUpdates=[];this.currentIndex=0};
PV.prototype.JSC$10590_setCurrentIndex=function(V){this.currentIndex=V};
PV.prototype.setListId=function(V){this.listId=V};
var dCi=function(V,l){V.currentCreateRequest&&V.currentCreateRequest.cancel(l);V.currentUpdateRequest&&V.currentUpdateRequest.cancel(l);V.currentRefreshRequest&&V.currentRefreshRequest.cancel(l)};
PV.prototype.delete=function(){dCi(this,"PROXY DELETED")};
PV.prototype.addVideos=function(V,l,I){var H=this;I!==void 0?this.videoIds.splice.apply(this.videoIds,[I,0].concat(_.oI(V))):this.videoIds.push.apply(this.videoIds,_.oI(V));this.listId||this.currentCreateRequest?(V.forEach(function(T,x){T={addedVideoId:T,action:"ACTION_ADD_VIDEO"};I&&(T.addedVideoPosition=I+x);H.pendingUpdates.push(T)}),D$(this)):wBZ(this,l.onCreateListCommand)};
var NMo=function(V,l,I,H,T){ht1(V.videoIds,l,I);l>V.currentIndex&&I<=V.currentIndex?V.JSC$10590_setCurrentIndex(V.currentIndex+1):l===V.currentIndex?V.JSC$10590_setCurrentIndex(I):l<V.currentIndex&&I>=V.currentIndex&&V.JSC$10590_setCurrentIndex(V.currentIndex-1);V.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:H,movedSetVideoIdPredecessor:T});D$(V)},wBZ=function(V,l){dCi(V,"OBSOLETE");
V.currentCreateRequest=KQJ(V.JSC$10590_playlistNetworkManager,l,V.videoIds);_.Jm(V.currentCreateRequest,function(){V.currentCreateRequest=void 0}).then(function(I){V.setListId(I.playlistId);
V.pendingUpdates.length>0?D$(V):j_o(V)})},D$=function(V){if(V.pendingUpdates.length!==0&&(V.currentRefreshRequest&&V.currentRefreshRequest.cancel("OBSOLETE"),!V.currentUpdateRequest&&!V.currentCreateRequest)){var l=V.pendingUpdates.splice(0,V.pendingUpdates.length);
V.currentUpdateRequest=V.JSC$10590_playlistNetworkManager.updatePlaylist(V.listId,l);_.Jm(V.currentUpdateRequest,function(){V.currentUpdateRequest=void 0}).then(function(){V.pendingUpdates.length>0?D$(V):j_o(V)}).thenCatch(function(){V.pendingUpdates.unshift.apply(V.pendingUpdates,_.oI(l))})}},j_o=function(V){V.currentRefreshRequest=_.Y5w(V.JSC$10590_playlistNetworkManager,V.listId,V.currentIndex,V.videoIds[V.currentIndex]);
_.Jm(V.currentRefreshRequest,function(){V.currentRefreshRequest=void 0}).then(function(l){V.JSC$10590_updateCallback(l.playlistId,l.playlistPanelRenderer,l.autoplayRenderer)})};
PV.prototype.size=function(){return this.videoIds.length};var LQJ=function(V,l,I,H){H=H===void 0?[]:H;PV.call(this,V,l,I,H);this.JSC$10590_playlistNetworkManager=V;this.listId=l;this.JSC$10590_updateCallback=I;this.videoIds=H};
_.t(LQJ,PV);_.Z$=function(V,l,I,H,T,x,n){T=T===void 0?[]:T;n=n===void 0?UR:n;PV.call(this,V,l,I,T);this.JSC$10590_playlistNetworkManager=V;this.listId=l;this.JSC$10590_updateCallback=I;this.onAuthChange=H;this.videoIds=T;this.storage=x;this.cookieReader=n;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.vX(_.r0,this.checkLoggedInStatusChange.bind(this),1E3)};
_.t(_.Z$,PV);_.B=_.Z$.prototype;_.B.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.vX(_.r0,this.checkLoggedInStatusChange.bind(this),1E3)};
_.B.JSC$10590_setCurrentIndex=function(V){PV.prototype.JSC$10590_setCurrentIndex.call(this,V);this.store()};
_.B.delete=function(){_.r0.cancelJob(this.queueSapisIdJob);PV.prototype.delete.call(this)};
_.B.setListId=function(V){PV.prototype.setListId.call(this,V);this.store()};
_.B.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var eca=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],kx0=["playerResponse","videoDetails"],FQE=["response","currentVideoEndpoint","watchEndpoint","videoId"],XBN=["response","currentVideoEndpoint","watchEndpoint","playlistId"],zc3=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],yDZ=["response","contents","twoColumnWatchNextResults","playlist","playlist"],tAi=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
rDw=["response","contents","twoColumnWatchNextResults"];var Sl={},Vf1=(Sl.WEB_UNPLUGGED="^unplugged/",Sl.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Sl.WEB_UNPLUGGED_OPS="^unplugged/",Sl.WEB_UNPLUGGED_PUBLIC="^unplugged/",Sl.WEB_CREATOR="^creator/",Sl.WEB_KIDS="^kids/",Sl.WEB_EXPERIMENTS="^experiments/",Sl.WEB_MUSIC="^music/",Sl.WEB_REMIX="^music/",Sl.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Sl.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Sl);var okT,KQJ;okT=function(V,l){this.networkManager=V;this.innertubeTransportService=l};
KQJ=function(V,l,I){if(!_.y(l,_.Wq))return _.bK(Error("Ff"));_.y(l,_.Wq).videoIds=I;I={create_playlist_title:_.LT("QUEUE",void 0,"Queue")};return m9N(_.R2(V.innertubeTransportService,l,I),fXT)};
_.Y5w=function(V,l,I,H){l={videoId:H,playlistId:l,playlistIndex:I};I=_.Ol(JNZ);return m9N(_.R7(V.innertubeTransportService,l,I),ibc)};
okT.prototype.updatePlaylist=function(V,l){return m9N(_.R2(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:V,actions:l}}),g6c)};var Qx=function(V){this.storage=V},GxZ;
Qx.prototype.store=function(V,l){l=l===void 0?0:l;if(this.storage&&V.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",V),this.storage.set("TLPQindex",String(l)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(I){}};
Qx.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Qx.prototype.getPlaylistId=function(){if(!this.storage)return null;var V=null;try{V=this.storage.get("TLPQplaylist")}catch(l){}return V};
Qx.prototype.getIndex=function(){if(this.storage){try{var V=this.storage.get("TLPQindex")}catch(l){}V=Number(V);if(!isNaN(V))return V}};var Tew=["navigationEndpoint","watchEndpoint","videoId"],HRW=["nextButtonVideo","watchEndpoint","videoId"];_.kV=new _.Vr("NETWORK_TOKEN");_.pa=new _.Vr("PAGE_TOKEN");_.cV=new _.Vr("PLAYLIST_TOKEN");var EQ3;EQ3=new _.Vr("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.FM=new _.Vr("INNERTUBE_TRANSPORT_TOKEN");var JDo,WV,hcE,PSJ,ZwE,S5J;JDo=new Set(["ci","cr","carml"]);WV=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10637_parkedJobs=new Map;this.parkedProcessors=new Map};
_.b1=function(){WV.instance||(WV.instance=new WV);return WV.instance};
WV.prototype.onAny=function(V){return _.oQJ(this,V,2)};
WV.prototype.parkOrScheduleJob=function(V,l,I,H,T){_.qB(this,I)?_.Dk().addJob(V,l,H):(T&&(V=hcE(V),PSJ(this,V,l,I,T)),T=this.JSC$10637_parkedJobs.get(I),T||(this.JSC$10637_parkedJobs.set(I,[]),T=this.JSC$10637_parkedJobs.get(I)),T.push({job:V,priority:l,delay:H}))};
WV.prototype.addListener=function(V,l,I){I&&(l=hcE(l),PSJ(this,l,0,V,I));I=this.parkedProcessors.get(V);I||(this.parkedProcessors.set(V,[]),I=this.parkedProcessors.get(V));I.push(l)};
WV.prototype.processSignal=function(V){if(!_.qB(this,V)){this.inProgressSignals.add(V);var l=this.JSC$10637_parkedJobs.get(V);if(l){l=_.U(l);for(var I=l.next();!I.done;I=l.next())I=I.value,_.Dk().addJob(I.job,I.priority,I.delay);this.JSC$10637_parkedJobs.delete(V)}if(l=this.parkedProcessors.get(V)){l=_.U(l);for(I=l.next();!I.done;I=l.next())I=I.value,I();this.parkedProcessors.delete(V)}this.signals.push(V);this.inProgressSignals.delete(V)}};
_.qB=function(V,l){return JDo.has(l)||_.PO("IS_HOMEPAGE_COLD")||_.PO("IS_RESULTS_PAGE_COLD")||_.PO("IS_WATCH_PAGE_COLD")?V.signals.indexOf(l)>=0:!0};
hcE=function(V){var l=!1;return function(){l||(l=!0,V())}};
PSJ=function(V,l,I,H,T){if(DC0.has(H))_.Dk().addJob(l,I,T);else{var x=V.compoundSignals.get(H);x&&_.Dk().addJob(function(){_.qB(V,H)||(x.isTimeoutConditionSatisfied?_.Dk().addJob(l,I):x.timeoutConditionObservers.push(function(){_.Dk().addJob(l,I)}))},I,T)}};
_.oQJ=function(V,l,I){if(l.length>1){var H=[],T=Object.create(null);l=_.U(l);for(var x=l.next();!x.done;x=l.next())x=x.value,T[x]||(H.push(x),T[x]=!0);l=H}if(l.length===1)return l[0];x=l;H="";T=I===2?"|":"&";x.sort();x=_.U(x);for(var n=x.next();!n.done;n=x.next())H+=n.value+T;if(!V.compoundSignals.get(H)){T=0;x=[];n=_.U(l);for(var w=n.next();!w.done;w=n.next())w=w.value,T++,_.qB(V,w)||x.push(w);(I=I===2)&&T>x.length||!I&&!x.length?V.signals.push(H):ZwE(V,H,I,l,x)}return H};
ZwE=function(V,l,I,H,T){var x=T.length,n=function(){I||--x===0?V.processSignal(l):S5J(V,l)};
T=_.U(T);for(var w=T.next();!w.done;w=T.next())V.addListener(w.value,n);V.compoundSignals.set(l,{signals:H,isOnAny:I,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});S5J(V,l)};
S5J=function(V,l){if(!_.qB(V,l)){var I=V.compoundSignals.get(l);if(I&&!I.isTimeoutConditionSatisfied){for(var H=!1,T=0,x=0,n=_.U(I.signals),w=n.next();!w.done;w=n.next()){var N=w.value;w=!_.qB(V,N);DC0.has(N)?H=!0:(N=V.compoundSignals.get(N))?w&&!N.isTimeoutConditionSatisfied&&(x++,I.isInitialized||N.timeoutConditionObservers.push(function(){S5J(V,l)})):w&&T++}I.isInitialized=!0;
I.isOnAny?H&&(I.isTimeoutConditionSatisfied=!0):T===0&&x===0&&(I.isTimeoutConditionSatisfied=!0);if(I.isTimeoutConditionSatisfied)for(I=_.U(I.timeoutConditionObservers),H=I.next();!H.done;H=I.next())H=H.value,H()}}};
WV.prototype.processSignal=WV.prototype.processSignal;WV.prototype.parkOrScheduleJob=WV.prototype.parkOrScheduleJob;WV.prototype.onAny=WV.prototype.onAny;_.Aq("ytsignals.getInstance",_.b1);WV.prototype.onAny=WV.prototype.onAny;WV.prototype.parkOrScheduleJob=WV.prototype.parkOrScheduleJob;WV.prototype.processSignal=WV.prototype.processSignal;var DC0=new Set(["eop","eocs","dl","pcl"]);_.sH=new _.Vr("MINIPLAYER_SERVICE");var MB,RcB,Q_v;MB=function(V,l,I){var H=_.WF.getInstance();if(!GxZ){var T=new Urt;var x=void 0,n=_.h6("ID_TOKEN");n&&T.isAvailable()&&(x=new Fi(T,"yt-queue"+n));GxZ=new Qx(x)}T=GxZ;x=_.b1();this.JSC$10644_actionRouter=H;this.pageManager=V;this.playlistManager=l;this.JSC$10644_playlistNetworkManager=I;this.storage=T;this.signals=x;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.sg=function(){if(!RcB){var V=_.F(),l=V.resolve(_.Cs(_.pa)),I=V.resolve(_.Cs(_.kV)),H=V.resolve(_.Cs(_.cV));V=V.resolve(_.FM);RcB=new MB(l,H,new okT(I,V))}return RcB};
Q_v=function(V,l,I){if(I){var H;if(((H=V.responsePlaylistData)==null?void 0:H.playlistId)!==I)return}V.responsePlaylistData&&(I=dXt(l,V.responsePlaylistData),V.responsePlaylistData=(0,_.EL.unsafeClone)(V.responsePlaylistData),NeT(V.responsePlaylistData,I));I=V.temporaryItems.findIndex(function(T){return T.videoId===l});
I>-1&&V.temporaryItems.splice(I,1);_.pn(V,_.At(V,V.response?V.response.autoplayRenderer:void 0))};
_.cDN=function(V,l){if(V.responsePlaylistData){var I=wQW(l,V.responsePlaylistData);NeT(V.responsePlaylistData,I);if(V.queueProxy){var H=V.queueProxy;I<0||(H.videoIds.splice(I,1),I<H.currentIndex&&H.JSC$10590_setCurrentIndex(H.currentIndex-1),H.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:l}),D$(H))}}_.pn(V,_.At(V,V.response?V.response.autoplayRenderer:void 0))};
MB.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.pn(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
MB.prototype.setPlaylistData=function(V,l,I){this.temporaryItems=[];this.listId=V;this.responsePlaylistData=l;_.pn(this,_.At(this,I))};
var WQv=function(V){return(V==null?0:V.playlistId)?V.playlistId:"PPSV"},bwi=function(V){return V&&V.playlistId?V.playlistId==="PPSV"?!0:vUg(_.v4().getState().entities,V.playlistId):!1};
MB.prototype.isPlayingOfflineVideo=function(){return this.response?bwi(this.response):!1};
MB.prototype.closeMiniplayer=function(V){var l=this.queueProxy&&this.queueProxy.size()<=1,I=_.F().resolve(_.sH);if(!this.queueProxy||l)this.queueProxy&&this.clearQueue(),I.close(!0);else{I.pipController.getWindow()&&window.focus();l=this.responsePlaylistData;var H=this.temporaryItems.length+(l&&l.contents?l.contents.length:0);l=_.LT("QUEUE_CLEARED_UNPLURALIZED")||_.e1("QUEUE_CLEARED",H);l=_.fW(l);I=_.LT("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");H=_.LT("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.e1("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",H);var T=_.LT("MINIPLAYER_CLOSE",void 0,"Close"),x=_.LT("CANCEL",void 0,"Cancel");_.RC(this.JSC$10644_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.pW(I),dialogMessages:[_.pW(H)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pW(T),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
l]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.pW(x)}}}}}}],V)}};
_.At=function(V,l){var I={},H=V.response;I.autoplayRenderer=l;if(!V.responsePlaylistData&&!V.temporaryItems.length)return!H||!H.hasRelatedVideoData&&_.z("kevlar_prefetch_data_augments_network_data")||(I.playerData={rvs:H.relatedVideoArgs,endScreenRenderer:H.endScreenRenderer}),I;I.playerData={};if(V.index===void 0)return _.Gr(Error("Hf")),I;I.panel=V.responsePlaylistData?(0,_.EL.unsafeClone)(V.responsePlaylistData):{titleText:_.pW(_.LT("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
l=I.panel;if(l.contents)for(var T=_.U(V.temporaryItems),x=T.next();!x.done;x=T.next())l.contents.push({playlistPanelVideoRenderer:x.value});V.queueProxy&&H&&H.playingVideo&&H.playingVideoId&&!$Xg(H.playingVideoId,I.panel)&&(l=H.playingVideo,T=I.panel,x=V.index,T.contents&&T.contents.splice(x===void 0?0:x,0,{playlistPanelVideoRenderer:l}));H&&H.playingVideoId&&(l=V.index,T=I.panel,l=!T.contents||l>=T.contents.length?void 0:T.contents[l].playlistPanelVideoRenderer,l&&l.videoId===H.playingVideoId||(l=
dXt(H.playingVideoId,I.panel),V.index=l!==-1?l:V.index?V.index-1:0));l=n4K(V.index+1,I.panel);T=void 0;V.index>0&&(T=n4K(V.index-1,I.panel));if(T||l)I.autoplayRenderer=Be3(l,T,I.autoplayRenderer);!l&&(H==null?0:H.relatedVideoArgs)&&(I.playerData.rvs=H.relatedVideoArgs);H=H?H.playlistIndexOffset:0;V.queueProxy?Yf1(I.panel,V.index,H,UXy,!0,!0,!0):Yf1(I.panel,V.index,H);I.playerData.playlistPanelRenderer=I.panel;return I};
MB.prototype.openToast=function(V){_.F().resolve(_.sH).openToast(V,_.LT("ADDED_TO_QUEUE",void 0,"Added to queue"))};
MB.prototype.isMiniplayerActive=function(){return _.F().resolve(_.sH).isMiniplayerActive()};
_.pn=function(V,l){V.playlistManager.setAutoplayRenderer(l.autoplayRenderer||null);V.playlistManager.setPlaylistData(l.panel||null);l.playerData&&V.playlistManager.setPlayerPlaybackControlData(l.playerData)};var q5v={},MA3={},s_J={},pBZ={},ADi={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:(q5v.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",q5v),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:(MA3.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",MA3),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:(s_J.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",s_J),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:(pBZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",pBZ),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 f6J=[{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:ADi},{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:ADi}}];var u1b=[["enllOHByaW1hcnkjYXYzMmxydGI=",null],[null,["LWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciNlbDN6bmIycjRrNTB5dGQtdHdv","ZS1zY29wZSM1OXV5emp5MHZhdTNzdHls"]],["c3RoZWFkLWFkIzUwbXE5dGN1azVhbWE=",["aXBkZnE5ZWZ0eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNtOHc="]],[null,["dmdiNzk2NGFmeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM1cDg=","ZS1zY29wZSN3cGlsdjk5dDI2eXNzdHls"]],[null,["eXowdGUweXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM1Zm1iN3Q=","ZS1zY29wZSNraWM1MW5ieDRqZmxzdHls"]],[null,["b2NsaTBjam5mazl5dGQtYWQtc2xvdC1yZW5kZXJlciN1"]]];var qf3=[["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 vQi="#";var u1;u1=function(V,l,I){this.pl3=V;this.isAsync=l;this.cYG=I};
_.$oK=[new u1("b.f_",!1,0),new u1("j.s_",!1,2),new u1("r.s_",!1,4),new u1("e.h_",!1,6),new u1("i.s_",!0,8),new u1("s.t_",!1,10),new u1("p.h_",!1,12),new u1("s.i_",!1,14),new u1("f.i_",!1,16),new u1("a.b_",!1,18),new u1("a.o_",!1),new u1("g.o_",!1,22),new u1("p.i_",!1,24),new u1("p.m_",!1),new u1("n.k_",!0,20),new u1("i.f_",!1),new u1("a.s_",!0),new u1("m.c_",!1),new u1("n.h_",!1,26),new u1("o.p_",!1),new u1("m.p_",!0,28),new u1("o.a_",!1)].reduce(function(V,l){V[l.pl3]=l;return V},{});var Af3,XQN,hGt,tfq,E4w,Wbt,v4N,C5W,VET,vV;Af3=2;XQN=2;hGt=2;tfq=2;E4w=2;Wbt=2;v4N=2;C5W=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];VET=[[["kind","value"],"AD_PLACEMENT"]];vV={};_.CSa=(vV["b.f_"]=function(){return _.d(function(V){return V.nextAddress==1?_.K(V,(_.ajt()!==void 0?_.bK(Error("uf")):_.bhg()).then(function(){return 1},function(l){if(l.message==="Biscotti id is disabled")return 3;
_.hF("Failed fetching bid");return 0}),2):V.return(V.yieldResult)})},vV["j.s_"]=Qeq,vV["r.s_"]=Sff,vV["e.h_"]=function(){return bRt(Lbt(u1b,function(V){V=iRy(V,!0);
if(V){var l=V.length;var I=-44%l;I<0&&(I=l+I);V=V.slice(l-I)+V.slice(0,l-I)}else V="";I="";for(l=0;l<V.length&&V[l]!==vQi;l++)I+=V[l];return I}))},vV["n.h_"]=function(){return bRt(Lbt([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},vV["i.s_"]=cf1,vV["p.h_"]=function(){return 2},vV["s.t_"]=function(){return Af3},vV["s.i_"]=uIJ,vV["f.i_"]=yfK,vV["a.b_"]=DXT,vV["a.o_"]=pQf,vV["g.o_"]=seg,vV["p.i_"]=Mfq,vV["p.m_"]=GF1,vV["n.k_"]=function(){return _.h6("NKDSTAT",2)},vV["i.f_"]=o43,vV["a.s_"]=function(){return _.h6("ASDSTAT",2)},vV["m.c_"]=function(){return 2},vV["o.p_"]=function(){for(var V=[],l=0,I=0;I<C5W.length;I++)V[I]=C5W[I],l++;
V[l]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";V[l+1]="YWJfc2FfZWY=";return ORc(V)},vV["m.p_"]=function(){return _.h6("MBSTAT",2)},vV["o.a_"]=function(){return a6t()},vV);var a5b,f5Z,gQN;a5b=function(){this.ongoingFlowNonces=new Map};
_.Uz=function(){f5Z||(f5Z=new a5b);return f5Z};
_.Bb=function(V,l,I){return{eventType:{flowEventNamespace:V,flowEventType:l},metadata:I,statusCode:void 0,csn:void 0,can:void 0}};
_.w0w=function(V,l){var I=_.Uz(),H=gQN(I,l,!0);_.xV(I,V,l,H)};
_.xV=function(V,l,I,H){V={flowNonce:H||gQN(V,I),flowType:I,flowEventType:l.eventType};l.metadata&&(V.flowMetadata=l.metadata);l.statusCode!==void 0&&(V.flowEventStatus=l.statusCode);l.csn&&(V.csn=l.csn);l.can&&(V.can=l.can);_.tF("flowEvent",V,void 0)};
gQN=function(V,l,I){I=I===void 0?!1:I;var H=V.ongoingFlowNonces.get(l);if(!H||I)H=Gu(16),V.ongoingFlowNonces.set(l,H);return H};var nkW=function(){};
nkW.prototype.flush=function(V,l){V=V===void 0?[]:V;l=l===void 0?!1:l;if(_.z("enable_client_streamz_web")){V=_.U(V);for(var I=V.next();!I.done;I=V.next())I=oEB(I.value),I={serializedIncrementBatch:_.rg(I.JSC$7473_serializeBinary())},_.tF("streamzIncremented",I,{sendIsolatedPayload:l})}};var Hb;_.mCN=new y00;var Og=function(V,l,I,H,T,x,n){I=I===void 0?!1:I;H=H===void 0?!1:H;x=x===void 0?_.sg():x;this.hasRun=!1;this.wmG=V;this.u1l=l;this.gl2=I;this.fromHistory=H;this.previousVideoId=T;this.kTl=x;this.tempData=n;this.lZd=new _.t_0};
_.t(Og,gt);Og.prototype.validate=function(V){return!(!V.data.playerResponse||V.data.page!=="watch"&&V.data.page!=="shorts"||this.hasRun)};
Og.prototype.handle=function(V){var l=this,I=_.y(V.endpoint,_.vU),H=_.y(V.endpoint,_.YV);if(_.z("kevlar_continue_playback_without_player_response")&&(I==null?0:I.videoId)&&this.previousVideoId&&(I==null?void 0:I.videoId)===this.previousVideoId&&(I==null?0:I.continuePlayback)&&!this.fromHistory)this.wmG.resolve();else{var T={};I?T.watch_endpoint=I:H&&(T.watch_endpoint=H,H.endTimeSeconds&&(T.end=H.endTimeSeconds));V.data.page==="watch"?(V.data.filler||this.gl2||(_.S1("cfg"),_.WF.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(T,iwW(this,V.endpoint)),_.z("enable_masthead_quartile_ping_fix")&&Object.assign(T,VG0(this)),I=!_.z("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(T,I),V.data.forceExternalPlaylist&&(T.external_list=!0)):V.data.page==="shorts"&&_.WF.getInstance().triggerAction("yt-start-loading-shorts");if(I=this.u1l()){try{I.loadVideoWithPlayerResponse(V.data.playerResponse,T),I.getPlayerPromise().then(this.wmG.resolve)}catch(x){_.Gr(x),this.wmG.resolve()}this.hasRun=
!0;I.getPlayerPromise().then(function(x){x.addEventListener("onAbnormalityDetected",function(){var n=V.data.playerResponse,w=x.getVideoData().cpn;v4N=0;_.Owb=w;if(w=Uoq(n))l.lZd.increment("IN_PLAYER"),_.nY(5),_.z("ab_st_vid_ks")?x.pauseVideo(!0):x.stopVideo(),n.playabilityStatus=Object.assign({},n.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:w}}),n.videoDetails=void 0,_.WF.getInstance().triggerOptionalAction("yt-updated-playability-status",n.playabilityStatus)})})}else _.hF(Error("Kf"))}};
var iwW=function(V,l){var I=_.y(l,_.vU);if(l&&I&&I.playlistId&&I.videoId&&(V=V.kTl,V.queueProxy?(V=V.queueProxy,I=V.listId===I.playlistId?V.attributionData.get(I.videoId):void 0):I=void 0,I))return{queue_info:I}},VG0=function(V){var l;
if((l=V.tempData)==null?0:l.adpings)return{adpings:V.tempData.adpings}};var Cn=function(V,l,I){this.hasRun=!1;this.fZl=V;this.dwJ=l;this.b6E=I};
_.t(Cn,gt);Cn.prototype.validate=function(V){return!!_.EL.getValueByKeys.apply(null,[V.data].concat(_.oI(rDw)))};
Cn.prototype.handle=function(V){var l=this;this.fZl.promise.then(function(){var I=V.data;var H=_.EL.getValueByKeys.apply(null,[I].concat(_.oI(eca))),T=_.EL.getValueByKeys.apply(null,[I].concat(_.oI(yDZ))),x=_.EL.getValueByKeys.apply(null,[I].concat(_.oI(FQE)));var n=(n=_.EL.getValueByKeys.apply(null,[I].concat(_.oI(kx0))))?{videoId:n.videoId,thumbnail:n.thumbnail,title:n.title?_.pW(n.title):void 0,shortBylineText:n.author?_.pW(n.author):void 0}:void 0;var w=void 0;_.z("web_get_playlist_id_from_current_endpoint_ks")||
(w=_.EL.getValueByKeys.apply(null,[I].concat(_.oI(XBN))));var N=_.EL.getValueByKeys.apply(null,[I].concat(_.oI(tAi))),L=_.EL.getValueByKeys.apply(null,[I].concat(_.oI(zc3))),e=!!N||!!L&&!!L.results&&L.results.length>0,k=0;T&&T.currentIndex&&T.localCurrentIndex&&(k=T.currentIndex-T.localCurrentIndex);T&&T.playlistId&&(w=T.playlistId);I={rawResponse:I,autoplayRenderer:H,hasRelatedVideoData:e,playingVideo:n,playingVideoId:x,playlistPanelRenderer:T,playlistId:w,playlistIndex:T&&T.currentIndex,relatedVideoArgs:N,
endScreenRenderer:L,playlistIndexOffset:k};a:{H=l.b6E;T=l.dwJ;H.response=I;if(bwi(I))H.downloadPlaylistProxy&&H.downloadPlaylistProxy.getPlaylistId()===WQv(I)||(H.downloadPlaylistProxy=new $CB(WQv(I),H.setPlaylistData.bind(H),H.isPlayingOfflineVideo.bind(H))),H.responsePlaylistData=H.downloadPlaylistProxy.getPlaylistData(),H.listId=WQv(I),H.index=0;else if(I.playlistPanelRenderer&&I.playlistId&&I.autoplayRenderer)I.playlistId.startsWith("TLPQ")?H.queueProxy?H.listId===I.playlistId?(H.index=I.playlistIndex,
H.responsePlaylistData=I.playlistPanelRenderer,H.queueProxy.JSC$10590_setCurrentIndex(H.index)):I.playingVideoId&&H.index!==void 0&&T.clientParams.autoSaveToQueue&&(H.index+=1,H.queueProxy.JSC$10590_setCurrentIndex(H.index),H.queueProxy.addVideos([I.playingVideoId],{},H.index)):(H.queueProxy=new _.Z$(H.JSC$10644_playlistNetworkManager,I.playlistId,H.setPlaylistData.bind(H),H.clearQueue.bind(H),_.Kbt(I.playlistPanelRenderer),H.storage),H.responsePlaylistData=I.playlistPanelRenderer,H.listId=I.playlistId,
H.index=I.playlistIndex):(H.index=I.playlistIndex,H.listId!==I.playlistId&&H.clearQueue(),H.responsePlaylistData=I.playlistPanelRenderer,H.listId=I.playlistId,H.playlistProxy=new LQJ(H.JSC$10644_playlistNetworkManager,I.playlistId,H.setPlaylistData.bind(H),_.Kbt(I.playlistPanelRenderer)));else if(!H.queueProxy)H.responsePlaylistData=void 0;else if(I.playingVideoId&&T.clientParams.autoSaveToQueue){if(H.index===void 0){_.Gr(Error("Gf"));H.clearQueue();break a}H.queueProxy.videoIds.includes(I.playingVideoId)||
(H.index+=1,H.queueProxy.JSC$10590_setCurrentIndex(H.index),H.queueProxy.addVideos([I.playingVideoId],{},H.index))}_.pn(H,_.At(H,H.response.autoplayRenderer))}})};var lWZ=function(V,l){l=l===void 0?_.sg():l;NB.call(this);this.bG.push(new Cn(this.pK,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},l));this.bG.push(new Og(this.pK,V,!1,!1));_.z("web_response_commands_chunk_processor")&&this.bG.push(new Kn)};
_.t(lWZ,NB);lWZ.prototype.processChunk=function(V){V&&V.data.player===void 0&&this.pK.resolve();NB.prototype.processChunk.call(this,V)};var a7=function(V,l){V=V===void 0?{layer:0}:V;this.hasRun=!1;this.createScreenConfig=V;this.ob9=l};
_.t(a7,gt);a7.prototype.validate=function(V){return!(this.hasRun||!V.endpoint)};
a7.prototype.handle=function(V){var l=_.x7(),I,H,T=(H=_.y((I=V.endpoint)==null?void 0:I.commandMetadata,_.mK))==null?void 0:H.rootVe;this.ob9&&T?_.xg(l,T,this.ob9,this.createScreenConfig):CMZ(l,V.endpoint,this.createScreenConfig);this.hasRun=!0};var fn=function(V,l){this.hasRun=!1;this.uCR=V;this.previousVideoId=l};
_.t(fn,gt);fn.prototype.validate=function(V){return _.z("kevlar_continue_playback_without_player_response")&&(V=_.y(V.endpoint,_.vU),(V==null?0:V.videoId)&&this.previousVideoId&&(V==null?void 0:V.videoId)===this.previousVideoId&&(V==null?0:V.continuePlayback))?!1:this.uCR.oRY===0};
fn.prototype.handle=function(V){_.WF.getInstance().triggerAction("yt-stop-old-player",V.data,!0)};var IWv=function(V){V=V===void 0?{layer:0}:V;NB.call(this);this.bG.push(new fn(this));this.bG.push(new a7(V));this.bG.push(new wF(V))};
_.t(IWv,NB);var HPE=function(){this.hasRun=this.hasRun=!1};
_.t(HPE,gt);HPE.prototype.validate=function(V){return!this.hasRun&&!(!V.data.csn||!V.data.rootVe)};
HPE.prototype.handle=function(V){this.hasRun=!0;_.N31(V.data.csn,V.data.rootVe,3)};var TnN=function(){gt.apply(this,arguments)};
_.t(TnN,gt);TnN.prototype.validate=function(V){return!!V.data.preconnect};
TnN.prototype.handle=function(V){_.Z8("bc");V=_.U(V.data.preconnect);for(var l=V.next();!l.done;l=V.next())l=l.value,(new Image).src=l};var BnJ=function(V,l,I){I=I===void 0?{layer:0}:I;NB.call(this);this.bG.push(new Og(this.pK,V));this.bG.push(new a7(I));this.bG.push(new wF(I))};
_.t(BnJ,NB);var xs0=function(V,l,I,H,T){I=I===void 0?{layer:0}:I;H=H===void 0?_.sg():H;NB.call(this);var x=!!l&&!!l.clientParams&&!!l.clientParams.miniplayer;x&&this.bG.push(new HPE);this.bG.push(new Cn(this.pK,l,H));this.bG.push(new TnN);var n,w;this.bG.push(new Og(this.pK,V,x,!((n=l.clientParams)==null||!n.fromHistory),(w=l.clientParams)==null?void 0:w.previousVideoId,H,l.tempData));var N;this.bG.push(new fn(this,(N=l.clientParams)==null?void 0:N.previousVideoId));var L;(L=l.clientParams)!=null&&L.fromHistory||
(I.layer||(I=Object.assign({},I,{layer:x?3:0})),this.bG.push(new a7(I,T)),this.bG.push(new wF(I)));_.z("web_response_commands_chunk_processor")&&this.bG.push(new Kn)};
_.t(xs0,NB);var gF,$si;gF={};
_.UsW=(gF["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},gF["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},gF["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},gF["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gF["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gF["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},gF["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},gF);_.m8=new _.h2("yt-edu");_.n3J=function(){this.JSC$10739_eduDisplayedThisLoad_={}};
$si=function(V){var l=_.n3J.getInstance();var I=_.g7("kevlar_tooltip_impression_cap");l=I&&parseInt(_.m8.get(V+"-impression")||0,10)>=I||_.m8.get(V+"-dismissed")?!1:(I=_.UsW[V])&&!l.JSC$10739_eduDisplayedThisLoad_[I.setKey||V]&&(I.titleText&&_.LT(I.titleText)||I.bodyText&&_.LT(I.bodyText))?!0:!1;if(!l)return null;l=_.UsW[V];if(!l)return null;I=l.bodyText?_.LT(l.bodyText):void 0;var H=l.titleText?_.LT(l.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:l.position,popup:{bubbleHintRenderer:{text:H?
_.pW(H):void 0,detailsText:I?_.pW(I):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pW(_.LT("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:V}}]}}}}}}}},{eduImpressionAction:{key:V}}]};
_.Bn(_.n3J);var N91=!1;var LGg={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 dsa="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),w2J=[],i1=6;i1>=1;i1--)w2J.push({columnCount:i1,query:i1==1?0:i1*2*107-4+32,className:"grid-"+i1+"-columns",width:i1*2*107+"px"});_.KnZ=function(V){this.actionRouter_=V=V===void 0?_.WF.getInstance():V;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.NnB(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.NnB=function(V){var l=V.miniGuideVisible_?72:0,I=V.documentWidth_-(V.guidePersistentAndVisible_?240:l);return w2J.find(function(H){return I>H.query})};
_.Bn(_.KnZ);var j5N=function(){var V=this;this.JSC$10752_keyboardInUse=!1;document.addEventListener("keydown",function(){V.onKeydown()});
document.addEventListener("mousedown",function(){V.JSC$10752_keyboardInUse=!1})},Y6J;
j5N.prototype.isKeyBoardInUse=function(){return this.JSC$10752_keyboardInUse};
j5N.prototype.onKeydown=function(){this.JSC$10752_keyboardInUse=!0};var LnN,IU;_.VZ=new _.h2("yt-mentions");_.l9=function(){};
LnN=function(V,l){return IU(l,"drag-to-reorder-edu-displayed")};
IU=function(V,l,I,H,T,x){I=I===void 0?"OPEN_POPUP_POSITION_TOP":I;if(l){if(_.VZ.get(l))return;_.VZ.set(l,!0,H)}if(T&&x!==void 0){l=Number(_.VZ.get(T)||0);if(l>=x)return;_.VZ.set(T,l+1)}return[{openPopupAction:{popupType:"HINT",position:I,popup:{bubbleHintRenderer:{detailsText:V,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Bn(_.l9);var eao,kM3,Fnw;eao=function(V,l,I,H){this.JSC$10762_taskManager_=V;this.onFulfilled_=typeof l==="function"?l:null;this.onRejected_=typeof I==="function"?I:null;this.JSC$10762_context_=H};
kM3=function(V,l){V.onFulfilled_&&_.L6(V.JSC$10762_taskManager_,function(){V.onFulfilled_.call(V.JSC$10762_context_,l)})};
Fnw=function(V,l){V.onRejected_&&_.L6(V.JSC$10762_taskManager_,function(){V.onRejected_.call(V.JSC$10762_context_,l)})};
_.Hf=function(V){this.JSC$10765_taskManager_=V;this.callbacks_=[]};
_.Hf.prototype.then=function(V,l,I){this.callbacks_.push(new eao(this.JSC$10765_taskManager_,V,l,I));return this};
_.Hf.prototype.onSuccess=function(V){this.callbacks_.forEach(function(l){kM3(l,V)})};
_.Hf.prototype.onFailure=function(V){this.callbacks_.forEach(function(l){Fnw(l,V)})};
_.Hf.prototype.cancel=function(){this.callbacks_.length=0};
ZGw(_.Hf);_.k8q=null;_.Fp=new _.Vr("ACTIVITY_TOKEN");var tEN=/^[a-zA-Z0-9_\-]{11}$/;var rNN=_.ze(function(){var V,l;return(l=(V=window).matchMedia)==null?void 0:l.call(V,"(prefers-reduced-motion: reduce)").matches});var X2b=_.ze(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 V=_.SN("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");V||(V=_.jk("VIDEO"),_.Aq("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
V));return!!(V&&V.canPlayType&&V.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var zaB;_.T4=new _.Vr("SHORTS_CONTROLLER_TOKEN");zaB=new _.Vr("SHORTS_STATE_STORE_TOKEN");var Bf=function(V,l){var I=_.Q5.apply(2,arguments);V=V===void 0?0:V;_.Yd.call(this,l,I);this.errorType=V;Object.setPrototypeOf(this,this.constructor.prototype)};
_.t(Bf,_.Yd);var yx0,tGZ,rxJ,GMZ,JxE,vyt,uR,YGT,Dsa,P6W,WnN,RaW,S6o;yx0=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(V){return V+"="}).join("|"));
tGZ=RegExp(".*\\?.*ybp=1.*");rxJ=["FEcommerce_cart","SPcommerce_checkout"];GMZ=RegExp(".*\\?.*playnext=1.*");_.x6=function(V,l,I,H){this.watchEndpointMap=V;this.reelWatchEndpointMap=l;this.innerTubeTransportService=I;this.fetchPbj=H;this.forceWebFEForAdsTesting=!1};
JxE=function(V,l,I){var H=_.F().resolve(_.Cs(E3Z));_.x6.instance=new _.x6(V,l,I,H)};
_.o3E=function(V,l){var I=_.g7("web_pbj_log_warning_rate",0);I=I>0&&Math.random()<I;var H;if((H=_.y(l.commandMetadata,_.mK))==null||!H.rootVe)return I&&_.hF(Error("Qf")),!1;var T;H=(T=_.y(l.commandMetadata,_.mK))==null?void 0:T.url;if(!H)return I&&_.hF(Error("Rf")),!1;if(GMZ.test(H))return!0;if(yx0.test(H))return I&&_.hF(Error("Sf`"+H)),!1;var x;T=(x=_.y(l,_.$V))==null?void 0:x.browseId;if(tGZ.test(H)&&(!T||!rxJ.includes(T)))return I&&_.hF(Error("Tf`"+H)),!1;if(_.y(l,_.vU)){if(V.forceWebFEForAdsTesting)return I&&
_.hF(Error("Uf")),!1;if(!(V.watchEndpointMap.watchNext&&V.watchEndpointMap.player||_.z("kevlar_fetch_initial_data_op_watch_client")))return I&&_.hF(Error("Mf")),!1;V=_.g7("web_pbj_log_warning_rate",0);V=V>0&&Math.random()<V;_.y(l,_.vU)?zH1(l)?l=!0:(V&&_.hF(Error("Nf")),l=!1):(V&&_.hF(Error("Mf")),l=!1);return l}if(_.y(l,_.YV))return yNc(l);if(_.y(l,_.Z0))return!0;l=_.SU(V.innerTubeTransportService,l);I&&_.hF(Error("Vf"));return l};
vyt=function(V,l,I,H,T,x){l={url:l};if(I==null?0:I.itct)l.parentTrackingParams=I.itct;var n=_.Ol(xoW);return _.R7(V.innerTubeTransportService,l,n).then(function(w){(w=w.endpoint)||(w=_.Yg);(I==null?0:I.itct)&&w&&!w.trackingParams&&(w.trackingParams=I.itct);var N=KY(w);return uR(V,w,I,H,N,T,x)})};
uR=function(V,l,I,H,T,x,n){if(V.fetchPbj&&!_.o3E(V,l)){var w=V.fetchPbj(l),N=_.w6(w.then(function(Vf){if(!Vf)throw Error("Wf");n(N)||x(l,Vf);return Vf}));
return N}var L,e={rootVe:(w=_.y(l.commandMetadata,_.mK))==null?void 0:w.rootVe,url:(L=_.y(l.commandMetadata,_.mK))==null?void 0:L.url,endpoint:l,page:T};if(_.y(l,_.vU)){var k,X={contentPlaybackContext:_.LY(I,(k=_.y(l.commandMetadata,_.mK))==null?void 0:k.url,H)},r=_.QN();_.z("web_streaming_watch")&&window.TextDecoderStream?(w=haN(V.innerTubeTransportService,l,X,function(Vf){!e.response&&Vf.content&&(e.response=Vf.content);!e.playerResponse&&Vf.player&&(e.playerResponse=Vf.player);x(l,e)}),L=sCJ(l),
L.length&&(e.preconnect=L,x(l,e)),P6W(w,r,e).catch(function(Vf){Vf instanceof Bf&&Vf.errorType===2&&Dsa(V,l,X,e,x,n,r)})):Dsa(V,l,X,e,x,n,r);
return r.promise}if(_.y(l,_.YV)){var E;if(((E=_.y(l,_.YV))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var D=_.QN();_.ZPa(_.F().resolve(_.T4),l).then(function(Vf){S6o(V,I,H,T,x,D,Vf)});
return D.promise}w=_.w6();var Z;L={contentPlaybackContext:_.LY(I,(Z=_.y(l.commandMetadata,_.mK))==null?void 0:Z.url,H)};(Z=V.reelWatchEndpointMap.player)&&(Z=Z().JSC$11765_getRequest(l,L))&&(w=_.R7(V.innerTubeTransportService,Z.innerTubeRequest,Z.input,l.clickTrackingParams,Z.config));Z=_.w6();(k=V.reelWatchEndpointMap.reelItemWatch)&&(k=k().JSC$11765_getRequest(l))&&(Z=_.R7(V.innerTubeTransportService,k.innerTubeRequest,k.input,l.clickTrackingParams,k.config));k=_.w6();(E=V.reelWatchEndpointMap.reelWatchSequence)&&
_.y(l,_.YV).sequenceParams&&(L=E().JSC$11765_getRequest(l,L))&&(k=_.R7(V.innerTubeTransportService,L.innerTubeRequest,L.input,l.clickTrackingParams,L.config));L=_.w6(e);E=_.QN();RaW(l,L,w,Z,k,x,n,E);return E.promise}var S;if(_.y(l,eHJ)&&((S=_.y(l.commandMetadata,_.mK))==null?0:S.url))return w=hSg(_.Wv(hH().location.href),_.Wv(_.y(l.commandMetadata,_.mK).url)).toString(),vyt(V,w,I,H,x,function(){return!1});
if(_.y(l,_.Z0))return x(l,e),_.w6(e);if(_.SU(V.innerTubeTransportService,l)){var p=_.R2(V.innerTubeTransportService,l,{tempData:I,disableCache:I.disableCache}).then(function(Vf){e.response=Vf;n(p)||x(l,e);return e});
return p}return _.w6(e)};
_.cx3=function(V,l,I,H){if(_.y(l,_.vU)||_.y(l,_.YV)&&(_.z("mweb_enable_shorts_innertube_player_prefetch")||_.z("kevlar_enable_shorts_prefetch_in_sequence"))||_.y(l,K1o)&&_.z("web_enable_prefetching_videos_on_home")){var T,x={contentPlaybackContext:_.LY(I,(T=_.y(l.commandMetadata,_.mK))==null?void 0:T.url,H),prefetchPlaybackContext:EkK(I)},n,w,N;if(((n=_.y(l,_.vU))==null?void 0:(w=n.watchEndpointSupportedPrefetchConfig)==null?void 0:(N=w.prefetchHintConfig)==null?void 0:N.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(I=
V.watchEndpointMap.watchNext)if(x=I().JSC$11765_getRequest(l,x))return Promise.resolve(_.R7(V.innerTubeTransportService,x.innerTubeRequest,x.input,void 0,x.config).then(function(k){return k}))}else if(_.y(l,_.YV)&&_.z("web_prefetch_riw_for_next_video")){if(I=V.reelWatchEndpointMap.reelItemWatch)if((I=I().JSC$11765_getRequest(l,x))&&_.R7(V.innerTubeTransportService,I.innerTubeRequest,I.input,void 0,I.config).then(function(k){return k}),I=V.reelWatchEndpointMap.player)if(x=I().JSC$11765_getRequest(l,
x))return Promise.resolve(_.R7(V.innerTubeTransportService,x.innerTubeRequest,x.input,void 0,x.config).then(function(k){return k}))}else if(I=V.watchEndpointMap.player)if(x=I().JSC$11765_getRequest(l,x))return Promise.resolve(_.R7(V.innerTubeTransportService,x.innerTubeRequest,x.input,void 0,x.config).then(function(k){return k}))}else if(_.SU(V.innerTubeTransportService,l)){var L={tempData:I},e=Q5b(V.innerTubeTransportService,l);
return e?new Promise(function(k,X){var r,E;return _.d(function(D){if(D.nextAddress==1)return _.K(D,e,2);if(D.nextAddress!=4)return r=D.yieldResult,r.JSC$11772_getStoreKey(l,L)?_.K(D,_.R2(V.innerTubeTransportService,l,L),4):(X(new _.Yd("Prefetching request builder with no store key.",l)),D.jumpTo(0));E=D.yieldResult;k(E);_.FU(D)})}):Promise.reject(new _.Yd("Prefetching unregistered request builder.",l))}return Promise.reject(new _.Yd("No request builder available to prefetch endpoint.",l))};
YGT=function(V,l){var I,H,T;if(_.y(l,_.vU)){var x=V.watchEndpointMap.watchNext;x&&(I=x());(V=V.watchEndpointMap.player)&&(H=V())}else if(_.y(l,_.YV))(x=V.reelWatchEndpointMap.reelItemWatch)&&(I=x()),(x=V.reelWatchEndpointMap.player)&&(H=x()),(V=V.reelWatchEndpointMap.reelWatchSequence)&&(T=V());else{a:{V=xf3(l,V.innerTubeTransportService.endpointMap);if(V!==void 0)if(typeof V.then==="function")_.Gr(new _.Yd("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",l));else break a;
V=void 0}V&&(I=V)}var n,w,N;return{content:(n=I)==null?void 0:n.JSC$11772_getStoreKey(l),player:(w=H)==null?void 0:w.JSC$11772_getStoreKey(l),reelSequence:(N=T)==null?void 0:N.JSC$11772_getStoreKey(l)}};
Dsa=function(V,l,I,H,T,x,n){var w=_.w6(),N=V.watchEndpointMap.player;N&&(N=N().JSC$11765_getRequest(l,I))&&(w=_.R7(V.innerTubeTransportService,N.innerTubeRequest,N.input,l.clickTrackingParams,N.config));N=_.w6();var L=V.watchEndpointMap.watchNext;L&&(I=L().JSC$11765_getRequest(l,I))&&(N=_.R7(V.innerTubeTransportService,I.innerTubeRequest,I.input,l.clickTrackingParams,I.config));V=_.w6(H);WnN(l,V,w,N,T,x,n)};
P6W=function(V,l,I){return _.d(function(H){if(H.nextAddress==1)return _.K(H,V,2);l.resolve(I);_.FU(H)})};
WnN=function(V,l,I,H,T,x,n){var w,N,L,e,k;_.d(function(X){switch(X.nextAddress){case 1:return _.K(X,l,2);case 2:w=X.yieldResult;if(x(n.promise))return n.resolve(w),X.return();T(V,w);N=sCJ(V);if(!N.length){X.jumpTo(3);break}return _.K(X,l,4);case 4:w.preconnect=N,T(V,w);case 3:return _.jd(X,5),_.K(X,I,7);case 7:L=X.yieldResult;_.Rv(X,6);break;case 5:return e=_.kE(X),n.reject(e),X.return();case 6:if(L===void 0)return w.reload=!0,T(V,w),n.resolve(w),X.return();if(x(n.promise))return n.resolve(w),X.return();
w.playerResponse=L;T(V,w);_.jd(X,8);return _.K(X,H,10);case 10:k=X.yieldResult;_.Rv(X,9);break;case 8:_.kE(X);case 9:if(k===void 0)return w.response={responseContext:{}},n.resolve(w),X.return();if(x(n.promise))return n.resolve(w),X.return();w.response=k;T(V,w);n.resolve(w);_.FU(X)}})};
RaW=function(V,l,I,H,T,x,n,w){var N,L,e,k,X,r;_.d(function(E){switch(E.nextAddress){case 1:return _.K(E,l,2);case 2:N=E.yieldResult;if(n(w.promise))return w.resolve(N),E.return();x(V,N);L=sCJ(V);if(!L.length){E.jumpTo(3);break}return _.K(E,l,4);case 4:N.preconnect=L,x(V,N);case 3:return _.jd(E,5),_.K(E,I,7);case 7:e=E.yieldResult;_.Rv(E,6);break;case 5:return k=_.kE(E),w.reject(k),E.return();case 6:if(e===void 0)return N.reload=!0,x(V,N),w.resolve(N),E.return();if(n(w.promise))return w.resolve(N),
E.return();N.playerResponse=e;x(V,N);_.jd(E,8);return _.K(E,H,10);case 10:X=E.yieldResult;_.Rv(E,9);break;case 8:_.kE(E);case 9:if(X===void 0)return N.response={responseContext:{}},w.resolve(N),E.return();if(n(w.promise))return w.resolve(N),E.return();N.response=X;x(V,N);_.jd(E,11);return _.K(E,T,13);case 13:r=E.yieldResult;_.Rv(E,12);break;case 11:_.kE(E);case 12:if(n(w.promise))return w.resolve(N),E.return();N.reelWatchSequenceResponse=r;x(V,N);w.resolve(N);_.FU(E)}})};
S6o=function(V,l,I,H,T,x,n){var w,N,L,e,k,X;_.d(function(r){if((w=n)==null||!w.replacementEndpoint)return x.reject(),r.return();N=n.replacementEndpoint;(L=_.y(N,_.YV))?(n.sequenceContinuation&&(L.sequenceParams=n.sequenceContinuation),e=_.F().resolve(_.T4),k=L.sequenceParams,bPW(e,N)&&delete L.sequenceParams,X=uR(V,N,l,I,H,T,function(){return!1}),X.then(function(E){return _.d(function(D){if(D.nextAddress==1)return q6Z(e,{reelWatchEndpoint:{sequenceParams:k}},E),_.K(D,0,2);
x.resolve(E);_.FU(D)})})):x.reject();
_.FU(r)})};_.MGW=function(V){if(V.validatedFragments_.length==0)return null;if(!V.mergedPrefetchedData_){for(var l=[],I=_.U(V.validatedFragments_),H=I.next();!H.done;H=I.next()){H=_.U(V.fragmentConfiguration_[H.value].graftedKeys);for(var T=H.next();!T.done;T=H.next())(T=V.prefetchedData_[T.value].trackingParams)&&l.push(T)}V.mergedPrefetchedData_={};Object.assign(V.mergedPrefetchedData_,V.prefetchedData_,{clientSideGrafts:l})}return V.mergedPrefetchedData_};var s5o;_.Up=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
s5o=function(V,l,I){if(_.FGN(l))return V.prefetchCache_.get(_.X0K(l,I))};_.nb=new _.Vr("NAVIGATION_TOKEN");var p2a=function(V){var l=this;var I=I===void 0?hH3():I;var H=H===void 0?_.F().resolve(_.nb):H;this.onePickCommand=V;this.JSC$10867_playlistNetworkManager=I;this.navigationManager=H;this.videoPickerBuilder=_.JNN("yt-addtoplaylist");_.iAN(uv3(vlb(AFw(this.videoPickerBuilder.setTitle(V.modalTitle).setSize(1E3).addView(aYZ()).addView(C2v())).addView("youtube"),V.selectButtonLabel)),function(T){l.handleAction(T)})};
p2a.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
p2a.prototype.handleAction=function(V){var l=this;if(V&&this.onePickCommand.listId&&V.action==="picked"&&V.docs){var I=[];V.docs.forEach(function(H){I.push({addedVideoId:H.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10867_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,I).then(function(){_.z("playlist_add_video_hard_reload_killswitch")?l.navigationManager.reload():Axo(l.navigationManager)})}};var u4E=function(){if(this.constructor===u4E)throw new TypeError("Xf");};
_.B=u4E.prototype;_.B.dispose=function(){};
_.B.disconnect=function(){};
_.B.reconnect=function(){};
_.B.observe=function(V,l,I){return{element:V,option:I}};
_.B.unobserveByKey=function(){};var PMf=function(V,l){l=l===void 0?0:l;u4E.call(this);this.viewroot=V;this.defaultPrescanHeight=l;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),V?{root:V,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.t(PMf,u4E);_.B=PMf.prototype;_.B.dispose=function(){this.disconnect();this.handlers.clear()};
_.B.disconnect=function(V){this.isConnected=!1;this.pauseObservingUntilReconnect=V===void 0?!1:V;this.observer.disconnect();V=_.U(this.prescanObservers.values());for(var l=V.next();!l.done;l=V.next())l.value.disconnect()};
_.B.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var V=_.U(this.handlers),l=V.next();!l.done;l=V.next()){var I=_.U(l.value);l=I.next().value;var H=I.next().value;I=!1;H=_.U(H.keys());for(var T=H.next();!T.done;T=H.next())if((T=T.value)&&T.state==="prescan"){I=!0;break}I&&v3B(this,l).observe(l);this.observer.observe(l)}}};
_.B.handleObserveEvent=function(V){V=_.U(V);for(var l=V.next();!l.done;l=V.next()){l=l.value;var I=this.handlers.get(l.target);if(I){var H=l.isIntersecting;I=_.U(I);for(var T=I.next();!T.done;T=I.next()){var x=_.U(T.value);T=x.next().value;x=x.next().value;T&&(T.state==="visible"&&H||T.state==="hidden"&&!H)&&(x(l.target,T.state),T.calledOnce&&this.unobserveByKey({element:l.target,option:T}))}}}};
_.B.handlePrescanEvent=function(V){V=_.U(V);for(var l=V.next();!l.done;l=V.next()){l=l.value;var I=this.handlers.get(l.target);if(I&&l.isIntersecting){I=_.U(I);for(var H=I.next();!H.done;H=I.next()){var T=_.U(H.value);H=T.next().value;T=T.next().value;H&&H.state==="prescan"&&(T(l.target,H.state),H.calledOnce&&this.unobserveByKey({element:l.target,option:H}))}}}};
_.B.observe=function(V,l,I){var H=(H=this.handlers.get(V))&&H.has(I)?{element:V,option:I}:void 0;if(H)return H;H={element:V,option:I};this.handlers.has(V)||this.handlers.set(V,new Map);var T=this.handlers.get(V);T&&!T.has(I)&&T.set(I,l);this.pauseObservingUntilReconnect||(I.state==="prescan"&&v3B(this,V).observe(V),this.observer.observe(V));return H};
_.B.unobserveByKey=function(V){var l=this.handlers.get(V.element);if(l&&l.has(V.option)){l.delete(V.option);if(V&&V.option.state==="prescan")for(var I=_.U(this.prescanObservers.values()),H=I.next();!H.done;H=I.next())H.value.unobserve(V.element);l.size===0&&(this.handlers.delete(V.element),this.observer.unobserve(V.element))}};
var v3B=function(V,l){var I=V.defaultPrescanHeight;l.hasAttribute("prescan-height")&&(l=Number(l.getAttribute("prescan-height")),isNaN(l)||(I=l));if(V.prescanObservers.has(I))return V.prescanObservers.get(I);l="-0.1px -0.1px "+I+"px -0.1px";l=new IntersectionObserver(V.handlePrescanEvent.bind(V),V.viewroot?{root:V.viewroot,rootMargin:l}:{rootMargin:l});V.prescanObservers.set(I,l);return l};var OPJ=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],C6o=function(){var V,l=this;this.JSC$10884_actionRouter=V=V===void 0?_.WF.getInstance():V;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return l.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return l.visibilityObservedElementHandlerKeys}}},aWb,g3o,V0o;
C6o.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.z("kevlar_use_vimio_behavior")&&_.h6("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=DoT())};
C6o.prototype.dispose=function(){this.visibilityMonitor&&_.y$(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
C6o.prototype.handleVisibilityRefreshed=function(){for(var V=_.U(this.targetMap.entries()),l=V.next();!l.done;l=V.next()){var I=_.U(l.value);l=I.next().value;I=I.next().value;_.fW3(this,l,I)}};
_.iPW=function(V,l,I){g3o(V,I);var H=_.msw(V,l);H.element=I;V.targetedElements.set(I,l);_.fW3(V,l,H)};
g3o=function(V,l){var I=V.targetedElements.get(l);if(I){var H=V.targetMap.get(I);H&&(delete H.element,V.targetMap.set(I,H));V.targetedElements.delete(l);V.visibilityObserver&&V.visibilityObservedElementHandlerKeys&&(I=V.visibilityObservedElementHandlerKeys.get(l))&&(V.visibilityObserver.unobserveByKey(I),V.visibilityObservedElementHandlerKeys.delete(l))}};
_.fW3=function(V,l,I){var H=I.action,T=I.element;T&&H&&(OPJ.includes(l)||_.h6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||V.visibilityMonitor&&V.visibilityMonitor.isNodeVisible(T)?V0o(V,l,I):V.visibilityObserver&&(V.visibilityObservedElementHandlerKeys||(V.visibilityObservedElementHandlerKeys=new WeakMap),H=V.visibilityObserver.observe(T,function(){V0o(V,l,I);V.visibilityObservedElementHandlerKeys.delete(T)},{calledOnce:!0,
state:"visible"}),V.visibilityObservedElementHandlerKeys.set(T,H)))};
V0o=function(V,l,I){var H=I.action;(I=I.element)&&H&&(_.RC(V.JSC$10884_actionRouter,[H],I),V.targetMap.delete(l),V.targetedElements.delete(I),V.triggeredTargets.add(l))};
_.msw=function(V,l){var I=V.targetMap.get(l);I||(I={},V.targetMap.set(l,I));return I};
_.$6=function(){aWb||(aWb=new C6o);return aWb};var liw=document.createElement("div");liw.style.touchAction="pan-down";var ZMf=liw.style.touchAction==="pan-down";var IiE,Heo;IiE=function(){this.hammerFn=Z6a();this.JSC$10892_screenManager=_.x7();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.eU(83615);_.nn(this.JSC$10892_screenManager,this.ve);SEt()};
_.dd=function(){Heo||(Heo=new IiE);return Heo};
IiE.prototype.registerTouchEvents=function(V,l,I){var H=_.Q5.apply(3,arguments),T=this.hammerFn(V,{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}]]});I&&T.set({touchAction:I});this.nodeManagerMapping.set(V,T);var x=
RH1(l);H=_.U(H);for(var n=H.next();!n.done;n=H.next()){n=n.value;if(n.includes("swipe")||n.includes("pinch")||n.includes("pan"))n.includes("swipe")?T.get("swipe").set({enable:!0,direction:x,velocity:.2}):n.includes("pinch")?T.get("pinch").set({enable:!0}):n.includes("pan")&&(T.get("pan").set({enable:!0,direction:x}),T.get("swipe").set({enable:!0,direction:x,velocity:.2}),T.get("swipe").recognizeWith("pan"));TV0(this,V,T,n)}};
var TV0=function(V,l,I,H){I.on(H,function(T){if(H.includes("pinch"))V.lastPinchTime=Date.now();else if(H.includes("swipe")&&Date.now()-V.lastPinchTime<400)return;T.pointerType!=="mouse"&&(T=H==="doubletap"?{coordinates:T.center}:H.includes("pan")?T:H.includes("swipe")?{target:T.target}:{},l.dispatchEvent(new CustomEvent(H,{bubbles:!0,composed:!0,detail:T})))})};
IiE.prototype.unregisterTouchEvents=function(V){var l=_.Q5.apply(1,arguments),I=this.nodeManagerMapping.get(V);if(I){l=_.U(l);for(var H=l.next();!H.done;H=l.next())I.off(H.value);this.nodeManagerMapping.delete(V);V.style.touchAction="unset"}};var BVo=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var QHJ=null;var UQN;_.wd=function(V,l,I){var H=I&&I>0?I:0;I=H?Date.now()+H*1E3:0;if((H=H?(0,_.xQN)():UQN())&&window.JSON){typeof l!=="string"&&(l=JSON.stringify(l,void 0));try{H.set(V,l,I)}catch(T){H.remove(V)}}};
_.N9=function(V){var l=UQN(),I=(0,_.xQN)();if(!l&&!I||!window.JSON)return null;try{var H=l.get(V)}catch(T){}if(typeof H!=="string")try{H=I.get(V)}catch(T){}if(typeof H!=="string")return null;try{H=JSON.parse(H,void 0)}catch(T){}return H};
_.Kb=function(V){try{var l=UQN(),I=(0,_.xQN)();l&&l.remove(V);I&&I.remove(V)}catch(H){}};
_.xQN=_.ze(function(){try{var V=new xrK;var l=V.isAvailable()?V:null}catch(I){return null}return l?new _.Ia(l):null});
UQN=_.ze(function(){var V=new Urt;return V.isAvailable()?new _.Ia(V):null});var nXi=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},Vyc=function(){nXi.instance||(nXi.instance=new nXi);
return nXi.instance},lmc=function(V){var l=V.networkEvents;
V.networkEvents=[];return _.z("enable_network_monitoring")?l:[]};var $QZ;$QZ={};_.dQw=vx("yt-serviceworker-metadata",{objectStores:($QZ.auth={addedAtVersion:1},$QZ["resource-manifest-assets"]={addedAtVersion:2},$QZ),shared:!0,upgrade:function(V,l){l(1)&&DB(V,"resource-manifest-assets");l(2)&&DB(V,"auth")},
version:2});var sHJ=self.location.origin+"/";p0w([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//]);p0w([/purge_shell=1/]);var w9a=void 0;w9a=w9a===void 0?[]:w9a;for(var NVv=[],KB3=_.U(th3),jpB=KB3.next();!jpB.done;jpB=KB3.next())NVv.push({key:jpB.value});for(var YTo=_.U(w9a),LBo=YTo.next();!LBo.done;LBo=YTo.next())NVv.push(LBo.value);var ebb,XM=_.nK==null?void 0:(ebb=_.nK.performance)==null?void 0:ebb.memory,vkt=!1,Imq={},aSt={},zR={},yy=navigator;var jW=function(V){this.JSC$10936_expiringStorage=new eO(V)};
jW.prototype.set=function(V,l,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$10936_expiringStorage.set(V,l,I)};
jW.prototype.get=function(V){return this.JSC$10936_expiringStorage.get(V)};
jW.prototype.remove=function(V){this.JSC$10936_expiringStorage.remove(V)};var d6W=_.fl(["https://www.youtube.com/",""]),w7W=_.fl(["https://studio.youtube.com/",""]),LaN="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",KaT=null,zST;var kHb=_.fl(["https://www.youtube.com/iframe_api"]),Y6=function(){this.playerResolver_=_.QN();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.XX;this.playbackDurationSeconds_=0},FBo=function(V){var l=function(){return window.YT&&typeof window.YT.ready==="function"};
if(l())return _.w6(window.YT);var I=_.QN(),H=_.jk("SCRIPT");H.onload=H.onreadystatechange=function(){H.readyState&&H.readyState!="loaded"&&H.readyState!="complete"||(H.onload=_.XX,H.onreadystatechange=_.XX,H.onerror=_.XX,l()?I.resolve(window.YT):I.reject(new _.Yd("Failed to load the iframe player library","script.onload",H.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
H.onerror=function(T){H.onload=_.XX;H.onreadystatechange=_.XX;H.onerror=_.XX;I.reject(new _.Yd("Failed to load the iframe player library","script.onerror",T&&T.target&&T.target.src))};
_.gp(H,_.TP(kHb));V.insertBefore(H,V.firstChild);return I.promise},X9o=function(V,l,I){var H,T;
_.d(function(x){switch(x.nextAddress){case 1:return V.playbackEndedCallback_=I,_.jd(x,2),_.K(x,FBo(l.parentElement||null),4);case 4:H=x.yieldResult;_.Rv(x,3);break;case 2:return T=_.kE(x),T instanceof _.Yd&&T.args&&T.args[0]=="script.onerror"?_.hF(T):_.Gr(T),x.return();case 3:H.ready(function(){return new H.Player(l,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:V.onPlayerReady_.bind(V),onStateChange:V.onPlayerStateChange_.bind(V),
onCueRangeExit:V.onCueRangeExit_.bind(V)}})}),_.FU(x)}})};
_.B=Y6.prototype;_.B.getPlayerPromise=function(){return this.playerPromise_};
_.B.onPlayerReady_=function(V){this.playerResolver_.resolve(V.target)};
_.B.onPlayerStateChange_=function(V){if(V.data==YT.PlayerState.PLAYING){V=V.target;var l=V.getCurrentTime();V.addCueRange("playback",l,l+this.playbackDurationSeconds_)}};
_.B.onCueRangeExit_=function(V){V.data=="playback"&&(V.target.stopVideo(),this.playbackEndedCallback_())};
_.B.stopVideo=function(){this.playerPromise_.then(function(V){V.stopVideo()})};
var zbb=function(V){V.playerVars_&&V.playerPromise_.then(function(l){typeof l.cueVideoByPlayerVars!="function"?_.hF(new _.Yd("vmh: player API not ready","cueVideoByPlayerVars",typeof l.cueVideoByPlayerVars)):l.cueVideoByPlayerVars(V.playerVars_)})};
Y6.prototype.playVideo=function(){var V=this;this.playerVars_&&this.playerPromise_.then(function(l){typeof l.loadVideoByPlayerVars!="function"?(l=new _.Yd("vmh: player API not ready","loadVideoByPlayerVars",typeof l.loadVideoByPlayerVars),_.Gr(l)):l.loadVideoByPlayerVars(V.playerVars_)})};
var ydE=function(V,l,I,H,T){l&&(I===void 0&&(I=0),H===void 0&&(H=0),V.playbackDurationSeconds_=H/1E3,V.playerVars_={adformat:"17_8",videoId:l,suggestedQuality:"hd720",startSeconds:I/1E3,player_params:T})};
Y6.prototype.mute=function(){this.playerPromise_.then(function(V){V.mute()})};
Y6.prototype.unMute=function(){this.playerPromise_.then(function(V){V.unMute()})};var orW=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Lb;Lb=function(){this.tokenJars={};if(this.cookiesEnabled=_.Nl()){var V=_.dm.get("CONSISTENCY",void 0);V&&t0W(this,{encryptedTokenJarContents:V})}};
_.PLW=function(){Lb.instance||(Lb.instance=new Lb);return Lb.instance};
Lb.prototype.handleResponse=function(V,l){if(!l)throw Error("bg");var I,H;l=((I=l.innerTubeRequest.context)==null?void 0:(H=I.request)==null?void 0:H.consistencyTokenJars)||[];var T;(V=(T=V.responseContext)==null?void 0:T.consistencyTokenJar)&&this.replace(l,V)};
Lb.prototype.replace=function(V,l){V=_.U(V);for(var I=V.next();!I.done;I=V.next())delete this.tokenJars[I.value.encryptedTokenJarContents];t0W(this,l)};
var t0W=function(V,l){if(l.encryptedTokenJarContents&&(V.tokenJars[l.encryptedTokenJarContents]=l,typeof l.expirationSeconds==="string")){var I=Number(l.expirationSeconds);setTimeout(function(){delete V.tokenJars[l.encryptedTokenJarContents]},I*1E3);
V.cookiesEnabled&&_.wm("CONSISTENCY",l.encryptedTokenJarContents,I,void 0,!0)}};var rdb,eW;rdb=window.location.hostname.split(".").slice(-2).join(".");_.SD=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var V=_.h6("LOCATION_PLAYABILITY_TOKEN");_.h6("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=GHZ(this))&&(V=this.localStorage.get("yt-location-playability-token"));V&&(this.locationPlayabilityToken=V,this.mostRecentPosition=void 0)};
_.SD.getInstance=function(){eW=_.SN("yt.clientLocationService.instance");eW||(eW=new _.SD,_.Aq("yt.clientLocationService.instance",eW));return eW};
_.SD.prototype.setLocationOnInnerTubeContext=function(V){V.client||(V.client={});if(this.mostRecentPosition)V.client.locationInfo||(V.client.locationInfo={}),V.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),V.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),V.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),V.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)V.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.SD.prototype.handleResponse=function(V){var l;V=(l=V.responseContext)==null?void 0:l.locationPlayabilityToken;V!==void 0&&(this.locationPlayabilityToken=V,this.mostRecentPosition=void 0,_.h6("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=GHZ(this))&&this.localStorage.set("yt-location-playability-token",V,15552E3):_.wm("YT_CL",JSON.stringify({loctok:V}),15552E3,rdb,!0))};
var GHZ=function(V){return V.localStorage===void 0?new _.h2("yt-client-location"):V.localStorage};
_.SD.prototype.clearLocationPlayabilityToken=function(V){V==="TVHTML5"?(this.localStorage=GHZ(this))&&this.localStorage.remove("yt-location-playability-token"):_.iTN("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.SD.prototype.getCurrentPositionFromGeolocation=function(){var V=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("cg"));var l=!1,I=1E4;_.h6("INNERTUBE_CLIENT_NAME")==="MWEB"&&(l=!0,I=15E3);return new Promise(function(H,T){navigator.geolocation.getCurrentPosition(function(x){V.mostRecentPosition=x;H(x)},function(x){T(x)},{enableHighAccuracy:l,
maximumAge:0,timeout:I})})};
_.SD.prototype.createUnpluggedLocationInfo=function(V){var l={};V=V.coords;if(V==null?0:V.latitude)l.latitudeE7=Math.floor(V.latitude*1E7);if(V==null?0:V.longitude)l.longitudeE7=Math.floor(V.longitude*1E7);if(V==null?0:V.accuracy)l.locationRadiusMeters=Math.round(V.accuracy);return l};
_.SD.prototype.createLocationInfo=function(V){var l={};V=V.coords;if(V==null?0:V.latitude)l.latitudeE7=Math.floor(V.latitude*1E7);if(V==null?0:V.longitude)l.longitudeE7=Math.floor(V.longitude*1E7);return l};var EX0=function(V,l){var I=SX();V||(V="unknown");l||(l="unknown");V="MAIN_APP_WEB_PAGE_TYPE_"+V.toUpperCase();V in Kf3||(V="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");l="MAIN_APP_WEB_REQUEST_TYPE_"+l.toUpperCase();l in jYv||(l="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.e7(I,{mainAppWeb:{pageType:V,requestType:l,isShellLoad:_.PO("IS_SHELL_LOAD",!1)}})},JdE={start:function(){_.e7(y4T(),{mainAppWeb:_.RQ()})},
success:function(){_.k_(y4T(),"SUCCESS")},
failure:function(){_.k_(y4T(),"FAILURE")},
cancelled:function(){_.k_(y4T(),"CANCELLED")}};var oX0,hba,QD3;oX0=_.fl(["/sw.js"]);hba=_.fl(["/sw.js?0"]);_.Ppv=_.TP(oX0);QD3=_.TP(hba);var DQ3=function(){var V=Error.apply(this,arguments);this.message=V.message;"stack"in V&&(this.stack=V.stack)};
_.t(DQ3,Error);_.Wb.prototype.load=function(V){this.megabloxUrl_=_.h6("YPC_MB_URL");_.Ra(this.megabloxUrl_,(0,_.zN)(function(){V&&V()},this))};
_.e_t=function(V,l,I,H,T,x,n,w,N,L,e){_.Wat(N);V.load((0,_.zN)(function(){try{var k=x?x:_.h6("HL"),X=_.h6("SESSION_INDEX");_.UAJ("client",function(){Qx3("59",{helpCenterPath:"/youtube",locale:k,window:window}).JSC$7838_loadChatSupport({authuser:String(X)})})}catch(r){throw Qy(10,e,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),T&&T(r),_.Gr(r),r;
}ZeN(this,l,I,H,T,x,n,w,N,L,e)},V))};
_.Wb.prototype.openFixFlowDialog=function(V,l,I,H){this.load((0,_.zN)(function(){try{STb(this,_.SN("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(V).withIntegratorCallback(l).load(I,H)}catch(T){throw _.Gr(T),T;}},this))};
var STb=function(V,l,I,H){var T=l.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.z("enable_window_constrained_buy_flow_dialog")&&(T=T.usingPopupStyle(_.SN("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));H&&(T=T.usingCloseCallback(H));l.bootstrap.fromPaymentsUrl(V.megabloxUrl_);V=l.bootstrap.asMashupMode(T);I=I?I:_.h6("HL");V.usingGaiaIndex(_.h6("SESSION_INDEX")).usingLocale(I).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.z("enable_google_payments_buyflow_material2_style_web")?
V.usingStyle(":m2;pc=#444;ac=#065fd4"):V.usingStyle(":md;pc=#444;ac=#065fd4");return V},ZeN=function(V,l,I,H,T,x,n,w,N,L,e){try{var k=_.SN("payments.business.integration");
if(!k)throw new DQ3("payments.business.integration is undefined");var X=k.standaloneContextAuthId.forUserId(),r=STb(V,k,x,w);n&&r.usingServerAnalyticsEventHandler(n);var E=r.inStandaloneContext(X).buyFlow(function(D){if(D&&(!D.integratorData||D.integratorData===""||D.error))if(D.error!=null)if(String(D.error)==="-1")_.bzK(N);else{var Z=String(D.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Qy(10,e,Z,D.debugCode);
_.cb(Z,N,D.debugCode);Z=new _.Yd("PAYMENT_ERROR_MESSAGE::"+D.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+D.internalErrorDetails);_.Gr(Z)}else Qy(10,e,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.cb("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",N,"EMPTY_INTEGRATOR_DATA"),_.Gr(Error("eg"));I&&I(D)}).withEncryptedParameters(l);
L&&E.withClientParameters(Th1(_.z4t(L)));E.load(function(){Qy(24,e);_.Rz("ttc",void 0,"commerce_transaction");fE3("commerce_transaction");H&&H()},function(D){if(D==null?0:D.debugCode)var Z=D==null?void 0:D.debugCode;
else if(!D||(D==null?0:D.debugCode))Z="EMPTY_LOAD_FAILURE_ERROR",_.Gr(Error(Z));else{Z="EMPTY_LOAD_FAILURE_DEBUG_CODE";var S=new _.Yd("LOAD_FAILURE:"+D.message," DEBUG_CODE:"+Z);_.Gr(S)}Qy(10,e,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Z);_.cb("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",N,Z);_.Gr(D);T&&T(D)})}catch(D){throw D instanceof DQ3&&(Qy(10,e,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),T&&T(D)),_.Gr(D),D;
}};var RbZ;RbZ=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.jP1=function(V,l){l=l===void 0?!1:l;V=RbZ.test(V)?_.Xj(V):null;!l&&window.payments||!V?(V=_.QN(),l=V.promise,V.resolve()):l=_.Z4(V,{attributes:{"data-payments-main":"",id:"payment-lib"}});return l};var Qpo;Qpo=_.fl(["//www.googletagmanager.com/gtm.js?id=",""]);_.k6=function(V,l){_.Ox(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:l}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.h6("GL")}),l=_.jk("SCRIPT"),l.async=!0,_.gp(l,_.TP(Qpo,V)),l.id="gtm",V=document.getElementsByTagName("script"),V.length==0?document.head.appendChild(l):(V=V[0],V.parentNode.insertBefore(l,V)))};
_.FB=function(V){if(V=JSON.parse(V))window.dataLayer=window.dataLayer||[],window.dataLayer.push(V)};var cdZ,WBa;cdZ=_.fl(["https://clients2.google.com/gr/gr_sync.js"]);_.Nf1=function(){};
_.Nf1.prototype.init=function(){if(WBa()){var V=_.QN();V.resolve();return V.promise}return _.Z4(_.TP(cdZ)).then(function(){if(!WBa())throw Error("fg");},function(){throw Error("gg");
})};
_.KDg=function(){if(!WBa())return"";var V=window.google.gr;V.init({async:{schedule:"sync"},merchantId:"youtube"});V.start();V=V.finish();return V==null?"":V};
WBa=function(){return window.google!=null&&window.google.gr!=null};var a5W,mCq=new Set,f5N;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.M=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.t(_.M,PolymerFakeBaseClassWithoutHtml);_.To=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.t(_.To,PolymerFakeBaseClassWithoutHtml);var quf=window.ShadyDOM;var XBt,kxJ,yDK,tA1,GxK,EQt,XB,CY;XBt=_.z("enable_shadydom_free_scoped_query_methods");kxJ=_.z("enable_shadydom_free_scoped_node_methods");yDK=_.z("enable_shadydom_free_scoped_readonly_properties_batch_one");tA1=_.z("enable_shadydom_free_parent_node");GxK=_.z("enable_shadydom_free_children");EQt=_.z("enable_shadydom_free_last_child");XB=window.ShadyDOM;_.mL=XB&&XB.noPatch&&XB.wrap?XB.wrap:XB?function(V){return XB.patch(V)}:function(V){return V};
CY=function(V){if(V instanceof ShadowRoot)this.host=(0,_.mL)(V.host),this.root=V;else if(V.$$){this.host=(0,_.mL)(V);var l;this.root=(l=V.root)!=null?l:this.host}else if(V.polymerController){this.host=(0,_.mL)(V);var I;this.root=(I=this.host.shadowRoot)!=null?I:this.host}else this.root=this.host=(0,_.mL)(V)};
FQw();zct();JDc();oQT();rDy();var beb={querySelector:function(V,l){l=sD1(l,sz(V));V=_.pY(V);return Av(V).prototype.querySelector.call(V,l)},
querySelectorAll:function(V,l){l=sD1(l,sz(V));V=_.pY(V);return Av(V).prototype.querySelectorAll.call(V,l)}},qTW={appendChild:function(V,l){var I=sz(V),H=_.Mv(l);
return _.LQT(_.pY(V),I?_.vb(l,I,H):l)},
cloneNode:function(V,l){var I=_.Mv(V);V=_.pY(V);l=Av(V).prototype.cloneNode.call(V,l);return I?Oz(l,I):l},
contains:function(V,l){var I=sz(V),H=_.Mv(l);return I!==H?!1:ecf(V,l)},
insertBefore:function(V,l,I){var H=sz(V),T=_.Mv(l);V=_.pY(V);l=H?_.vb(l,H,T):l;return Av(V).prototype.insertBefore.call(V,l,I)},
removeChild:function(V,l){var I=sz(V);V=_.pY(V);l=I?Oz(l,I):l;return Av(V).prototype.removeChild.call(V,l)},
replaceChild:function(V,l,I){var H=sz(V),T=_.Mv(l);l=H?_.vb(l,H,T):T?Oz(l,T):l;I=H?Oz(I,H):I;V=_.pY(V);return Av(V).prototype.replaceChild.call(V,l,I)},
getRootNode:function(V,l){l=l===void 0?{composed:!0}:l;var I;if(((I=l)!=null?I:{}).composed)V=iz3(V);else{l=V;for(V=A7N(V);V;)l=V,V=vr3(V);V=l}return V}},PST=yDK?{firstChild:dC1,
nextSibling:UCK,previousSibling:$C1,firstElementChild:wBN,lastElementChild:KQT,nextElementSibling:xCN,previousElementSibling:nQt,childNodes:j_c}:{};tA1&&(PST.parentNode=BMy);GxK&&(PST.children=Y5y);EQt&&(PST.lastChild=NMc);XBt&&hcw(beb);kxJ&&hcw(qTW);DCJ();var Zww=function(V){this.node=V instanceof ShadowRoot?V.host:V};
S5T();Rc1();var bw1=new WeakMap;var MAt=Symbol("yd");var vQ1=new Set(["tap","track","down","up"]),OwW=_.z("pbcm_fi_query_decorators");var M0v=function(){return _.To.apply(this,arguments)||this};
_.t(M0v,_.To);_.B=M0v.prototype;_.B.getState=function(){return this.store.getState()};
_.B.dispatch=function(V){this.store.dispatch(V)};
_.B.beforeRegister=function(){if(this&&typeof this==="object"){var V;var l=!!this.useSignals||!((V=this.polymerController)==null||!V.useSignals)}else l=!1;if(!l&&this.properties)for(l=_.U(Object.keys(this.properties)),V=l.next();!V.done;V=l.next()){var I=V.value;V=this.properties[I];if(V.selector){if(V.computed)throw Error("mg");I=["reduxPropertiesRecomputeTrigger",'"'+I+'"'].concat(_.oI(V.selectorArgs||[])).join(",");V.computed="recomputeReduxSelector("+I+")"}}};
_.B.attached=function(){var V=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){V.reduxPropertiesRecomputeTrigger++}));
_.z("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.B.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.B.recomputeReduxSelector=function(V,l){var I=_.Q5.apply(2,arguments),H=this.properties[l].selector;if(!H)throw Error("kg`"+l);return H.apply(null,[this.store.getState()].concat(_.oI(I)))};
_.B.select=function(V){var l=_.Q5.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return V.apply(null,[this.store.getState()].concat(_.oI(l)))};
_.vI.Object.defineProperties(M0v.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("lg");}}});
var z4=M0v;z4.prototype.recomputeReduxSelector=z4.prototype.recomputeReduxSelector;_.O([_.q(),_.a("design:type",Number)],z4.prototype,"reduxPropertiesRecomputeTrigger",void 0);z4=_.O([_.B1()],z4);var yZ=[],lWK={},spo=function(){return CC.apply(this,arguments)||this};
_.t(spo,CC);spo.prototype._addPropertyEffect=function(V,l,I){if(l==="__observeEffects"&&I){var H,T=(H=I.info.method)!=null?H:I.info.methodName;if(T){var x=this[T];this[T]=function(){yZ.push(T);try{x==null||x.apply(this,arguments)}finally{yZ.pop()}}}}_.tz._addPropertyEffect.apply(this,[V,
l,I])};
spo.prototype._setPendingProperty=function(V,l,I){if(yZ.length){var H=yZ[yZ.length-1],T;(T=lWK[this.is])!=null&&T.has(H)||(IWg(this.is,H),_.tF("polymerPropertyChangedInObserver",{componentName:this.is,observerName:H}))}return _.tz._setPendingProperty.apply(this,[V,l,I])};
var X2W=spo;X2W=_.O([daK()],X2W);var HPw=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),BnT,nm={};_.z("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=nm);var p9Z=function(){return _.To.apply(this,arguments)||this};
_.t(p9Z,_.To);p9Z.prototype._setUnmanagedPropertyToNode=function(V,l,I){V.loggingStatus&&(V.loggingStatus.isDeclarativeExternal=!0);if(I!==V[l]||typeof I==="object")V[l]=I;V.is&&V.polymerController&&V.polymerController!==V&&$s(V.is,l,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");V.loggingStatus&&(V.loggingStatus.isDeclarativeExternal=!1)};
var $s1=p9Z;$s1=_.O([_.B1()],$s1);Tnq()&&(ZU.prototype._setUnmanagedPropertyToNode=(new $s1)._setUnmanagedPropertyToNode);_.za1={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(V){},set polymerController(V){}}]};var Ado=function(){var V=CC.apply(this,arguments)||this;V.json=function(){};
return V};
_.t(Ado,CC);Ado.prototype.equals=function(V,l){return V===l};
Ado.prototype.isEmpty=function(V){return!V||_.vy(V)&&V.length===0};
var Ys=Ado;Ys=_.O([daK()],Ys);var uLJ=function(V){V=x_1(V);bW.call(this,V)};
_.t(uLJ,bW);uLJ.prototype.addProvider=function(V){V=V.key?V:x_1([V])[0];var l=this.keyIdToIndex.get(V.key.id);if(l){if(w2T(V,this.providers[l]))throw Error("ng`"+V.key.displayName);}else bW.prototype.addProvider.call(this,V)};
var vXa=new uLJ([]);var OeN=!1;var eac={};OeN||(Lnq(),OeN=!0);
eac.InjectBehavior={initializeInjection:function(){var V=this.provide;try{if((V=V!=null?V:[])&&V.length>0)for(var l=x_1(V),I=_.U(l),H=I.next();!H.done;H=I.next())vXa.addProvider(H.value);var T=new Set;Nn1(this.behaviors||[],T);l={};for(var x=_.U(T),n=x.next();!n.done;n=x.next()){var w=n.value;w.inject&&Object.assign(l,w.inject)}this.inject&&Object.assign(l,this.inject);for(var N=_.U(Object.keys(l)),L=N.next();!L.done;L=N.next()){var e=L.value,k=l[e];try{this[e]=vXa.resolve(k)}catch(X){throw X;}}}catch(X){throw Error(X.message);
}}};var Fny;var yxJ=/\bclass\b/.test(function(){}.toString()),GMK=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Cp3=function(V){this.wasDefined=!0;Array.isArray(V)||V instanceof Array?(this.JSC$11095_getImpl=V[0],this.JSC$11095_setImpl=V[1]):this.JSC$11095_getImpl=V};
_.B=Cp3.prototype;_.B.getWithPath=function(V){return ks(this.JSC$11095_getImpl(),V)};
_.B.setWithPath=function(V,l){var I=this;if(V.length)throw Error("og");if(!this.JSC$11095_setImpl)throw Error("pg");Yi(function(){I.JSC$11095_setImpl(l)})};
_.B.notifyPath=function(){throw Error("qg");};
_.B.notifySplices=function(){throw Error("rg");};
_.B.getChangeRecordSignal=function(V,l){var I=this;if(V.length)throw Error("sg");return function(){var H=I.getWithPath(V);return{path:l!=null?l:"",base:H,value:H}}};
_.B.getSplicesSignal=function(){throw Error("tg");};
_.B.getPathMutationSignal=function(){throw Error("ug");};
_.B.pop=function(){throw Error("vg");};
_.B.push=function(){throw Error("wg");};
_.B.splice=function(){throw Error("xg");};
_.B.unshift=function(){throw Error("yg");};var tM=function(V){var l=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(V)||V instanceof Array?(this.JSC$11100_getImpl=V[0],this.JSC$11100_setImpl=V[1]):this.JSC$11100_getImpl=V;this.wasDefined=!1;BT(function(){l.wasDefined=l.JSC$11100_getImpl()!==void 0})};
tM.prototype.getWithPath=function(V){return ks(this.JSC$11100_getImpl(),V)};
tM.prototype.setWithPath=function(V,l){var I=this;if(V[V.length-1]!=="*"&&V[V.length-1]!=="splices"){if(V.length===0){if(!this.JSC$11100_setImpl)throw Error("zg");this.wasDefined||(this.wasDefined=l!==void 0);Yi(function(){I.JSC$11100_setImpl(l)})}else{for(var H=BT(function(){return I.getWithPath([])}),T=0;T<V.length-1;T++){if(!H)return;
H=H[V[T]]}T=V[V.length-1];H&&(H[T]=l);this.wasDefined||(this.wasDefined=V.length>1||l!==void 0)}ai3(this,V,{pathComponents:V,value:l})}};
tM.prototype.notifyPath=function(V,l){V.length===0?l&&this.setWithPath(V,l.value):ai3(this,V,{pathComponents:V,value:l==null?void 0:l.value,fallbackWhenUndefined:l==null?void 0:l.value})};
var ai3=function(V,l,I,H){if(V.setMutationSignal){var T=++V.mutationIndex,x=[V.observedPath],n=V.observedPath,w;l.length===0&&(w=n);for(var N=0;N<l.length;N++){var L=n.subPaths[l[N]];if(!L)break;x.push(L);n=L;N===l.length-1&&(w=L)}for(l=!1;x.length;)n=x.shift(),n.data={index:T,mutation:I,spliceMutationIndex:H},l||(l=n===w),l&&x.push.apply(x,_.oI(Object.values(n.subPaths)));Yi(function(){V.setMutationSignal(T)})}};
tM.prototype.notifySplices=function(V,l){var I=this,H=BT(function(){return I.getWithPath(V)}),T=[].concat(_.oI(V),["splices"]);
ai3(this,T,{pathComponents:T,value:{indexSplices:l}});if(H==null?0:H.length)l=this.mutationIndex,T=[].concat(_.oI(V),["length"]),ai3(this,T,{pathComponents:T,value:H.length},l)};
var fiZ=function(V,l,I,H,T,x){V.notifySplices(I,[{index:H,addedCount:T,removed:x,object:l,type:"splice"}])},gXo=function(V,l){V=V.observedPath;
for(var I=0;I<l.length;I++){var H=l[I],T=V.subPaths[H];T||(T={pathComponents:l.slice(0,I+1),subPaths:{}},V.subPaths[H]=T);V=T}},ieN=function(V,l,I){gXo(V,l);
if(!V.getMutationSignal){var H=_.U(_.xi(V.mutationIndex,void 0,"QMrAub"));V.getMutationSignal=H.next().value;V.setMutationSignal=H.next().value}var T=V.getMutationSignal;return _.Ny(function(){T();return I(mQW(V,l))},void 0,"ce54qf")};
tM.prototype.getChangeRecordSignal=function(V,l){var I=this,H=this.mutationIndex,T;return ieN(this,V,function(x){if(x&&x.index>H){var n=x.mutation;H=x.index;T=void 0}x=BT(function(){return I.getWithPath(V)});
if(n){var w=n.pathComponents[n.pathComponents.length-1],N=[].concat(_.oI(n.pathComponents));if(w==="splices"||w==="length")return{base:x,path:(l?[l].concat(_.oI(N)):N).join("."),value:n.value};var L=V.length>N.length?V:N,e;return{base:x!=null?x:n.fallbackWhenUndefined,path:(l?[l].concat(_.oI(L)):L).join("."),value:(e=BT(function(){return I.getWithPath(L)}))!=null?e:n.fallbackWhenUndefined}}T||(T={base:x,
path:(l?[l].concat(_.oI(V)):V).join("."),value:x});return T})};
tM.prototype.getSplicesSignal=function(V){var l=this.mutationIndex,I;return ieN(this,V,function(H){if(H&&H.index>l&&H.spliceMutationIndex!==l){var T=H.mutation;l=H.index;I=void 0}return T&&T.pathComponents[T.pathComponents.length-1]==="splices"?I=H=T.value:I})};
tM.prototype.getPathMutationSignal=function(V){var l=this;gXo(this,V);if(!this.getMutationSignal){var I=_.U(_.xi(this.mutationIndex,void 0,"tBKh7d"));this.getMutationSignal=I.next().value;this.setMutationSignal=I.next().value}var H=this.getMutationSignal,T=this.mutationIndex,x;return _.Ny(function(){H();var n=mQW(l,V);if(n&&n.index>T&&n.mutation&&o3w(n.mutation.pathComponents,V)){var w=n.mutation;T=n.index}if(!x||T!==x.index){var N,L;n=(L=BT(function(){return l.getWithPath(V)}))!=null?L:(N=w)==null?
void 0:N.fallbackWhenUndefined;
x={index:T,value:n}}return x},void 0,"XXmDAf")};
var mQW=function(V,l){V=V.observedPath;l=_.U(l);for(var I=l.next();!I.done;I=l.next())V=V.subPaths[I.value];return V.data};
tM.prototype.pop=function(V){var l=this,I=BT(function(){return l.getWithPath(V)});
if(!(I instanceof Array))throw Error("Ag");var H=I.length>0,T=I.pop();H&&fiZ(this,I,V,I.length,0,[T]);return T};
tM.prototype.push=function(V){var l=_.Q5.apply(1,arguments),I=this,H=BT(function(){return I.getWithPath(V)});
if(!(H instanceof Array))throw Error("Bg");var T=H.length,x=H.push.apply(H,_.oI(l));l.length&&fiZ(this,H,V,T,l.length,[]);return x};
tM.prototype.splice=function(V,l,I){var H=_.Q5.apply(3,arguments),T=this,x=BT(function(){return T.getWithPath(V)});
if(!(x instanceof Array))throw Error("Cg");l<0?l=x.length-Math.floor(-l):l&&(l=Math.floor(l));var n=x.splice.apply(x,[l,I].concat(_.oI(H)));(H.length||n.length)&&fiZ(this,x,V,l,H.length,n);return n};
tM.prototype.unshift=function(V){var l=_.Q5.apply(1,arguments),I=this,H=BT(function(){return I.getWithPath(V)});
if(!(H instanceof Array))throw Error("Dg");var T=H.unshift.apply(H,_.oI(l));l.length&&fiZ(this,H,V,0,l.length,[]);return T};var VCJ=!0,lQ0=!1,sLw=!1,IQv=!1,rd=!1,HXJ=0;IQv=!1;HXJ=0;VCJ=!0;rd=lQ0=sLw=!1;var G4=function(V,l,I){this.model=V;this.unknownSignalResolver=l;this.options=I;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];l=_.U(Wnt());V=l.next().value;l=l.next().value;this.owner=V;this.disposeImpl=l};
G4.prototype.dispose=function(){if(!this.isDisposed){for(var V=_.U(this.childSignalProxies),l=V.next();!l.done;l=V.next())l.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var TAv=function(V,l){V=OX(V.owner);try{l()}finally{OX(V)}},BAo=function(V,l){var I={stack:[],
error:void 0,hasError:!1};try{_.QP(I,_.a8(V.owner)),l()}catch(H){I.error=H,I.hasError=!0}finally{_.c1(I)}};
G4.prototype.effect=function(V){_.z("web_poly_si_remove_using")?TAv(this,function(){_.y9(V)}):BAo(this,function(){_.y9(V)})};
var xkZ=function(V,l){V.options!=null||(V.options={});var I;(I=V.options).immutableProps!=null||(I.immutableProps=new Set);V.options.immutableProps.add(l)},M0g=function(V,l){l=""+l;
var I;if((I=V.model.__signalCache)==null?0:I.has(l))I=V.model.__signalCache.get(l),Array.isArray(I)&&xkZ(V,l);var H,T,x;return(x=(H=V.options)==null?void 0:(T=H.immutableProps)==null?void 0:T.has(l))!=null?x:!1},Ukb=function(V,l){var I;
V.unknownSignalResolver&&(I=V.unknownSignalResolver(l));var H,T;((H=V.options)==null?0:(T=H.immutableProps)==null?0:T.has(l))?I!=null||(I=new Cp3(_.xi(V.model[l],void 0,"SYknZd"))):I!=null||(I=new tM(_.xi(V.model[l],void 0,"GCgq1e")));var x=V.model.hostElement;Object.defineProperty(V.model,l,{get:function(){Us3(x,l);return I.getWithPath([])},
set:function(n){d_(x,l);V.setWithPath([l],n)},
configurable:!0});return I},XV=function(V,l){l=""+l;
var I=V.signalCache[l];if(I!==void 0)return I;I=!1;var H;if((H=V.model.__signalCache)==null?0:H.has(l))if(I=V.model.__signalCache.get(l),Array.isArray(I))I=!0,xkZ(V,l);else return V.signalCache[l]=V.model.__signalCache.get(l).signal,V.signalCache[l];var T,x;H=(x=(T=V.options)==null?void 0:T.reactivityMode)!=null?x:0;var n,w;if(!((n=V.options)==null?0:(w=n.reactiveProps)==null?0:w.has(l))&&!I&&H===1)throw Error("Eg`"+l);T=I?n1w(V,l):Ukb(V,l);return V.signalCache[l]=T},n1w=function(V,l){var I=Object.getOwnPropertyDescriptor(V.model.constructor.prototype,
l),H=function(){return V.model[l]};
return new Cp3(I&&I.get&&!I.set?H:[H,function(T){V.model[l]=T}])};
G4.prototype.getWithPath=function(V){var l=_.U(V);V=l.next().value;l=pS(l);Us3(this.model.hostElement,""+V);return XV(this,V).getWithPath(l)};
G4.prototype.setWithPath=function(V,l){if(V.length){d_(this.model.hostElement,V.join("."));var I=_.U(V);V=I.next().value;I=pS(I);XV(this,V).setWithPath(I,l)}};
G4.prototype.getPathMutationSignal=function(V){var l=_.U(V);V=l.next().value;l=pS(l);return XV(this,V).getPathMutationSignal(l)};
G4.prototype.notifyPath=function(V,l){var I=_.U(V);V=I.next().value;I=pS(I);XV(this,V).notifyPath(I,l)};
var $kE=function(V,l){if(l.type==="literal")return function(){return{rootWasDefined:!0,value:l.value}};
var I=e5(l.path),H=_.U(I),T=H.next().value;H=pS(H);var x,n;if(l.type==="path"&&(I.length===1||((x=V.options)==null?0:(n=x.immutableProps)==null?0:n.has(T))))return function(){var k=V.getWithPath(I.slice(0,1)),X=ks(k,I.slice(1));k=k!==void 0;rd&&(k=XV(V,I[0]).wasDefined);return{rootWasDefined:k,value:X}};
var w=XV(V,T);if(l.type==="path"){var N=w.getPathMutationSignal(H);return function(){var k=rd?w.wasDefined:J0(V.owner,function(){return w.getWithPath([])})!==void 0;
var X,r=(X=N())==null?void 0:X.value;return{rootWasDefined:k,value:r}}}if(l.type==="splices"){var L=w.getSplicesSignal(H);
return function(){var k=L();return{rootWasDefined:rd?w.wasDefined:k!==void 0,value:k}}}var e=w.getChangeRecordSignal(H,""+T);
return function(){var k=e();return{rootWasDefined:rd?w.wasDefined:k!==void 0,value:k}}},Ra3=function(V,l,I){var H=I.map(function(w){return $kE(V,w)}),T=I.length===0,x=[],n=I.length!==1||I[0].type!=="path"?!1:!0;
V.effect(function(){for(var w=H.length,N=[],L=!!x.length,e=0;e<w;e++){var k=H[e](),X=k.rootWasDefined;k=k.value;T||(T=X);N[e]=k;n&&(N[e+w]=L?x[e]:N[e],x[e]=k)}T&&J0(V.owner,function(){return void l.apply(null,_.oI(N))})})},hat=function(V,l,I,H,T){var x=XV(V,l);
T!==void 0&&x.setWithPath([],T);Ra3(V,function(){var n=_.Q5.apply(0,arguments);d_(V.model.hostElement,l,!0);x.setWithPath([],I.apply(null,_.oI(n)))},H)};
G4.prototype.arrayPush=function(V){var l=_.Q5.apply(1,arguments),I=_.U(V),H=I.next().value;I=pS(I);H=XV(this,H);return H.push.apply(H,[I].concat(_.oI(l)))};
G4.prototype.arraySplice=function(V,l,I){var H=_.Q5.apply(3,arguments),T=_.U(V),x=T.next().value;T=pS(T);x=XV(this,x);return x.splice.apply(x,[T,l,I].concat(_.oI(H)))};
G4.prototype.arrayUnshift=function(V){var l=_.Q5.apply(1,arguments),I=_.U(V),H=I.next().value;I=pS(I);H=XV(this,H);return H.unshift.apply(H,[I].concat(_.oI(l)))};
G4.prototype.notifySplices=function(V,l){var I=_.U(V);V=I.next().value;I=pS(I);XV(this,V).notifySplices(I,l)};var Axc=/([^\s]+?)\(([\s\S]*)\)/,MG3=/\.([^.]+)$/,v31=/\\,/g,bP3=/&comma;/g,q6N=/\\(.)/g,u4w=[],s5c={"*":"wildcard",splices:"splices"};var Iiw=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"),msy=/[A-Z]/,dkZ=["class","hidden","id","on-dom-change"],RbN=new Set([].concat(_.oI(dkZ),
["if","notify-dom-change","restamp"])),Qpc=new Set([].concat(_.oI(dkZ),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),cdN=new Set(["restamp"]);var p9N=Symbol(),fiN=window;var TAg=window;var ws1=0,UkW=0,zo=[],dkK=0,xkK=!1,$kw=document.createTextNode("");(new window.MutationObserver(n1y)).observe($kw,{characterData:!0});var tT=new Map,yP=0,wsB=function(V){this.mappedHandleId=V},Kz1=function(V,l,I,H){this.mappedHandleId=V;
var T=this;this.mappedHandleId=V;this.callback=l;this.waitTime=I;this.schedulerPriority=H;this.handleId=_.r0.addJob(function(){T.callback();tT.delete(T.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.t(Kz1,wsB);Kz1.prototype.cancel=function(){_.r0.cancelJob(this.handleId);tT.delete(this.mappedHandleId)};
var jLf=function(V,l){this.mappedHandleId=V;var I=this;this.mappedHandleId=V;this.callback=l;this.handleId=NAT(function(){I.callback();tT.delete(I.mappedHandleId)})};
_.t(jLf,wsB);jLf.prototype.cancel=function(){var V=this.handleId-UkW;V<0||zo.length<=V||(zo[V]=null);tT.delete(this.mappedHandleId)};var kcJ=function(){};
kcJ.prototype.cancel=function(){this.jobHandle!==void 0&&(Yst(this.jobHandle),this.jobHandle=void 0)};
kcJ.prototype.run=function(V,l,I){var H=this;this.cancel();this.callback=V;this.jobHandle=_.r_(function(){V();H.callback=void 0},l,I)};
kcJ.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Lzq=new WeakMap;var NAJ=g3(function(V){for(var l=V,I=0;I<3;I++)l=Object.getPrototypeOf(l);delete l.prototype.connectedCallback;var H=function(){return V.apply(this,arguments)||this};
_.t(H,V);H.prototype._attachDom=function(T){if(!T)return null;var x=(0,_.mL)(this.hostElement);x.attachShadow({mode:"open",shadyUpgradeFragment:T});x.shadowRoot.appendChild(T);return x.shadowRoot};
H.prototype._takeAttributes=function(){for(var T=this.hostElement.attributes,x=0;x<T.length;x++){var n=T[x],w=void 0,N=void 0;(N=(w=this).__attributeReaction)==null||N.call(w,n.name,null,n.value)}};
H.prototype._readyClients=function(){V.prototype._readyClients.call(this);this.root=this};
H.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);V.prototype.connectedCallback.call(this)};
_.vI.Object.defineProperties(H,{template:{configurable:!0,enumerable:!0,get:function(){return H.prototype._template}}});
return H}),Kzi=g3(function(V){var l=function(){return V.apply(this,arguments)||this};
_.t(l,V);l.prototype.created=function(){if(this.__notifyEffects)for(var I=_.U(Object.values(this.__notifyEffects)),H=I.next();!H.done;H=I.next()){H=_.U(H.value);for(var T=H.next();!T.done;T=H.next())T.value.fn=yLg}if(this.__reflectEffects)for(I=_.U(Object.values(this.__reflectEffects)),H=I.next();!H.done;H=I.next())for(H=_.U(H.value),T=H.next();!T.done;T=H.next())T.value.fn=tCJ};
l.prototype._addEventListenerToNode=function(I,H,T){I=E7(I);GO(I,H,T)||V.prototype._addEventListenerToNode.call(this,I,H,T)};
l.prototype._removeEventListenerFromNode=function(I,H,T){I=E7(I);Ew(I,H,T)||V.prototype._removeEventListenerFromNode.call(this,I,H,T)};
l.prototype._propertiesChanged=function(I,H,T){if(this.__dataToNotify&&this.__notifyEffects)for(var x=_.U(Object.keys(this.__dataToNotify)),n=x.next();!n.done;n=x.next()){n=n.value;var w=z2t(n);this.__notifyEffects[w]||delete this.__dataToNotify[n]}else this.__dataToNotify=null;V.prototype._propertiesChanged.call(this,I,H,T)};
l.prototype.fire=function(I,H,T){H=H===void 0?{}:H;var x;return _.B$(E7((x=T==null?void 0:T.node)!=null?x:this),I,H,T)};
l.prototype._ensureAttribute=function(I,H){var T=E7(this);T.hasAttribute(I)||FV(T,H,I)};
l.prototype.isLightDescendant=function(I){var H=E7(this);return E7(H)!==I&&_.h(H).contains(I)&&_.h(H).getRootNode()===_.h(I).getRootNode()};
return l});
_.tw.ready=function(){var V;((V=this.hostElement)!=null?V:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var l;((l=this.hostElement)!=null?l:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Da._subscribeIronResize=function(V){var l;((l=V.hostElement)!=null?l:V).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Da._unsubscribeIronResize=function(V){var l;((l=V.hostElement)!=null?l:V).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var E1f=[Array,Boolean,Date,Number,Object,String],oj=function(V,l,I,H){this.polySiInfo=V;this.polySiParams=l;this.polySiContext=I;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;H||this instanceof HTMLElement&&(H=this);if(!H)throw Error("Lg");this.allowedProps=l.allowedProps;this.hostElement=H;this.is=V.is;this.upgradeDisabled=!!l.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");V=new Set(l.reactiveSchemas.filter(function(T){return T.type!==
"observe"}).map(function(T){return T.propertyKey}));
this.signalProxy=new G4(this,void 0,{reactiveProps:V,reactivityMode:l.reactivityMode});this.__dataHasAccessor={};l=_.U(l.reactiveSchemas);for(V=l.next();!V.done;V=l.next())V=V.value,V.type==="signal"&&(this.__dataHasAccessor[V.propertyKey]=!0);this.upgradeDisabled||jLa(this)};
oj.prototype.getExtraMethodsToForward=function(){return[]};
var jLa=function(V){V.polySiContext.didRegister||(V.registered(),V.polySiContext.didRegister=!0);V.polySiContext.finalizedTemplate||(V.polySiContext.finalizedTemplate={},V.polySiParams.templateGetter&&(V.polySiContext.finalizedTemplate.processedTemplate=BAc(V.polySiParams.templateGetter,V.polySiParams.is)));Ys3(V);var l=V.hostElement;l.loggingStatus!=null||(l.loggingStatus={});l.loggingStatus.isInitializing=!0;BT(function(){return void V.created()});
l.loggingStatus.isInitializing=!1;V.isPolySiElementConnected&&LzN(V)},LzN=function(V){V.didCallReady||(BT(function(){return void V.ready()}),V.didCallReady=!0);
V.isAttached=!0;V.attached()};
_.B=oj.prototype;_.B.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||LzN(this)};
_.B.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.B.attributeChangedCallback=function(V,l,I){if(this.upgradeDisabled)V==="disable-upgrade"&&I===null&&(this.upgradeDisabled=!1,jLa(this));else if(l!==I){var H=_.K8(V),T=this.polySiContext.typesForSignals[H];if(T){switch(T){case Object:try{var x=JSON.parse(I)}catch(w){x=I}break;case Array:try{x=JSON.parse(I)}catch(w){x=null}break;case Date:x=isNaN(I)?String(I):Number(I);x=new Date(x);break;case Boolean:x=I!==null;break;case Number:x=Number(I);break;default:x=I}this[H]=x}H=_.U(this.polySiParams.behaviors);
for(T=H.next();!T.done;T=H.next())x=void 0,(x=T.value.attributeChanged)==null||x.call(this,V,l,I);var n;(n=this.attributeChanged)==null||n.call(this,V,l,I)}};
_.B.attributeChangedCallbackWrapper=function(V,l,I){this.attributeChangedCallback(V,l,I)};
_.B.setPropertiesFromInitialAttributeValues=function(){for(var V=0;V<this.hostElement.attributes.length;V++){var l=this.hostElement.attributes[V];(l.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(l.name))&&this.attributeChangedCallback(l.name,null,l.value)}};
_.B.created=function(){this.provide=this.polySiParams.provide;var V;(V=this.initializeInjection)==null||V.call(this);V=_.U(this.polySiParams.reactiveSchemas);for(var l=V.next();!l.done;l=V.next())l=l.value,l.type==="signal"&&(this.mutablePropNames.add(l.propertyKey),XV(this.signalProxy,l.propertyKey));Gc1(this,this.polySiInfo,this.polySiParams.behaviors);V=_.U(this.polySiParams.reactiveSchemas);for(l=V.next();!l.done;l=V.next())l=l.value,l.type==="signal"&&l.value!==void 0&&(this.signalProxy.model[l.propertyKey]=
typeof l.value==="function"?l.value.call(this):l.value);if(this.polySiParams.signalProperties)for(V=_.U(this.polySiParams.signalProperties),l=V.next();!l.done;l=V.next()){l=l.value;var I=void 0;((I=this.__signalCache)==null?0:I.has(l))||(this.signalProxy.model[l]=void 0)}IQv||e2Z(this);rLt(this);V=_.U(this.polySiParams.behaviors);for(l=V.next();!l.done;l=V.next())I=void 0,(I=l.value.created)==null||I.call(this);var H;(H=this.polySiInfo.created)==null||H.call(this)};
_.B.registered=function(){var V=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var l=Object.getPrototypeOf(this);l.addReactiveSchema=function(w){V.polySiParams.reactiveSchemas.push(w)};
for(var I=_.U(this.polySiParams.behaviors),H=I.next();!H.done;H=I.next()){var T=void 0;(T=H.value.beforeRegister)==null||T.call(l)}var x;(x=this.polySiInfo.beforeRegister)==null||x.call(l);l.addReactiveSchema=o1f;I=_.U(this.polySiParams.behaviors);for(H=I.next();!H.done;H=I.next())T=void 0,(T=H.value.registered)==null||T.call(l);var n;(n=this.polySiInfo.registered)==null||n.call(l)};
_.B.ready=function(){var V;(V=this.beforeReady)==null||V.call(this);IQv&&e2Z(this);var l;if(V=(l=this.polySiContext.finalizedTemplate)==null?void 0:l.processedTemplate){V=HXT(V.template,V.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:V.hasInsertionPoint,thisCtx:this});l=V.nodesById;V=V.root;var I=(0,_.mL)(this.hostElement);if(!I.attachShadow)throw Error("Ed");I.shadowRoot||(I.attachShadow({mode:"open",shadyUpgradeFragment:V}),I.shadowRoot.appendChild(V));this.root=I.shadowRoot;
this.$=l}kc0(this);l=_.U(this.polySiParams.behaviors);for(V=l.next();!V.done;V=l.next())I=void 0,(I=V.value.ready)==null||I.call(this);var H;(H=this.polySiInfo.ready)==null||H.call(this)};
_.B.attached=function(){for(var V=_.U(this.polySiParams.behaviors),l=V.next();!l.done;l=V.next()){var I=void 0;(I=l.value.attached)==null||I.call(this)}var H;(H=this.polySiInfo.attached)==null||H.call(this)};
_.B.detached=function(){for(var V=_.U(this.polySiParams.behaviors),l=V.next();!l.done;l=V.next()){var I=void 0;(I=l.value.detached)==null||I.call(this)}var H;(H=this.polySiInfo.detached)==null||H.call(this)};
var Ys3=function(V){for(var l=_.U(V.polySiParams.behaviors),I=l.next();!I.done;I=l.next())if(I=I.value,I.listeners)for(var H in I.listeners)IQg(V,V.hostElement,H,I.listeners[H]);if(V.polySiInfo.listeners)for(var T in V.polySiInfo.listeners)IQg(V,V.hostElement,T,V.polySiInfo.listeners[T])},IQg=function(V,l,I,H,T){V=Jxw(V,H,T);
GO(l,I,V)||l.addEventListener(I,V);return V},e2Z=function(V){for(var l=_.U(V.polySiParams.reactiveSchemas),I=l.next();!I.done;I=l.next())I=I.value,I.type==="compute"||I.type==="computeWithMethod"?P63(V.signalProxy,I,V):I.type==="redux"?S6c(V.signalProxy,I,V.store):I.type==="signal"&&I.readOnly&&ZPf(V.signalProxy,I)},kc0=function(V){for(var l=_.U(V.polySiParams.reactiveSchemas),I=l.next(),H={};!I.done;H={schema$jscomp$12:void 0},I=l.next())H.schema$jscomp$12=I.value,H.schema$jscomp$12.type==="notify"?
Q5W(V.signalProxy,H.schema$jscomp$12,V.hostElement):H.schema$jscomp$12.type==="observe"?cxt(V.signalProxy,H.schema$jscomp$12,V):H.schema$jscomp$12.type==="reflect"&&V.signalProxy.effect(function(x){return function(){var n=V.signalProxy.getWithPath([x.schema$jscomp$12.propertyKey]);
C6c(V.hostElement,x.schema$jscomp$12.propertyKey,n)}}(H));
if(V.reflectedAttributes)for(l=_.U(Object.entries(V.reflectedAttributes)),H=l.next(),I={};!H.done;I={key$jscomp$867:void 0,value$jscomp$8541:void 0},H=l.next()){var T=_.U(H.value);H=T.next().value;T=T.next().value;I.key$jscomp$867=H;I.value$jscomp$8541=T;V.signalProxy.effect(function(x){return function(){C6c(V.hostElement,x.key$jscomp$867,(0,x.value$jscomp$8541)())}}(I))}};
_.B=oj.prototype;_.B._setPendingProperty=function(V,l){this.set(V,l);return!1};
_.B._enableProperties=function(){};
_.B._setPendingPropertyOrPath=function(V,l){this.notifyPath(V,l);return!1};
_.B._addPropertyEffect=function(){};
_.B._stampTemplate=function(){throw Error("Mg");};
_.B.fire=function(V,l,I){l=l===void 0?{}:l;I=I===void 0?{}:I;var H,T,x={bubbles:(H=I.bubbles)!=null?H:!0,cancelable:!!I.cancelable,composed:(T=I.composed)!=null?T:!0},n;return _.B$(h23((n=I.node)!=null?n:this.hostElement),V,l,x)};
_.B.get=function(V,l){var I=e5(V);return l?ks(l,I):V==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(I)};
_.B.linkPaths=function(){};
_.B.listen=function(V,l,I){V=h23(V);this.boundListeners!=null||(this.boundListeners=new WeakMap);var H=this.boundListeners.get(V);H||(H={},this.boundListeners.set(V,H));var T=l+I;H[T]||(H[T]=IQg(this,V,l,I))};
_.B.notifyPath=function(V,l){this.signalProxy.notifyPath(e5(V),arguments.length===2?{value:l}:void 0)};
_.B.canNotifyPath=function(V){var l,I;return this.mutablePropNames.has(V)&&!((l=this.signalProxy.options)==null?0:(I=l.immutableProps)==null?0:I.has(V))};
_.B.notifySplices=function(V,l){this.signalProxy.notifySplices(e5(V),l)};
_.B.pop=function(V){var l=this.signalProxy;V=e5(V);var I=_.U(V);V=I.next().value;I=pS(I);return XV(l,V).pop(I)};
_.B.push=function(V){var l=_.Q5.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[e5(V)].concat(_.oI(l)))};
_.B.set=function(V,l,I){if(I)throw Error("Ng");V==="hidden"?this.hostElement.hidden=!!l:this.signalProxy.setWithPath(e5(V),l)};
_.B.setProperties=function(V){V=_.U(Object.entries(V));for(var l=V.next();!l.done;l=V.next()){var I=_.U(l.value);l=I.next().value;I=I.next().value;this[l]=I}};
_.B.splice=function(V,l,I){var H=_.Q5.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[e5(V),l,I].concat(_.oI(H)))};
_.B.unlinkPaths=function(){};
_.B.unlisten=function(V,l,I){V=h23(V);if(this.boundListeners){var H=this.boundListeners.get(V);if(H){I=l+I;var T=H[I];T&&(Ew(V,l,T)||V.removeEventListener(l,T),delete H[I])}}};
_.B.unshift=function(V){var l=_.Q5.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[e5(V)].concat(_.oI(l)))};
_.vI.Object.defineProperties(oj.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 MCw=[Array,Boolean,Date,Number,Object,String];var AL1=!1;var Ep=function(){var V=HTMLElement.apply(this,arguments)||this;V.restamp=!1;V.notifyDomChange=!1;V.JSC$11212_didCallConnected=!1;V.JSC$11212_renderDebouncer=null;V.disableTemplateUpdateSignalImpl=hT()?void 0:_.xi(!1,void 0,"bmozBd");var l;V.getDisableTemplateUpdate=(l=V.disableTemplateUpdateSignalImpl)==null?void 0:l[0];var I;V.setDisableTemplateUpdate=(I=V.disableTemplateUpdateSignalImpl)==null?void 0:I[1];return V};
_.t(Ep,HTMLElement);var Fzb=function(V){V.conditionSignalImpl!=null||(V.conditionSignalImpl=new tM(_.xi(!1,void 0,"NYV5Rb")));return V.conditionSignalImpl};
_.B=Ep.prototype;_.B.showHideChildren=function(V){XsN(this,V,this.if)};
_.B.attributeChangedCallback=function(V,l,I){if(this.JSC$11212_didCallConnected)throw Error("Rg`"+V);V==="notify-dom-change"?this.notifyDomChange=I!==null:V==="restamp"&&(this.restamp=I!==null)};
_.B.debounceRender=function(){this.JSC$11212_renderDebouncer=_.nD(this.JSC$11212_renderDebouncer,oX,this.JSC$11212_renderImpl.bind(this));_.$b(this.JSC$11212_renderDebouncer)};
_.B.disconnectedCallback=function(){var V=(0,_.mL)(this).parentNode;(!V||V.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in V&&!V.host)&&z23(this)};
_.B.connectedCallback=function(){var V=this;this.JSC$11212_didCallConnected=!0;VCJ?u63():this.style.display="none";this.parentSignalProxy.effect(function(){Fzb(V).getWithPath([]);V.debounceRender()})};
_.B.render=function(){_.KD()};
_.B.JSC$11212_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var V=this.if;if(V){a:{var l=(0,_.mL)(this).parentNode;if(this.hasInstance()){var I=this.instance.children;if((I==null?0:I.length)&&(0,_.mL)(this).previousSibling!==I[I.length-1])for(var H=0;H<I.length;H++)(0,_.mL)(l).insertBefore(I[H],this)}else{if(!l){l=!1;break a}yLv(this,l)}l=!0}if(!l)return}else this.restamp&&z23(this);XsN(this,!1,V);V&&tC0(this);lQ0&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.B.hasInstance=function(){return!!this.instance};
var yLv=function(V,l){var I=V.parentSignalProxy;if(hT()){var H=_.U(_.xi(!0,void 0,"tGD1cf"));var T=H.next().value;H=H.next().value;I=V.parentSignalProxy}else{var x;var n=new G4((x=rLN(V))!=null?x:{},function(N){var L=XV(V.parentSignalProxy,N).getChangeRecordSignal([]);N=_.xi(void 0,void 0,"dOaz1b");var e=new tM(N);n.effect(function(){if(V.getDisableTemplateUpdate&&!V.getDisableTemplateUpdate()){var k=L();e.notifyPath(e5(k.path),{value:k.value})}});
return e});
V.parentSignalProxy.childSignalProxies.push(n);var w=I=n}x=HXT(V.templateInfo,V.templateInfo.nodeInfoList,I,{eventListenerHost:V.eventListenerHost,hasInsertionPoint:V.templateInfo.hasInsertionPoint,thisCtx:V.eventListenerHost,enabledSignal:hT()?T:void 0,scope:V.parentScope,getModel:function(){return V.parentScope?v13(I.owner,V.parentScope):rLN(V)}}).root;
V.instance={root:x,children:[],hidden:!1,signalProxy:w,getTemplateUpdatesEnabled:T,setTemplateUpdatesEnabled:H};w=_.U(x.childNodes);for(T=w.next();!T.done;T=w.next())V.instance.children.push(T.value);(0,_.mL)(l).insertBefore(V.instance.root,V)},rLN=function(V){if((V=V.parentSignalProxy.model)&&!V.hostElement){var l={},I;
for(I in V)V.hasOwnProperty(I)&&(l[I]=V[I]);return l}},z23=function(V){if(V.instance){var l=V.instance.children;
if(l.length){var I=(0,_.mL)(l[0]).parentNode;if(I){I=(0,_.mL)(I);for(var H=0;H<l.length;H++)I.removeChild(l[H])}}hT()?V.instance.setTemplateUpdatesEnabled(!1):V.instance.signalProxy.dispose();V.instance=void 0}},XsN=function(V,l,I){l=l||!I;
V.instance&&V.instance.hidden!==l&&(V.instance.hidden=l,psW(l,V.instance.children))},tC0=function(V){if(hT()){var l=V.instance;
l&&J0(V.parentSignalProxy.owner,function(){return!l.getTemplateUpdatesEnabled()})&&l.setTemplateUpdatesEnabled(!0)}else V.setDisableTemplateUpdate(!1)};
_.vI.Object.defineProperties(Ep.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var V=this;return J0(this.parentSignalProxy.owner,function(){return Fzb(V).getWithPath([])})},
set:function(V){V||(hT()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));Fzb(this).setWithPath([],!!V)}}});
_.vI.Object.defineProperties(Ep,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Ep);var Gci=[],JM=function(){var V=HTMLElement.apply(this,arguments)||this;V.as="item";V.indexAs="index";V.itemsIndexAs="itemsIndex";V.targetFramerate=20;V.notifyDomChange=!1;V.isDetached=!1;V.JSC$11219_renderDebouncer=null;V.instances=[];V.chunkingId=null;V.chunkCount=null;V.shouldMeasureChunk=!1;V.shouldContinueChunking=!1;V.renderStartTime=null;V.JSC$11219_didCallConnected=!1;return V};
_.t(JM,HTMLElement);var E1a=function(V){V.itemSignalImpl!=null||(V.itemSignalImpl=new tM(_.xi(Gci,void 0,"uvlPIb")));return V.itemSignalImpl},JLN=function(V,l){Array.isArray(l)||(l=Gci);
E1a(V).setWithPath([],l)};
_.B=JM.prototype;_.B.showHideChildren=function(V){for(var l=_.U(this.instances),I=l.next();!I.done;I=l.next())psW(V,I.value.children)};
_.B.notifyPath=function(V,l){V=e5(V);V[0]==="items"&&(V.length===1?JLN(this,l):E1a(this).setWithPath(V.slice(1),l))};
_.B.canNotifyPath=function(V){return V==="items"};
_.B.attributeChangedCallback=function(V,l,I){if(this.JSC$11219_didCallConnected)throw Error("Sg`"+V);V==="as"?this.as=I:V==="index-as"?this.indexAs=I:V==="items-index-as"?this.itemsIndexAs=I:V==="initial-count"?this.initialCount=Number(I):V==="notify-dom-change"?this.notifyDomChange=I!==null:V==="target-framerate"&&(this.targetFramerate=Number(I))};
_.B.disconnectedCallback=function(){this.isDetached=!0;for(var V=0;V<this.instances.length;V++)o1a(this,V);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.B.connectedCallback=function(){var V=this,l=E1a(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var T=l(),x=e5(T.path);if(x[0]===void 0||x[0]==="splices"||x[0]==="length")V.debounceRender();else{var n=x[0];if(n=V.instances[typeof n==="string"?Math.floor(Number(n)):n])n.type==="legacy"?(x=[V.as].concat(_.oI(x.slice(1))),n.signalProxy.notifyPath(x,T)):(x=x.slice(1),n.itemSignal.notifyPath(x,T))}});
this.JSC$11219_didCallConnected=!0;VCJ?u63():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var I=(0,_.mL)((0,_.mL)(this).parentNode),H=0;H<this.instances.length;H++)I.insertBefore(this.instances[H].root,this);this.chunkingId&&this.render()}};
_.B.debounceRender=function(){this.JSC$11219_renderDebouncer=_.nD(this.JSC$11219_renderDebouncer,oX,this.JSC$11219_renderImpl.bind(this));_.$b(this.JSC$11219_renderDebouncer)};
_.B.render=function(){this.debounceRender();_.KD()};
_.B.JSC$11219_renderImpl=function(){var V=this,l=this.items,I=h2W(this,l.length);PTZ(this,l,I);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){V.chunkingId=null;if(V.shouldMeasureChunk){var H=performance.now()-V.renderStartTime;V.chunkCount=Math.round(Math.ceil(1E3/V.targetFramerate)/H*V.chunkCount)||1}V.shouldContinueChunking&&V.debounceRender()}));
lQ0&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var h2W=function(V,l){var I=l,H=V.instances.length;if(V.initialCount){if(V.chunkCount){var T=Math.min(Math.max(l-H,0),V.chunkCount);I=Math.min(H+T,l)}else I=Math.min(l,V.initialCount),T=Math.max(I-H,0),V.chunkCount=T||1;V.shouldMeasureChunk=T===V.chunkCount;V.shouldContinueChunking=I<l;V.renderStartTime=performance.now()}return I},PTZ=function(V,l,I){for(var H=0;H<I;H++){var T=V.instances[H],x=l[H];
T?T.type==="legacy"?(T.signalProxy.setWithPath([V.as],x),T.signalProxy.setWithPath([V.indexAs],H)):(T.itemSignal.setWithPath([],x),T.setIndex(H)):Dkw(V,x,H)}for(l=V.instances.length-1;l>=H;l--)I=V,T=l,o1a(I,T),I=_.U(I.instances.splice(T,1)).next().value,I.type==="legacy"?I.signalProxy.dispose():I.setDisabled()},o1a=function(V,l){V=V.instances[l];
l=(0,_.mL)(V.root);for(var I=0;I<V.children.length;I++)l.appendChild(V.children[I])},Dkw=function(V,l,I){var H={};
H=Object.assign({},ZX0(V),(H[V.as]=l,H[V.indexAs]=I,H[V.itemsIndexAs]=I,H));if(_.z("dom_repeat_use_ambient_signals")||_.z("creator_dom_repeat_use_ambient_signals")){l=new tM(_.xi(l,void 0,"g83Pb"));var T=_.U(_.xi(I,void 0,"tQRdod"));H=T.next().value;T=T.next().value;var x=_.U(OXT());var n=x.next().value,w=x.next().value;x={};var N={parentScope:V.parentScope,signals:(x[V.as]={type:"mutable",signal:l},x[V.indexAs]={type:"signal",getter:H},x[V.itemsIndexAs]={type:"signal",getter:H},x)};x=HXT(V.templateInfo,
V.templateInfo.nodeInfoList,V.parentSignalProxy,{eventListenerHost:V.eventListenerHost,getModel:function(){return v13(V.parentSignalProxy.owner,N)},
hasInsertionPoint:V.templateInfo.hasInsertionPoint,thisCtx:V.eventListenerHost,methodInvocationRequirement:HXJ,enabledSignal:function(){return(V.stampingEnabled===void 0||V.stampingEnabled())&&n()},
scope:N}).root;l={type:"ambientSignal",root:x,children:[],itemSignal:l,getIndex:H,setIndex:T,getEnabled:n,setDisabled:w}}else{var L=new G4(H,function(e){if(e!==V.as&&e!==V.indexAs){if(e===V.itemsIndexAs)return XV(L,V.indexAs);var k=XV(V.parentSignalProxy,e).getChangeRecordSignal([]);e=_.xi(void 0,void 0,"UobVm");var X=new tM(e);L.effect(function(){var r=k();X.notifyPath(e5(r.path),{value:r.value})});
return X}});
V.parentSignalProxy.childSignalProxies.push(L);x=HXT(V.templateInfo,V.templateInfo.nodeInfoList,L,{eventListenerHost:V.eventListenerHost,getModel:function(){var e={};return Object.assign({},ZX0(V),(e[V.as]=L.model[V.as],e[V.indexAs]=L.model[V.indexAs],e[V.itemsIndexAs]=L.model[V.indexAs],e))},
hasInsertionPoint:V.templateInfo.hasInsertionPoint,thisCtx:V.eventListenerHost,methodInvocationRequirement:HXJ,enabledSignal:V.stampingEnabled}).root;l={type:"legacy",root:x,children:[],signalProxy:L}}H=_.U(x.childNodes);for(T=H.next();!T.done;T=H.next())l.children.push(T.value);H=(H=V.instances[I+1])?H.children[0]:V;(0,_.mL)((0,_.mL)(V).parentNode).insertBefore(l.root,H);V.instances[I]=l},ZX0=function(V){if((V=V.parentSignalProxy.model)&&!V.hostElement){var l={},I;
for(I in V)V.hasOwnProperty(I)&&(l[I]=V[I]);return l}};
JM.prototype.itemForElement=function(V){var l=this,I=this.instances.find(function(H){return H.children.includes(V)});
if(I)return J0(this.parentSignalProxy.owner,function(){return I.type==="legacy"?I.signalProxy.getWithPath([l.as]):I.itemSignal.getWithPath([])})};
JM.prototype.indexForElement=function(V){var l=this.instances.findIndex(function(I){return I.children.includes(V)});
return l>=0?l:void 0};
_.vI.Object.defineProperties(JM.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var V=this;return J0(this.parentSignalProxy.owner,function(){return E1a(V).getWithPath([])})},
set:function(V){JLN(this,V)}},
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}}});
_.vI.Object.defineProperties(JM,{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",JM);var Ssw,R2N;_.oU=new _.Vr("STATE_STORE_TOKEN");Ssw=new _.Vr("SELECT_TOKEN");R2N=new _.Vr("DISPATCH_TOKEN");var iX3={getSelectFn:function(){var V;return(V=_.F().resolve(_.Cs(Ssw)))!=null?V:CTt},
getDispatchFn:function(){var V;return(V=_.F().resolve(_.Cs(R2N)))!=null?V:_.P1().dispatch.bind(_.P1())},
getAppStore:function(){return _.F().resolve(_.oU)}},aQ3,mkJ=!1;var IsW=void 0;var QLB=function(){};
QLB.prototype.hasAttribute=function(V){if(V==="dir")return!1;if(V==="disable-upgrade"){var l,I;return(I=(l=this.hostElement)==null?void 0:l.hasAttribute("disable-upgrade"))!=null?I:!1}throw Error("Tg`"+V);};
QLB.prototype.attributeChangedCallbackWrapper=function(V,l,I){if(V==="disable-upgrade"&&this.__isUpgradeDisabled&&I===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var H;((H=this.hostElement)!=null?H:this).isConnected&&this.connectedCallback()}else l===I||this.__isReflecting||this.attributeChangedCallback(V,l,I)};
QLB.prototype.getExtraMethodsToForward=function(){for(var V=this,l=[],I=_.U(cLN),H=I.next(),T={};!H.done;T={tagName$jscomp$52:void 0,name$jscomp$533:void 0},H=I.next())T.name$jscomp$533=H.value,H=void 0,T.name$jscomp$533==="_setPendingProperty"?(T.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),H=function(x){return function(n,w,N){$s(x.tagName$jscomp$52,n,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return V._setPendingProperty(n,w,N)}}(T)):H=function(x){return function(){return V[x.name$jscomp$533].apply(V,
_.oI(_.Q5.apply(0,arguments)))}}(T),l.push([T.name$jscomp$533,
H]);return l};
for(var UTt=Kzi(NAJ((0,_.yA)(QLB))),wSc=["disabled","disable-upgrade"],WzE=(0,_.yA)(function(){}),bXZ=new Set(Object.getOwnPropertyNames(WzE.prototype)),LUW=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.oI(bXZ))),KU1=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),cLN=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),qso=new Set([].concat(_.oI(KU1),_.oI(cLN),_.oI(bXZ))),MCE=_.U(qso),sLE=MCE.next();!sLE.done;sLE=MCE.next())HPw.add(sLE.value);var Y1c={created:function(){rLt(this);this.initializeInjection()}};var Ghq=!1,s7=window.ShadyDOM,S1t=["appendChild","insertBefore","removeChild","replaceChild"],ZV1=[Node];s7&&ZV1.push(s7.Wrapper);var bVq,q1c,pS3={};var uf=new Set,pm="",ACc="";var AT,v1=new Set;var iVT=new Set("context didCallReady is info params signalProxy".split(" ")),lHJ="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),IH1="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var psb=dS({entities:fa1}),ALi=new uB(psb);var u6W=function(){return _.To.apply(this,arguments)||this};
_.t(u6W,_.To);_.vI.Object.defineProperties(u6W.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return ALi}}});
var v1W=u6W;v1W=_.O([_.B1()],v1W);_.hM=[z4.prototype,v1W.prototype];_.Pf={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var V=this,l={};setTimeout(function(){var I;return _.B$((I=V.hostElement)!=null?I:V,"yt-live-chat-add-tooltip-target",l)},0);
this.handler_=l.handler},
detached:function(){if(this.handler_){var V;this.handler_.removeElementFromSupportingTooltips((V=this.hostElement)!=null?V:this)}this.handler_=null}}};_.VI=new _.Vr("ICON_MANAGER_TOKEN");var OXJ=[48,20,18,16,15,13,12],rX1=new Map,k6t=new Set,Y31=new Set,eEq=new Set,j$N=new Set,LOc=new Set,XgJ=new Promise(function(V){var l=!1,I=!1,H=!1,T=[],x=function(n){if("detail"in n)if(n=n.detail,n.name==="yt-icons")FOK(n),l=!0;else if(n.name==="yt-sys-icons")FOK(n),I=!0;else{var w;((w=n.name)==null?0:w.includes("yt-sys-icons"))&&n.size!==24&&(FOK(n,!0),T.push(n.size),T.length===OXJ.length&&(H=!0))}l&&I&&H&&(window.removeEventListener("iron-iconset-added",x),V())};
window.addEventListener("iron-iconset-added",x)}),yXt=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"]]);_.DX={};_.DX.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.A5,computeHref_:function(V,l){l=l===void 0?!1:l;if(!V||V.commandExecutorCommand)return null;var I=RJ1(V,l);return l||I!==null?I?_.z("enable_polymer_resin")?_.S6(I).toString():I:null:(_.hF(new _.Yd("computeHref was null",this.is,V)),null)},
computeOptionalHref_:function(V){return this.computeHref_(V,!0)},
computeNofollow_:function(V){return V?Gb1(V)?"nofollow":null:null},
computeIcon_:function(V){return V&&V.iconType?_.mj(V.iconType):""},
resolveCommand:function(V,l,I){l=l===void 0?{}:l;return _.IN(V,this.hostElement,l,I===void 0?!1:I)}};var aQW,ZX;_.CTN={};aQW=null;
ZX={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_=DoT(this.viewroot));_.r_(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var V=this;this.unobserve_();if(_.z("kevlar_vimio_use_shared_monitor"))hE3(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 l=[];this.visibilityOptionVisible_&&l.push(this.visibilityObserver.observe(this.hostElement,function(){return V.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&l.push(this.visibilityObserver.observe(this.hostElement,function(){return V.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&l.push(this.visibilityObserver.observe(this.hostElement,function(){return V.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=l}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){G6T(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 V=_.Rg(this.parentNode,function(I){var H,T=(H=I.polymerController)!=null?H:I;return!!T.getVisibilityObserverForChild&&T.getVisibilityObserverForChild()},!0);
if(V){var l;this.localVisibilityObserver_=((l=V.polymerController)!=null?l:V).getVisibilityObserverForChild()}else aQW||(aQW=DoT()),this.localVisibilityObserver_=aQW;return this.localVisibilityObserver_},visibilityCallback:function(V){V?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.z("kevlar_use_vimio_behavior")||(ZX={});ZX&&!_.z("kevlar_use_vimio_behavior")&&(delete ZX.attached,delete ZX.detached);_.CTN.YtVisibilityObserverBehavior=[ZX];var fQ0={};fQ0.YtVisualElementBehavior=[_.CTN.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.z("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.z("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var V=this.getScreenLayer&&this.getScreenLayer(),l=this.getVisibilityLogger();l&&l.reportShown(this,void 0,V)}},
onHidden:function(){if(_.z("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.z("kevlar_vimio_use_shared_monitor")){var V=this.getScreenLayer&&this.getScreenLayer(),l=this.getVisibilityLogger();l&&l.reportHidden(this,void 0,V)}},
getVisibilityLogger:function(){return _.z("kevlar_use_vimio_behavior")?_.TG():null},
shouldSkipLogging:function(){if(_.h6("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var V=this.getParentRenderer&&this.getParentRenderer();if(!V)return!1;var l,I=(l=V.polymerController)!=null?l:V;if(!I.data)return!1;V=this.data.trackingParams;V=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:V;var H;l=(H=I.data)==null?void 0:H.trackingParams;var T,x;l=((T=I.data)==null?0:T.loggingDirectives)?(x=I.data)==null?void 0:x.loggingDirectives.trackingParams:l;return V&&l&&V===
l}}];var S3g=new Map,wj;var pMN=function(V){this.layer=V},PK=function(V){return V.layer!==void 0?V.layer:V.parent?PK(V.parent):V.layer=0};var q3y;_.m={};q3y=0;_.m.YtRendererBehavior=[_.DX.YtComponentBehavior,fQ0.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_:_.z("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var V,l;(l=(V=this.monitorScrollElement)!=null?V:this.hostElement)==null||l.removeEventListener("scroll",_.VP(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Dt1(this.hostElement);g3o(_.$6(),this.hostElement);az.delete(this.hostElement)},
registerRenderer:function(V){var l;((l=V.polymerController)!=null?l:V).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(V),this.markDirty())},
unregisterRenderer_:function(V){this.useVimio_||(this.childCache_.delete(V),this.markDirty())},
attached:function(){var V=this,l=this.getParentRenderer();if(l){var I,H,T;(H=(I=(T=l.polymerController)!=null?T:l).registerRenderer)==null||H.call(I,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var x,n;(n=(x=this.monitorScrollElement)!=null?x:this.hostElement)==null||n.addEventListener("scroll",_.VP(this,this.onScroll))}_.r0.addJob(function(){RE1(V.hostElement)},8);
I=new pMN(this.screenLayer||void 0);(l=az.get(l))&&l.layerNode&&(I.parent=l.layerNode);l={};GZN(this.hostElement,(l.isRenderer=!0,l.layerNode=I,l[A_W]=this.data,l))},
getParentRenderer:function(){for(var V=this.hostElement.parentNode,l,I;V&&((l=az.get(V))==null||!l.isRenderer)&&!((I=V.polymerController)!=null?I:V).isRenderer_;)V=V.parentNode||V.host;return V},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.z("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.PO("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.z("debug_web_ve_data")&&this.data.trackingParams){var V="";try{V=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(I){_.Gr(I)}if(V){var l=a8T(V,1);l!==void 0&&(this.hostElement.dataset.veIndex=String(l));V=a8T(V,2);
V!==void 0&&(this.hostElement.dataset.ve=String(V))}}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,_.z("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.dj(this.data.loggingDirectives.trackingParams)),this.visualElement=_.BX(_.x7(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var V=this.data.targetId;_.iPW(_.$6(),V,this.hostElement)}else g3o(_.$6(),this.hostElement)},
onScroll:function(){var V=Date.now();V-this.lastHandledScroll_<50||(this.lastHandledScroll_=V,this.markDirty())},
markDirty:function(){_.z("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Miq(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var V=this.getParentRenderer();if(V&&(V=az.get(V))&&V.layerNode)return PK(V.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.oI(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var V=0;V<this.data.impressionEndpoints.length;V++)this.sendImpression(this.data.impressionEndpoints[V]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(V){V.clickTrackingParams&&delete V.clickTrackingParams;var l,I;(V==null?0:(l=V.commandMetadata)==null?0:(I=l.webCommandMetadata)==null?0:I.sendPost)?_.$B(this.hostElement,[V,{impression:!0}]):_.d6(this.hostElement,[V],this.hostElement)},
logExplicitClick:function(V){var l=_.oa(this.getScreenLayer());if(l){var I,H=(I=V.polymerController)!=null?I:V;V=H.visualElement;H=H.trackingParams||H.clickTrackingParams;!V&&H&&(V=_.dj(H));V&&_.uJ(l,V)}}}];var g1v={},mk0=function(){return _.To.apply(this,arguments)||this};
_.t(mk0,_.To);mk0.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var SW=mk0;SW.prototype.onPdgItemBehaviorClick=SW.prototype.onPdgItemBehaviorClick;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],SW.prototype,"data",void 0);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],SW.prototype,"onPdgItemBehaviorClick",null);SW=_.O([_.B1()],SW);g1v.YtPdgLiveChatItemBehavior=[SW.prototype,_.m.YtRendererBehavior];var iXW;var VL3;_.RU={};_.RU.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var QZ=function(){var V=CC.apply(this,arguments)||this;V.switchTemplateAtRegistration=!1;return V};
_.t(QZ,CC);QZ.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||u8w(this),_.FzW(this,"doRender"),this.doRender())};
QZ.prototype.debounceRender=function(){this.templatingFn&&_.Go(this,"doRender",this.doRender)};
QZ.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Gr(Error("ch"))};
QZ.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
var lsZ=QZ;lsZ=_.O([daK()],lsZ);var Isb=lsZ;var HVZ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,cf={},aHc=(cf[1]={filterString:null,isUnwrappable:null,unwrap:null},cf[2]={filterString:function(V,l,I){return i8(I)},
isUnwrappable:function(V){return V instanceof MV},
unwrap:function(V){return pd(V)}},cf[3]={filterString:function(V,l,I){return HVZ.test(I)?I:ZC.toString()},
isUnwrappable:function(V){return oO(V)},
unwrap:function(V){return _.hV(V)}},cf[4]={filterString:function(){return ZC.toString()},
isUnwrappable:function(V){return V instanceof kn},
unwrap:function(V){return _.tV(V).toString()}},cf[5]={filterString:function(V,l,I){return I},
isUnwrappable:function(V){return typeof V==="string"},
unwrap:function(V){return V.toString()}},cf[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(V){return V instanceof _.Cd},
unwrap:function(V){return Odg(V)}},cf[8]={filterString:function(V,l,I){I=String(I).toLowerCase();
return Tug(V,l,I)?I:"zClosurez"},
isUnwrappable:null,unwrap:null},cf[10]={filterString:null,isUnwrappable:null,unwrap:null},cf);CO[h0["default"]]=gtf;var T2b=function(V,l,I,H,T){return function(){var x=_.Q5.apply(0,arguments),n=Vqt(l,I,H,T);try{return V.apply(null,_.oI(x))}finally{n()}}}(vF,"fr_c3"),B2a=_.z("measure_framework_render")?T2b:vF;var UTN=function(V,l){var I=this;this.hostElement=V;this.events=new _.nA;this.props=l;this.events.subscribe("UPDATE",function(){B2a(I.hostElement,I.patchInternal.bind(I));var H;I.hostElement.data=(H=I.props)==null?void 0:H.data});
this.events.subscribe("CONNECTED",function(){xTb(I);var H;I.hostElement.data=(H=I.props)==null?void 0:H.data});
this.events.subscribe("DISCONNECTED",function(){var H;(H=I.onDisconnected)==null||H.call(I);var T;(T=I.signalContextDispose)==null||T.call(I)});
this.events.subscribe("UPDATED",function(){var H;(H=I.onUpdated)==null||H.call(I)})};
UTN.prototype.setState=function(V){this.state||(this.state=V);Object.assign(this.state,V);B2a(this.hostElement,this.patchInternal.bind(this))};
var xTb=function(V){V.signalContextDispose=G0(function(l){V.owner=l;var I;(I=V.onConnected)==null||I.call(V)},!!_.vv)};
UTN.prototype.patchInternal=function(){var V=this;if(this.owner.isDisposed)this.signalContextDispose=G0(function(I){V.owner=I;BT(function(){V.render()})},!!_.vv);
else{var l={stack:[],error:void 0,hasError:!1};try{_.QP(l,_.a8(this.owner)),BT(function(){V.render()})}catch(I){l.error=I,l.hasError=!0}finally{_.c1(l)}}};var mtN=[];var XzJ=Vxw("A"),z5T=Vxw("BUTTON"),YF=Vxw("DIV"),ynW=Vxw("LABEL");(function(){var V=sS;sS=function(l){V==null||V(l);jz(function(){for(var I=0;I<l.length;I++)iIK(l[I])})}})();var n$3=function(){var V=_.To.apply(this,arguments)||this;V.hasUnmounted=!1;return V};
_.t(n$3,_.To);_.B=n$3.prototype;_.B.beforeRegister=function(){var V=this.doIdomRender;this.templatingFn?_.Gr(Error("bh")):(this.templatingFn=V,this.switchTemplateAtRegistration=!0,CjT(this))};
_.B.attached=function(){};
_.B.detached=function(){iIK(this.hostElement)};
_.B.renderIdom=function(){throw Error("eh");};
_.B.doIdomRender=function(){var V=this;vF(this.hostElement,function(){V.renderIdom()})};
var $TE=n$3;$TE=_.O([_.B1()],$TE);var dTZ=[Isb.prototype,$TE.prototype];var wSo,N2W=function(){return wSo!==void 0?wSo:wSo=document.createElement("template")};
document.head.appendChild(N2W().content);var KUi;var jyE,Y1o=function(){return jyE!==void 0?jyE:jyE=document.createElement("template")};
document.head.appendChild(Y1o().content);var LUb;var eov=document.head,khW=eov.appendChild,FUa;if(LUb===void 0){var XS0=document.createElement("template");_.G(XS0,"\x3c!--css-build:shady--\x3e");XS0.content.insertBefore(Y1o().content.cloneNode(!0),XS0.content.firstChild);LUb=XS0}FUa=LUb;khW.call(eov,FUa.content);var zoo,yC0=function(){return zoo!==void 0?zoo:zoo=document.createElement("template")};
document.head.appendChild(yC0().content);var tLZ;var rCW=document.head,GhN=rCW.appendChild,E$3;if(tLZ===void 0){var JC0=document.createElement("template");_.G(JC0,"\x3c!--css-build:shady--\x3e");JC0.content.insertBefore(yC0().content.cloneNode(!0),JC0.content.firstChild);tLZ=JC0}E$3=tLZ;GhN.call(rCW,E$3.content);var o$o=document.head,hoE=o$o.appendChild,Pdw;if(KUi===void 0){var DTJ=document.createElement("template");_.G(DTJ,"\x3c!--css-build:shady--\x3e");DTJ.content.insertBefore(N2W().content.cloneNode(!0),DTJ.content.firstChild);KUi=DTJ}Pdw=KUi;hoE.call(o$o,Pdw.content);var ZVB,S13=function(){return ZVB!==void 0?ZVB:ZVB=document.createElement("template")};
document.head.appendChild(S13().content);var RoW;_.DA=new _.Vr("DARK_THEME_TOKEN");var Chg=new _.f("accessibilityProperties");var Oxw=new _.f("layoutProperties");var ac1=new _.f("imageType");var Qyo={};if("ytAttributedStringLinkHoverColor"in Qyo)throw Error("hh`ytAttributedStringLinkHoverColor");(function(V,l){Qyo[V]="value"in l&&"unit"in l?xwT(V,l):function(I){try{return l(I)}catch(H){throw Error("fh`"+V+"`"+H.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var cCW=function(V){var l=this;this.holdTime=V===void 0?500:V;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(I){var H=new CustomEvent("LONG_PRESS"),T;(T=I.changedTouches[0].target)==null||T.dispatchEvent(H)};
this.ontouchstart=function(I){l.longPressTimeout=_.t9(_.r0,function(){l.onlongpress(I);l.longPressOccurred=!0},l.holdTime)};
this.ontouchmove=function(){_.r0.cancelJob(l.longPressTimeout);l.longPressTimeout=NaN;l.longPressOccurred=!1;l.moveOccurred=!0};
this.ontouchend=function(I){if(l.longPressTimeout&&!l.longPressOccurred&&!l.moveOccurred){var H;(H=I.changedTouches[0].target)==null||H.dispatchEvent(new Event("click"))}_.r0.cancelJob(l.longPressTimeout);l.longPressTimeout=NaN;l.longPressOccurred=!1;l.moveOccurred=!1}};var oRK=function(V,l){cCW.call(this,l);var I=this;this.callback=V;this.onlongpress=function(H){var T;(T=I.callback)==null||T.call(I,H)}};
_.t(oRK,cCW);var hkT=function(V,l){var I=Object.assign({},l);V=_.U(new Map([["ontouchstart",V.ontouchstart],["ontouchend",V.ontouchend],["ontouchmove",V.ontouchmove]]));for(var H=V.next(),T={};!H.done;T={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},H=V.next()){var x=_.U(H.value);H=x.next().value;x=x.next().value;T.eventName$jscomp$88=H;T.eventHandler$jscomp$3=x;l[T.eventName$jscomp$88]=function(n){return function(w){var N;(N=I[n.eventName$jscomp$88])==null||N.call(I,w);(0,n.eventHandler$jscomp$3)(w)}}(T)}};_.aw=new _.Vr("COMMAND_HANDLER_TOKEN");var nRK=new _.f("parallelCommand");var wC1=new _.f("performOnceCommand");var dwK=new _.f("serialCommand");var Nyg=void 0;var WUw=function(){this.data=[]};
WUw.prototype.push=function(V){this.data.push(V)};var Bl={};_.xi(Bl,void 0,"sgPmTd");_.xi(null,void 0,"jypsq");var tHJ=new WUw;var zkc=[KWo,jio,YNw,e3b,LWJ,NbE,kEB,FWw];var ugt=new _.f("bracketTextDecorator");var ho=new _.f("highlightTextDecorator");_.Sz=new _.Vr("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var qFq=function(){},bVN;
(bVN=window.requestIdleCallback)==null||bVN.bind(window);var srT={calledOnce:!1,state:"visible"},Mx3={calledOnce:!1,state:"hidden"};var vSK=new _.Vr("ICON_RENDERER_TOKEN"),q1o=new _.Vr("ICON_WIZ_COMPONENT_TOKEN");_.dq=_.W1(function(V){var l=V.icon;var I=V.active;var H=V.className;var T=V.style;var x=V.dataSelected;var n=V.dataDisabled;var w=V.role;var N=V.animateIcon;var L=V.themeOverride;var e=V.ariaHidden;var k=V.ariaExpanded;var X=V.ariaLabel;var r=V.id;var E=V.size;var D=V.iconFilter;return _.Y(_.NS,{cond:l,then:function(){var Z=_.F().resolve(q1o);return _.Y(Z,{icon:l,dataSelected:x,dataDisabled:n,animateIcon:N,themeOverride:L,ariaExpanded:k,id:r,active:I,size:E,role:w,className:H,ariaHidden:e,ariaLabel:X,
style:function(){return T!=null&&T()||E==null||!E()?T==null?void 0:T():"width: "+(E==null?void 0:E())+"px;height: "+((E==null?void 0:E())+"px;")},
iconFilter:D})}})},"b");
_.dq.idomCompat=!0;var wjt=window.devicePixelRatio||1;var Yjy=new Map([["yt_outline_bag_black_24","bag"]]);var Wf=function(V){var l=this;this.margin=.1;this.whenInViewportWithMargin=V;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){l.requestScan()});
window.addEventListener("touchend",function(){l.requestScan()});
window.addEventListener("updateui",function(){l.requestScan()});
var I=new _.le((0,_.zN)(this.requestScan,this),100);window.addEventListener("scroll",function(){I.fire()},!0);
window.addEventListener("resize",(0,_.zN)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){l.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.zN)(this.requestScan,this))};
Wf.prototype.observe=function(V){this.observationTargets.includes(V)||this.observationTargets.push(V)};
Wf.prototype.unobserve=function(V){this.observationTargets=this.observationTargets.filter(function(l){return l!==V})};
Wf.prototype.requestScan=function(){var V=this;this.scanRequested||(jz(function(){MLE(V)}),this.scanRequested=!0)};
var MLE=function(V){var l=(1+V.margin)*(document.documentElement.clientHeight||window.innerHeight);V.observationTargets=V.observationTargets.filter(function(I){var H=I.getBoundingClientRect();(H=l>H.top&&!!H.height)&&V.whenInViewportWithMargin(I);return!H&&I.parentNode});
V.scanRequested=!1};
Wf.prototype.disconnect=function(){this.observationTargets=[]};var syb,ACo;syb=_.U(_.xi(FIg(),void 0,"O3X2wd"));_.pSW=syb.next().value;ACo=syb.next().value;window.addEventListener("resize",function(){ACo(FIg())});var uli={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},v$0=void 0,OVZ=window.innerWidth,Cda=window.innerHeight;window.addEventListener("resize",function(){v$0=void 0});var asw;if("IntersectionObserver"in window)asw=yQg();else{if(v$0===void 0){var fsN;fsN="matchMedia"in window?window.matchMedia(uli.landscape+","+uli.portrait).matches:void 0;v$0=fsN!==void 0?fsN:OVZ>=930&&Cda>=550||OVZ>=550&&Cda>=930}asw=v$0?{observe:function(V){jz(function(){var l;(l=V.onViewportEntered)==null||l.call(V)})},
unobserve:function(){}}:new Wf(function(V){jz(function(){var l;
(l=V.onViewportEntered)==null||l.call(V)})})}var XjN=asw;var g$W=_.W1(function(V){var l=_.sZ(),I=!1;_.t0(function(){var H,T=(H=V.data)==null?void 0:H.call(V),x,n=(x=V.getSrc)==null?void 0:x.call(V).cb,w;H=(w=V.config)==null?void 0:w.call(V);if(w=l.value){rQc(w,H);var N;t4t(w,T||null,function(L,e){if(!I)return n?n(L,e):L},H,(N=V.lazy)==null?void 0:N.call(V))}});
_.rx(function(){I=!0});
return _.Y("img",{el:l})},"c");
g$W.idomCompat=!0;_.cX=_.W1(function(V){var l=function(){var I,H=V.data(),T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C,By,lN,wW,o1,h1,ec,Zg,Va,wb,CK;var CZ={contentMode:(T=V.contentMode)==null?void 0:T.call(V),loadedClass:(x=V.loadedClass)==null?void 0:x.call(V),isPreloaded:(n=V.isPreloaded)==null?void 0:n.call(V),notifyOnLoaded:(w=V.notifyOnLoaded)==null?void 0:w.call(V),notifyOnUnloaded:(N=V.notifyOnUnloaded)==null?void 0:N.call(V),preferredThumbnail:(L=V.preferredThumbnail)==null?void 0:L.call(V),preserveHeight:(e=V.preserveHeight)==
null?void 0:e.call(V),preserveWidth:(k=V.preserveWidth)==null?void 0:k.call(V),objectPosition:(X=V.objectPosition)==null?void 0:X.call(V),targetWidth:(r=V.targetWidth)==null?void 0:r.call(V),targetHeight:(E=V.targetHeight)==null?void 0:E.call(V),shouldShowPlaceholder:(D=V.shouldShowPlaceholder)==null?void 0:D.call(V),useWidth:(Z=V.useWidth)==null?void 0:Z.call(V),alt:(S=V.alt)==null?void 0:S.call(V),className:(p=V.className)==null?void 0:p.call(V),onerror:V.onerror,onload:V.onload,style$:((Vf=V.style$)==
null?void 0:Vf.call(V))||((C=V.style)==null?void 0:C.call(V)),color:(By=V.color)==null?void 0:By.call(V),width:(lN=V.width)==null?void 0:lN.call(V),height:(wW=V.height)==null?void 0:wW.call(V),"aria-hidden$":(wb=(o1=V["aria-hidden$"])==null?void 0:o1.call(V))!=null?wb:(h1=V.ariaHidden)==null?void 0:h1.call(V),draggable:(ec=V.draggable)==null?void 0:ec.call(V),"data-disabled$":(CK=(Zg=V["data-disabled$"])==null?void 0:Zg.call(V))!=null?CK:(Va=V.dataDisabled)==null?void 0:Va.call(V)};return JQg(H,CZ,
(I=V.hideOn404)==null?void 0:I.call(V))};
return _.Y(_.YG,null,_.Y(_.jN,{when:function(){var I;return((I=l())==null?void 0:I.type)==="image"}},function(){return _.Y(g$W,{data:function(){return l().image},
getSrc:{cb:function(I,H){var T=l().image.sources,x=l().config.isPreloaded,n=l().config.useWidth,w=l().config.targetWidth,N=l().config.targetHeight,L=l().config.preferredThumbnail;return _.Nsw(H,T,x,n,w,N,L)||""}},
config:function(){var I=l().config,H;for(H in I)I[H]===void 0&&delete I[H];return I},
lazy:V.renderLazy})}),_.Y(_.jN,{when:function(){var I;
return((I=l())==null?void 0:I.type)==="icon"}},function(){return _.Y(_.dq,{icon:function(){return l().iconName},
role:function(){return l().config.role},
className:function(){return l().config.className},
style:function(){return l().config.style$+";width: "+(l().config.width+"px;height: ")+(l().config.height+"px;color: ")+(l().config.color+";")},
ariaLabel:function(){return l().config["aria-label$"]},
ariaHidden:function(){return l().config["aria-hidden$"]},
dataDisabled:function(){return l().config["data-disabled$"]}})}))},"d");
_.cX.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var mTi=function(V){return function(l){return _.Y(dZg,null,function(){var I=l.data(),H=_.ES(l.config);return _.Y(ux,null,function(){return void V(I,H)})})}}(Sjc),DWw=_.W1(function(V){var l=function(H){var T,x=_.ouT(function(X){T=G0(function(){for(var r=_.U(e()),E=r.next();!E.done;E=r.next()){E=RuK(E.value);
E=typeof E==="string"?document.createTextNode(E):E;if(!(E instanceof Node)){r=new _.Yd("Part is not a node",E,typeof E);_.Gr(r);break}X.appendChild(E)}})}),n=hut(function(){return gRw(H())},{isEqual:Pbc}),w=_.S5(V.config),N=function(){var X,r=n();
return!((X=w())==null||!X.ariaLabel)||!(r.commandRuns&&r.commandRuns.length!==0||r.paragraphStyleRuns&&r.paragraphStyleRuns.length!==0)},L=hut(w,{isEqual:cQJ}),e=function(){var X=fcK(n(),L());
ixW(X,L());return n().content?BsK(n().content,X).parts:[]},k=!0;
_.t0(function(){n();L();if(k)k=!1;else{var X=e();Promise.resolve().then(function(){var r=x.value;if(r){r.innerText="";var E;(E=T)==null||E();T=_.eN(r,function(){return _.Y(Q9w,{parts:X})})}})}});
return _.Y("span",{el:x,class:function(){return n()&&Rky(n(),w())},
dir:function(){var X;return((X=w())==null?0:X.userInput)?"auto":void 0},
"aria-label":function(){var X;return N()?(X=w())==null?void 0:X.ariaLabel:void 0},
role:function(){return N()?"text":void 0}})},I;
return((I=V.config)==null?0:I.renderedFromFormattedString)?l(V.text):_.Y(_.NS,{cond:V.text,then:l})},"e");
DWw.idomCompat=!0;_.Ni=_.W1(function(V){var l=_.S5(V.text),I=WIt(V);V.renderedFromFormattedString!==void 0&&(I.renderedFromFormattedString=!0);return _.z("attr_string_reactive")?_.Y(DWw,{text:l,config:I}):_.Y(_.NS,{cond:function(){var H;return l()&&((H=gRw(l()))==null?void 0:H.content)},
then:function(){return _.Y(mTi,{data:V.text,config:I})},
debugInstance:"Apcuac"})},"f");
_.Ni.idomCompat=!0;var qjJ=function(V,l,I){l=l===void 0?"unknown":l;I=I===void 0?{}:I;_.Yd.call(this,V+" ("+l+")",Object.assign({},{name:"YtWcwError",tagName:l},I));Object.setPrototypeOf(this,this.constructor.prototype)};
_.t(qjJ,_.Yd);_.OUJ=new WeakMap;_.vut=!1;var uT1,CbK,s91,AQ1;_.b9=Symbol("jh");_.qR=Symbol("kh");uT1=Symbol("lh");CbK=new Set(Object.getOwnPropertyNames(Element.prototype));s91=!_.z("web_wcw_disable_component_function_named_child_props");AQ1=Symbol("mh");var iVJ=_.W1(function(V){return _.Y("yt-attributed-string",{"aria-label":V.ariaLabel,hidden:V.hidden,id:V.id,class:V.className,"force-default-style":V.forceDefaultStyle},_.Y(_.Ni,{text:V.data,ariaLabel:V.ariaLabel,ellipsisTruncate:V.ellipsisTruncate,isOverlay:V.isOverlay,linkInheritColor:V.linkInheritColor,noPreWrap:V.noPreWrap,noWrap:V.noWrap,userInput:V.userInput,noEndpoints:V.noEndpoints,headerRuns:V.headerRuns}))},"g");
_.z("web_wiz_attributed_string")&&_.MR(iVJ,"yt-attributed-string",{props:{ariaHidden:_.b9,ariaLabel:_.b9,className:_.b9,ellipsisTruncate:_.b9,isOverlay:_.b9,linkInheritColor:_.b9,noEndpoints:_.b9,noStyleRuns:_.b9,noLinkColor:_.b9,noPreWrap:_.b9,noWrap:_.b9,skipOnClick:_.b9,userInput:_.b9,headerRuns:_.b9,id:_.b9,data:_.b9,hidden:_.b9,forceDefaultStyle:_.b9,text:_.qR,stopPropagation:_.qR,disableUpgrade:_.qR,disable:_.qR,slot:_.qR}});var ViE=function(){return _.M.apply(this,arguments)||this};
_.t(ViE,_.M);ViE.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},Sjc(this.data,this.config))};
var q9=ViE;_.O([_.R(dTZ),_.a("design:type",Object)],q9.prototype,"ytIdomTemplatingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],q9.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],q9.prototype,"ariaLabel",void 0);_.O([_.q(),_.a("design:type",Boolean)],q9.prototype,"disable",void 0);_.O([_.q(),_.a("design:type",Boolean)],q9.prototype,"ellipsisTruncate",void 0);_.O([_.q(),_.a("design:type",Boolean)],q9.prototype,"isOverlay",void 0);
_.O([_.q(),_.a("design:type",Boolean)],q9.prototype,"linkInheritColor",void 0);_.O([_.q(),_.a("design:type",Boolean)],q9.prototype,"noPreWrap",void 0);_.O([_.q(),_.a("design:type",Boolean)],q9.prototype,"noWrap",void 0);_.O([_.q(),_.a("design:type",Boolean)],q9.prototype,"userInput",void 0);_.O([_.q(),_.a("design:type",Boolean)],q9.prototype,"noEndpoints",void 0);_.O([_.q(),_.a("design:type",Array)],q9.prototype,"headerRuns",void 0);
q9=_.O([_.Lm({is:"yt-attributed-string",disableElementRegistration:!0})],q9);
_.z("web_wiz_attributed_string")||_.u(q9,"yt-attributed-string",function(){if(RoW===void 0){var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
V.content.insertBefore(S13().content.cloneNode(!0),V.content.firstChild);RoW=V}V=RoW;return V},{mode:2});var lH0,IHB,lug;lH0=function(){this.firstThumbnailLoaded=!1};
_.HIW=function(){IHB||(IHB=new lH0);return IHB};
lug=function(V){var l=_.HIW();l.firstThumbnailLoaded||(l.firstThumbnailLoaded=!0,_.Z8("ftl",V))};
lH0.prototype.reset=function(){this.firstThumbnailLoaded=!1};var fZw=0,VZ1=new WeakMap,mWf=0,Ao=new Set;var TZa,BZ0=function(){return TZa!==void 0?TZa:TZa=document.createElement("template")};
document.head.appendChild(BZ0().content);var xt3;var BLy,ULT,M9;_.OI=_.nK.caches;M9=function(){};
M9.prototype.open=function(V){return _.OI.open(Ut3(V))};
M9.prototype.has=function(V){return _.OI.has(Ut3(V))};
M9.prototype.delete=function(V){return _.OI.delete(Ut3(V))};
M9.prototype.match=function(V,l){var I=this,H,T,x,n,w,N;return _.d(function(L){switch(L.nextAddress){case 1:return _.K(L,I.keys(),2);case 2:H=L.yieldResult,T=_.U(H),x=T.next();case 3:if(x.done){L.jumpTo(5);break}n=x.value;return _.K(L,I.open(n),6);case 6:return w=L.yieldResult,_.K(L,w.match(V,l),7);case 7:if(N=L.yieldResult)return L.return(N);x=T.next();L.jumpTo(3);break;case 5:return L.return()}})};
var nqt=function(){};
_.t(nqt,M9);var Ut3=function(V){if(V.includes(":"))throw Error("ph`"+V);return V+":"+_.KA("CacheStorage get")};
nqt.prototype.keys=function(){var V,l,I,H,T,x,n,w,N;return _.d(function(L){if(L.nextAddress==1)return V=[],l=_.KA("CacheStorage keys"),_.K(L,_.OI.keys(),2);I=L.yieldResult;H=_.U(I);for(T=H.next();!T.done;T=H.next())x=T.value,n=_.TLt(x),w=n.originalName,N=n.datasyncId,N===l&&V.push(w);return L.return(V)})};var ntJ=function(){var V=_.M.apply(this,arguments)||this;V.objectURL=null;V.loadTime=Infinity;return V};
_.t(ntJ,_.M);_.B=ntJ.prototype;_.B.renderIdom=function(){HqJ(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("sh");this.setConfig();this.config&&G31(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.B.objectFitToContentMode=function(V){switch(V){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.B.logThumbnailFailureVe=function(){var V=_.eU(197497);_.Ug(_.x7(),V);var l=_.oa();l&&V&&l&&_.pT(l,[V])};
_.B.loadImageFromCacheIfExists=function(V){var l=this,I=V.target;(I==null?0:I.src)&&dL1(I.src).then(function(H){l.objectURL=RO(H).toString();l.setSrc(I,l.objectURL)}).catch(function(){})};
_.B.onError=function(V){var l=this;if(_.z("web_use_cache_for_image_fallback")){var I=V.target;I&&dL1(I.src).then(function(H){l.objectURL=RO(H).toString();l.setSrc(I,l.objectURL)}).catch(function(){_.z("kevlar_woffle_log_thumbnail_failure_ve")&&l.logThumbnailFailureVe();
_.z("kevlar_woffle_fallback_image")&&l.setSrc(I,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.B.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.B.setConfig=function(){var V=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(l){V.loadImageFromCacheIfExists(l);V.revokeObjectURL();Iu1(V.hostElement)},
onerror:function(l){V.onError(l)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.z("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.B.setSrc=function(V,l){l&&(V.src=l)};
var sp=ntJ;_.O([_.R(dTZ),_.a("design:type",Object)],sp.prototype,"ytIdomTemplatingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],sp.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],sp.prototype,"alt",void 0);_.O([_.q(),_.a("design:type",Boolean)],sp.prototype,"ftlEligible",void 0);_.O([_.q(),_.a("design:type",Number)],sp.prototype,"height",void 0);_.O([_.q(),_.a("design:type",Boolean)],sp.prototype,"notifyOnLoaded",void 0);
_.O([_.q(),_.a("design:type",Boolean)],sp.prototype,"notifyOnUnloaded",void 0);_.O([_.q(),_.a("design:type",String)],sp.prototype,"objectFit",void 0);_.O([_.q(),_.a("design:type",String)],sp.prototype,"objectPosition",void 0);_.O([_.q(),_.a("design:type",String)],sp.prototype,"preferredThumbnail",void 0);_.O([_.q(),_.a("design:type",Boolean)],sp.prototype,"preserveHeight",void 0);_.O([_.q(),_.a("design:type",Boolean)],sp.prototype,"preserveWidth",void 0);
_.O([_.q({value:!0}),_.a("design:type",Boolean)],sp.prototype,"useWidth",void 0);_.O([_.q({value:function(){return!_.PO("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.a("design:type",Boolean)],sp.prototype,"shouldRenderLazy",void 0);_.O([_.q(),_.a("design:type",Number)],sp.prototype,"width",void 0);sp=_.O([_.Lm({is:"yt-image",disableElementRegistration:!0})],sp);
_.u(sp,"yt-image",function(){if(xt3===void 0){var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);V.content.insertBefore(BZ0().content.cloneNode(!0),V.content.firstChild);
xt3=V}V=xt3;return V},{mode:2});var $t3=function(){return _.M.apply(this,arguments)||this};
_.t($t3,_.M);$t3.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var V=_.to(this.data.onVisibleCommand);V&&this.ytComponentBehavior.resolveCommand(V)}};
var pb=$t3;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],pb.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.RU.YtVisibilityBehavior),_.a("design:type",Object)],pb.prototype,"ytVisibilityBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pb.prototype,"data",void 0);pb=_.O([_.Lm({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],pb);
_.u(pb,"yt-bumper-user-edu-content-view-model",function(){if(VL3===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;iXW===void 0&&(iXW=document.createElement("template"));var H=iXW;I.call(l,H.content.cloneNode(!0),V.content.firstChild);VL3=V}V=VL3;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var dtv;var wg3,NZB=function(){if(wg3!==void 0)return wg3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;dtv===void 0&&(dtv=document.createElement("template"));var H=dtv;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return wg3=V};var KOw;_.AM={};KOw=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"]);_.AM.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var V=this.getContext_();return V?V.getTaskManager():_.r0},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var V=_.B$(this.hostElement,"yt-get-context-provider",{});V.detail&&V.detail.contextProvider?this.cachedProviderNode_=V.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return KOw.has(this.hostElement.localName)},
getNetworkManager:function(){var V=this.getContext_();if(V)return V.getNetworkManager()}};var L$T,j$Z,LOo,Y3i;_.u9=function(V){var l=j$Z.get(V);if(l&&(l=l.pop()))return Y3i++,l;LOo++;try{var I=document.createElement(V)}catch(H){throw new _.Yd("ElementPool failed to create element",V,H.message);}return I};
L$T=function(V){var l=V.is;if(l){var I=j$Z.get(l);I||(I=[],j$Z.set(l,I));var H=_.h6("ELEMENT_POOL_CONFIG")||{};I.length>=(H[l]!==void 0?H[l]:_.h6("ELEMENT_POOL_DEFAULT_CAP",0))||I.push(V)}else _.hF(new _.Yd("Element pool should only handle custom elements:",V.nodeName))};
j$Z=new Map;LOo=0;Y3i=0;var Ct=new WeakMap,Y23=new WeakMap;var k6N;_.vf=function(V,l,I){I=I===void 0?_.Dk():I;this.JSC$11490_defaultPriority=V;this.signal=l;this.scheduler=I;this.nextJobDescriptor=0;this.JSC$11490_parkedJobs=[];this.scheduledJobs=new Map};
_.Op=function(V,l){if(l){var I=_.b1();V.signal&&!_.qB(I,V.signal)?(I.addListener(V.signal,function(){V.processSignal()}),V.JSC$11490_parkedJobs.push({job:l,
priority:void 0})):eEN(V,l)}};
k6N=function(V,l){if(l!==V.JSC$11490_defaultPriority){V.JSC$11490_defaultPriority=l;for(var I=_.U(V.scheduledJobs.values()),H=I.next();!H.done;H=I.next())H=H.value,V.scheduler.cancelJob(H.jobId),H.jobId=V.scheduler.addJob(H.jobWrapper,l)}};
_.vf.prototype.flushJobs=function(){k6N(this,10);this.processSignal()};
_.vf.prototype.cancel=function(){for(var V=_.U(this.scheduledJobs),l=V.next();!l.done;l=V.next()){var I=_.U(l.value);l=I.next().value;I=I.next().value;this.scheduler.cancelJob(I.jobId);this.scheduledJobs.delete(l)}this.JSC$11490_parkedJobs=[]};
_.vf.prototype.processSignal=function(){for(var V=_.U(this.JSC$11490_parkedJobs),l=V.next();!l.done;l=V.next())l=l.value,eEN(this,l.job,l.priority);this.JSC$11490_parkedJobs=[]};
var eEN=function(V,l,I){I=I||V.JSC$11490_defaultPriority;if(I===10)ui(l);else{var H=V.nextJobDescriptor++,T=function(){l();V.scheduledJobs.delete(H)},x=V.scheduler.addJob(T,I);
V.scheduledJobs.set(H,{jobWrapper:T,jobId:x,priority:I})}};_.m5(XEw);var zh1={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};wUt({beforeVisit:function(V){if(uf.has(V.type)){var l;(l=V.props).idomKey!=null||(l.idomKey=V.type)}else V.type.TAG_NAME&&(pm=V.type.TAG_NAME)},
afterRender:function(V,l){var I;pm=(I=l==null?void 0:l.type)!=null?I:""},
didPatch:function(){pm=""}});var FOZ;_.Cb={};FOZ={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Cb.YtRendererstamperBehavior=[_.AM.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 V in this.stampDom){var l=this.stampDom[V];l&&l.id&&this.addReactiveSchema({type:"observe",method:{methodName:NLK(l.id),args:[{type:"wildcard",path:V}]}})}else{(V=(this.constructor.generatedFrom||this).observers)||(V=[]);for(l in this.stampDom){var I=this.stampDom[l];I&&I.id&&V.push(NLK(I.id)+"("+l+".*)")}this.constructor.generatedFrom.observers=V}},
addStampDomObserverFns_:function(){for(var V in this.stampDom){var l=this.stampDom[V];l.id?(this[NLK(l.id)]=this.rendererStamperObserver_.bind(this,V,l.id),this.hasDataPath_[V]=!1):(l=new _.Yd("Bad rendererstamper config",this.is+":"+V),_.Gr(l))}},
rendererStamperObserver_:function(V,l,I){if(I.path==V){if(I.value===void 0&&!this.hasDataPath_[V])return;this.hasDataPath_[V]=I.value!==void 0}this.rendererStamperApplyChangeRecord_(V,l,I)},
rendererStamperApplyChangeRecord_:function(V,l,I){var H=this.renderJobsMap_[l],T=null;V==I.path?(I=I.value,_.vy(I)||(I=I===void 0||I===null?[]:[I]),V=this.stampDom[V],V.mapping&&(T=this.stampDomArray_.bind(this,I,l,V.mapping,V.reuseComponents,V.events,V.stamperStableList)),H&&H.cancel(),I=V.usePageScheduler?this.getTaskManager():void 0,H||V.initialRenderPriority==void 0)?V.renderPriority==void 0||H||(H=new _.vf(V.renderPriority,V.waitForSignal,I),this.renderJobsMap_[l]=H):(H=new _.vf(V.initialRenderPriority,
V.waitForSignal,I),this.renderJobsMap_[l]=H,T=function(x,n){x();k6N(n,10)}.bind(this,T,H)):T=V+".splices"==I.path?this.stampDomArraySplices_.bind(this,V,l,I.value):this.forwardRendererStamperChanges_.bind(this,V,l,I);
H?_.Op(H,T):T()},
forwardRendererStamperChanges_:function(V,l,I){var H=I.path.slice(V.length+1),T=this.getStampContainer_(l),x=H.indexOf("."),n=H.substring(0,x),w=!1,N=0,L=parseInt(n,0);if(n[0]=="#"){w=parseInt(n.substring(1),0);L=this.get(V);var e=this.get([V,n]);L[w]==e?N=w:N=L.indexOf(e);w=!0}else isNaN(L)||(N=L,w=!0);w&&(H=H.substring(n.length+1),x=H.indexOf("."));n=_.Xb(T).children[N];var k;if(T=(k=n==null?void 0:n.polymerController)!=null?k:n)H="data"+H.slice(x),typeof T.notifyPath!=="function"?_.hF(new _.Yd("notifyPath missing",
this.is+": "+V+", "+l)):I.value?T.notifyPath(H,I.value):T.notifyPath(H)},
stampDomArraySplices_:function(V,l,I){if(I&&I.indexSplices){var H=this.getStampContainer_(l);if(H){for(var T=_.Xb(H),x=jsy(this.stampDom[V].reuseComponents),n=I.indexSplices.length,w=0;w<n;w++){for(var N=I.indexSplices[w],L=T.children[N.index],e=N.removed.length;e>0;e--)L&&L.parentElement&&(_.Xb(L.parentElement).removeChild(L),x&&L$T(L),L=T.children[N.index]);e=this.stampDom[V].mapping;for(var k=N.index+N.addedCount,X=document.createDocumentFragment(),r=x,E=N.index;E<k;E++){var D=N.object[E],Z=wEt(e,
D);if(Z){var S=e[Z];D=D[Z];Z=this.getComponentName_(S,D);var p=L?Ct.has(L):!1;r&&L&&L.is==Z&&p?(Z=L,this.telemetry_.reuse++,L=L.nextElementSibling):r&&L&&p?(Z=this.createComponent_(S,D,x),p=_.Xb(L).nextElementSibling,T.insertBefore(Z,p),kBJ(this.is,T,L,x),L=p):(r=!1,Z=this.createComponent_(S,D,x),X.appendChild(Z));this.deferRenderStamperBinding_(Z,S,D)}else S=new _.Yd("Unimplemented type",V,l,H.tagName,Object.keys(D)[0]),_.Gr(S)}T.insertBefore(X,L)}this.flushRenderStamperComponentBindings_();this.stampDom[V].events&&
_.B$(this.hostElement,"yt-rendererstamper-finished",{container:H})}else V=new _.Yd("Container object not found",l,this.hostElement?this.hostElement.is:""),_.Gr(V)}},
stampDomArray_:function(V,l,I,H,T,x){var n=this.getStampContainer_(l);if(n)if(l=_.Xb(n),H=jsy(H),V){var w=0,N=0,L;if(x=x===void 0?_.PO("STAMPER_STABLE_LIST",!1):x||!1)for(L=l.firstElementChild;L&&!Ct.has(L)&&V.length>N;){x=V[N];var e=wEt(I,x);if(e){if(this.getComponentName_(I[e],x[e])!=L.is){var k=this.createComponent_(I[e],x[e],H),X=_.Xb(L).nextElementSibling;X?l.insertBefore(k,X):l.appendChild(k);kBJ(this.is,l,L,H);L=k}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(L,I[e],x[e]);w++;
N++;L=_.Xb(L).nextElementSibling}else N++}F$N(this.is,l,w,H);w=L;if(V.length>N){x=document.createDocumentFragment();for(e=V.length;N<e;N++)if(k=V[N],X=wEt(I,k))L=this.createComponent_(I[X],k[X],H),this.deferRenderStamperBinding_(L,I[X],k[X]),x.appendChild(L);w&&_.Xb(w).parentNode&&L&&!Ct.has(L)?l.insertBefore(x,w):l.appendChild(x)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();T&&_.B$(this.hostElement,"yt-rendererstamper-finished",{container:n})}else F$N(this.is,l,0,
H);else V=new _.Yd("Container object not found",l,this.hostElement?this.hostElement.is:""),_.Gr(V)},
getStampContainer_:function(V){return this.$&&this.$[V]||_.h(this.hostElement).querySelector("#"+V)},
getComponentName_:function(V,l){return typeof V==="string"?V:V.matcher?V.matcher.call(this,l):V.component},
createComponent_:function(V,l,I){V=this.getComponentName_(V,l);try{var H=v1.has(V)||uf.has(V);if(I&&!H){var T=_.u9(V);try{_.i3(T)}catch(x){I="Failed to clear styles for "+V+".",x.message&&(I+=" Original error: "+x.message),_.hF(new _.Yd(I))}}else T=document.createElement(V)}catch(x){return T="YtRendererStamperBehavior failed to create "+V+".",x.message&&(T+=" Original description: "+x.message),x.message="YtRendererStamperBehavior failed to create element",_.PF(x,T),FOZ.hasOwnProperty(V)?_.hF(x):_.Gr(x),
document.createElement("SPAN")}this.telemetry_.create++;return T},
deferRenderStamperBinding_:function(V,l,I){this.deferredBindingTasks_.push({component:V,typeOrConfig:l,data:I})},
flushRenderStamperComponentBindings_:function(){for(var V=0,l=this.deferredBindingTasks_.length;V<l;V++){var I=this.deferredBindingTasks_[V];if(!I)break;var H=void 0,T=void 0,x=void 0,n=void 0,w=I.component,N=I.typeOrConfig;I=I.data;var L=(n=w.polymerController)!=null?n:w;n=w.loggingStatus;try{n&&(n.isRendererStamper=!0);if(typeof N!=="string"){for(x in N.attributes)N.attributes[x]===!0?w.setAttribute(x,""):N.attributes[x]===!1?w.removeAttribute(x):w.setAttribute(x,N.attributes[x]);for(T in N.params)L[T]=
N.params[T],w!==L&&$s(w.localName,T,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(H in N.properties){var e=N.properties[H];if(e){var k=K$f(e);L[H]=this.get(k);w!==L&&$s(w.localName,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(H==="on-tap"||H==="on-click"){var X=this.get(k);w.addEventListener("click",X);Y23.set(w,{property:H,listener:{type:"element",eventName:"click",handler:X}})}}else{var r=new _.Yd("Undefined property binding",H);_.Gr(r)}}}if(N.classListBinding){var E=K$f(N.classListBinding),
D=E?this[E]:null;if(D)for(H=0;H<D.length;H++)_.fY(w,D[H],!0)}L.data=I}finally{n&&(n.isRendererStamper=!1)}if(H=Ct.get(w))w.hidden=!1,Ct.delete(w),_.r0.cancelJob(H)}this.deferredBindingTasks_.length=0}}];_.aU={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(V){for(var l=_.WF.getInstance(),I=_.U(Object.keys(V)),H=I.next();!H.done;H=I.next()){var T=H.value;H=V[T];if(this&&this[H]){var x=l.actionRoutingMap.get(T);x||(x=new Map,l.actionRoutingMap.set(T,x));l.registerActionHandler(this,T,this[H].bind(this),x)}else T=Error("kd"),T.params=H,_.Dp(T)}},
unregisterActionMap:function(V){_.q4(_.WF.getInstance(),V,this)}}]};var gj=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 ft;var mc=new Map;var Rht=window.matchMedia("(forced-colors: active)").matches;var Xg0;var zEE;var bqc=new _.Vr("LOTTIE_LOADER_TOKEN");_.m5(q21);_.MR(_.W1(function(V){return _.Y("ytd-lottie-player",{id:V.id,hidden:V.hidden,class:V.className,"aria-label":V.ariaLabel,style:"display: block;"},_.Y(_.VN,{data:V.data,animationName:function(){var l;return((l=V.data().animationConfig)==null?void 0:l.name)||""},
animationRef:function(){return V.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.b9,
id:_.b9,hidden:_.b9,className:_.b9,ariaLabel:_.b9}});var yX3=function(){var V=_.M.apply(this,arguments)||this;V.animationRef={};return V};
_.t(yX3,_.M);_.B=yX3.prototype;
_.B.handlePropertyChange=function(){var V=this.animatedIcon,l=this.active,I=this.isDarkTheme;if(V){var H=this.previousActive!==l;this.previousActive=l;this.animationRef.lottieEl?H&&this.toggleAnimation(l,V.totalFrames):l?this.initializeAnimationAsToggled(V.lottiePlayerProps,V.totalFrames):this.initializeAnimationAsUntoggled(V.lottiePlayerProps);V.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=V.type;this.lottiePlayerProps=this.computeLottiePlayerProps(V,I)}};
_.B.computeLottiePlayerProps=function(V,l){var I=this.deepCloneLottiePlayerProps(V);l?(l=V.nameDarkTheme,V=V.pathDarkTheme):(l=V.name,V=V.path);I.animationConfig.name=l;(l=mc.get(V))?I.animationConfig.animationData=l:I.animationConfig.path=V;return I};
_.B.initializeAnimationAsToggled=function(V,l){V.animationConfig.initialSegment=[l-1,l]};
_.B.initializeAnimationAsUntoggled=function(V){V.animationConfig.initialSegment=void 0};
_.B.toggleAnimation=function(V,l){if(V){var I;(I=this.animationRef.lottieEl)==null||I.playSegments([0,l],!0)}else{var H;(H=this.animationRef.lottieEl)==null||H.playSegments([0,1],!0)}};
_.B.deepCloneLottiePlayerProps=function(V){var l=Object.assign({},V.lottiePlayerProps.animationConfig);V=Object.assign({},V.lottiePlayerProps);V.animationConfig=l;return V};
var fb=yX3;fb.prototype.handlePropertyChange=fb.prototype.handlePropertyChange;_.O([_.q(),_.a("design:type",Object)],fb.prototype,"animatedIcon",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],fb.prototype,"active",void 0);_.O([_.q(),_.a("design:type",Boolean)],fb.prototype,"isDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],fb.prototype,"animatedIconType",void 0);_.O([_.q(),_.a("design:type",Boolean)],fb.prototype,"previousActive",void 0);
_.O([_.q(),_.a("design:type",Object)],fb.prototype,"lottiePlayerProps",void 0);_.O([_.q(),_.a("design:type",Object)],fb.prototype,"animationRef",void 0);_.O([_.b("animatedIcon","active","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fb.prototype,"handlePropertyChange",null);fb=_.O([_.Lm({is:"yt-animated-icon",disableElementRegistration:!0})],fb);
_.u(fb,"yt-animated-icon",function(){if(zEE===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Xg0===void 0&&(Xg0=document.createElement("template"));var H=Xg0;I.call(l,H.content.cloneNode(!0),V.content.firstChild);zEE=V}V=zEE;return V},{mode:2});var tiW;var rXi;var pE1=_.W1(function(V){var l=_.pO(),I=y0(function(){return{value:null}});
_.rx(function(){var N;(N=I.value)==null||N.cancel()});
var H=_.Ny(function(){return V.data().iconName},void 0,"dGBPh"),T=_.Ny(function(){return V.data().iconStyle},void 0,"ipXHMb"),x=_.Ny(function(){return V.data().iconSize},void 0,"oPwZue"),n=_.Ny(function(){return V.data().iconSelected},void 0,"fKE56d"),w=_.Ny(function(){return V.data().iconSetName},void 0,"yCb9md");
_.t0(function(){var N={iconName:H(),iconStyle:T(),iconSize:x(),iconSelected:n(),iconSetName:w()},L,e=(L=V.options)==null?void 0:L.call(V),k;L=(k=V.iconManager)==null?void 0:k.call(V);ss1(l,I,N,e,L)});
return _.Y("span",{class:"yt-icon-shape",el:l})},"i");
pE1.idomCompat=!0;var sWw=["youtube_fill","youtube_outline"];var G6J=new _.Jw({type:"iconset",value:void 0}),Eta=function(){var V=_.M.apply(this,arguments)||this;V.isDarkTheme=document.documentElement.hasAttribute("dark");V.iconName="";V.iconsetName="yt-icons";V.iconset=null;V.missingIconSet=!1;V.iconType=null;V.iconShapeDataSignal=_.xi(void 0,void 0,"RQ9kUb");V.renderingOptionsSignal=_.xi({iconWidth:"100%",iconHeight:"100%",iconFilter:V.iconFilter},void 0,"qtx8Ef");V.wizHasRendered=!1;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(Eta,_.M);_.B=Eta.prototype;_.B.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.isDarkTheme=V)};
_.B.handlePropertyChange=function(){var V=this,l,I,H,T,x,n,w,N,L,e,k;return _.d(function(X){switch(X.nextAddress){case 1:if(l=!V.icon&&!V.iconName||!V.isAttached)return X.return();I=V;H=I.icon;T=I.size;x=I.defaultToFilled;n=I.active;w=I.targetContainer;V.toggleContainerClass(w);_.z("kevlar_use_wil_icons")&&H&&(N=KOy(H),N.length?_.z("kevlar_icon_type_fix_killswitch")?(L=N[1].toUpperCase(),V.iconType=bhv[L],V.iconType||(V.iconType=N[1])):V.iconType=N[1]:V.iconType=null);if(H){X.jumpTo(2);break}V.iconsetName=
"";V.iconName="";return _.K(X,V.renderIcon(w,H),3);case 3:return X.return();case 2:e=V.computeIcon(H);k=KOy(e);k.length&&(V.iconsetName=k[0],V.iconName=k[1]);if(!_.z("kevlar_use_wil_icons")){X.jumpTo(4);break}return _.K(X,V.getIconShapeData(),5);case 5:V.iconShapeData=X.yieldResult;case 4:if(V.shouldRenderIconShape(w)){X.jumpTo(6);break}return _.K(X,V.determineIconSet(e,n,x,T,w),6);case 6:return _.K(X,V.renderIcon(w,H),0)}})};
_.B.toggleContainerClass=function(V){V?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.B.computeIcon=function(V){return!_.z("default_to_innertube_icon")||V.indexOf(":")>0?V:_.mj(V)};
_.B.determineIconSet=function(V,l,I,H){var T=this;return _.d(function(x){return x.nextAddress==1?_.z("kevlar_system_icons")||_.h6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.h6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.K(x,T.switchToYtSysIconset(V,l,I,H),3):x.jumpTo(2):x.nextAddress!=2?x.return():_.K(x,T.useYtSysIconsetForMissingIcons(V,l,I,H),0)})};
_.B.switchToYtSysIconset=function(V,l,I,H){var T=this,x,n,w,N,L,e,k;return _.d(function(X){switch(X.nextAddress){case 1:if(!V||T.iconsetName!=="yt-icons"&&T.iconsetName!=="yt-sys-icons"){X.jumpTo(0);break}x=KOy(V);n=x[1];n=_.ti3(n);_.z("enable_polymer_icons_replace_underscores_dash")&&n.includes("_filled")&&(n=n.replace(/_filled/g,"-filled"));return _.K(X,g_(n,!0),3);case 3:return w=X.yieldResult,_.K(X,g_(n,!1),4);case 4:if((N=X.yieldResult)||l&&w)T.iconsetName="yt-sys-icons";T.iconName=T.getIconName(n,
l,I,N,w);if(H===24){X.jumpTo(0);break}L="yt-sys-icons"+H+":"+T.iconName;return _.K(X,g_(L,!1,!0),6);case 6:return e=X.yieldResult,_.K(X,g_(L,!0,!0),7);case 7:k=X.yieldResult;T.iconName=T.getIconName(n,l,I,e,k);if(!l&&e||l&&k)T.iconsetName="yt-sys-icons"+H;_.FU(X)}})};
_.B.getIconName=function(V,l,I,H,T){V.includes("-filled")&&(V=V.replace("-filled",""));return T&&(l||I)?V+"-filled":V};
_.B.useYtSysIconsetForMissingIcons=function(V,l,I,H){var T=this,x,n;return _.d(function(w){if(w.nextAddress==1)return T.iconsetName!=="yt-icons"?w.jumpTo(0):_.K(w,g_(T.iconName,!1,!1,!0),3);if(w.nextAddress!=4)return x=w.yieldResult,_.K(w,g_(T.iconName,!1),4);n=w.yieldResult;if(x||!n)return w.jumpTo(0);T.iconsetName="yt-sys-icons";return _.K(w,T.switchToYtSysIconset(V,l,I,H),0)})};
_.B.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.B.getIconManager=function(){return _.d(function(V){try{return V.return(_.F().resolve(_.VI))}catch(l){return V.return(new Promise(function(I){_.b1().parkOrScheduleJob(function(){I(_.F().resolve(_.VI))},2,"ci")}))}})};
_.B.getIconShapeData=function(){var V=this,l,I,H,T,x,n;return _.d(function(w){if(w.nextAddress==1){if(!V.iconType)return w.return(void 0);l=V.iconType.toLowerCase();I=l.endsWith("_filled")||l.endsWith("-filled");return _.K(w,V.getIconManager(),2)}H=w.yieldResult;T=V.active||V.defaultToFilled||I?"youtube_fill":"youtube_outline";x={iconName:l,iconStyle:T,iconSize:V.size,iconSetName:V.iconsetName};n=!!H.resolveIcon(x);n||(x.iconSize=void 0,n=!!H.resolveIcon(x));!n&&I&&(x.iconName=l.substring(0,l.length-
7),x.iconSize=V.size,n=!!H.resolveIcon(x),n||(x.iconSize=void 0,n=!!H.resolveIcon(x)));n||(x.iconStyle=void 0,n=!!H.resolveIcon(x));n||_.hF(new _.Yd("Icon not supported",{iconName:x.iconName,iconStyle:x.iconStyle,iconSize:x.iconSize,iconType:l}));return w.return(n?x:void 0)})};
_.B.shouldRenderIconShape=function(V){if(!_.z("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;V=this.getContainer(V);return!Qs3(V,this.icon)};
_.B.renderIcon=function(V,l){var I=this,H,T,x,n,w,N,L,e;return _.d(function(k){switch(k.nextAddress){case 1:if(l&&I.icon!==l)return k.return();H=I.getContainer(V);T=Qs3(H,I.icon);if(I.shouldRenderIconShape(V)&&I.iconType)return I.applyIconShape(T,H),k.return();I.removeIconShape();if(!H)return k.return();I.iconName===""&&I.iconset&&H&&(I.removeStaticIcon(I.iconset,H),T&&I.removeAnimatedIcon(H));if(I.iconName===""&&I.iconset||!I.iconsetName||!G6J)return k.return();I.iconset=G6J.byKey(I.iconsetName);
if(!I.iconset)return I.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.VP(I,I.onIconsetAdded)),k.return();I.missingIconSet&&(I.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.VP(I,I.onIconsetAdded)));n=(x=T||I.isAnimatedIcon?S2w(I.icon):void 0)&&!x.lazyLoad;N=x&&((w=x)==null?void 0:w.lazyLoad)&&(x.lottiePlayerProps.animationConfig.animationData?!0:mc.get(I.isDarkTheme?x.pathDarkTheme:x.path)?!0:!1);if(n||N)return I.applyAnimatedIcon(H,x,I.iconset),k.return();if(N||
(L=x)==null||!L.lazyLoad){k.jumpTo(2);break}e=W$f(x,I.isDarkTheme);I.applyStaticIcon(I.iconset,H,I.iconName,V,T);return _.K(k,e,3);case 3:return _.K(k,I.renderIcon(I.targetContainer,I.icon),4);case 4:return k.return();case 2:I.applyStaticIcon(I.iconset,H,I.iconName,V,T),_.FU(k)}})};
_.B.getContainer=function(V){var l,I=(l=iz3(this.hostElement))==null?void 0:l.host;l=!!I&&!!I.polymerController;if(!V||l)return V?this.getTargetContainer(V,I):this.hostElement};
_.B.getTargetContainer=function(V,l){var I=_.h(l).querySelector("#"+V);I||(V=new _.Yd("yt-icon container missing",l.is,V),_.Gr(V));return I};
_.B.applyStaticIcon=function(V,l,I,H,T){T&&this.removeAnimatedIcon(l);this.removeIconShape();T=T&&!!this.iconType&&!!this.iconShapeData&&_.z("kevlar_use_wil_icons");try{T?this.applyIconShape(!1,l):V.applyIcon(l,I)}catch(x){this.handleError(x,H,l)}};
_.B.applyIconShape=function(V,l){this.iconset&&l&&(this.removeStaticIcon(this.iconset,l),V&&this.removeAnimatedIcon(l));V={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var I=_.U(this.iconShapeDataSignal);l=I.next().value;I=I.next().value;var H=_.U(this.renderingOptionsSignal),T=H.next().value;H=H.next().value;I(this.iconShapeData);H(V);if(!this.wizHasRendered)for(this.wizHasRendered=!0,V=_.U(AGJ(l,T)).next().value;V.firstChild;)_.h(this.hostElement).appendChild(V.firstChild)};
_.B.removeIconShape=function(){if(_.z("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.B.removeStaticIcon=function(V,l){V.removeIcon(l)};
_.B.applyAnimatedIcon=function(V,l,I){this.removeStaticIcon(I,V);this.removeIconShape();var H;I=this.animatedIconElement&&((H=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:H.type)===l.type;if(this.animatedIconElement&&I){this.animatedIconElement.polymerController.animatedIcon=l;var T;((T=this.animatedIconElement)==null?void 0:T.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(V),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=l,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.z("kevlar_use_wil_icons")?V.insertBefore(this.animatedIconElement,V.childNodes[0]):(V=_.h(V),V.insertBefore(this.animatedIconElement,V.childNodes[0]))};
_.B.removeAnimatedIcon=function(V){_.z("kevlar_use_wil_icons")?this.animatedIconElement&&V.contains(this.animatedIconElement)&&V.removeChild(this.animatedIconElement):(V=_.h(V),this.animatedIconElement&&V.contains(this.animatedIconElement)&&V.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.B.handleError=function(V,l,I){_.PF(V,this.iconName,l,I);l=Qs3(I,this.icon);var H=!1;window.location.href.includes("JpymaW6Lh2w")?H=!0:I._svgIcon&&(I=(I=I._svgIcon.parentNode)?I.tagName:"unknown",_.PF(V,I),I==="YT-ICON"&&V.name==="NotFoundError"?H=!0:V.name==="NotFoundError"&&l&&(H=!0));H?_.hF(V):_.Gr(V)};
_.vI.Object.defineProperties(Eta,{template:{configurable:!0,enumerable:!0,get:function(){if(rXi===void 0){var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;
tiW===void 0&&(tiW=document.createElement("template"));var H=tiW;I.call(l,H.content.cloneNode(!0),V.content.firstChild);rXi=V}V=rXi;return V}}});
var gd=Eta;gd.prototype.handlePropertyChange=gd.prototype.handlePropertyChange;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],gd.prototype,"actionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",String)],gd.prototype,"icon",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],gd.prototype,"active",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],gd.prototype,"defaultToFilled",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],gd.prototype,"isAnimatedIcon",void 0);_.O([_.q({value:24}),_.a("design:type",Number)],gd.prototype,"size",void 0);_.O([_.q({value:""}),_.a("design:type",String)],gd.prototype,"targetContainer",void 0);_.O([_.q(),_.a("design:type",Object)],gd.prototype,"animatedIconElement",void 0);_.O([_.q(),_.a("design:type",Object)],gd.prototype,"isDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],gd.prototype,"ariaHidden",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],gd.prototype,"ariaLabel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],gd.prototype,"role",void 0);_.O([_.q(),_.a("design:type",String)],gd.prototype,"style",void 0);_.O([_.q(),_.a("design:type",String)],gd.prototype,"iconFilter",void 0);
_.O([_.b("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],gd.prototype,"handlePropertyChange",null);gd=_.O([_.Lm({is:"yt-icon",noInjection:!0})],gd);var JXW;var otZ=function(){var V=document.body,l=V.appendChild;if(JXW===void 0){var I=document.createElement("template");_.G(I,'\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>');
JXW=I}I=JXW;l.call(V,I.content)};
document.body?otZ():window.addEventListener("DOMContentLoaded",otZ);var hEW,Pjo=function(){return hEW!==void 0?hEW:hEW=document.createElement("template")};
document.head.appendChild(Pjo().content);var Dti,ZIw=function(){return Dti!==void 0?Dti:Dti=document.createElement("template")};
document.head.appendChild(ZIw().content);var S3v;_.eM=new _.Vr("KEY_MANAGER_TOKEN");var auc={duration:1E3,easing:"ease",fill:"forwards"};_.m5(Czy);var REB=_.I2(_.TS);_.m5(_.TS);_.wq=_.W1(function(V){var l=_.sZ(V.ref),I=V.aTagConfig?V.aTagConfig:_.Ny(function(){var x,n,w,N,L,e;var k=(e=_.to((N=V.command)==null?void 0:N.call(V)))!=null?e:(L=V.command)==null?void 0:L.call(V);return _.GG({innertubeCommand:k,skipOnClick:(x=V.skipOnClick)==null?void 0:x.call(V),stopPropagation:(n=V.dangerousStopPropagation)==null?void 0:n.call(V),defaultTarget:(w=V.target)==null?void 0:w.call(V)})||{}},void 0,"gnrRge");
_.t0(function(){l.value._data=I()._data;l.value.params=I().params});
var H=_.Bu(function(x){var n,w;return void((w=(n=I()).onpointerdown)==null?void 0:w.call(n,x))}),T=_.Bu(function(x){var n,w;
return void((w=(n=I()).onclick)==null?void 0:w.call(n,x))});
return _.Y("a",{el:l,href:function(){return I().href$},
rel:function(){return I().rel$},
class:function(){var x,n;return(n=I().className)!=null?n:(x=V.className)==null?void 0:x.call(V)},
style:function(){var x;if((x=V.style)==null?0:x.call(V))return V.style();var n;return((n=V.disabled)==null?0:n.call(V))?"pointer-events:none":""},
"aria-haspopup":function(){return!!I()["aria-haspopup$"]},
"force-new-state":xF(function(){return I()["force-new-state$"]}),
title:xF(function(){var x,n;return(n=I().title$)!=null?n:(x=V.title)==null?void 0:x.call(V)}),
role:xF(function(){return I().role$}),
target:xF(function(){return I().target$}),
dir:xF(function(){var x;return((x=V.dir)==null?0:x.call(V))?V.dir():I().dir}),
tabindex:function(){var x;return I().tabindex$?Number(I().tabindex$):(x=V.tabIndex)==null?void 0:x.call(V)},
"aria-hidden":function(){var x,n;return(n=I()["aria-hidden$"])!=null?n:(x=V.ariaHidden)==null?void 0:x.call(V)},
"aria-label":function(){var x,n;return(n=I()["aria-label$"])!=null?n:(x=V.ariaLabel)==null?void 0:x.call(V)},
"aria-current":V.ariaCurrent,"aria-labelledby":V.ariaLabelledby,"aria-describedby":V.ariaDescribedby,"aria-selected":V.ariaSelected,"tab-identifier":V.tabIdentifier,"on:pointerdown":H,"on:click":T},V.children)},"j");var mh=function(V,l){this.fillAnimation=new Animation(fuT(V),document.timeline);this.strokeAnimation=new Animation(gqy(l),document.timeline)};
mh.prototype.play=function(){var V,l;(l=(V=this.fillAnimation).play)==null||l.call(V);var I,H;(H=(I=this.strokeAnimation).play)==null||H.call(I)};
mh.prototype.cancel=function(){var V,l;(l=(V=this.fillAnimation).cancel)==null||l.call(V);var I,H;(H=(I=this.strokeAnimation).cancel)==null||H.call(I)};_.Ka=_.W1(function(V){var l=V.model;var I=V.pointerDownEvent;var H=V.pointerUpEvent;var T=V.pointerLeaveEvent;V=_.sZ();var x=_.na({"border-radius":function(){return l().borderRadius}}),n=_.sZ(),w=_.sZ(),N=_.U(_.Ux(function(){return(H==null?0:H())||(T==null?0:T())?!1:!(I==null||!I())||!1})),L=N.next().value,e=N.next().value,k=void 0,X=function(){!k&&w.value&&n.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(k=new mh(w.value,n.value));
var S;(S=k)==null||S.play()},r=function(){var S;
(S=k)==null||S.cancel()},E=function(){var S;
(S=k)==null||S.cancel()};
_.t0(function(){(H==null?0:H())&&X()});
_.t0(function(){(I==null?0:I())&&r()});
_.t0(function(){(T==null?0:T())&&E()});
N=_.Bu(function(){X();e(!1)});
var D=_.Bu(function(){r();e(!0)});
_.AF(V,"pointerleave",function(){E();e(!1)});
_.rx(function(){if(k){var S;(S=k)==null||S.cancel();k=void 0}});
var Z={};L=_.ii("yt-spec-touch-feedback-shape",function(){return iqK(l().color)},(Z["yt-spec-touch-feedback-shape--focused"]=function(){return!!l().focused&&!l().disabled},Z["yt-spec-touch-feedback-shape--circular"]=function(){return!!l().circular},Z["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!l().isExtended},Z["yt-spec-touch-feedback-shape--down"]=L,Z["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!l().triggerEvents},Z));
return _.Y("yt-touch-feedback-shape",{style:_.na({"border-radius":"inherit"})},_.Y("div",{el:V,class:L,style:_.na({"margin-top":function(){return l().customTopExtend?"-"+l().customTopExtend+"px":void 0}}),
"on:mousedown":D,"on:mouseup":N,"on:touchstart":D,"on:touchend":N,"aria-hidden":!0},_.Y("div",{class:"yt-spec-touch-feedback-shape__stroke",style:x,el:n}),_.Y("div",{class:"yt-spec-touch-feedback-shape__fill",style:x,el:w})))},"k");
_.Ka.idomCompat=!0;var Q$J={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 i9=_.zw();i9=i9.toLowerCase();if(_.kT(i9,"android")){var cXi=i9.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);cXi&&parseFloat(cXi[1])<100||i9.match("("+Object.keys(Q$J).join("|")+")")};var WO3=_.W1(function(V){return _.Y(_.NS,{cond:V.aTagConfig,then:function(l){return _.Y(_.wq,{aTagConfig:l,disabled:V.disabled,className:V.className,style:V.style,title:V.title,ariaLabel:V.ariaLabel,ariaCurrent:function(){var I,H;return((I=V.toggleable)==null?void 0:I.call(V))&&((H=V.toggled)==null?void 0:H.call(V))}},V.children)},
else:function(){return _.Y("button",{"on:click":_.Bu(function(l){var I;return(I=V.onClick)==null?void 0:I.call(V,l)}),
class:V.className,title:V.title,style:V.style,disabled:V.disabled,"aria-pressed":function(){var l,I;return((l=V.toggleable)==null?0:l.call(V))?!((I=V.toggled)==null||!I.call(V)):void 0},
"aria-label":V.ariaLabel,"aria-disabled":V.visiblyDisabled,"aria-hidden":V.ariaHidden,tabindex:V.tabIndex},V.children)}})},"l"),q3w=_.W1(function(V){var l=V.data;
var I=V.hasIconLeading;var H=V.hasIconLeadingTrailing;var T=V.hasIconTrailing;var x=V.iconButton;var n=V.iconClassName;var w=V.secondaryIconClassName;var N=V.icon;var L=V.secondaryIcon;var e=V.textContentClassName;return _.Y(V2,{className:"",style:"display: inherit; justify-content: center"},_.Y(_.NS,{cond:function(){return N&&(I()||H()||(x==null?void 0:x()))},
then:function(){return _.Y(V2,null,_.Y("div",{class:n,"aria-hidden":"true"},N==null?void 0:N()))}}),_.Y(_.NS,{cond:function(){return(l().buttonText||l().animatedTextProps||l().formattedButtonText)&&!(x==null?0:x())},
then:function(){return _.Y(V2,null,_.Y(bIo,{className:e,iconPosition:function(){return l().iconPosition},
text:function(){return l().buttonText},
oneOffCustomTextWrap:function(){return l().oneOffCustomTextWrap},
formattedButtonText:function(){return l().formattedButtonText},
animatedTextProps:function(){return l().animatedTextProps}}))}}),_.Y(_.NS,{cond:T,
then:function(){return _.Y(V2,null,_.Y("div",{class:n},N==null?void 0:N()))}}),_.Y(_.NS,{cond:H,
then:function(){return _.Y(V2,null,_.Y("div",{class:w},L==null?void 0:L()))}}),_.Y(_.NS,{cond:function(){return!l().disabled&&!0},
then:function(){return _.Y(_.Ka,{model:function(){return{color:H2W(l())}}})}}))},"m"),bIo=_.W1(function(V){var l=function(){var I,H;
return((I=V.iconPosition)==null?void 0:I.call(V))==="icon-with-label"||((H=V.oneOffCustomTextWrap)==null?void 0:H.call(V))};
return _.Y("div",{class:V.className,"aria-hidden":function(){var I,H,T;return((I=V.ariaHidden)==null?void 0:I.call(V))&&(!((H=V.animatedTextProps)==null||!H.call(V))||!((T=V.formattedButtonText)==null||!T.call(V)))}},_.Y(_.YG,null,_.Y(_.jN,{when:function(){var I;
return(I=V.animatedTextProps)==null?void 0:I.call(V)}},function(){return _.Y(REB,{numberText:function(){return V.animatedTextProps().numberText},
numberValue:function(){return V.animatedTextProps().numberValue},
heightPx:function(){return V.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return V.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return V.animatedTextProps().shouldAnimate},
forceRollUp:function(){return V.animatedTextProps().forceRollUp}})}),_.Y(_.jN,{when:function(){var I;
return(I=V.formattedButtonText)==null?void 0:I.call(V)}},function(){return _.Y(_.Ni,{text:function(){return Object.assign({},V.formattedButtonText(),{lineBreakMode:l()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":V.formattedButtonText().lineBreakMode,
alignment:l()?"TEXT_ALIGNMENT_CENTER":V.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!l()}})}),_.Y(_.qAK,null,function(){return V.text})))},"n"),MiN=_.W1(function(V){return _.Y(_.NS,{cond:V.hasLabel,
then:function(){var l;return _.Y("label",{class:V.className},V.children,(l=V.textContent)==null?void 0:l.call(V))},
else:function(){return V.children}})},"o"),V2=_.W1(function(V){return V.children},"p");var BvK=CS("stamper-context");_.m5(KEJ);var jMJ=new Map;var LEW=!1,s$J=!1;var ez=function(){UTN.apply(this,arguments);var V=this;this.state={down:!1};this.JSC$11589_onPointerUp=function(){!V.JSC$11589_currentAnimation&&V.JSC$11589_fillElement&&V.JSC$11589_strokeElement&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(V.JSC$11589_currentAnimation=new mh(V.JSC$11589_fillElement,V.JSC$11589_strokeElement));V.setState({down:!1});var l;(l=V.JSC$11589_currentAnimation)==null||l.play()};
this.JSC$11589_onPointerDown=function(){var l;(l=V.JSC$11589_currentAnimation)==null||l.cancel();V.setState({down:!0})};
this.onPointerLeave=function(){var l;(l=V.JSC$11589_currentAnimation)==null||l.cancel();V.setState({down:!1})}};
_.t(ez,UTN);ez.prototype.onConnected=function(){this.hostElement.style.borderRadius="inherit"};
ez.prototype.render=function(){var V=this,l=this.props.model,I=l.disabled,H=l.focused,T=l.borderRadius,x=l.circular,n=l.isExtended;l=l.color;var w={};I=(w["yt-spec-touch-feedback-shape"]=!0,w["yt-spec-touch-feedback-shape--focused"]=!!H&&!I,w["yt-spec-touch-feedback-shape--circular"]=!!x,w["yt-spec-touch-feedback-shape--is-extended"]=!!n,w["yt-spec-touch-feedback-shape--down"]=!!this.state.down,w[Y$1(l)]=!0,w);YF({className:_.l8(I),onmousedown:this.JSC$11589_onPointerDown,onmouseup:this.JSC$11589_onPointerUp,
ontouchstart:this.JSC$11589_onPointerDown,ontouchend:this.JSC$11589_onPointerUp,onpointerleave:this.onPointerLeave,"aria-hidden$":!0},function(){var N=T?{borderRadius:T}:void 0;YF({className:"yt-spec-touch-feedback-shape__stroke",style:N},function(L){V.JSC$11589_strokeElement=L});
YF({className:"yt-spec-touch-feedback-shape__fill",style:N},function(L){V.JSC$11589_fillElement=L})})};
ez.tagName="yt-touch-feedback-shape";var IJ=_.W1(function(V){var l=V.data;var I=V.icon;var H=V.iconName;var T=V.secondaryIcon;var x=V.secondaryIconName;var n=V.focusedOverride;xnf();var w=V2N(l),N=w.size,L=w.style;V=w.disabled;var e=w.onTap,k=w.alignByText,X=w.aTagConfig,r=w.customColors,E=w.segmentedPosition,D=w.toggled,Z=w.toggleable,S=w.accessibilityLabel,p=w.onToggle,Vf=w.iconPosition,C=w.oneOffCustomTextWrap,By=w.disableTextEllipsis,lN=w.tooltipText,wW=w.ariaHidden,o1=w.tabIndex,h1=w.buttonText,ec=w.formattedButtonText,Zg=w.animatedTextProps,
Va=Izw(l,I,T,H,x,n),wb=Va.type;I=Va.shouldFocus;H=Va.hasIconLeading;T=Va.hasIconTrailing;x=Va.hasIconLeadingTrailing;var CK=Va.hasIconOnly;n=Va.hasIconOnly40;var CZ=Va.hasIconWithLabel;w=Va.iconButton;var ME=Va.visiblyDisabled,Hw=Va.overrideSmallSizeIcon,uZ=Va.iconToRender;Va=Va.secondaryIconToRender;var EN={},ya={};return _.Y(MiN,{className:_.ii("yt-spec-button-shape-with-label",(EN["yt-spec-button-shape-with-label--is-overlay"]=function(){return L()==="overlay"||L()==="overlay-dark"},EN)),
hasLabel:CZ,textContent:function(){return _.Y(bIo,{text:h1,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:C,iconPosition:Vf,formattedButtonText:ec,animatedTextProps:Zg})}},_.Y(WO3,{aTagConfig:X,
className:_.ii("yt-spec-button-shape-next",function(){return UnJ(wb())},function(){return ME()?void 0:nIc(L())},function(){return $nw(N())},(ya["yt-spec-button-shape-next--disabled"]=ME,ya["yt-spec-button-shape-next--focused"]=I,ya["yt-spec-button-shape-next--icon-trailing"]=T,ya["yt-spec-button-shape-next--icon-leading"]=H,ya["yt-spec-button-shape-next--icon-leading-trailing"]=x,ya["yt-spec-button-shape-next--icon-button"]=function(){return CK()||CZ()},ya["yt-spec-button-shape-next--icon-only-default"]=
n,ya["yt-spec-button-shape-next--align-by-text"]=k,ya["yt-spec-button-shape-next--segmented-start"]=function(){return E()==="start"},ya["yt-spec-button-shape-next--segmented-end"]=function(){return E()==="end"},ya["yt-spec-button-shape-next--override-small-size-icon"]=Hw,ya["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=C,ya["yt-spec-button-shape-next--disable-text-ellipsis"]=By,ya["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=TOt(),ya)),
style:function(){return dn3(r()).style},
onClick:function(Dv){e==null||e(Dv);Z()&&(p==null||p(Dv))},
disabled:V,ariaLabel:S,toggleable:Z,toggled:D,title:function(){var Dv;return(Dv=lN())!=null?Dv:""},
visiblyDisabled:ME,ariaHidden:wW,tabIndex:o1},_.Y(q3w,{data:l,hasIconLeading:H,hasIconLeadingTrailing:x,hasIconTrailing:T,iconButton:w,icon:uZ,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:Va})))},"q");
IJ.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var pgi=_.W1(function(V){var l=V.data;var I=V.id;var H=V.hidden;var T=V.disableUpgrade;var x=V.className;var n=V.icon;var w=V.secondaryIcon;var N=V.iconName;var L=V.secondaryIconName;V=_.U(_.xi(!1,void 0,"O7k8w"));var e=V.next().value,k=V.next().value,X=function(){var E=_.F().resolve(_.Cs(_.eM));E&&k(E.isKeyBoardInUse())},r=function(){k(!1)};
V=_.sZ(function(E){if((T==null||!T())&&_.F().resolve(_.Cs(_.eM)))return E.addEventListener("focusin",X),E.addEventListener("focusout",r),function(){E.removeEventListener("focusin",X);E.removeEventListener("focusout",r)}});
return _.Y("yt-button-shape",{el:V,id:I,class:x,hidden:function(){return(H==null?void 0:H())||(T==null?void 0:T())}},_.Y(_.NS,{cond:function(){return!(T==null?0:T())},
then:function(){return _.Y(IJ,{data:l,icon:n,secondaryIcon:w,iconName:N,secondaryIconName:L,focusedOverride:e})}}))},"r");
_.z("web_wiz_button_shape")&&_.MR(pgi,"yt-button-shape",{props:{data:_.b9,id:_.b9,hidden:_.b9,disableUpgrade:_.b9,className:_.b9,icon:_.qR,secondaryIcon:_.qR,iconName:_.b9,secondaryIconName:_.b9},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss"])});var l5=function(){var V=_.M.apply(this,arguments)||this;V.keyboardFocused=!1;return V};
_.t(l5,_.M);l5.prototype.onFocus=function(){var V=_.F().resolve(_.Cs(_.eM));V&&(this.keyboardFocused=V.isKeyBoardInUse())};
l5.prototype.onBlur=function(){this.keyboardFocused=!1};
l5.prototype.renderIdom=function(){var V=this;if(this.data){var l=kDq(this.data,!!this.iconName),I=FEy(this.data);this.data.focused=this.keyboardFocused;rnt(this.data,function(){var H;Lt("yt-icon",{icon:V.iconName,active:(H=V.data)==null?void 0:H.toggled,size:l,style:"width: "+l+"px; height: "+l+"px;",iconFilter:I},b$)},function(){var H;
Lt("yt-icon",{icon:V.secondaryIconName,active:(H=V.data)==null?void 0:H.toggled,size:l,style:"width: "+l+"px; height: "+l+"px;",iconFilter:I},b$)});
_.B$(this.hostElement,"yt-renderidom-finished")}};
_.vI.Object.defineProperties(l5,{template:{configurable:!0,enumerable:!0,get:function(){if(S3v===void 0){var V=document.createElement("template");_.G(V,"\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");
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);V.content.insertBefore(ZIw().content.cloneNode(!0),V.content.firstChild);V.content.insertBefore(Pjo().content.cloneNode(!0),V.content.firstChild);S3v=V}V=S3v;return V}}});
var Ie=l5;Ie.prototype.onBlur=Ie.prototype.onBlur;Ie.prototype.onFocus=Ie.prototype.onFocus;_.O([_.R(dTZ),_.a("design:type",Object)],Ie.prototype,"ytIdomTemplatingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ie.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],Ie.prototype,"iconName",void 0);_.O([_.q(),_.a("design:type",String)],Ie.prototype,"secondaryIconName",void 0);_.O([_.q(),_.a("design:type",Object)],Ie.prototype,"keyboardFocused",void 0);
_.O([_.W("focusin"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ie.prototype,"onFocus",null);_.O([_.W("focusout"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ie.prototype,"onBlur",null);Ie=_.O([_.Lm({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.z("web_wiz_button_shape")})],Ie);_.MR(_.W1(function(V){function l(){I().seconds&&x(mBw({seconds:Number(I().seconds)-Date.now()/1E3}))}
var I=V.targetTimestamp;V=V.className;var H=_.U(_.xi("",void 0,"U1Q8Ae")),T=H.next().value,x=H.next().value;_.kG(function(){l();var n=setInterval(function(){l()},1E3);
_.rx(function(){clearInterval(n)})});
return _.Y("yt-countdown",{class:_.ii("ytCountDownHost",V)},_.Y("div",null,T))},"s"),"yt-countdown",{props:{targetTimestamp:_.b9,
className:_.qR}});_.Db=_.W1(function(V){var l=V.data;var I=V.className;var H=V.style;var T=V.useOutlinedIcon;var x=V.buttonOverrides;var n=V.animatedTextProps;var w=V.onClick;var N=_.sZ(function(S){return function(){g3o(_.$6(),S)}}),L=function(){return l().iconName},e=function(){var S=l();
var p=x==null?void 0:x(),Vf=n==null?void 0:n();if(S){var C=Jn3(S.type);var By=!!S.title||!!S.titleFormatted;var lN=!(!S.iconName&&!S.iconImage);By=lN&&!By?"icon-only":lN?S.iconTrailing||S.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;By==="icon-only-40"&&(C="text");var wW,o1=(wW=p==null?void 0:p.disabled)!=null?wW:S.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||S.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";wW=Object;lN=wW.assign;var h1=S.title,ec=S.titleFormatted;
Vf=Vf&&Vf.numberText&&!isNaN(Number(Vf.numberValue))?Vf:void 0;var Zg=S.accessibilityText,Va=EIt(S.style),wb=oIN(S.state),CK=h5f(S.buttonSize),CZ=GDw(S,N,o1,w);o1=o1&&!S.onDisabledTap;var ME=_.GG({elementsCommand:S.onTap,forceNewState:!0});ME=FoN(ME)?ME:void 0;var Hw=S.customFontColor;var uZ=S.customBackgroundColor,EN=S.customBorderColor;Hw={color:Hw?_.rP(Hw):void 0,backgroundColor:uZ?_.rP(uZ):void 0,borderColor:EN?_.rP(EN):void 0};S=lN.call(wW,{},{buttonText:h1,formattedButtonText:ec,animatedTextProps:Vf,
accessibilityLabel:Zg,style:Va,type:C,state:wb,size:CK,iconPosition:By,onTap:CZ,disabled:o1,aTagConfig:ME,customColors:Hw,tooltipText:S.tooltip},p)}else S={style:"mono",type:"text",state:"active",size:"M"};S.focused=E();return S},k=function(){return kDq(e(),!!l().iconName)};
V=_.U(_.xi(!1,void 0,"vozwtc"));var X=V.next().value,r=V.next().value,E=X;V=_.Bu(function(){var S=_.F().resolve(_.Cs(_.eM));S&&r(S.isKeyBoardInUse());return!1});
X=_.Bu(function(){r(!1);return!1});
_.t0(function(){var S,p=_.y(l==null?void 0:(S=l())==null?void 0:S.onVisible,_.yI);p&&_.rj(p,{disableClickTracking:!0})});
var D=function(){if(L()){var S,p={activeState:(T==null?0:T())?!1:e().toggled,animateIcon:H==null?void 0:(S=H())==null?void 0:S.animateIcon};p.iconSize=k();_.F().resolve(vSK)(L()||null,p)}else(S=l().iconImage)&&G31({sources:[S]},{alt:"",targetWidth:k(),targetHeight:k(),preserveWidth:!0,preserveHeight:!0})},Z=function(){return l().iconImage?{sources:[l().iconImage]}:void 0};
_.XW(function(){N.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var S=l().targetId;S&&_.iPW(_.$6(),S,N.value)});
return _.Y("button-view-model",{el:N,class:_.ii("yt-spec-button-view-model",I),"on:focusin":V,"on:focusout":X},_.z("web_wiz_button_shape_bvm")?_.Y(_.NS,{cond:Z,then:function(S){return _.Y(IJ,{data:e,icon:function(){return _.Y(_.cX,{data:S,alt:"",targetWidth:k,targetHeight:k,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.Y(IJ,{data:e,icon:function(){return _.Y(_.dq,{icon:L,active:function(){return(T==null?0:T())?!1:e().toggled},
animateIcon:function(){var S;return!!(H==null?0:(S=H())==null?0:S.animateIcon)},
size:k})}})}}):_.Y(dZg,null,function(){var S=e();
return _.Y(ux,null,function(){rnt(S,D)})}))},"t");
_.Db.idomCompat={callbacks:{onClick:!0}};_.MR(_.W1(function(V){return _.Y("yt-button-view-model",{id:V.id,class:_.ii(V.scopingClassName,V.classes),icon:function(){var l;return(l=V.icon)==null?void 0:l.call(V)},
"dialog-dismiss":function(){var l;return((l=V.dialogDismiss)==null?0:l.call(V))?"":void 0}},_.Y(_.Db,{data:function(){var l;
return(l=V.data)==null?void 0:l.call(V)},
className:function(){var l;return(l=V.className)==null?void 0:l.call(V)},
style:function(){var l;return(l=V.style)==null?void 0:l.call(V)},
useOutlinedIcon:function(){var l;return(l=V.useOutlinedIcon)==null?void 0:l.call(V)},
buttonOverrides:function(){var l;return(l=V.buttonOverrides)==null?void 0:l.call(V)},
animatedTextProps:function(){var l;return(l=V.animatedTextProps)==null?void 0:l.call(V)},
onClick:function(l){var I;return(I=V.onClick)==null?void 0:I.call(V,l)}}))},"u"),"yt-button-view-model",{props:{data:_.b9,
className:_.b9,style:_.b9,useOutlinedIcon:_.b9,buttonOverrides:_.b9,animatedTextProps:_.b9,onClick:_.qR,scopingClassName:_.b9,id:_.b9,icon:_.b9,dialogDismiss:_.b9,classes:_.b9}});var HQ=function(){var V=_.M.apply(this,arguments)||this;V.isGoalActive=!0;return V};
_.t(HQ,_.M);HQ.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
HQ.prototype.progressBarChanged=function(){var V=_.h(this.hostElement).querySelector("#progress-bar-progress"),l,I,H,T=(H=Number((l=this.creatorGoalState)==null?void 0:l.currentGoalCount)/Number((I=this.creatorGoalState)==null?void 0:I.totalGoalCount)*100)!=null?H:0,x;V.style.width=((x=Math.min(T,100))!=null?x:0)+"%"};
HQ.prototype.goalStateChanged=function(){var V;this.isGoalActive=((V=this.creatorGoalState)==null?void 0:V.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var l;V={"--yt-progress-bar-color":s$T((l=this.creatorGoalState)==null?void 0:l.progressBarColor)};_.i3(this.hostElement,V)};
HQ.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.vI.Object.defineProperties(HQ.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var V;return this.isGoalActive&&!((V=this.creatorGoalState)==null||!V.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.creatorGoalState)==null?0:V.endTimestampMs){var l;V=Number((l=this.creatorGoalState)==null?void 0:l.endTimestampMs)/1E3;return{seconds:String(V)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.creatorGoalState)==null?0:V.themedTargetImage){var l;V=_.y((l=this.creatorGoalState)==null?void 0:l.themedTargetImage,tWN);return this.isAppDarkTheme()?V==null?void 0:V.imageDark:V==null?void 0:V.imageLight}}}});
_.vI.Object.defineProperties(HQ,{template:{configurable:!0,enumerable:!0,get:function(){return NZB()}}});
var TF=HQ;TF.prototype.goalStateChanged=TF.prototype.goalStateChanged;TF.prototype.progressBarChanged=TF.prototype.progressBarChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],TF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.hM),_.a("design:type",Object)],TF.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);
_.O([_.q({selectorArgs:["data.creatorGoalEntityKey"],selector:function(V,l){return _.nW(V.entities,"creatorGoalEntity",l)}}),
_.a("design:type",Object)],TF.prototype,"creatorGoalState",void 0);_.O([_.q(),_.a("design:type",Object)],TF.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],TF.prototype,"isGoalActive",void 0);_.O([_.Q("creatorGoalState","isGoalActive"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TF.prototype,"shouldShowCountdown",null);_.O([_.Q("creatorGoalState"),_.a("design:type",Object),_.a("design:paramtypes",[])],TF.prototype,"endTimestamp",null);
_.O([_.Q("creatorGoalState"),_.a("design:type",Object),_.a("design:paramtypes",[])],TF.prototype,"targetIconThemedImage",null);_.O([_.b("creatorGoalState.currentGoalCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TF.prototype,"progressBarChanged",null);_.O([_.b("creatorGoalState.creatorGoalState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TF.prototype,"goalStateChanged",null);
TF=_.O([_.Lm({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],TF);_.u(TF,"yt-creator-goal-progress-flow-view-model",function(){return NZB()},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var AXZ;var u8E;var vti=function(){return _.M.apply(this,arguments)||this};
_.t(vti,_.M);vti.prototype.attached=function(){var V,l,I;if(this==null?0:(V=this.data)==null?0:(l=V.pdgPurchasedBumperLoggingDirectives)==null?0:(I=l.loggingDirectives)==null?0:I.trackingParams){var H,T,x;Z2t(this==null?void 0:(H=this.data)==null?void 0:(T=H.pdgPurchasedBumperLoggingDirectives)==null?void 0:(x=T.loggingDirectives)==null?void 0:x.trackingParams)}};
vti.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
var BQ=vti;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],BQ.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],BQ.prototype,"data",void 0);BQ=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],BQ);
_.u(BQ,"yt-live-chat-item-bumper-view-model",function(){if(u8E===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;AXZ===void 0&&(AXZ=document.createElement("template"));var H=AXZ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);u8E=V}V=u8E;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var OIa;var CjJ;_.b8=function(V,l){this.data=V;this.actions=l;this.data=V;this.actions=l};
_.Pu=function(){};_.x4={};_.x4.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(V,l){S$J(this.hostElement,V,l)},
getNavigationEndpointPopupAction:function(V){return R5f(V,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(V,l){QMc(this.hostElement,V,l,this.openPopupConfig)}};var vIw=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Uf={};
_.Uf.YtEndpointBehavior=[_.x4.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.h6("openPopupConfig");(this.useClickHandler=_.PO("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(V){b21(this.hostElement,V,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(V){var l=this.hostElement,I=this.openPopupConfig,H=this.disableCommandHandlerOverride;H=H===void 0?!1:H;var T=cnT(V);if(T){T.href&&Jv(T.href);var x=V.detail;var n=x.sourceEvent;x=x.preventer;n=n.button!==void 0?n.button===0&&!kF(n):x?!kF(x):!0;T.data&&n&&WEq(l,T,V,I,H)}},
onEndpointTouchEnd_:function(V){kF(V)||cnT(V)&&V.preventDefault()},
onEndpointTapStart_:function(V){Anf(V)}}];var O2K="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),az1=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var aHo={};aHo.YtPlaintextBehavior=[_.yn,{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(V){V.preventDefault();V=V.clipboardData.getData("text/plain");document.execCommand("insertText",!1,V)},
preventRichTextFormatting_:function(V){_.Lj&&(V=V.detail.keyboardEvent,V.stopImmediatePropagation(),V.preventDefault())}}];var fHE;var gta;var mtZ=function(){var V=_.M.apply(this,arguments)||this;V.ignoreShadyDom=!1;V.hasChange_=!1;V.hasSetTitle_=!1;V.useIOObserverForVisibilityLogging_=_.z("kevlar_use_vimio_behavior")&&_.h6("INNERTUBE_CLIENT_NAME")==="WEB";V.ytFormattedStringObserverHandlerKeys_=void 0;return V};
_.t(mtZ,_.M);_.B=mtZ.prototype;_.B.created=function(){this.useIOObserverForVisibilityLogging_=_.z("kevlar_use_vimio_behavior")&&_.h6("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.B.ready=function(){_.h6("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_()};
_.B.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.B.detached=function(){this.unobserveIOObservers_()};
_.B.clearContents_=function(){for(var V=this.getRoot(),l=V.lastChild;l&&l.tagName!=="STYLE";){try{V.removeChild(l)}catch(I){break}l=V.lastChild}};
_.B.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var V=_.U(this.ytFormattedStringObserverHandlerKeys_),l=V.next();!l.done;l=V.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(l.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.B.resetForAttributedString=function(){var V=this.getRoot();!V.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),V.appendChild(this.ytAttributedStringElementRef))};
_.B.resetForFormattedString=function(){var V=this.getRoot(),l=V.querySelector("yt-attributed-string");l&&(this.ytAttributedStringElementRef=V.removeChild(l))};
_.B.textChanged=function(){this.textChanged_(this.text)};
_.B.textChanged_=function(V){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!V||!V.runs&&!V.simpleText;if(_.z("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var l=this.hostElement.firstChild;l&&l.nodeName==="FONT";){var I=l;l=l.nextSibling;this.hostElement.removeChild(I)}l=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
I=V.simpleText;var H;!I&&((H=V.runs)==null?void 0:H.length)===1&&this.isSimpleString_(V.runs[0])&&(I=V.runs[0].text);I!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.h6("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(I!==void 0){try{l.textContent=I}catch(T){}l.textContent||(this.isEmpty=!0)}else V=V.runs,I!==void 0&&(V=[{text:I}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),V&&this.updateText_(V),
l.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.B.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)};
_.B.computeAriaLabel_=function(V){return V};
_.B.computeEllipsisTruncateStyling=function(V,l){return V&&!l};
_.B.computeUseAttributedString=function(V){return _.z("web_replace_formatted_with_attributed_string")&&By1(V)&&!this.disableAttributedString&&!this.enableContentEditable};
_.B.setNodeStyle_=function(V,l){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.z("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?l.removeAttribute("dir"):l.setAttribute("dir","auto");l.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");l.style.color="";var I=null;this.noStyles||(V.bold&&(l.classList.add("bold"),I="bold"),V.deemphasize&&(l.classList.add("deemphasize"),I="deemphasize"),V.italics&&l.classList.add("italic"),
V.strikethrough&&l.classList.add("strikethrough"),V.errorUnderline&&(l.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),V.bracket&&l.classList.add("bracket"),V.textColor&&(l.style.color=_.tv(V.textColor)));I!==l.getAttribute("style-target")&&(I?l.setAttribute("style-target",I):l.removeAttribute("style-target"))};
_.B.setUpVisibilityLogging_=function(V,l){var I=this;this.setNodeTrackingParams_(V,l);var H;((H=l.data)==null?0:H.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(V=this.ytRendererBehavior.visibilityObserver.observe(l,function(T){var x=I.ytRendererBehavior.getVisibilityLogger();x&&x.reportShown(T)},this.ytRendererBehavior.visibilityOptionVisible_),l=this.ytRendererBehavior.visibilityObserver.observe(l,function(T){var x=I.ytRendererBehavior.getVisibilityLogger();
x&&x.reportHidden(T)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(V),this.ytFormattedStringObserverHandlerKeys_.push(l))};
_.B.setNodeTrackingParams_=function(V,l){l.data||(l.data={});if((V=V.loggingDirectives?V.loggingDirectives.trackingParams:null)||l.data.trackingParams)l.data.trackingParams=V};
_.B.computeHasLinkOnly_=function(V){return!(!V||V.length!==1||this.noEndpoints||!V[0].navigationEndpoint)};
_.B.getRoot=function(){var V=this.buildScopeDomOptions();return this.enableContentEditable?_.h(_.h(this.hostElement,V).querySelector("[contenteditable]")):_.h(this.hostElement,V)};
_.B.fixContenteditableScope=function(){var V=function(l){l&&(l.nodeType===1&&l.classList&&(l.classList.add("style-scope"),l.classList.add("yt-formatted-string")),l.childNodes&&l.childNodes.forEach(function(I){V(I)}))};
V(this.getRoot())};
_.B.updateText_=function(V){for(var l=V.length,I=this.getRoot(),H=I.firstChild;H&&H.nodeName==="STYLE";)H=H.nextSibling;for(var T=0;T<l&&H;){var x=V[T],n=_.z("remove_cr_char")&&x.text?x.text.replace("\r",""):x.text;if(this.isSimpleString_(x)&&!this.useMixedDirectionFormattedStrings)if(H.nodeName==="#text"){H.textContent!=n&&(H.textContent=n);T++;H=H.nextSibling;continue}else break;if(_.y(x,Xo))break;else if(!this.noEndpoints&&x.navigationEndpoint){if(H.nodeName!=="A")break;this.setDataOnAnchor_(H,
x.navigationEndpoint)}else if(H.nodeName!=="SPAN")break;this.setNodeStyle_(x,H);this.setUpVisibilityLogging_(x,H);H.textContent!=n&&(H.textContent=n);T++;H=H.nextSibling}if(H)for(x=I.lastChild,H=T?H.previousSibling:null;x&&x!=H;){try{I.removeChild(x)}catch(w){break}x=I.lastChild}T!==l&&this.addTextNodes_(V,T)};
_.B.addTextNodes_=function(V,l){for(var I=document.createDocumentFragment(),H=V.length;l<H;l++){var T=V[l],x=_.z("remove_cr_char")&&T.text?T.text.replace("\r",""):T.text;if(this.isSimpleString_(T)&&!this.useMixedDirectionFormattedStrings)I.appendChild(document.createTextNode(x));else{var n=_.y(T,Xo);if(n){if(n.image){var w=document.createElement("img");n.isCustomEmoji||w.classList.add("small-emoji");w.classList.add("emoji");n.isCustomEmoji&&(w.dataset.emojiId=n.emojiId);w.src=_.sI(n.image.thumbnails,
this.emojiSize);(T=this.get("image.accessibility.accessibilityData.label",n))?w.alt=T:n.shortcuts&&n.shortcuts.length>0?w.alt=n.shortcuts[0]:n.emojiId&&(w.alt=n.emojiId);I.appendChild(w);this.hasEmoji=!0}}else!this.noEndpoints&&T.navigationEndpoint?(w=document.createElement("a"),w.classList.add("yt-simple-endpoint"),w.setAttribute("spellcheck","false"),this.setDataOnAnchor_(w,T.navigationEndpoint)):w=document.createElement("span"),this.setNodeStyle_(T,w),this.setUpVisibilityLogging_(T,w),w.appendChild(document.createTextNode(x)),
I.appendChild(w)}}this.getRoot().appendChild(I)};
_.B.isSimpleString_=function(V){return(this.noEndpoints||!V.navigationEndpoint)&&!_.y(V,Xo)&&(this.noStyles||!(V.bold||V.deemphasize||V.italics||V.strikethrough||V.errorUnderline||V.bracket||V.textColor))&&!V.loggingDirectives};
_.B.getRawText=function(){return _.A5(this.text)};
_.B.getFirstRunText=function(){var V;if(((V=this.text)==null?0:V.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.B.setFirstRunText=function(V){var l;((l=this.text)==null?0:l.runs)&&this.text.runs[0]&&(this.text.runs[0].text=V,this.textChanged_(this.text))};
_.B.setDataOnAnchor_=function(V,l){var I=this;!_.z("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(l)||this.isSignalServiceEndpoint_(l)?(V.onclick=this.serviceEndpointHandler_(l),bY(V,"#")):tMJ({text:this.text,command:l},function(){Q63(V,l,I.target)})};
_.B.isServiceEndpoint_=function(V){var l;return!((l=_.y(V==null?void 0:V.commandMetadata,_.mK))==null||!l.sendPost)};
_.B.isSignalServiceEndpoint_=function(V){return!!_.y(V,_.j1)};
_.B.serviceEndpointHandler_=function(V){var l=this;return function(I){_.$B(l.hostElement,[V]);I.preventDefault()}};
_.B.overrideAriaLabelChanged_=function(){var V=this.getRoot();this.enableContentEditable&&V&&V.setAttribute("aria-label",this.overrideAriaLabel)};
_.B.enableContentEditableChanged_=function(){var V=this,l=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),l=_.h(this.hostElement,l),!l.lastChild||l.lastChild instanceof HTMLElement&&l.lastChild.id!=="contenteditable-root"){var I=document.createElement("div");I.id="contenteditable-root";I.setAttribute("contenteditable","true");I.setAttribute("dir","auto");I.onfocus=function(){V.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
l.appendChild(I);this.overrideAriaLabel&&I.setAttribute("aria-label",this.overrideAriaLabel)}}else I=_.aQ(this.hostElement).firstChild,I instanceof HTMLElement&&I.id==="contenteditable-root"&&_.h(this.hostElement,l).removeChild(I)};
_.B.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.B.getNodesForVisibilityLogging_=function(){return _.dl(this.getRoot().childNodes,function(V){var l;return!((l=V.data)==null||!l.trackingParams)})};
_.B.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.B.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var V=this.ytRendererBehavior.getVisibilityLogger();V&&this.getNodesForVisibilityLogging_().forEach(function(l){V.reportShown(l)})}};
_.B.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var V=this.ytRendererBehavior.getVisibilityLogger();V&&this.getNodesForVisibilityLogging_().forEach(function(l){V.reportHidden(l)})}};
_.vI.Object.defineProperties(mtZ.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.z("enable_mixed_direction_formatted_strings")}}});
var nR=mtZ;nR.prototype.enableContentEditableChanged_=nR.prototype.enableContentEditableChanged_;nR.prototype.overrideAriaLabelChanged_=nR.prototype.overrideAriaLabelChanged_;nR.prototype.ellipsisTruncateChanged_=nR.prototype.ellipsisTruncateChanged_;nR.prototype.textChanged=nR.prototype.textChanged;_.O([_.R(aHo.YtPlaintextBehavior),_.a("design:type",Object)],nR.prototype,"ytPlaintextBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],nR.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],nR.prototype,"text",void 0);_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"noEndpoints",void 0);_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"noStyles",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],nR.prototype,"isDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],nR.prototype,"splitLines",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],nR.prototype,"forceDefaultStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],nR.prototype,"ellipsisTruncate",void 0);_.O([_.q(),_.a("design:type",Object)],nR.prototype,"ignoreShadyDom",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.a("design:type",Boolean)],nR.prototype,"ellipsisTruncateStyling",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.a("design:type",String)],nR.prototype,"ariaLabel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],nR.prototype,"isEmpty",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.a("design:type",Boolean)],nR.prototype,"hasLinkOnly_",void 0);_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"hasEmoji",void 0);_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"disableAttributedString",void 0);_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"isOverlay",void 0);_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"linkInheritColor",void 0);
_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"noPreWrap",void 0);_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"userInput",void 0);_.O([_.q({value:16}),_.a("design:type",Number)],nR.prototype,"emojiSize",void 0);_.O([_.q(),_.a("design:type",String)],nR.prototype,"target",void 0);_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"enableContentEditable",void 0);_.O([_.q(),_.a("design:type",String)],nR.prototype,"overrideAriaLabel",void 0);
_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"respectHtmlDir",void 0);_.O([_.q(),_.a("design:type",Boolean)],nR.prototype,"respectLangDir",void 0);_.O([_.Q("plaintextOnly"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],nR.prototype,"useMixedDirectionFormattedStrings",null);_.O([_.q({computed:"computeUseAttributedString(text)"}),_.a("design:type",Boolean)],nR.prototype,"useYtAttributedString",void 0);
_.O([_.b("text"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nR.prototype,"textChanged",null);_.O([_.b("ellipsisTruncate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nR.prototype,"ellipsisTruncateChanged_",null);_.O([_.b("overrideAriaLabel"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nR.prototype,"overrideAriaLabelChanged_",null);
_.O([_.b("enableContentEditable"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nR.prototype,"enableContentEditableChanged_",null);nR=_.O([_.Lm({is:"yt-formatted-string",disableElementRegistration:!0})],nR);
_.u(nR,"yt-formatted-string",function(){if(gta===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;fHE===void 0&&(fHE=document.createElement("template"));var H=fHE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);gta=V}V=gta;return V});var iIZ;var VxE;var lcb;var IcB;var Hxb=function(){var V=_.M.apply(this,arguments)||this;V.focused=!1;V.disabled=!1;V.isOverlay=!1;return V};
_.t(Hxb,_.M);Hxb.prototype.triggerDown=function(){if(!this.disabled){_.fY(this.hostElement,"down",!0);var V;(V=this.JSC$11676_currentAnimation)==null||V.cancel()}};
Hxb.prototype.triggerUp=function(){if(!this.disabled){_.fY(this.hostElement,"down",!1);var V=this.JSC$11676_fillElement;var l=this.JSC$11676_strokeElement;typeof GroupEffect==="function"?(V=new GroupEffect([fuT(V),gqy(l)]),V=new Animation(V,document.timeline)):V=new mh(V,l);this.JSC$11676_currentAnimation=V;var I;(I=this.JSC$11676_currentAnimation)==null||I.play()}};
var $4=Hxb;_.O([_.Ij(".stroke"),_.a("design:type",HTMLElement)],$4.prototype,"JSC$11676_strokeElement",void 0);_.O([_.Ij(".fill"),_.a("design:type",HTMLElement)],$4.prototype,"JSC$11676_fillElement",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$4.prototype,"focused",void 0);_.O([_.q(),_.a("design:type",Object)],$4.prototype,"disabled",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$4.prototype,"isOverlay",void 0);
$4=_.O([_.Lm({is:"yt-interaction",disableElementRegistration:!0})],$4);
_.u($4,"yt-interaction",function(){if(IcB===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;lcb===void 0&&(lcb=document.createElement("template"));var H=lcb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);IcB=V}V=IcB;return V},{mode:2});var TyN=function(){return _.M.apply(this,arguments)||this};
_.t(TyN,_.M);_.B=TyN.prototype;_.B.ready=function(){var V=this,l=_.h(this.hostElement).querySelector("#button");l.addEventListener("focus",function(){Y6J||(Y6J=new j5N);V.keyboardFocused=Y6J.isKeyBoardInUse()});
l.addEventListener("blur",function(){V.keyboardFocused=!1;V.rippleUp_()})};
_.B.computeTabIndex_=function(V){return V?-1:0};
_.B.computeButtonAriaPressed_=function(V){if(this.toggleable)return V?"true":"false"};
_.B.rippleDown_=function(){_.h(this.hostElement).querySelector("#interaction").triggerDown()};
_.B.rippleUp_=function(){_.h(this.hostElement).querySelector("#interaction").triggerUp()};
_.B.onPressedChanged_=function(){var V=_.aQ(_.h(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.aQ(_.h(this.hostElement).querySelector("#button")).children[0];V&&(V.active=this.pressed)};
var de=TyN;de.prototype.onPressedChanged_=de.prototype.onPressedChanged_;de.prototype.rippleUp_=de.prototype.rippleUp_;de.prototype.rippleDown_=de.prototype.rippleDown_;_.O([_.q(),_.a("design:type",String)],de.prototype,"label",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],de.prototype,"disabled",void 0);_.O([_.q(),_.a("design:type",Boolean)],de.prototype,"pressed",void 0);_.O([_.q(),_.a("design:type",Object)],de.prototype,"toggleable",void 0);
_.O([_.q(),_.a("design:type",Boolean)],de.prototype,"untabbable",void 0);_.O([_.q(),_.a("design:type",Boolean)],de.prototype,"keyboardFocused",void 0);_.O([_.W("down"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],de.prototype,"rippleDown_",null);_.O([_.W("up"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],de.prototype,"rippleUp_",null);
_.O([_.b("pressed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],de.prototype,"onPressedChanged_",null);de=_.O([_.Lm({is:"yt-icon-button",disableElementRegistration:!0})],de);
_.u(de,"yt-icon-button",function(){if(VxE===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;iIZ===void 0&&(iIZ=document.createElement("template"));var H=iIZ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);VxE=V}V=VxE;return V},{mode:2});var ByB=_.fl(["aria-"]),we={};we.YtRenderButtonBehavior=[_.m.YtRendererBehavior,_.Uf.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!!_.F().resolve(_.Cs(_.eM))&&_.z("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 V=this.computeHref_(this.endpoint,!0);V?bY(this.elements_.endpoint,V):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){V=this.buttonClass.split(" ");V=_.U(V);for(var l=V.next();!l.done;l=V.next())l=l.value,_.fY(this.hostElement,l,!0),this.elements_.button&&_.fY(this.elements_.button,l,!0),this.elements_.text&&_.fY(this.elements_.text,l,!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&&(V=null,this.buttonAccessibility&&(V=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=V:V?_.VJ([_.Ig(ByB)],this.elements_.button,"aria-label",V):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var V=_.F().resolve(_.Cs(_.eM));V&&(this.keyboardFocused=V.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.u9("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,_.Xb(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Xb(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(V,l){if(l)for(V=l.split(" "),V=_.U(V),l=V.next();!l.done;l=V.next())l=l.value,_.fY(this.hostElement,l,!1),this.elements_.button&&_.fY(this.elements_.button,l,!1),this.elements_.text&&_.fY(this.elements_.text,l,!1)},
buttonIconChanged_:function(V){this.elements_.icon?V?(this.elements_.icon.icon=V,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Xb(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.gP(this.hostElement,"is-paper-button-with-icon",!1)):V&&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"&&_.Xb(this.elements_.button).appendChild(this.elements_.icon):_.Xb(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.gP(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(V){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,V){var l=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(V){case "yt_icon_button_with_label":l=!0;_.fY(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();V=_.Xb(this.elements_.button).firstElementChild;
this.elements_.icon=V;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Xb(this.elements_.endpoint).appendChild(this.elements_.button);_.Xb(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.u9("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;_.Xb(this.elements_.button).appendChild(this.elements_.text);_.Xb(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":l=!0,this.elements_.button=this.getYtIconButton_(),V=_.Xb(this.elements_.button).firstElementChild,this.elements_.icon=V,this.setIconActive_(this.elements_.icon),
_.Xb(this.elements_.endpoint).appendChild(this.elements_.button)}_.gP(this.hostElement,"is-icon-button",l);_.gP(this.hostElement,"is-paper-button",!l);_.gP(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 I;_.h((I=this.container.hostElement)!=null?I:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Xb(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(V){if(V!=void 0||this.disabled)this.disabled=V,this.elements_.button&&(this.elements_.button.disabled=V)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(V){_.z("kevlar_system_icons")&&V&&this.data&&(this.data.isSelected!==void 0?V.active=this.data.isSelected:this.data.isToggled!==void 0&&(V.active=this.data.isToggled))},
observeBasicPalette_:function(V){_.Xp(this.hostElement,V)},
disabledChanged_:function(V){this.data&&this.set("data.isDisabled",V)},
onYtButtonTap_:function(V){if(this.disabled)V.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.$B(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(V=this.disableCommandHandlerOverride,!this.data||!this.data.command||V||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.z("handle_service_request_actions")||_.$B(this.hostElement,[this.serviceEndpoint]),
_.B$(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.z("handle_service_request_actions")?(V=[],this.serviceEndpoint&&V.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&V.push(this.data.command),V.length&&_.d6(this.hostElement,V,this.hostElement)):this.data&&this.data.command&&(V=this.data.command,V.accountUnlinkCommand||V.accountLinkCommand||V.insertAdCommand||V.insertHighlightMarkerCommand||
V.createLivestreamHighlightClipCommand||V.getVideoUploadFeedbackCommand||V.musicDeletePrivatelyOwnedEntityCommand||V.ypcCancelRecurrenceEndpoint||V.getMultiSelectCommandEndpoint?_.$B(this.hostElement,[V]):_.d6(this.hostElement,[V],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 V,l=_.h((V=this.container.hostElement)!=null?V:this.container);l.lastChild&&l.lastChild.tagName!="STYLE";)try{l.removeChild(l.lastChild)}catch(I){break}},
getYtIconButton_:function(){var V=this.reuseEnabled_()?_.u9("yt-icon-button"):document.createElement("yt-icon-button"),l=_.Xb(V).firstElementChild;if(l&&l.is!="yt-icon"){for(l=_.Xb(V);l.lastChild;)l.removeChild(l.lastChild);l=null}l||(l=this.getIcon_(),this.setIconActive_(l),_.Xb(V).appendChild(l));return V},
reuseEnabled_:function(){return _.z("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.u9("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.u9("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.xwJ={};
_.xwJ.YtButtonBehavior=[we.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var V=this.data;V&&(this._setEndpoint(this.computeEndpoint_(V)),this._setServiceEndpoint(this.computeServiceEndpoint_(V)),this._setCommand(this.computeCommand_(V)),this._setButtonIcon(this.computeButtonIcon_(V)),this._setButtonText(this.computeButtonText_(V,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(V)),this._setButtonTooltip(this.computeTooltip_(V)),this._setButtonClass(this.computeButtonClass_(V)),this._setIconPositionType(this.computeIconPositionType_(V)),this.updateRenderedElements())},
setPressedState:function(V){var l;if((l=this.elements_)==null?0:l.button)this.elements_.button.pressed=!!V},
computeIconPositionType_:function(V){return V&&V.iconPosition||null},
computeEndpoint_:function(V){var l=V&&V.navigationEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.url"),H=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return l?l:V&&V.command&&V.command.modalEndpoint?V.command:I&&!H&&V.command?V.command:null},
computeServiceEndpoint_:function(V){var l=V&&V.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return l?l:I&&V.command?V.command:null},
computeCommand_:function(V){return V&&V.command||null},
computeButtonIcon_:function(V){return V&&V.icon&&V.icon.iconType?_.mj(V.icon.iconType):null},
computeButtonText_:function(V,l){return!l&&V&&V.text||null},
computeAccessibility_:function(V){return this.get("accessibilityData.accessibilityData",V)||V&&V.accessibility||(V&&V.text?{label:this.getSimpleString(V.text)}:null)},
computeTooltip_:function(V){return V?V.isDisabled&&V.disabledTooltip||V.tooltip||null:null},
computeButtonClass_:function(V){var l=V&&V.style?V.style.toLowerCase().replace(/_/g,"-")+" ":"";l+=V&&V.size?V.size.toLowerCase().replace(/_/g,"-")+" ":"";V.colorData&&V.colorData.basicColorPaletteData&&V.colorData.basicColorPaletteData.borderColor&&(l+="palette-with-border");return l.trim()}}];var zS={};var UwE;var nRZ;var $wa,dwZ=function(){return $wa!==void 0?$wa:$wa=document.createElement("template")};
document.head.appendChild(dwZ().content);var wCB;var Nyv,Koo=function(){return Nyv!==void 0?Nyv:Nyv=document.createElement("template")};
document.head.appendChild(Koo().content);var jrJ;var YFo,LoW=function(){return YFo!==void 0?YFo:YFo=document.createElement("template")};
document.head.appendChild(LoW().content);var ekZ;var kiN=document.head,FoZ=kiN.appendChild,XCW;if(ekZ===void 0){var zko=document.createElement("template");_.G(zko,"\x3c!--css-build:shady--\x3e");zko.content.insertBefore(LoW().content.cloneNode(!0),zko.content.firstChild);ekZ=zko}XCW=ekZ;FoZ.call(kiN,XCW.content);var y8N=document.head,txa=y8N.appendChild,r8Z;if(jrJ===void 0){var Gi3=document.createElement("template");_.G(Gi3,"\x3c!--css-build:shady--\x3e");Gi3.content.insertBefore(Koo().content.cloneNode(!0),Gi3.content.firstChild);jrJ=Gi3}r8Z=jrJ;txa.call(y8N,r8Z.content);var ERW=document.head,J8a=ERW.appendChild,oRZ;if(wCB===void 0){var hkJ=document.createElement("template");_.G(hkJ,"\x3c!--css-build:shady--\x3e");hkJ.content.insertBefore(dwZ().content.cloneNode(!0),hkJ.content.firstChild);wCB=hkJ}oRZ=wCB;J8a.call(ERW,oRZ.content);_.yN("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");var Pha=_.z("web_button_rework")&&_.PO("BUTTON_REWORK")||_.z("web_button_rework_with_live"),NX=function(){return _.M.apply(this,arguments)||this};
_.t(NX,_.M);NX.prototype.created=function(){this.openPopupConfig=_.h6("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
NX.prototype.onYtNavigate_=function(V){var l=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(V.detail.endpoint);l&&(this.ytOpenPopupBehavior.openPopup(l),V.stopPropagation(),V.preventDefault())};
_.vI.Object.defineProperties(NX,{template:{configurable:!0,enumerable:!0,get:function(){if(nRZ===void 0){var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
var l=V.content,I=l.insertBefore;UwE===void 0&&(UwE=document.createElement("template"));var H=UwE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);nRZ=V}V=nRZ;return V}}});
_.KR=NX;_.KR.prototype.onYtNavigate_=_.KR.prototype.onYtNavigate_;_.O([_.R(_.x4.YtOpenPopupBehavior),_.a("design:type",Object)],_.KR.prototype,"ytOpenPopupBehavior",void 0);_.O([_.R(_.xwJ.YtButtonBehavior),_.a("design:type",Object)],_.KR.prototype,"ytButtonBehavior",void 0);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],_.KR.prototype,"onYtNavigate_",null);
_.KR=_.O([_.Lm({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:Pha})],_.KR);var Dwo;var Zxa=_.z("web_button_rework")&&_.PO("BUTTON_REWORK")||_.z("web_button_rework_with_live"),jf=function(){var V=_.M.apply(this,arguments)||this;V.isPressed=!1;V.forceIconButton=!1;V.forceIconOnly=!1;V.forceModernIconButton=!1;V.skipCommandHandling=!1;V.alignByText=!1;V.fitToVisibleBounds=!0;V.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};V.onTap=function(l){_.B$(V.hostElement,"yt-service-request-sent-button-renderer",l)};
return V};
_.t(jf,_.M);_.B=jf.prototype;_.B.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.B.onClick=function(V){var l,I=this.disabled||((l=this.data)==null?void 0:l.isDisabled);l=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");I&&l&&V.stopPropagation()};
_.B.computeIcon=function(){var V,l,I=(V=this.data)==null?void 0:(l=V.icon)==null?void 0:l.iconType;if(I)return _.mj(I)};
_.B.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.B.handleUpdateButtonAction=function(V){V=_.y(V,LRJ);var l=_.y(V==null?void 0:V.updatedButton,_.RG);if(this.data&&V&&l){var I=this.data;I.targetId&&V.targetId&&I.targetId===V.targetId&&(this.data=l)}};
_.vI.Object.defineProperties(jf.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var V=this;if(this.data){var l=le3({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.B$(V.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.B$(V.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});l.alignByText=this.alignByText;return l}}}});
_.vI.Object.defineProperties(jf,{template:{configurable:!0,enumerable:!0,get:function(){if(Dwo===void 0){var V=document.createElement("template");_.G(V,'\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>');Dwo=V}V=Dwo;return V}}});
var Y4=jf;Y4.prototype.onClick=Y4.prototype.onClick;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Y4.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Y4.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Y4.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],Y4.prototype,"isPressed",void 0);_.O([_.q(),_.a("design:type",Object)],Y4.prototype,"forceIconButton",void 0);_.O([_.q(),_.a("design:type",Object)],Y4.prototype,"forceIconOnly",void 0);_.O([_.q(),_.a("design:type",Object)],Y4.prototype,"forceModernIconButton",void 0);_.O([_.q(),_.a("design:type",Object)],Y4.prototype,"skipCommandHandling",void 0);_.O([_.q(),_.a("design:type",Object)],Y4.prototype,"alignByText",void 0);
_.O([_.q(),_.a("design:type",Object)],Y4.prototype,"buttonTooltipPosition",void 0);_.O([_.q(),_.a("design:type",Object)],Y4.prototype,"fitToVisibleBounds",void 0);_.O([_.q({computed:"computeTooltip(data)"}),_.a("design:type",Object)],Y4.prototype,"tooltip",void 0);_.O([_.q(),_.a("design:type",Object)],Y4.prototype,"overrides",void 0);_.O([_.q(),_.a("design:type",Boolean)],Y4.prototype,"disabled",void 0);
_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Y4.prototype,"onClick",null);_.O([_.Q("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y4.prototype,"computedButtonShape",null);
Y4=_.O([_.Lm({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Zxa,cssBuildOptOut:!0}),_.Lm({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Zxa,cssBuildOptOut:!0})],Y4);var SFv;var Rkw;var Qr0=function(){var V=_.M.apply(this,arguments)||this;V.empty_=!0;V.loadTime=Infinity;V.pendingPaint=!1;V.hasChange_=!1;V.oldThumbnail_=null;V.oldDelayedSrc_="";V.objectURL_=null;return V};
_.t(Qr0,_.M);_.B=Qr0.prototype;_.B.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.B.ready=function(){var V=this.shouldShowPlaceholder_();_.fY(this.hostElement,"no-transition",!0);V&&this.hostElement.classList.add("with-placeholder")};
_.B.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.B.isThumbPreloaded_=function(V){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",V)};
_.B.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||c8W};
_.B.computeThumbnailSrc_=function(V){return V&&V.thumbnails?_.sI(V.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.B.computeAlt_=function(){var V=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&V||""};
_.B.thumbnailChanged_=function(){var V=_.U([this.thumbnail,this.oldThumbnail_]),l=V.next().value;V=V.next().value;this.oldThumbnail_=l;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(V=this.computeThumbnailSrc_(V),this.computeThumbnailSrc_(l)===V))return;_.z("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(l)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):l&&_.PO("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Al(this,this.onReload_):_.Al(this,this.onShow_):this.resetImage_();l&&(this.hostElement.style.opacity=""+l.opacity)}};
_.B.delayedSrcChanged_=function(){var V=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===V||this.resetImage_()};
_.B.setSrc_=function(V){V?(_.h(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.h(this.hostElement).querySelector("#img").src=V):(_.h(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.B.resetImage_=function(){HqJ(this.hostElement);this.empty_=!0;this.setSrc_(c8W);this.ytRendererBehavior.invalidate(!1)};
_.B.observePlaceholderColor_=function(){var V=this.thumbnail&&this.thumbnail.placeholderColor;V?this.hostElement.style.backgroundColor=_.tv(V):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.B.onLoad_=function(){_.h(this.hostElement).querySelector("#img").src&&_.h(this.hostElement).querySelector("#img").src!==c8W&&(Iu1(this.hostElement),this.notifyOnLoaded&&_.B$(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.B.onError_=function(){var V=this;if(_.z("web_use_cache_for_image_fallback"))dL1(_.h(this.hostElement).querySelector("#img").src).then(function(l){V.objectURL_=RO(l).toString();V.setSrc_(V.objectURL_)}).catch(function(){_.z("kevlar_woffle_fallback_image")&&V.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.B.onPrescanVisible=function(){this.onShow_()};
_.B.onVisible=function(){if(_.z("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.B.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var V=this.computeSrc_();V!==_.h(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(V))}};
_.B.onReload_=function(){this.empty_=!1;var V=this.computeSrc_();V!==_.h(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(V))};
_.B.shouldShowPlaceholder_=function(){return _.z("kevlar_thumbnail_bg")};
var LR=Qr0;LR.prototype.observePlaceholderColor_=LR.prototype.observePlaceholderColor_;LR.prototype.delayedSrcChanged_=LR.prototype.delayedSrcChanged_;LR.prototype.thumbnailChanged_=LR.prototype.thumbnailChanged_;_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],LR.prototype,"alt",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],LR.prototype,"ariaHidden",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],LR.prototype,"ariaLabel",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],LR.prototype,"hidden",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],LR.prototype,"id",void 0);_.O([_.R(_.RU.YtVisibilityBehavior),_.a("design:type",Object)],LR.prototype,"ytVisibilityBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",String)],LR.prototype,"delayedSrc",void 0);
_.O([_.q(),_.a("design:type",Object)],LR.prototype,"thumbnail",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],LR.prototype,"loaded",void 0);_.O([_.q(),_.a("design:type",Boolean)],LR.prototype,"notifyOnLoaded",void 0);_.O([_.q(),_.a("design:type",Number)],LR.prototype,"height",void 0);_.O([_.q(),_.a("design:type",Number)],LR.prototype,"width",void 0);_.O([_.q({value:function(){return"width"}}),
_.a("design:type",String)],LR.prototype,"dimension",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],LR.prototype,"fit",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],LR.prototype,"fitHeight",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],LR.prototype,"fitWidth",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],LR.prototype,"objectFit",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],LR.prototype,"objectPosition",void 0);_.O([_.q(),_.a("design:type",String)],LR.prototype,"preferredThumbnail",void 0);_.O([_.q({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.a("design:type",String)],LR.prototype,"alt_",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],LR.prototype,"sharedTooltipText",void 0);
_.O([_.q(),_.a("design:type",Boolean)],LR.prototype,"ftlEligible",void 0);_.O([_.q({value:void 0}),_.a("design:type",String)],LR.prototype,"observeHiddenOption",void 0);_.O([_.q({value:"observe_once"}),_.a("design:type",String)],LR.prototype,"observePrescanOption",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],LR.prototype,"roundedContainer",void 0);
_.O([_.xs("thumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LR.prototype,"thumbnailChanged_",null);_.O([_.xs("delayedSrc"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LR.prototype,"delayedSrcChanged_",null);_.O([_.b("thumbnail.placeholderColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LR.prototype,"observePlaceholderColor_",null);
LR=_.O([_.Lm({is:"yt-img-shadow",disableElementRegistration:!0})],LR);var c8W=_.PO("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.O7()(LR,"yt-img-shadow",function(){if(Rkw===void 0){var V=document.createElement("template");_.G(V,'\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">');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;SFv===void 0&&(SFv=document.createElement("template"));var H=SFv;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Rkw=V}V=Rkw;return V},{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 CIy;_.ef=new _.Vr("SCREEN_MANAGER_TOKEN");CIy=new _.Vr("LOG_INITIAL_SCREEN_TOKEN");_.o6=_.W1(function(V){function l(wW){return _.y(wW,_.Gb)}
function I(){var wW=H().isTogglingDisabled||X()?D():!D();Z(wW);p(!1);if(!H().isTogglingDisabled){var o1;(o1=n)==null||o1(!!wW)}var h1;((h1=x)==null?0:h1())||_.dF(_.F().resolve(_.ef),H().trackingParams);var ec;if(!wW||!l(H().defaultButtonViewModel)||(ec=x)!=null&&ec()){var Zg;!l(H().toggledButtonViewModel)||((Zg=x)==null?0:Zg())||_.dF(_.F().resolve(_.ef),l(H().toggledButtonViewModel).trackingParams)}else _.dF(_.F().resolve(_.ef),l(H().defaultButtonViewModel).trackingParams)}
var H=V.data,T=V.buttonShapeOverrides,x=V.disableExplicitClickLogging,n=V.onToggle,w=V.style,N=V.useOutlinedIcon,L=V.className,e=function(){var wW,o1;return D()?(wW=V.animatedTextPropsToggled)==null?void 0:wW.call(V):(o1=V.animatedTextPropsDefault)==null?void 0:o1.call(V)},k=_.Ny(function(){return e()?Object.assign({},e(),{shouldAnimate:S()}):void 0},void 0,"ZKEa0b"),X=function(){var wW;
return((wW=By())==null?void 0:wW.isToggled)!==void 0},r=_.U(_.Ux(function(){var wW,o1,h1;
return X()?(wW=By())==null?void 0:wW.isToggled:(h1=T==null?void 0:(o1=T())==null?void 0:o1.toggled)!=null?h1:H().isToggled})),E=r.next().value;
r=r.next().value;var D=E,Z=r;r=_.U(_.Ux(function(){var wW,o1;return(wW=V.animatedTextPropsToggled)==null?void 0:(o1=wW.call(V))==null?void 0:o1.shouldAnimate}));
E=r.next().value;r=r.next().value;var S=E,p=r;E=_.U(_.xi(!1,void 0,"S11hid"));var Vf=E.next().value,C=E.next().value,By=_.rq(function(wW){var o1;a:{var h1=H().entityKey,ec=H().toggledStateEntitySelectorType;if(ec&&h1)switch(ec){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var Zg;wW=(Zg=_.nW(wW.entities,"sfvAudioItemCurrentlyPlayingEntity",h1))!=null?Zg:void 0;Zg=(o1=wW==null?void 0:wW.sfvAudioItemPlaybackState)!=null?o1:void 0;if(Zg==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){o1={isToggled:!0};
break a}if(Zg){o1={isToggled:!1};break a}break;default:_.hF(new _.Yd("Error: entitySelectorType defined but not matched in selector.",wW,ec))}o1=void 0}return o1});
E=_.Bu(function(){var wW=_.F().resolve(_.Cs(_.eM));wW&&C(wW.isKeyBoardInUse());return!1});
r=_.Bu(function(){C(!1);return!1});
var lN=function(){return Object.assign({},T==null?void 0:T(),{onToggle:I,toggleable:!0,toggled:D(),focused:Vf()})};
return _.Y("toggle-button-view-model",{"on:focusin":E,"on:focusout":r,class:L},_.Y(_.NS,{cond:function(){return D()?l(H().toggledButtonViewModel):l(H().defaultButtonViewModel)},
then:function(wW){return _.Y(_.Db,{data:wW,className:L,style:w,useOutlinedIcon:N,buttonOverrides:lN,animatedTextProps:k})}}))},"v");
_.o6.idomCompat={callbacks:{onToggle:!0}};_.MR(_.W1(function(V){return _.Y("yt-toggle-button-view-model",{class:function(){var l;return(l=V.scopingClassName)==null?void 0:l.call(V)}},_.Y(_.o6,{data:function(){var l;
return(l=V.data)==null?void 0:l.call(V)},
buttonShapeOverrides:function(){var l;return(l=V.overrides)==null?void 0:l.call(V)},
animatedTextPropsDefault:function(){var l;return(l=V.animatedTextPropsDefault)==null?void 0:l.call(V)},
animatedTextPropsToggled:function(){var l;return(l=V.animatedTextPropsToggled)==null?void 0:l.call(V)},
disableExplicitClickLogging:function(){var l;return(l=V.disableExplicitClickLogging)==null?void 0:l.call(V)},
onToggle:function(l){var I;return(I=V.onToggle)==null?void 0:I.call(V,l)},
style:function(){var l;return(l=V.style)==null?void 0:l.call(V)},
useOutlinedIcon:function(){var l;return(l=V.useOutlinedIcon)==null?void 0:l.call(V)},
className:function(){var l;return(l=V.className)==null?void 0:l.call(V)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.b9,
buttonShapeOverrides:_.b9,overrides:_.b9,animatedTextPropsDefault:_.b9,animatedTextPropsToggled:_.b9,disableExplicitClickLogging:_.b9,onToggle:_.qR,style:_.b9,useOutlinedIcon:_.b9,className:_.b9,scopingClassName:_.b9}});var Wo0=function(){return _.M.apply(this,arguments)||this};
_.t(Wo0,_.M);Wo0.prototype.onTap=function(V){V.stopPropagation();V=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.h9("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:V})):this.ytLiveChatReduxBehavior.dispatch(_.K6("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:V}))};
_.vI.Object.defineProperties(Wo0.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.engagementState)==null?void 0:V.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V=_.y(this.data.toggleButton,_.EB),l;if(Number(((l=this.likeCountState)==null?void 0:l.likeCountIfIndifferentNumber)||"0")===0){var I;l=((I=this.data.likeCountPlaceholder)==null?void 0:I.content)||""}else{var H,T,x;l=((H=this.likeCountState)==null?void 0:(T=H.likeCountIfIndifferent)==null?void 0:T.content)||((x=this.data.likeCountPlaceholder)==null?void 0:x.content)||""}var n,w;I=((n=this.likeCountState)==null?void 0:(w=
n.likeCountIfLiked)==null?void 0:w.content)||"1";n=_.y(V.toggledButtonViewModel,_.Gb);return Object.assign({},V,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.y(V.defaultButtonViewModel,_.Gb),{title:l})},toggledButtonViewModel:{buttonViewModel:Object.assign({},n,{title:I})}})}}}});
var k4=Wo0;k4.prototype.onTap=k4.prototype.onTap;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],k4.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.hM),_.a("design:type",Object)],k4.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],k4.prototype,"data",void 0);
_.O([_.q({selectorArgs:["data.likeCountEntityKey"],selector:Iet}),_.a("design:type",Object)],k4.prototype,"likeCountState",void 0);_.O([_.q({selectorArgs:["data.engagementStateKey"],selector:Pvt}),_.a("design:type",Object)],k4.prototype,"engagementState",void 0);_.O([_.Q("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],k4.prototype,"isLiked",null);
_.O([_.Q("data","likeCountState","isLiked"),_.a("design:type",Object),_.a("design:paramtypes",[])],k4.prototype,"toggleButton",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],k4.prototype,"onTap",null);k4=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],k4);
_.u(k4,"yt-live-chat-like-button-view-model",function(){if(CjJ===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;OIa===void 0&&(OIa=document.createElement("template"));var H=OIa;I.call(l,H.content.cloneNode(!0),V.content.firstChild);CjJ=V}V=CjJ;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var bxW;var qFN;var MxW=function(){return _.M.apply(this,arguments)||this};
_.t(MxW,_.M);var FI=MxW;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],FI.prototype,"data",void 0);FI=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],FI);
_.u(FI,"yt-live-chat-paid-message-footer-renderer",function(){if(qFN===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;bxW===void 0&&(bxW=document.createElement("template"));var H=bxW;I.call(l,H.content.cloneNode(!0),V.content.firstChild);qFN=V}V=qFN;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var srJ;var pCE;var A8o;var ug3,vRN=function(){if(ug3!==void 0)return ug3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;A8o===void 0&&(A8o=document.createElement("template"));var H=A8o;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return ug3=V};var XI=function(){return _.M.apply(this,arguments)||this};
_.t(XI,_.M);XI.prototype.onTap=function(V){V.stopPropagation()};
_.vI.Object.defineProperties(XI.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V=_.y(this.data.replyButton,_.Gb),l,I,H,T,x,n,w,N=Number(((l=this.replyCountState)==null?void 0:l.replyCountNumber)||"0")===0?(I=this.data)==null?void 0:(H=I.replyCountPlaceholder)==null?void 0:H.content:((T=this.replyCountState)==null?void 0:(x=T.replyCount)==null?void 0:x.content)||((n=this.data)==null?void 0:(w=n.replyCountPlaceholder)==null?void 0:w.content)||"",L;return Object.assign({},
V,{title:N,accessibilityText:(L=this.replyCountState)==null?void 0:L.replyButtonAccessibilityText})}}}});
_.vI.Object.defineProperties(XI,{template:{configurable:!0,enumerable:!0,get:function(){return vRN()}}});
var zF=XI;zF.prototype.onTap=zF.prototype.onTap;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],zF.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.hM),_.a("design:type",Object)],zF.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zF.prototype,"data",void 0);
_.O([_.q({selectorArgs:["data.replyCountEntityKey"],selector:function(V,l){return _.nW(V.entities,"replyCountEntity",l)}}),
_.a("design:type",Object)],zF.prototype,"replyCountState",void 0);_.O([_.Q("data","replyCountState"),_.a("design:type",Object),_.a("design:paramtypes",[])],zF.prototype,"buttonViewModel",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],zF.prototype,"onTap",null);zF=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],zF);
_.u(zF,"yt-live-chat-reply-button-view-model",function(){return vRN()},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var OxE;var Chv;var y2=function(){var V=_.M.apply(this,arguments)||this;V.ariaLabel="";return V};
_.t(y2,_.M);
y2.prototype.dataChanged=function(){for(var V=(0,_.mL)(_.h(this.hostElement).querySelector("#image"));V.firstChild;)V.removeChild(V.firstChild);if(this.data)if(this.data.icon){var l=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(l.polymerController.icon="yt-sys-icons:shield-filled",l.polymerController.defaultToFilled=!0):l.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();V.appendChild(l)}else if(this.data.customThumbnail){l=document.createElement("img");
var I=_.aZN(this.data.customThumbnail.thumbnails,16);I?(l.src=I,V.appendChild(l),l.setAttribute("alt",this.hostElement.ariaLabel||"")):_.hF(new _.Yd("Could not compute URL for thumbnail",this.data.customThumbnail))}};
y2.prototype.identity=function(V){return V};
y2.prototype.computeType=function(V){return aj(V||void 0)};
var tf=y2;tf.prototype.dataChanged=tf.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],tf.prototype,"data",void 0);_.O([_.q({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.a("design:type",Object)],tf.prototype,"ariaLabel",void 0);_.O([_.q({computed:"computeType(data)",reflectToAttribute:!0}),_.a("design:type",String)],tf.prototype,"type",void 0);
_.O([_.q({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.a("design:type",String)],tf.prototype,"sharedTooltipText",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("live_chat_enable_new_moderator_badge")}}),
_.a("design:type",Boolean)],tf.prototype,"enableNewModeratorBadge",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tf.prototype,"dataChanged",null);tf=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],tf);
_.u(tf,"yt-live-chat-author-badge-renderer",function(){if(Chv===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;OxE===void 0&&(OxE=document.createElement("template"));var H=OxE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Chv=V}V=Chv;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var aci;var fcZ;var gRE=function(){return _.M.apply(this,arguments)||this};
_.t(gRE,_.M);_.B=gRE.prototype;_.B.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"}}}}};
_.B.computeBadgesInsideChip=function(V){return V?V.filter(function(l){return aj(l.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.B.computeBadgesOutsideChip=function(V){return this.prependChatBadges||!V?[]:V.filter(function(l){l=aj(l.liveChatAuthorBadgeRenderer);return l!=="verified"&&l!=="owner"})};
_.B.computeBadgesBeforeChip=function(V){return this.prependChatBadges&&V?V.filter(function(l){l=aj(l.liveChatAuthorBadgeRenderer);return l!=="verified"&&l!=="owner"}):[]};
_.B.computeIsHighlighted=function(V,l){var I=!!BZJ(V,"owner"),H=!!BZJ(V,"verified");V=!!BZJ(V,"moderator");return(I||H&&!V)&&!l};
_.B.computeAuthorType=function(V){return TZf(V)};
_.B.computeAuthorClass=function(V,l){return l?(V?V+" ":"")+"single-line":V};
_.B.onSeedColorChanged=function(){_.z("live_chat_author_name_color_usernames")||_.z("live_chat_seed_color_usernames")||_.z("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):_.z("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
var re=gRE;re.prototype.onSeedColorChanged=re.prototype.onSeedColorChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],re.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],re.prototype,"authorName",void 0);_.O([_.q(),_.a("design:type",Array)],re.prototype,"authorBadges",void 0);
_.O([_.q({computed:"computeAuthorType(authorBadges)"}),_.a("design:type",String)],re.prototype,"authorType",void 0);_.O([_.q({computed:"computeAuthorClass(authorType, singleLine)"}),_.a("design:type",String)],re.prototype,"authorClass",void 0);_.O([_.q({computed:"computeBadgesInsideChip(authorBadges)"}),_.a("design:type",Array)],re.prototype,"badgesInsideChip",void 0);_.O([_.q({computed:"computeBadgesOutsideChip(authorBadges)"}),_.a("design:type",Array)],re.prototype,"badgesOutsideChip",void 0);
_.O([_.q({computed:"computeBadgesBeforeChip(authorBadges)"}),_.a("design:type",Array)],re.prototype,"badgesBeforeChip",void 0);_.O([_.q({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.a("design:type",Boolean)],re.prototype,"isHighlighted",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],re.prototype,"singleLine",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],re.prototype,"disableHighlighting",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],re.prototype,"dashboardMoneyFeed",void 0);_.O([_.q({value:_.z("live_chat_prepend_badges"),reflectToAttribute:!0}),_.a("design:type",Boolean)],re.prototype,"prependChatBadges",void 0);_.O([_.q(),_.a("design:type",String)],re.prototype,"authorNameColor",void 0);_.O([_.Ij("#author-name"),_.a("design:type",HTMLDivElement)],re.prototype,"username",void 0);
_.O([_.b("authorNameColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],re.prototype,"onSeedColorChanged",null);re=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],re);
_.u(re,"yt-live-chat-author-chip",function(){if(fcZ===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;aci===void 0&&(aci=document.createElement("template"));var H=aci;I.call(l,H.content.cloneNode(!0),V.content.firstChild);fcZ=V}V=fcZ;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var mwb;var ixb;var V4N=function(){var V=_.M.apply(this,arguments)||this;V.debounceCommand=_.ym(function(l){V.ytComponentBehavior.resolveCommand(l)},1500);
return V};
_.t(V4N,_.M);V4N.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var V=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",l,I,H=this.isHearted?(l=this.data)==null?void 0:l.unheartCommand:(I=this.data)==null?void 0:I.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.h9("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:V}));(V=_.to(H))&&this.debounceCommand(V)}};
_.vI.Object.defineProperties(V4N.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var V,l;if(!((V=this.data)==null?0:(l=V.creatorThumbnail)==null?0:l.sources))return{};V={thumbnails:[]};l={};l.url=this.data.creatorThumbnail.sources[0].url;V.thumbnails.push(l);return V}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.engagementState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.engagementState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.engagementState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((V=this.engagementState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((I=this.engagementState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
var GF=V4N;GF.prototype.onTap=GF.prototype.onTap;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],GF.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.hM),_.a("design:type",Object)],GF.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],GF.prototype,"data",void 0);
_.O([_.q({selectorArgs:["data.engagementStateKey"],selector:Pvt}),_.a("design:type",Object)],GF.prototype,"engagementState",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],GF.prototype,"thumbnailDetails",null);_.O([_.Q("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GF.prototype,"isHearted",null);_.O([_.Q("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GF.prototype,"isEditable",null);
_.O([_.Q("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GF.prototype,"showCreatorView",null);_.O([_.Q("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GF.prototype,"showButton",null);_.O([_.Q("data","isHearted"),_.a("design:type",String),_.a("design:paramtypes",[])],GF.prototype,"label",null);_.O([_.Q("data","isHearted"),_.a("design:type",Object),_.a("design:paramtypes",[])],GF.prototype,"heartHoverText",null);
_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],GF.prototype,"onTap",null);GF=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],GF);
_.u(GF,"yt-live-chat-creator-heart-view-model",function(){if(ixb===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;mwb===void 0&&(mwb=document.createElement("template"));var H=mwb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);ixb=V}V=ixb;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var Ef=function(V,l){this.serviceId=new P2Z(V,l)};
Ef.prototype.toString=function(){return this.serviceId.toString()};var lZB=function(){this.internalMap={}};
_.B=lZB.prototype;_.B.contains=function(V){return Object.prototype.hasOwnProperty.call(this.internalMap,V)};
_.B.get=function(V){if(this.contains(V))return this.internalMap[V]};
_.B.set=function(V,l){this.internalMap[V]=l};
_.B.getKeys=function(){return Object.keys(this.internalMap)};
_.B.remove=function(V){delete this.internalMap[V]};var Jf=function(){this.mappings=new lZB;this.errorCallbacks=new Set};
Jf.prototype.getModuleId=function(V){return V.serviceId.getModuleId()};
Jf.prototype.get=function(V){var l=this.mappings.get(V.toString());return IZE(this,l,V)};
Jf.prototype.getMultipleAsync=function(){var V=_.Q5.apply(0,arguments),l=this,I=V.map(function(N){return l.getModuleId(N)}),H=V.map(function(N){return l.mappings.get(N.toString())}).filter(function(N){return N});
if(H.length===V.length)return _.w6(H.map(function(N,L){return IZE(l,N,V[L])}));
var T=EX().loadMultiple(I);H=_.ER(I.map(function(N){return T[N]}));
var x=document.hidden,n=-1,w=_.g7("get_async_timeout_ms",-1);w>-1&&(n=setTimeout(function(){_.hF(new _.Yd("Module timeout.",I,x,document.hidden))},w));
return _.Jm(H.then(function(){return V.map(function(N){return IZE(l,l.mappings.get(N.toString()),N)})}).thenCatch(function(N){for(var L=_.U(l.errorCallbacks),e=L.next();!e.done;e=L.next())e=e.value,e(N);
throw N;}),function(){clearTimeout(n)})};
Jf.prototype.registerService=function(V,l){this.mappings.set(V.toString(),{type:"mapping",value:l});return V};
var IZE=function(V,l,I){switch(l.type){case "mapping":return l.value;case "factory":return l=l.value(),V.mappings.set(I.toString(),{type:"mapping",value:l}),l;default:return _.AB(l)}};
Jf.prototype.onLoadError=function(V){var l=this;this.errorCallbacks.add(V);return function(){l.errorCallbacks.delete(V)}};
_.oe=new Jf;var HUB=function(){};
_.B=HUB.prototype;
_.B.JSC$11765_getRequest=function(V,l,I){l=l===void 0?{}:l;I=I===void 0?PgZ:I;var H=l;if(this.isNavigationCommand()){var T,x=(T=_.y(V==null?void 0:V.commandMetadata,_.mK))==null?void 0:T.url;H=_.D6N(V.clickTrackingParams,!0,!1,x,this.JSC$11765_getClientScreen(H))}else H=_.D6N(V.clickTrackingParams,!1,this.includeCsn);H={context:H};if(T=this.getExtension(V))return this.JSC$11765_buildRequest(H,T,l),T=this.getApiUrl(V),x=Object.assign({},{command:V},this.getRequestConfig(V,l)),H={input:T,requestShell:p8(T),
innerTubeRequest:H,config:x},H.config.authStrategy?H.config.authStrategy.identity=I:H.config.authStrategy={identity:I},(V=this.JSC$11765_getRequestKey(V,l))&&!H.config.requestKey&&(H.config.requestKey=V),H;V=new _.Yd("Error: Failed to create Request from Command.",V);_.Gr(V)};
_.B.getApiUrl=function(V){var l=_.Ol(this.getApiPaths(V)),I;(V=(I=_.y(V.commandMetadata,_.mK))==null?void 0:I.apiUrl)&&(l=V);return MJq(qmf(l))};
_.B.isNavigationCommand=function(){return!1};
_.B.JSC$11765_getClientScreen=function(){};
_.B.JSC$11765_getRequestKey=function(){};
_.B.getRequestConfig=function(){};
_.vI.Object.defineProperties(HUB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var hf=function(){};
_.t(hf,HUB);hf.prototype.JSC$11772_getStoreKey=function(){};
hf.prototype.JSC$11765_getRequestKey=function(V,l){l=l===void 0?{}:l;return this.JSC$11772_getStoreKey(V,l)};var PQ=function(){};
_.t(PQ,hf);PQ.prototype.JSC$11765_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:p8("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
PQ.prototype.getApiPaths=function(){return[]};
PQ.prototype.getExtension=function(){};
PQ.prototype.JSC$11765_buildRequest=function(){};var TsZ={},BsZ=(TsZ.GET_DATASYNC_IDS=JU(PQ),TsZ);var xWN,UW0,nuv,haN,D6,wj3,Q5b,dW3,$Wv;xWN="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");UW0=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Zt=function(V,l,I,H,T,x,n,w,N){this.endpointMap=V;this.networkManager=l;this.authService=I;this.responseProcessorMap=H;this.innertubeResponseStore=T;this.contextProcessors=x;this.asyncContextProcessors=n;this.localInnertubeRouter=w;this.requestSequencer=N;this.inflightRequests=new Map;V.signalEndpointMap||(V.signalEndpointMap={});V.signalEndpointMap=Object.assign({},BsZ,V.signalEndpointMap)};
nuv=function(V,l,I,H,T,x,n,w,N){if(_.Zt.instance!==void 0){if(H=_.Zt.instance,V=[V!==H.endpointMap,l!==H.networkManager,I!==H.authService,T!==H.innertubeResponseStore,x!==H.contextProcessors,n!==H.asyncContextProcessors,w!==H.localInnertubeRouter],V.some(function(L){return L}))throw new _.Yd("InnerTubeTransportService is already initialized",V);
}else _.Zt.instance=new _.Zt(V,l,I,H,T,x,n,w,N)};
_.R2=function(V,l,I){var H=H===void 0?PgZ:H;var T=Q5b(V,l);return T?new _.UZ(function(x,n){var w,N,L,e,k;return _.d(function(X){switch(X.nextAddress){case 1:return _.K(X,T,2);case 2:w=X.yieldResult;N=w.JSC$11765_getRequest(l,I,H);if(!N){n(new _.Yd("Error: Failed to build request for command.",l));X.jumpTo(0);break}Jv(N.input);e=((L=N.requestShell)==null?void 0:L.mode)==="cors"?"cors":void 0;if(V.authService.syncHeaders){k=$Wv(N.config,e);X.jumpTo(4);break}return _.K(X,dW3(N.config,e),5);case 5:k=
X.yieldResult;case 4:x(wj3(V,N,k)),_.FU(X)}})}):_.bK(new _.Yd("Error: No request builder found for command.",l))};
haN=function(V,l,I,H){var T=T===void 0?PgZ:T;var x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C,By,lN;return _.d(function(wW){switch(wW.nextAddress){case 1:x=BXK(l,V.endpointMap);if(!x)throw new _.Yd("Error: No streaming request builder found for command",l);n=x.JSC$11765_getRequest(l,I,T);if(!n)throw new _.Yd("Failed to build YtRequest for streaming Command",l);if((w=V.localInnertubeRouter)==null||!w.shouldPreferLocalResponse(n.input,n.innerTubeRequest)){wW.jumpTo(2);break}return _.K(wW,V.localInnertubeRouter.localInnertubeResponse(n.input,
n.innerTubeRequest),3);case 3:return N=wW.yieldResult,L={},N.playerResponse&&(D6(V,N.playerResponse,n),L.player=N.playerResponse,(e=H)==null||e(L,N)),N.watchNextResponse&&(D6(V,N.watchNextResponse,n),L.content=N.watchNextResponse,(k=H)==null||k(L,N)),wW.return(L);case 2:r=((X=n.requestShell)==null?void 0:X.mode)==="cors"?"cors":void 0;if(V.authService.syncHeaders){E=$Wv(n.config,r);wW.jumpTo(4);break}return _.K(wW,dW3(n.config,r),5);case 5:E=wW.yieldResult;case 4:return S=(Z=(D=n.requestShell)==null?
void 0:D.headers)!=null?Z:{},n.requestShell=Object.assign({},n.requestShell,{headers:Object.assign({},S,E)}),p=Object.assign({},n.requestShell),Vf=JSON.stringify(n.innerTubeRequest),n.requestShell.method==="POST"&&(p=Object.assign({},p,{body:Vf})),C=function(o1,h1){D6(V,h1.playerResponse||h1.watchNextResponse||h1.reelItemWatchResponse||h1.reelWatchSequenceResponse,n);H==null||H(o1,h1)},By={},_.K(wW,NsE(V.networkManager,n.input,p,C),6);
case 6:return By=wW.yieldResult,((lN=n.config)==null?0:lN.responseTick)&&_.Z8(n.config.responseTick),wW.return(By)}})};
_.R7=function(V,l,I,H,T){T=T===void 0?{authStrategy:{identity:PgZ}}:T;var x=x===void 0?!0:x;var n=function(){};
n=TN1(IaT(I));l.context||(l.context=_.D6N(H,x));return new _.UZ(function(w){var N,L,e,k,X;return _.d(function(r){if(r.nextAddress==1)return N=qmf(I),L=_.sA(N),V.authService.syncHeaders?(e=$Wv(T,L),r.jumpTo(2)):_.K(r,dW3(T,L),3);r.nextAddress!=2&&(e=r.yieldResult);k=MJq(qmf(I));X={input:k,requestShell:p8(k),innerTubeRequest:l,config:T};w(wj3(V,X,e,n));_.FU(r)})})};
D6=function(V,l,I){var H;if(l&&!(l==null?0:(H=l.sequenceMetaData)==null?0:H.skipProcessing)&&V.responseProcessorMap){H=_.U(xWN);for(var T=H.next();!T.done;T=H.next())T=T.value,V.responseProcessorMap[T]&&V.responseProcessorMap[T].handleResponse(l,I)}};
wj3=function(V,l,I,H){H=H===void 0?function(){}:H;
var T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C,By,lN,wW,o1,h1,ec,Zg,Va,wb,CK,CZ,ME,Hw,uZ,EN,ya,Dv,Tf,Oq,Ut,BY,ON,vY;return _.d(function(LZ){switch(LZ.nextAddress){case 1:n=(T=l.config)==null?void 0:(x=T.storeStrategy)==null?void 0:x.storeKey;if(!(n&&V.innertubeResponseStore&&V.innertubeResponseStore.has(n))||((w=l.config)==null?0:(N=w.storeStrategy)==null?0:N.disableCache)){LZ.jumpTo(2);break}return _.K(LZ,V.innertubeResponseStore.get(n),3);case 3:if((L=LZ.yieldResult)&&!L.isExpired())return LZ.return(Promise.resolve(_.wE(L)));
case 2:if(!((e=l)==null?0:(k=e.innerTubeRequest)==null?0:k.context)){LZ.jumpTo(4);break}X=l.innerTubeRequest.context;if(!(V.asyncContextProcessors&&V.asyncContextProcessors.length>0)){LZ.jumpTo(5);break}r=[];E=_.U(V.asyncContextProcessors);for(D=E.next();!D.done;D=E.next())Z=D.value,S=Z.processContext(l),S.wrappedPromise_&&r.push(S.wrappedPromise_);if(!(r.length>0)){LZ.jumpTo(5);break}return _.K(LZ,Promise.all(r),5);case 5:p=_.U(V.contextProcessors||[]),Vf=p.next();case 8:if(Vf.done){LZ.jumpTo(4);
break}C=Vf.value;return _.K(LZ,C.processContext(X),9);case 9:Vf=p.next();LZ.jumpTo(8);break;case 4:if((By=V.localInnertubeRouter)==null||!By.shouldPreferLocalResponse(l.input,l.innerTubeRequest)){LZ.jumpTo(12);break}return _.K(LZ,V.localInnertubeRouter.localInnertubeResponse(l.input,l.innerTubeRequest),13);case 13:return lN=LZ.yieldResult,D6(V,lN,l),LZ.return(lN);case 12:return(h1=(o1=l.config)==null?void 0:o1.requestKey)&&V.inflightRequests.has(h1)?wW=V.inflightRequests.get(h1):(ec=JSON.stringify(l.innerTubeRequest),
wb=(Va=(Zg=l.requestShell)==null?void 0:Zg.headers)!=null?Va:{},l.requestShell=Object.assign({},l.requestShell,{headers:Object.assign({},wb,I)}),CK=Object.assign({},l.requestShell),l.requestShell.method==="POST"&&(CK=Object.assign({},CK,{body:ec})),((CZ=l.config)==null?0:CZ.requestTick)&&_.Z8(l.config.requestTick),ME=function(){return V.networkManager.fetch(l.input,CK,l.config)},wW=V.requestSequencer?KIv(V.requestSequencer,l,ME):ME(),h1&&V.inflightRequests.set(h1,wW)),_.K(LZ,wW,14);
case 14:if((Hw=LZ.yieldResult)&&"error"in Hw&&((uZ=Hw)==null?0:(EN=uZ.error)==null?0:EN.details))for(ya=Hw.error.details,Dv=_.U(ya),Tf=Dv.next();!Tf.done;Tf=Dv.next())Oq=Tf.value,(Ut=Oq["@type"])&&UW0.indexOf(Ut)>-1&&(delete Oq["@type"],Hw=Oq);h1&&V.inflightRequests.has(h1)&&V.inflightRequests.delete(h1);((BY=l.config)==null?0:BY.responseTick)&&_.Z8(l.config.responseTick);if(Hw||(ON=V.localInnertubeRouter)==null||!ON.canProvideFallbackResponse(l.input,l.innerTubeRequest)){LZ.jumpTo(15);break}return _.K(LZ,
V.localInnertubeRouter.localFallbackInnertubeResponse(l.input,l.innerTubeRequest),16);case 16:Hw=LZ.yieldResult;case 15:return D6(V,Hw,l),((vY=l.config)==null?0:vY.processorTick)&&_.Z8(l.config.processorTick),H(),LZ.return(Hw||void 0)}})};
_.SU=function(V,l){return TXt(l,V.endpointMap)};
Q5b=function(V,l){V=xf3(l,V.endpointMap);if(V!==void 0)return Promise.resolve(V)};
dW3=function(V,l){var I,H,T,x;return _.d(function(n){if(n.nextAddress==1){T=(I=V)==null?void 0:(H=I.authStrategy)==null?void 0:H.sessionIndex;var w=_.w6(jQw({sessionIndex:T}));return _.K(n,w,2)}x=n.yieldResult;return n.return(Promise.resolve(Object.assign({},Ufy(l),x)))})};
$Wv=function(V,l){var I;V=V==null?void 0:(I=V.authStrategy)==null?void 0:I.sessionIndex;I=jQw({sessionIndex:V});return Object.assign({},Ufy(l),I)};var j9i,Yjw,LIi,euJ,k3b,FIv,yQv,t43,Re,rQo,G3i,zuZ,EuZ;j9i=0;Yjw=/tone[1-5]/;LIi=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");euJ="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
k3b=Number.MAX_SAFE_INTEGER;FIv=RegExp("\ufe0f","g");_.Z6=function(V){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;V&&_.XjZ(this,V)};
_.XjZ=function(V,l){try{_.xd(l,{context:V,onSuccess:function(H,T){Array.isArray(T)?V.load(T):(H=new _.Yd("Emoji manager JSON response was not an array!",{response:T}),_.Gr(H))},
onError:function(H){H=new _.Yd("Failed to retrieve emoji manager initial JSON data!",{url:l,statusCode:l2(H).toString()});_.hF(H)}})}catch(H){var I=new _.Yd("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:l});
_.hF(I)}};
_.Z6.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Z6.prototype.load=function(V,l){if(l)if(V.length)V=V.concat(l.emojis);else{this.emojis=l.emojis;this.emojiMap=l.emojiMap;this.emojiShortcutMap=l.emojiShortcutMap;this.emojiShortcutCharMap=zuZ(l);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=l.emojiRegex;return}this.emojis=[].concat(_.oI(new Set(this.emojis.concat(V))));this.hasInitializedShortcutCharMap=!1;V=Array(this.emojis.length);for(l=0;l<this.emojis.length;l++){var I=this.emojis[l];if(I.emojiId){this.emojiMap[I.emojiId]=I;this.emojiMap[I.emojiId].index=
l;for(var H=0;I.shortcuts&&H<I.shortcuts.length;H++)this.emojiShortcutMap[I.shortcuts[H].toLocaleLowerCase()]=I;V[l]=I.isCustomEmoji&&I.shortcuts?I.shortcuts[0]:I.emojiId}}V.sort(function(T,x){return x.length-T.length});
if(V.length)try{this.emojiRegex=new RegExp(V.join("|").replace("*","\\*"),"gi")}catch(T){this.emojiRegex=/$./}else this.emojiRegex=/$./};
yQv=function(V,l){l=_.U(l);for(var I=l.next();!I.done;I=l.next()){var H=I.value;if(H.emojiId&&V.emojiMap[H.emojiId]){I=Object.assign({},V.emojiMap[H.emojiId],H);V.emojiMap[H.emojiId]=I;var T=void 0;I.index&&((T=V.emojis[I.index])==null?void 0:T.emojiId)===H.emojiId&&(V.emojis[I.index]=I);H=void 0;if((H=I.shortcuts)==null?0:H.length)for(V.hasInitializedShortcutCharMap=!1,H=_.U(I.shortcuts),T=H.next();!T.done;T=H.next())V.emojiShortcutMap[T.value.toLocaleLowerCase()]=I}}};
t43=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return _.K(H,_.tt.getInstance(),2);if(H.nextAddress!=3)return(l=H.yieldResult)?_.K(H,l.get("ytlc-emoji-pref"),3):H.return();(I=H.yieldResult)&&yQv(V,Object.keys(I).map(function(T){return{emojiId:T,stickyPrefId:I[T]}}).filter(function(T){return!!T.emojiId&&!!T.stickyPrefId}));
_.FU(H)})};
_.Sf=function(V,l,I){return(V=V.emojiMap[l])&&(!V.isLocked||I!==void 0&&I)?V:void 0};
Re=function(V,l,I){I=_.Sf(V,l,I===void 0?!1:I);var H=l.match("\u200d");I&&V.skinTone!==0&&(V=(H==null?void 0:H.length)===1?_.Sf(V,l.replace("\u200d",LIi[V.skinTone]+"\u200d")):_.Sf(V,l+LIi[V.skinTone]))&&(I=V);return I};
rQo=function(V,l){var I=V.emojiMap[l];return(I==null?0:I.stickyPrefId)?V.emojiMap[I.stickyPrefId]:Re(V,l)};
_.Fx=function(V,l){V=V.emojiShortcutMap[l.toLocaleLowerCase()];return!V||V.isLocked?null:V};
G3i=function(V,l,I){return zuZ(V,I===void 0?!1:I)[l]||{}};
zuZ=function(V,l){l=l===void 0?!1:l;if(!V.hasInitializedShortcutCharMap){V.hasInitializedShortcutCharMap=!0;for(var I=0;I<V.emojis.length;I++){var H=V.emojis[I];if(!(H.isLocked||l&&H.isCustomEmoji&&H.emojiId&&!V.pickerCustomEmojiIds.includes(H.emojiId)))for(var T=0;H.shortcuts&&T<H.shortcuts.length;T++){var x=H.shortcuts[T];x.startsWith(":_")&&H.isCustomEmoji&&(V.emojiShortcutCharMap[":_"]==null&&(V.emojiShortcutCharMap[":_"]=Object.create(null)),V.emojiShortcutCharMap[":_"][x]=H);if(!(x.length<3||
!H.isCustomEmoji&&Yjw.test(x))){var n=x.substr(0,3).toLocaleLowerCase();V.emojiShortcutCharMap[n]==null&&(V.emojiShortcutCharMap[n]=Object.create(null));V.emojiShortcutCharMap[n][x]=H}}}}return V.emojiShortcutCharMap};
_.Z6.prototype.createEmoji=function(V,l){l=l===void 0?!0:l;var I=document.createElement("img");V.isCustomEmoji||I.classList.add("small-emoji");I.classList.add("emoji");I.classList.add("yt-formatted-string");I.src=V.image?_.sI(V.image.thumbnails,this.emojiSize)||"":"";var H=void 0;V.image&&V.image.accessibility&&V.image.accessibility.accessibilityData&&(H=V.image.accessibility.accessibilityData.label);I.alt=H?H:(V.isCustomEmoji&&V.shortcuts?V.shortcuts[0]:V.emojiId)||"";V.isCustomEmoji&&(I.dataset.emojiId=
V.emojiId);_.NU&&(I.setAttribute("contenteditable","false"),I.setAttribute("unselectable","on"));l&&(V.shortcuts&&V.shortcuts.length&&I.setAttribute("shared-tooltip-text",V.shortcuts[0]),I.id="emoji-"+j9i++);return I};
_.Z6.prototype.createDocumentFragment=function(V,l,I,H){l=l===void 0?!1:l;I=I===void 0?!0:I;H=H===void 0?!1:H;V=V.replace(FIv,"");for(var T=document.createDocumentFragment(),x=0,n,w=0;(n=this.emojiRegex.exec(V))!=null;){var N=_.Sf(this,n[0])||_.Fx(this,n[0]);!N||N.isCustomEmoji&&!l||(N=this.createEmoji(N,I),x!==n.index&&T.appendChild(document.createTextNode(V.substring(x,n.index))),T.appendChild(N),x=n.index+n[0].length,w++)}if(!H||w)return T.appendChild(document.createTextNode(V.substr(x))),T};
EuZ=function(V,l,I){var H,T,x,n,w,N,L,e,k;return _.d(function(X){if(X.nextAddress==1){if(!l.emojiId||!V.emojiMap[l.emojiId])return X.return();H=Object.assign({},V.emojiMap[l.emojiId],{stickyPrefId:I});V.emojiMap[l.emojiId]=H;l.index&&((T=V.emojis[l.index])==null?void 0:T.emojiId)===l.emojiId&&(V.emojis[l.index]=H);if((x=l.shortcuts)==null?0:x.length)for(V.hasInitializedShortcutCharMap=!1,n=_.U(l.shortcuts),w=n.next();!w.done;w=n.next())N=w.value,V.emojiShortcutMap[N.toLocaleLowerCase()]=H;return _.K(X,
_.tt.getInstance(),2)}if(X.nextAddress!=4)return(L=X.yieldResult)?_.K(X,L.get("ytlc-emoji-pref"),4):X.jumpTo(0);k=(e=X.yieldResult)!=null?e:{};k[l.emojiId]=I;return _.K(X,L.set("ytlc-emoji-pref",k,k3b),0)})};
_.Q2=new _.Z6;var huN;_.cQ={};
huN={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.z("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:_.z("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 Mr(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 V=_.h(this.hostElement||this).querySelector("#inline-action-button-container");V&&V.setAttribute("aria-hidden","true");this.menuButton=_.h(this.hostElement).querySelector("#menu-button")},
attached:function(){var V=this.menuButton;V&&(V.addEventListener("focusin",_.VP(this,this.onMenuButtonFocus_)),V.addEventListener("focusout",_.VP(this,this.onMenuButtonBlur_)))},
detached:function(){var V=this.menuButton;V&&(V.removeEventListener("focusin",_.VP(this,this.onMenuButtonFocus_)),V.removeEventListener("focusout",_.VP(this,this.onMenuButtonBlur_)))},
identity:_.Wy,truthy:function(V){return!!V},
computeTimestampString:function(V){return V?V.timestampText?this.getSimpleString(V.timestampText):this.TIME_FORMATTER.format(new Date(V.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(V){return _.z("live_chat_whole_message_clickable")&&V},
computeMenuVisible_:function(V,l){return V||l},
computeHasInlineActionButtons:function(V){if(!V)return!1;var l,I;return!((l=V.inlineActionButtons)==null||!l.length)||!((I=V.additionalInlineActionButtons)==null||!I.length)},
createDocumentFragmentFromString:function(V){var l=_.Q2.createDocumentFragment.bind(_.Q2),I;if((I=this.participantsManager)==null||!I.viewerRegex)return l(V);I=document.createDocumentFragment();for(var H=0,T;(T=this.participantsManager.viewerRegex.exec(V))!=null;){if(T.index>0){var x=":"+T[0]+":";if((_.Sf(_.Q2,x)||_.Fx(_.Q2,x))&&V.indexOf(x)===T.index-1)continue}I.appendChild(l(V.substring(H,T.index)));H=document.createElement("span");H.appendChild(l(T[0]));H.classList.add("mention");I.appendChild(H);
H=T.index+T[0].length}I.appendChild(l(V.substring(H)));return I},
createDocumentFragment:function(V){var l=document.createDocumentFragment();if(V.simpleText)return l.appendChild(this.createDocumentFragmentFromString(V.simpleText)),l;if(!V.runs)return l;for(var I=0;I<V.runs.length;I++){var H=V.runs[I];if(H.emoji)l.appendChild(_.Q2.createEmoji(H.emoji));else if(H.text)if(H.navigationEndpoint){var T=document.createElement("a");T.classList.add("yt-simple-endpoint");Q63(T,H.navigationEndpoint);_.h(T).appendChild(this.createDocumentFragmentFromString(H.text));l.appendChild(T)}else l.appendChild(this.createDocumentFragmentFromString(H.text))}return l},
hasModerationOverlayVisible:function(){var V;return((V=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:V.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(V){V.composedPath().some(function(l){return(l=l instanceof Element?l:null)?l.tagName&&(l.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||l.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.z("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(V)},
colorFromDecimal:function(V){return s$T(V)},
markAsDeleted:function(V,l){this.set("data.deletedStateMessage",V);this.set("data.showOriginalContentMessage",l)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(V){if(this.data.contextMenuEndpoint){var l=_.F().resolve(_.kV),I=this.data.contextMenuEndpoint,H;(H=_.Zt.instance)&&_.SU(H,I)?(l=JQv(l,I),H=_.R7(H,{},l)):H=_.ouJ(l,I);H.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);V&&V.stopPropagation()}},
handleGetContextMenuResponse_:function(V){var l=_.Zt.instance;l&&_.SU(l,{liveChatEndpoint:{}})||(V=V.response);V.liveChatItemContextMenuSupportedRenderers&&V.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(V.liveChatItemContextMenuSupportedRenderers.menuRenderer);V.actions&&_.xB(this.hostElement,"yt-live-chat-actions",[V.actions])},
handleGetContextMenuError:function(V){if(V instanceof Error||V instanceof Object||V instanceof String)var l=V;_.Gr(new _.Yd("Error encountered calling GetLiveChatItemContextMenu",l))},
showContextMenu_:function(V){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:V}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.B$(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.B$(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.cQ.YtLiveChatItemBehavior=[huN,_.DX.YtComponentBehavior,_.x4.YtOpenPopupBehavior];_.WQ=function(){};var Pbo;var DWE;var ZUb;var Sjo;var RuZ=function(){var V=_.M.apply(this,arguments)||this;V.active=!1;V.identity=_.Wy;return V};
_.t(RuZ,_.M);RuZ.prototype.dataChanged=function(){this.active=!1};
RuZ.prototype.onClick=function(){_.B$(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
var b5=RuZ;b5.prototype.dataChanged=b5.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],b5.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],b5.prototype,"active",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],b5.prototype,"dataChanged",null);b5=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],b5);
_.u(b5,"yt-live-chat-text-input-field-suggestion",function(){if(Sjo===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;ZUb===void 0&&(ZUb=document.createElement("template"));var H=ZUb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Sjo=V}V=Sjo;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});_.qX=function(V,l,I){return CustomEvent.call(this,V,{detail:{value:l,path:I}})||this};
_.t(_.qX,CustomEvent);var Q9E=function(){var V=_.M.apply(this,arguments)||this;V.viewerName=null;V.actionMap={"yt-live-chat-actions":"onChatMessage_"};V.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];V.PARTICIPANT_TIME_USEC_=3E8;return V};
_.t(Q9E,_.M);_.B=Q9E.prototype;_.B.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.B.addParticipant=function(V){var l=_.J1y(this.participants,V,function(H,T){H=H[Object.keys(H)[0]];T=T[Object.keys(T)[0]];H=String(_.A5(H.authorName)).toLowerCase();T=String(_.A5(T.authorName)).toLowerCase();return H<T?-1:H==T?0:1}.bind(this));
if(l>=0){var I=this.participants[l];I[Object.keys(I)[0]].timestampUsec&&this.splice("participants",l,1,V)}else this.splice("participants",-l-1,0,V);V=V[Object.keys(V)[0]];l=_.A5(V.authorName).toLocaleLowerCase();I=l.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(I)||(this.allParticipantsCharMap_[I]={});this.allParticipantsCharMap_[I][l]=V};
_.B.getAuthorsFromPrefix=function(V){return this.allParticipantsCharMap_.hasOwnProperty(V)?this.allParticipantsCharMap_[V]:null};
_.B.computeViewerRegex_=function(V){if(!V)return null;V=V.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp("([@#]"+V.replace(/ /g,"\\s*")+"|^"+V.replace(/ /g,"\\s*")+"$|^"+V.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+V.replace(/ /g,"\\s*")+"$|(?<=\\s)"+V.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.B.checkForStaleParticipants_=function(){var V=this;this.trimOldParticipants_();this.asyncHandle_&&Yst(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.r_(function(){V.checkForStaleParticipants_()},3E4))};
_.B.onChatMessage_=function(V){var l=this,I=Date.now()*1E3;V.forEach(function(H){if(H=_.y(H,A4Z)){H=H.item;var T=Object.keys(H)[0];l.SUPPORTED_ITEM_TYPES_.indexOf(T)!=-1&&H[T].timestampUsec>=I-l.PARTICIPANT_TIME_USEC_&&l.addParticipant(H)}},this);
this.checkForStaleParticipants_()};
_.B.trimOldParticipants_=function(){for(var V=Date.now()*1E3,l=this.participants.length-1;l>=0;l--){var I=this.participants[l];I=I[Object.keys(I)[0]];I.timestampUsec&&I.timestampUsec<V-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",l,1)}};
_.MX=Q9E;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],_.MX.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],_.MX.prototype,"viewerName",void 0);_.O([_.q({computed:"computeViewerRegex_(viewerName)"}),_.a("design:type",Object)],_.MX.prototype,"viewerRegex",void 0);_.O([_.q({value:function(){return[]},
notify:!0}),_.a("design:type",Array)],_.MX.prototype,"participants",void 0);_.MX=_.O([_.Lm({is:"yt-live-chat-participants-manager",noInjection:!0})],_.MX);var cQ0=/.*([:@#].*?)$/,sf=/\u00a0/g,WI3=String.fromCharCode(160),bUo={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"},qj0=function(){var V=_.M.apply(this,arguments)||this;V.disabled=!1;V.liveChatRichMessageInput=null;V.messageInput=null;V.isValidWithNoInputText=!1;V.suggestions=[];V.emojiManager=_.Q2;V.inputMethodEditorActive=
!1;V.suggestionIndex=-1;V.JSC$11820_lastSuggestionRange=null;return V};
_.t(qj0,_.M);_.B=qj0.prototype;_.B.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.B.attached=function(){_.Kj&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.B.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.B.dataChanged=function(){if(!this.ignoreColorMapping){var V=!1,l={},I;for(I in bUo)this.data&&this.data.hasOwnProperty(I)&&(l[bUo[I]]=this.colorFromDecimal(this.data[I]),V=!0);V&&_.i3(this.hostElement,l)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.B.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.B.colorFromDecimal=function(V){V=Math.floor(Number(V));return"rgba("+[V>>16&255,V>>8&255,V&255,(V>>24&255)/255].join()+")"};
_.B.preventDrag=function(V){V.dataTransfer&&(V.dataTransfer.dropEffect="none");V.preventDefault()};
_.B.preventResize=function(V){V.returnValue=!1};
_.B.onInputChange=function(){var V=this.characterCount,l=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&l&&l.remove();if(!l&&this.characterCount>this.maxCharacterLimit){var I=window.getSelection();if(I){var H=I.getRangeAt(0);I.removeAllRanges();I.addRange(H)}}if(I=this.getCurrentRange())H=this.calculateTextBeforeRange(I),this.completeEmojisInRange(I,H,!0)||this.updateSuggestions(I,H);H=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(H);
_.B$(this.hostElement,"yt-live-chat-message-input-change",H);l&&this.characterCount===0&&l.remove();I&&I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>V):I&&!I.collapsed&&I.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(V=this.input.childNodes.length-1;V>=0;V--)this.input.childNodes[V].nodeName==="BR"&&this.input.childNodes[V].remove()};
_.B.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.B.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var V=this.getCurrentRange();V&&V.commonAncestorContainer.parentElement.id==="input"&&V.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.B.mergeOverflowText=function(V){if(V){var l=document.createRange();l.selectNodeContents(V);l=l.extractContents();this.input.insertBefore(l,V)}};
_.B.checkRangeAtEndOfInput=function(){var V=this.getCurrentRange();if(V){var l=_.h(this.hostElement).querySelector("#overflow-text"),I=document.createRange();l&&l.previousSibling?l.previousSibling instanceof HTMLImageElement?I.selectNode(l.previousSibling):I.selectNodeContents(l.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?I.selectNode(this.input.lastChild):I.selectNodeContents(this.input.lastChild));I.collapse(!1);return I.isPointInRange(V.startContainer,
V.startOffset)}return!1};
_.B.handleOverflowText=function(V){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var l=_.h(this.hostElement).querySelector("#overflow-text"),I=this.getCurrentRange();this.input.normalize();V=this.checkRangeAtEndOfInput()&&V;this.mergeOverflowText(l);for(var H,T=0,x=0,n,w=this.input.childNodes,N=0;N<w.length;N++){var L=w[N];L instanceof Text?(x+=L.textContent.length,x>this.maxCharacterLimit&&(H=L,T=this.maxCharacterLimit+L.textContent.length-x)):L instanceof HTMLImageElement&&
(H=void 0,x=L.dataset.emojiId&&((H=this.data)==null?0:H.emojiCharacterCount)?x+this.data.emojiCharacterCount:x+L.alt.length,H=this.input,T=N);if(x>this.maxCharacterLimit&&H){n=document.createRange();n.collapse(!1);l?(x=this.input.lastChild.previousSibling,x instanceof Text?n.setEnd(this.input.lastChild.previousSibling,x.textContent.length):x instanceof HTMLImageElement&&n.setEnd(this.input,this.input.childNodes.length-1)):n.selectNodeContents(this.input);n.setStart(H,T);break}}n&&(H=!1,I&&(V=n.isPointInRange(I.startContainer,
I.startOffset-1)),l||(l=document.createElement("span"),l.id="overflow-text",l.textContent="",l.setAttribute("contenteditable","true"),_.h(_.h(this.hostElement).querySelector("#input")).appendChild(l),H=!0),l&&(I=n.extractContents(),l.insertBefore(I,l.firstChild),V&&l.firstChild&&(I=document.createRange(),H?I.setStartAfter(l.lastChild):I.setStartAfter(l.firstChild),I.collapse(!0),l=window.getSelection(),l.removeAllRanges(),l.addRange(I))))}};
_.B.checkForDuplicateSpans=function(){for(var V=0;V<this.input.childNodes.length;V++){var l=this.input.childNodes[V];if(l.nodeName==="SPAN"){var I=document.createRange();I.selectNodeContents(l);I=I.extractContents();this.input.insertBefore(I,l);l.remove()}}this.handleOverflowText(!0)};
_.B.getCurrentRange=function(){var V=window.getSelection();return V&&V.rangeCount?V.getRangeAt(0).cloneRange():null};
_.B.getInputRange=function(){var V=this.getCurrentRange();if(V){for(var l=V.commonAncestorContainer,I=!1,H=_.h(this.hostElement).querySelector("#input");l;){if(l===H){I=!0;break}l=l.parentNode}I||(V=null)}V||(V=this.getRangeAtEnd());return V};
_.B.getRangeAtEnd=function(){var V=document.createRange(),l=_.h(this.hostElement).querySelector("#input").lastChild;!l||l.nodeName!=="#text"&&l.nodeName!=="SPAN"?(V.selectNodeContents(_.h(this.hostElement).querySelector("#input")),V.collapse(!1)):l.nodeName==="#text"?V.setStart(l,l.textContent.length):V.setStart(l,l.childNodes.length);return V};
_.B.getSuggestions=function(V){var l=[],I=V.substring(0,3),H=G3i(_.Q2,I,!0);if(H)for(var T in H)if(T.toLocaleLowerCase().indexOf(V)===0){var x=H[T];if(x&&x.emojiId){if(x=rQo(_.Q2,x.emojiId)){var n=void 0,w=void 0,N=void 0,L=void 0,e=((n=x.image)==null?0:(w=n.accessibility)==null?0:(N=w.accessibilityData)==null?0:N.label)||x.isCustomEmoji?(L=x.shortcuts)==null?void 0:L[0]:x.emojiId;l.push({suggestion:{emoji:!0,image:x.image,alt:e,text:T,textToInsertWhenSelected:x.isCustomEmoji?T:e}})}if(l.length>=
64)break}}if(!this.participantsManager)return null;T=_.z("enable_web_yt_handles")||_.z("enable_live_chat_yt_handles");if(I.indexOf("@")===0||I.indexOf("#")===0)if(H=I.charAt(0),T&&I.indexOf("@")===0?I=I.substring(0,2):(V=V.substring(1),I=I.substring(1)),I=this.participantsManager.getAuthorsFromPrefix(I))for(var k in I)if(k.indexOf(V)===0&&(T=I[k],x=_.A5(T.authorName),l.push({suggestion:{author:!0,authorType:H,image:T.authorPhoto,alt:x,text:x}}),l.length>=64))break;return l?l.sort(function(X,r){return r.suggestion.text<
X.suggestion.text?-1:r.suggestion.text===X.suggestion.text?0:1}):null};
_.B.insertSuggestion=function(V){V.emoji?this.insertTextAtRange(this.JSC$11820_lastSuggestionRange,V.textToInsertWhenSelected||""):V.author&&this.insertTextAtRange(this.JSC$11820_lastSuggestionRange,V.authorType+V.text+WI3)};
_.B.updateSuggestionsAtCaret=function(){var V=this.getCurrentRange();V&&this.updateSuggestions(V,this.calculateTextBeforeRange(V))};
_.B.offsetStartOfRangeBy=function(V,l){for(;l>0;)if(V.startOffset-l>=0){V.setStart(V.startContainer,V.startOffset-l);break}else{l=V.startContainer instanceof HTMLImageElement?l-V.startContainer.alt.length:l-V.startOffset;var I=V.startContainer.previousSibling;if(!I){V.setStart(V.startContainer,0);break}if(_.z("live_chat_require_space_for_autocomplete_emoji")){var H=void 0,T=void 0;V.setStart(I,((H=I)==null?void 0:(T=H.textContent)==null?void 0:T.length)||0)}else V.setStart(I,I.childNodes.length||
0)}};
_.B.updateSuggestions=function(V,l){var I=this;this.JSC$11820_lastSuggestionRange&&(this.JSC$11820_lastSuggestionRange.detach(),this.JSC$11820_lastSuggestionRange=null);if((l=cQ0.exec(l))&&l.length&&(l=l[l.length-1].toLocaleLowerCase(),l.length>2&&(this.offsetStartOfRangeBy(V,l.length),this.JSC$11820_lastSuggestionRange=V,(V=this.getSuggestions(l))&&V.length))){this.suggestions=V;_.Al(this,function(){_.h(I.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(V.length-1);return}this.dropdown.opened=!1};
_.B.completeEmojisInRange=function(V,l,I){var H=l.replace(/[\s\xa0]+$/,"");l=l.length-H.length;H=H.split(" ");H=H[H.length-1].trim().toLocaleLowerCase();var T=H.lastIndexOf(":");if(I&&!l&&T!==H.length-1)return!1;T!==-1&&(I=H.lastIndexOf(":",T-1),I!==-1&&(H=H.substring(I)));if((I=_.Fx(_.Q2,H))&&I.emojiId){I=rQo(_.Q2,I.emojiId)||null;this.offsetStartOfRangeBy(V,H.length+l);var x,n,w,N;H=(((x=I)==null?0:x.isCustomEmoji)?(n=I)==null?void 0:(w=n.shortcuts)==null?void 0:w[0]:(N=I)==null?void 0:N.emojiId)||
"";l&&(H+=WI3);this.insertTextAtRange(V,H);this.dropdown.opened=!1;return!0}return!1};
_.B.onSuggestion=function(V){this.insertSuggestion(V.detail);this.dropdown.opened=!1};
_.B.onKeyPress=function(V){V.keyCode===13&&(V.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.B$(this.hostElement,"yt-live-chat-send-message"))};
_.B.completeEmojis=function(){var V=document.createRange(),l=_.h(this.hostElement).querySelector("#input").lastChild;l?V.setStart(l,l.childNodes.length):(V.selectNodeContents(_.h(this.hostElement).querySelector("#input")),V.collapse(!1));this.completeEmojisInRange(V,this.calculateTextBeforeRange(V),_.z("live_chat_require_space_for_autocomplete_emoji"))};
_.B.maybePreventTextFormatting=function(V){!_.Lj||!V.ctrlKey&&!V.metaKey||V.keyCode!==66&&V.keyCode!==73||(V.stopImmediatePropagation(),V.preventDefault())};
_.B.onKeyDown=function(V){this.maybePreventTextFormatting(V);if(this.dropdown.opened)switch(V.keyCode){case 27:this.dropdown.opened=!1;V.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;V.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);V.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),V.preventDefault()}};
_.B.onKeyUp=function(V){switch(V.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.NU)this.onInputChange()};
_.B.changeSuggestionIndex=function(V){if(this.dropdown.opened){var l=_.h(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<l.children.length&&(l.children[this.suggestionIndex].active=!1);var I=this.suggestions.length;this.suggestionIndex=(V+I)%I;V=l.children[this.suggestionIndex];V.active=!0;l.scrollTop=V.offsetTop}};
_.B.onInputPaste=function(V){V.preventDefault();(V=V.clipboardData)&&V.types&&(V=V.getData("text/plain")||"",V=V.replace(/\n/g,""),this.insertText(V));(V=this.getCurrentRange())&&V.commonAncestorContainer.parentElement.id==="input"&&V.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.B.onFocus=function(){this._setFocused(!0)};
_.B.onBlur=function(){this._setFocused(!1)};
_.B.insertText=function(V){this.insertTextAtRange(this.getInputRange(),V)};
_.B.insertTextAtRange=function(V,l){if(V&&(V.collapsed||V.deleteContents(),l=_.Q2.createDocumentFragment(l,!0,!1))){for(var I=_.U((l==null?void 0:l.childNodes)||[]),H=I.next();!H.done;H=I.next()){H=H.value;var T=void 0,x=void 0,n=void 0,w=void 0,N=void 0;(n=(T=window)==null?void 0:(x=T.ShadyCSS)==null?void 0:x.ScopingShim)==null||(N=(w=n).scopeNode)==null||N.call(w,H,this.hostElement.localName)}I=l.lastChild;V.insertNode(l);this.focused||this.input.focus();if(this.focused){V=V.cloneRange();V.selectNodeContents(I);
V.collapse(!1);if(l=window.getSelection())l.removeAllRanges(),l.addRange(V);V.commonAncestorContainer.parentElement.id==="input"&&V.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}V=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(V);_.B$(this.hostElement,"yt-live-chat-message-input-change",V)}};
_.B.setLiveChatRichMessageInput=function(V){_.h(_.h(this.hostElement).querySelector("#input")).textContent="";if(V&&V.textSegments){for(var l=0;l<V.textSegments.length;l++){var I=V.textSegments[l];I.text?_.h(_.h(this.hostElement).querySelector("#input")).appendChild(_.Q2.createDocumentFragment(I.text,!0,!1)):I.emojiId&&(I=_.Sf(_.Q2,I.emojiId))&&_.h(_.h(this.hostElement).querySelector("#input")).appendChild(_.Q2.createEmoji(I,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.B.setText=function(V){this.setLiveChatRichMessageInput(V?{textSegments:[{text:V}]}:null)};
_.B.calculateTextBeforeRange=function(V){var l="",I=V.startContainer;if(I&&I instanceof Text){var H;l=((H=I.textContent)==null?void 0:H.substring(0,V.startOffset))||"";I=I.previousSibling}for(;I&&I instanceof Text;)l=I.textContent+l,I=I.previousSibling;return l.replace(sf," ")};
_.B.calculateLiveChatRichMessageInput=function(){for(var V=[],l="",I=_.h(_.h(this.hostElement).querySelector("#input")).childNodes,H=0;H<I.length;H++){var T=I[H];T instanceof Text?l+=T.textContent:T instanceof HTMLImageElement&&(T.dataset.emojiId?(l&&(V.push({text:l.replace(sf," ")}),l=""),V.push({emojiId:T.dataset.emojiId})):l+=T.alt)}l&&V.push({text:l.replace(sf," ")});if(I=_.h(this.hostElement).querySelector("#overflow-text")){l="";I=I.childNodes;for(H=0;H<I.length;H++)T=I[H],T instanceof Text?
l+=T.textContent:T instanceof HTMLImageElement&&(T.dataset.emojiId?(l&&(V.push({text:l.replace(sf," ")}),l=""),V.push({emojiId:T.dataset.emojiId})):l+=T.alt);l&&V.push({text:l.replace(sf," ")})}return{textSegments:V}};
_.B.computeCharacterCount=function(V){if(!V||!V.textSegments)return 0;for(var l=0,I=0;I<V.textSegments.length;I++){var H=V.textSegments[I];if(H.text)l+=H.text.length;else if(H.emojiId){var T=void 0;if((T=this.data)==null?0:T.emojiCharacterCount)l+=this.data.emojiCharacterCount;else{var x=T=void 0,n=void 0;l+=((x=_.Sf(_.Q2,(T=H)==null?void 0:T.emojiId))==null?void 0:(n=x.shortcuts)==null?void 0:n[0].length)||0}}}return l};
_.B.characterCountChanged=function(){_.B$(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.B.focusedChanged=function(){this.hostElement.dispatchEvent(new _.qX("focused-changed",this.focused))};
_.B.focus=function(){this.setFocus(!1)};
_.B.focusAtEnd=function(){this.setFocus(!0)};
_.B.setFocus=function(V){V=V?this.getRangeAtEnd():this.getInputRange();_.h(this.hostElement).querySelector("#input").focus();var l=window.getSelection();l&&(l.removeAllRanges(),l.addRange(V))};
_.B.insertEmoji=function(V){var l,I=((V==null?0:V.isCustomEmoji)?(l=V.shortcuts)==null?void 0:l[0]:V==null?void 0:V.emojiId)||"";this.insertText(I)};
_.B.computeText=function(V){if(!V||!V.textSegments)return"";for(var l="",I=0;I<V.textSegments.length;I++){var H=V.textSegments[I];if(H.text)l+=H.text;else if(H.emojiId){var T=void 0,x=void 0,n=void 0;l+=((x=_.Sf(_.Q2,(T=H)==null?void 0:T.emojiId))==null?void 0:(n=x.shortcuts)==null?void 0:n[0])||""}}return l};
_.B.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.vI.Object.defineProperties(qj0.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
var pR=qj0;pR.prototype.focusedChanged=pR.prototype.focusedChanged;pR.prototype.characterCountChanged=pR.prototype.characterCountChanged;pR.prototype.onSuggestion=pR.prototype.onSuggestion;pR.prototype.onMessageSet=pR.prototype.onMessageSet;pR.prototype.dataChanged=pR.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pR.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],pR.prototype,"disabled",void 0);_.O([_.Q("disabled"),_.a("design:type",Number),_.a("design:paramtypes",[])],pR.prototype,"inputTabIndex",null);
_.O([_.Q("data.maxCharacterLimit"),_.q({readOnly:!0,notify:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],pR.prototype,"maxCharacterLimit",null);_.O([_.Q("liveChatRichMessageInput"),_.q({readOnly:!0,notify:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],pR.prototype,"characterCount",null);_.O([_.Q("maxCharacterLimit, characterCount"),_.q({readOnly:!0,notify:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],pR.prototype,"remainingCharacterCount",null);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],pR.prototype,"isChatMessageInput",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],pR.prototype,"inputExpanded",void 0);_.O([_.q({readOnly:!0,notify:!0}),_.a("design:type",Object)],pR.prototype,"liveChatRichMessageInput",void 0);_.O([_.q(),_.a("design:type",Object)],pR.prototype,"messageInput",void 0);_.O([_.q(),_.a("design:type",Boolean)],pR.prototype,"ignoreColorMapping",void 0);
_.O([_.Q("characterCount"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],pR.prototype,"hasText",null);_.O([_.q(),_.a("design:type",Object)],pR.prototype,"isValidWithNoInputText",void 0);_.O([_.Q("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.q(),_.a("design:type",Boolean),_.a("design:paramtypes",[])],pR.prototype,"isInputValid",null);_.O([_.q({readOnly:!0,value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],pR.prototype,"focused",void 0);
_.O([_.q(),_.a("design:type",Array)],pR.prototype,"suggestions",void 0);_.O([_.q(),_.a("design:type",_.Z6)],pR.prototype,"emojiManager",void 0);_.O([_.q(),_.a("design:type",_.MX)],pR.prototype,"participantsManager",void 0);_.O([_.q(),_.a("design:type",Boolean)],pR.prototype,"noUnderline",void 0);_.O([_.q(),_.a("design:type",Object)],pR.prototype,"inputMethodEditorActive",void 0);_.O([_.Ij("#dropdown"),_.a("design:type",Object)],pR.prototype,"dropdown",void 0);
_.O([_.Ij("#input"),_.a("design:type",HTMLElement)],pR.prototype,"input",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pR.prototype,"dataChanged",null);_.O([_.b("messageInput"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pR.prototype,"onMessageSet",null);
_.O([_.W("yt-live-chat-select-suggestion"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pR.prototype,"onSuggestion",null);_.O([_.b("characterCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pR.prototype,"characterCountChanged",null);_.O([_.b("focused"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pR.prototype,"focusedChanged",null);
pR=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],pR);
_.M4W=_.u(pR,"yt-live-chat-text-input-field-renderer",function(){if(DWE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Pbo===void 0&&(Pbo=document.createElement("template"));var H=Pbo;I.call(l,H.content.cloneNode(!0),V.content.firstChild);DWE=V}V=DWE;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var s9i=function(){var V=_.M.apply(this,arguments)||this;V.buttonOverrides={style:"overlay",type:"filled"};V.allowAnimations=!1;V.modern=_.z("web_button_rework_with_live");V.noPadding=!1;return V};
_.t(s9i,_.M);_.B=s9i.prototype;_.B.shouldSupportInlineActionButtons=function(){return!0};
_.B.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"}}}}};
_.B.ready=function(){var V=document.querySelector("yt-live-chat-app");V&&V.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.B.attached=function(){this.allowAnimations=!1};
_.B.dataChanged=function(){if(this.data){var V={"--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)};_.i3(this.hostElement,V);this.allowAnimations=!0}};
_.B.messageChanged=function(){var V,l=(V=this.data)==null?void 0:V.message;V=_.h(_.h(this.hostElement).querySelector("#message"));V.textContent="";l&&V.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(l))};
_.B.computeShowOnlyHeader=function(V,l){return!V||V.pdgLikeButton||V.replyButton||V.buyFlowButton?!1:this.isEmpty(V,l)&&!V.footer};
_.B.computeShowFooterDivider=function(V,l,I){return V?!!V.footer&&!this.isEmpty(V,l)&&!I:!1};
_.B.computeIsUserEditable=function(V){return!!V.inputField};
_.B.computeHasHeartButton=function(V){return(V==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(V==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(V==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.B.computeNoveltyImage=function(V){if(V.headerOverlayImage&&V.headerOverlayImage.thumbnails.length){var l=V.headerOverlayImage.thumbnails[0],I,H;if((I=V.pdgPurchasedNoveltyLoggingDirectives)==null?0:(H=I.loggingDirectives)==null?0:H.trackingParams){var T,x;Z2t((T=V.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(x=T.loggingDirectives)==null?void 0:x.trackingParams)}return l.width||0}return 0};
_.B.computeAuthorPhotoSize=function(V){return(V==null?0:V.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.B.inputFocus=function(){var V=_.h(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");V&&V.focus()};
_.B.inputInsertEmoji=function(V){var l=_.h(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");l&&l.insertEmoji(V)};
_.B.inputMessage=function(){var V=_.h(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),l;return V&&((l=this.data)==null?0:l.inputField)?(V.completeEmojis(),_.hU(V.liveChatRichMessageInput)):null};
_.B.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.B.isEmpty=function(V,l){return V?V.empty||!(V.message||V.inputField||l):!0};
_.B.onLowerBuyButtonClick=function(){var V,l=_.y((V=this.data)==null?void 0:V.buyButton,_.RG);l&&l.trackingParams&&!AXN(l.command)&&(V=_.dj(l.trackingParams))&&(l=_.oa())&&_.uJ(l,V)};
_.B.shouldSupportWholeItemClick=function(){return!0};
_.vI.Object.defineProperties(s9i.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var Af=s9i;Af.prototype.isDeletedChanged=Af.prototype.isDeletedChanged;Af.prototype.messageChanged=Af.prototype.messageChanged;Af.prototype.dataChanged=Af.prototype.dataChanged;_.O([_.R(g1v.YtPdgLiveChatItemBehavior),_.a("design:type",Object)],Af.prototype,"ytPdgLiveChatItemBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.hM),_.a("design:type",Object)],Af.prototype,"ytLiveChatReduxBehavior",void 0);
_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],Af.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Af.prototype,"data",void 0);_.O([_.q({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:Pvt}),_.a("design:type",Object)],Af.prototype,"engagementState",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.a("design:type",Boolean)],Af.prototype,"isUserEditable",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.a("design:type",Boolean)],Af.prototype,"hasHeartButton",void 0);_.O([_.q({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Af.prototype,"showOnlyHeader",void 0);
_.O([_.q({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Af.prototype,"showFooterDivider",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Object)],Af.prototype,"allowAnimations",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Af.prototype,"dashboardMoneyFeed",void 0);_.O([_.q({computed:"computeNoveltyImage(data)"}),_.a("design:type",Number)],Af.prototype,"noveltyWidth",void 0);
_.O([_.q({computed:"computeAuthorPhotoSize(data)"}),_.a("design:type",Number)],Af.prototype,"authorPhotoSize",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Af.prototype,"modern",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Af.prototype,"noPadding",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Af.prototype,"dataChanged",null);
_.O([_.b("data.message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Af.prototype,"messageChanged",null);_.O([_.Q("data","dashboardMoneyFeed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Af.prototype,"hideLowerBumper",null);_.O([_.b("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Af.prototype,"isDeletedChanged",null);
Af=_.O([_.A({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Af);
_.u(Af,"yt-live-chat-paid-message-renderer",function(){if(pCE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;srJ===void 0&&(srJ=document.createElement("template"));var H=srJ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);pCE=V}V=pCE;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var pjw;var AQB;var uTB=function(){var V=_.To.apply(this,arguments)||this;V._noAccessors=!0;return V};
_.t(uTB,_.To);uTB.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.h6("openPopupConfig")};
var vu3=uTB;_.O([_.R(_.x4.YtOpenPopupBehavior),_.a("design:type",Object)],vu3.prototype,"ytOpenPopupBehavior",void 0);vu3=_.O([_.B1()],vu3);_.u5=[_.x4.YtOpenPopupBehavior,vu3.prototype];var OU0;var cu=[_.$V,Qm3,_.D0,_.Nv,_.vU,_.AuW,_.YV,_.a0N,_.Q3,JZW];_.z("web_watch_get_updated_metadata_response_processing")&&cu.push(_.NFo);_.z("web_continuation_response_processing")&&cu.push(_.Ex);var zCt=new _.Vr("RESPONSE_RECEIVED_COMMANDS"),t$w=new _.Vr("RESPONSE_RECEIVED_COMMANDS");var Ly1="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),YCt=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],jqy=["GET_UNSEEN_NOTIFICATION_COUNT"];var vQ=function(){var V=_.To.apply(this,arguments)||this;V._noAccessors=!0;V.serviceEndpointHandlers=[];return V};
_.t(vQ,_.To);vQ.prototype.created=function(){var V=this;this.endpointHandlerActionMap={"yt-service-request":function(l,I,H,T){var x;return KyW(V.hostElement,l,I,H,T,V.serviceEndpointHandlers,(x=V.onEntitiesUpdated)==null?void 0:x.bind(V))}}};
vQ.prototype.attached=function(){_.bx(_.WF.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
vQ.prototype.detached=function(){_.q4(_.WF.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
var CbZ=vQ;CbZ=_.O([_.B1()],CbZ);_.aZZ=[CbZ.prototype];var fZE,gui=function(){return fZE!==void 0?fZE:fZE=document.createElement("template")};
document.head.appendChild(gui().content);var mWa;var iUZ=document.head,VZB=iUZ.appendChild,luv;if(mWa===void 0){var Iui=document.createElement("template");_.G(Iui,"\x3c!--css-build:shady--\x3e");Iui.content.insertBefore(gui().content.cloneNode(!0),Iui.content.firstChild);mWa=Iui}luv=mWa;VZB.call(iUZ,luv.content);var Hq0,TLN=function(){return Hq0!==void 0?Hq0:Hq0=document.createElement("template")};
document.head.appendChild(TLN().content);var BLw;var xLZ=document.head,ULJ=xLZ.appendChild,nq3;if(BLw===void 0){var $Li=document.createElement("template");_.G($Li,"\x3c!--css-build:shady--\x3e");$Li.content.insertBefore(TLN().content.cloneNode(!0),$Li.content.firstChild);BLw=$Li}nq3=BLw;ULJ.call(xLZ,nq3.content);_.yN("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.yN("sharingRendererButtons","buttonRenderer","ytd-button-renderer");var dLB=_.z("web_button_rework")&&_.PO("BUTTON_REWORK")||_.z("web_button_rework_with_live"),wE3=function(){var V=_.M.apply(this,arguments)||this;V.isPressed=!1;V.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return V};
_.t(wE3,_.M);_.B=wE3.prototype;_.B.created=function(){this.showTooltips=!0};
_.B.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.B.onHintIdChanged=function(){var V=this,l,I,H=(l=this.ytButtonBehavior.data)==null?void 0:(I=l.hint)==null?void 0:I.hintRenderer;if(H&&H.hintId){l=_.U4(this.hostElement,"yt-get-opened-popups-action");l=(l&&l.length===1?l[0]:[]).length>0;var T=null;H.hintId!=="sponsor-pre-purchase"||l?H.hintId.startsWith("sponsor-post-purchase")&&!l?T=$si("membership-manage"):H.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!l&&(T=$si("membership-freebie-join")):T=$si("membership-join");T&&_.r0.addLowPriorityJob(function(){for(var x=
_.U(T),n=x.next();!n.done;n=x.next())V.ytComponentBehavior.resolveCommand(n.value)})}};
_.B.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.B.onYtNavigate=function(V){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(V.detail.endpoint);l&&(V.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(l))};
_.B.onYtServiceRequestSent=function(V,l){this.handleServiceRequestActions(l);_.B$(this.hostElement,"yt-service-request-sent-button-renderer")};
_.B.onServiceRequestCompleted=function(V,l){this.handleServiceRequestActions(l);_.B$(this.hostElement,"yt-service-request-completed-button-renderer")};
_.B.updateButton=function(V){var l;if(V=(l=_.y(V,LRJ))==null?void 0:l.updatedButton)this.ytButtonBehavior.data=_.y(V,_.RG)};
_.B.handleUpdateButtonAction=function(V){var l=this.ytButtonBehavior.data;l.targetId&&V.updateButtonAction.targetId&&l.targetId===V.updateButtonAction.targetId&&this.updateButton(V)};
_.B.handleServiceRequestActions=function(V){if(V=V.actions)for(var l=0;l<V.length;l++)this.updateButton(V[l])};
_.vI.Object.defineProperties(wE3,{template:{configurable:!0,enumerable:!0,get:function(){if(OU0===void 0){var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);OU0=V}V=OU0;return V}}});
_.Of=wE3;_.Of.prototype.onServiceRequestCompleted=_.Of.prototype.onServiceRequestCompleted;_.Of.prototype.onYtServiceRequestSent=_.Of.prototype.onYtServiceRequestSent;_.Of.prototype.onYtNavigate=_.Of.prototype.onYtNavigate;_.Of.prototype.onPressedStateChanged=_.Of.prototype.onPressedStateChanged;_.Of.prototype.onHintIdChanged=_.Of.prototype.onHintIdChanged;_.O([_.q(),_.a("design:type",Object)],_.Of.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],_.Of.prototype,"isPressed",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],_.Of.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.xwJ.YtButtonBehavior),_.a("design:type",Object)],_.Of.prototype,"ytButtonBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],_.Of.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],_.Of.prototype,"ytComponentBehavior",void 0);
_.O([_.R(we.YtRenderButtonBehavior),_.a("design:type",Object)],_.Of.prototype,"ytRenderButtonBehavior",void 0);_.O([_.b("data.hint.hintRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],_.Of.prototype,"onHintIdChanged",null);_.O([_.b("isPressed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],_.Of.prototype,"onPressedStateChanged",null);
_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],_.Of.prototype,"onYtNavigate",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],_.Of.prototype,"onYtServiceRequestSent",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],_.Of.prototype,"onServiceRequestCompleted",null);_.Of=_.O([_.A({is:"ytd-button-renderer",disableElementRegistration:dLB})],_.Of);var NLZ=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("web_button_rework_with_live");V.buttonOverrides={style:"overlay",type:"filled"};return V};
_.t(NLZ,_.M);_.B=NLZ.prototype;_.B.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"}}}}};
_.B.ready=function(){var V=document.querySelector("yt-live-chat-app");V&&V.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.B.dataChanged=function(){if(this.data&&this.data.sticker){var V=_.sI(this.data.sticker.thumbnails,this.stickerWidth);V||_.Plw(V).thenCatch(function(){_.hF(new _.Yd("Failed to load Super Sticker with url",V))})}};
_.B.computeAuthorPhotoSize=function(V){return(V==null?0:V.isV2Style)?32:40};
_.B.computeIsV2Style=function(V){return(V==null?0:V.isV2Style)?!0:!1};
_.B.onStickerLoaded=function(V){var l,I,H;(l=_.qv(V))==null||(I=l.parentNode)==null||(H=I.classList)==null||H.add("sticker-loaded")};
_.B.computeNoveltyImageWidth=function(V){var l,I;if(V==null?0:(l=V.headerOverlayImage)==null?0:(I=l.thumbnails)==null?0:I.length){l=V.headerOverlayImage.thumbnails[0];var H,T;if((H=V.pdgPurchasedNoveltyLoggingDirectives)==null?0:(T=H.loggingDirectives)==null?0:T.trackingParams){var x,n;Z2t((x=V.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(n=x.loggingDirectives)==null?void 0:n.trackingParams)}return l.width||0}return 0};
_.B.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.B.updateStickerStyles=function(){var V=this.data;V&&(V={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(V.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(V.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(V.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(V.authorNameTextColor)},
_.i3(this.hostElement,V))};
_.B.onBuyButtonClick=function(){var V,l=_.y((V=this.data)==null?void 0:V.buyButton,_.RG);l&&!AXN(l.command)&&this.ytRendererBehavior.logExplicitClick(l)};
_.B.shouldSupportWholeItemClick=function(){return!0};
_.vI.Object.defineProperties(NLZ.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 V;return((V=this.data)==null?0:V.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var CR=NLZ;CR.prototype.updateStickerStyles=CR.prototype.updateStickerStyles;CR.prototype.isDeletedChanged=CR.prototype.isDeletedChanged;CR.prototype.onStickerLoaded=CR.prototype.onStickerLoaded;CR.prototype.dataChanged=CR.prototype.dataChanged;_.O([_.R(g1v.YtPdgLiveChatItemBehavior),_.a("design:type",Object)],CR.prototype,"ytPdgLiveChatItemBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],CR.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],CR.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],CR.prototype,"data",void 0);
_.O([_.q({computed:"computeAuthorPhotoSize(data)"}),_.a("design:type",Number)],CR.prototype,"authorPhotoSize",void 0);_.O([_.q(),_.a("design:type",Boolean)],CR.prototype,"isDeleted",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],CR.prototype,"dashboardMoneyFeed",void 0);_.O([_.q({computed:"computeNoveltyImageWidth(data)"}),_.a("design:type",Number)],CR.prototype,"noveltyWidth",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],CR.prototype,"modern",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.a("design:type",Boolean)],CR.prototype,"isV2Style",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CR.prototype,"dataChanged",null);_.O([_.W("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],CR.prototype,"onStickerLoaded",null);
_.O([_.Q("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],CR.prototype,"stickerWidth",null);_.O([_.Q("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],CR.prototype,"stickerHeight",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],CR.prototype,"hasHeartButton",null);_.O([_.Q("data","dashboardMoneyFeed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],CR.prototype,"hideLowerBumper",null);
_.O([_.b("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CR.prototype,"isDeletedChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CR.prototype,"updateStickerStyles",null);CR=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],CR);
_.u(CR,"yt-live-chat-paid-sticker-renderer",function(){if(AQB===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;pjw===void 0&&(pjw=document.createElement("template"));var H=pjw;I.call(l,H.content.cloneNode(!0),V.content.firstChild);AQB=V}V=AQB;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var K$a;var jsw;var Y2W,L$J=function(){return Y2W!==void 0?Y2W:Y2W=document.createElement("template")};
document.head.appendChild(L$J().content);var ehN,kB0=function(){return ehN!==void 0?ehN:ehN=document.createElement("template")};
document.head.appendChild(kB0().content);var F$Z;var XEE,zhB=function(){return XEE!==void 0?XEE:XEE=document.createElement("template")};
document.head.appendChild(zhB().content);var yGi;var tZ3=document.head,rGJ=tZ3.appendChild,GBE;if(yGi===void 0){var Eq0=document.createElement("template");_.G(Eq0,"\x3c!--css-build:shady--\x3e");Eq0.content.insertBefore(zhB().content.cloneNode(!0),Eq0.content.firstChild);yGi=Eq0}GBE=yGi;rGJ.call(tZ3,GBE.content);var JGZ=document.head,oqv=JGZ.appendChild,hhE;if(F$Z===void 0){var ae=document.createElement("template");_.G(ae,"\x3c!--css-build:shady--\x3e");ae.content.insertBefore(kB0().content.cloneNode(!0),ae.content.firstChild);ae.content.insertBefore(L$J().content.cloneNode(!0),ae.content.firstChild);F$Z=ae}hhE=F$Z;oqv.call(JGZ,hhE.content);var fR=function(){var V=_.To.apply(this,arguments)||this;V.focusedIndex=0;V.verticalOffset=0;V.verticalAlign="top";V.dynamicAlign=!0;return V};
_.t(fR,_.To);fR.prototype.emojiUrl=function(V){V=_.Sf(this.emojiManager,V);if(!V)return"";var l;V=(l=V.image)==null?void 0:l.thumbnails;return _.sI(V,24)||""};
var PzW=function(V){var l;V.emojiVariants&&(l=V.data)!=null&&l.target&&_.Al(V,function(){V.set("verticalOffset",-1*V.hostElement.clientHeight);var I=_.h(V.hostElement).querySelector("img");I&&I.focus()})};
_.B=fR.prototype;_.B.onKeyboardEnter=function(){};
_.B.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.B.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.B.onKeyDown=function(V){switch(V.keyCode){case 13:this.onKeyboardEnter();V.preventDefault();break;case 40:this.changeFocus(1);V.preventDefault();break;case 38:this.changeFocus(-1);V.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.B.onYtEmojiSelect=function(V){var l=this,I,H,T,x,n,w,N,L;return _.d(function(e){if(e.nextAddress==1)return H=(I=l.data)==null?void 0:I.emoji,n=((T=H)==null?void 0:T.stickyPrefId)||((x=H)==null?void 0:x.emojiId),N=(w=V.detail)==null?void 0:w.emojiId,n&&N&&n!==N?_.K(e,(L=l.emojiManager)==null?void 0:EuZ(L,H,N),2):e.return();_.xB(l.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[H,N]);_.FU(e)})};
_.B.changeFocus=function(V){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+V+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(V=_.h(this.hostElement).querySelector("#variants"))&&V.children[this.focusedIndex].focus())};
_.vI.Object.defineProperties(fR.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
var ge=fR;ge.prototype.onYtEmojiSelect=ge.prototype.onYtEmojiSelect;ge.prototype.onKeyDown=ge.prototype.onKeyDown;ge.prototype.onEmojiVariantsChanged=ge.prototype.onEmojiVariantsChanged;ge.prototype.onVerticalOffsetOrPositionTargetChanged=ge.prototype.onVerticalOffsetOrPositionTargetChanged;_.O([_.R(_.vd),_.a("design:type",Object)],ge.prototype,"ironOverlayBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ge.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",_.Z6)],ge.prototype,"emojiManager",void 0);_.O([_.q(),_.a("design:type",Object)],ge.prototype,"emojiVariants",void 0);_.O([_.q(),_.a("design:type",Object)],ge.prototype,"focusedIndex",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ge.prototype,"positionTarget",null);_.O([_.q({reflectToAttribute:!0}),_.Q("verticalOffset","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ge.prototype,"isPositioned",null);
_.O([_.q(),_.a("design:type",Object)],ge.prototype,"verticalOffset",void 0);_.O([_.q(),_.a("design:type",Object)],ge.prototype,"verticalAlign",void 0);_.O([_.q(),_.a("design:type",Object)],ge.prototype,"dynamicAlign",void 0);_.O([_.b("verticalOffset","positionTarget"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ge.prototype,"onVerticalOffsetOrPositionTargetChanged",null);
_.O([_.b("emojiVariants"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ge.prototype,"onEmojiVariantsChanged",null);_.O([_.W("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],ge.prototype,"onKeyDown",null);_.O([_.W("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype",Promise)],ge.prototype,"onYtEmojiSelect",null);ge=_.O([_.B1()],ge);var DLE=[ge.prototype];var ZqW;var S2E;var Rh3=/medium-light|medium-dark|light|medium|dark/,QsW=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,cG3=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),W$a=function(){var V=_.M.apply(this,arguments)||this;V.userSelection={left:null,right:null};V.scrollAction="lock";V.isEmojiDraftInProgress=!1;return V};
_.t(W$a,_.M);_.B=W$a.prototype;_.B.onClick=function(V){V=_.qv(V);V instanceof HTMLImageElement&&this.selectOrUpdateEmoji(V)};
_.B.selectOrUpdateEmoji=function(V){var l=V.getAttribute("selection");l&&(l==="default"?_.B$(this.hostElement,"yt-emoji-select",_.Sf(this.emojiManager,V.id)):l==="left"?this.userSelection=Object.assign({},this.userSelection,{left:V.src}):l==="right"?this.userSelection=Object.assign({},this.userSelection,{right:V.src}):l==="user"&&this.userSelection.left&&this.userSelection.right&&_.B$(this.hostElement,"yt-emoji-select",_.Sf(this.emojiManager,V.id)))};
_.B.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.B.onMultiSelectorThumbnailRowChanged=function(){var V,l,I;((V=this.data)==null?0:(l=V.emoji)==null?0:(I=l.multiSelectorThumbnailRow)==null?0:I.length)&&this.openSelector()};
_.B.getThumbnailFromEmojiRow=function(V){var l,I;return(V==null?void 0:(l=V.thumbnails)==null?void 0:(I=l[0])==null?void 0:I.url)||""};
_.B.getEmojiAltTextForPartialSelector=function(V){var l;return((l=this.getThumbnailFromEmojiRow(V).match(QsW))==null?void 0:l[0])||""};
_.B.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.B.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.B.getRowSelection=function(V){return["left","right"][V]};
_.B.getIdFromComposedEmoji=function(V){return(V==null?void 0:V.emojiId)||""};
_.B.getEmojiFromPartialSelections=function(V,l){if(!V&&!l)return null;var I,H,T=(I=this.data)==null?void 0:(H=I.emoji)==null?void 0:H.variantIds;if(!T||!T.length)return null;var x;V=(x=V.match(Rh3))==null?void 0:x[0];var n;l=(n=l.match(Rh3))==null?void 0:n[0];if(!V||!l)return null;var w=cG3.get(V);n=cG3.get(l);if(w===n){n=Array.from(cG3.values()).filter(function(L){return L!==w}).join("|");
var N=new RegExp("^((?!("+n+")).)*"+w+"$")}else N=new RegExp(w+".*"+n);return(T=T.find(function(L){return N.test(L)}))&&_.Sf(this.emojiManager,T)||null};
_.B.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var V,l=this.ytEmojiSelectorBehavior.emojiUrl(((V=this.data.emoji)==null?void 0:V.emojiId)||"");_.h(this.hostElement).querySelector('[selection="user"]').src.includes(l)||(this.isEmojiDraftInProgress=!0)}};
_.B.onDomChange=function(){PzW(this.ytEmojiSelectorBehavior)};
_.B.getFocusableElements=function(){return _.h(this.hostElement).querySelectorAll("img").filter(function(V){return V.getAttribute("role")==="option"})};
_.B.changeFocus=function(V){var l=this.getFocusableElements();l!=null&&l.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+V+l.length)%l.length,this.ytEmojiSelectorBehavior.focusedIndex<l.length&&(V=l[this.ytEmojiSelectorBehavior.focusedIndex])&&V.focus())};
_.B.onKeyboardEnter=function(){var V=this.getFocusableElements();V!=null&&V.length&&(V=V[this.ytEmojiSelectorBehavior.focusedIndex])&&V instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(V),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.vI.Object.defineProperties(W$a.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var V=this,l,I,H;return this.emojiManager&&((l=this.data)==null?0:(I=l.emoji)==null?0:(H=I.variantIds)==null?0:H.length)?this.data.emoji.variantIds.map(function(T){return!!T&&_.Sf(V.emojiManager,T)}).filter(function(T){return!!T}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var V,l=(V=this.userSelection)==null?void 0:V.left,I;V=(I=this.userSelection)==null?void 0:I.right;return l&&V?this.getEmojiFromPartialSelections(l,V):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.composedEmojiSelection)==null?0:V.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var l;V=(l=this.userSelection)==null?void 0:l.left;var I;l=(I=this.userSelection)==null?void 0:I.right;if(!V&&!l){var H;return this.ytEmojiSelectorBehavior.emojiUrl(((H=this.data.emoji)==null?void 0:H.emojiId)||"")}return V&&!l?V:!V&&l?l:""}}});
var mb=W$a;mb.prototype.onMultiSelectorThumbnailRowChanged=mb.prototype.onMultiSelectorThumbnailRowChanged;mb.prototype.onClick=mb.prototype.onClick;_.O([_.R(_.vd),_.a("design:type",Object)],mb.prototype,"ironOverlayBehavior",void 0);_.O([_.R(DLE),_.a("design:type",Object)],mb.prototype,"ytEmojiSelectorBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],mb.prototype,"data",void 0);_.O([_.q(),_.a("design:type",_.Z6)],mb.prototype,"emojiManager",void 0);
_.O([_.q(),_.a("design:type",Object)],mb.prototype,"userSelection",void 0);_.O([_.q(),_.a("design:type",Object)],mb.prototype,"scrollAction",void 0);_.O([_.q(),_.a("design:type",Object)],mb.prototype,"isEmojiDraftInProgress",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],mb.prototype,"emojiVariants",null);_.O([_.Q("data","userSelection"),_.a("design:type",Object),_.a("design:paramtypes",[])],mb.prototype,"composedEmojiSelection",null);
_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[MouseEvent]),_.a("design:returntype")],mb.prototype,"onClick",null);_.O([_.b("data.emoji.multiSelectorThumbnailRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mb.prototype,"onMultiSelectorThumbnailRowChanged",null);_.O([_.Q("data","userSelection","composedEmojiSelection"),_.a("design:type",String),_.a("design:paramtypes",[])],mb.prototype,"draftEmojiUrl",null);
mb=_.O([_.Lm({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],mb);
_.u(mb,"yt-emoji-multi-person-selector",function(){if(S2E===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;ZqW===void 0&&(ZqW=document.createElement("template"));var H=ZqW;I.call(l,H.content.cloneNode(!0),V.content.firstChild);S2E=V}V=S2E;return V},{mode:2});var bqo;var q2i;var MZv=function(){var V=_.M.apply(this,arguments)||this;V.tooltip_=null;return V};
_.t(MZv,_.M);_.B=MZv.prototype;_.B.dataChanged_=function(){var V;if((V=this.data)==null?0:V.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.h(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.mL)(this.tooltip_).textContent=this.data.tooltip};
_.B.computeTargetId=function(){var V;return((V=this.data)==null?void 0:V.targetId)||""};
_.B.computeId_=function(V){return V};
_.B.computeIcon_=function(V){return _.mj(V)};
_.B.onTap_=function(){this.active=!this.active;_.B$(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.B.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("active-changed",this.active))};
_.vI.Object.defineProperties(MZv.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var V,l;if((V=this.data)==null?0:(l=V.icon)==null?0:l.iconType)return this.data.icon.iconType==="SUPER_STICKER";var I,H;return((I=this.data)==null?void 0:(H=I.icon)==null?void 0:H.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
var i5=MZv;i5.prototype.activeChangedForBinding=i5.prototype.activeChangedForBinding;i5.prototype.dataChanged_=i5.prototype.dataChanged_;_.O([_.R(_.Pf.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],i5.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],i5.prototype,"data",void 0);_.O([_.q({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.a("design:type",String)],i5.prototype,"id",void 0);
_.O([_.q({computed:"computeTargetId(data.targetId)"}),_.a("design:type",String)],i5.prototype,"targetId",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],i5.prototype,"active",void 0);_.O([_.q({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.a("design:type",String)],i5.prototype,"icon",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],i5.prototype,"dataChanged_",null);
_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],i5.prototype,"iconFilled",null);_.O([_.b("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],i5.prototype,"activeChangedForBinding",null);i5=_.O([_.Lm({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],i5);
_.u(i5,"yt-emoji-picker-category-button-renderer",function(){if(q2i===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;bqo===void 0&&(bqo=document.createElement("template"));var H=bqo;I.call(l,H.content.cloneNode(!0),V.content.firstChild);q2i=V}V=q2i;return V},{mode:2});var ssi;var pEi;var AG0=function(){var V=_.M.apply(this,arguments)||this;V.ariaLabel=null;V.ariaActivedescendant=null;V.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};V.JSC$11885_ignoreNextFocus_=!1;V.longPressTimeoutId=-1;return V};
_.t(AG0,_.M);_.B=AG0.prototype;_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.B.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.B.emojiChanged_=function(){this.changeFocus_(0,!1);for(var V=_.x7(),l=0;l<this.emoji.length;l++){var I={veType:88013,elementIndex:l},H=this.emoji[l];H.isCustomEmoji&&(H=document.querySelector(("#"+H.emojiId).replace("/","\\/")))&&(I=_.BX(V,I))&&(H.visualElement=I)}};
_.B.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.B.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.B.emojiSkinToneChanged_=function(V){this.skinTone=V};
_.B.dataChanged=function(){this.data&&this.data.emojiData&&yQv(this.emojiManager,this.data.emojiData)};
_.B.emojiUrl=function(V){V=this.getEmoji(V);if(!V)return"";var l;V=(l=V.image)==null?void 0:l.thumbnails;return _.sI(V,24)||""};
_.B.emojiAlt=function(V){var l=this.get("image.accessibility.accessibilityData.label",V);return l?l:V.isCustomEmoji?V.shortcuts[0]:V.emojiId};
_.B.emojiAriaLabel=function(V){return V.shortcuts?V.shortcuts[0]:""};
_.B.emojiAriaSelected=function(V,l,I){return V&&I==l?"true":"false"};
_.B.getEmoji=function(V){if(this.emojiManager)return this.shouldUseStickyPreferences?rQo(this.emojiManager,V):Re(this.emojiManager,V)};
_.B.computeId_=function(V){return V.categoryId||""};
_.B.computeEmoji=function(V){var l=this;return this.emojiManager?V.emojiIds?V.emojiIds.map(function(I){return I?_.Sf(l.emojiManager,I):null}).filter(Df3):V.emojiData?V.emojiData.map(function(I){var H=!!I.emojiId&&_.Sf(l.emojiManager,I.emojiId);
return H?Object.assign({},H,I):null}).filter(Df3):[]:[]};
_.B.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.B.computeAriaLabel_=function(V){return _.A5(V)};
_.B.computeAriaActivedescendant_=function(V,l){return V&&V[l]?V[l].emojiId||"":""};
_.B.handleLongPressEmojiWithVariants=function(V,l){this.changeFocusToEmoji(V.emojiId,!1);this.openVariantSelector(V,l)};
_.B.onMouseDown=function(V){var l=this;this.hostElement!==document.activeElement&&(this.JSC$11885_ignoreNextFocus_=!0);if(V.button===0){var I=_.qv(V);if(I instanceof HTMLImageElement){var H=_.h(this.hostElement).querySelector("#repeat").itemForElement(I);this.emojiContainsVariants(H)&&(this.longPressTimeoutId=setTimeout(function(){l.handleLongPressEmojiWithVariants(H,I)},500))}}};
_.B.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.B.onFocus=function(){this.JSC$11885_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11885_ignoreNextFocus_=!1};
_.B.onBlur_=function(){this.showFocus=!1};
_.B.emojiContainsVariants=function(V){return!!(V&&V.variantIds&&V.variantIds.length)};
_.B.onClick=function(V){clearTimeout(this.longPressTimeoutId);V=_.qv(V);if(V instanceof HTMLImageElement){var l=V.id;this.changeFocusToEmoji(l,!1);var I=this.getEmoji(l),H;if(H=this.shouldUseStickyPreferences&&this.emojiContainsVariants(I)){var T;H=!((T=this.emojiManager.emojiMap[l])!=null&&T.stickyPrefId)}H?(T=_.h(this.hostElement).querySelector("#repeat").itemForElement(V),this.openVariantSelector(T,V)):_.B$(this.hostElement,"yt-emoji-select",I)}};
_.B.isActiveEmojiWithVariants=function(V,l){return V&&l?l.stickyPrefId?V===l.stickyPrefId:V===l.emojiId:!1};
_.B.onCloseEmojiVariantSelector=function(V){this.activeEmojiWithVariantsId===V&&(this.activeEmojiWithVariantsId="")};
_.B.onMouseOver_=function(V){V=_.qv(V);V instanceof HTMLImageElement&&_.B$(this.hostElement,"yt-emoji-hover",_.Sf(this.emojiManager,V.id))};
_.B.changeFocus_=function(V,l){this.focusedIndex=(this.focusedIndex+V+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(V=this.emoji[this.focusedIndex],l&&(this.showFocus=!0,_.h(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.B$(this.hostElement,"yt-emoji-hover",V)))};
_.B.changeFocusToEmoji=function(V,l){if(V){var I=this.emoji.findIndex(function(H){return H.emojiId===V});
I!==-1&&this.changeFocus_(I-this.focusedIndex,l)}};
_.B.onKeyDown_=function(V){switch(V.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var l=this.emoji[this.focusedIndex];if(l&&l.emojiId){if(this.emojiContainsVariants(l)){var I=_.h(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(l,I)}else _.B$(this.hostElement,"yt-emoji-select",Re(this.emojiManager,l.emojiId)),this.hostElement.focus();V.preventDefault()}}break;case 40:this.changeFocus_(1,!0);V.preventDefault();break;case 38:this.changeFocus_(-1,!0),V.preventDefault()}};
_.B.onEmojiStickyPreferenceChanged=function(V,l){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&V.emojiId&&V.variantIds&&V.variantIds.includes(l)&&this.activeEmojiWithVariantsId!==l&&this.setStickyEmojiPreference(V.emojiId,l)};
_.B.openVariantSelector=function(V,l){this.activeEmojiWithVariantsId=V.stickyPrefId||V.emojiId||"";_.B$(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:V,target:l})};
_.B.setStickyEmojiPreference=function(V,l){if(this.data){var I=this.emoji.findIndex(function(T){return T.emojiId===V});
if(I!==-1){var H=this.emoji[I];H.stickyPrefId=l;this.set("emoji."+I,Object.assign({},H));this.activeEmojiWithVariantsId=l}}};
var Vb=AG0;Vb.prototype.onKeyDown_=Vb.prototype.onKeyDown_;Vb.prototype.onMouseOver_=Vb.prototype.onMouseOver_;Vb.prototype.onClick=Vb.prototype.onClick;Vb.prototype.onBlur_=Vb.prototype.onBlur_;Vb.prototype.onFocus=Vb.prototype.onFocus;Vb.prototype.onMouseUp=Vb.prototype.onMouseUp;Vb.prototype.onMouseDown=Vb.prototype.onMouseDown;Vb.prototype.dataChanged=Vb.prototype.dataChanged;Vb.prototype.disableIncrementalLoadingChanged_=Vb.prototype.disableIncrementalLoadingChanged_;
Vb.prototype.emojiManagerChanged_=Vb.prototype.emojiManagerChanged_;Vb.prototype.emojiChanged_=Vb.prototype.emojiChanged_;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Vb.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Vb.prototype,"data",void 0);_.O([_.q({computed:"computeId_(data)"}),_.a("design:type",String)],Vb.prototype,"id",void 0);_.O([_.q({computed:"computeEmoji(data)"}),_.a("design:type",Array)],Vb.prototype,"emoji",void 0);
_.O([_.q(),_.a("design:type",Number)],Vb.prototype,"skinTone",void 0);_.O([_.q(),_.a("design:type",_.Z6)],Vb.prototype,"emojiManager",void 0);_.O([_.q(),_.a("design:type",Boolean)],Vb.prototype,"disableIncrementalLoading",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],Vb.prototype,"focusedIndex",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Vb.prototype,"showFocus",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.a("design:type",Object)],Vb.prototype,"ariaLabel",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.a("design:type",Object)],Vb.prototype,"ariaActivedescendant",void 0);_.O([_.q({value:60}),_.a("design:type",Number)],Vb.prototype,"domRepeatTargetFramerate",void 0);_.O([_.q({value:1}),_.a("design:type",Number)],Vb.prototype,"domRepeatInitialCount",void 0);
_.O([_.q({value:""}),_.a("design:type",String)],Vb.prototype,"activeEmojiWithVariantsId",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Vb.prototype,"shouldUseStickyPreferences",void 0);_.O([_.b("emoji"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vb.prototype,"emojiChanged_",null);_.O([_.b("emojiManager"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vb.prototype,"emojiManagerChanged_",null);
_.O([_.b("disableIncrementalLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vb.prototype,"disableIncrementalLoadingChanged_",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vb.prototype,"dataChanged",null);_.O([_.W("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],Vb.prototype,"onMouseDown",null);
_.O([_.W("mouseup"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vb.prototype,"onMouseUp",null);_.O([_.W("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vb.prototype,"onFocus",null);_.O([_.W("blur"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vb.prototype,"onBlur_",null);
_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Vb.prototype,"onClick",null);_.O([_.W("mouseover"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Vb.prototype,"onMouseOver_",null);_.O([_.W("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Vb.prototype,"onKeyDown_",null);
Vb=_.O([_.Lm({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Vb);
_.u(Vb,"yt-emoji-picker-category-renderer",function(){if(pEi===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;ssi===void 0&&(ssi=document.createElement("template"));var H=ssi;I.call(l,H.content.cloneNode(!0),V.content.firstChild);pEi=V}V=pEi;return V},{mode:2});var uNE;var vqZ;var OqZ;var Czw;var auo=function(){var V=_.M.apply(this,arguments)||this;V.ariaLabel=null;V.ariaActivedescendant=null;V.getFormattedStringRawText=_.A5;V.JSC$11891_ignoreNextFocus_=!1;return V};
_.t(auo,_.M);_.B=auo.prototype;_.B.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")};
_.B.emojiUrl=function(V){var l,I;V=(l=Re(this.emojiManager,V,!0))==null?void 0:(I=l.image)==null?void 0:I.thumbnails;return _.sI(V,24)||""};
_.B.emojiAlt=function(V){var l=this.get("image.accessibility.accessibilityData.label",V);return l?l:V.isCustomEmoji?V.shortcuts[0]:V.emojiId};
_.B.emojiId=function(V){return"emoji"+V};
_.B.computeId_=function(V){return V.categoryId||""};
_.B.computeAriaActivedescendant_=function(V){return this.emoji&&V<this.emoji.length?this.emojiId(V):""};
_.B.emojiChanged_=function(){this.changeFocus_(0,!1);for(var V=_.x7(),l=0;l<this.emoji.length;l++){var I={veType:88013,elementIndex:l},H=this.emoji[l];H.isCustomEmoji&&(H=document.querySelector(("#"+H.emojiId).replace("/","\\/")))&&(I=_.BX(V,I))&&(H.visualElement=I)}};
_.B.computeEmoji_=function(V){var l=this;return this.emojiManager?V.emojiIds.map(function(I){return _.Sf(l.emojiManager,I,!0)}).filter(ZBf):[]};
_.B.titleOffsetChanged_=function(){var V=this.hostElement.getBoundingClientRect(),l=_.h(this.hostElement).querySelector("#title").getBoundingClientRect();V=Math.max(0,Math.min(this.titleOffset,V.height-l.height));_.h(this.hostElement).querySelector("#title").style.top=V+"px"};
_.B.onEmojiMouseOver_=function(V){_.B$(this.hostElement,"yt-emoji-hover",V.model.item)};
_.B.onEmojiTap_=function(V){this.data.command&&(V=M23(_.F().resolve(_.Cs(QC)),this.data.command,V),_.B$(this.hostElement,"yt-navigate",V))};
_.B.emojiAriaLabel=function(V){return V.shortcuts[0]};
_.B.emojiAriaSelected=function(V,l,I){return V&&I==l?"true":"false"};
_.B.changeFocus_=function(V,l){var I=this.emoji.length;this.focusedIndex=(this.focusedIndex+V+I)%I;V=this.emoji[this.focusedIndex];if(l){var H;(H=_.h(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||H.scrollIntoView(!1);_.B$(this.hostElement,"yt-emoji-hover",V)}};
_.B.onMouseDown_=function(){this.JSC$11891_ignoreNextFocus_=!0};
_.B.onFocus_=function(){this.JSC$11891_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11891_ignoreNextFocus_=!1};
_.B.onBlur_=function(){this.showFocus=!1};
_.B.onKeyDown_=function(V){switch(V.keyCode){case 13:this.onEmojiTap_(V);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);V.preventDefault();break;case 38:this.changeFocus_(-1,!0),V.preventDefault()}};
var lM=auo;lM.prototype.onKeyDown_=lM.prototype.onKeyDown_;lM.prototype.onBlur_=lM.prototype.onBlur_;lM.prototype.onFocus_=lM.prototype.onFocus_;lM.prototype.onMouseDown_=lM.prototype.onMouseDown_;lM.prototype.onEmojiTap_=lM.prototype.onEmojiTap_;lM.prototype.titleOffsetChanged_=lM.prototype.titleOffsetChanged_;lM.prototype.emojiChanged_=lM.prototype.emojiChanged_;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],lM.prototype,"ytComponentBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],lM.prototype,"data",void 0);_.O([_.q({computed:"computeId_(data)"}),_.a("design:type",String)],lM.prototype,"id",void 0);_.O([_.q({computed:"computeEmoji_(data)"}),_.a("design:type",Array)],lM.prototype,"emoji",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],lM.prototype,"titleOffset",void 0);_.O([_.q({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.a("design:type",Object)],lM.prototype,"ariaLabel",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.a("design:type",Object)],lM.prototype,"ariaActivedescendant",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],lM.prototype,"showFocus",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],lM.prototype,"focusedIndex",void 0);_.O([_.q(),_.a("design:type",_.Z6)],lM.prototype,"emojiManager",void 0);
_.O([_.b("emoji"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lM.prototype,"emojiChanged_",null);_.O([_.b("titleOffset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lM.prototype,"titleOffsetChanged_",null);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],lM.prototype,"onEmojiTap_",null);
_.O([_.W("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lM.prototype,"onMouseDown_",null);_.O([_.W("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lM.prototype,"onFocus_",null);_.O([_.W("blur"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lM.prototype,"onBlur_",null);
_.O([_.W("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],lM.prototype,"onKeyDown_",null);lM=_.O([_.Lm({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],lM);
_.u(lM,"yt-emoji-picker-upsell-category-renderer",function(){if(Czw===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;OqZ===void 0&&(OqZ=document.createElement("template"));var H=OqZ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Czw=V}V=Czw;return V},{mode:2});var fuJ;var gqw;var mLJ=function(){var V=_.M.apply(this,arguments)||this;V.scrollAction="lock";V.verticalAlign="top";return V};
_.t(mLJ,_.M);_.B=mLJ.prototype;_.B.onClick=function(V){V=_.qv(V);V instanceof HTMLImageElement&&_.B$(this.hostElement,"yt-emoji-select",_.Sf(this.emojiManager,V.id))};
_.B.openSelector=function(){this.ironOverlayBehavior.open()};
_.B.onDomChange=function(){PzW(this.ytEmojiSelectorBehavior)};
_.B.computeIsFamilySelector=function(V){var l;return(V==null?void 0:(l=V.emoji)==null?void 0:l.emojiId)==="\ud83d\udc6a"};
_.B.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var V=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];V&&V.emojiId&&(_.B$(this.hostElement,"yt-emoji-select",_.Sf(this.emojiManager,V.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.vI.Object.defineProperties(mLJ.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var V=this,l,I,H;return this.emojiManager&&((l=this.data)==null?0:(I=l.emoji)==null?0:(H=I.variantIds)==null?0:H.length)?this.data.emoji.variantIds.map(function(T){return!!T&&_.Sf(V.emojiManager,T)}).filter(function(T){return!!T}):[]}}});
var IH=mLJ;IH.prototype.onClick=IH.prototype.onClick;_.O([_.R(_.vd),_.a("design:type",Object)],IH.prototype,"ironOverlayBehavior",void 0);_.O([_.R(DLE),_.a("design:type",Object)],IH.prototype,"ytEmojiSelectorBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],IH.prototype,"data",void 0);_.O([_.q(),_.a("design:type",_.Z6)],IH.prototype,"emojiManager",void 0);_.O([_.q(),_.a("design:type",Object)],IH.prototype,"scrollAction",void 0);
_.O([_.q(),_.a("design:type",Object)],IH.prototype,"verticalAlign",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.a("design:type",Boolean)],IH.prototype,"isFamilySelector",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],IH.prototype,"emojiVariants",null);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[MouseEvent]),_.a("design:returntype")],IH.prototype,"onClick",null);
IH=_.O([_.Lm({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],IH);
_.u(IH,"yt-emoji-variant-selector",function(){if(gqw===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;fuJ===void 0&&(fuJ=document.createElement("template"));var H=fuJ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);gqw=V}V=gqw;return V},{mode:2});var iqZ=/:/g,V2Z=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],lzE=function(){var V=_.M.apply(this,arguments)||this;V.emojiVariantSelector=null;V.emojiMultiPersonSelector=null;V.identity=_.Wy;V.lastAnimationTime_=0;V.animationStart_=null;V.animationEnd_=null;return V};
_.t(lzE,_.M);_.B=lzE.prototype;
_.B.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}}};
_.B.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Q2)};
_.B.attached=function(){_.NU&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&t43(this.emojiManager)};
_.B.dataChanged=function(){var V;if((V=this.data)==null?0:V.categories){V=this.emojiManager;var l=this.getCustomEmojiIds();V.pickerCustomEmojiIds=[].concat(_.oI(euJ),_.oI(l))}};
_.B.getCustomEmojiIds=function(){var V,l=(V=this.data.categories)==null?void 0:V.find(function(x){var n;return((n=x.emojiPickerCategoryRenderer)==null?void 0:n.categoryId)&&V2Z.includes(x.emojiPickerCategoryRenderer.categoryId)}),I;
V=(I=this.data.categories)==null?void 0:I.find(function(x){return x.emojiPickerUpsellCategoryRenderer});
var H,T;return[l==null?void 0:(H=l.emojiPickerCategoryRenderer)==null?void 0:H.emojiIds,V==null?void 0:(T=V.emojiPickerUpsellCategoryRenderer)==null?void 0:T.emojiIds].flat().filter(function(x){return!!x})};
_.B.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.B.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.B.updateCategoriesAndPlaceholderInternal=function(V,l){var I=this;V&&l&&(this.categories=V.categories||[],this.categoryButtons=V.categoryButtons||[],this.resetPlaceholder(),this.search="",_.r_(function(){I.updateButtons_()}))};
_.B.computeId_=function(V){return V.id||""};
_.B.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(V){return V.emojiPickerCategoryRenderer&&V.emojiPickerCategoryRenderer.emojiData}):!1};
_.B.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.B.onShowEmojiVariantSelector=function(V){var l=V.detail.emojiData;l.variantIds&&l.variantIds.length&&(l.multiSelectorThumbnailRow&&l.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:l,target:V.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:l,target:V.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.B.onIronOverlayClosed=function(V){var l=rQo(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");l&&V.composedPath&&(V.composedPath().includes(_.h(this.hostElement).querySelector("#emoji-variant-selector"))||V.composedPath().includes(_.h(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.xB(this.hostElement,"yt-close-emoji-variant-selector",[l.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.B.onEmojiVariantSelectorMouseup=function(V){var l=V.target.firstChild;this.variantSelectorOpened&&l&&_.r_(function(){l.noCancelOnOutsideClick=!1},100)};
_.B.onEmojiVariantSelectorMousedown=function(V){V=V.target.firstChild;this.variantSelectorOpened&&V&&(V.noCancelOnOutsideClick=!1)};
_.B.onSelectCategory_=function(V){var l=this.search!="";this.search="";for(var I=_.h(this.hostElement).querySelector("#categories").children,H=0;H<I.length;H++){var T=I[H];if(T.id==V.detail.categoryId){l?(_.h(this.hostElement).querySelector("#categories").scrollTop=T.offsetTop,this.updateButtons_()):(this.animationStart_=_.h(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=T.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.B.onEmojiHover_=function(V){this.placeholder=V.detail.shortcuts?V.detail.shortcuts[0]:""};
_.B.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.B.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.B.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.B.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.B.computeSearchCategory_=function(V){V=V.replace(iqZ,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();V=V.split(" ");for(var l=[],I=this.emojiManager.emojis,H=0;H<I.length;H++){var T=I[H];if(T.searchTerms)for(var x=0;x<T.searchTerms.length;x++){for(var n=T.searchTerms[x].toLocaleLowerCase(),w=!1,N=0;N<V.length;N++)if(n.indexOf(V[N])!=-1){w=!0;break}if(w&&(!T.isCustomEmoji||!T.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(T.emojiId))){l.push(T.emojiId);
break}}}return{categoryId:-1,emojiIds:l}};
_.B.computeSearchEmptyMessage_=function(V,l){return V&&l&&l.emojiIds&&l.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.B.computeSearching_=function(V){return this.emojiManager&&V.replace(iqZ,"").length>1};
_.B.computeSkinToneHidden=function(){var V;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((V=this.data)==null||!V.hideSkinTonePicker)};
_.B.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.B.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.B.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.B.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.B.selectSkinTone_=function(V){V=Number(V.target.getAttribute("tone"));this.set("emojiManager.skinTone",V);_.xB(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[V]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.B.skinToneChanged_=function(){_.h(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var V=_.h(this.hostElement).querySelector("#dropdown-content").children,l=0;l<V.length;l++)l===this.skinTone?V[l].setAttribute("selected",""):V[l].removeAttribute("selected")};
_.B.animateScroll_=function(V){this.lastAnimationTime_||(this.lastAnimationTime_=V);V-=this.lastAnimationTime_;V<200?(_.h(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*V/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.h(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.B.searchChanged_=function(){this.updateButtons_()};
_.B.updateButtons_=function(){var V=null;if(!this.search)for(var l=_.h(this.hostElement).querySelector("#categories").scrollTop,I=_.h(this.hostElement).querySelector("#categories").children,H=0;H<I.length;H++){var T=I[H];T.offsetTop<=l&&(V=T.id)}l=_.h(this.hostElement).querySelector("#category-buttons").children;for(I=0;I<l.length;I++)H=l[I],H.active=H.id===V};
var H0=lzE;H0.prototype.searchChanged_=H0.prototype.searchChanged_;H0.prototype.skinToneChanged_=H0.prototype.skinToneChanged_;H0.prototype.onEmojiHover_=H0.prototype.onEmojiHover_;H0.prototype.onSelectCategory_=H0.prototype.onSelectCategory_;H0.prototype.onShowEmojiVariantSelector=H0.prototype.onShowEmojiVariantSelector;H0.prototype.updateCategoriesAndPlaceholder_=H0.prototype.updateCategoriesAndPlaceholder_;H0.prototype.dataChanged=H0.prototype.dataChanged;
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],H0.prototype,"data",void 0);_.O([_.q({value:function(){return[]}}),
_.a("design:type",Array)],H0.prototype,"categories",void 0);_.O([_.q({value:function(){return[]}}),
_.a("design:type",Array)],H0.prototype,"categoryButtons",void 0);_.O([_.q({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.a("design:type",Boolean)],H0.prototype,"disableScroll",void 0);_.O([_.q({computed:"computeId_(data)",reflectToAttribute:!0}),_.a("design:type",String)],H0.prototype,"id",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],H0.prototype,"selected",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],H0.prototype,"disableIncrementalLoading",void 0);_.O([_.q(),_.a("design:type",String)],H0.prototype,"placeholder",void 0);_.O([_.q({value:""}),_.a("design:type",String)],H0.prototype,"search",void 0);_.O([_.q({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.a("design:type",Boolean)],H0.prototype,"searching",void 0);_.O([_.q({computed:"computeSearchCategory_(search)"}),_.a("design:type",Object)],H0.prototype,"searchCategory",void 0);
_.O([_.q({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.a("design:type",Object)],H0.prototype,"searchEmptyMessage",void 0);_.O([_.q({computed:"identity(emojiManager.skinTone)"}),_.a("design:type",Number)],H0.prototype,"skinTone",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],H0.prototype,"skinToneOpened",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],H0.prototype,"variantSelectorOpened",void 0);
_.O([_.q({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.a("design:type",Boolean)],H0.prototype,"skinToneHidden",void 0);_.O([_.q(),_.a("design:type",_.Z6)],H0.prototype,"emojiManager",void 0);_.O([_.q(),_.a("design:type",Object)],H0.prototype,"emojiVariantSelector",void 0);_.O([_.q(),_.a("design:type",Object)],H0.prototype,"emojiMultiPersonSelector",void 0);
_.O([_.q({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.a("design:type",Boolean)],H0.prototype,"shouldUseStickyPreferences",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H0.prototype,"dataChanged",null);_.O([_.b("data","selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H0.prototype,"updateCategoriesAndPlaceholder_",null);
_.O([_.W("yt-show-emoji-variant-selector"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],H0.prototype,"onShowEmojiVariantSelector",null);_.O([_.W("yt-emoji-picker-select-category"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],H0.prototype,"onSelectCategory_",null);_.O([_.W("yt-emoji-hover"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],H0.prototype,"onEmojiHover_",null);
_.O([_.b("skinTone"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H0.prototype,"skinToneChanged_",null);_.O([_.b("search"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H0.prototype,"searchChanged_",null);H0=_.O([_.Lm({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],H0);
_.u(H0,"yt-emoji-picker-renderer",function(){if(vqZ===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;uNE===void 0&&(uNE=document.createElement("template"));var H=uNE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);vqZ=V}V=vqZ;return V},{mode:2});var IzE=function(){var V=_.M.apply(this,arguments)||this;V.emojiManager=_.Q2;V.isDarkTheme=document.documentElement.hasAttribute("dark");V.selectedIndex=1;V.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return V};
_.t(IzE,_.M);_.B=IzE.prototype;_.B.handleEmojiCustomizationVisible=function(V){this.emojiPickerRenderer.selected=V;this.selectedIndex=1;V?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.B.emojiCustomizationSetChanged=function(){var V;(V=this.data)!=null&&V.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Ii(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.B.updateSaveButtonState=function(V){var l;(l=this.data)!=null&&l.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.K6("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:V}))};
_.B.emojiUrl=function(V){V=_.Sf(this.emojiManager,V);if(!V)return"";var l;V=(l=V.image)==null?void 0:l.thumbnails;return _.sI(V,24)||""};
_.B.emojiAlt=function(V){var l=_.Sf(this.emojiManager,V);if(!l)return V;var I,H,T,x=(l==null?void 0:(I=l.image)==null?void 0:(H=I.accessibility)==null?void 0:(T=H.accessibilityData)==null?void 0:T.label)||"";return x?x:l.isCustomEmoji?l.shortcuts[0]:l.emojiId||V};
_.B.emojiAriaLabel=function(V){var l,I;return((l=_.Sf(this.emojiManager,V))==null?void 0:(I=l.shortcuts)==null?void 0:I[0])||V};
_.B.onEmojiClick=function(V){V.model.index!==0&&(this.selectedIndex=V.model.index)};
_.B.onEmojiSelect=function(V){V=V.detail;var l,I;((l=this.data)==null?0:l.emojiCustomizationSetEntityKey)&&((I=this.emojiCustomizationSet)==null?0:I.emojiId)&&V.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,V.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.K6("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,V.emojiId,this.selectedIndex)}))};
_.B.canEditEmoji=function(V,l,I){V=V.indexOf(l);return V===I||V===0||I===0?!1:!0};
_.B.getUpdatedEmojiIdList=function(V,l,I){var H=V.indexOf(l);V=[].concat(_.oI(V));H>=0&&(V[H]=V[I]);V[I]=l;return V};
_.vI.Object.defineProperties(IzE,{template:{configurable:!0,enumerable:!0,get:function(){if(jsw===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;K$a===void 0&&(K$a=document.createElement("template"));var H=K$a;I.call(l,H.content.cloneNode(!0),V.content.firstChild);jsw=V}V=jsw;return V}}});
var T8=IzE;T8.prototype.onEmojiSelect=T8.prototype.onEmojiSelect;_.O([_.R(_.hM),_.a("design:type",Object)],T8.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],T8.prototype,"ytActionHandlerBehavior",void 0);_.O([_.Ij("yt-emoji-picker-renderer"),_.a("design:type",Object)],T8.prototype,"emojiPickerRenderer",void 0);
_.O([_.q({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(V,l){return _.nW(V.entities,"emojiCustomizationSetEntity",l)},
observer:"emojiCustomizationSetChanged"}),_.a("design:type",Object)],T8.prototype,"emojiCustomizationSet",void 0);_.O([_.q(),_.a("design:type",Object)],T8.prototype,"originalEmojiSet",void 0);_.O([_.q(),_.a("design:type",_.Z6)],T8.prototype,"emojiManager",void 0);_.O([_.q(),_.a("design:type",Object)],T8.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],T8.prototype,"isDarkTheme",void 0);_.O([_.q(),_.a("design:type",Object)],T8.prototype,"selectedIndex",void 0);
_.O([_.W("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],T8.prototype,"onEmojiSelect",null);T8=_.O([_.Lm({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],T8);var H2b;var TON;var BOb;var xna;var Un0=function(){var V=_.M.apply(this,arguments)||this;V.authorBadges=[];return V};
_.t(Un0,_.M);_.B=Un0.prototype;_.B.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.B.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]]"}}}}}};
_.B.dataChanged=function(){var V=TZf(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",V)};
_.B.updateMessage=function(){var V=this.data.message,l=_.h(_.h(this.hostElement).querySelector("#message"));l.textContent="";V&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(V))};
_.B.shouldSupportWholeItemClick=function(){return!0};
_.B.onShowOriginalClick=function(V){V.preventDefault();this.showOriginal=!0};
_.B.computeShowBar=function(V,l,I){return V&&l||I};
_.B.computeAuthorBadges=function(V){return V.authorBadges||[]};
_.B.computeAuthorIsOwner=function(V){return!!BZJ(V.authorBadges,"owner")};
_.B.computeAuthorNameColor=function(V){var l;if(_.z("live_chat_author_name_color_usernames")&&(V==null?0:(l=V.authorName)==null?0:l.simpleText))return _.wgt(_.NZ1(V.authorName.simpleText));if(_.z("live_chat_seed_color_usernames")&&(V==null?0:V.authorSeedColorArgb))return _.wgt(_.fm(V.authorSeedColorArgb));if(_.z("live_chat_colored_usernames"))return"#cc0000";var I;return _.z("live_chat_simple_color_usernames")&&(V==null?0:(I=V.authorName)==null?0:I.simpleText)&&(V==null?0:V.authorUsernameColorLight)&&
(V==null?0:V.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.fm(V.authorUsernameColorDark):_.fm(V.authorUsernameColorLight):""};
var B0=Un0;B0.prototype.updateMessage=B0.prototype.updateMessage;B0.prototype.dataChanged=B0.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],B0.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],B0.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],B0.prototype,"data",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],B0.prototype,"showOriginal",void 0);_.O([_.q({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.a("design:type",Boolean)],B0.prototype,"isDimmed",void 0);_.O([_.q({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.a("design:type",Boolean)],B0.prototype,"showBar",void 0);
_.O([_.q({computed:"computeAuthorBadges(data)"}),_.a("design:type",Array)],B0.prototype,"authorBadges",void 0);_.O([_.q({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],B0.prototype,"authorIsOwner",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],B0.prototype,"inCollapsedBanner",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],B0.prototype,"inBanner",void 0);
_.O([_.q({value:_.z("live_chat_hide_avatars"),reflectToAttribute:!0}),_.a("design:type",Boolean)],B0.prototype,"avatarHidden",void 0);_.O([_.q({computed:"computeAuthorNameColor(data)"}),_.a("design:type",String)],B0.prototype,"authorNameColor",void 0);_.O([_.q(),_.a("design:type",_.MX)],B0.prototype,"participantsManager",void 0);_.O([_.q({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.a("design:type",Object)],B0.prototype,"filledButtonOverrides",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B0.prototype,"dataChanged",null);_.O([_.b("data.message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B0.prototype,"updateMessage",null);B0=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],B0);
_.u(B0,"yt-live-chat-text-message-renderer",function(){if(xna===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;BOb===void 0&&(BOb=document.createElement("template"));var H=BOb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);xna=V}V=xna;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var xk=function(){var V=_.M.apply(this,arguments)||this;V.tonalButtonOverrides={type:"tonal",style:"overlay"};return V};
_.t(xk,_.M);
xk.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]]"}}}}}};
xk.prototype.shouldSupportInlineActionButtons=function(){return!0};
xk.prototype.shouldSupportWholeItemClick=function(){return!0};
_.vI.Object.defineProperties(xk.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
var UE=xk;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],UE.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],UE.prototype,"data",void 0);_.O([_.q(),_.a("design:type",_.MX)],UE.prototype,"participantsManager",void 0);
_.O([_.q(),_.a("design:type",Object)],UE.prototype,"tonalButtonOverrides",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.infoDialogButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],UE.prototype,"hasInfoDialogButton",null);UE=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],UE);
_.u(UE,"yt-live-chat-auto-mod-message-renderer",function(){if(TON===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;H2b===void 0&&(H2b=document.createElement("template"));var H=H2b;I.call(l,H.content.cloneNode(!0),V.content.firstChild);TON=V}V=TON;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var nIo;var $nE;var dnW;var wzb=function(){return _.M.apply(this,arguments)||this};
_.t(wzb,_.M);var NOJ=wzb;_.O([_.q(),_.a("design:type",Object)],NOJ.prototype,"data",void 0);NOJ=_.O([_.A({is:"ytd-factoid-renderer",disableElementRegistration:!0})],NOJ);
_.u(NOJ,"ytd-factoid-renderer",function(){if(dnW!==void 0)return dnW;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return dnW=V},{mode:1});var KE0=function(){return _.M.apply(this,arguments)||this};
_.t(KE0,_.M);KE0.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
var nM=KE0;_.O([_.q(),_.a("design:type",Object)],nM.prototype,"data",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);nM=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],nM);
_.u(nM,"yt-live-chat-channel-activity-reputation-renderer",function(){if($nE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;nIo===void 0&&(nIo=document.createElement("template"));var H=nIo;I.call(l,H.content.cloneNode(!0),V.content.firstChild);$nE=V}V=$nE;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var jM0;var Y$i;var LEb=function(){return _.M.apply(this,arguments)||this};
_.t(LEb,_.M);LEb.prototype.ready=function(){var V=document.querySelector("yt-live-chat-app");V&&V.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
var $k=LEb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Boolean)],$k.prototype,"menuFocused",void 0);_.O([_.q(),_.a("design:type",Object)],$k.prototype,"data",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],$k.prototype,"ytLiveChatItemBehavior",void 0);$k=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],$k);
_.u($k,"yt-live-chat-donation-announcement-renderer",function(){if(Y$i===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;jM0===void 0&&(jM0=document.createElement("template"));var H=jM0;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Y$i=V}V=Y$i;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var e5i;var yZ0,t$E=function(){if(yZ0!==void 0)return yZ0;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;e5i===void 0&&(e5i=document.createElement("template"));var H=e5i;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return yZ0=V};var rZ0=function(){return _.M.apply(this,arguments)||this};
_.t(rZ0,_.M);_.vI.Object.defineProperties(rZ0,{template:{configurable:!0,enumerable:!0,get:function(){return t$E()}}});
var d9=rZ0;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],d9.prototype,"data",void 0);d9=_.O([_.Lm({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],d9);_.u(d9,"yt-live-chat-empty-feed-view-model",function(){return t$E()},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var GnN;var EoN;var JZb=function(){return _.M.apply(this,arguments)||this};
_.t(JZb,_.M);JZb.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"}}}}}};
_.vI.Object.defineProperties(JZb.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var V,l;return{runs:[{text:(V=this.data)==null?void 0:(l=V.channelName)==null?void 0:l.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var V=[],l;if((l=this.data)==null||!l.channelBadges)return V;var I;l=_.U((I=this.data)==null?void 0:I.channelBadges);for(I=l.next();!I.done;I=l.next()){I=_.y(I.value,lEE);var H=void 0,T=void 0;if((H=I)==null?0:(T=H.badgeImage)==null?0:T.sources)H=void 0,T={liveChatAuthorBadgeRenderer:{tooltip:I.tooltip,accessibility:{accessibilityData:{label:(H=_.y(I.rendererContext,_.uP))==null?void 0:H.label}}}},I.badgeImage.sources[0].clientResource?T.liveChatAuthorBadgeRenderer.icon=
{iconType:I.badgeImage.sources[0].clientResource.imageName}:T.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:I.badgeImage.sources},V.push(T)}return V}}});
var w9=JZb;_.O([_.q(),_.a("design:type",Object)],w9.prototype,"data",void 0);_.O([_.Q("data.channelName"),_.a("design:type",Object),_.a("design:paramtypes",[])],w9.prototype,"channelName",null);_.O([_.Q("data.channelBadges"),_.a("design:type",Array),_.a("design:paramtypes",[])],w9.prototype,"channelBadges",null);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],w9.prototype,"ytRendererstamperBehavior",void 0);
w9=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],w9);
_.u(w9,"yt-live-chat-identity-view-model",function(){if(EoN===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;GnN===void 0&&(GnN=document.createElement("template"));var H=GnN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);EoN=V}V=EoN;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var ooZ;var h$W;var PlE;var DfW;var ZBa=function(){var V=_.M.apply(this,arguments)||this;V.hidden=!1;V.supportsInlineActionButtons=!0;return V};
_.t(ZBa,_.M);ZBa.prototype.ready=function(){var V;((V=document.querySelector("yt-live-chat-app"))==null?0:V.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
ZBa.prototype.dataChanged=function(V){var l=(0,_.mL)(_.h(this.hostElement).querySelector("#detail-text"));l.textContent="";(V==null?0:V.detailText)&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(V.detailText))};
var No=ZBa;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],No.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],No.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q({observer:"dataChanged"}),_.a("design:type",Object)],No.prototype,"data",void 0);
_.O([_.q({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.a("design:type",Object)],No.prototype,"hidden",void 0);No=_.O([_.A({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],No);
_.u(No,"yt-live-chat-legacy-paid-message-renderer",function(){if(DfW===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;PlE===void 0&&(PlE=document.createElement("template"));var H=PlE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);DfW=V}V=DfW;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var SCo;var R$i;var Qq3={},cZW=function(){return _.To.apply(this,arguments)||this};
_.t(cZW,_.To);cZW.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var KM=cZW;KM.prototype.onLiveChatMembershipItemBehaviorClick=KM.prototype.onLiveChatMembershipItemBehaviorClick;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],KM.prototype,"data",void 0);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],KM.prototype,"onLiveChatMembershipItemBehaviorClick",null);KM=_.O([_.B1()],KM);
Qq3.YtLiveChatMembershipItemBehavior=[KM.prototype,_.m.YtRendererBehavior];var Wya=function(){var V=_.M.apply(this,arguments)||this;V.supportsInlineActionButtons=!0;V.hasPrimaryHeaderText=!1;V.showOnlyHeader=!1;V.authorBadges=[];V.modern=_.z("web_button_rework_with_live");V.buttonOverrides={style:"overlay",type:"filled"};return V};
_.t(Wya,_.M);_.B=Wya.prototype;_.B.shouldSupportInlineActionButtons=function(){return!0};
_.B.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.B.ready=function(){var V=document.querySelector("yt-live-chat-app");V&&V.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.B.messageChanged=function(){var V=this.data.message,l=(0,_.mL)(_.h(this.hostElement).querySelector("#message"));l.textContent="";V&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(V))};
_.B.computeHasPrimaryHeaderText=function(V){return!(!V||!V.headerPrimaryText)};
_.B.computeShowOnlyHeader=function(V,l){return this.isMessageEmpty(V,l)};
_.B.computeAuthorBadges=function(V){return V.authorBadges||[]};
_.B.isMessageEmpty=function(V,l){return!V||V.empty?!0:!V.message&&!V.inputField&&!l};
_.B.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.B.getInputElement=function(){return _.h(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.B.inputFocus=function(){var V=this.getInputElement();V&&V.focus()};
_.B.inputInsertEmoji=function(V){var l=this.getInputElement();l&&l.insertEmoji(V)};
_.B.inputMessage=function(){var V=this.getInputElement();return V&&this.data.inputField?(V.completeEmojis(),_.hU(V.liveChatRichMessageInput)):null};
_.B.onFooterButtonClick=function(){this.data.footerButton&&_.B$(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.B.shouldSupportWholeItemClick=function(){return!0};
var jE=Wya;jE.prototype.isDeletedChanged=jE.prototype.isDeletedChanged;jE.prototype.messageChanged=jE.prototype.messageChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],jE.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.R(Qq3.YtLiveChatMembershipItemBehavior),_.a("design:type",Object)],jE.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],jE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],jE.prototype,"data",void 0);_.O([_.q({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.a("design:type",Object)],jE.prototype,"hasPrimaryHeaderText",void 0);_.O([_.q({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.a("design:type",Object)],jE.prototype,"showOnlyHeader",void 0);
_.O([_.q({computed:"computeAuthorBadges(data)"}),_.a("design:type",Array)],jE.prototype,"authorBadges",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],jE.prototype,"modern",void 0);_.O([_.b("data.message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jE.prototype,"messageChanged",null);_.O([_.b("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jE.prototype,"isDeletedChanged",null);
jE=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],jE);
_.u(jE,"yt-live-chat-membership-item-renderer",function(){if(R$i===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;SCo===void 0&&(SCo=document.createElement("template"));var H=SCo;I.call(l,H.content.cloneNode(!0),V.content.firstChild);R$i=V}V=R$i;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var bBZ;var qCb;var M$w=function(){return _.M.apply(this,arguments)||this};
_.t(M$w,_.M);M$w.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var Yk=M$w;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Yk.prototype,"data",void 0);Yk=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Yk);
_.u(Yk,"yt-live-chat-mode-change-message-renderer",function(){if(qCb===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;bBZ===void 0&&(bBZ=document.createElement("template"));var H=bBZ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);qCb=V}V=qCb;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var sqo;var pm0;var AZw=function(){return _.M.apply(this,arguments)||this};
_.t(AZw,_.M);var LM=AZw;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],LM.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],LM.prototype,"data",void 0);LM=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],LM);
_.u(LM,"yt-live-chat-moderation-message-renderer",function(){if(pm0===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;sqo===void 0&&(sqo=document.createElement("template"));var H=sqo;I.call(l,H.content.cloneNode(!0),V.content.firstChild);pm0=V}V=pm0;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var uyN;var voa;var OB3=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("web_button_rework");return V};
_.t(OB3,_.M);OB3.prototype.onClick=function(){var V;if((V=this.data)!=null&&V.onClickCommand){var l;_.li.instance.resolveCommand((l=this.data)==null?void 0:l.onClickCommand)}};
var eE=OB3;_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],eE.prototype,"modern",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.hM),_.a("design:type",Object)],eE.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],eE.prototype,"ytLiveChatItemBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],eE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],eE.prototype,"data",void 0);eE=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],eE);
_.u(eE,"yt-live-chat-offer-click-count-message-renderer",function(){if(voa===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;uyN===void 0&&(uyN=document.createElement("template"));var H=uyN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);voa=V}V=voa;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var Clv;var ae0=function(){return _.M.apply(this,arguments)||this};
_.t(ae0,_.M);var feE=ae0;_.O([_.q(),_.a("design:type",Object)],feE.prototype,"data",void 0);feE=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],feE);
_.u(feE,"yt-live-chat-placeholder-item-renderer",function(){if(Clv===void 0){var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);Clv=V}V=Clv;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var go0;var mfW;var iBW=new Mr(7),VvZ=function(){var V=_.M.apply(this,arguments)||this;V.data={};return V};
_.t(VvZ,_.M);VvZ.prototype.dataChanged=function(){var V;((V=this.data)==null?0:V.class)&&_.fY(this.hostElement,this.data.class,!0);var l;((l=this.oldData)==null?0:l.class)&&_.fY(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
VvZ.prototype.computeTimestampString=function(V){return iBW.format(new Date(V/1E3))};
var kk=VvZ;kk.prototype.dataChanged=kk.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],kk.prototype,"data",void 0);_.O([_.q({computed:"computeTimestampString(data.timestampUsec)"}),_.a("design:type",String)],kk.prototype,"timestampString",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kk.prototype,"dataChanged",null);kk=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],kk);
_.u(kk,"yt-live-chat-server-error-message",function(){if(mfW===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;go0===void 0&&(go0=document.createElement("template"));var H=go0;I.call(l,H.content.cloneNode(!0),V.content.firstChild);mfW=V}V=mfW;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var loa;var IoE;var HEa=function(){var V=_.M.apply(this,arguments)||this;V.defaultToFilledIcon=!1;return V};
_.t(HEa,_.M);HEa.prototype.computeHasPrimaryColorIcon=function(V){return V==="SPARK"||V==="SPONSORSHIP_STAR"};
HEa.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
var FY=HEa;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],FY.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],FY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],FY.prototype,"defaultToFilledIcon",void 0);_.O([_.q(),_.a("design:type",Object)],FY.prototype,"data",void 0);
_.O([_.q({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.a("design:type",Boolean)],FY.prototype,"hasPrimaryColorIcon",void 0);FY=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],FY);
_.u(FY,"yt-live-chat-viewer-engagement-message-renderer",function(){if(IoE===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;loa===void 0&&(loa=document.createElement("template"));var H=loa;I.call(l,H.content.cloneNode(!0),V.content.firstChild);IoE=V}V=IoE;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var T1w;var B1J=function(){var V=_.M.apply(this,arguments)||this;V.modernUpdate=!1;V.buttonStyle="overlay";V.buttonType="filled";return V};
_.t(B1J,_.M);B1J.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
B1J.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
var XY=B1J;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],XY.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],XY.prototype,"modernUpdate",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],XY.prototype,"buttonStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],XY.prototype,"buttonType",void 0);
XY=_.O([_.A({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],XY);
_.u(XY,"ytd-ad-hover-text-button-renderer",function(){if(T1w!==void 0)return T1w;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return T1w=V},{mode:1});var xba;var UbW=function(){var V=_.M.apply(this,arguments)||this;V.buttonOverrides={size:"XS"};V.modern=_.z("web_button_rework");return V};
_.t(UbW,_.M);UbW.prototype.onHelpTap=function(V){this.data&&this.data.informationDialog&&(_.B$(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),V.preventDefault(),V.stopPropagation())};
var z8=UbW;_.O([_.q(),_.a("design:type",Object)],z8.prototype,"buttonOverrides",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],z8.prototype,"modern",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],z8.prototype,"data",void 0);z8=_.O([_.A({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],z8);
_.u(z8,"ytd-live-chat-purchased-product-message-renderer",function(){if(xba!==void 0)return xba;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return xba=V},{mode:1});var nKN;var $bw;var dbW=function(){var V=_.M.apply(this,arguments)||this;V.isContainerDeleted=!1;return V};
_.t(dbW,_.M);dbW.prototype.onContextMenuClick=function(V){this.ytLiveChatItemBehavior.showContextMenu(V)};
dbW.prototype.isContainerDeletedChanged=function(){this.isContainerDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.primaryText",null),this.set("data.secondaryText",null),this.set("data.image",null))};
var yb=dbW;yb.prototype.isContainerDeletedChanged=yb.prototype.isContainerDeletedChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],yb.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yb.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],yb.prototype,"isContainerDeleted",void 0);
_.O([_.q(),_.a("design:type",String)],yb.prototype,"deletedStateMessage",void 0);_.O([_.b("isContainerDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yb.prototype,"isContainerDeletedChanged",null);yb=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],yb);
_.u(yb,"ytd-sponsorships-live-chat-header-renderer",function(){if($bw!==void 0)return $bw;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return $bw=V},{mode:1});var tN=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("web_button_rework_with_live");V.buttonOverrides={style:"overlay",type:"filled"};return V};
_.t(tN,_.M);tN.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]]"}}}}}};
tN.prototype.onCtaButtonClick=function(){var V,l=_.y((V=this.data)==null?void 0:V.optInPrompt,_.RG);if(V=this.maybeGetButtonCommand(l)){var I;(I=_.x7())==null||I.clickCommand(V)}};
tN.prototype.maybeGetButtonCommand=function(V){return!V||!V.command||_.y(V.command,tlv)===void 0&&_.y(V.command,yt0)===void 0?null:V.command};
tN.prototype.shouldHideOptinPrompt=function(V,l){return!V||l};
var r9=tN;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],r9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],r9.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],r9.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],r9.prototype,"modern",void 0);
r9=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],r9);
_.u(r9,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(nKN!==void 0)return nKN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return nKN=V},{mode:1});var wZi;var N1E=function(){return _.M.apply(this,arguments)||this};
_.t(N1E,_.M);N1E.prototype.onContextMenuClick=function(V){this.ytLiveChatItemBehavior.showContextMenu(V)};
N1E.prototype.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
var G8=N1E;G8.prototype.isDeletedChanged=G8.prototype.isDeletedChanged;_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],G8.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],G8.prototype,"data",void 0);_.O([_.b("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],G8.prototype,"isDeletedChanged",null);
G8=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],G8);
_.u(G8,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(wZi!==void 0)return wZi;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return wZi=V},{mode:1});var K0b=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return V};
_.t(K0b,_.M);_.B=K0b.prototype;
_.B.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"}}}};
_.B.handleLiveChatAction=function(V){_.y(V,vCW)?this.handleMarkChatItemAsDeletedAction(_.y(V,vCW)):_.y(V,uQ0)&&this.handleRemoveChatItemAction(_.y(V,uQ0))};
_.B.handleLiveChatActions=function(V){V.forEach(this.handleLiveChatAction,this)};
_.B.handleMarkChatItemAsDeletedAction=function(V){var l=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(H,T){var x=Object.keys(H)[0];Object.values(H)[0].id===V.targetItemId&&l.markAsDeleted("data.items",T,x,V.deletedStateMessage,V.showOriginalContentMessage)})};
_.B.handleRemoveChatItemAction=function(V){var l=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(H,T){Object.values(H)[0].id===V.targetItemId&&l.splice("data.items",T,1)})};
_.B.markAsDeleted=function(V,l,I,H,T){V=[V,l,I].join(".");this.set(V+".deletedStateMessage",H);this.set(V+".showOriginalContentMessage",T)};
var EE=K0b;_.O([_.q(),_.a("design:type",Object)],EE.prototype,"data",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],EE.prototype,"ytActionHandlerBehavior",void 0);EE=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],EE);
_.u(EE,"yt-live-chat-item-display-list-renderer",function(){if(h$W===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;ooZ===void 0&&(ooZ=document.createElement("template"));var H=ooZ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);h$W=V}V=h$W;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var jlZ;var Ycv,L0B=function(){if(Ycv!==void 0)return Ycv;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;jlZ===void 0&&(jlZ=document.createElement("template"));var H=jlZ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return Ycv=V};var e9Z=function(){var V=_.M.apply(this,arguments)||this;V.isHeader=!1;return V};
_.t(e9Z,_.M);e9Z.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.vI.Object.defineProperties(e9Z,{template:{configurable:!0,enumerable:!0,get:function(){return L0B()}}});
var JN=e9Z;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],JN.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],JN.prototype,"isHeader",void 0);JN=_.O([_.Lm({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],JN);
_.u(JN,"yt-live-chat-item-display-renderer",function(){return L0B()},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var kCZ,F03,rao,tvB;
kCZ={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}};F03={home:"eohps",search:"eosps",watch:"eowps"};_.XZZ=["watch","search","home"];
_.oH=function(){this.JSC$12002_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12002_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.h6("PRECONSTRUCTION_DELAY",0);this.signals_=_.b1();this.targetPage_=""};
_.oH.prototype.init=function(V,l){V=V===void 0?"":V;l=l===void 0?null:l;if(this.JSC$12002_isInitialized_)this.abort();else if(this.JSC$12002_isInitialized_=!0,V&&_.z90(this,V),l){var I=_.qB(this.signals_,"pcl")?0:10,H=function(){for(var T=0,x;x=_.XZZ[T++];)x!=V&&x!=l&&this.pendingPages_.push(x);_.yaa(this)}.bind(this);
this.signals_.parkOrScheduleJob(H,I,"pcl")}};
_.oH.prototype.abort=function(){this.fragmentJobId_&&(_.r0.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);tvB(this)};
_.z90=function(V,l){V.JSC$12002_isInitialized_&&!V.targetPage_&&(V.targetPage_=l,rao(V,l),V.isInitialPass_=!1,rao(V,l),V.signals_.processSignal(F03[V.targetPage_]),tvB(V),_.yaa(V))};
_.yaa=function(V){V.pendingPages_.length&&!V.pagePreparerJobId_&&(V.pagePreparerJobId_=_.et(_.r0,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.z90(this,this.pendingPages_.shift())}.bind(V),V.DEFAULT_DELAY_))};
rao=function(V,l){if(l=kCZ[l])for(var I in l){var H=!1,T=I;I.charAt(0)=="~"&&(H=!0,T=I.substring(1));var x=l[I];x=typeof x=="object"?x:{count:x};l[I]=x;x.componentName=T;x.count>0&&(V.isInitialPass_?H||V.isSeenDuringInitialPass_[T]||(V.JSC$12002_queue_.push({componentName:T,count:1,signals:x.signals}),V.isSeenDuringInitialPass_[T]=!0,x.count--):V.JSC$12002_queue_.push(x))}};
tvB=function(V){V.JSC$12002_queue_.length=0;V.targetPage_="";V.isInitialPass_=!0;V.signals_.processSignal("eop")};
_.oH.getInstance=function(){return _.$_(_.oH)};var GCJ=function(){this.signals=_.b1();this.init()};
GCJ.prototype.startPreconstruction=function(){_.oH.getInstance().init(_.PO("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
GCJ.prototype.init=function(){EKi(this);window.Polymer&&YwN&&KGK();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var V=_.nK.ytcsi;if(V&&V.gt&&(V=V.gt())&&V.tick&&(V.tick.aft>0||V.tick.pbs>0)&&(_.PO("IS_HOMEPAGE_COLD")||_.PO("IS_RESULTS_PAGE_COLD")||_.PO("IS_WATCH_PAGE_COLD"))){JaB(this);break a}xeW(u5K,this.onNotifications,this)}};
var EKi=function(V){var l=function(){V.signals.processSignal("dl")};
document.readyState==="complete"?(_.Rw(Error("vh"),"WARNING"),l()):_.QN1(window,"load",l)};
GCJ.prototype.onNotifications=function(V){V.timer||(_.PO("IS_HOMEPAGE_COLD")||_.PO("IS_RESULTS_PAGE_COLD")||_.PO("IS_WATCH_PAGE_COLD"))&&JaB(this)};
var JaB=function(V){V.signals.parkOrScheduleJob(function(){V.signals.processSignal("eocs")},10,"eor")};
new GCJ;var hN,oKN=function(){return _.To.apply(this,arguments)||this};
_.t(oKN,_.To);_.B=oKN.prototype;_.B.enableActiveViewMeasurement=function(V){if(this.isActiveViewEnabled(V)){var l=this.getUrlPrefixesFromCommand(V.viewableCommands);V=this.getUrlPrefixesFromCommand(V.endOfSessionCommands);hN||(hN=new XDq(this.getVersion()));zAT(hN,this.hostElement);ySJ(hN,this.hostElement,l,V)}};
_.B.stopActiveViewMeasurement=function(){hN&&zAT(hN,this.hostElement)};
_.B.isActiveViewEnabled=function(V){return!!V&&(this.hasAtLeastOneUrl(V.viewableCommands)||this.hasAtLeastOneUrl(V.endOfSessionCommands))};
_.B.hasAtLeastOneUrl=function(V){return!!V&&V.length>0&&V[0].loggingUrls!=null&&V[0].loggingUrls.length>0};
_.B.getVersion=function(){var V=_.h6("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(V==null?void 0:V.length)===2?V[1]:null};
_.B.getUrlPrefixesFromCommand=function(V){if(!V)return[];var l=[];V=_.U(V);for(var I=V.next();!I.done;I=V.next())if(I=I.value,I.loggingUrls){I=_.U(I.loggingUrls);for(var H=I.next();!H.done;H=I.next())H=H.value,H.baseUrl&&l.push(H.baseUrl)}return l};
var h9J=oKN;h9J=_.O([_.B1()],h9J);var P0=[h9J.prototype];var PA3=function(){return _.To.apply(this,arguments)||this};
_.t(PA3,_.To);_.vI.Object.defineProperties(PA3.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.z("enable_entity_store_from_dependency_injection")?_.P1():_.v4()}}});
var Dba=PA3;Dba=_.O([_.B1()],Dba);_.DS=[z4.prototype,Dba.prototype];var ZEv=["ytd-rich-shelf-renderer"],ScZ=function(){var V=_.To.apply(this,arguments)||this;V._noAccessors=!0;V.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";V.followUpDialogPromise=null;V.followUpDialogPromiseResolve=null;V.followUpDialogPromiseReject=null;return V};
_.t(ScZ,_.To);_.B=ScZ.prototype;_.B.dismissibleItemIsDismissedChanged_=function(V){_.z("kevlar_fluid_dismiss")&&(V?_.B$(this.hostElement,"yt-dismissible-item-dismissed"):_.B$(this.hostElement,"yt-dismissible-item-undismissed"))};
_.B.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.B.dismissibleItemReset_=function(){var V=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 _.UZ(function(l,I){V.followUpDialogPromiseResolve=l;V.followUpDialogPromiseReject=I});
_.B$(this.hostElement,"yt-enable-lockup-interaction")};
_.B.dismissibleItemOnYtServiceRequestSent_=function(V,l){l.actions&&this.dismissibleItemProcessActions(l.actions,V)};
_.B.dismissibleItemOnRequestSent=function(V){if(_.z("web_button_rework"))for(var l=_.U(V.detail),I=l.next();!I.done;I=l.next()){var H=void 0;(I=(H=_.y(I.value,_.j1))==null?void 0:H.actions)&&this.dismissibleItemProcessActions(I,V)}};
_.B.dismissibleItemOnCommandSent=function(V,l){l&&this.dismissibleItemProcessActions(l,V)};
_.B.setAndGetDismissedContentId=function(V){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+V};
_.B.replayDismissAction=function(V){this.dismissibleItemProcessActions([V])};
_.B.dismissibleItemProcessActions=function(V,l){for(var I=0;I<V.length;I++){var H=V[I],T=void 0;((T=_.y(H,_.NJ))==null?0:T.commands)&&this.dismissibleItemProcessActions(_.y(H,_.NJ).commands,l);if(_.y(H,_.zj)){if(T=_.y(H,_.zj),!T.replaceParentSection||ZEv.includes(this.hostElement.nodeName.toLowerCase()))_.z("web_see_fewer_shorts_reactive_dismissal")&&T.groupDismissal&&SCc(this,T.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(T),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.K6("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:H})),H=void 0,(H=l)==null||H.stopPropagation()}else if(_.y(H,TRZ))this.dismissibleItemHandleHideEnclosingAction_(),H=void 0,(H=l)==null||H.stopPropagation();else if(_.y(H,YOZ))_.z("web_see_fewer_shorts_reactive_dismissal")&&(H=_.y(H,YOZ),T=void 0,((T=H)==null?0:T.targetGroupId)&&SCc(this,{targetGroupId:H.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.K6("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),H=void 0,(H=l)==null||H.stopPropagation();else if(_.y(H,_.j1))(H=_.y(H,_.j1).actions)&&_.d6(this.hostElement,H,this.hostElement),H=void 0,(H=l)==null||H.stopPropagation();else{var x=T=void 0;((T=_.y(H,_.RV))==null?void 0:T.signal)!=="TELL_US_WHY"||((x=_.y(H,_.RV))==null?0:x.targetId)&&_.z("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),H=void 0,(H=l)==null||H.stopPropagation())}}};
_.B.dismissibleItemOnYtServiceRequestCompleted_=function(V,l){var I=this.get("feedbackResponses.0.followUpDialog",l.data);I?this.followUpDialogPromiseResolve(I):l.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(l.actions,V)};
_.B.dismissibleItemHandleReplaceEnclosingAction_=function(V){this.dismissedRenderer=V.item;this.isDismissed=!0;var l=null;(l=_.h(this.hostElement).querySelector("#dismissed"))&&_.Al(this,function(){_.MD(l)});
_.B$(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.B.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.B.dismissibleItemHandleUndoFeedbackAction_=function(){_.B$(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.B.dismissibleItemHandleTellUsWhySignalAction_=function(){var V=this;this.followUpDialogPromise.then(function(l){V.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:l}})})};
var ZS=ScZ;ZS.prototype.dismissibleItemOnYtServiceRequestCompleted_=ZS.prototype.dismissibleItemOnYtServiceRequestCompleted_;ZS.prototype.dismissibleItemOnCommandSent=ZS.prototype.dismissibleItemOnCommandSent;ZS.prototype.dismissibleItemOnRequestSent=ZS.prototype.dismissibleItemOnRequestSent;ZS.prototype.dismissibleItemOnYtServiceRequestSent_=ZS.prototype.dismissibleItemOnYtServiceRequestSent_;ZS.prototype.dismissibleItemDataChanged_=ZS.prototype.dismissibleItemDataChanged_;
ZS.prototype.dismissibleItemIsDismissedChanged_=ZS.prototype.dismissibleItemIsDismissedChanged_;_.O([_.R(_.u5),_.a("design:type",Object)],ZS.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],ZS.prototype,"ytdReduxBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],ZS.prototype,"isDismissed",void 0);_.O([_.q(),_.a("design:type",Object)],ZS.prototype,"dismissedRenderer",void 0);
_.O([_.b("isDismissed"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean]),_.a("design:returntype")],ZS.prototype,"dismissibleItemIsDismissedChanged_",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZS.prototype,"dismissibleItemDataChanged_",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],ZS.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.O([_.W("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ZS.prototype,"dismissibleItemOnRequestSent",null);
_.O([_.W("yt-dismissible-item-action"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Array]),_.a("design:returntype")],ZS.prototype,"dismissibleItemOnCommandSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],ZS.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);ZS=_.O([_.B1()],ZS);_.SE=[_.u5,_.DS,ZS.prototype];var RH=function(){var V=_.To.apply(this,arguments)||this;V.disableGridStateAware=!1;V.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};V.currentGridClass="";return V};
_.t(RH,_.To);RH.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Al(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var V=this.gridStateAwareGetElement();_.fY(V,"grid",!0)}};
RH.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
RH.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.h(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
RH.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var V="grid-disabled";else{V=_.KnZ.getInstance();var l=this.get("pageSubtype");V=l&&dsa.includes(l)?"grid-disabled":V.currentSnapState_?V.currentSnapState_.className:null}(l=this.gridStateAwareGetElement())&&V!==this.currentGridClass&&(V&&_.fY(l,V,!0),this.currentGridClass&&_.fY(l,this.currentGridClass,!1),this.currentGridClass=V)};
var Qb=RH;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Qb.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",String)],Qb.prototype,"gridStateAwareSizingElementSelector",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Qb.prototype,"disableGridStateAware",void 0);Qb=_.O([_.B1()],Qb);_.c0=[Qb.prototype,_.aU.YtActionHandlerBehavior];_.W0=new _.Vr("GUIDE_TOKEN");var R9Z;_.bM={};R9Z=function(){var V=_.To.apply(this,arguments)||this;V.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 V};
_.t(R9Z,_.To);_.B=R9Z.prototype;_.B.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.B.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var V=_.F().resolve(_.Cs(_.W0));V&&(this.guidePersistentAndVisible=V.getGuidePersistentAndVisible(),this.activeEndpoint=V.getActiveEndpoint(),this.guideOpened=V.getGuideOpened(),this.miniGuideVisible=V.getMiniGuideVisible())};
_.B.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.B.handleGuideStateAction=function(V){this.guidePersistentAndVisible=V};
_.B.handleMiniGuideStateAction=function(V){this.miniGuideVisible=V};
_.B.handleGuideOpenedAction=function(V){this.guideOpened=V};
_.B.handleActiveEndpointAction=function(V){this.activeEndpoint=V};
var qo=R9Z;qo.prototype.onActiveEndpointChange=qo.prototype.onActiveEndpointChange;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],qo.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],qo.prototype,"guidePersistentAndVisible",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],qo.prototype,"miniGuideVisible",void 0);_.O([_.q(),_.a("design:type",Object)],qo.prototype,"activeEndpoint",void 0);
_.O([_.b("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qo.prototype,"onActiveEndpointChange",null);_.O([_.q(),_.a("design:type",Boolean)],qo.prototype,"guideOpened",void 0);qo=_.O([_.B1()],qo);_.bM.YtdGuideStateAwareBehavior=[];_.bM.YtdGuideStateAwareBehavior.push(qo.prototype,_.aU.YtActionHandlerBehavior);var QlN=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],caZ=function(){var V=_.To.apply(this,arguments)||this;V.hoverJobId=0;V.JSC$12033_touched=!1;return V};
_.t(caZ,_.To);_.B=caZ.prototype;_.B.created=function(){this.useExpandableTooltip=!QlN.includes(this.is)};
_.B.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.B.detached=function(){this.useExpandableTooltip=!1};
_.B.lockupOnDown=function(V){this.interactionElement&&!_.qi(_.b3(V),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.B.lockupOnUp=function(V){this.interactionElement&&!_.qi(_.b3(V),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.B.onTouchStart=function(){this.JSC$12033_touched=!0};
_.B.lockupOnMouseEnter=function(){var V=this,l=_.g7("kevlar_lockup_hover_delay",-1);this.JSC$12033_touched&&l>=0?(_.r0.cancelJob(this.hoverJobId),this.hoverJobId=_.r0.addJob(function(){V.lockupIsHovered=!0},8,l),this.JSC$12033_touched=!1):this.lockupIsHovered=!0};
_.B.lockupOnMouseLeave=function(){this.hoverJobId&&(_.r0.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.B.lockupOnPopupClosed=function(V,l){var I;((I=l.popupRenderer)==null?void 0:I.is)==="ytd-menu-popup-renderer"&&(V=l.popupRenderer.veData,l=_.oa(),V&&l&&_.Ac(l,[V]))};
_.B.lockupOnLockupRequested=function(V){var l=V.detail.videoIds[0],I;V.detail&&l===((I=this.data)==null?void 0:I.videoId)&&(V.detail.returnValue=[this.data])};
_.B.lockupOnYtServiceRequestSent=function(V,l){if(V=l.actions)for(var I=0;I<V.length;I++){var H=V[I];if(H.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&l.ajaxPromise){var T=void 0,x=(T=_.y(l.endpoint,_.D0))==null?void 0:T.playlistId;T=void 0;H=(T=H.removedVideoId)!=null?T:"";Q_v(_.sg(),H,x)}else H.action==="ACTION_REMOVE_VIDEO"&&l.ajaxPromise&&(x=void 0,H=(x=H.setVideoId)!=null?x:"",_.cDN(_.sg(),H))}};
_.B.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.B.lockupOnLockupEnabled=function(){if(!this.$){var V=_.F().resolve(_.pa).getCurrentPage(),l=this.getParentRenderer?this.getParentRenderer():void 0;_.hF(new _.Yd("component not ready",this.is,this.isAttached,V==null?void 0:V.is,l==null?void 0:l.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
var Mo=caZ;Mo.prototype.lockupOnLockupEnabled=Mo.prototype.lockupOnLockupEnabled;Mo.prototype.lockupOnLockupDisabled=Mo.prototype.lockupOnLockupDisabled;Mo.prototype.lockupOnYtServiceRequestSent=Mo.prototype.lockupOnYtServiceRequestSent;Mo.prototype.lockupOnLockupRequested=Mo.prototype.lockupOnLockupRequested;Mo.prototype.lockupOnPopupClosed=Mo.prototype.lockupOnPopupClosed;Mo.prototype.lockupOnMouseLeave=Mo.prototype.lockupOnMouseLeave;Mo.prototype.lockupOnMouseEnter=Mo.prototype.lockupOnMouseEnter;
Mo.prototype.onTouchStart=Mo.prototype.onTouchStart;Mo.prototype.lockupOnUp=Mo.prototype.lockupOnUp;Mo.prototype.lockupOnDown=Mo.prototype.lockupOnDown;_.O([_.q(),_.a("design:type",Object)],Mo.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],Mo.prototype,"lockupIsHovered",void 0);_.O([_.q(),_.a("design:type",Boolean)],Mo.prototype,"lockupTouchTriggered",void 0);_.O([_.q(),_.a("design:type",Boolean)],Mo.prototype,"useExpandableTooltip",void 0);
_.O([_.Ij("#interaction"),_.a("design:type",Object)],Mo.prototype,"interactionElement",void 0);_.O([_.W("down"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Mo.prototype,"lockupOnDown",null);_.O([_.W("up"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Mo.prototype,"lockupOnUp",null);
_.O([_.W("touchstart"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mo.prototype,"onTouchStart",null);_.O([_.W("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mo.prototype,"lockupOnMouseEnter",null);_.O([_.W("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mo.prototype,"lockupOnMouseLeave",null);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Mo.prototype,"lockupOnPopupClosed",null);_.O([_.W("yt-lockup-requested"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Mo.prototype,"lockupOnLockupRequested",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],Mo.prototype,"lockupOnYtServiceRequestSent",null);_.O([_.W("yt-disable-lockup-interaction"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mo.prototype,"lockupOnLockupDisabled",null);
_.O([_.W("yt-enable-lockup-interaction"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mo.prototype,"lockupOnLockupEnabled",null);Mo=_.O([_.B1()],Mo);_.sE=[Mo.prototype];_.W0v={YtdReduxBehavior:[]};_.W0v.YtdReduxBehavior.push.apply(_.W0v.YtdReduxBehavior,_.DS);var bEv=function(){var V=_.To.apply(this,arguments)||this;V._noAccessors=!0;V.disableNowPlaying=!1;V.disableTooltips=!1;V.useHoveredProperty=!1;V.hovered=!1;V.isThumbnailHovered_=!1;V.addBackground=_.z("kevlar_thumbnail_bg");V.nowPlaying=!1;V.disableRounding=!1;V.size="small";return V};
_.t(bEv,_.To);_.B=bEv.prototype;_.B.computeThumbnailOverlaySidePanelWidth_=function(V,l){return V-l};
_.B.computeSize=function(V,l){if(!this.disableRounding){if(!V&&!l)return"small";V=Math.max(V||0,l||0);return V>=256?"large":V>=96?"medium":"small"}};
_.B.computeFinalHoveredState_=function(V,l,I){return this.nowPlaying?!1:_.z("kevlar_thumbnail_fluid")&&V?l:I};
_.B.computeHoverOverlays_=function(V,l){return V&&l?l:void 0};
_.B.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.B.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.B.checkMiniplayer_=function(){var V;if(((V=this.data)==null?0:V.playlistSetVideoId)&&_.z("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{V=_.jl();var l=V.currentEndpoint;!this.disableNowPlaying&&l&&_.y(l,_.vU)&&this.data?(l=_.y(l,_.vU),this.nowPlaying=this.data.playlistId?l.playlistId===this.data.playlistId:l.videoId===this.data.videoId,this.isVideoPlaying=V==null?void 0:V.isVideoPlaying):this.nowPlaying=!1}};
var pM=bEv;pM.prototype.checkMiniplayer_=pM.prototype.checkMiniplayer_;pM.prototype.onMouseLeave_=pM.prototype.onMouseLeave_;pM.prototype.onMouseEnter_=pM.prototype.onMouseEnter_;pM.prototype.computeHoverOverlays_=pM.prototype.computeHoverOverlays_;pM.prototype.computeFinalHoveredState_=pM.prototype.computeFinalHoveredState_;pM.prototype.computeSize=pM.prototype.computeSize;pM.prototype.computeThumbnailOverlaySidePanelWidth_=pM.prototype.computeThumbnailOverlaySidePanelWidth_;
_.O([_.R(_.DS),_.a("design:type",Object)],pM.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pM.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Number)],pM.prototype,"height",void 0);_.O([_.q(),_.a("design:type",Boolean)],pM.prototype,"bottomSidePanel",void 0);_.O([_.q(),_.a("design:type",Number)],pM.prototype,"width",void 0);_.O([_.q(),_.a("design:type",Object)],pM.prototype,"disableNowPlaying",void 0);
_.O([_.q({selector:_.h5}),_.a("design:type",Boolean)],pM.prototype,"miniplayerIsActive",void 0);_.O([_.q(),_.a("design:type",Object)],pM.prototype,"disableTooltips",void 0);_.O([_.q(),_.a("design:type",Object)],pM.prototype,"useHoveredProperty",void 0);_.O([_.q(),_.a("design:type",Object)],pM.prototype,"hovered",void 0);_.O([_.q(),_.a("design:type",Object)],pM.prototype,"isThumbnailHovered_",void 0);
_.O([_.q({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.a("design:type",Boolean)],pM.prototype,"finalHoveredState_",void 0);_.O([_.q({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.a("design:type",Number)],pM.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],pM.prototype,"addBackground",void 0);
_.O([_.q({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.a("design:type",Object)],pM.prototype,"hoverOverlays_",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],pM.prototype,"nowPlaying",void 0);_.O([_.q(),_.a("design:type",Boolean)],pM.prototype,"isVideoPlaying",void 0);_.O([_.q(),_.a("design:type",Object)],pM.prototype,"disableRounding",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.a("design:type",Object)],pM.prototype,"size",void 0);_.O([_.W("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pM.prototype,"onMouseEnter_",null);_.O([_.W("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pM.prototype,"onMouseLeave_",null);
_.O([_.b("data","disableNowPlaying","miniplayerIsActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pM.prototype,"checkMiniplayer_",null);pM=_.O([_.B1()],pM);var qco=[pM.prototype];_.AN={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(V,l){return V+":"+_.iN(l)},
getPlayerListener_:function(V,l,I){V=this.getPlayerListenerKey_(V,l);l=this.playerListeners_.get(V);I&&this.playerListeners_.delete(V);return l},
savePlayerListener_:function(V,l){var I=l.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(V,l),I);return I},
listenToPlayerEvent:function(V,l,I){I=this.savePlayerListener_(l,I);V.addEventListener(l,I)},
listenToPlayerEvents:function(V,l){l.forEach(function(I,H){this.listenToPlayerEvent(V,H,I)}.bind(this))},
unlistenFromPlayerEvent:function(V,l,I){I=this.getPlayerListener_(l,I,!0);V.removeEventListener(l,I)},
unlistenFromPlayerEvents:function(V,l){l.forEach(function(I,H){this.unlistenFromPlayerEvent(V,H,I)}.bind(this))}}};
_.uM=function(){};_.MvW=new _.Vr("PLAYER_API_TOKEN");var bBN=!1,pmJ,M$y=!1,uyq;var Ca=function(V,l,I,H,T){_.XG.call(this);var x=this;this.playerId=l;this.webPlayerContextConfig=H;this.alY=T;this.rAp=!1;this.api={};this.jJN=this.s8=null;this.mpi=new _.nA;this.fT={};this.eyi=this.jtG=this.elementId=this.jDL=this.config=null;this.qPG=!1;this.gx=this.aZb=null;this.kNi={};this.ial=["onReady"];this.lastError=null;this.hif=NaN;this.tnG={};this.ubX=0;this.uF=this.targetElement=V;_.$w(this,this.mpi);slJ(this);I?this.ubX=setTimeout(function(){x.loadNewVideoConfig(I)},0):H&&(pZN(this),
AaJ(this))};
_.t(Ca,_.XG);Ca.prototype.getId=function(){return this.playerId};
Ca.prototype.loadNewVideoConfig=function(V){if(!this.isDisposed()){this.ubX&&(clearTimeout(this.ubX),this.ubX=0);var l=V||{};l instanceof C9Z||(l=new C9Z(l));this.config=l;this.setConfig(V);AaJ(this);this.isReady()&&uKB(this)}};
var pZN=function(V){var l;V.webPlayerContextConfig?l=V.webPlayerContextConfig.rootElementId:l=V.config.attrs.id;V.elementId=l||V.elementId;V.elementId==="video-player"&&(V.elementId=V.playerId,V.webPlayerContextConfig?V.webPlayerContextConfig.rootElementId=V.playerId:V.config.attrs.id=V.playerId);var I;((I=V.uF)==null?void 0:I.id)===V.elementId&&(V.elementId+="-player",V.webPlayerContextConfig?V.webPlayerContextConfig.rootElementId=V.elementId:V.config.attrs.id=V.elementId)};
Ca.prototype.setConfig=function(V){this.jDL=V;this.config=vKE(V);pZN(this);if(!this.jtG){var l;this.jtG=OEb(this,((l=this.config.args)==null?void 0:l.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var I;if((I=this.config)==null?0:I.attrs)V=this.config.attrs,(l=V.width)&&this.uF&&(this.uF.style.width=AP(Number(l)||l,!0)),(V=V.height)&&this.uF&&(this.uF.style.height=AP(Number(V)||V,!0))};
var uKB=function(V){if(V.config&&V.config.loaded!==!0)if(V.config.loaded=!0,!V.config.args||V.config.args.autoplay!=="0"&&V.config.args.autoplay!==0&&V.config.args.autoplay!==!1){var l;V.api.loadVideoByPlayerVars((l=V.config.args)!=null?l:null)}else V.api.cueVideoByPlayerVars(V.config.args)},aoo=function(V){var l=!0,I=V.getPlayerElement();
I&&V.config&&(l=I.dataset.version===CAE(V));return l&&!!_.SN("yt.player.Application.create")},AaJ=function(V){if(!V.isDisposed()&&!V.qPG){var l=aoo(V);
if(l&&(V.getPlayerElement()?"html5":null)==="html5")V.eyi="html5",V.isReady()||foB(V);else if(gKZ(V),V.eyi="html5",l&&V.gx&&V.targetElement)V.targetElement.appendChild(V.gx),foB(V);else{V.config&&(V.config.loaded=!0);var I=!1;V.aZb=function(){I=!0;var H=mb3(V,"player_bootstrap_method")?_.SN("yt.player.Application.createAlternate")||_.SN("yt.player.Application.create"):_.SN("yt.player.Application.create");var T=V.config?vKE(V.config):void 0;H&&H(V.targetElement,T,V.webPlayerContextConfig,V.alY);foB(V)};
V.qPG=!0;l?V.aZb():(_.Ra(CAE(V),V.aZb),(l=iEi(V))&&wJN(l||""),VgN(V)&&!I&&_.Aq("yt.player.Application.create",null))}}};
Ca.prototype.getPlayerElement=function(){var V=_.Ox(document,this.elementId);!V&&this.uF&&this.uF.querySelector&&(V=this.uF.querySelector("#"+this.elementId));return V};
var foB=function(V){if(!V.isDisposed()){var l=V.getPlayerElement(),I=!1;l&&l.getApiInterface&&l.getApiInterface()&&(I=!0);if(I){V.qPG=!1;if(!mb3(V,"html5_remove_not_servable_check_killswitch")){var H;if((l==null?0:l.isNotServable)&&V.config&&(l==null?0:l.isNotServable((H=V.config.args)==null?void 0:H.video_id)))return}ldE(V)}else V.hif=setTimeout(function(){foB(V)},50)}},ldE=function(V){slJ(V);
V.rAp=!0;var l=V.getPlayerElement();if(l){V.s8=IdJ(V,l,"addEventListener");V.jJN=IdJ(V,l,"removeEventListener");var I=l.getApiInterface();I=I.concat(l.getInternalApiInterface());for(var H=V.api,T=0;T<I.length;T++){var x=I[T];H[x]||(H[x]=IdJ(V,l,x))}}for(var n in V.fT)V.fT.hasOwnProperty(n)&&V.s8&&V.s8(n,V.fT[n]);uKB(V);V.jtG&&V.jtG(V.api);V.mpi.publish("onReady",V.api)},IdJ=function(V,l,I){var H=l[I];
return function(){var T=_.Q5.apply(0,arguments);try{return V.lastError=null,H.apply(l,T)}catch(x){if(I!=="sendAbandonmentPing")throw x.params=I,V.lastError=x,T=new _.Yd("PlayerProxy error in method call",{error:x,method:I,playerId:V.playerId}),T.level="WARNING",T;}}},slJ=function(V){V.rAp=!1;
if(V.jJN)for(var l in V.fT)V.fT.hasOwnProperty(l)&&V.jJN(l,V.fT[l]);for(var I in V.tnG)V.tnG.hasOwnProperty(I)&&clearTimeout(Number(I));V.tnG={};V.s8=null;V.jJN=null;l=V.api;for(var H in l)l.hasOwnProperty(H)&&(l[H]=null);l.addEventListener=function(T,x){V.addEventListener(T,x)};
l.removeEventListener=function(T,x){V.removeEventListener(T,x)};
l.destroy=function(){V.dispose()};
l.getLastError=function(){return V.getLastError()};
l.getPlayerType=function(){return V.getPlayerType()};
l.getCurrentVideoConfig=function(){return V.jDL};
l.loadNewVideoConfig=function(T){V.loadNewVideoConfig(T)};
l.isReady=function(){return V.isReady()}};
Ca.prototype.isReady=function(){return this.rAp};
Ca.prototype.addEventListener=function(V,l){var I=this;this.isDisposed();var H=OEb(this,l);H&&(_.Mq(this.ial,V)||this.fT[V]||(l=H$0(this,V),this.s8&&this.s8(V,l)),this.mpi.subscribe(V,H),V==="onReady"&&this.isReady()&&setTimeout(function(){H(I.api)},0))};
Ca.prototype.removeEventListener=function(V,l){this.isDisposed()||(l=OEb(this,l))&&this.mpi.unsubscribe(V,l)};
var OEb=function(V,l){var I=l;if(typeof l==="string"){if(V.kNi[l])return V.kNi[l];I=function(){var H=_.Q5.apply(0,arguments),T=_.SN(l);if(T)try{T.apply(_.nK,H)}catch(x){throw H=new _.Yd("PlayerProxy error when executing callback",{error:x}),H.level="ERROR",H;}};
V.kNi[l]=I}return I?I:null},H$0=function(V,l){var I=function(H){var T=function(){V.isDisposed();
if(!V.isDisposed())try{V.mpi.publish(l,H!=null?H:void 0)}catch(w){var n=new _.Yd("PlayerProxy error when creating global callback",{error:w.message,event:l,playerId:V.playerId,data:H,originalStack:w.stack,componentStack:w.componentStack});n.level="WARNING";throw n;}};
if(mb3(V,"web_player_publish_events_immediately"))T();else{var x=setTimeout(function(){T();_.EL.remove(V.tnG,String(x))},0);
_.EL.add(V.tnG,String(x),!0)}};
return V.fT[l]=I};
Ca.prototype.getPlayerType=function(){return this.eyi||(this.getPlayerElement()?"html5":null)};
Ca.prototype.getLastError=function(){return this.lastError};
var gKZ=function(V){V.cancel();slJ(V);V.eyi=null;V.config&&(V.config.loaded=!1);var l=V.getPlayerElement();l&&(aoo(V)||!VgN(V)?V.gx=l:(l&&l.destroy&&l.destroy(),V.gx=null));V.targetElement&&_.ci(V.targetElement)};
Ca.prototype.cancel=function(){this.aZb&&_.Smt(CAE(this),this.aZb);clearTimeout(this.hif);this.qPG=!1};
Ca.prototype.disposeInternal=function(){gKZ(this);if(this.gx&&this.config&&this.gx.destroy)try{this.gx.destroy()}catch(l){var V=new _.Yd("PlayerProxy error during disposal",{error:l});V.level="ERROR";throw V;}this.kNi=null;for(V in this.fT)this.fT.hasOwnProperty(V)&&delete this.fT[V];this.jDL=this.config=this.api=null;delete this.targetElement;delete this.uF;_.XG.prototype.disposeInternal.call(this)};
var VgN=function(V){var l,I;V=(l=V.config)==null?void 0:(I=l.args)==null?void 0:I.fflags;return!!V&&V.indexOf("player_destroy_old_version=true")!==-1},CAE=function(V){return V.webPlayerContextConfig?V.webPlayerContextConfig.jsUrl:(V=V.config.assets)?V.js:""},iEi=function(V){return V.webPlayerContextConfig?V.webPlayerContextConfig.cssUrl:(V=V.config.assets)?V.css:""},mb3=function(V,l){if(V.webPlayerContextConfig)var I=V.webPlayerContextConfig.serializedExperimentFlags;
else{var H;if((H=V.config)==null?0:H.args)I=V.config.args.fflags}return(I||"").split("&").includes(l+"=true")},vKE=function(V){for(var l={},I=_.U(Object.keys(V)),H=I.next();!H.done;H=I.next()){H=H.value;
var T=V[H];l[H]=typeof T==="object"?_.EL.clone(T):T}return l};var few={},aeJ="player_uid_"+(Math.random()*1E9>>>0);var v0=function(V,l,I,H,T,x){l=l===void 0?document.createElement("div"):l;this.webPlayerContextConfig=V;this.container=l;this.commandResolver=I;this.apiResolver=iB3();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.IQ;H||x?Tzb(this):BzB(this);this.pendingPlayerResponse=H;this.pendingWatchNextResponse=T;this.pendingPlayerVars=x;x2N(this)};
v0.prototype.loadVideoWithPlayerResponse=function(V,l,I){this.loadVideo(V,l,I)};
v0.prototype.loadVideoWithPlayerVars=function(V){return this.loadVideo(void 0,void 0,V)};
v0.prototype.destroy=function(V){if(V=_.Ox(document,V))V=aeJ+"_"+_.iN(V),(V=few[V])&&V.dispose()};
var nSb=function(V,l){var I;_.d(function(H){if(H.nextAddress==1)return V.pendingWatchNextResponse=l,V.synchronousApi?(I=V.synchronousApi,H.jumpTo(2)):_.K(H,V.api,3);H.nextAddress!=2&&(I=H.yieldResult);U2N(V,I);V.pendingWatchNextResponse&&(I.updateVideoData({raw_watch_next_response:V.pendingWatchNextResponse}),V.pendingWatchNextResponse=void 0);_.FU(H)})},U2N=function(V,l){var I;
if(!(l==null?0:(I=l.isReady)==null?0:I.call(l))){var H;V=new _.Yd("playerApi is falsey",{synchronousApi:V.synchronousApi,apiResolved:V.apiResolver.resolved,playerApiUndefined:l===void 0,playerApiNull:l===null,playerApiReady:(l==null?void 0:(H=l.isReady)==null?void 0:H.call(l))===!0,playerApiMethods:l?Object.keys(l):[]});_.Gr(V)}},$2B=function(V,l){if(typeof V[l]==="function")return V[l]()},d20=function(V){var l=window,I,H=(I=l.ytplayer)==null?void 0:I.bootstrapPlayerContainer;
if((I=H==null?void 0:H.firstElementChild)&&_.Am(I,"html5-video-player")){var T,x,n=(T=l.ytplayer)==null?void 0:(x=T.bootstrapWebPlayerContextConfig)==null?void 0:x.contextId;T=V.webPlayerContextConfig.contextId;if(n&&n===T){H!==V.container&&(H=!1,$2B(I,"getPlayerState")===2&&(H=!0),V.container.appendChild(I),H||$2B(I,"playVideo"));var w;if((w=l.ytplayer)==null?0:w.bootstrapPlayerResponse)V.bootstrapPlayerResponse=l.ytplayer.bootstrapPlayerResponse}}},x2N=function(V){var l,I,H,T,x;
_.d(function(n){if(n.nextAddress==1)return V.pageReadyOrDataAvailable?n.jumpTo(2):_.K(n,V.pageReadyOrDataAvailableResolver.promise,2);if(n.nextAddress!=4)return!_.z("kevlar_player_unified_player_loading")||qCW()&&sqc()?n.jumpTo(4):_.K(n,OBt(),4);d20(V);if(V.pendingPlayerResponse||V.pendingPlayerVars)l=Clg(V.pendingPlayerResponse,V.pendingWatchNextResponse,V.pendingPlayerVars),V.pendingPlayerResponse&&V.pendingPlayerResponse===V.bootstrapPlayerResponse&&(l.loaded=!0),V.bootstrapPlayerResponse=void 0;
I=mf3(V.container,l,V.webPlayerContextConfig);((H=l)==null?0:H.loaded)&&V.pendingWatchNextResponse?(nSb(V,V.pendingWatchNextResponse),V.pendingPlayerResponse=void 0,V.pendingPlayerVars=void 0):wGv(V);T=function(w){I.removeEventListener("onReady",T);V.synchronousApi=w;V.apiResolver.resolve(w)};
I.addEventListener("onReady",T);V.commandResolver!==void 0&&(x=V.commandResolver,I.addEventListener("innertubeCommand",function(w){x(w)}));
_.FU(n)})};
v0.prototype.loadVideo=function(V,l,I){var H=this,T,x,n,w,N,L,e,k,X;return _.d(function(r){if(r.nextAddress==1)return H.pendingPlayerResponse=V,H.pendingWatchNextResponse=l,H.pendingPlayerVars=I,Tzb(H),H.synchronousApi?(T=H.synchronousApi,r.jumpTo(2)):_.K(r,H.api,3);r.nextAddress!=2&&(T=r.yieldResult);U2N(H,T);n=new Promise(function(E){x=E});
w=function(){var E=T.getPlayerResponse();E&&(T.removeEventListener("onVideoDataChange",w),x(E))};
T.addEventListener("onVideoDataChange",w);if(H.pendingPlayerResponse||H.pendingPlayerVars)H.pendingPlayerResponse&&H.pendingPlayerResponse===H.bootstrapPlayerResponse?(x(H.pendingPlayerResponse),H.pendingWatchNextResponse&&nSb(H,H.pendingWatchNextResponse)):(N=Clg(H.pendingPlayerResponse,H.pendingWatchNextResponse,H.pendingPlayerVars),(X=(L=H.pendingPlayerResponse)==null?void 0:(e=L.playerConfig)==null?void 0:(k=e.playbackStartConfig)==null?void 0:k.startPaused)?T.cueVideoByPlayerVars(N.args):T.loadVideoByPlayerVars(N.args)),
wGv(H),H.bootstrapPlayerResponse=void 0;return r.return(n)})};
var BzB=function(V){if(document.readyState==="complete"||document.readyState==="interactive")Tzb(V);else{var l=function(){document.removeEventListener("DOMContentLoaded",l);Tzb(V)};
document.addEventListener("DOMContentLoaded",l)}},Tzb=function(V){V.pageReadyOrDataAvailable=!0;
V.pageReadyOrDataAvailableResolver.resolve()},wGv=function(V){V.pendingPlayerResponse=void 0;
V.pendingWatchNextResponse=void 0;V.pendingPlayerVars=void 0};
_.vI.Object.defineProperties(v0.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var OE=function(V){Zj.call(this,V===void 0?"document_active":V);var l=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(I){l.transition("document_disposed",{event:I})});
window.addEventListener("beforeunload",function(I){l.transition("document_disposed_preventable",{event:I})});
window.addEventListener("unload",function(I){l.transition("document_disposed",{event:I});l.hasRun=new Map})};
_.t(OE,Zj);
OE.prototype.runPreventableDispose=function(V,l){if(!this.hasRun.get("document_disposed_preventable")){V(l==null?void 0:l.event);var I,H;if((l==null?0:(I=l.event)==null?0:I.defaultPrevented)||(l==null?0:(H=l.event)==null?0:H.returnValue)){l.event.returnValue||(l.event.returnValue=!0);l.event.defaultPrevented||l.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")};
OE.prototype.runDispose=function(V,l){this.hasRun.get("document_disposed")?this.transition("document_active"):(V(l==null?void 0:l.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
OE.prototype.runFlush=function(V,l){V(l==null?void 0:l.event);this.transition("document_active")};
OE.prototype.runActive=function(){};var CM=function(V){Zj.call(this,V===void 0?"document_visibility_unknown":V);var l=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(I){document.visibilityState==="visible"?l.transition("document_visible",{event:I}):l.transition("document_hidden",
{event:I})});
_.z("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(I){l.transition("document_backgrounded",{event:I})}),window.addEventListener("focus",function(I){l.transition("document_foregrounded",{event:I})}))};
_.t(CM,Zj);CM.prototype.runVisible=function(V,l){V(l==null?void 0:l.event);_.z("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
CM.prototype.runHidden=function(V,l){V(l==null?void 0:l.event);_.z("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
CM.prototype.runBackgrounded=function(V,l){V(l==null?void 0:l.event)};
CM.prototype.runForegrounded=function(V,l){V(l==null?void 0:l.event)};var g9=function(){this.teardownLifecycle=new OE;this.visibilityLifecycle=new CM};
g9.prototype.install=function(){var V=_.Q5.apply(0,arguments),l=this;V.forEach(function(I){l.teardownLifecycle.install(I)});
V.forEach(function(I){l.visibilityLifecycle.install(I)})};var mG=function(){g9.call(this);var V={};this.install((V.document_disposed={callback:this.abortSlisAndFlush},V));_.z("combine_ve_grafts")&&(V={},this.install((V.document_disposed={callback:this.flushInteractionLoggingAttachVes},V)));V={};this.install((V.flush_logs={callback:this.logFinalPayload},V));_.z("web_log_cfg_cee_ks")||_.et(_.r0,Nzb)};
_.t(mG,g9);var VvK=function(){mG.loggingInstance||(mG.loggingInstance=new mG);return mG.loggingInstance};
mG.prototype.logFinalPayload=function(){if(_.z("web_fp_via_jspb")){var V=new AO3,l=_.oa();l&&_.Fm(V,1,l);l=_.z("jspb_sparse_encoded_pivot")?new LO([{}]):new LO;_.Yn(l,380,ubB,V);hDg("finalPayload",l);_.z("web_fp_via_jspb_and_json")&&_.tF("finalPayload",{csn:_.oa()})}else _.tF("finalPayload",{csn:_.oa()})};
mG.prototype.abortSlisAndFlush=function(){D9N(M$);sd!=null&&sd.flush()};
mG.prototype.flushInteractionLoggingAttachVes=function(){moi(_.x7())};
var Nzb=function(){var V=_.h6("CLIENT_EXPERIMENT_EVENTS");if(V){var l=agT();V=_.U(V);for(var I=V.next();!I.done;I=V.next())I=I.value,l(I)&&_.tF("genericClientExperimentEvent",{eventType:I});delete _.Eo.CLIENT_EXPERIMENT_EVENTS}};var Kia={};
Kia.YtPlayerBehavior=[_.AN.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 V=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.IQ;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;lof(function(){V.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Jl(this,"pan-down"),_.z("kevlar_pinch_fullscreen")&&_.dd().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.z("kevlar_pinch_fullscreen")&&_.dd().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(V,l,I){var H=this;a2(this.useUnifiedPlayer_());if(this.mainAppPlayer_)a2(!1,"MainAppPlayer already created.");else{var T=_.z("kevlar_player_container_query_killswitch")?this.$.container:_.h(this.hostElement).querySelector("#container");this.mainAppPlayer_=new v0(this.getWebPlayerContextConfig_(),T,function(x){return _.IN(x,H.hostElement)},V,l,I);
this.mainAppPlayer_.api.then(function(x){H.player_=x;H.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&fmZ.resolve(x)})}},
loadVideoWithPlayerResponse:function(V,l){var I=this;if(this.useUnifiedPlayer_()){var H=this.watchNextData,T,x=(T=V.videoDetails)==null?void 0:T.videoId,n,w,N;(T=(n=this.watchNextData)==null?void 0:(w=n.currentVideoEndpoint)==null?void 0:(N=w.watchEndpoint)==null?void 0:N.videoId)&&x!=T&&(H=void 0,_.z("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(V,H,l):this.createMainAppPlayer_(V,H,l);this.mainAppPlayer_.api.then(function(){_.B$(I.hostElement,
"yt-player-updated")})}else this.update(Qqt(V,l))},
loadVideoWithPlayerVars:function(V){var l=this;this.useUnifiedPlayer_()?(_.z("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(V):this.createMainAppPlayer_(void 0,void 0,V),this.mainAppPlayer_.api.then(function(){_.B$(l.hostElement,"yt-player-updated")})):this.update({args:V})},
update:function(V){var l=this;if(this.useUnifiedPlayer_())a2(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(V);var I=vC3(V.args);I&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==I&&Object.assign(V.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(V).then(function(H){_.B$(l.hostElement,"yt-player-updated",_.z("kevlar_player_updated_obsolete_player_killswitch")?
H:void 0)})}_.oV(new _.Yd("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,l.getPlayerPromise(),2);I=H.yieldResult;if(!I)throw Error("xh");V&&l.updatePlayerPlaylist_(V);_.FU(H)})},
acquireApi_:function(V){var l=this;if(this.useUnifiedPlayer_())a2(!1,"Invalid method call in kevlar_unified_player.");else return _.r0.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(a2(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(I){l.shouldAutoplay_(V)?I.loadVideoByPlayerVars(V.args):I.cueVideoByPlayerVars(V.args)})):this.initPlayerPromise_=this.initPlayerContainer_(V),this.initPlayerPromise_},
initPlayerContainer_:function(V){var l=this;if(this.useUnifiedPlayer_())a2(!1,"Invalid method call in kevlar_unified_player.");else return a2(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.hF(Error("yh")),a2(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.z("kevlar_player_container_query_killswitch")?this.$.container:_.h(this.hostElement).querySelector("#container"),OBt().then(function(){var I=l.initPlayer_(V);l.playerResolver_.resolve(I);
return I})},
onPlayerReady_:function(V,l){this.useUnifiedPlayer_()?a2(!1,"Invalid method call in kevlar_unified_player."):(V.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&fmZ.resolve(V),l(V))},
maybeCallApiMethodOnElement_:function(V,l){if(typeof V[l]==="function")return V[l]()},
maybeAdoptBootstrapPlayer_:function(){var V=window,l,I=(l=V.ytplayer)==null?void 0:l.bootstrapPlayerContainer;if((l=I==null?void 0:I.firstElementChild)&&l.classList.contains("html5-video-player")){var H,T,x=(H=V.ytplayer)==null?void 0:(T=H.bootstrapWebPlayerContextConfig)==null?void 0:T.contextId;H=this.getWebPlayerContextConfig_().contextId;if(x&&x===H){I!==this.playerContainer_&&(I=!1,this.maybeCallApiMethodOnElement_(l,"getPlayerState")===2&&(I=!0),this.playerContainer_.appendChild(l),I||this.maybeCallApiMethodOnElement_(l,
"playVideo"));var n;if((n=V.ytplayer)==null?0:n.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=V.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(V){var l=this;if(this.useUnifiedPlayer_())a2(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(I){l.maybeAdoptBootstrapPlayer_();var H=V?cZ3(V):void 0;H&&H==l.bootstrapPlayerResponse_&&(V.loaded=!0);H=l.playerContainer_;var T=l.getWebPlayerContextConfig_();H=mf3(H,V,T);l.player_=H;l.onPlayerReadyEvent_=l.onPlayerReady_.bind(l,l.player_,I);l.player_.addEventListener("onReady",l.onPlayerReadyEvent_);l.player_.addEventListener("innertubeCommand",
l.onPlayerInnerTubeCommand_.bind(l))})},
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(V){V.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(V){V.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var V=_.F().resolve(_.pa).getCurrentPage();V&&V.getScrollTop()<=0?_.Jl(this,"pan-down"):_.Jl(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(V){V.isFullscreen()||V.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(V){V.isFullscreen()&&V.toggleFullscreen()})},
updatePlayerPlaylist_:function(V){var l=this,I,H,T;return _.d(function(x){if(x.nextAddress==1)return I=_.F().resolve(_.Cs(_.cV)),H=!!(I&&I.playlistComponent&&I.playlistComponent.loopOn),_.K(x,l.getPlayerPromise(),2);var n=T=x.yieldResult,w=n.updatePlaylist,N=[];if(_.z("kevlar_player_playlist_use_local_index")){var L,e;var k=(e=(L=V.localCurrentIndex)!=null?L:V.currentIndex)!=null?e:0}else{var X;k=(X=V.currentIndex)!=null?X:0}if(V.contents)for(L=0;L<V.contents.length;L++)if((e=V.contents[L])&&e.playlistPanelVideoRenderer)if(xX1(e)){e=
e.playlistPanelVideoRenderer;X="";e.shortBylineText&&(X=_.A5(e.shortBylineText));var r="";e.title?r=_.A5(e.title):e.unplayableText&&(r=_.A5(e.unplayableText));N.push({author:X,title:r,encrypted_id:e.videoId})}else L<k&&--k;w.call(n,{index:k,list:V.playlistId?V.playlistId:"",loop:H,playlist_title:V.title,playlist_length:N.length,video:N,fetch:0,external_list:"1",title:V.title?V.title:"",playlist_author:V.ownerName?_.A5(V.ownerName):void 0});_.FU(x)})},
focusOnPlayer:function(){_.Al(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var V=this.playerContainer_.querySelector(".html5-video-player");V&&(_.jEZ(_.F().resolve(_.Fp)),V.focus())}})},
preparePlayer:function(){var V=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(l){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")l();else{var I=function(){document.removeEventListener("DOMContentLoaded",I);l()};
document.addEventListener("DOMContentLoaded",I)}})).then(function(){return OBt()}).then(function(){V.initPlayerPromise_||V.preparePlayerJobId_||(V.preparePlayerJobId_=_.et(_.r0,function(){V.initPlayerPromise_||(V.initPlayerPromise_=V.initPlayerContainer_())}))}):_.oV(new _.Yd("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(V){this.useUnifiedPlayer_()?a2(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(V)||(V.args.autoplay="0")},
shouldAutoplay_:function(V){if(this.useUnifiedPlayer_())a2(!1,"Invalid method call in kevlar_unified_player.");else{var l=this.get("args.el",V);return l&&l!="detailpage"&&this.isMiniplayerActive_()||l&&(l=="sponsorshipsoffer"||l=="handlesclaiming")&&this.get("args.autoplay",V)=="0"?!1:(V=cZ3(V))&&this.get("playerConfig.playbackStartConfig.startPaused",V)?!1:!0}},
isMiniplayerActive_:function(){return _.F().resolve(_.sH).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var V=this.getPlayer();if(V){var l=V.getPlayerState();_.z("kevlar_player_check_ad_state_on_stop")&&(l=V.getPlayerState(V.getPresentingPlayerType()));l!=5&&V.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(V,l,I){I=I===void 0?!1:I;var H=this,T,x,n,w;return _.d(function(N){if(N.nextAddress==1)return l||(l=H.hostElement),T=H.useUnifiedPlayer_()?!!H.mainAppPlayer_:!!H.initPlayerPromise_,T?_.K(N,H.getPlayerPromise(),2):(I?V.insertBefore(l,V.firstChild):V.appendChild(l),N.return());x=N.yieldResult;n=x.getPlayerState(x.getPresentingPlayerType());w=!1;if(n==-1||n==1||n==3)w=!0;I?V.insertBefore(l,V.firstChild):V.appendChild(l);w&&x.playVideo();x.setSize(NaN,NaN);_.FU(N)})},
watchNextDataChanged_:function(V){var l=this;V&&(this.useUnifiedPlayer_()&&_.z("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&nSb(this.mainAppPlayer_,V):this.getPlayerPromise().then(function(I){I.updateVideoData(l.computeWatchNextPlayerVars_(V))}))},
computeWatchNextPlayerVars_:function(V){if(this.useUnifiedPlayer_()&&_.z("kevlar_unified_player_update_watch_next_killswitch"))a2(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:V}},
maybeSendAbandonmentPing_:function(){var V=this.getPlayer();V&&V.getPlayerState()!=5&&V.getPlayerState()!=0&&V.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var V=_.h6("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(V=Object.assign({},V),V.rootElementId=this.playerId);V.serializedExperimentIds&&V.serializedExperimentFlags||_.hF(Error("zh"));return V},
hasWebPlayerContextConfig_:function(){return!!_.h6("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(V){this.useUnifiedPlayer_()?a2(!1,"Invalid method call in kevlar_unified_player."):_.IN(V,this.hostElement)},
useUnifiedPlayer_:function(){var V=_.z("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.z("kevlar_unified_player")||V}}];var Yao={};Yao.YtPlaylistPanelBehavior=[_.m.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(V){V=V.detail;if(V.actions.loop!=void 0||V.actions["yt-icons:loop"]!=void 0)this.loopOn=V.actions.loop||V.actions["yt-icons:loop"];if(V.actions.shuffle!=void 0||V.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=V.actions.shuffle||V.actions["yt-icons:shuffle"]},
setMenuData_:function(V){if(!V||!V.playlistButtons||V.isInfinite)return null;for(var l=V.playlistButtons.menuRenderer.topLevelButtons,I=l.length,H=0;H<I;H++)if(l[H].toggleButtonRenderer){var T=l[H].toggleButtonRenderer;T.defaultIcon.iconType=="LOOP"&&this.loopOn?T.isToggled=this.loopOn:T.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(T.isToggled=this.shuffleOn)}return V.playlistButtons}}];var Lio=function(V){lK.call(this,V,132);this.isDocument=V===document.documentElement};
_.t(Lio,lK);Lio.prototype.calculateScrollDelta=function(V,l,I){var H=0;V<l?H=V<l-100?-48:-8:V>l+I&&(H=V>l+I+100?48:8);return H};
Lio.prototype.JSC$9150_onMouseMove=function(V){this.isDocument||(V.clientX=V.event_.pageX,V.clientY=V.event_.pageY);lK.prototype.JSC$9150_onMouseMove.call(this,V)};var iM=function(){var V=_.To.apply(this,arguments)||this;V._noAccessors=!0;V.scrollElement=document.documentElement;V.JSC$12092_dragListGroup=null;V.dragScrollSupport=null;V.onDraggerCreated=function(l){var I=l.JSC$9146_dragger;I.scrollTarget_=V.scrollElement;l=l.draggerEl;I&&l.menuOpened&&I.setEnabled(!1)};
V.onDragStart=function(l){var I=l.draggerEl;l=l.currDragItem;var H=Object.assign({},l==null?void 0:l.data);H.trackingParams=void 0;I.data=H;I.style.position="absolute";I.style.width=(l==null?void 0:l.clientWidth)+"px";I.style.zIndex="2030";I.onDrag&&I.onDrag();_.z("web_owner_document_fallback_killswitch")?(l=document.querySelector("ytd-app"))&&_.h(l).appendChild(I):(l=_.Z3(I),(H=l.querySelector("ytd-app"))?_.h(H).appendChild(I):l.body.appendChild(I));V.dragScrollSupport=new Lio(V.scrollElement);V.dragScrollSupport.horizontalScrolling_=
!1;I=V.dragScrollSupport;I.constrainScroll_=!!I.margin_&&!1};
V.onDrop=function(l){V.handleDrop(l);V.dragScrollSupport&&(_.ag(V.dragScrollSupport),V.dragScrollSupport=null)};
V.onReorderableScroll=function(){if(V.JSC$12092_dragListGroup){var l=V.JSC$12092_dragListGroup;Qjw(l,l.currDragItem_)}};
return V};
_.t(iM,_.To);iM.prototype.detached=function(){_.eYN(this)};
_.eYN=function(V){V.JSC$12092_dragListGroup&&(_.y$(V.JSC$12092_dragListGroup,Esw,V.onDragStart),_.y$(V.JSC$12092_dragListGroup,PfJ,V.onDragStart),V.JSC$12092_dragListGroup.dispose(),V.JSC$12092_dragListGroup=null);V.dragScrollSupport&&(_.ag(V.dragScrollSupport),V.dragScrollSupport=null);V.scrollElement.removeEventListener("scroll",V.onReorderableScroll)};
_.kWv=function(V,l,I,H){H=H===void 0?"":H;_.eYN(V);I&&(V.scrollElement=I);V.JSC$12092_dragListGroup=new qA;V.JSC$12092_dragListGroup.hysteresisDistance_=2;Zm0(V.JSC$12092_dragListGroup,l);V.JSC$12092_dragListGroup.draggerElClasses_=_.nj("dragging").split(" ");H&&S7a(V.JSC$12092_dragListGroup,function(T){var x=T||document,n=null;x.getElementsByClassName?n=x.getElementsByClassName(H)[0]:n=lCo("*",H,T);return n||T});
_.NR(V.JSC$12092_dragListGroup,rTa,V.onDraggerCreated);_.NR(V.JSC$12092_dragListGroup,Esw,V.onDragStart);_.NR(V.JSC$12092_dragListGroup,PfJ,V.onDrop);V.JSC$12092_dragListGroup.init();V.scrollElement.addEventListener("scroll",V.onReorderableScroll,{passive:!0})};
iM.prototype.handleDrop=function(){};
_.vI.Object.defineProperties(iM.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
var Fia=iM;_.O([_.q({value:100}),_.a("design:type",Number)],Fia.prototype,"scrollMargin",void 0);Fia=_.O([_.B1()],Fia);_.XGo=[Fia.prototype];_.Vs={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(V,l,I){var H=this.getClickTarget_(l);if(H&&this.isClickAllowed_(H)){l.preventDefault();V=(0,_.EL.unsafeClone)(V);var T=this.getContainerBoundingRect();l=this.getRelativeClickXy_(l,T);this.expandEndpointUrlMacros_(V,{NX:l[0],NY:l[1],NB:H.code});I&&this.truncateWebCommendMetadataUrl_(V);_.B$(this.hostElement,"yt-navigate",{endpoint:V})}},
getClickTarget_:function(V){if(!this.clickTargetMap)return null;V=_.b3(V)||[];V=_.U(V);for(var l=V.next();!l.done;l=V.next()){l=l.value;if(l===_.h(this.hostElement).querySelector("#menu"))break;if(l=this.clickTargetMap.get(l.id))return l}return null},
getRelativeClickXy_:function(V,l){var I=V.detail.x,H=V.detail.y;_.z("use_on_click_for_desktop_display_ad")&&V.clientX!=null&&V.clientY!=null&&(I=V.clientX,H=V.clientY);V=Math.round(I-l.left);l=Math.round(H-l.top);return V<0||l<0?[null,null]:[V,l]},
getContainerBoundingRect:function(){return _.h(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(V,l){for(var I=_.U(V.loggingUrls||[]),H=I.next();!H.done;H=I.next())H=H.value,H.baseUrl&&(H.baseUrl=bS3(H.baseUrl,l));V.urlEndpoint&&V.urlEndpoint.url&&(V.urlEndpoint.url=bS3(V.urlEndpoint.url,l));V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.url&&(V.commandMetadata.webCommandMetadata.url=bS3(V.commandMetadata.webCommandMetadata.url,l))},
truncateWebCommendMetadataUrl_:function(V){if(V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.url){var l=V.commandMetadata.webCommandMetadata.url,I=l.indexOf("&pp=");if(I>0){var H=l.indexOf("&",I+1);V.commandMetadata.webCommandMetadata.url=H>I&&H<l.length?l.slice(0,I)+l.slice(H):l.slice(0,I)}}},
configureClickTargets:function(V,l,I){this.containerId=V;this.clickTargetMap=new Map;V=_.U(l);for(l=V.next();!l.done;l=V.next())if(l=l.value,l.location){var H=I.get(l.location);H&&(_.fY(_.h(this.hostElement).querySelector("#"+H),"yt-simple-endpoint",this.isClickAllowed_(l)),this.clickTargetMap.set(H,l))}},
isClickAllowed_:function(V){return V.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||V.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||V.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||V.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.lL={};
_.lL.YtLazyListBehavior=[_.AM.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 V=(this.constructor.generatedFrom||this).observers;V||(V=[]);V.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
V}},
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 V=this.renderElementsOutsideVisibleArea_;V&&(k6N(V,4),V.processSignal())},
deepLazyListObserver_:function(V){var l=this;if(V){var I=V.value||[];if(this.itemsPath==V.path){var H=this.nonDeferredItemCount;V=0;H>-1&&I.length>H&&(V=_.h6("REMAINING_DOVA_DEFERRED_CHUNKS",-1));V>0?(H>0&&(H=I.slice(0,H),this.setInitialItemsOnDataChanged(H)),(H=this.renderElementsOutsideVisibleArea_)?H.cancel():(H=this.renderElementsOutsideVisibleArea_=new _.vf(2,"eocs"),_.QN1(window,"scroll",function(){return l.renderDeferredElements()})),_.Op(H,function(){l.setInitialItemsOnDataChanged(I)}),_.ow("REMAINING_DOVA_DEFERRED_CHUNKS",
V-1)):this.setInitialItemsOnDataChanged(I)}else if(this.itemsPath+".splices"==V.path)this.onItemsUpdated_(I);
else H="shownItems"+V.path.substr(this.itemsPath.length),this.useSignals&&H==="shownItems.length"||this.notifyPath(H,V.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(V){V&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(V),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(V){V=V.indexSplices;for(var l=0,I=V.length;l<I;l++){var H=V[l];if(H.index<this.shownCount&&(H.removed&&this.splice("shownItems",H.index,H.removed.length),H.addedCount)){var T=H.object.slice(H.index,H.index+H.addedCount);H=["shownItems",H.index,0];H.push.apply(H,T);this.splice.apply(this,H)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(V){this.cancelPendingTasks_();V||(V=[]);this.items_=V;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&&(_.PO("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Al(this,this.tryRenderChunk_)))},
fillRange_:function(V,l){this.canShowMore&&this.items_&&(V=this.items_.slice(V,l),V.unshift("shownItems"),this.push.apply(this,V),this.shownCount=l,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var V=this;this.canShowMore&&_.Go(this,"renderChunk",function(){V.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.PO("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.L6(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var V=this.renderElementsOutsideVisibleArea_;V&&(V.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var V=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(V-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=V;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(V){return Math.ceil(1E3/V)},
onCanShowMoreUpdated_:function(V){this.data&&this.items_!==null&&(V?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(V){!this.shouldUseTaskManager()&&this.data&&(!V&&this.canShowMore?(_.FzW(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):V&&this.partiallyRenderedItems_.has(this.items_)&&(_.z("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var T9;_.ID={};
T9=function(){var V=_.To.apply(this,arguments)||this;V.atStart=!0;V.atEnd=!0;V.startIndex=0;V.endIndex=0;V.scrollCount=0;V.initialStartIndex=0;V.disableScrollEventListener=!1;V.useFloorScrolling=!1;V.isSearch=!1;V.dragging=!1;V.dragMouseStart=0;V.dragOffsetStart=0;V.disableWheelScroll=!1;V.centerListItems=!1;V.offset=0;V.minComponentWidth=0;V.marginWidthRight=0;V.marginWidthLeft=0;V.setButtonsStateRequested=!1;V.itemsVisibilityObserver=null;V.fullyVisibleItemsIndices=[];V.JSC$12103_onWheelScroll=function(l){if(V.isSearch&&
!V.disableWheelScroll&&_.z("desktop_enable_dmpanel_wheel_scroll")){var I=l.shiftKey?Math.abs(l.deltaY)>Math.abs(l.deltaX)?l.deltaY:l.deltaX:l.deltaX;I!==0&&(l.preventDefault(),V.ytLazyListBehavior.fillRemainingListItems(),V.offset+=I,H7(V),V.reposition_())}};
V.JSC$12103_onPointerDown=function(l){zYB(V)&&(V.dragMouseStart=l.clientX,V.dragOffsetStart=V.offset,V.dragging=!0)};
V.onPointerMove=function(l){zYB(V)&&V.dragging&&(V.ytLazyListBehavior.fillRemainingListItems(),V.offset=V.dragOffsetStart-(l.clientX-V.dragMouseStart),H7(V),V.reposition_())};
V.JSC$12103_onPointerUp=function(){zYB(V)&&(V.dragging=!1)};
return V};
_.t(T9,_.To);var ykb=function(V){var l=_.h(V.hostElement).querySelector("#items").children;if(!l)return 0;var I=0;V=_.U(V.fullyVisibleItemsIndices);for(var H=V.next();!H.done;H=V.next())I+=l[H.value].clientWidth;return I},zYB=function(V){return V.isSearch&&_.z("desktop_enable_dmpanel_click_drag_scroll")};
T9.prototype.created=function(){this.cachedViewportWidth=_.h6("initialInnerWidth")||window.innerWidth;this.JSC$12103_cachedViewportHeight=_.h6("initialInnerHeight")||window.innerHeight;_.h6("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.ow("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
T9.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.z("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();tg0(this)};
T9.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.z("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var V;(V=this.itemsVisibilityObserver)==null||V.disconnect();this.itemsVisibilityObserver=null;var l;(l=this.itemsObserver)==null||l.disconnect()};
var tg0=function(V){var l=_.h(V.hostElement).querySelector("#scroll-container");if(l){if(!V.itemsVisibilityObserver){var I=window.getComputedStyle(l).marginRight;V.itemsVisibilityObserver=new IntersectionObserver(function(H){rka(V,H)},{root:l,
rootMargin:I,threshold:.98})}if(l=_.h(V.hostElement).querySelector("#items"))V.itemsObserver=new KLw(l,function(H){GWE(V,H)})}},GWE=function(V,l){ESa(V)&&(Array.from(l.addedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){V.itemsVisibilityObserver&&V.itemsVisibilityObserver.observe(I)}),Array.from(l.removedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){V.itemsVisibilityObserver&&V.itemsVisibilityObserver.unobserve(I)}))},
rka=function(V,l){var I=new Set(V.fullyVisibleItemsIndices);
l=_.U(l);for(var H=l.next();!H.done;H=l.next()){H=H.value;var T=H.target.parentElement;T?(T=Array.from(T.children).indexOf(H.target),H.isIntersecting?I.add(T):I.has(T)&&I.delete(T)):_.hF(new _.Yd("Parent element not found",H.target.nodeName))}V.fullyVisibleItemsIndices=Array.from(I).sort(function(x,n){return x-n});
I.size===0?_.hF(new _.Yd("No visible entries in horizontal list")):(V.startIndex=V.fullyVisibleItemsIndices[0],V.endIndex=V.fullyVisibleItemsIndices[V.fullyVisibleItemsIndices.length-1])},ESa=function(V){V.data?V=(V=V.data)&&V.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===V.itemSizeConstraint:!1:V=!1;
return V};
_.B=T9.prototype;_.B.addScrollEventListeners=function(){var V=_.h(this.hostElement).querySelector("#scroll-container");V.style.touchAction="pan-y";V.addEventListener("wheel",this.JSC$12103_onWheelScroll);V.addEventListener("pointerdown",this.JSC$12103_onPointerDown);V.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.JSC$12103_onPointerUp)};
_.B.removeScrollEventListeners=function(){var V=_.h(this.hostElement).querySelector("#scroll-container");V.removeEventListener("wheel",this.JSC$12103_onWheelScroll);V.removeEventListener("pointerdown",this.JSC$12103_onPointerDown);V.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.JSC$12103_onPointerUp)};
_.B.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Al(this,this.setStartIndex,[this.initialStartIndex])};
_.B.reposition_=function(){var V=_.h6("HTML_DIR")=="rtl"?"":"-",l=_.h(this.hostElement).querySelector("#items");l&&(l.style.transform="translateX("+V+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.B.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Al(this,this.setButtonsState_))};
_.B.setButtonsState_=function(){this.setButtonsStateRequested=!1;var V=_.h(this.hostElement).querySelector("#items").firstElementChild;if(V){this.minComponentWidth||(this.minComponentWidth=Jki(this,V));V=_.h(this.hostElement).querySelector("#scroll-container").clientWidth;var l=_.h(this.hostElement).querySelector("#items").clientWidth,I=this.get(this.ytLazyListBehavior.itemsPath,this);if(I){var H=Math.round(V/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+H,I.length)-1)}this.ytLazyListBehavior.canShowMore?l+this.minComponentWidth>=this.offset+V&&(this.atEnd=!1):this.atEnd=this.offset+V>=l-20?!0:!1;this.atStart=this.offset<=20}};
_.B.setStartIndex=function(V){if(!this.minComponentWidth){var l=_.h(this.hostElement).querySelector("#items").firstElementChild;if(!l)return;this.minComponentWidth=Jki(this,l)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*V;H7(this);this.reposition_()};
_.B.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.KD();var V=_.h(this.hostElement).querySelector("#scroll-container").clientWidth;_.z("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Jki(this,_.h(this.hostElement).querySelector("#items").firstElementChild));V=this.useFloorScrolling?Math.floor(V/this.minComponentWidth)||1:Math.round(V/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&oS0(this);this.offset+=ESa(this)?
ykb(this):V*this.minComponentWidth;H7(this);this.reposition_();this.scrollCount++};
_.B.prevClick_=function(){var V=_.h(this.hostElement).querySelector("#scroll-container").clientWidth;V=this.useFloorScrolling?Math.floor(V/this.minComponentWidth)||1:Math.round(V/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=ESa(this)?ykb(this):this.minComponentWidth*this.scrollCount-1):this.offset-=ESa(this)?ykb(this):V*this.minComponentWidth;this.centerListItems&&oS0(this);H7(this);this.reposition_()};
_.B.onIronResize_=function(){this.resizeSupportEnabled&&_.Al(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.B.onItemsTransitionEnd_=function(V){_.qv(V)===_.h(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.B.onChildElementFocus_=function(V){V=V.target.closest("#items > *");var l=_.h(this.hostElement).querySelector("#scroll-container");if(l.contains(V)){if(_.z("web_horizontal_list_behavior_focus_killswitch"))if(V.offsetLeft<this.offset)this.offset=Math.abs(V.offsetLeft)<V.clientWidth?0:V.offsetLeft;else if(V.offsetLeft+V.clientWidth>this.offset+l.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.KD(),this.offset=V.offsetLeft+V.clientWidth-l.clientWidth;else return;else{var I=_.h(this.hostElement).querySelector("#items"),
H=_.h6("HTML_DIR")==="rtl",T=H?I.clientWidth-V.offsetLeft:V.offsetLeft;I=H?I.clientWidth-(V.offsetLeft+V.clientWidth):V.offsetLeft+V.clientWidth;var x=H?T>this.offset+l.clientWidth:T<this.offset,n=H?I<this.offset:I>this.offset+l.clientWidth,w=H?x:n;if(H?n:x)l=H?I:T,this.offset=Math.abs(l)<V.clientWidth?0:l;else if(w)this.ytLazyListBehavior.fillRemainingListItems(),_.KD(),this.offset=(H?T:I)-l.clientWidth;else return}H7(this);this.reposition_()}};
_.B.observeShownItems_=function(){this.reset()};
_.B.checkComponentWidthResize=function(){var V=_.h(this.hostElement).querySelector("#items").firstElementChild;V&&(V=Jki(this,V),this.centerListItems||V!==this.minComponentWidth)&&(this.minComponentWidth=V,this.offset=V*this.scrollCount,this.centerListItems&&oS0(this),H7(this),this.reposition_())};
var Jki=function(V,l){var I=window.getComputedStyle(l).marginRight;I=Math.floor(Number(I.replace("px","")));var H=window.getComputedStyle(l).marginLeft;H=Math.floor(Number(H.replace("px","")));V.centerListItems&&!V.marginWidthRight&&(V.marginWidthRight=I,V.marginWidthLeft=H);return V.resizeSupportEnabled?l.getBoundingClientRect().width+I:l.offsetWidth+I},H7=function(V){var l=_.h(V.hostElement).querySelector("#scroll-container").clientWidth,I=_.h(V.hostElement).querySelector("#items").clientWidth;
V.offset<0?V.offset=0:V.offset+l>=I&&(V.offset=I-l)},oS0=function(V){V.offset-=(_.h(V.hostElement).querySelector("#scroll-container").clientWidth+V.marginWidthRight-V.minComponentWidth)/2-V.marginWidthLeft};
_.vI.Object.defineProperties(T9.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var V=_.h6("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(V==-1)V=this.JSC$12103_cachedViewportHeight,V=V>1320?5:V>1020?4:V>730?3:V>430?2:1;else if(V==0)return 0;_.ow("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",V-1);V=_.h6("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(V>-1)return V;V=this.cachedViewportWidth;V=V>1600?6:V>1400?5:V>1300?4:V>1090?5:V>870?4:V>660?3:2;_.ow("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
V);return V},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.z("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
var B7=T9;B7.prototype.observeShownItems_=B7.prototype.observeShownItems_;B7.prototype.onChildElementFocus_=B7.prototype.onChildElementFocus_;B7.prototype.onItemsTransitionEnd_=B7.prototype.onItemsTransitionEnd_;B7.prototype.onIronResize_=B7.prototype.onIronResize_;B7.prototype.prevClick_=B7.prototype.prevClick_;B7.prototype.nextClick_=B7.prototype.nextClick_;B7.prototype.setButtonsState_=B7.prototype.setButtonsState_;B7.prototype.requestButtonsStateUpdate_=B7.prototype.requestButtonsStateUpdate_;
B7.prototype.reposition_=B7.prototype.reposition_;B7.prototype.reset=B7.prototype.reset;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.lL.YtLazyListBehavior),_.a("design:type",Object)],B7.prototype,"ytLazyListBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],B7.prototype,"atStart",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],B7.prototype,"atEnd",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"startIndex",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"endIndex",void 0);_.O([_.q({value:6}),_.a("design:type",Number)],B7.prototype,"initialCount",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"scrollCount",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"initialStartIndex",void 0);
_.O([_.q(),_.a("design:type",Object)],B7.prototype,"disableScrollEventListener",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"supportComponentResize",void 0);_.O([_.q({value:function(){var V=this;return function(){return V.prevClick_()}}}),
_.a("design:type",Function)],B7.prototype,"boundPrevClick",void 0);_.O([_.q({value:function(){var V=this;return function(){return V.nextClick_()}}}),
_.a("design:type",Function)],B7.prototype,"boundNextClick",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"useFloorScrolling",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"isSearch",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"dragging",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"dragMouseStart",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"dragOffsetStart",void 0);
_.O([_.q(),_.a("design:type",Object)],B7.prototype,"disableWheelScroll",void 0);_.O([_.q(),_.a("design:type",Object)],B7.prototype,"centerListItems",void 0);_.O([_.W("iron-resize"),_.b("guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B7.prototype,"onIronResize_",null);_.O([_.W("transitionend"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],B7.prototype,"onItemsTransitionEnd_",null);
_.O([_.W("focusin"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],B7.prototype,"onChildElementFocus_",null);_.O([_.b("shownItems"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B7.prototype,"observeShownItems_",null);B7=_.O([_.B1()],B7);_.ID.YtdHorizontalListBehavior=[];_.ID.YtdHorizontalListBehavior.push(_.Da,_.m.YtRendererBehavior,_.lL.YtLazyListBehavior,_.bM.YtdGuideStateAwareBehavior,B7.prototype);var HEf=["APP_STATE","PI"];var hYw=_.fl(["about:blank"]),P7N={pushState:window.history.pushState,replaceState:window.history.replaceState};var xr=function(V){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=V;this.internalPushState=V.pushState.bind(V);this.internalReplaceState=V.replaceState.bind(V)};
xr.prototype.init=function(){this.initialized=!0};
xr.prototype.pushState=function(V,l){this.initialized||this.init();this.internalPushState&&this.internalPushState(V,"",l)};
xr.prototype.replaceState=function(V,l){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(V,"",l)};
xr.prototype.getState=function(){return this.history&&this.history.state};var D2w=function(V){var l=function(){var I=V.apply(this,arguments)||this;I.boundHistoryPushState=!1;I.boundHistoryReplaceState=!1;I.debugInfo={};return I};
_.t(l,V);l.prototype.init=function(){var I=_.jk("IFRAME");_.AV(I,_.TP(hYw));I.sandbox="allow-same-origin";I.style.display="none";this.iframe=I;document.body.appendChild(I);this.bindHistoryStateFunctions();V.prototype.init.call(this)};
l.prototype.bindHistoryStateFunctions=function(){var I=this,H=[],T;this.iframe&&((T=this.iframe.contentWindow)==null?0:T.history)&&(T=this.iframe.contentWindow.history)&&(H.push(T),Object.getPrototypeOf(T)&&H.push(Object.getPrototypeOf(T)));window.history&&H.push(window.history);T=window.history;Object.getPrototypeOf(T)&&H.push(Object.getPrototypeOf(T));H.push(P7N);T=function(n){for(var w=null,N=0;N<H.length;N++){var L=H[N][n];if(typeof L==="function"){w=L.bind(window.history);I.debugInfo[n]=N;break}}return w};
if(!this.boundHistoryReplaceState){var x=T("replaceState");x&&(this.internalReplaceState=x,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(T=T("pushState"))&&(this.internalPushState=T,this.boundHistoryPushState=!0)};
return l}(xr),Z$B=function(){return D2w.call(this,window.history)||this};
_.t(Z$B,D2w);Z$B.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Uu=function(V){this.browserHistory=V;this.initialized=!1};
Uu.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Uu.prototype.pushState=function(V,l){this.initialized||this.init();this.browserHistory.pushState(V,l)};
Uu.prototype.replaceState=function(V,l){this.initialized||this.init();this.browserHistory.replaceState(V,l)};
Uu.prototype.handlePopstate=function(V){return V.state};_.Sa3=function(V,l,I,H,T){this.endpoint=V;this.forward=l;this.historyEntry=I;this.JSC$26275_savedComponentState=H;this.legacyBorder=T===void 0?!1:T};var RYN=function(V,l){this.rootData=V;this.scrollTop=l};var oK=new _.Vr("PAGE_REQUEST_TOKEN"),E3Z=new _.Vr("FETCH_PBJ_TOKEN");_.nz=new _.Vr("EPHEMERAL_STORE_TOKEN");_.$r=function(V){this.data=Object.assign({},V);var l;(l=this.data.innertubeResponse)==null||delete l.frameworkUpdates};
_.$r.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.O_)()};
_.wE=function(V){return Object.assign({},V.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var QEN=function(){this.maxSize=100;this.timeToDataCache=new Map};
QEN.prototype.get=function(V){var l=this.timeToDataCache.get(V);l&&(this.timeToDataCache.delete(V),this.timeToDataCache.set(V,l));if(l&&l.rootData&&(_.z("web_use_response_store_for_history_cache")||_.z("mweb_use_new_history_manager"))){var I=_.F().resolve(_.nz),H=cka(l),T=!!H;if(H){if(H.content){var x=dc(I,H.content);T&&x?l.rootData.response=_.wE(x):T=!1}H.player&&(x=dc(I,H.player),T&&x?l.rootData.playerResponse=_.wE(x):T=!1);H.reelSequence&&(I=dc(I,H.reelSequence),T&&I?l.rootData.reelWatchSequenceResponse=
_.wE(I):T=!1)}T||(this.timeToDataCache.delete(V),l=void 0)}return l};
QEN.prototype.set=function(V,l){if(l.rootData&&(_.z("web_use_response_store_for_history_cache")||_.z("mweb_use_new_history_manager"))){var I=cka(l),H=Object.assign({},l.rootData);I&&(I.content&&l.rootData.response&&(Wiw(this,I.content,l.rootData.response),H.response=null),I.player&&l.rootData.playerResponse&&(Wiw(this,I.player,l.rootData.playerResponse),H.playerResponse=null),I.reelSequence&&l.rootData.reelWatchSequenceResponse&&(Wiw(this,I.reelSequence,l.rootData.reelWatchSequenceResponse),H.reelWatchSequenceResponse=
null));l=new RYN(H,l.scrollTop)}this.timeToDataCache.has(V)?this.timeToDataCache.delete(V):this.timeToDataCache.size>=this.maxSize&&(I=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(I.value));this.maxSize!==0&&this.timeToDataCache.set(V,l)};
QEN.prototype.clear=function(){this.timeToDataCache.clear()};
var cka=function(V){var l=_.F().resolve(_.Cs(oK)),I;if((I=V.rootData)==null?0:I.endpoint)return l==null?void 0:YGT(l,V.rootData.endpoint);var H;_.hF(new _.Yd("History snapshot response data does not contain endpoint",(H=V.rootData)==null?void 0:H.url));return null},Wiw=function(V,l,I){if(V.maxSize>0){var H;
(V=(H=I.responseContext)==null?void 0:H.maxAgeSeconds)&&Number(V)>0&&(H=_.F().resolve(_.nz),I=ms(I,V),H.put(l,new _.$r(I)))}};var b$i=function(V,l,I){this.endpoint=l;this.JSC$26280_savedComponentState=I===void 0?null:I;this.entryTime=V};var $by=1;var wc=function(V){var l=function(){var I=V.apply(this,[].concat(_.oI(_.Q5.apply(0,arguments))))||this;I.historyEntryTime=0;I.historySnapshotCache=I.createHistoryCache();return I};
_.t(l,V);l.prototype.createHistoryCache=function(){return new QEN};
l.prototype.saveAndReplace=function(I,H,T){var x=window.location.href;var n=n===void 0?{}:n;var w=(w=this.browserHistory.getState())&&w.entryTime?w.entryTime:db3();I=this.createNewHistoryEntry(I,n,w);this.saveSnapshot(w,H,T);this.replaceState(I,x||window.location.href)};
l.prototype.saveAndPush=function(I,H,T,x,n){n=n===void 0?{}:n;this.saveSnapshot(this.historyEntryTime,T,x);T=this.historySnapshotCache;x=this.historyEntryTime;var w=T.timeToDataCache.keys();w=_.U(w);for(var N=w.next();!N.done;N=w.next())N=N.value,N>x&&T.timeToDataCache.delete(N);H=this.createNewHistoryEntry(H,n);this.pushState(H,I)};
l.prototype.saveSnapshot=function(I,H,T){this.historySnapshotCache.set(I,new RYN(H,T))};
l.prototype.createNewHistoryEntry=function(I,H,T){T=T===void 0?db3():T;return new b$i(T,I,H)};
l.prototype.handlePopstate=function(I){var H=V.prototype.handlePopstate.call(this,I),T=null,x=null,n=!1,w=null;H&&H.entryTime&&(w=this.historySnapshotCache.get(H.entryTime)||null,n=H.entryTime>this.historyEntryTime,this.historyEntryTime=H.entryTime,T=H.endpoint,x=H.JSC$26280_savedComponentState);this.handleHistoryCacheLoad(new _.Sa3(T,n,w,x),I);return H};
l.prototype.pushState=function(I,H){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);V.prototype.pushState.call(this,I,H)};
l.prototype.replaceState=function(I,H){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);V.prototype.replaceState.call(this,I,H)};
l.prototype.handleHistoryCacheLoad=function(){};
return l}(Uu),qao=function(){var V=wc.call(this,new Z$B)||this;
V.dispatchElement=null;V.entryIndex=0;return V};
_.t(qao,wc);_.B=qao.prototype;_.B.init=function(V){V=V===void 0?!0:V;wc.prototype.init.call(this);this.initialized||(V||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.B.handlePopstate=function(V){var l=null;V.state||(l="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return wc.prototype.handlePopstate.call(this,V);var I=new CustomEvent("yt-history-pop",{cancelable:!0});_.xB(this.dispatchElement,"yt-history-pop",[I,{errorMsg:l}]);_.U4(this.dispatchElement,"yt-close-all-popups-action");if(!I.defaultPrevented){I=_.F().resolve(_.pa);l=I.getCurrentData();var H=I.getCurrentPage();I=0;H?(H=_.xB(this.dispatchElement,"yt-get-page-offset",
[H]),H.length>0&&(I=H[0])):_.hF(new _.Yd("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:l?l.page:"undefined"}));l&&(l.csn=_.oa());this.saveSnapshot(this.historyEntryTime,l,I)}return wc.prototype.handlePopstate.call(this,V)};
_.B.handleHistoryCacheLoad=function(V,l){l.state&&(V.legacyBorder=!!l.state["spf-timestamp"]||!!l.state.blazer);V.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.U(_.U4(this.dispatchElement,"yt-history-will-navigate",[l])).next().value||_.xB(this.dispatchElement,"yt-history-load",[l,V]))};
_.B.pushState=function(V,l){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var I=new _.Yd("history.pushState is not a function",this.getDebugString());_.Gr(I)}wc.prototype.pushState.call(this,V,l)};
_.B.replaceState=function(V,l){if(!this.browserHistory.boundHistoryReplaceState){var I=new _.Yd("history.replaceState is not a function",this.getDebugString());_.Gr(I)}wc.prototype.replaceState.call(this,V,l)};
_.B.saveAndPush=function(V,l,I,H,T){T=T===void 0?{}:T;I&&(I.csn=_.oa());wc.prototype.saveAndPush.call(this,V,l,I,H,T)};
_.B.getDebugString=function(){var V=[];this.initialized&&V.push("i");this.browserHistory.boundHistoryReplaceState&&V.push("bhr");this.browserHistory.boundHistoryPushState&&V.push("bhs");"replaceState"in this.browserHistory.debugInfo&&V.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&V.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&V.push("ei:"+String(this.entryIndex));return V.join(",")};
_.B.replaceUrl=function(V){this.init(!0);var l=this.browserHistory.getState();this.replaceState(l,gq(V))};
_.B.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Mg3=new _.Vr("DESKTOP_HISTORY_MANAGER_TOKEN");var sEw=[10,20,30,40,50,60],N6=function(){this.currentPartitionIndex=0},pGv=function(V){MWN({mainAppWeb:_.RQ(),
survivalSli:{partitionMinute:V,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Ak3=function(V){MWN({mainAppWeb:_.RQ(),
survivalSli:{partitionMinute:V,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},uPb=function(V){return V.currentPartitionIndex>=0&&V.currentPartitionIndex<sEw.length?sEw[V.currentPartitionIndex]:-1},vSZ=function(V){return V.currentPartitionIndex>0&&V.currentPartitionIndex-1<sEw.length?sEw[V.currentPartitionIndex-1]:-1};
N6.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var V=vSZ(this);V>0&&Ak3(V);V=uPb(this);V>0&&pGv(V);O$N(this)}};
var O$N=function(V){var l=uPb(V);if(l>0){var I=vSZ(V);I<0&&(I=0);V.intervalId=_.r0.addJob(function(){var H=vSZ(V);H>0&&Ak3(H);H=uPb(V);H>0&&pGv(H);O$N(V)},3,(l-I)*6E4);
V.currentPartitionIndex+=1}else V.currentPartitionIndex=-1};var C73=function(){this.skipNextNavigation=!1},adv=function(V,l,I){if(!l)return!1;
if(V.skipNextNavigation)return V.skipNextNavigation=!1;if(_.y(I,_.cF))return!1;var H,T,x;if((H=_.y(I,_.$V))==null?0:(T=H.browseEndpointContextSupportedConfigs)==null?0:(x=T.browseEndpointContextMainConfig)==null?0:x.skipConfirmation)return!1;var n;return((n=_.y(l.commandMetadata,_.mK))==null?void 0:n.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
C73.prototype.showConfirmationDialog=function(V,l){this.navigateParams=l;this.customConfirmationCommand?_.F().resolve(_.aw).resolveCommand(this.customConfirmationCommand):(l={openPopupAction:{popup:{confirmDialogRenderer:{title:_.pW(_.LT("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.pW(_.LT("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.pW(_.LT("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.pW(_.LT("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.WF.getInstance().triggerAction("yt-open-popup-action",l,V))};
C73.prototype.cancelPendingNavigation=function(){var V;((V=this.navigateParams)==null?void 0:V.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var fdE=function(){},m2N=function(V,l,I,H,T,x){I=I===void 0?{}:I;
var n=_.x6.instance,w,N=(w=_.y(l,_.cF))==null?void 0:w.url;return N?vyt(n,N,I,window.location.href,function(L,e){gSN(V,L,e,!1,!0,I,x,H)},function(){return!1}):uR(n,l,I,window.location.href,KY(l),function(L,e){gSN(V,L,e,!1,!0,I,x,H)},T)},gSN=function(V,l,I,H,T,x,n,w){if(!V.JSC$12161_chunkHandler)if(I.page==="watch")if(T||H){if(_.z("kevlar_continue_playback_without_player_response")){var N;
var L=(N=_.y(w,_.vU))==null?void 0:N.videoId}V.JSC$12161_chunkHandler=new xs0(_.u8,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:H,previousVideoId:L},tempData:x},n)}else V.JSC$12161_chunkHandler=new lWZ(_.u8);else I.page==="shorts"&&T&&!H?V.JSC$12161_chunkHandler=new BnJ(_.u8,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:x},n):V.JSC$12161_chunkHandler=new IWv(n);V.JSC$12161_chunkHandler.processChunk({endpoint:l,data:I});return V.JSC$12161_chunkHandler.pK.promise},
i$W=function(V,l,I,H,T){(I=_.MGW(I))&&gSN(V,l,I,!1,!0,H,void 0,T)};var VBa=function(){this.pendingNavigationPromise=null};
_.B=VBa.prototype;_.B.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.B.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.B.addEventListener=function(){throw Error("Ah");};
_.B.dispatchEvent=function(){throw Error("Ah");};
_.B.removeEventListener=function(){throw Error("Ah");};var l2a=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Kz=function(){_.tm.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];I2w(this)};
_.t(Kz,_.tm);Kz.prototype.verifyUser=function(){var V=I2w(this),l=V.logout;if(!V.sessionChange)return!0;this.dispatchEvent("ytsessionchange");l&&this.dispatchEvent("ytuserinvalid");return!1};
var I2w=function(V){var l=l2a.map(function(T){var x;return(x=_.dm.get(T))!=null?x:""}),I=l.some(function(T,x){return V.sessionCookies&&V.sessionCookies[x]!==""&&T===""}),H=l.some(function(T,x){return V.sessionCookies&&V.sessionCookies[x]!==T});
V.sessionCookies=l;return{logout:I,sessionChange:H}};
Kz.prototype.clearTimeout=function(){this.scheduledJobId&&(_.r0.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Ycg=new _.Vr("POSTMESSAGE_TUNNEL_TOKEN");var N1w=["/parent_tools","/file_download","/artist_roster"],kCN=[KWo,jio,YNw,e3b,LWJ,NbE,kEB,FWw];var jy=new _.Vr("NAVIGATION_CONFIRMATION_SERVICE");var H4Z="/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(" "),TiJ=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
Yr=function(V){this.pendingNavigationPromise=null;this.JSC$12179_clientRoot=V;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 fdE;this.debugString=V.is;V={"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};_.bx(_.WF.getInstance(),V,this.JSC$12179_clientRoot)},$Pb,dPZ,wMW,NiW,n5a;
_.t(Yr,VBa);Yr.prototype.reload=function(){_.oQ(window.location.href)};
var Axo=function(V){V.currentEndpoint&&_.y(V.currentEndpoint,_.YV)?V.reload():V.currentEndpoint&&V.navigate(V.currentEndpoint,!0,void 0,{disableCache:!0})};
Yr.prototype.navigate=function(V,l,I,H,T,x,n){l=l===void 0?!1:l;I=I===void 0?{}:I;H=H===void 0?{}:H;var w=_.F().resolve(jy),N;if(!n&&adv(w,(N=this.currentEndpoint)!=null?N:void 0,V))return w.showConfirmationDialog(this.JSC$12179_clientRoot.parentElement,{endpoint:V,reload:l,params:I,tempData:H,requestType:T,createScreenConfig:x}),!1;var L=_.b1();_.qB(L,"eocs")||L.parkOrScheduleJob(function(){L.processSignal("eocs")},10,"eor");
n=KY(V);w=H.autonav==="1";N=_.oa();Kz.instance||(Kz.instance=new Kz);var e=Kz.instance.verifyUser(),k;if(_.z("enable_dark_theme_only_on_shorts")){var X=document.documentElement.hasAttribute("dark"),r=_.Pb(!0)==="USER_INTERFACE_THEME_DARK";if(n==="shorts"){if(!X)if(_.z("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var E;_.oQ((E=_.y(V==null?void 0:V.commandMetadata,_.mK))==null?void 0:E.url,void 0,void 0,window.top)}}else{var D;_.oQ(_.qS((D=_.y(V==null?
void 0:V.commandMetadata,_.mK))==null?void 0:D.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.z("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!X){var Z;_.oQ(_.qS((Z=_.y(V==null?void 0:V.commandMetadata,_.mK))==null?void 0:Z.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(r!==X){var S;_.oQ(_.qS((S=_.y(V==null?void 0:V.commandMetadata,_.mK))==null?void 0:S.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(n==="watch"){if(Bib(_.F().resolve(_.sH),
V)&&(e||_.z("fix_miniplayer_navigation_killswitch")))return!1;_.z("block_all_player_prefetch_requests")||(k=s5o(_.$_(_.Up),V,w))}else{var p,Vf=(p=_.y(this.currentEndpoint,_.vU))==null?void 0:p.videoId;Vf&&_.tt.getInstance().then(function(ec){ec&&ec.set("yt-miniplayer-shown-video-id",Vf)})}k&&(I.frags=k.missingFragments_.join(","));
E=null;var C;D=(C=_.y(V==null?void 0:V.commandMetadata,_.mK))==null?void 0:C.ignoreNavigation;if(!D)if(_.z("kevlar_command_url")){var By;E=(By=_.y(V==null?void 0:V.commandMetadata,_.mK))==null?void 0:By.url}else E=_.r93(V,I);if(E&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&E==this.lastNavigationUrl)return _.P$({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.k_(SX(),"CANCELLED")}E&&(this.lastNavigationUrl=E);dow();_.ow("IS_HOMEPAGE_COLD",
!1);_.ow("IS_RESULTS_PAGE_COLD",!1);_.ow("IS_WATCH_PAGE_COLD",!1);V.loggingUrls&&V.loggingUrls.forEach(function(ec){ec.baseUrl&&_.RS(ec.baseUrl)});
_.yaf(V,x?x.layer:0)&&_.z("kevlar_flush_logs_on_away_navigation")&&_.rT();if(F0t(V))return!1;EX0(n,T);if(!E)return D||_.hF(new _.Yd("Can't construct url for endpoint",V)),_.k_(SX(),"FAILURE"),!1;_.wZ1();C=V&&_.y(V,_.$V)&&_.y(V,_.$V).browseId.startsWith("UC");I=(By=_.z("enable_dark_theme_only_on_shorts")&&n==="shorts"?!1:_.Df()&&document.documentElement.hasAttribute("dark")!==_.hv())?{themeRefresh:1}:{};By&&!_.Nl()&&_.Pb()==="USER_INTERFACE_THEME_DARK"&&(I.theme="dark");C=By||xPJ(E)&&!C&&!_.z("kevlar_disable_url_allowlist");
e||(C=!0);if(C||_.h6("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var lN;var wW=(lN=window.top)==null?void 0:lN.location.href}catch(ec){var o1;wW=(o1=ec)==null?void 0:o1.message}_.hF(new _.Yd("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:wW}))}V=_.z("kevlar_redirect_on_window_killswitch")?window.top:window;Jv(E);_.oQ(_.qS(E,I),void 0,void 0,V);_.k_(SX(),"ABORTED");return!1}_.z("kevlar_early_popup_close")&&_.xB(this.JSC$12179_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12161_chunkHandler=void 0;var h1;wW=KY((h1=this.currentEndpoint)!=null?h1:void 0);(h1=n==="shorts"&&wW==="shorts")||_.aEt();_.Zp(RDf)("nr",void 0);w&&_.P$({webInfo:{navigationReason:"an"}});V.clickTrackingParams&&(H.itct=V.clickTrackingParams,H.csn=N);YuJ(H);H.endpoint=JSON.stringify(V);_.z("enable_unknown_lact_fix_on_html5")&&(_.F().resolve(_.Fp),H.lact=_.f0());_.EL.isEmpty(H)||_.f8(E,H);!_.z("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(x=Object.assign({},{layer:0},x,{parentLayer:3}));this.pendingNavigationPromise=x=m2N(this.pageFetcher,V,H,this.currentEndpoint,this.JSC$12179_isNetworkPromiseStale.bind(this),x);x=x.then(this.handleNavigateSuccess.bind(this,x,V,k,H),this.handleNavigateFail.bind(this,x,V));_.jl().navigationFinishPromise=x;l={endpoint:V,pageType:n,url:gq(E),reload:!!l,noProgressBar:_.z("web_disable_page_navigation_progress")||h1};T&&(l.type=T);this.fireEvent("yt-navigate-start",l);k&&i$W(this.pageFetcher,
V,k,H,this.currentEndpoint);return!0};
Yr.prototype.JSC$12179_isNetworkPromiseStale=function(V){return V!=this.pendingNavigationPromise};
var UPw=function(V,l,I,H,T){var x=KY(l);l={endpoint:l,pageType:x};T&&(l.errorMessage=T);_.hF(I);l.navigationDoneMs=_.Z8("nd");l.navigationErrorReason=H;V.fireEvent("yt-navigate-error",l)};
Yr.prototype.handleNavigateFail=function(V,l,I){var H=void 0;I instanceof _.WU&&(H=I,y9K(I));if(this.JSC$12179_isNetworkPromiseStale(V))return _.bK(H);_.k_(SX(),"FAILURE");UPw(this,l,I,"101");return _.bK(I)};
Yr.prototype.handleNavigateSuccess=function(V,l,I,H,T){if(this.JSC$12179_isNetworkPromiseStale(V))return _.w6();this.pendingNavigationPromise=null;if(!T)return l=new _.Yd("Missing data in response for navigation endpoint",l),_.bK(l);if(T.reload)return window.location.reload(!0),_.w6();I&&(V={},_.EL.extend(V,_.MGW(I),T),T=V);var x,n;I=(x=T)==null?void 0:(n=x.timing)==null?void 0:n.responseStart;I!=null&&_.Z8("srt",I);_.Z8("pdc");var w,N;x=(w=T)==null?void 0:(N=w.timing)==null?void 0:N.info;x!=null&&
(w=_.Zp(_.bD1)(x),_.P$(w));_.k_(SX(),"SUCCESS");n5a(this,l,T,1,H);return _.w6()};
var xPJ=function(V){var l=V;_.z("kevlar_no_redirect_to_classic_2_ks")||(l=(new _.OA(V)).getPath());if(l==="/"||l==="/red")return!1;var I=!0;H4Z.forEach(function(H){V.indexOf(H)===0&&(I=!1)});
TiJ.forEach(function(H){var T=H.url;_.z(H.expFlag)&&V.indexOf(T)===0&&(I=!1)});
return I};
Yr.prototype.publishPageData=function(V){this.fireEvent("yt-page-data-fetched",{pageData:V})};
$Pb=function(V,l,I,H,T,x){var n=null;l.page!=="watch"||H?l.filler||_.xB(V.JSC$12179_clientRoot,"yt-stop-old-player",[l]):n=gSN(V.pageFetcher,T,l,I,!1,x,void 0,V.currentEndpoint);if(n)return n.then(V.publishPageData.bind(V,l));V.publishPageData(l);return _.w6()};
dPZ=function(V,l,I){var H=null;if(!I)return H=new _.Yd("Empty data",V.debugString,l);var T=I.response;if(!T)return H;var x={endpointType:KY(l)||"unknown"};T.responseContext?(T=T.responseContext.errors)&&(H=new _.Yd("Errors in response context",V.debugString,l,T,x)):H=T.error||T.errorMetadata?new _.Yd("Errors in response",V.debugString,l,T.error,T.errorMetadata,x):new _.Yd("responseContext missing",V.debugString,l,Object.keys(T).sort().join(","),x);var n,w,N,L;if(V=I==null?void 0:(n=I.response)==null?
void 0:(w=n.responseContext)==null?void 0:(N=w.webResponseContextExtensionData)==null?void 0:(L=N.webResponseContextDebugData)==null?void 0:L.debugErrorMessages)for(n=0;n<V.length;n++);return H};
wMW=function(V){var l,I,H,T;return V==null?void 0:(l=V.response)==null?void 0:(I=l.responseContext)==null?void 0:(H=I.errors)==null?void 0:(T=H.error)==null?void 0:T["0"]};
NiW=function(V,l){var I;if(I=l.url&&!l.url.startsWith("/clip"))I=l.url,I=!_.z("webfe_parse_debug_param_in_resolveurl_service")&&V.searchDebugUrlMatcher.test(I)||oBW(I)?!0:!1;if(I)oBW(l.url)&&_.bt(window.location.href).themeRefresh?V.fireEvent("yt-navigate-redirect",{url:_.gS(l.url,"themeRefresh")}):l.url&&!Ub3(l.url)&&V.fireEvent("yt-navigate-redirect",{url:l.url});else if(l.endpoint){var H,T,x;(I=(H=l.endpoint)==null?void 0:(T=H.commandMetadata)==null?void 0:(x=T.webCommandMetadata)==null?void 0:
x.url)&&!Ub3(I)&&V.fireEvent("yt-navigate-redirect",{url:I});I&&l.url&&I!=l.url&&!l.url.match("playnext=1")&&new _.Yd("Response url mismatch in response data",V.debugString,I,l.url)}};
_.KZN=function(V,l,I,H,T,x,n,w){x=x===void 0?!1:x;var N=_.F().resolve(jy),L;if(!w&&adv(N,(L=V.currentEndpoint)!=null?L:void 0,l))return N.showConfirmationDialog(V.JSC$12179_clientRoot.parentElement,{endpoint:l,data:I,navigationType:H,tempData:T,isMiniplayer:x,isForwardHistoryNavigation:n==null?void 0:n.forward}),_.w6();V.pageFetcher.JSC$12161_chunkHandler=void 0;return n5a(V,l,I,H,T,x)};
n5a=function(V,l,I,H,T,x){x=x===void 0?!1:x;V.isMiniplayerExpansion=x;var n=H===2;V.currentEndpoint=l;V.numNavigations++;V.numNavigations&&(Imq.navigationCount=V.numNavigations);_.ow("NUM_NAV",V.numNavigations);var w=dPZ(V,l,I);if(w)return UPw(V,l,w,"102",wMW(I)),_.bK(w);var N,L,e,k;w=I.rootVe||(I==null?void 0:(N=I.response)==null?void 0:(L=N.responseContext)==null?void 0:(e=L.webResponseContextExtensionData)==null?void 0:(k=e.ytConfigData)==null?void 0:k.rootVisualElementType);!n&&I&&NiW(V,I);var X,
r;N=I==null?void 0:(X=I.response)==null?void 0:(r=X.responseContext)==null?void 0:r.maxAgeSeconds;if(!n&&!isNaN(N)){var E;_.z("kevlar_use_response_ttl_to_invalidate_cache")?E=(0,_.O_)()+1E3*N:_.z("kevlar_always_invalidate_cache")&&(E=0);isNaN(E)||(I.expirationTime=E)}_.z("html5_enable_ssap_entity_id")&&n&&I.playerResponse&&(I.playerResponse.cacheMetadata={isCacheHit:!0});_.$_(_.Up).prefetchCache_.clear();n||I.page!=="watch"||I.type!=="reduced"&&H!==1?H=$Pb(V,I,n,!!x,l,T):(V.publishPageData(I),H=_.w6());
T=H.then(function(){var D=KY(l);D={endpoint:l,pageType:D,fromHistory:n,response:I};D.navigationDoneMs=_.Z8("nd");V.fireEvent("yt-navigate-finish",D)});
I.csn&&w&&I.clientSideGrafts&&H.then(V.attachClientSideGrafts.bind(V,I,_.JO()));return T};
_.B=Yr.prototype;_.B.attachClientSideGrafts=function(V,l){V.clientSideGrafts&&l&&V.clientSideGrafts.forEach(function(I){if(l&&I){var H=_.dj(I);_.z("combine_ve_grafts")?_.x7().graftServerVe(I,l):_.MJ(V.csn,l,H)}})};
_.B.handleSignalActionHistoryBack=function(){window.history.back()};
_.B.handleSignalActionCloseWindow=function(){window.close()};
_.B.handleSignalActionReloadPage=function(){this.reload()};
_.B.handleSignalActionSoftReloadPage=function(){Axo(this)};
_.B.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.B.fireEvent=function(V,l){V=new CustomEvent(V,{bubbles:!0,cancelable:!1,composed:!0,detail:l});this.dispatchEvent(V)};
_.B.addEventListener=function(V,l){this.JSC$12179_clientRoot.addEventListener(V,l)};
_.B.dispatchEvent=function(V){return this.JSC$12179_clientRoot.dispatchEvent(V)};
_.B.removeEventListener=function(V,l){this.JSC$12179_clientRoot.removeEventListener(V,l)};_.Iyt=new Ef("browse","h8y2qb");_.H91=new Ef("search","JzFVk");_.THg=new Ef("shorts","xwEKAe");_.BHJ=new Ef("watchFixie","nmfa2d");_.xgy=new Ef("watchFlexy","CF909");_.UgT=new Ef("watchGrid","Tm0L3c");_.nZJ=new Ef("watchLearningJourney","L3n37");var jh3;var YKa=function(){return _.M.apply(this,arguments)||this};
_.t(YKa,_.M);_.vI.Object.defineProperties(YKa,{template:{configurable:!0,enumerable:!0,get:function(){if(jh3===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);jh3=V}V=jh3;return V}}});
var LZE=YKa;_.O([_.R(Kia.YtPlayerBehavior),_.a("design:type",Object)],LZE.prototype,"ytPlayerBehavior",void 0);LZE=_.O([_.A({is:"ytd-player"})],LZE);var eVo;var kkN;var FZv;var Lz=function(){var V=_.M.apply(this,arguments)||this;V.forceModernIconButton=!1;V.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return V};
_.t(Lz,_.M);Lz.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]]"}}}}}};
Lz.prototype.handleAccountLinkingStateChangedCommand=function(V){if(V=_.y(V,X63)){var l,I=(l=this.data)==null?void 0:l.providerKey;l=V.providerKey;I&&l&&I.id===l.id&&I.subject===l.subject&&(V=V.linked,V!==void 0&&(this.set("data.linked",V),this.notifyPath("data.linked"),_.z("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(V)))}};
Lz.prototype.setPlayerAccountLinkState=function(V){var l=new V91;i4c(l,lP1(new IPT,V));var I=_.u8();I&&I.getPlayerPromise().then(function(H){H.setAccountLinkState(_.rg(l.JSC$9916_serializeBinary(),4));H.updateAccountLinkingConfig(V)})};
Lz.prototype.handleShowAccountLinkDialog=function(){var V=this.get("button.buttonRenderer.command");V&&_.KT([V],this.hostElement)};
_.vI.Object.defineProperties(Lz.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
var ey=Lz;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.O([_.R([_.aU.YtActionHandlerBehavior]),_.a("design:type",Object)],ey.prototype,"actionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ey.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],ey.prototype,"overrides",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ey.prototype,"forceModernIconButton",void 0);_.O([_.q({value:"bottom"}),_.a("design:type",String)],ey.prototype,"buttonTooltipPosition",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],ey.prototype,"forceIconButton",void 0);_.O([_.q(),_.a("design:type",Boolean)],ey.prototype,"disableTextTransform",void 0);
_.O([_.Q("data","data.linked","data.isWarning"),_.a("design:type",Object),_.a("design:paramtypes",[])],ey.prototype,"button",null);ey=_.O([_.A({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],ey);
_.u(ey,"ytd-account-link-button-renderer",function(){if(FZv!==void 0)return FZv;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return FZv=V},{mode:1});var XMB;var zVN=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],kr=function(){return _.M.apply(this,arguments)||this};
_.t(kr,_.M);kr.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
kr.prototype.updateButtonActiveState=function(){var V=this,l=!!zVN.find(function(I){return V.currentState===I});
this.button&&(this.button.isPressed=l)};
_.vI.Object.defineProperties(kr.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.playlistLoopStateEntity)==null?void 0:V.state)||((l=this.data)==null?void 0:l.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var V=void 0,l;if(this.currentState&&((l=this.data)==null?0:l.states)){l=_.U(this.data.states);for(var I=l.next();!I.done;I=l.next()){I=_.y(I.value,_.qON);var H=void 0;if(((H=I)==null?void 0:H.state)===this.currentState){V=I;break}}}return V}}});
var FA=kr;FA.prototype.updateButtonActiveState=FA.prototype.updateButtonActiveState;_.O([_.R(_.DS),_.a("design:type",Object)],FA.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],FA.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.oKq}),_.a("design:type",Object)],FA.prototype,"playlistLoopStateEntity",void 0);_.O([_.q(),_.a("design:type",Object)],FA.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],FA.prototype,"forceIconOnly",void 0);_.O([_.Ij("ytd-button-renderer"),_.a("design:type",_.Of)],FA.prototype,"button",void 0);
_.O([_.Q("data","playlistLoopStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],FA.prototype,"currentState",null);_.O([_.b("currentButtonStateRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FA.prototype,"updateButtonActiveState",null);_.O([_.Q("currentState"),_.a("design:type",Object),_.a("design:paramtypes",[])],FA.prototype,"currentButtonStateRenderer",null);
FA=_.O([_.A({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],FA);
_.u(FA,"ytd-playlist-loop-button-renderer",function(){if(XMB!==void 0)return XMB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return XMB=V},
{mode:1});var y_b;var tBb=_.LT("DOWNLOAD",{},"Download"),r_a=_.LT("DOWNLOADING",{},"Downloading"),GkN=_.LT("DOWNLOADED",{},"Downloaded"),E5o=_.LT("RETRY",{},"Retry"),J_J=function(){var V=_.M.apply(this,arguments)||this;V.forceIconButton=!1;V.forceIconOnly=!1;V.overrides=!1;V.buttonTooltipPosition=!1;V.styleActionButton=!1;V.disableTextTransform=!1;V.downloadProgress=0;V.isDownloadComplete=!1;V.isHidden=!0;V.transferState="TRANSFER_STATE_UNKNOWN";V.isVideoDeletedByUser=!1;V.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return V};
_.t(J_J,_.M);_.B=J_J.prototype;_.B.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.B.dataChanged=function(){var V;(V=this.data)!=null&&V.text||(V=_.Dw(_.v4().getState(),this.videoId),this.updateButtonState(V))};
_.B.computeVideoId=function(V){return V};
_.B.showHideButton=function(){this.updateButtonVisibility()};
_.B.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};
_.B.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.B.updateButtonState=function(V){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==r_a||!_.kf(V))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(V){case "TRANSFER_STATE_UNKNOWN":V=tBb;var l="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":V=E5o;l="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":V=GkN;l="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":V=
r_a;l="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":V=E5o;l="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;default:V=tBb,l="OFFLINE_DOWNLOAD",I="ACTION_ADD"}this.isVideoDeletedByUser&&(V=tBb,l="OFFLINE_DOWNLOAD",I="ACTION_ADD");var H=Object.assign({},this.data);H.text=_.pW(V);H.tooltip=V;H.icon={iconType:l};H.size="SIZE_DEFAULT";H.style="STYLE_DEFAULT";_.y(H.command,_.xj)&&(_.y(H.command,_.xj).action=I);this.set("data",H)}};
_.B.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var V="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?V="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?V="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?V="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?V="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?V="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(V="OFFLINE_PIN",this.isDownloadComplete=!0);var l;V!==((l=this.data.icon)==null?void 0:l.iconType)&&(l=Object.assign({},this.data),l.text=_.pW(r_a),l.tooltip=r_a,l.icon={iconType:V},_.y(l.command,_.xj)&&(_.y(l.command,_.xj).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",l))}};
var XA=J_J;XA.prototype.updateProgress=XA.prototype.updateProgress;XA.prototype.onTransferStateChanged=XA.prototype.onTransferStateChanged;XA.prototype.showHideButton=XA.prototype.showHideButton;XA.prototype.dataChanged=XA.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],XA.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],XA.prototype,"forceIconButton",void 0);
_.O([_.q(),_.a("design:type",Object)],XA.prototype,"forceIconOnly",void 0);_.O([_.q(),_.a("design:type",Object)],XA.prototype,"overrides",void 0);_.O([_.q(),_.a("design:type",Object)],XA.prototype,"buttonTooltipPosition",void 0);_.O([_.q(),_.a("design:type",Object)],XA.prototype,"styleActionButton",void 0);_.O([_.q(),_.a("design:type",Object)],XA.prototype,"disableTextTransform",void 0);
_.O([_.q({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.a("design:type",String)],XA.prototype,"videoId",void 0);_.O([_.q(),_.a("design:type",Object)],XA.prototype,"data",void 0);_.O([_.q({selector:Ss,selectorArgs:["videoId"]}),_.a("design:type",Object)],XA.prototype,"downloadProgress",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],XA.prototype,"isDownloadComplete",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],XA.prototype,"isHidden",void 0);_.O([_.q({selector:_.Dw,selectorArgs:["videoId"]}),_.a("design:type",String)],XA.prototype,"transferState",void 0);_.O([_.q({selector:_.OnK,selectorArgs:["videoId"]}),_.a("design:type",Object)],XA.prototype,"isVideoDeletedByUser",void 0);_.O([_.q({selector:s7W,selectorArgs:["videoId"]}),_.a("design:type",Object)],XA.prototype,"offlineabilityState",void 0);
_.O([_.q({value:!0}),_.a("design:type",Boolean)],XA.prototype,"showTooltips",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],XA.prototype,"sendCommandWhenDisabled",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],XA.prototype,"disabled",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XA.prototype,"dataChanged",null);
_.O([_.xs("offlineabilityState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XA.prototype,"showHideButton",null);_.O([_.xs("transferState","isVideoDeletedByUser"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XA.prototype,"onTransferStateChanged",null);_.O([_.xs("downloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XA.prototype,"updateProgress",null);
XA=_.O([_.A({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],XA);
_.u(XA,"ytd-download-button-renderer",function(){if(y_b!==void 0)return y_b;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return y_b=V},{mode:2});var o5N;var hVi,Po0=function(){if(hVi!==void 0)return hVi;var V=document.createElement("template");_.G(V,'\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 hVi=V};var DPv=_.z("web_button_rework")&&_.PO("BUTTON_REWORK")||_.z("web_button_rework_with_live"),Z4Z=_.g7("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,SKi=function(){var V=_.M.apply(this,arguments)||this;V.isPressed=!1;V.forceIconButton=!1;V.forceIconOnly=!1;V.forceModernIconButton=!1;V.alignByText=!1;V.isShorts=!1;V.animatedText=!1;V.shouldAnimate=!1;V.JSC$12217_browserSupportsAnimation=_.z("web_supports_animations_api");V.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};V.onTap=function(){var l;if((l=V.data)==null||!l.defaultNavigationEndpoint){var I;l=!((I=V.data)==null?0:I.isToggled);var H;if((H=V.data)==null||!H.preventAutoToggle){V.shouldAnimate=!1;V.disableTextUpdateJobId&&_.r0.cancelJob(V.disableTextUpdateJobId);V.disableTextUpdateJobId=_.r0.addLowPriorityJob(function(){V.disableTextUpdateJobId=void 0},Z4Z);
var T;V.set("data.isToggled",!((T=V.data)==null?0:T.isToggled));I=V.getInnertubeIcon();H={toggled:l,actions:{}};I&&(H.actions[I.toLowerCase()]=l);_.B$(V.hostElement,"yt-toggle-button",H)}}};
return V};
_.t(SKi,_.M);_.B=SKi.prototype;_.B.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.r0.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.B.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.B.toggle=function(V){var l;this.set("data.isToggled",V!==void 0?V:!((l=this.data)==null?0:l.isToggled))};
_.B.handleUpdateToggleButtonStateCommand=function(V){if(this.data){V=_.y(V,Pnv);var l,I,H,T=(l=this.data)==null?void 0:(I=l.toggleButtonSupportedData)==null?void 0:(H=I.toggleButtonIdData)==null?void 0:H.id;T&&V&&T===(V==null?void 0:V.buttonId)&&this.set("data.isToggled",V.toggled)}};
_.B.handleUpdateToggleButtonTextAction=function(V){if(this.data){V=_.y(V,a$N);var l,I,H,T=(l=this.data)==null?void 0:(I=l.toggleButtonSupportedData)==null?void 0:(H=I.toggleButtonIdData)==null?void 0:H.id;T&&V&&T===(V==null?void 0:V.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=V.defaultNumericalValue,this.set("data.defaultText",V.defaultText),this.set("data.toggledText",V.toggledText),this.shouldAnimate=!1)}};
_.B.getInnertubeIcon=function(){var V=this.data;if(V){var l,I,H=((l=V.defaultIcon)==null?0:l.iconType)?(I=V.defaultIcon)==null?void 0:I.iconType:null,T,x;l=((T=V.toggledIcon)==null?0:T.iconType)?(x=V.toggledIcon)==null?void 0:x.iconType:H;return V.isToggled?l:H}};
_.B.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.vI.Object.defineProperties(SKi.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V={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$12217_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var l=V.renderer;var I=V.element;var H=V.toggled;var T=V.onTapCallback;var x=V.commandClientArgs;var n=V.overrides;var w=V.forceIcon;var N=V.forceModernIconButton;var L=V.forceDisabled;var e=V.useAnimatedText;var k=V.animatedTextProps;V=ZEg(l,H);w=!l.defaultIcon||!w&&l.defaultText?l.defaultIcon?"leading":void 0:N?"icon-only":"icon-only-40";w==="icon-only-40"&&(V.type="text");var X;N=Object;var r=N.assign,E;a:switch((E=
l.style)==null?void 0:E.styleType){case "STYLE_COMPACT_GRAY":E={size:"S"};break a;default:E={size:"M"}}var D=!!H;var Z=(Z=H&&l.toggledText||l.defaultText)?_.Fo(Z):void 0;e?(e=_.A5(H&&l.toggledText||l.defaultText))&&k&&!isNaN(Number(k.numberValue))?(k.numberText=e,H&&(k.numberValue+=1),e=k):e=void 0:e=void 0;var S,p,Vf,C;var By=(k=((p=H?l.toggledAccessibilityData||((By=l.toggledText)==null?void 0:By.accessibility):l.accessibilityData||((S=l.defaultText)==null?void 0:S.accessibility))==null?void 0:
(Vf=p.accessibilityData)==null?void 0:Vf.label)||((C=l.accessibility)==null?void 0:C.label))?k:_.A5(H&&l.toggledText||l.defaultText);L=L===void 0?l.isDisabled:L;I=Dbf(l,H,T,I,x);H=PAt(l,H);H!=null&&H.length?(H=_.GG({innertubeCommand:kit(H),forceNewState:!0}),H=FoN(H)?H:void 0):H=void 0;l=r.call(N,{},V,E,{iconPosition:w},n,{focused:!1,toggled:D,toggleable:!0,formattedButtonText:Z,animatedTextProps:e,accessibilityLabel:By,disabled:L,onTap:I,aTagConfig:H},fz1((X=l.colorData)==null?void 0:X.basicColorPaletteData));
l.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(l.type="filled");return l}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var V=this.getInnertubeIcon();if(V)return _.mj(V)}}});
var z9=SKi;z9.prototype.resetAnimation=z9.prototype.resetAnimation;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],z9.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],z9.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],z9.prototype,"isPressed",void 0);_.O([_.q(),_.a("design:type",Object)],z9.prototype,"forceIconButton",void 0);_.O([_.q(),_.a("design:type",Object)],z9.prototype,"forceIconOnly",void 0);_.O([_.q(),_.a("design:type",Object)],z9.prototype,"forceModernIconButton",void 0);_.O([_.q(),_.a("design:type",Object)],z9.prototype,"alignByText",void 0);_.O([_.q(),_.a("design:type",Object)],z9.prototype,"overrides",void 0);
_.O([_.q(),_.a("design:type",Boolean)],z9.prototype,"disabled",void 0);_.O([_.q(),_.a("design:type",Object)],z9.prototype,"isShorts",void 0);_.O([_.q(),_.a("design:type",Object)],z9.prototype,"buttonTooltipPosition",void 0);_.O([_.q(),_.a("design:type",Object)],z9.prototype,"animatedText",void 0);_.O([_.q(),_.a("design:type",String)],z9.prototype,"textNumberValue",void 0);_.O([_.q({computed:"computeTooltip(data, data.isToggled)"}),_.a("design:type",Object)],z9.prototype,"tooltip",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],z9.prototype,"resetAnimation",null);_.O([_.Q("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.a("design:type",Object),_.a("design:paramtypes",[])],z9.prototype,"computedButtonShape",null);_.O([_.Q("data.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],z9.prototype,"computedIcon",null);
z9=_.O([_.A({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],z9);DPv&&_.u(z9,"ytd-toggle-button-renderer",Po0,{mode:_.Cm("kevlar_poly_si_batch_j081")?1:2});var pZt=[],AaT=!1;_.m5(OEW);var RVW,QhN;RVW=_.W1(function(V){function l(L){var e;return _.d(function(k){if(k.nextAddress==1)return(e=!R9K(L,w())||!w().enabled)?k.jumpTo(2):_.K(k,Mv3(),3);k.nextAddress!=2&&(e=k.yieldResult);if(e)return k.return();I();setTimeout(function(){n(!1)},1500);
_.FU(k)})}
function I(){setTimeout(function(){n(!0);var L;(L=H.lottieEl)==null||L.goToAndPlay(0)},150)}
var H=_.HK(),T=_.U(_.xi(!1,void 0,"xffAp")),x=T.next().value,n=T.next().value,w=_.S5(V.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.XW(function(){var L,e;((L=V.settings)==null?void 0:(e=L.call(V))==null?void 0:e.uniqueId)==="this is not intended behavior"&&_.hF(new _.Yd("Smartimation Settings is undefined"))});
_.t0(function(){w().experimentEnabled&&(w().enabled?Qlt(l):(n(!1),caK(l)),_.rx(function(){caK(l)}))});
_.t0(function(){qcc(w().timings);w().experimentEnabled&&(W0g(w()),_.rx(function(){bEg(w())}))});
var N=_.Ny(function(){return ScK(H,w())},void 0,"sphkxc");
T={};return _.Y("yt-smartimation",{class:_.ii(V.className,"smartimation",(T["smartimation--experiment-enabled"]=function(){return w().experimentEnabled},T["smartimation--active-border"]=x,T["smartimation--enable-masking"]=CAw(),T))},_.Y(_.NS,{cond:function(){return w().experimentEnabled},
then:function(){return _.Y("div",{class:"smartimation__border"},_.Y(_.VN,{className:"smartimation__border-gradient",data:N,animationName:function(){return N().animationConfig.name}}))}}),_.Y("div",{class:"smartimation__content"},V.children))},"x");
_.SK1=_.z("web_enable_sink_smartimations")?RVW:OEW;QhN=_.z("web_enable_sink_smartimations")?RVW:_.I2(OEW);RVW.idomCompat=!0;_.z("web_enable_sink_smartimations")?_.MR(QhN,"yt-smartimation",{props:{className:_.b9,settings:_.b9}}):_.aN(_.SK1,"yt-smartimation",{propNames:["className","settings"]});var ys=function(){var V=_.M.apply(this,arguments)||this;V.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};V.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};V.shouldEnableSmartimation=!1;return V};
_.t(ys,_.M);ys.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
ys.prototype.onDataChanged=function(){var V,l;this.shouldEnableSmartimation=(((V=this.data)==null?void 0:(l=V.timedAnimationData)==null?void 0:l.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
ys.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var V=_.y(this.data.likeButton,_.QX),l=_.y(this.data.dislikeButton,_.QX);return!!((V==null?0:V.isToggled)||(l==null?0:l.isToggled))};
ys.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]]"}}}}}};
_.vI.Object.defineProperties(ys.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var V,l,I=((V=this.data)==null?void 0:(l=V.timedAnimationData)==null?void 0:l.animationTiming)||[];return{uniqueId:"like-dislike",timings:I,enabled:this.shouldEnableSmartimation,experimentEnabled:I.length>0}}}});
var t7=ys;t7.prototype.onDataChanged=t7.prototype.onDataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],t7.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],t7.prototype,"likeButtonOverride",void 0);
_.O([_.q(),_.a("design:type",Object)],t7.prototype,"dislikeButtonOverride",void 0);_.O([_.Q("shouldEnableSmartimation"),_.a("design:type",Object),_.a("design:paramtypes",[])],t7.prototype,"smartimationSettings",null);_.O([_.b("data"),_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],t7.prototype,"onDataChanged",null);t7=_.O([_.A({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],t7);
_.u(t7,"ytd-segmented-like-dislike-button-renderer",function(){if(o5N!==void 0)return o5N;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return o5N=V},{mode:1});var c_w;var WZ3;(WZ3=document.body)==null||WZ3.setAttribute("rounded-container","");var b4Z={};b4Z.YtToggleButtonBehavior=[_.aU.YtActionHandlerBehavior,we.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 V=this.data.isToggled;if(!this.isModal_(V)){if(!this.data.preventAutoToggle){this.toggle();var l={toggled:this.data.isToggled,actions:{}};l.actions[this.buttonIcon]=this.data.isToggled;_.B$(this.hostElement,"yt-toggle-button",l)}l=this.data.defaultServiceEndpoint||null;var I=this.data.toggledServiceEndpoint||null;if(l&&I||l&&this.data.preventAutoToggle)V=V?I:l,l=this.disableCommandHandlerOverride,_.z("killswitch_toggle_button_behavior_resolve_command")||l?_.$B(this.hostElement,
[V]):_.IN(V,this.hostElement),_.B$(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:V})}},
stateChanged_:function(){var V=this.data;if(V){var l=V.isToggled;this._setEndpoint(this.computeEndpoint_(V));this._setServiceEndpoint(this.computeServiceEndpoint_(V));this._setButtonIcon(this.computeButtonIcon_(V,l));this._setButtonText(this.computeButtonText_(V,l));this._setButtonAccessibility(this.computeAccessibility_(V,l));this._setButtonTooltip(this.computeTooltip_(V,l));this._setButtonClass(this.computeButtonClass_(V,l));this._setIconPositionType(this.computeIconPositionType_(V));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=l):this.elements_.button.setAttribute("aria-pressed",l));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=l)}},
shouldSetIconActiveState_:function(){return _.z("kevlar_system_icons")},
toggle:function(V){this.set("data.isToggled",V!==void 0?V:!this.data.isToggled);_.z("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(V){if(V){var l,I;return!!((l=this.data)==null?0:(I=l.toggledServiceEndpoint)==null?0:I.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(V){return V&&V.defaultNavigationEndpoint||null},
computeButtonIcon_:function(V,l){var I=V&&V.defaultIcon?_.mj(V.defaultIcon.iconType):null;V=V&&V.toggledIcon?_.mj(V.toggledIcon.iconType):I;return l?V:I},
handleUpdateToggleButtonStateCommand_:function(V){V=V.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==V.buttonId&&this.toggle(V.toggled)},
computeButtonText_:function(V,l){return V?l&&V.toggledText||V.defaultText||null:null},
computeAccessibility_:function(V,l){return V?(l?this.get("toggledAccessibilityData.accessibilityData",V):this.get("accessibilityData.accessibilityData",V))||V.accessibility||null:null},
computeTooltip_:function(V,l){return V?l&&V.toggledTooltip||V.defaultTooltip||null:null},
computeButtonClass_:function(V,l){if(!V)return"";var I="",H=V.toggledStyle||V.style;if(l=l?H:V.style){l.styleType&&(l=l.styleType);try{I+=l.toLowerCase().replace(/_/g,"-")+" "}catch(T){_.PF(T,l,typeof l),_.hF(T)}}if(V=V.size){V.sizeType&&(V=V.sizeType);try{I+=V.toLowerCase().replace(/_/g,"-")+" "}catch(T){_.PF(T,V,typeof V),_.hF(T)}}return I.trim()},
computeIconPositionType_:function(V){return V&&V.iconPosition||null},
computeServiceEndpoint_:function(V){var l=V&&V.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return l?l:I&&V.command?V.command:null},
handleUpdateToggleButtonTextAction_:function(V){V=V.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==V.buttonId&&(this.set("data.defaultText",V.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",V.toggledText),this.notifyPath("data.toggledText"))}}];_.yN("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var qKN=_.z("web_button_rework")&&_.PO("BUTTON_REWORK")||_.z("web_button_rework_with_live"),rc=function(){var V=_.M.apply(this,arguments)||this;V.systemIcons=_.z("kevlar_system_icons");V.roundedContainer=!0;return V};
_.t(rc,_.M);rc.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
rc.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var V=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var l={toggled:!!this.data.isToggled,actions:{}};l.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var I,H;l.actions.playlistId=(I=this.data.defaultServiceEndpoint)==null?void 0:(H=I.playlistEditEndpoint)==null?void 0:H.playlistId;_.B$(this.hostElement,"yt-toggle-button",l)}(V=V?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(V)}};
rc.prototype.onYtNavigate=function(V){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(V.detail.endpoint);l&&(V.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(l))};
_.vI.Object.defineProperties(rc,{template:{configurable:!0,enumerable:!0,get:function(){if(c_w===void 0){var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);c_w=V}V=c_w;return V}}});
var G9=rc;G9.prototype.onYtNavigate=G9.prototype.onYtNavigate;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],G9.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],G9.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(b4Z.YtToggleButtonBehavior),_.a("design:type",Object)],G9.prototype,"ytToggleButtonBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],G9.prototype,"data",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],G9.prototype,"showTooltips",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],G9.prototype,"systemIcons",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],G9.prototype,"roundedContainer",void 0);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],G9.prototype,"onYtNavigate",null);
G9=_.O([_.A({is:"ytd-toggle-button-renderer",disableElementRegistration:qKN})],G9);var MBN;_.Eu=new _.Vr("PANEL_CONTROLLER_TOKEN");_.J7=new _.Vr("SHEET_CONTROLLER_TOKEN");_.oD=new _.Vr("DIALOG_CONTROLLER_TOKEN");MBN=new _.Vr("DIALOG_CONTAINER_TOKEN");var H$J=_.LT("DOWNLOAD",{},"Download"),TzW=_.LT("DOWNLOADING",{},"Downloading"),Bz1=_.LT("DOWNLOADED",{},"Downloaded"),x2t=_.LT("RETRY",{},"Retry");var shw=_.W1(function(V){var l=jEK,I=function(){return""},H=d2J(V.data),T=wGg(V.data),x=NzW(V.data),n=Kif(V.data);
l=function(){var w=V.data(),N=ldw(w,H(),T(),x(),n()),L=!!w.videoId,e=N.text;return{title:L?e:void 0,tooltip:L?void 0:e,accessibilityText:e,onTap:N.onTap,iconName:N.iconType,style:w.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:N.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:w.buttonSize}};
I={};I=_.ii("ytDownloadButtonViewModelHost",(I.ytDownloadButtonViewModelIsHidden=function(){var w=V.data(),N=n();return w.playlistId||N()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||N()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},I));
return _.Y("download-button-view-model",{class:I},_.Y(_.Db,{data:l}))},"y");
shw.idomCompat=!0;_.m5(eYq);_.m5(Yac);var A_b=_.W1(function(V){var l=V.backgroundLottieRef;var I=V.foregroundLottieRef;var H=V.children;var T=V.wrapperClass;var x=V.disableAnimation;V=function(){return(_.z("web_animated_actions")||_.z("web_animated_actions_v2"))&&!(x==null?0:x())};
return _.Y("yt-animated-action",{class:_.ii("animated-action__container",T)},_.Y("div",{class:"animated-action__content-with-background"},_.Y(_.NS,{cond:V,then:function(){return _.Y(pMZ,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:l==null?void 0:l(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(kWg()?"dark":"light")+"_v5.json"}}}})}}),H),_.Y(_.NS,{cond:V,
then:function(){return _.Y(pMZ,{lottiePlayerProps:function(){return{animationRef:I==null?void 0:I(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(kWg()?"dark":"light")+"_v4.json"}}}})}}))},"z");
A_b.idomCompat=!0;var adg=_.z("web_enable_sink_animated_actions")?A_b:eYq,uh0=_.z("web_enable_sink_animated_actions")?A_b:_.I2(eYq),pMZ=_.W1(function(V){var l=V.wrapperClass;var I=V.lottieClass;var H=V.lottiePlayerProps;return _.Y("div",{class:_.ii("animated-action__lottie",l),"aria-hidden":"true"},_.Y(_.VN,{className:I,data:H,animationName:function(){return H().animationConfig.name}}))},"A");var Fif={isOpen:!1};var zY1={isAllowed:!1};var tgJ={errorMessage:"",title:"",privacy:"",isDisabled:!0};var GWw={isOpen:!1};var Jk1={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var v5N={response:void 0};var hYy=function(V,l){V=V===void 0?v5N:V;switch(l.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},V,{response:l.payload});default:return V}};var O4i={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var P7t=function(V,l){V=V===void 0?O4i:V;switch(l.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},V,{nextDisabled:l.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},V,{nextCommand:l.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},V,{footerSubmissionData:l.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},V,{isImpersonationValid:l.payload});default:return V}};var CoB={reportFormData:void 0,reportDetailsFormData:void 0};var D2y=function(V,l){V=V===void 0?CoB:V;switch(l.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},V,{reportFormData:l.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},V,{reportDetailsFormData:l.payload});default:return V}};var a2J=void 0;_.z("mweb_enable_redux_store_on_demand")||(a2J=new uB(Z$1()));var C7t=_.W1(function(V){V=_.Rj(V,{themeOverride:void 0,animationRef:{}});var l=V.animatedIconType,I=V.active,H=V.themeOverride,T=V.animationRef;V=V.staticIconFn;var x=_.U(_.xi(void 0,void 0,"P5a72b")),n=x.next().value,w=x.next().value,N=function(){a:{var Z=l();var S=H==null?void 0:H();var p;S=(S==null?void 0:S.useDarkTheme)||((p=_.F().resolve(_.Cs(_.DA)))==null?void 0:p());switch(Z){case "LIKE":b:{a2J||(a2J=new uB(Z$1()));if((Z=oqg(a2J.getState()))&&Z.animationStyle)switch(Z.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":Z=
RYt({name:S?"valentines25_heart_dark":"valentines25_heart_light",path:S?"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":Z=RYt({name:S?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:S?"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":Z=
RYt({name:S?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:S?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}Z=void 0}if(Z){S=Z;break a}S="animated_like_icon_"+(S?"dark_v4":"light_v4");S={lottiePlayerProps:{animationConfig:{name:S,path:Sat("animated_like_icon",S),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":S={lottiePlayerProps:{animationConfig:{name:S?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(S?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}S=void 0}return S},L=function(){var Z,S;
return(S=(Z=N())==null?void 0:Z.lottiePlayerProps.animationConfig.name)!=null?S:""},e=function(){if(N()){var Z=N().lottiePlayerProps.animationConfig.path;
return mc.get(Z)||n()}};
x=_.U(_.xi(!1,void 0,"h6xR3c"));var k=x.next().value;x=x.next().value;var X=ckf(x),r=function(){var Z=N(),S,p,Vf;return(Vf=Z==null?void 0:(S=Z.lottiePlayerProps.animationConfig)==null?void 0:(p=S.rendererSettings)==null?void 0:p.className)!=null?Vf:""},E=void 0,D=void 0;
_.t0(function(){var Z=N(),S=L(),p=e(),Vf=k(),C=I();if(Z&&(D!==S&&(D=S,E=C,S=T(),X.animationConfig=Z.lottiePlayerProps.animationConfig,X.animationRef=S,p&&(X.animationConfig.animationData=p,X.animationConfig.path=void 0),S=Z.lottiePlayerProps.animationConfig.path,!mc.get(S)&&Z.lazyLoad&&S&&QEt(S,w)),!(Vf||Z.lazyLoad&&!p))){if(p=!T().lottieEl)C?(Vf=Z.totalFrames,X.animationConfig.initialSegment=[Vf-1,Vf]):X.animationConfig.initialSegment=void 0;if(E!==C&&!p)if(p=T(),C){var By;(By=p.lottieEl)==null||
By.playSegments([0,Z.totalFrames],!0)}else{var lN;(lN=p.lottieEl)==null||lN.playSegments([0,1],!0)}E=C}});
return _.Y("animated-icon",{class:"ytAnimatedIconHost"},_.Y(_.NS,{cond:function(){var Z,S;return!((Z=N())==null||!Z.lottiePlayerProps.animationConfig.path||((S=N())==null?0:S.lazyLoad)&&!e()||k())},
then:function(){return _.Y(_.VN,{data:X,animationName:L,className:r,animationRef:T})},
else:V}))},"B");_.m5(fdw);var f2a,mPJ;f2a=_.W1(function(V){var l=_.sZ(),I=_.sZ(),H=_.sZ(),T=_.HK(),x=_.HK(),n=_.HK(),w=_.dw(_.V1,function(){return V.data().stateEntityStoreKey}),N=_.dw(tv1,function(){var Hw,uZ;
return(uZ=(Hw=V.data().notificationStateEntityStoreKeys)==null?void 0:Hw.subsNotificationStateKey)!=null?uZ:""}),L=function(){return!V.data().enableSubscribeButtonPostClickAnimation},e=_.U(_.xi(0,void 0,"LZz2ld")),k=e.next().value,X=e.next().value;
e=_.U(_.xi(0,void 0,"DTJZzd"));var r=e.next().value,E=e.next().value;e=_.U(_.xi(!1,void 0,"vYdJ9e"));var D=e.next().value,Z=e.next().value;e=_.U(_.xi(!1,void 0,"HsSmhb"));var S=e.next().value,p=e.next().value,Vf=!1,C="";e=_.U(_.xi(!1,void 0,"p20o0d"));var By=e.next().value,lN=e.next().value,wW=function(){p(!0);_.L6(_.r0,function(){p(!1)},1500)};
_.t0(function(){var Hw=S();BT(function(){Hw&&!L()&&w()&&I2y(T,x,n)})});
_.t0(function(){var Hw=w();BT(function(){if(!L()&&Hw){var uZ;((uZ=V.animateWidth)==null?0:uZ.call(V))&&l2f(l.value,!!Hw.subscribed,k(),r());Hw.subscribed&&Hw.key===C&&wW();Hw.key&&(C=Hw.key)}})});
e=_.Ny(function(){var Hw,uZ,EN,ya=V.data(),Dv=!((Hw=w())==null||!Hw.subscribed);Hw=!((uZ=V.isOverlay)==null||!uZ.call(V));uZ=D()?l.value:void 0;var Tf=(EN=N())==null?void 0:EN.state;EN=By();VBf(ya,Tf);return ww({model:ya,subscribed:Dv,isOverlay:Hw,element:uZ,notificationState:Tf,disableTextEllipsis:!0,focused:EN})},void 0,"CJfYod");
var o1=function(){var Hw;if(!L()&&((Hw=V.animateWidth)==null?0:Hw.call(V))&&(I==null?0:I.value)&&(H==null?0:H.value)&&!Vf){Hw=w();var uZ=_.U((Hw==null?0:Hw.subscribed)?[I,H]:[H,I]),EN=uZ.next().value;uZ=uZ.next().value;EN=Math.ceil(EN.value.getBoundingClientRect().width);uZ=Math.ceil(uZ.value.getBoundingClientRect().width);X(EN);E(uZ);l2f(l.value,!(Hw==null||!Hw.subscribed),EN,uZ);Vf=!0}},h1=_.Bu(function(Hw){o1();
var uZ=w();uZ&&(Hw.detail.endpoint.subscribeEndpoint||Hw.detail.endpoint.unsubscribeEndpoint)&&m2q(l.value,!uZ.subscribed,uZ)}),ec=function(){var Hw=_.F().resolve(_.Cs(_.eM));
Hw&&lN(Hw.isKeyBoardInUse())},Zg=function(){lN(!1)};
_.M4("yt-player-subscribe",function(Hw){var uZ=w();uZ&&Hw===V.data().channelId&&m2q(l.value,!0,uZ)});
_.M4("yt-player-unsubscribe",function(Hw){var uZ=w();uZ&&Hw===V.data().channelId&&m2q(l.value,!1,uZ)});
_.M4("yt-update-subscribe-button-action",function(Hw){Hw=_.y(Hw,O$q);var uZ=w();uZ&&Hw&&Hw.channelId===V.data().channelId&&m2q(l.value,!!Hw.subscribed,uZ)});
_.XW(function(){l.value&&(l.value.addEventListener("focusin",ec),l.value.addEventListener("focusout",Zg));_.et(_.r0,function(){o1()});
Z(!0);_.rx(function(){l.value&&(l.value.removeEventListener("focusin",ec),l.value.removeEventListener("focusout",Zg))})});
var Va=function(){var Hw,uZ,EN;if(EN=!((Hw=w())==null||!Hw.subscribed))Hw=!!V.data().disableNotificationBell,EN=(uZ=N())==null?void 0:uZ.state,EN=!Hw&&!!EN;return EN},wb=function(){var Hw;
return!((Hw=w())==null?0:Hw.subscribed)},CK=function(){var Hw,uZ;
if(uZ=wb()){uZ=!!V.data().disableNotificationBell;var EN=(Hw=N())==null?void 0:Hw.state;uZ=!uZ&&!!EN}return uZ},CZ={},ME={};
return _.Y("yt-subscribe-button-view-model",{class:_.ii("yt-subscribe-button-view-model-wiz",(CZ["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Hw,uZ;return!((Hw=w())==null||!Hw.subscribed)&&((uZ=V.animateWidth)==null?void 0:uZ.call(V))&&S()},CZ["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Hw;
return!((Hw=w())==null?0:Hw.subscribed)&&V.data().hideWhenUnsubscribed},CZ)),
el:l,"on:yt-service-request-sent":h1},_.Y(uh0,{backgroundLottieRef:T,foregroundLottieRef:x,wrapperClass:_.ii("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(ME["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Hw;return((Hw=V.animateWidth)==null?void 0:Hw.call(V))&&S()},ME["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Hw;
return!((Hw=V.animateWidth)==null?0:Hw.call(V))},ME)),
disableAnimation:L},_.Y("div",{el:I,class:"yt-subscribe-button-view-model-wiz__container"},_.Y(IJ,{data:e,icon:function(){return _.Y(_.NS,{cond:Va,then:function(){var Hw=function(){var uZ;return gSt((uZ=N())==null?void 0:uZ.state)};
return _.Y(_.NS,{cond:function(){return L()||Hw()!=="NOTIFICATIONS_NONE"},
then:function(){return _.Y(_.dq,{icon:Hw})},
else:function(){return _.Y(C7t,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:n})}})}})},
secondaryIconName:function(){return Va()?"EXPAND":void 0}}))),_.Y("div",{el:H,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.Y(_.NS,{cond:function(){var Hw;return((Hw=V.animateWidth)==null?void 0:Hw.call(V))&&!L()&&!Vf},
then:function(){return _.Y(IJ,{data:_.Ny(function(){var Hw;return ww({model:V.data(),subscribed:wb(),isOverlay:!((Hw=V.isOverlay)==null||!Hw.call(V)),element:l.value,disableTextEllipsis:!0})},void 0,"dfYtSe"),
iconName:function(){var Hw;return CK()?gSt((Hw=N())==null?void 0:Hw.state):void 0},
secondaryIconName:function(){return CK()?"EXPAND":void 0}})}})))},"C");
_.g50=_.z("web_enable_sink_yt_subscribe_button_view_model")?f2a:fdw;mPJ=_.z("web_enable_sink_yt_subscribe_button_view_model")?f2a:_.I2(fdw);f2a.idomCompat=!0;var H4K=new _.Vr("RENDERER_STAMPER_OPTIONS_TOKEN");var y1;_.zb=new Nqi;y1=new Map;var FZg="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),zVq=["notificationTextRenderer","notificationMultiActionRenderer"],XM1="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
kkt=wM3(function(V){return _.ES(V==null?void 0:V.targetId)}).useUpdatableData;var eVc=0;_.rw.debugName="EjJbCe";var i4o=_.W1(function(V){var l=V.data;var I=_.dw(_.V1,function(){return l().subscriptionStateEntityKey});
return _.Y(_.NS,{cond:function(){var H=l(),T=I();return!H.hideWhenUnsubscribed||(T==null?0:T.subscribed)?_.y(l().button,_.Gb):void 0},
then:function(H){return _.Y("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.Y(_.Db,{data:H,buttonOverrides:function(){return{toggled:!l().isPurchasable}}}))}})},"D");var r_f=_.FR({buttonViewModel:_.Db,subscribeButtonViewModel:_.g50,downloadButtonViewModel:shw,toggleButtonViewModel:_.o6,subscribePlusButtonViewModel:i4o});_.m5(E5c);var V9B=_.W1(function(V){return _.Y(_.rw,{data:function(){return V.actionRow().actions}},{buttonViewModel:function(l){var I=l.data;
return _.Y(h7,{isRow:V.isRow,isIconOnlyButton:function(){return J_T(I())},
useIntrinsicWidth:V.useIntrinsicWidth},_.Y(_.Db,{data:I}))},
subscribeButtonViewModel:function(l){return _.Y(h7,{isRow:V.isRow},_.Y(mPJ,{data:l.data,isOverlay:!1,animateWidth:function(){return!V.isRow()}}))},
downloadButtonViewModel:function(l){var I=l.data;return _.Y(h7,{isRow:V.isRow,isIconOnlyButton:function(){return!!I().playlistId}},_.Y(shw,{data:I}))},
toggleButtonViewModel:function(l){var I=l.data;return _.Y(h7,{isRow:V.isRow,isIconOnlyButton:function(){var H=I();return J_T(_.y(H.isToggled?H.toggledButtonViewModel:H.defaultButtonViewModel,_.Gb))}},_.Y(_.o6,{data:I}))},
subscribePlusButtonViewModel:function(l){return _.Y(h7,{isRow:V.isRow},_.Y(i4o,{data:l.data}))}})},"E"),h7=_.W1(function(V){var l={};
return _.Y("div",{class:_.ii("yt-flexible-actions-view-model-wiz__action",(l["yt-flexible-actions-view-model-wiz__action--row-action"]=V.isRow,l["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=V.useIntrinsicWidth,l["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,l["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=V.isIconOnlyButton,l))},V.children)},"F"),lPi=_.W1(function(V){var l=function(){var H;
return((H=V.layout)==null?void 0:H.call(V))===1},I={};
return _.Y("yt-flexible-actions-view-model",{class:_.ii("yt-flexible-actions-view-model-wiz",V.className,(I["yt-flexible-actions-view-model-wiz--inline"]=function(){return!l()},I["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return V.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},I))},_.Y(_.Ks,{each:function(){return V.data().actionsRows||[]}},function(H){return _.Y(_.NS,{cond:l,
then:function(){return _.Y("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.Y(V9B,{actionRow:H,isRow:l,useIntrinsicWidth:function(){return!!V.data().respectActionIntrinsicWidth}}))},
else:function(){return _.Y(V9B,{actionRow:H,isRow:l})}})}))},"G"),IPJ=_.z("web_enable_sink_lockups_batch")?lPi:E5c,HpB=_.z("web_enable_sink_lockups_batch")?lPi:_.I2(E5c);
lPi.idomCompat=!0;_.MR(HpB,"yt-flexible-actions-view-model",{props:{data:_.b9,layout:_.b9,justifyContentOverride:_.b9,className:_.b9}});_.TKN=_.I2(o5t);_.m5(o5t);_.BKi=_.I2(PoJ);_.m5(PoJ);_.m5(RV3);_.aN(RV3,"segmented-like-dislike-button-view-model",{propNames:["data"]});var MBt=0;_.MR(Hp1,"account-link-button-view-model",{props:{data:_.b9,className:_.qR,setMinWidth:_.qR,forceIconOnly:_.qR}});_.yN("menuRenderer","menuRenderer","ytd-menu-renderer");
var xd0={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"}},
Udi=_.z("web_fix_missing_action_buttons")?100:200,P7=function(){var V=_.M.apply(this,arguments)||this;V.safeArea=!_.z("kevlar_flex_menu_safe_area_killswitch");V.tonalOverride=!1;V.threeDotSize="M";V.isOverlay=!1;V.useOverlayDark=!1;V.topLevelIconsOnly=!1;V.JSC$12367_lastWidth=0;V.maybeUpdateFlexibleMenu=function(){_.z("web_fix_missing_action_buttons")?requestAnimationFrame(V.maybeUpdateFlexibleMenuImpl):V.maybeUpdateFlexibleMenuImpl()};
V.maybeUpdateFlexibleMenuImpl=function(){var l;if((l=V.data)!=null&&l.flexibleItems){V.maybeFlushDebouncer();l=V.hostElement.clientWidth;var I=l>V.JSC$12367_lastWidth,H,T=((H=V.topLevelButtonsContainer)==null?void 0:H.scrollHeight)||0,x;H=((x=V.flexibleItemButtonsContainer)==null?void 0:x.scrollHeight)||0;x=V.hostElement.scrollHeight>Math.max(T,H)+8;I?(V.resetFlexibleItems(),V.JSC$12367_lastWidth=V.hostElement.clientWidth,V.maybeUpdateFlexibleMenu()):x&&(V.shrinkFlexibleMenu(),V.JSC$12367_lastWidth=
l)}};
V.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){V.onOverflowTap()},
iconPosition:"icon-only",style:V.isOverlay?V.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:V.threeDotSize,state:"active",accessibilityLabel:V.computeAccessibilityLabel(V.data)},V.threeDotButtonOverride)};
V.onOverflowTap=function(){if(V.data.fetchMenuCommand)_.z("web_ytd_menu_renderer_command_resolver_ks")?_.$B(V.hostElement,[V.data.fetchMenuCommand]):_.F().resolve(_.aw).resolveCommand(V.data.fetchMenuCommand,{form:{element:V.hostElement}});else if(V.data.isDisabled&&V.data.disabledCommand)_.IN(V.data.disabledCommand,V.hostElement);else{var l=V.createMenuRendererVe(),I={items:V.items};V.data.menuPopupAccessibility&&(I.menuPopupAccessibility=V.data.menuPopupAccessibility);V.data.footer&&(I.footer=V.data.footer);
l={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:I},veData:l}};_.F().resolve(_.J7).openSheet({openPopupActionCommand:l},V.hostElement)}};
return V};
_.t(P7,_.M);_.B=P7.prototype;_.B.updateButtonOverrides=function(){if(!_.z("menu_renderer_label_update_upkillswitch")){var V=_.h(this.hostElement).querySelector("yt-button-view-model");V&&(V.buttonOverrides=this.buttonOverrides)}};
_.B.computeHasItems=function(){var V;return((V=this.topLevelButtonData)==null?void 0:V.length)||this.hasFlexibleItems};
_.B.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.B.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.i3(this.hostElement,{"--ytd-menu-renderer-button-color":_.tv(this.data.iconColor)}))};
_.B.onStamperFinished=function(){this.JSC$12367_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.B.setupFlexibleMenu=function(){var V=this,l;(l=this.data)!=null&&l.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.le(this.maybeUpdateFlexibleMenu,Udi,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){V.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))};
_.B.maybeFlushDebouncer=function(){if(_.z("web_replace_formatted_with_attributed_string")){var V;(V=this.topLevelButtons)==null||V.forEach(function(I){var H;(I=(H=I.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0])&&Xsq(I)});
var l;(l=this.flexibleItemButtons)==null||l.forEach(function(I){var H;(I=(H=I.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0])&&Xsq(I)})}};
_.B.resetFlexibleItems=function(){var V;if((V=this.data)!=null&&V.flexibleItems){_.z("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var l;this.flexAsTopLevelButtons=(l=this.data.flexibleItems)==null?void 0:l.map(function(I){return _.y(I,_.cr0).topLevelButton});
_.z("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.B.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.B.shrinkFlexibleMenu=function(){var V;(V=this.flexAsTopLevelButtons)!=null&&V.length&&(this.flexAsTopLevelButtons=[].concat(_.oI(this.flexAsTopLevelButtons.slice(0,-1))))};
_.B.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:xd0,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:xd0,events:!0}}};
_.B.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.B.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.B.detached=function(){this.icon="yt-icons:more_vert"};
_.B.computeTopLevelButtonData=function(V){if(!V)return[];var l;V=(l=V==null?void 0:V.topLevelButtons)!=null?l:[];return _.EL.unsafeClone([].concat(_.oI(V)))};
_.B.computeItems=function(V,l){if(!V)return[];var I=[];if(l){var H=(V.flexibleItems||[]).map(function(n){return _.y(n,_.cr0)});
H=_.U(H);for(var T=H.next();!T.done;T=H.next())T=T.value,l.includes(T.topLevelButton)||(T=T.menuItem)&&I.push(T)}var x;V=(x=V==null?void 0:V.items)!=null?x:[];return[].concat(_.oI(I),_.oI(V))};
_.B.computeMenuActive=function(V,l){return V||l};
_.B.onPopupOpened=function(){this.overlayOpen=!0;_.B$(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.B.onPopupClosed=function(){this.overlayOpen=!1;_.B$(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.B.onPopupCanceled=function(){this.overlayOpen=!1;_.B$(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.B.computeAccessibilityLabel=function(V){return this.get("accessibility.accessibilityData.label",V)};
_.B.isHidden=function(V,l){return this.tonalOverride||!V?!0:V.fetchMenuCommand||V.isDisabled&&V.disabledCommand?!1:!(l==null?0:l.length)};
_.B.isModernOverflowHidden=function(V,l){return this.tonalOverride&&V?V.fetchMenuCommand?!1:!(l==null?0:l.length):!0};
_.B.createMenuRendererVe=function(){var V=this.data.trackingParams,l=_.oa(),I=_.JO();return V&&l&&I?(V=_.dj(V),I=_.eU(7591),_.z("combine_ve_grafts")?_.Ug(_.x7(),I,V):_.MJ(l,V,I),I):null};
_.vI.Object.defineProperties(P7.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.flexAsTopLevelButtons)==null||!V.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
P7.prototype.onPopupCanceled=P7.prototype.onPopupCanceled;P7.prototype.onPopupClosed=P7.prototype.onPopupClosed;P7.prototype.onPopupOpened=P7.prototype.onPopupOpened;P7.prototype.tonalOverrideChanged=P7.prototype.tonalOverrideChanged;P7.prototype.resetFlexibleItems=P7.prototype.resetFlexibleItems;P7.prototype.setupFlexibleMenu=P7.prototype.setupFlexibleMenu;P7.prototype.iconButtonColorChanged=P7.prototype.iconButtonColorChanged;P7.prototype.updateButtonOverrides=P7.prototype.updateButtonOverrides;
_.O([_.R(_.u5),_.a("design:type",Object)],P7.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],P7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Ij("#button-shape"),_.a("design:type",Ie)],P7.prototype,"buttonShape",void 0);_.O([_.Ij("#button"),_.a("design:type",Object)],P7.prototype,"button",void 0);
_.O([_.q(),_.a("design:type",Object)],P7.prototype,"data",void 0);_.O([_.q({computed:"computeTopLevelButtonData(data)"}),_.a("design:type",Array)],P7.prototype,"topLevelButtonData",void 0);_.O([_.q(),_.a("design:type",Array)],P7.prototype,"flexAsTopLevelButtons",void 0);_.O([_.q({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.a("design:type",Array)],P7.prototype,"items",void 0);_.O([_.q({value:"yt-icons:more_vert"}),_.a("design:type",String)],P7.prototype,"icon",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],P7.prototype,"safeArea",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.a("design:type",Boolean)],P7.prototype,"menuActive",void 0);_.O([_.q(),_.a("design:type",Boolean)],P7.prototype,"menuFocused",void 0);_.O([_.q({value:"bottom"}),_.a("design:type",String)],P7.prototype,"buttonTooltipPosition",void 0);_.O([_.q(),_.a("design:type",Boolean)],P7.prototype,"overlayOpen",void 0);
_.O([_.q({value:!0}),_.a("design:type",Boolean)],P7.prototype,"forceIconButton",void 0);_.O([_.q(),_.a("design:type",Boolean)],P7.prototype,"styleActionButton",void 0);_.O([_.q(),_.a("design:type",Boolean)],P7.prototype,"disableTextTransformOnButtons",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],P7.prototype,"tonalOverride",void 0);_.O([_.q(),_.a("design:type",Object)],P7.prototype,"threeDotSize",void 0);
_.O([_.q(),_.a("design:type",Object)],P7.prototype,"threeDotButtonOverride",void 0);_.O([_.q(),_.a("design:type",Object)],P7.prototype,"isOverlay",void 0);_.O([_.q(),_.a("design:type",Object)],P7.prototype,"useOverlayDark",void 0);_.O([_.q({computed:"computeButtonOverride(tonalOverride)"}),_.a("design:type",Object)],P7.prototype,"buttonOverride",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],P7.prototype,"hasCustomIconColor",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("flexAsTopLevelButtons"),_.a("design:type",Object),_.a("design:paramtypes",[])],P7.prototype,"hasFlexibleItems",null);_.O([_.q({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.a("design:type",Boolean)],P7.prototype,"hasItems",void 0);_.O([_.q(),_.a("design:type",Object)],P7.prototype,"topLevelIconsOnly",void 0);
_.O([_.b("topLevelIconsOnly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P7.prototype,"updateButtonOverrides",null);_.O([_.Q("topLevelIconsOnly"),_.a("design:type",Object),_.a("design:paramtypes",[])],P7.prototype,"buttonOverrides",null);_.O([_.Ij("#top-level-buttons-computed"),_.a("design:type",HTMLElement)],P7.prototype,"topLevelButtonsContainer",void 0);_.O([_.H1(".top-level-buttons > *"),_.a("design:type",Array)],P7.prototype,"topLevelButtons",void 0);
_.O([_.Ij("#flexible-item-buttons"),_.a("design:type",HTMLElement)],P7.prototype,"flexibleItemButtonsContainer",void 0);_.O([_.H1("#flexible-item-buttons > *"),_.a("design:type",Array)],P7.prototype,"flexibleItemButtons",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P7.prototype,"iconButtonColorChanged",null);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P7.prototype,"setupFlexibleMenu",null);_.O([_.xs("topLevelIconsOnly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P7.prototype,"resetFlexibleItems",null);_.O([_.b("tonalOverride"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P7.prototype,"tonalOverrideChanged",null);
_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P7.prototype,"onPopupOpened",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P7.prototype,"onPopupClosed",null);_.O([_.W("yt-popup-canceled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P7.prototype,"onPopupCanceled",null);
_.u(P7,"ytd-menu-renderer",function(){if(kkN===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);kkN=V}V=kkN;return V},{mode:_.Cm("kevlar_poly_si_batch_j030")?1:2});var n2N;var $dJ;_.mw=_.W1(function(V){var l=V.data;var I=function(){if(l().icon)a:{var H={iconName:l().icon};for(var T=_.F().resolve(_.VI),x=_.U([12,24]),n=x.next();!n.done;n=x.next()){var w=n.value;n=Object.assign({},H,{iconStyle:"youtube_fill",iconSize:w});w=Object.assign({},H,{iconStyle:"youtube_outline",iconSize:w});if(T.resolveIcon(n)){H=n;break a}if(T.resolveIcon(w)){H=w;break a}}H=void 0}else H=void 0;return H};
V={};return _.Y("badge-shape",{class:_.ii("badge-shape-wiz",function(){return xdJ(l().type)},(V["badge-shape-wiz--overlay"]=function(){return l().isOverlay},V["badge-shape-wiz--ads-include-dot"]=function(){return l().adsIncludeDot},V["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(l().type){case 16:case 17:case 18:var H=!0;
break a;default:H=!1}return H},V["badge-shape-wiz--status-badge"]=function(){a:switch(l().type){case 11:case 12:case 13:case 14:case 15:var H=!0;
break a;default:H=!1}return H},V["badge-shape-wiz--no-text"]=function(){return!l().text},V["badge-shape-wiz--modern"]=function(){return l().modern},V)),
style:_.na({"background-color":function(){var H;return(H=l().customColors)==null?void 0:H.backgroundColor}}),
role:function(){return l().accessibilityText?"img":void 0},
"aria-label":function(){return l().accessibilityText}},_.Y(_.NS,{cond:function(){return l().animation},
then:function(H){return _.Y(_.VN,{className:"badge-shape-wiz__icon",data:H,animationName:function(){return H().animationConfig.name||""}})}}),_.Y(_.NS,{cond:function(){var H;
return I()&&!((H=l())==null?0:H.animation)},
then:function(){return _.Y("div",{class:"badge-shape-wiz__icon"},_.Y(pE1,{data:function(){return I()}}))}}),_.Y("div",{class:"badge-shape-wiz__text"},function(){var H;
return(H=l())==null?void 0:H.text}))},"H");
_.mw.idomCompat=!0;_.MR(_.mw,"badge-shape",{props:{data:_.b9}});var ddW=function(){var V=_.M.apply(this,arguments)||this;V.systemIcons=_.z("kevlar_system_icons");V.animated=_.z("animated_live_badge_icon");V.useBadgeShape=_.z("web_badge_shape_defrag");return V};
_.t(ddW,_.M);_.B=ddW.prototype;_.B.addTooltips=function(){for(var V=_.h(this.hostElement).querySelectorAll(".badge"),l=0,I;I=V[l++];){var H=this.repeatElement.itemForElement(I);I=_.h(I);I.lastChild&&I.lastChild.is==="tp-yt-paper-tooltip"&&I.removeChild(I.lastChild);if(H=H.metadataBadgeRenderer&&H.metadataBadgeRenderer.tooltip){var T=_.u9("tp-yt-paper-tooltip");(0,_.mL)(T).textContent=H;T.setAttribute("position","top");I.appendChild(T)}}};
_.B.badgesChanged=function(){var V=this;_.b1().parkOrScheduleJob(function(){V.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.B.standaloneRoundedBadgeChanged=function(){var V=this.useRoundedBadge?this.useRoundedBadge:void 0;V&&(this.useRoundedBadge=V)};
_.B.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.B.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.B.computeStyle=function(V){_.z("enable_html5_teal_ad_badge")&&V==="BADGE_STYLE_TYPE_AD"&&(V="badge-style-type-ad-alternate");_.z("kevlar_ytb_live_badges")&&V==="BADGE_STYLE_TYPE_LIVE_NOW"&&(V="badge-style-type-live-now-alternate");return V?V.toLowerCase().replace(/_/g,"-"):""};
_.B.computeRole=function(V){return this.computeAriaLabel(V)?"img":"status"};
_.B.computeAriaLabel=function(V){var l;return(V==null?void 0:(l=V.accessibilityData)==null?void 0:l.label)||(V==null?void 0:V.label)};
_.B.computeBadgeShape=function(V){var l;if(V){var I,H=TKt(V.style),T=BK1(V.style),x=V.label,n=((I=V.accessibilityData)==null?void 0:I.label)||V.label;V=(l=V.icon)==null?void 0:l.iconType;l={type:H,brNzRatingBadgeType:T,text:x,accessibilityText:n,icon:V!=="PREMIUM"?V:void 0}}else l={};return l};
_.B.updateComputedBadges=function(V,l,I){var H=this;(l=l?[l]:I?[I]:void 0)?this.computedBadges=l:this.computedBadges=V==null?void 0:V.filter(function(T){var x;if((x=T.metadataBadgeRenderer)==null?0:x.groups){x=!1;T=_.U(T.metadataBadgeRenderer.groups);for(var n=T.next();!n.done;n=T.next()){n=n.value;var w=void 0;x=x||((w=H.hiddenBadgeGroups)==null?void 0:w.includes(n))}return!x}return!0})};
_.B.useFilledIcons=function(V){return _.z("kevlar_system_icons")&&(V==="AUDIO_BADGE"||V==="CHECK_CIRCLE_THICK"||V==="OFFICIAL_ARTIST_BADGE"||V==="SPONSORSHIP_STAR"||V==="PERSON_RADAR_FILLED"||V==="PERSON_RADAR")};
_.B.computeIcon=function(V){var l,I;V=V==null?void 0:(l=V.metadataBadgeRenderer)==null?void 0:(I=l.icon)==null?void 0:I.iconType;if(V!=="PREMIUM"&&V)return _.mj(V)};
_.B.computeStandaloneBadge=function(V){var l;V=V==null?void 0:(l=V.icon)==null?void 0:l.iconType;return V==="PREMIUM_STANDALONE"||V==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
var Dm=ddW;Dm.prototype.hiddenBadgeGroupsChanged=Dm.prototype.hiddenBadgeGroupsChanged;Dm.prototype.standaloneBadgeChanged=Dm.prototype.standaloneBadgeChanged;Dm.prototype.standaloneRoundedBadgeChanged=Dm.prototype.standaloneRoundedBadgeChanged;Dm.prototype.badgesChanged=Dm.prototype.badgesChanged;_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Dm.prototype,"hidden",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Dm.prototype,"componentBehavior",void 0);
_.O([_.q(),_.a("design:type",Array)],Dm.prototype,"badges",void 0);_.O([_.q(),_.a("design:type",Object)],Dm.prototype,"topStandaloneBadge",void 0);_.O([_.q(),_.a("design:type",Object)],Dm.prototype,"bottomStandaloneBadge",void 0);_.O([_.q(),_.a("design:type",Object)],Dm.prototype,"computedBadges",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Dm.prototype,"mediumFontAdBadge",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Dm.prototype,"useRoundedBadge",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Dm.prototype,"largeFontAdBadge",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Dm.prototype,"overlayAd",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Dm.prototype,"overlayPremium",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Dm.prototype,"noDotAdBadge",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Dm.prototype,"collectionTruncate",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Dm.prototype,"isThumbnailBadge",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Dm.prototype,"wrapBadges",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Dm.prototype,"systemIcons",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Dm.prototype,"animated",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Dm.prototype,"useBadgeShape",void 0);_.O([_.q({value:[]}),_.a("design:type",Array)],Dm.prototype,"hiddenBadgeGroups",void 0);_.O([_.Ij("#repeat"),_.a("design:type",Km)],Dm.prototype,"repeatElement",void 0);_.O([_.xs("badges"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dm.prototype,"badgesChanged",null);
_.O([_.xs("useRoundedBadge"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dm.prototype,"standaloneRoundedBadgeChanged",null);_.O([_.xs("topStandaloneBadge","bottomStandaloneBadge"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dm.prototype,"standaloneBadgeChanged",null);_.O([_.xs("hiddenBadgeGroups"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dm.prototype,"hiddenBadgeGroupsChanged",null);
Dm=_.O([_.A({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Dm);
var wpv=_.O7()(Dm,"ytd-badge-supported-renderer",function(){if($dJ===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);$dJ=V}V=$dJ;return V},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Cm("kevlar_poly_si_batch_j053")?1:2});var Zm,NKZ=function(){var V=_.M.apply(this,arguments)||this;V.iconType="STAR";V.standardizeIconSize=_.z("kevlar_system_icons");V.mediaHoverOverlayInitialVisibility=_.z("enable_top_landscape_image_button_command_web");V.noBottomMargin=!1;V.thumbnailObjectFit="CONTAIN";V.thumbnailFitHeight=!0;V.actionMap={"yt-mute-ad-action":"handleMuteAd"};return V};
_.t(NKZ,_.M);_.B=NKZ.prototype;
_.B.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"}}}};
_.B.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",Zm.JSC$12379_DEFAULT_CLICK_LOCATION_BEHAVIOR,Zm.JSC$12379_CLICK_LOCATION_ID_MAP))};
_.B.onTap=function(V){if(!_.z("use_on_click_for_desktop_display_ad"))this.onTapOrClick(V)};
_.B.onClick=function(V){if(_.z("use_on_click_for_desktop_display_ad"))this.onTapOrClick(V)};
_.B.onTapOrClick=function(V){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,V,!1)};
_.B.updateMediaBackgroundImage=function(){var V=this.get("data.image.thumbnail.thumbnails");V&&(V=_.sI(V,0))&&_.i3(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+V+")"})};
_.B.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var V=0;V<this.data.impressionEndpoints.length;V++){var l=this.data.impressionEndpoints[V];l.clickTrackingParams&&delete l.clickTrackingParams;_.z("web_ytd_display_ad_renderer_command_resolver_ks")?_.$B(this.hostElement,[l]):_.F().resolve(_.aw).resolveCommand(l,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var I;((I=this.data)==null?0:I.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,
17)}};
_.B.handleMuteAd=function(){};
_.B.attached=function(){var V=this;_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.B.detached=function(){_.z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vI.Object.defineProperties(NKZ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.titleText)return"";var l;return _.LT("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((l=this.data)==null?void 0:l.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.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 V;return!((V=this.data)==null||!V.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
var Sy=Zm=NKZ;Zm.prototype.onClick=Zm.prototype.onClick;Zm.prototype.onTap=Zm.prototype.onTap;Zm.prototype.dataChanged=Zm.prototype.dataChanged;Sy.VERTICAL_CAROUSEL_ITEM_IMAGE_WIDTH=135;
Sy.JSC$12379_CLICK_LOCATION_ID_MAP=_.z("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"]]);
Sy.JSC$12379_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.z("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"}];_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.SE),_.a("design:type",Object)],Sy.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Sy.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.Vs.YtSparklesClickLocationBehavior),_.a("design:type",Object)],Sy.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.R(P0),_.a("design:type",Object)],Sy.prototype,"ytdActiveViewBehavior",void 0);_.O([_.R([_.aU.YtActionHandlerBehavior]),_.a("design:type",Object)],Sy.prototype,"actionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],Sy.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Sy.prototype,"clickCommand",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],Sy.prototype,"miniMode",void 0);_.O([_.q(),_.a("design:type",String)],Sy.prototype,"iconType",void 0);_.O([_.Q("data.titleText"),_.a("design:type",String),_.a("design:paramtypes",[])],Sy.prototype,"titleAriaLabel",null);
_.O([_.Q("data.rating"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sy.prototype,"getRating",null);_.O([_.Q("data.price"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sy.prototype,"getPrice",null);_.O([_.Q("data.thirdLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sy.prototype,"getThirdLine",null);_.O([_.Q("data.fourthLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sy.prototype,"getFourthLine",null);
_.O([_.Q("data.fifthLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sy.prototype,"getFifthLine",null);_.O([_.Q("getRating"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Sy.prototype,"computeRatingHidden",null);_.O([_.Q("getPrice"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Sy.prototype,"computePriceHidden",null);_.O([_.Q("getThirdLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Sy.prototype,"computeThirdLineHidden",null);
_.O([_.Q("getFourthLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Sy.prototype,"computeFourthLineHidden",null);_.O([_.Q("getFifthLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Sy.prototype,"computeFifthLineHidden",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.energyIcon"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Sy.prototype,"hasEnergyIcon",null);
_.O([_.Q("computePriceHidden","computeRatingHidden"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Sy.prototype,"computeSecondaryTextHidden",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Sy.prototype,"standardizeIconSize",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Sy.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Sy.prototype,"noBottomMargin",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.layout"),_.a("design:type",String),_.a("design:paramtypes",[])],Sy.prototype,"layout",null);_.O([_.Q("data.layout"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sy.prototype,"mediaThumbnailWidth",null);_.O([_.Q("layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Sy.prototype,"useRoundedBadge",null);_.O([_.q(),_.a("design:type",String)],Sy.prototype,"thumbnailObjectFit",void 0);
_.O([_.q(),_.a("design:type",Object)],Sy.prototype,"thumbnailFitHeight",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sy.prototype,"dataChanged",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Sy.prototype,"onTap",null);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Sy.prototype,"onClick",null);
Sy=Zm=_.O([_.A({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Sy);
_.u(Sy,"ytd-display-ad-renderer",function(){if(n2N!==void 0)return n2N;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return n2N=V},{mode:1});var Kei;var jF3;var YDw;var Leo=function(){var V=_.M.apply(this,arguments)||this;V.DEFAULT_TOOLTIP_OFFSET="10";V.TOOLTIP_OFFSET_NO_BANNER="-8";V.badges=null;V.noEndpoints=!1;V.wrapText=!1;V.forceVerified=!1;V.tooltipPosition="top";V.compactStyle=!1;V.height=0;V.lineHeight=0;return V};
_.t(Leo,_.M);_.B=Leo.prototype;_.B.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.B.attached=function(){var V=this;this.observer=new MutationObserver(function(l,I){V.handleResized();I.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.B.detached=function(){this.observer&&this.observer.disconnect()};
_.B.logTooltipEvent=function(){_.z("kevlar_wiz_tooltip_event_killswitch")||s$J||(_.jU("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),s$J=!0)};
_.B.handleWindowResized=function(){this.handleResized()};
_.B.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")))};
_.B.onHeightChanged=function(){if(this.verified){var V=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.h6("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=V:this.textContainerEl.style.marginRight=V}};
_.B.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.h6("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.B.handleResized=function(){var V=this;this.verified&&_.r0.addLowPriorityJob(function(){V.fitBackgroundToText();var l=getComputedStyle(V.hostElement).lineHeight;l&&(l=l.match(/\d+/))&&l.length&&(V.lineHeight=Number(l[0]));V.height=V.lineHeight&&!V.wrapText?V.lineHeight:V.textEl.offsetHeight})};
_.B.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var V=document.createRange(),l=_.h(this.textEl).children;l.length>0?V.selectNodeContents(l[0]):V.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(V.getBoundingClientRect().width)+"px"}};
_.B.computeChannelBadgeStyle=function(V){var l;if((V==null?0:(l=V.runs)==null?0:l.length)&&V.runs[0].textColor)return"--ytd-badge-icon-color:"+_.tv(V.runs[0].textColor)+";"};
_.vI.Object.defineProperties(Leo.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"?_.pW(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var V=this.get("badges.0.metadataBadgeRenderer.tooltip");if(V)return V}return _.A5(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
var RD=Leo;RD.prototype.onLineHeightChanged=RD.prototype.onLineHeightChanged;RD.prototype.onHeightChanged=RD.prototype.onHeightChanged;RD.prototype.onChannelNameChanged=RD.prototype.onChannelNameChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],RD.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],RD.prototype,"badges",void 0);_.O([_.q(),_.a("design:type",Object)],RD.prototype,"channelName",void 0);
_.O([_.q(),_.a("design:type",Object)],RD.prototype,"noEndpoints",void 0);_.O([_.q(),_.a("design:type",Object)],RD.prototype,"wrapText",void 0);_.O([_.q(),_.a("design:type",Object)],RD.prototype,"forceVerified",void 0);_.O([_.q(),_.a("design:type",Object)],RD.prototype,"tooltipPosition",void 0);_.O([_.q(),_.a("design:type",String)],RD.prototype,"tooltip",void 0);_.O([_.q(),_.a("design:type",Boolean)],RD.prototype,"hasChannelArt",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],RD.prototype,"compactStyle",void 0);_.O([_.Ij("#text-container"),_.a("design:type",HTMLElement)],RD.prototype,"textContainerEl",void 0);_.O([_.Ij("#text"),_.a("design:type",Object)],RD.prototype,"textEl",void 0);_.O([_.Ij("#verified-tooltip"),_.a("design:type",HTMLElement)],RD.prototype,"verifiedTooltip",void 0);_.O([_.q(),_.a("design:type",Object)],RD.prototype,"height",void 0);
_.O([_.q(),_.a("design:type",Object)],RD.prototype,"lineHeight",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("badges","forceVerified"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],RD.prototype,"verified",null);_.O([_.Q("badges","verified"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],RD.prototype,"hideBadges",null);_.O([_.Q("channelName"),_.a("design:type",Object),_.a("design:paramtypes",[])],RD.prototype,"formattedName",null);
_.O([_.Q("badges","verified","formattedName"),_.a("design:type",String),_.a("design:paramtypes",[])],RD.prototype,"tooltipText",null);_.O([_.Q("hasChannelArt"),_.a("design:type",String),_.a("design:paramtypes",[])],RD.prototype,"tooltipOffset",null);_.O([_.b("channelName"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],RD.prototype,"onChannelNameChanged",null);
_.O([_.b("height"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],RD.prototype,"onHeightChanged",null);_.O([_.b("lineHeight","height"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],RD.prototype,"onLineHeightChanged",null);RD=_.O([_.A({is:"ytd-channel-name",disableElementRegistration:!0})],RD);
_.u(RD,"ytd-channel-name",function(){if(YDw!==void 0)return YDw;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return YDw=V},{mode:_.Cm("kevlar_poly_si_batch_j036")?1:2});var Qs=function(){var V=_.M.apply(this,arguments)||this;V.standardizeIconSize=_.z("kevlar_system_icons");V.enableModernCommentBadges=_.z("enable_modern_comment_badges");return V};
_.t(Qs,_.M);Qs.prototype.basicPaletteChanged=function(){var V;(V=this.data.color)!=null&&V.basicColorPaletteData&&_.Xp(this.hostElement,this.data.color.basicColorPaletteData)};
Qs.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var V,l=this.get("basicColorPaletteData.backgroundColor",(V=this.data)==null?void 0:V.color),I;V=this.get("basicColorPaletteData.foregroundTitleColor",(I=this.data)==null?void 0:I.color);I={};l?(l=_.tv(l),I["--ytd-author-comment-badge-background-color"]=l):(I["--ytd-author-comment-badge-icon-background-color"]="transparent",I["--ytd-author-comment-badge-background-color"]="transparent");V?(l=_.tv(V),I["--ytd-author-comment-badge-name-color"]=
l,I["--ytd-author-comment-badge-icon-color"]=l):I["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(I).length>0&&_.i3(this.hostElement,I)}};
Qs.prototype.useFilledIcons=function(V){return _.z("kevlar_system_icons")&&(V==="CHECK_CIRCLE_THICK"||V==="OFFICIAL_ARTIST_BADGE")};
_.vI.Object.defineProperties(Qs.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
var c7=Qs;c7.prototype.colorChanged=c7.prototype.colorChanged;c7.prototype.basicPaletteChanged=c7.prototype.basicPaletteChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],c7.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],c7.prototype,"standardizeIconSize",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],c7.prototype,"enableModernCommentBadges",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.authorUnifiedVerified"),_.a("design:type",Object),_.a("design:paramtypes",[])],c7.prototype,"verified",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],c7.prototype,"creator",null);
_.O([_.b("data.color.basicColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],c7.prototype,"basicPaletteChanged",null);_.O([_.b("data.color"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],c7.prototype,"colorChanged",null);c7=_.O([_.A({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],c7);
_.u(c7,"ytd-author-comment-badge-renderer",function(){if(jF3!==void 0)return jF3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return jF3=V},{mode:1});var eOb;var kgE=function(){return _.M.apply(this,arguments)||this};
_.t(kgE,_.M);kgE.prototype.computeThumbnailWidth=function(V){if(V==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
var W7=kgE;W7.communityTabWidth=638;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],W7.prototype,"data",void 0);_.O([_.q({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],W7.prototype,"icon",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],W7.prototype,"surface",void 0);
_.O([_.q({reflectToAttribute:!0,value:_.z("enable_shrink_image_size_on_web_posts_singleton")}),_.a("design:type",Boolean)],W7.prototype,"searchSxsUx",void 0);W7=_.O([_.A({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],W7);
_.u(W7,"ytd-backstage-image-renderer",function(){if(eOb!==void 0)return eOb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return eOb=V},{mode:1});var FeZ;var Xp0=function(){var V=_.M.apply(this,arguments)||this;V.isLoading=!1;V.selectedItemIndex=-1;return V};
_.t(Xp0,_.M);_.B=Xp0.prototype;_.B.computeIsChannelOwner=function(V){if(!V)return!0;V=V[0];return!(V&&(V.signinEndpoint||V.selectServiceEndpoint))};
_.B.computeIsImagePoll=function(V){return(V==null?void 0:V.type)==="POLL_TYPE_IMAGE"};
_.B.computeIsTotalVotesDisabled=function(V){return!(V==null?0:V.totalVotes)};
_.B.thumbnailSrc=function(V){var l,I,H,T;return(V==null?0:(l=V.thumbnails)==null?0:(I=l[0])==null?0:I.url)?_.S6((H=V.thumbnails)==null?void 0:(T=H[0])==null?void 0:T.url):void 0};
_.B.progressWidth=function(V){return"width:"+(V?V*100:0)+"%;"};
_.B.textAreaWidth=function(V){return this.isImagePoll?null:"width:"+(V?V*100:0)+"%;"};
_.B.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.B.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var V=this.data.choices,l=0;l<V.length;l++)if(V[l].selected){this.selectedItemIndex=l;break}};
_.B.onPopupClosed=function(V,l){V=Number(this.pollVotes.selected);l.confirmed&&(this.selectChoice(V,!1),_.xB(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.B.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.B.onYtCommentPollRevert=function(V,l){l&&(this.selectChoice(l.selectedChoiceIndex,!0),this.set("data.totalVotes",l.totalVotes))};
_.B.onYtServiceRequestSent=function(V,l){if(l.actions)for(V=0;V<l.actions.length;V++){var I=l.actions[V];_.y(I,Gj)&&this.set("data.totalVotes",_.y(I,Gj).totalVotes)}};
_.B.onYtServiceRequestCompleted=function(V){var l=this.get("detail.data.actionResults.0.feedback",V);V=this.get("detail.data.actionResults.0.status",V);if(l==="FEEDBACK_DESELECT"||l==="FEEDBACK_SELECT")this.isLoading=!1,V==="STATUS_FAILED"?_.B$(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.B.getEndpoint=function(V,l){return l===V?this.data.choices[l].deselectServiceEndpoint||null:this.data.choices[V].selectServiceEndpoint||null};
_.B.selectChoice=function(V,l){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var I=0;I<this.data.choices.length;I++){var H;if(V===this.selectedItemIndex){var T=!1;var x=H=null}else H=(T=I===V)?this.data.choices[I].voteRatioIfSelected:this.data.choices[I].voteRatioIfNotSelected,x=T?this.data.choices[I].votePercentageIfSelected:this.data.choices[I].votePercentageIfNotSelected;this.set("data.choices."+I+".voteRatio",H);
this.set("data.choices."+I+".votePercentage",x);this.set("data.choices."+I+".selected",T)}l||(this.isLoading=!0,(l=this.getEndpoint(V,this.selectedItemIndex))&&_.$B(this.hostElement,[l]));this.selectedItemIndex=this.selectedItemIndex===V?-1:V};
_.vI.Object.defineProperties(Xp0.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
var bL=Xp0;bL.prototype.onYtServiceRequestCompleted=bL.prototype.onYtServiceRequestCompleted;bL.prototype.onYtServiceRequestSent=bL.prototype.onYtServiceRequestSent;bL.prototype.onYtCommentPollRevert=bL.prototype.onYtCommentPollRevert;bL.prototype.onPopupClosed=bL.prototype.onPopupClosed;bL.prototype.dataChanged=bL.prototype.dataChanged;_.O([_.R(_.aR),_.a("design:type",Object)],bL.prototype,"paperItemBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],bL.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],bL.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],bL.prototype,"isLoading",void 0);_.O([_.q({computed:"computeIsChannelOwner(data.choices)"}),_.a("design:type",Boolean)],bL.prototype,"isChannelOwner",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.a("design:type",Boolean)],bL.prototype,"isImagePoll",void 0);_.O([_.q({computed:"computeIsTotalVotesDisabled(data)"}),_.a("design:type",Boolean)],bL.prototype,"isTotalVotesDisabled",void 0);_.O([_.q(),_.a("design:type",Object)],bL.prototype,"previousPollInfo",void 0);_.O([_.q(),_.a("design:type",Object)],bL.prototype,"selectedItemIndex",void 0);_.O([_.Ij("#poll-votes"),_.a("design:type",Object)],bL.prototype,"pollVotes",void 0);
_.O([_.Q("isChannelOwner"),_.a("design:type",Object),_.a("design:paramtypes",[])],bL.prototype,"endpointStyle",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bL.prototype,"dataChanged",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],bL.prototype,"onPopupClosed",null);
_.O([_.W("yt-comment-poll-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],bL.prototype,"onYtCommentPollRevert",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],bL.prototype,"onYtServiceRequestSent",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],bL.prototype,"onYtServiceRequestCompleted",null);bL=_.O([_.A({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],bL);
_.u(bL,"ytd-backstage-poll-renderer",function(){if(FeZ!==void 0)return FeZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return FeZ=V},{mode:2});var zON;var ygN={autoplay:!1,loop:!1},t90={simpleText:""},rgo=function(){var V=_.M.apply(this,arguments)||this;V.isLoading=!1;V.usesPanelLockup=!1;V.selectedItemIndex=-1;V.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},ygN,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});V.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},ygN,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});V.correctnessAnimationProps=[];V.correctnessAnimationRefs=[];return V};
_.t(rgo,_.M);_.B=rgo.prototype;_.B.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.B.computeIsChannelOwner=function(V){if(!V)return!0;V=V[0];return!(V&&(V.signinEndpoint||V.selectServiceEndpoint))};
_.B.computeIsTotalVotesDisabled=function(V){return!(V==null?0:V.totalVotes)};
_.B.computeIsImageQuiz=function(V){return(V==null?void 0:V.type)==="POLL_TYPE_IMAGE"};
_.B.onExplanationChanged=function(){this.expander.reset()};
_.B.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var V=this.data.choices;if(V){this.maybeInitializeQuizLotties(V);for(var l=0;l<V.length;l++)if(V[l].isSelected||this.isChannelOwner&&V[l].isCorrect){this.selectedItemIndex=l;return}this.selectedItemIndex=-1}}};
_.B.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var V=this.selectedItemIndex,l=Number(this.quizVotes.selected);this.selectChoice(l);this.sendVoteAction(l,V);this.quizVotes.selected=-1;var I;V=!((I=this.data)==null?0:I.enableAnimation);this.maybePlayAnswerAnimations(V)}};
_.B.onYtCommentPollRevert=function(V,l){l&&(this.selectChoice(l.selectedChoiceIndex),this.set("data.totalVotes",l.totalVotes))};
_.B.onYtServiceRequestSent=function(V,l){if(l.actions)for(V=_.U(l.actions),l=V.next();!l.done;l=V.next())(l=_.y(l.value,Gj))&&this.set("data.totalVotes",l.totalVotes)};
_.B.onYtServiceRequestCompleted=function(V){var l=this.get("detail.data.actionResults.0.feedback",V);V=this.get("detail.data.actionResults.0.status",V);if(l==="FEEDBACK_DESELECT"||l==="FEEDBACK_SELECT")this.isLoading=!1,V==="STATUS_FAILED"?_.B$(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.B.getAnimationPropsForChoiceIndex=function(V,l){return l[V]};
_.B.maybePlayAnswerAnimations=function(V){V=V===void 0?!1:V;var l;if((l=this.data)!=null&&l.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){l=_.U(this.correctnessAnimationRefs);for(var I=l.next();!I.done;I=l.next()){var H=void 0,T=void 0;(H=I.value)==null||(T=H.lottieEl)==null||T.stop()}if(!(this.selectedItemIndex<0)){l=0;V&&(l=this.isCorrect?37:25);var x,n;(x=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(n=x.lottieEl)==null||n.goToAndPlay(V?l:0,!0);if(!(this.isCorrect||
(x=this.data.choices.findIndex(function(e){return e.isCorrect}),x<0))){var w,N;
(N=(w=this.correctnessAnimationRefs[x])==null?void 0:w.lottieEl)==null||N.goToAndPlay(37,!0);var L;w=(L=this.fadeContainers)==null?void 0:L.item(x);!V&&w&&this.fadeIn(w)}}}};
_.B.thumbnailSrc=function(V){var l,I,H,T;return(V==null?0:(l=V.thumbnails)==null?0:(I=l[0])==null?0:I.url)?_.S6((H=V.thumbnails)==null?void 0:(T=H[0])==null?void 0:T.url):void 0};
_.B.a11yVotedText=function(V,l){var I,H,T=((I=this.data)==null?void 0:(H=I.correctVotedText)==null?void 0:H.simpleText)||"",x,n;I=((x=this.data)==null?void 0:(n=x.votedText)==null?void 0:n.simpleText)||"";if(!l)return"";var w,N;if((w=this.data)==null?0:(N=w.choices)==null?0:N[V].isCorrect)return T;var L,e;return((L=this.data)==null?0:(e=L.choices)==null?0:e[V].isSelected)?I:""};
_.B.getEndpoint=function(V,l){return l===V?this.data.choices[V].deselectServiceEndpoint||null:this.data.choices[V].selectServiceEndpoint||null};
_.B.sendVoteAction=function(V,l){if(V=this.getEndpoint(V,l))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(V)};
_.B.selectChoice=function(V){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var l=0;l<this.data.choices.length;l++)this.set("data.choices."+l+".isSelected",V===this.selectedItemIndex?!1:l===V);this.selectedItemIndex=this.selectedItemIndex===V?-1:V};
_.B.maybeInitializeQuizLotties=function(V){var l=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=V.map(function(I){return{animationConfig:I.isCorrect?l.baseCorrectLottiePlayerAnimationConfig:l.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){l.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(I){return I.animationRef||{}})};
_.B.fadeIn=function(V){V.classList.add("fade-in");_.vX(_.r0,function(){V.classList.remove("fade-in")},900)};
_.vI.Object.defineProperties(rgo.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.z("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.A5(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 V,l;return((V=this.data)==null?void 0:(l=V.choices)==null?void 0:l.some(function(I){return I.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null||!V.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?t90:this.data.choices[this.selectedItemIndex].explanation||t90}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null||!V.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
var q6=rgo;q6.prototype.onYtServiceRequestCompleted=q6.prototype.onYtServiceRequestCompleted;q6.prototype.onYtServiceRequestSent=q6.prototype.onYtServiceRequestSent;q6.prototype.onYtCommentPollRevert=q6.prototype.onYtCommentPollRevert;q6.prototype.dataChanged=q6.prototype.dataChanged;q6.prototype.onExplanationChanged=q6.prototype.onExplanationChanged;_.O([_.R(_.aR),_.a("design:type",Object)],q6.prototype,"paperItemBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],q6.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.AM.YtTaskEmitterBehavior),_.a("design:type",Object)],q6.prototype,"ytTaskEmitterBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],q6.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],q6.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],q6.prototype,"isLoading",void 0);_.O([_.q(),_.a("design:type",Object)],q6.prototype,"usesPanelLockup",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.a("design:type",Boolean)],q6.prototype,"isChannelOwner",void 0);_.O([_.q({computed:"computeIsTotalVotesDisabled(data)"}),_.a("design:type",Boolean)],q6.prototype,"isTotalVotesDisabled",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.a("design:type",Boolean)],q6.prototype,"isImageQuiz",void 0);_.O([_.q(),_.a("design:type",Object)],q6.prototype,"previousQuizInfo",void 0);_.O([_.q(),_.a("design:type",Object)],q6.prototype,"selectedItemIndex",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data","usesPanelLockup"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],q6.prototype,"shouldUseModernUi",null);
_.O([_.H1(".fade-container"),_.a("design:type",Object)],q6.prototype,"fadeContainers",void 0);_.O([_.q(),_.a("design:type",Array)],q6.prototype,"correctnessAnimationProps",void 0);_.O([_.Q("explanation","showCorrectAnswer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],q6.prototype,"showExplanation",null);_.O([_.Q("isChannelOwner","isAttempted"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],q6.prototype,"showCorrectAnswer",null);
_.O([_.Q("isChannelOwner","isAttempted","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],q6.prototype,"isQuizAnsweringDisabled",null);_.O([_.Q("isQuizAnsweringDisabled"),_.a("design:type",Object),_.a("design:paramtypes",[])],q6.prototype,"endpointStyle",null);_.O([_.Q("data","selectedItemIndex"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],q6.prototype,"isAttempted",null);
_.O([_.Q("data","selectedItemIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],q6.prototype,"explanation",null);_.O([_.Q("data","selectedItemIndex"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],q6.prototype,"isCorrect",null);_.O([_.Ij("ytd-expander"),_.a("design:type",Object)],q6.prototype,"expander",void 0);_.O([_.Ij("#quiz-votes"),_.a("design:type",Object)],q6.prototype,"quizVotes",void 0);
_.O([_.b("explanation"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],q6.prototype,"onExplanationChanged",null);_.O([_.b("data","isChannelOwner"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],q6.prototype,"dataChanged",null);_.O([_.W("yt-comment-quiz-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],q6.prototype,"onYtCommentPollRevert",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],q6.prototype,"onYtServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],q6.prototype,"onYtServiceRequestCompleted",null);q6=_.O([_.A({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],q6);
_.u(q6,"ytd-backstage-quiz-renderer",function(){if(zON!==void 0)return zON;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return zON=V},{mode:1});var Gg3;var E2o=function(){return _.M.apply(this,arguments)||this};
_.t(E2o,_.M);var M6=E2o;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],M6.prototype,"data",void 0);M6=_.O([_.A({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],M6);
_.u(M6,"ytd-post-uploaded-video-renderer",function(){if(Gg3!==void 0)return Gg3;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Gg3=V},{mode:1});var JgN;var o2a=function(){return _.M.apply(this,arguments)||this};
_.t(o2a,_.M);o2a.prototype.useFilledIcons=function(V){return V==="SPONSORSHIP_STAR"};
var su=o2a;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],su.prototype,"data",void 0);su=_.O([_.A({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],su);
_.u(su,"ytd-sponsors-only-badge-renderer",function(){if(JgN!==void 0)return JgN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return JgN=V},{mode:1});var hOZ;var Pmo=function(){return _.M.apply(this,arguments)||this};
_.t(Pmo,_.M);var pz=Pmo;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],pz.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pz.prototype,"data",void 0);pz=_.O([_.A({is:"ytd-child-video-renderer",disableElementRegistration:!0})],pz);
_.u(pz,"ytd-child-video-renderer",function(){if(hOZ!==void 0)return hOZ;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return hOZ=V},{mode:1});var DdW;var ZpZ;var SDW=function(){var V=_.M.apply(this,arguments)||this;V.size=0;V.enableWebModernCollectionsV2=_.z("web_modern_collections_v2");V.fallbackImageSize={height:void 0,width:9999};V.webModernCollections=!1;return V};
_.t(SDW,_.M);_.B=SDW.prototype;_.B.computeBlurredImageSize=function(V){return V?{height:V*2,width:V*2}:this.fallbackImageSize};
_.B.computeImageSize=function(V){return V?{height:V,width:V}:this.fallbackImageSize};
_.B.computeObjectFit=function(V){return V?"FILL":"CONTAIN"};
_.B.computePreserve=function(V){return V?!0:!1};
_.B.setBackground=function(){var V,l;_.z("web_modern_collections_v2")&&((V=this.data)==null?0:(l=V.thumbnail)==null?0:l.sampledThumbnailColor)&&(V=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+V.red+","+V.green+","+V.blue+",1)")};
var A7=SDW;A7.prototype.setBackground=A7.prototype.setBackground;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],A7.prototype,"watchFeedThumbnail",void 0);_.O([_.q(),_.a("design:type",Object)],A7.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],A7.prototype,"size",void 0);
_.O([_.q({computed:"computeBlurredImageSize(size)"}),_.a("design:type",Object)],A7.prototype,"blurredImageSize",void 0);_.O([_.q({computed:"computeImageSize(size)"}),_.a("design:type",Object)],A7.prototype,"imageSize",void 0);_.O([_.q({computed:"computePreserve(size)"}),_.a("design:type",String)],A7.prototype,"preserve",void 0);_.O([_.q({computed:"computeObjectFit(size)"}),_.a("design:type",String)],A7.prototype,"objectFit",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],A7.prototype,"enableWebModernCollectionsV2",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],A7.prototype,"webModernCollections",void 0);_.O([_.b("data.thumbnail.sampledThumbnailColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],A7.prototype,"setBackground",null);A7=_.O([_.A({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],A7);
_.u(A7,"ytd-playlist-custom-thumbnail-renderer",function(){if(ZpZ!==void 0)return ZpZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return ZpZ=V},{mode:1});var ROv;var QFN=function(){return _.M.apply(this,arguments)||this};
_.t(QFN,_.M);var uL=QFN;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],uL.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Number)],uL.prototype,"width",void 0);uL=_.O([_.A({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],uL);
_.u(uL,"ytd-playlist-video-thumbnail-renderer",function(){if(ROv!==void 0)return ROv;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ROv=V},{mode:1});var cg0;var Wev=function(){return _.M.apply(this,arguments)||this};
_.t(Wev,_.M);var v7=Wev;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],v7.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Number)],v7.prototype,"width",void 0);v7=_.O([_.A({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],v7);
_.u(v7,"ytd-show-custom-thumbnail-renderer",function(){if(cg0!==void 0)return cg0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return cg0=V},{mode:1});var bp3;var Ou=function(){return _.M.apply(this,arguments)||this};
_.t(Ou,_.M);Ou.prototype.useFilledIcons=function(V){return V==="MUSIC"||V==="COURSE"};
Ou.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=GR(this.overlayColor,"0.8");else if(this.overlayColor){var V=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+V.red+","+V.green+","+V.blue+",0.8)"}};
_.vI.Object.defineProperties(Ou.prototype,{overlayStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||!this.data.icon)}},
overlayTextStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||this.data.icon)}}});
var Cz=Ou;Cz.prototype.overlayColorChanged=Cz.prototype.overlayColorChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Cz.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Cz.prototype,"overlayColor",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.icon","data.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],Cz.prototype,"overlayStyle",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.icon","data.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],Cz.prototype,"overlayTextStyle",null);_.O([_.b("overlayColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cz.prototype,"overlayColorChanged",null);Cz=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Cz);
_.u(Cz,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(bp3!==void 0)return bp3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return bp3=V},{mode:1});var qDW;var M9E=function(){var V=_.M.apply(this,arguments)||this;V.active=!1;return V};
_.t(M9E,_.M);M9E.prototype.computeIsSpinnerHidden=function(V){return(V==null?void 0:V.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
M9E.prototype.computeOverlayIcon=function(V){return(V==null?void 0:V.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(V==null?void 0:V.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
var aD=M9E;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],aD.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],aD.prototype,"active",void 0);aD=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],aD);
_.u(aD,"ytd-thumbnail-overlay-downloading-renderer",function(){if(qDW!==void 0)return qDW;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return qDW=V},{mode:1});var sF3;var ppW=function(){return _.M.apply(this,arguments)||this};
_.t(ppW,_.M);_.vI.Object.defineProperties(ppW.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
var fz=ppW;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],fz.prototype,"data",void 0);_.O([_.Q("data.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],fz.prototype,"text",null);fz=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],fz);
_.u(fz,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(sF3!==void 0)return sF3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return sF3=V},{mode:1});var Agi,uCW=function(){if(Agi!==void 0)return Agi;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Agi=V};var v2i=function(){return _.M.apply(this,arguments)||this};
_.t(v2i,_.M);_.vI.Object.defineProperties(v2i,{template:{configurable:!0,enumerable:!0,get:function(){return uCW()}}});
var OpN=v2i;_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],OpN.prototype,"animateEqualizer",void 0);OpN=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],OpN);_.O7()(OpN,"ytd-thumbnail-overlay-equalizer",function(){return uCW()},{allowedProps:["animateEqualizer"],
mode:1});var CmN;var aPB=function(){var V=_.M.apply(this,arguments)||this;V.nowPlayingBadge=_.z("web_now_playing_badge");V.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return V};
_.t(aPB,_.M);aPB.prototype.activeChanged=function(){var V=this;_.z("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Al(this,function(){_.B$(V.hostElement,"yt-playlist-lockup-now-playing-active",V)})};
aPB.prototype.onMiniplayerPlayStateChanged=function(V){var l,I=(l=_.y(_.jl().currentEndpoint,_.vU))==null?void 0:l.videoId;this.isVideoPlaying=V&&(_.z("web_limit_now_playing_animation_killswitch")||this.videoId===I)};
var gc=aPB;gc.prototype.activeChanged=gc.prototype.activeChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],gc.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],gc.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],gc.prototype,"isVideoPlaying",void 0);_.O([_.q(),_.a("design:type",String)],gc.prototype,"videoId",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],gc.prototype,"equalizerOnly",void 0);_.O([_.q(),_.a("design:type",Boolean)],gc.prototype,"isActive",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gc.prototype,"nowPlayingBadge",void 0);_.O([_.b("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gc.prototype,"activeChanged",null);
gc=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],gc);
_.u(gc,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(CmN!==void 0)return CmN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return CmN=V},{mode:1});var fP3;var g2a=function(){return _.M.apply(this,arguments)||this};
_.t(g2a,_.M);var ma=g2a;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ma.prototype,"data",void 0);ma=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],ma);
_.u(ma,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(fP3!==void 0)return fP3;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return fP3=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var mdN;var ipb=function(){return _.M.apply(this,arguments)||this};
_.t(ipb,_.M);ipb.prototype.onDurationChanged=function(){var V,l;_.h(this.hostElement).querySelector("#progress").style.width=((l=(V=this.data)==null?void 0:V.percentDurationWatched)!=null?l:0)+"%"};
var iL=ipb;iL.prototype.onDurationChanged=iL.prototype.onDurationChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],iL.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],iL.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],iL.prototype,"isLive",void 0);_.O([_.b("data.percentDurationWatched"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iL.prototype,"onDurationChanged",null);
iL=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],iL);
_.u(iL,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(mdN!==void 0)return mdN;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return mdN=V},{mode:1});var Vpi;var l_w=function(){var V=_.M.apply(this,arguments)||this;V.bottomPanel=!1;V.richGridOverlay=!1;V.watchFeedOverlay=!1;V.isCompact=!1;return V};
_.t(l_w,_.M);l_w.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.vI.Object.defineProperties(l_w.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:(l=V.icon)==null?void 0:l.iconType)==="PLAY_ALL"&&_.z("kevlar_system_icons")}}});
var VL=l_w;VL.prototype.widthChanged=VL.prototype.widthChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],VL.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Number)],VL.prototype,"width",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VL.prototype,"bottomPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VL.prototype,"richGridOverlay",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VL.prototype,"watchFeedOverlay",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VL.prototype,"isCompact",void 0);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VL.prototype,"isIconFilled",null);_.O([_.b("width","watchFeedOverlay"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VL.prototype,"widthChanged",null);
VL=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],VL);
_.u(VL,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Vpi!==void 0)return Vpi;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Vpi=V},{mode:1});var I_N;var HJw=["CLIP","SHORTS"],TaZ=function(){var V=_.M.apply(this,arguments)||this;V.animated=_.z("animated_live_badge_icon");V.hasIcon=!1;V.updateTimerIntervalId=0;V.timeSinceLive=0;return V};
_.t(TaZ,_.M);_.B=TaZ.prototype;_.B.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.B.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.B.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.B.hasIconOrText=function(){var V,l;return!!(((V=this.data)==null?0:V.icon)||((l=this.data)==null?0:l.text))};
_.B.initializeLiveBadgeTimer=function(){var V=this,l,I=(l=this.liveBadgeData)==null?void 0:l.startTimestampSec;if(I&&this.canShowLiveBadgeTimer()){var H;l=Number((H=this.liveBadgeData)==null?void 0:H.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(I);this.updateTimerIntervalId=_.Hx(function(){V.canShowLiveBadgeTimer()?V.timeSinceLive++:(V.timeSinceLive=0,window.clearInterval(V.updateTimerIntervalId))},l)}else this.timeSinceLive=0};
_.B.canShowLiveBadgeTimer=function(){var V=Date.now(),l,I;return V<(Number((l=this.liveBadgeData)==null?void 0:l.endTimestampSec)-1)*1E3&&V>Number((I=this.liveBadgeData)==null?void 0:I.startTimestampSec)*1E3};
_.vI.Object.defineProperties(TaZ.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V=this.data;var l=this.timeSinceLive;var I,H,T,x;a:{var n=V.style;if(n===void 0)n=16;else switch(n){case "LIVE":n=17;break a;default:n=16}}l={type:n,text:l?mBw({seconds:l}):_.A5(V.text),accessibilityText:(I=V.text)==null?void 0:(H=I.accessibility)==null?void 0:(T=H.accessibilityData)==null?void 0:T.label,icon:(x=V.icon)==null?void 0:x.iconType}}else l={};return l}},
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 V;return(V=this.data)==null?void 0:V.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 HJw.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
var lS=TaZ;lS.prototype.initializeLiveBadgeTimer=lS.prototype.initializeLiveBadgeTimer;lS.prototype.dataChanged=lS.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],lS.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],lS.prototype,"data",void 0);_.O([_.q({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],lS.prototype,"icon",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],lS.prototype,"animated",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.a("design:type",Boolean)],lS.prototype,"hideTimeStatus",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],lS.prototype,"hasIcon",void 0);_.O([_.q(),_.a("design:type",Object)],lS.prototype,"timeSinceLive",void 0);_.O([_.Q("data","timeSinceLive"),_.a("design:type",Object),_.a("design:paramtypes",[])],lS.prototype,"badgeShapeData",null);
_.O([_.Q("data","overlayType"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],lS.prototype,"hideBadgeShape",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lS.prototype,"dataChanged",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.style"),_.a("design:type",Object),_.a("design:paramtypes",[])],lS.prototype,"overlayStyle",null);
_.O([_.Q("data.liveBadgeData"),_.a("design:type",Object),_.a("design:paramtypes",[])],lS.prototype,"liveBadgeData",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.type"),_.a("design:type",Object),_.a("design:paramtypes",[])],lS.prototype,"overlayType",null);_.O([_.Q("overlayType","overlayStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],lS.prototype,"useFilledIcon",null);
_.O([_.xs("liveBadgeData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lS.prototype,"initializeLiveBadgeTimer",null);lS=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],lS);
_.u(lS,"ytd-thumbnail-overlay-time-status-renderer",function(){if(I_N!==void 0)return I_N;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return I_N=V},{mode:_.Cm("kevlar_poly_si_batch_j035")?1:2});var BaN;var I_=function(){return _.M.apply(this,arguments)||this};
_.t(I_,_.M);I_.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"}}}}};
I_.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(V){if(this.hasPlaybackProgressBar)return{percentDurationWatched:V.percentDurationWatched}};
I_.prototype.computeHasPlaybackProgressBar=function(V){return!!V.percentDurationWatched&&V.percentDurationWatched>0};
var HB=I_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],HB.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.a("design:type",Boolean)],HB.prototype,"hasPlaybackProgressBar",void 0);
HB=_.O([_.A({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],HB);
_.u(HB,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(BaN!==void 0)return BaN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return BaN=V},{mode:1});var xja;_.m5($dT);var UjN=_.W1(function(V){var l=V.data;var I=V.children;var H=function(){return!!l().doubleStack};
return _.Y("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!l().experimentEnabled}},_.Y(_.NS,{cond:l,
then:function(){return _.Y("div",null,_.Y(_.NS,{cond:H,then:function(){var T={};return _.Y("div",{class:_.ii("collections-stack-wiz__collection-stack2",function(){return l().customClassName2ndStack},(T["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return l().enableResponsiveMode},T)),
style:_.na({"background-color":function(){return Ud1(l())}})})}}),_.Y("div",{class:_.ii("collections-stack-wiz__collection-stack1",function(){return l().customClassName1stStack},function(){return n2t(l().thumbnailSize?l().thumbnailSize:"medium")}),
style:_.na({"background-color":function(){return Ud1(l())}})}),I)}}))},"I");_.MR(UjN,"yt-collections-stack",{props:{data:_.b9}});var nWJ=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};V.webModernCollections=!1;V.isSearch=!1;V.isDoubleStack=!1;V.thumbnailSize="medium";V.enableWebModernCollectionsV2=_.z("web_modern_collections_v2");return V};
_.t(nWJ,_.M);_.B=nWJ.prototype;
_.B.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]]"}}}}}};
_.B.getThumbnailDetails=function(V){if(V!=null&&V.thumbnailRenderer){var l=V.thumbnailRenderer,I;if((I=l.playlistVideoThumbnailRenderer)==null?0:I.thumbnail)return l.playlistVideoThumbnailRenderer.thumbnail;var H;if((H=l.playlistCustomThumbnailRenderer)==null?0:H.thumbnail)return l.playlistCustomThumbnailRenderer.thumbnail;V=V.thumbnailRenderer;var T;if((T=V.showCustomThumbnailRenderer)==null?0:T.thumbnail)return V.showCustomThumbnailRenderer.thumbnail}};
_.B.computeOverlayColor=function(V){var l,I;if((l=this.getThumbnailDetails(V))==null?0:(I=l.darkColorPalette)==null?0:I.section2Color)return this.getThumbnailDetails(V).darkColorPalette.section2Color;var H;return(H=this.getThumbnailDetails(V))==null?void 0:H.sampledThumbnailColor};
_.B.computeWebModernCollections=function(V){if(V==null||!V.thumbnailOverlays)return!1;V=_.U(V.thumbnailOverlays);for(var l=V.next();!l.done;l=V.next()){var I=void 0;if((I=l.value)==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.B.computeNavigationEndpoint=function(V){return ZiN(V==null?void 0:V.navigationEndpoint)};
_.vI.Object.defineProperties(nWJ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var V=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:V==null?void 0:V.sampledThumbnailColor,vibrantColorPalette:V==null?void 0:V.vibrantColorPalette,darkColorPalette:V==null?void 0:V.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
var Tx=nWJ;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Tx.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(qco),_.a("design:type",Object)],Tx.prototype,"ytdThumbnailBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Tx.prototype,"componentBehavior",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],Tx.prototype,"watchFeedThumbnail",void 0);_.O([_.q(),_.a("design:type",Number)],Tx.prototype,"customThumbnailSize",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],Tx.prototype,"hideAria",void 0);_.O([_.q(),_.a("design:type",Object)],Tx.prototype,"data",void 0);_.O([_.q({computed:"computeOverlayColor(data)"}),_.a("design:type",Object)],Tx.prototype,"overlayColor",void 0);
_.O([_.q({computed:"computeWebModernCollections(data)"}),_.a("design:type",Object)],Tx.prototype,"webModernCollections",void 0);_.O([_.q({computed:"computeNavigationEndpoint(data)"}),_.a("design:type",Object)],Tx.prototype,"computedNavigationEndpoint",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Tx.prototype,"isSearch",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Tx.prototype,"isDoubleStack",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],Tx.prototype,"thumbnailSize",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Tx.prototype,"enableWebModernCollectionsV2",void 0);_.O([_.Q("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.a("design:type",Object),_.a("design:paramtypes",[])],Tx.prototype,"collectionStack",null);Tx=_.O([_.A({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Tx);
_.u(Tx,"ytd-playlist-thumbnail",function(){if(xja!==void 0)return xja;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return xja=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var $jw;var djb=function(){var V=_.M.apply(this,arguments)||this;V.noEndpoints=!1;V.amsterdamPostMvp=_.z("web_amsterdam_post_mvp_playlists");V.badges=[];V.transferState="TRANSFER_STATE_UNKNOWN";return V};
_.t(djb,_.M);_.B=djb.prototype;_.B.getMetadata=function(V){if(!V)return[];var l=[],I=V.shortViewCountText||V.viewCountText;I&&l.push(_.A5(I));V.publishedTimeText&&l.push(_.A5(V.publishedTimeText));V.upcomingEventData&&V.upcomingEventData.upcomingEventText&&l.push(_.Zb(_.A5(V.upcomingEventData.upcomingEventText),Number(V.upcomingEventData.startTime)));return l};
_.B.observeDataForBylineSeparator=function(){this.data&&_.fY(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.B.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.tv(this.metadataColor)};
_.B.getSimpleString=function(V){return _.A5(V)};
_.B.isBylineHidden=function(V){return this.noByline||!((V==null?0:V.longBylineText)||(V==null?0:V.shortBylineText))};
_.B.isMetadataHidden=function(V){var l;return((l=this.getMetadata(V))==null?void 0:l.length)===0};
_.B.isBylineMetadataSeparatorHidden=function(V){return this.isMetadataHidden(V)||!this.shouldShowVideoInfo};
_.B.isLongByline=function(V,l){return l&&!(V==null||!V.longBylineText)};
_.vI.Object.defineProperties(djb.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var V;return this.amsterdamPostMvp&&!((V=this.data)==null||!V.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 _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
var BB=djb;BB.prototype.metadataColorChanged=BB.prototype.metadataColorChanged;BB.prototype.observeDataForBylineSeparator=BB.prototype.observeDataForBylineSeparator;_.O([_.R(_.DS),_.a("design:type",Object)],BB.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],BB.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],BB.prototype,"noEndpoints",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],BB.prototype,"isSlimShort",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],BB.prototype,"radioMeta",void 0);_.O([_.q({selector:_.SM}),_.a("design:type",Object)],BB.prototype,"isGridViewEnabled",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],BB.prototype,"richMeta",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],BB.prototype,"amsterdamPostMvp",void 0);_.O([_.q(),_.a("design:type",Boolean)],BB.prototype,"noByline",void 0);
_.O([_.q({computed:"isLongByline(data, radioMeta)"}),_.a("design:type",Boolean)],BB.prototype,"longByline",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],BB.prototype,"truncateMetadataLine",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],BB.prototype,"miniMode",void 0);_.O([_.q(),_.a("design:type",Number)],BB.prototype,"metadataColor",void 0);_.O([_.q(),_.a("design:type",Array)],BB.prototype,"badges",void 0);
_.O([_.q({selector:_.Dw,selectorArgs:["data.videoId"]}),_.a("design:type",String)],BB.prototype,"transferState",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],BB.prototype,"isDownloading",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],BB.prototype,"typographyBump",void 0);_.O([_.Ij("#metadata-line"),_.a("design:type",HTMLElement)],BB.prototype,"metadataLine",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BB.prototype,"observeDataForBylineSeparator",null);_.O([_.b("metadataColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BB.prototype,"metadataColorChanged",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],BB.prototype,"shouldShowVideoInfo",null);
_.O([_.Q("badges"),_.a("design:type",String),_.a("design:paramtypes",[])],BB.prototype,"inlineBadgeClass",null);_.O([_.Q("longByline"),_.a("design:type",String),_.a("design:paramtypes",[])],BB.prototype,"longBylineClass",null);_.O([_.Q("data","longByline"),_.a("design:type",Object),_.a("design:paramtypes",[])],BB.prototype,"bylineText",null);_.O([_.Q("isGridViewEnabled","data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BB.prototype,"watchFeedBigThumbs",null);
BB=_.O([_.A({is:"ytd-video-meta-block",disableElementRegistration:!0})],BB);
_.u(BB,"ytd-video-meta-block",function(){if($jw!==void 0)return $jw;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return $jw=V},{mode:_.Cm("kevlar_poly_si_batch_j080")?1:2});_.yN("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var w8i=function(){var V=_.M.apply(this,arguments)||this;V.displayItemCount=2;V.isBackstagePlaylist=!1;V.isPostCompactPlaylist=!1;V.shouldShowChannelThumbnail=!1;V.useModernCollectionsV2=_.z("web_modern_collections_v2");return V};
_.t(w8i,_.M);_.B=w8i.prototype;_.B.computeFirstVideos=function(V,l){return V===void 0||l===void 0?[]:V.slice(0,l)};
_.B.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var V=this.data.thumbnailRenderer;V.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",V.playlistVideoThumbnailRenderer.thumbnail);V.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",V.playlistCustomThumbnailRenderer.thumbnail)}};
_.B.computeThumbnailHeight=function(V,l,I,H,T){return H?T==="BIG"?280:T==="MASSIVE"?337:234:I?240:l?72:V?118:138};
_.B.computeThumbnailWidth=function(V,l,I,H,T){return H?T==="MEDIUM"?450:T==="BIG"?500:T==="MASSIVE"?600:420:I?360:l?128:V?210:246};
_.B.computeUseBiggerThumbs=function(V){return V&&_.z("enable_desktop_search_bigger_thumbs")};
_.B.computeShouldShowChannelThumbnail=function(V,l){return V&&!(l==null||!l.channelThumbnail)};
_.vI.Object.defineProperties(w8i.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
var xQ=w8i;xQ.prototype.dataChanged=xQ.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],xQ.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],xQ.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],xQ.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],xQ.prototype,"displayItemCount",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xQ.prototype,"isBackstagePlaylist",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xQ.prototype,"isPostCompactPlaylist",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],xQ.prototype,"isSearch",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.a("design:type",Boolean)],xQ.prototype,"useBiggerThumbs",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.m_("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],xQ.prototype,"biggerThumbsStyle",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],xQ.prototype,"isDownloads",void 0);_.O([_.q({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.a("design:type",Object)],xQ.prototype,"shouldShowChannelThumbnail",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xQ.prototype,"useModernCollectionsV2",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xQ.prototype,"dataChanged",null);_.O([_.Q("isSearch"),_.a("design:type",String),_.a("design:paramtypes",[])],xQ.prototype,"stackThumbnailSize",null);xQ=_.O([_.A({is:"ytd-playlist-renderer",disableElementRegistration:!0})],xQ);
_.u(xQ,"ytd-playlist-renderer",function(){if(DdW===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);DdW=V}V=DdW;return V},{mode:1});var NaE;var KXw;var U5=function(){var V=_.M.apply(this,arguments)||this;V.collections=!!_.z("web_modern_collections_v2");V.startX=0;return V};
_.t(U5,_.M);U5.prototype.onEndpointMouseDown=function(V){this.startX=V.clientX};
U5.prototype.onEndpointClick=function(V){this.startX!==V.clientX&&(V.preventDefault(),V.stopPropagation())};
U5.prototype.computeObjectFit=function(V){return V==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||V==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||V==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
U5.prototype.computeCardStyle=function(V){return V?V.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.vI.Object.defineProperties(U5.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var V,l;return this.collections&&((V=this.data)==null?void 0:(l=V.searchRefinementCardRendererStyle)==null?void 0:l.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
var nw=U5;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],nw.prototype,"data",void 0);_.O([_.q({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.a("design:type",Number)],nw.prototype,"objectFit",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.a("design:type",String)],nw.prototype,"cardStyle",void 0);
_.O([_.q({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],nw.prototype,"roundContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],nw.prototype,"collections",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],nw.prototype,"isAlbumCard",null);_.O([_.Q("data","collections","isAlbumCard"),_.a("design:type",Object),_.a("design:paramtypes",[])],nw.prototype,"collectionStack",null);
nw=_.O([_.A({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],nw);
_.u(nw,"ytd-search-refinement-card-renderer",function(){if(KXw!==void 0)return KXw;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return KXw=V},{mode:1});var jfN;var Yia=function(){var V=_.M.apply(this,arguments)||this;V.isRichGrid=!1;return V};
_.t(Yia,_.M);var $Q=Yia;_.O([_.q(),_.a("design:type",Object)],$Q.prototype,"data",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],$Q.prototype,"componentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],$Q.prototype,"ytdReduxBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$Q.prototype,"isRichGrid",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],$Q.prototype,"miniMode",void 0);
$Q=_.O([_.A({is:"ytd-game-details-renderer",disableElementRegistration:!0})],$Q);
_.u($Q,"ytd-game-details-renderer",function(){if(jfN!==void 0)return jfN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return jfN=V},{mode:1});var LXb;var eya;var k7b=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return V};
_.t(k7b,_.M);_.B=k7b.prototype;_.B.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.B.currentStateData=function(V){var l=V||this.data;return l&&l.states&&l.currentStateId!=null?l.states.find(function(I){return I.stateId===l.currentStateId})||null:null};
_.B.currentStateRendererData=function(V){return(V=this.currentStateData(V))&&V.state&&V.state.buttonRenderer?V.state.buttonRenderer:null};
_.B.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())};
_.B.computeButtonIcon=function(V){V=this.currentStateRendererData(V);var l;return(V==null?0:(l=V.icon)==null?0:l.iconType)?V.icon.iconType.toLowerCase():null};
_.B.computeAccessibility=function(V){return(V=this.currentStateRendererData(V))&&V.accessibilityData?V.accessibilityData.accessibilityData||null:null};
_.B.computeButtonClass=function(V){var l=this.currentStateRendererData(V);if(!l)return"";V="";var I=l.style;I&&(V+=I.toLowerCase().replace(/_/g,"-")+" ");(l=l.size)&&(V+=l.toLowerCase().replace(/_/g,"-")+" ");return V.trim()};
_.B.computeServiceEndpoint=function(V){if(!V)return null;var l=V&&V.serviceEndpoint,I=this.get("command.commandMetadata.webCommandMetadata.sendPost",V);return l?l:I&&V.command?V.command:null};
_.B.computeBellMenuItemParams=function(V){var l;V=(l=_.y(V==null?void 0:V.command,_.NJ))==null?void 0:l.commands;if(!V||V.length===0)return null;l=_.y(V[0],_.Ed);var I,H;return(l==null?0:(I=l.popup)==null?0:(H=I.menuPopupRenderer)==null?0:H.items)?l.popup.menuPopupRenderer.items.map(function(T){return T.menuServiceItemRenderer.trackingParams}):null};
_.B.handleBellMenuOpenSelectedAction=function(V){var l=V.trackingParams,I=this.computeBellMenuItemParams(this.data);this.data&&l&&I&&I.includes(l)&&this.ytRenderButtonBehavior._setButtonIcon(V.icon.iconType.toLowerCase())};
_.B.onYtServiceRequestCompleted=function(V,l){(V=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",l))&&this.set("data",V)};
_.B.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.B.resetState=function(){this.set("data.currentStateId",3)};
_.B.onYtButtonTapHandler=function(){if(this.data){var V=this.currentStateRendererData(this.data);V&&this.ytRendererBehavior.logExplicitClick(V)}};
var dM=k7b;dM.prototype.onYtServiceRequestError=dM.prototype.onYtServiceRequestError;dM.prototype.onYtServiceRequestCompleted=dM.prototype.onYtServiceRequestCompleted;dM.prototype.stateChanged=dM.prototype.stateChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],dM.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(we.YtRenderButtonBehavior),_.a("design:type",Object)],dM.prototype,"ytRenderButtonBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],dM.prototype,"data",void 0);_.O([_.xs("data","data.currentStateId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dM.prototype,"stateChanged",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],dM.prototype,"onYtServiceRequestCompleted",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],dM.prototype,"onYtServiceRequestError",null);dM=_.O([_.A({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],dM);
_.u(dM,"ytd-subscription-notification-toggle-button-renderer",function(){if(eya!==void 0)return eya;var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return eya=V},{mode:1});var FXJ;var X8J=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};V.tapHandler=function(){if(V.data){var l=V.currentStateRendererData();l&&V.ytRendererBehavior.logExplicitClick(l)}};
return V};
_.t(X8J,_.M);_.B=X8J.prototype;_.B.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.B.currentStateData=function(){var V=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(l){return l.stateId===V.data.currentStateId})||null:null};
_.B.currentStateRendererData=function(){var V=this.currentStateData();return V&&V.state&&V.state.buttonRenderer?V.state.buttonRenderer:null};
_.B.computeAccessibilityLabel=function(){var V,l,I;return(V=this.currentStateRendererData())==null?void 0:(l=V.accessibilityData)==null?void 0:(I=l.accessibilityData)==null?void 0:I.label};
_.B.computeBellMenuItemParams=function(){var V,l,I=(l=_.y((V=this.data)==null?void 0:V.command,_.NJ))==null?void 0:l.commands;if(!I||I.length===0)return null;V=_.y(I[0],_.Ed);var H,T;return(V==null?0:(H=V.popup)==null?0:(T=H.menuPopupRenderer)==null?0:T.items)?V.popup.menuPopupRenderer.items.map(function(x){return x.menuServiceItemRenderer.trackingParams}):null};
_.B.handleBellMenuOpenSelectedAction=function(V){var l=V.trackingParams,I=this.computeBellMenuItemParams();if(this.data&&l&&I&&I.includes(l)&&(V==null||!V.isDisabled)){var H;((H=_.y(V.serviceEndpoint,_.j1))==null?void 0:H.signal)!=="CLIENT_SIGNAL"&&(this.icon=V.icon.iconType)}};
_.B.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.B.onYtServiceRequestCompleted=function(V,l){if(V=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",l))this.icon=void 0,this.set("data",V)};
_.B.onYtServiceRequestError=function(){this.icon=void 0};
_.vI.Object.defineProperties(X8J.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V=this.data,l=this.textLabel,I=this.hostElement,H=this.computeAccessibilityLabel(),T=this.tapHandler,x=this.isOverlay?"overlay":"mono",n=(V==null?0:V.disableButton)?"disabled":"active";l=l?_.Fo(l):void 0;return{style:x,type:"tonal",state:n,size:"M",focused:!1,formattedButtonText:l,iconPosition:"leading-trailing",onTap:NKN(V,T,I),accessibilityLabel:H}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var V=this.currentStateRendererData(),l,I,H=(I=this.icon)!=null?I:V==null?void 0:(l=V.icon)==null?void 0:l.iconType;if(H)return _.mj(H)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(V=this.data)==null?void 0:(l=V.secondaryIcon)==null?void 0:l.iconType;if(I)return _.mj(I)}}});
var Lw=X8J;Lw.prototype.onYtServiceRequestError=Lw.prototype.onYtServiceRequestError;Lw.prototype.onYtServiceRequestCompleted=Lw.prototype.onYtServiceRequestCompleted;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Lw.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Lw.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],Lw.prototype,"textLabel",void 0);_.O([_.q(),_.a("design:type",String)],Lw.prototype,"icon",void 0);_.O([_.q(),_.a("design:type",Boolean)],Lw.prototype,"isOverlay",void 0);_.O([_.Q("data.*","textLabel"),_.a("design:type",Object),_.a("design:paramtypes",[])],Lw.prototype,"computedButtonShape",null);_.O([_.Q("data.*","icon"),_.a("design:type",Object),_.a("design:paramtypes",[])],Lw.prototype,"computedIcon",null);
_.O([_.Q("data.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],Lw.prototype,"computedSecondaryIcon",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],Lw.prototype,"onYtServiceRequestCompleted",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Lw.prototype,"onYtServiceRequestError",null);
Lw=_.O([_.A({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Lw);_.u(Lw,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(FXJ!==void 0)return FXJ;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return FXJ=V},{mode:_.Cm("kevlar_poly_si_batch_j081")?1:2});var zyv;_.z("web_enable_sink_animated_actions")?_.MR(uh0,"yt-animated-action",{props:{backgroundLottieRef:_.b9,foregroundLottieRef:_.b9,wrapperClass:_.b9,disableAnimation:_.b9},unsafeExternallySettableAttributes:new Set(["key"])}):_.aN(adg,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var ysZ=function(){var V=_.M.apply(this,arguments)||this;V.animatedActionEnabled=_.z("web_animated_actions");V.foregroundLottieRef={};V.backgroundLottieRef={};V.forceIconOnly=!1;V.showTextWhileAnimating=!1;V.keyboardFocused=!1;V.isAnimating=!1;V.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return V};
_.t(ysZ,_.M);_.B=ysZ.prototype;_.B.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.B.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]]"}}}}}};
_.B.attached=function(){this.keyboardFocused=!1};
_.B.onYtServiceRequestSent=function(V,l){(this.get("endpoint.subscribeEndpoint",l)||this.get("endpoint.unsubscribeEndpoint",l))&&this.updateSubscriptionState(!this.subscribed)};
_.B.onYtServiceRequestCompleted=function(V,l){(V=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",l.data))&&this.bellButton&&(this.bellButton.data=V)};
_.B.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.i3(this.hostElement)};
_.B.onPlayerSubscribe=function(V){this.isCompactRed()||V!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.B.onPlayerUnsubscribe=function(V){this.isCompactRed()||V!==this.data.channelId||this.updateSubscriptionState(!1)};
_.B.handleUpdateSubscribeButtonAction=function(V){V=_.y(V,O$q);var l;V&&V.channelId===((l=this.data)==null?void 0:l.channelId)&&this.updateSubscriptionState(!!V.subscribed)};
_.B.computeButtonStyle=function(V){return this.get("style.styleType",V)||null};
_.B.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.B.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.B.updateSubscriptionState=function(V){if(V!==this.subscribed){this.set("data.subscribed",V);var l,I=(l=this.data)==null?void 0:l.subscribedEntityKey;I&&this.ytdReduxBehavior.dispatch(_.K6("subscriptionStateEntity",I,{key:I,subscribed:V}));this.isCompactRed()||_.B$(this.hostElement,"yt-subscription-changed",V);V||(_.xB(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!V),V&&this.hasBellButton&&this.startAnimation())}};
_.B.startAnimation=function(){var V=this;if(!this.isAnimating){this.isAnimating=!0;var l;(l=this.backgroundLottieRef.lottieEl)==null||l.goToAndPlay(0);var I;(I=this.foregroundLottieRef.lottieEl)==null||I.goToAndPlay(0);_.r0.addJob(function(){V.maybeAnimateBellIcon()},2,300);
_.r0.addJob(function(){V.isAnimating=!1},2,1500)}};
_.B.maybeAnimateBellIcon=function(){var V=_.aQ(this.hostElement).querySelector("yt-animated-icon");if(V){var l;(l=V.animationRef.lottieEl)==null||l.goToAndPlay(0)}};
_.B.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.B.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.B.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var V;this.unsubscribedWidth=(V=this.subscribeButtonShape)==null?void 0:V.getBoundingClientRect().width}var l;this.subscribedWidth=(l=this.bellButton)==null?void 0:l.getBoundingClientRect().width}};
_.B.updateContainerToFitContent=function(V){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(this.hostElement.style.width=V?this.subscribedWidth+"px":this.unsubscribedWidth+"px")};
_.B.clearContainerSize=function(){this.hostElement.style.width=""};
_.B.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.vI.Object.defineProperties(ysZ.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 V;return(V=this.data)==null?void 0:V.subscribedButtonText}var l;return this.forceIconOnly?void 0:(l=this.data)==null?void 0:l.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var V,l,I=((V=this.data)==null?void 0:(l=V.timedAnimationData)==null?void 0:l.animationTiming)||[];return{uniqueId:"subscribe",timings:I,enabled:I.length>0&&!this.subscribed,experimentEnabled:I.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var V;return!this.subscribed&&((V=this.data)==null?void 0:V.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 V={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var l=V.renderer;var I=V.element;var H=V.subscribed;var T=V.commandController;var x=V.isOverlay;V=V.config;var n=Lec(l,H);x&&(n.style="overlay");x=Object;var w=x.assign,N;a:switch((N=l.style)==null?void 0:N.styleType){case "COMPACT_GRAY":case "COMPACT_RED":N={size:"S"};break a;default:N={size:"M"}}var L=YDy(l,H);var e=
(e=H?l.subscribedButtonText:l.unsubscribedButtonText)?_.Fo(e):void 0;return w.call(x,{},n,N,{focused:!1,toggled:H,accessibilityLabel:L,formattedButtonText:e,onTap:jFt(l,V,H,I,T)})}}}});
var eA=ysZ;eA.prototype.onMouseDown=eA.prototype.onMouseDown;eA.prototype.onDataChanged=eA.prototype.onDataChanged;eA.prototype.observedSubscribed=eA.prototype.observedSubscribed;eA.prototype.onYtServiceRequestCompleted=eA.prototype.onYtServiceRequestCompleted;eA.prototype.onYtServiceRequestSent=eA.prototype.onYtServiceRequestSent;eA.prototype.maybeUpdateBellButtonText=eA.prototype.maybeUpdateBellButtonText;
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],eA.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],eA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],eA.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],eA.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],eA.prototype,"data",void 0);_.O([_.q({selectorArgs:["data.subscribedEntityKey"],selector:_.V1}),_.a("design:type",Object)],eA.prototype,"subscriptionStateEntity",void 0);_.O([_.q({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.a("design:type",Boolean)],eA.prototype,"subscribed",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],eA.prototype,"branded",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],eA.prototype,"animatedActionEnabled",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],eA.prototype,"foregroundLottieRef",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],eA.prototype,"backgroundLottieRef",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],eA.prototype,"overlayButton",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.a("design:type",Object)],eA.prototype,"buttonStyle",void 0);_.O([_.q(),_.a("design:type",Object)],eA.prototype,"forceIconOnly",void 0);_.O([_.q(),_.a("design:type",Object)],eA.prototype,"showTextWhileAnimating",void 0);_.O([_.q({value:function(){return!!_.F().resolve(_.Cs(_.eM))&&_.z("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.a("design:type",Boolean)],eA.prototype,"useKeyboardFocused",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],eA.prototype,"keyboardFocused",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],eA.prototype,"isAnimating",void 0);_.O([_.Q("data.notificationPreferenceButton.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],eA.prototype,"hasBellButton",null);
_.O([_.b("subscribedButtonText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eA.prototype,"maybeUpdateBellButtonText",null);_.O([_.Q("data.subscribedButtonText","forceIconOnly","isAnimating"),_.a("design:type",Object),_.a("design:paramtypes",[])],eA.prototype,"subscribedButtonText",null);_.O([_.Q("data.timedAnimationData.animationTiming","subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],eA.prototype,"smartimationSettings",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],eA.prototype,"subscribeButtonHidden",null);_.O([_.q({reflectToAttribute:!0}),_.Q("subscribed","hasBellButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],eA.prototype,"subscribeButtonInvisible",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],eA.prototype,"unsubscribeButtonHidden",null);_.O([_.Ij("ytd-subscription-notification-toggle-button-renderer-next"),_.a("design:type",Object)],eA.prototype,"bellButton",void 0);_.O([_.Ij("#subscribe-button-shape"),_.a("design:type",HTMLElement)],eA.prototype,"subscribeButtonShape",void 0);
_.O([_.Q("overlayButton","subscribed","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],eA.prototype,"buttonShape",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],eA.prototype,"onYtServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],eA.prototype,"onYtServiceRequestCompleted",null);
_.O([_.b("subscribed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eA.prototype,"observedSubscribed",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eA.prototype,"onDataChanged",null);_.O([_.W("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],eA.prototype,"onMouseDown",null);
eA=_.O([_.A({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],eA);
_.u(eA,"ytd-subscribe-button-renderer",function(){if(zyv!==void 0)return zyv;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return zyv=V},{mode:1});var tpE=function(){var V=_.M.apply(this,arguments)||this;V.isRichGrid=!1;return V};
_.t(tpE,_.M);tpE.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
var kQ=tpE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],kQ.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],kQ.prototype,"isRichGrid",void 0);kQ=_.O([_.A({is:"ytd-game-card-renderer",disableElementRegistration:!0})],kQ);
_.u(kQ,"ytd-game-card-renderer",function(){if(LXb!==void 0)return LXb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return LXb=V},{mode:1});var F1={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.z("defer_menus")&&!BVo?0:void 0,waitForSignal:"eocs"};var rsN;var G7o;var EWw=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return V};
_.t(EWw,_.M);_.B=EWw.prototype;_.B.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.B.onSeriesReminderStateEntityChange=function(){var V,l,I;((V=this.eventReminderStateEntity)==null?0:V.key)&&((l=this.seriesReminderStateEntity)==null?void 0:l.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((I=this.eventReminderStateEntity)==null?void 0:I.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.K6("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.B.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.B.onYtServiceRequestError=function(){var V;this.updateReminderStateEntitiesFromButtonState((V=this.data)==null?void 0:V.currentState)};
_.B.handleUpdateUpcomingEventReminderButtonStateCommand=function(V){if(V=_.y(V,Gso)){var l,I=(l=this.data)==null?void 0:l.targetId;I&&V.targetId===I&&_.r_(this.updateReminderStateEntitiesFromButtonState.bind(this,V.state))}};
_.B.getButtonStateFromReminderState=function(){var V;if(((V=this.seriesReminderStateEntity)==null?void 0:V.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var l;if(((l=this.eventReminderStateEntity)==null?void 0:l.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var I,H;if(((I=this.seriesReminderStateEntity)==null?void 0:I.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((H=this.eventReminderStateEntity)==
null?void 0:H.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var T;return(T=this.data)==null?void 0:T.currentState};
_.B.updateReminderStateEntitiesFromButtonState=function(V){if(V){switch(V){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":V="UPCOMING_EVENT_REMINDER_STATE_NONE";var l="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":V="UPCOMING_EVENT_REMINDER_STATE_SINGLE";l="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":V="UPCOMING_EVENT_REMINDER_STATE_NONE";l="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var I;
((I=this.eventReminderStateEntity)==null?0:I.key)&&this.ytdReduxBehavior.dispatch(_.K6("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:V})));var H;((H=this.seriesReminderStateEntity)==null?0:H.key)&&this.ytdReduxBehavior.dispatch(_.K6("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:l})))}};
_.vI.Object.defineProperties(EWw.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var V=this.getButtonStateFromReminderState(),l,I;if(V&&((l=this.data)==null?0:(I=l.states)==null?0:I.length))for(l=_.U(this.data.states),I=l.next();!I.done;I=l.next()){I=I.value;var H=void 0;if(((H=_.y(I,EgE))==null?void 0:H.state)===V)return _.y(I,EgE)}}}});
var X1=EWw;X1.prototype.onYtServiceRequestError=X1.prototype.onYtServiceRequestError;X1.prototype.onYtServiceRequestCompleted=X1.prototype.onYtServiceRequestCompleted;X1.prototype.onSeriesReminderStateEntityChange=X1.prototype.onSeriesReminderStateEntityChange;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],X1.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],X1.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],X1.prototype,"data",void 0);_.O([_.q({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:rac}),_.a("design:type",Object)],X1.prototype,"eventReminderStateEntity",void 0);
_.O([_.q({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(V,l){return _.nW(V.entities,"sportsSeriesReminderStateEntity",l)}}),
_.a("design:type",Object)],X1.prototype,"seriesReminderStateEntity",void 0);_.O([_.Q("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],X1.prototype,"currentButtonStateRenderer",null);_.O([_.b("seriesReminderStateEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X1.prototype,"onSeriesReminderStateEntityChange",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X1.prototype,"onYtServiceRequestCompleted",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X1.prototype,"onYtServiceRequestError",null);X1=_.O([_.A({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],X1);
_.u(X1,"ytd-upcoming-event-reminder-button-renderer",function(){if(G7o!==void 0)return G7o;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return G7o=V},{mode:1});var Jsa;var oWJ=function(){return _.M.apply(this,arguments)||this};
_.t(oWJ,_.M);oWJ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.vI.Object.defineProperties(oWJ.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(_.z("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
var zx=oWJ;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zx.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],zx.prototype,"shelfDismissal",void 0);
_.O([_.Q("data.responseText"),_.a("design:type",Object),_.a("design:paramtypes",[])],zx.prototype,"text",null);_.O([_.Q("data.responseText"),_.a("design:type",Object),_.a("design:paramtypes",[])],zx.prototype,"textAriaLabel",null);zx=_.O([_.A({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],zx);
_.u(zx,"ytd-notification-multi-action-renderer",function(){if(Jsa!==void 0)return Jsa;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Jsa=V},{mode:1});var hyB;var PCJ=function(){return _.M.apply(this,arguments)||this};
_.t(PCJ,_.M);PCJ.prototype.ready=function(){var V=this;_.h(this.hostElement).querySelector("#undo").addEventListener("tap",function(){V.onUndoTap()})};
PCJ.prototype.onUndoTap=function(){this.data.undoEndpoint&&(_.z("web_ytd_notification_text_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.undoEndpoint]):_.F().resolve(_.aw).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}}))};
var yL=PCJ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yL.prototype,"data",void 0);yL=_.O([_.A({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],yL);
_.u(yL,"ytd-notification-text-renderer",function(){if(hyB!==void 0)return hyB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return hyB=V},{mode:1});var DjJ;var ZJN=function(){var V=_.M.apply(this,arguments)||this;V.mouseOverDelayJobId=0;V.fadeInImageDelayJobId=0;V.startTimeMs=-1;V.loadingStartTimeMs=-1;V.loadingEndTimeMs=-1;V.hasVideoPreview=!1;return V};
_.t(ZJN,_.M);_.B=ZJN.prototype;_.B.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.B.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.B.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.B.showThumbnail=function(){var V=this;this.csn=_.oa();_.S1("fmth");_.r0.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.vX(_.r0,function(){V.loadingStartTimeMs=(0,_.O_)();var l=_.h(V.hostElement).querySelector("#thumbnail");l.complete?V.displayMouseOverImage():l.addEventListener("load",_.VP(V,V.displayMouseOverImage))},150):_.fY(_.h(this.hostElement).querySelector("#play"),"show",!0)};
_.B.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.B.onTap=function(){this.removeVideoPreview()};
_.B.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var V=this.videoId,l=this.csn,I=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,H=this.startTimeMs,T=this.hasVideoPreview,x=_.dj(this.trackingParams),n={isMovingThumbnail:T};T&&H>0&&(I>0&&(n.movingThumbnailLoadingDurationMs=Math.round(I)),n.durationHoveredMs=Math.round((0,_.O_)()-H));V&&(n.videoId=V);_.v$(l,x,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:n});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.B.removeVideoPreview=function(){_.r0.cancelJob(this.mouseOverDelayJobId);_.r0.cancelJob(this.fadeInImageDelayJobId);var V=_.h(this.hostElement).querySelector("#thumbnail");_.fY(V,"fade-in",!1);V.removeEventListener("load",_.VP(this,this.displayMouseOverImage));V=_.h(this.hostElement).querySelector("#play");_.fY(V,"fade-in",!1);_.fY(V,"show",!1)};
_.B.displayMouseOverImage=function(){var V=_.h(this.hostElement).querySelector("#thumbnail"),l=_.h(this.hostElement).querySelector("#play");this.isImageAvailable(V)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.O_)(),this.startTimeMs=(0,_.O_)(),this.fadeInImageDelayJobId=_.vX(_.r0,function(){_.fY(V,"fade-in",!0)},50)):_.fY(l,"fade-in",!0)};
_.B.computeThumbnail=function(V,l){var I;V&&V.movingThumbnailDetails&&V.movingThumbnailDetails.thumbnails&&l?I=_.sI(V.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):I=l?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(I)return _.S6(I)};
_.B.isImageAvailable=function(V){return!(!V.src||V.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||V.naturalWidth===120)};
var tD=ZJN;tD.prototype.onTap=tD.prototype.onTap;tD.prototype.dataChanged=tD.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],tD.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tD.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],tD.prototype,"csn",void 0);
_.O([_.q(),_.a("design:type",Object)],tD.prototype,"trackingParams",void 0);_.O([_.q(),_.a("design:type",String)],tD.prototype,"videoId",void 0);_.O([_.q(),_.a("design:type",Boolean)],tD.prototype,"isAttachedAndDataSet",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tD.prototype,"dataChanged",null);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tD.prototype,"onTap",null);
tD=_.O([_.A({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],tD);
_.u(tD,"ytd-moving-thumbnail-renderer",function(){if(DjJ!==void 0)return DjJ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return DjJ=V},{mode:1});var Si0;_.Ll=function(V){this.hostElement=V;this.eventSink=null;this.eventList=[]};
_.Ll.prototype.shouldForward=function(){var V,l;return(l=(V=this.eventSink)==null?void 0:V.isConnected)!=null?l:document.body.contains(this.eventSink)};
_.Ll.prototype.start=function(V,l){this.eventSink&&this.stop();for(var I=0;I<V.length;I++)this.hostElement.addEventListener(V[I],_.VP(this,this.forwardEvent));var H;this.eventSink=(H=l.hostElement)!=null?H:l;this.eventList=V};
_.Ll.prototype.stop=function(){for(var V=0;V<this.eventList.length;V++)this.hostElement.removeEventListener(this.eventList[V],_.VP(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Ll.prototype.forwardEvent=function(V,l){this.shouldForward()&&(V.stopPropagation(),this.eventSink instanceof Element?_.B$(this.eventSink,V.type,l):_.hF(new _.Yd("eventSink is not an element")))};_.rM={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Ll(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(V,l){this.forwarder_.start(V,l)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var RyB=function(){return _.M.apply(this,arguments)||this};
_.t(RyB,_.M);_.B=RyB.prototype;_.B.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=_.h6("HTML_DIR")==="rtl"?"right":"left"};
_.B.dataChanged=function(){this.popupOpen=!1};
_.B.computeAriaLabel=function(V){return _.y(V,fNJ).label};
_.B.onTap=function(V){V.stopPropagation();V.preventDefault();this.data.command&&(_.z("web_ytd_thumbnail_overlay_button_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.command]):_.F().resolve(_.aw).resolveCommand(this.data.command,{form:{element:this.hostElement}}))};
_.B.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.B.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
var Gx=RyB;Gx.prototype.onPopupClosed=Gx.prototype.onPopupClosed;Gx.prototype.onPopupOpened=Gx.prototype.onPopupOpened;Gx.prototype.onTap=Gx.prototype.onTap;Gx.prototype.dataChanged=Gx.prototype.dataChanged;_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],Gx.prototype,"eventForwardingBehavior",void 0);_.O([_.R(_.Sq),_.a("design:type",Object)],Gx.prototype,"ironButtonState",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Gx.prototype,"componentBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],Gx.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:-1}),_.a("design:type",Number)],Gx.prototype,"tabindex",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.a("design:type",Object)],Gx.prototype,"ariaLabel",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Gx.prototype,"disableTooltips",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Gx.prototype,"popupOpen",void 0);
_.O([_.q(),_.a("design:type",Element)],Gx.prototype,"eventSink",void 0);_.O([_.Ij("#tooltip"),_.a("design:type",Object)],Gx.prototype,"tooltip",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gx.prototype,"dataChanged",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Gx.prototype,"onTap",null);
_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gx.prototype,"onPopupOpened",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gx.prototype,"onPopupClosed",null);Gx=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Gx);
_.u(Gx,"ytd-thumbnail-overlay-button-renderer",function(){if(Si0!==void 0)return Si0;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Si0=V},{mode:1});var Qfv;var csb=function(){return _.M.apply(this,arguments)||this};
_.t(csb,_.M);var E5=csb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],E5.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],E5.prototype,"disableAnimation",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],E5.prototype,"rounded",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],E5.prototype,"transparentBackground",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],E5.prototype,"noPadding",void 0);E5=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],E5);
_.u(E5,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(Qfv!==void 0)return Qfv;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Qfv=V},{mode:1});var WX0;var JD=function(){return _.M.apply(this,arguments)||this};
_.t(JD,_.M);JD.prototype.computeIconPosition=function(V){return this.get("iconPosition",V)||null};
JD.prototype.computeIconStyle=function(V){return this.get("iconStyle",V)||null};
JD.prototype.computeIsIconStyleFilled=function(V){if(!V)return!1;var l;return V.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((l=V.icon)==null?void 0:l.iconType)==="ERROR_BLACK"};
var o_=JD;_.O([_.q(),_.a("design:type",Object)],o_.prototype,"data",void 0);_.O([_.q({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.a("design:type",Object)],o_.prototype,"iconPosition",void 0);_.O([_.q({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.a("design:type",Object)],o_.prototype,"iconStyle",void 0);_.O([_.q({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],o_.prototype,"iconStyleFilled",void 0);
o_=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],o_);
_.u(o_,"ytd-thumbnail-overlay-icon-renderer",function(){if(WX0!==void 0)return WX0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return WX0=V},{mode:1});var bJa;var qiZ=function(){return _.M.apply(this,arguments)||this};
_.t(qiZ,_.M);var hD=qiZ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],hD.prototype,"data",void 0);hD=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],hD);
_.u(hD,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(bJa!==void 0)return bJa;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return bJa=V},{mode:1});var Mpi;var sfJ=function(){var V=_.M.apply(this,arguments)||this;V.isPreviewLoading=!1;return V};
_.t(sfJ,_.M);var PB=sfJ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],PB.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],PB.prototype,"isPreviewLoading",void 0);PB=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],PB);
_.u(PB,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Mpi!==void 0)return Mpi;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Mpi=V},{mode:1});var p8N;var Aso=function(){return _.M.apply(this,arguments)||this};
_.t(Aso,_.M);var D5=Aso;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],D5.prototype,"data",void 0);D5=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],D5);
_.u(D5,"ytd-thumbnail-overlay-pinking-renderer",function(){if(p8N!==void 0)return p8N;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return p8N=V},{mode:1});var uqZ;var vWv=function(){var V=_.M.apply(this,arguments)||this;V.disableTooltips=!1;V.isLoading=!1;V.useExpandableTooltip=!1;V.toggled=!1;V.hovered=!1;V.mouseoverDelayJobId=0;V.toggleDelayJobId=0;V.expandAnimationDelayJobId=0;return V};
_.t(vWv,_.M);_.B=vWv.prototype;_.B.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");_.h(this.hostElement).querySelector("#tooltip").position=_.h6("HTML_DIR")==="rtl"?"right":"left"};
_.B.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.r0.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.r0.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.r0.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.B.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.r0.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.r0.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.r0.cancelJob(this.expandAnimationDelayJobId)};
_.B.computeIcon=function(V,l,I){return(V=I?l:V)&&V.iconType?_.mj(V.iconType):void 0};
_.B.computeAriaLabel=function(V,l,I){return _.y(I?l:V,fNJ).label};
_.B.computeTooltip=function(V,l,I){return I?l:V};
_.B.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.B.computeIconOnHover=function(V,l){if((V==null?0:V.iconType)&&!l)return _.mj(V.iconType)};
_.B.onTap=function(V){var l=this;V.stopPropagation();V.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(V=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(V),this.useExpandableTooltip&&(this.toggleDelayJobId=_.vX(_.r0,function(){l.hovered=!1;l.data&&!l.data.toggledServiceEndpoint&&(l.expandAnimationDelayJobId=_.vX(_.r0,function(){l.set("data.isToggled",
!1)},200))},2E3))};
_.B.onMouseenter=function(){var V=this;this.mouseoverDelayJobId=_.vX(_.r0,function(){V.hovered=!0},300)};
_.B.onMouseleave=function(){_.r0.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.B.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.B.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.B.onServiceRequestCompleted=function(V,l){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(l)||this.set("data.isToggled",!this.data.isToggled)};
_.B.serviceRequestWasSuccessful=function(V){return _.y(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.D0)?V.data.status==="STATUS_SUCCEEDED":!0};
var Z5=vWv;Z5.prototype.onServiceRequestCompleted=Z5.prototype.onServiceRequestCompleted;Z5.prototype.onPopupClosed=Z5.prototype.onPopupClosed;Z5.prototype.onPopupOpened=Z5.prototype.onPopupOpened;Z5.prototype.onMouseleave=Z5.prototype.onMouseleave;Z5.prototype.dataChanged=Z5.prototype.dataChanged;_.O([_.R(_.Sq),_.a("design:type",Object)],Z5.prototype,"ironButtonState",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Z5.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],Z5.prototype,"ytEventForwardingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Z5.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.a("design:type",Object)],Z5.prototype,"ariaLabel",void 0);_.O([_.q(),_.a("design:type",Object)],Z5.prototype,"disableTooltips",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Z5.prototype,"popupOpen",void 0);_.O([_.q(),_.a("design:type",Object)],Z5.prototype,"isLoading",void 0);_.O([_.q(),_.a("design:type",Element)],Z5.prototype,"eventSink",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Z5.prototype,"useExpandableTooltip",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.a("design:type",Object)],Z5.prototype,"toggled",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Z5.prototype,"hovered",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.a("design:type",Object)],Z5.prototype,"iconOnHover",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Z5.prototype,"dataChanged",null);
_.O([_.W("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Z5.prototype,"onMouseleave",null);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Z5.prototype,"onPopupOpened",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Z5.prototype,"onPopupClosed",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],Z5.prototype,"onServiceRequestCompleted",null);Z5=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Z5);
_.u(Z5,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(uqZ!==void 0)return uqZ;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return uqZ=V},{mode:_.Cm("kevlar_poly_si_batch_j053")?1:2});var OJJ;var CC3=_.W1(function(V){var l=V.data;var I=function(){return l().enableSegmentView};
return _.Y("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.Y(_.NS,{cond:I,then:function(){return _.Y("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.Y("div",{class:_.l8("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+l().startPercent+"%"}}),_.Y("div",{class:_.l8("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+l().segmentDurationPercent+"%"}},_.Y("div",{class:_.l8("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.Y("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.Y("div",null," ",function(){return l().segmentLabel})),_.Y("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.Y("div",{class:_.l8("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.Y(_.NS,{cond:function(){return!I()&&l().startPercent},
then:function(){var H={};return _.Y("div",{class:_.l8("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(H.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.z("web_enable_modern_progress_bar_overlay"),H))},_.Y("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+l().startPercent+"%"}}))}}))},"J");
CC3.idomCompat=!0;var a_a=_.W1(function(V){var l=_.HK(),I=_.rq(function(T){var x,n,w;a:{var N=(x=V.data())==null?void 0:x.animationActivationTargetId;x=((n=V.data())==null?void 0:n.animationActivationEntityKey)||"";n=(w=V.data())==null?void 0:w.animationActivationEntitySelectorType;if(x&&N)switch(n){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":T=_.nW(T.entities,"playerStateEntity",x);w=_.F().resolve(_.Cs(_.sH));N=!!(T&&T.videoId===N&&(w==null?0:w.isMiniplayerActive()));N={activated:N,playAnimation:N&&
T.playerState==="PLAYER_STATE_PLAYING"};break a}N=void 0}return N});
_.t0(function(){var T;if((T=I())==null?0:T.activated){var x;if((x=I())==null?0:x.playAnimation){var n;(n=l.lottieEl)==null||n.goToAndPlay(0)}else{var w;(w=l.lottieEl)==null||w.goToAndStop(0)}}});
var H=function(){var T,x=!((T=I())==null||!T.activated);if(V.data()){T=V.data();var n=void 0;T.icon&&(n=$Wg(T.icon),n=LI1(n));var w=void 0,N;if((N=T.backgroundColor)==null?0:N.lightTheme){var L;w={backgroundColor:GR((L=T.backgroundColor)==null?void 0:L.lightTheme,"0.8")}}if(T.text||n||x){if(x&&T.lottieData&&l){L=T.lottieData;var e,k,X;N={animationConfig:{name:L.url,path:L.url,autoplay:(e=L.settings)==null?void 0:e.autoplay,loop:(X=(k=L.settings)==null?void 0:k.loop)!=null?X:!0},animationRef:l}}else N=
void 0;if(x)e=16;else b:switch(T.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":e=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":e=18;break b;default:e=16}x={type:e,text:x&&T.animatedText?T.animatedText:T.text,icon:n,customColors:w,animation:N}}else x=void 0}else x=void 0;return x};
return _.Y("yt-thumbnail-badge-view-model",{class:_.ii("yt-thumbnail-badge-view-model-wiz",V.class)},_.Y(_.NS,{cond:H,then:function(){return _.Y(_.mw,{data:function(){return H()}})}}))},"K");var f_Z=_.W1(function(V){var l={};return _.Y("yt-thumbnail-bottom-overlay-view-model",{class:_.ii("ytThumbnailBottomOverlayViewModelHost",(l.ytThumbnailBottomOverlayViewModelHostBackground=function(){return V.data().enableGradientBackground},l))},_.Y("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.Y(_.rw,{data:function(){return V.data().progressBar}},{thumbnailOverlayProgressBarViewModel:CC3}),_.Y(_.rw,{data:function(){return V.data().badge}},{thumbnailBadgeViewModel:function(I){return _.Y(a_a,
{data:I.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.Y(_.rw,{data:function(){return V.data().badges}},{thumbnailBadgeViewModel:function(I){return _.Y(a_a,{data:I.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"L");
f_Z.idomCompat=!0;_.MR(f_Z,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.qR}});var E2c={calledOnce:!1,state:"visible"},Jgt={calledOnce:!1,state:"hidden"};_.m5(Pmc);var gWZ=_.W1(function(V){var l=V.data;var I=V.className;V=V.alwaysShow;var H=_.sZ();_.A9(H,function(){return l().rendererContext});
var T=_.kgw(),x={};return _.Y("thumbnail-hover-overlay-view-model",{el:H,class:_.ii("ytThumbnailHoverOverlayViewModelHost",I,(x.ytThumbnailHoverOverlayViewModelHostForceHover=V,x)),"aria-label":function(){var n;return(n=_.y(l().rendererContext,_.uP))==null?void 0:n.label},
role:function(){return _.M7(l().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.M7(l().rendererContext)!==void 0?0:void 0},
"on:keypress":T},_.Y("div",{class:_.ii("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(l().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var n="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:n="ytThumbnailHoverOverlayViewModelStyleCover"}return n})},_.Y(_.NS,{cond:function(){return l().icon},
then:function(n){return _.Y(_.cX,{data:n,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.Y(_.NS,{cond:function(){return l().text},
then:function(n){return _.Y(_.Ni,{text:n,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"M"),mjZ=_.z("web_enable_sink_lockups_batch")?gWZ:Pmc,iJi=_.z("web_enable_sink_lockups_batch")?gWZ:_.I2(Pmc);
gWZ.idomCompat=!0;var OB=_.W1(function(V){var l=V.data;return _.Y(_.rw,{data:function(){return l==null?void 0:l().overlays}},{thumbnailHoverOverlayViewModel:iJi})},"N");
OB.idomCompat=!0;var VIa={};var vK=_.W1(function(V){var l=V.data;var I=V.image;var H=V.state;var T=V.iconType;var x=V.overlays;var n=V.isOverlay;var w=_.pO();V=_.U(_.xi(!0,void 0,"xOB8yb"));var N=V.next().value,L=V.next().value,e=_.S5(T,"LIVE");_.XW(function(){requestAnimationFrame(function(){var X=l().size;var r=l().badgeText;if(w.value===null)r=!0;else{var E=Dd3(X);r in VIa?X=VIa[r]:(X=w.value.clientWidth,VIa[r]=X);(r=X>E)?w.value.style.display="none":w.value.style.visibility="visible"}L(r)})});
var k=function(){var X={};return X["yt-spec-avatar-shape__image"]=!0,X["yt-spec-avatar-shape__image--ads-app"]=l().type===1,X};
T=_.Bu(function(X){var r,E;return void((E=(r=l()).onTap)==null?void 0:E.call(r,X))});
return _.Y("yt-avatar-shape",null,_.Y("div",{class:function(){var X={};X=(X["yt-spec-avatar-shape"]=!0,X["yt-spec-avatar-shape__button"]=!0,X[SD3(l().size)]=!0,X["yt-spec-avatar-shape__button--tappable"]=!!l().onTap,X);var r=l().avatarButtonCustomClassName;r&&(X[r]=!0);return _.l8(X)},
"on:click":T,"on:keydown":_.Q1(),"aria-label":function(){return l().onTap?l().accessibilityText:""},
role:function(){return l().onTap?"button":void 0},
tabindex:function(){return l().onTap?0:void 0}},_.Y("div",{class:function(){var X,r=l(),E=H==null?void 0:H(),D=n==null?void 0:n(),Z=!((X=r.decorations)==null||!X.includes(2)||r.size!=="medium"&&r.size!=="large"),S=r.size==="tiny"||r.size==="extra-small",p,Vf,C,By,lN={};
X=(lN["yt-spec-avatar-shape--live-ring"]=!!(((p=r.decorations)==null?0:p.includes(0))&&QFt(r.size)),lN["yt-spec-avatar-shape--stories-watched"]=Z&&!(E==null||!E.storiesWatched),lN["yt-spec-avatar-shape--stories-unwatched"]=Z&&!(E==null?0:E.storiesWatched),lN["yt-spec-avatar-shape--background-border"]=cgJ(r.decorations)&&!S,lN["yt-spec-avatar-shape--background-border-thin"]=cgJ(r.decorations)&&S,lN["yt-spec-avatar-shape__on-select-border"]=!((Vf=r.decorations)==null||!Vf.includes(4)),lN["yt-spec-avatar-shape__white-border"]=
!((C=r.decorations)==null||!C.includes(5)),lN["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((By=r.decorations)==null?0:By.includes(5))&&S),lN["yt-spec-avatar-shape--is-overlay"]=!!D,lN);return _.l8(X)}},_.Y("div",{class:function(){var X={};
X=(X[ZpK(l().size)]=!0,X["yt-spec-avatar-shape--no-margin"]=cgJ(l().decorations),X);return _.l8(X)}},_.Y(_.cX,{data:I,
alt:function(){return!l().onTap&&l().accessibilityText?l().accessibilityText:""},
targetWidth:function(){return ROg(l().size)},
targetHeight:function(){return ROg(l().size)},
className:function(){return _.l8(k())}}),_.Y(_.NS,{cond:function(){var X;
return((X=l().decorations)==null?void 0:X.includes(0))&&QFt(l().size)},
then:function(){return _.Y("div",{class:function(){var X={};X=(X["yt-spec-avatar-shape__live-badge"]=!0,X["yt-spec-avatar-shape__live-badge--badge-small"]=l().size==="small",X["yt-spec-avatar-shape__live-badge--badge-medium"]=l().size==="medium"||l().size==="48",X["yt-spec-avatar-shape__live-badge--badge-large"]=l().size==="large",X["yt-spec-avatar-shape__live-badge--badge-extra-large"]=l().size==="extra-large"||l().size==="extra-extra-large"||l().size==="giant",X);return _.l8(X)}},_.Y(_.NS,{cond:function(){return l().badgeText},
then:function(X){return _.Y("div",{class:"yt-spec-avatar-shape__badge-text",el:w},X)}}),_.Y(_.NS,{cond:N,
then:function(){return _.Y("div",{class:"yt-spec-avatar-shape__badge-icon"},_.Y(_.dq,{icon:e,size:function(){a:switch(l().size){case "extra-large":var X=16;break a;default:X=13}return X}}))}}))}}),_.Y(_.NS,{cond:function(){var X,r;
return((X=l().decorations)==null?void 0:X.includes(1))||((r=l().decorations)==null?void 0:r.includes(0))&&!QFt(l().size)},
then:function(){return _.Y("div",{class:function(){var X=l(),r,E,D={};var Z=(D["yt-spec-avatar-shape__live-dot"]=!((r=X.decorations)==null||!r.includes(0)||QFt(X.size)),D["yt-spec-avatar-shape__new-content"]=!((E=X.decorations)==null||!E.includes(1)),D);return _.l8(Z)}})}}),_.uO(x,function(){return _.Y("div",{class:function(){var X={};
X=Object.assign((X["yt-spec-avatar-shape__image-overlays"]=!0,X),k());return _.l8(X)}},x==null?void 0:x())})))))},"O");
vK.idomCompat={callbacks:{overlays:!0}};var lO3=_.W1(function(V){function l(){I().endpoint&&_.EI(I().endpoint)}
var I=V.data;var H=V.decorations;var T=V.avatarButtonCustomClassName;var x=V.isOverlay;return _.Y("avatar-view-model",null,_.Y(_.NS,{cond:function(){return I().image},
then:function(n){return _.Y(vK,{data:function(){return bpt({data:I(),onTap:I().endpoint?l:void 0,decorations:H==null?void 0:H(),badgeText:void 0,accessibilityText:I().accessibilityText,avatarButtonCustomClassName:T==null?void 0:T()})},
image:n,iconType:"RADAR_LIVE",overlays:function(){return _.Y(OB,{data:I})},
isOverlay:x})}}))},"P");
lO3.idomCompat=!0;_.hy=_.z("mweb_enable_sink_avatar_view_model")||_.z("web_enable_sink_lockups_batch")?lO3:qD3;_.SA=_.z("mweb_enable_sink_avatar_view_model")||_.z("web_enable_sink_lockups_batch")?lO3:_.I2(_.hy);_.m5(qD3);_.m5(Ag1);var ION,HoW;ION=_.W1(function(V){var l=V.data;V=V.className;var I=_.pO(),H=function(){return _.y(l().avatar,_.C6)},T=_.Ny(function(){var x,n=l(),w=H(),N=_.M7(l().rendererContext),L=(x=I.value)!=null?x:void 0;
return w?sFt({data:n,avatar:w,onTap:N,element:L}):{size:"medium"}},void 0,"v09a6");
return _.Y("yt-decorated-avatar-view-model",{class:_.ii("yt-decorated-avatar-view-model-wiz",V),el:I},_.Y(_.NS,{cond:function(){var x;return(x=H())==null?void 0:x.image},
then:function(x){return _.Y(vK,{data:T,image:x,iconType:"RADAR_LIVE",overlays:function(){return _.Y(OB,{data:H})}})}}))},"Q");
HoW=_.z("web_enable_sink_lockups_batch")?ION:Ag1;_.R_=_.z("web_enable_sink_lockups_batch")?ION:_.I2(Ag1);ION.idomCompat=!0;var Cmq=_.FR({avatarViewModel:_.hy,decoratedAvatarViewModel:HoW});_.m5(aP1);var TBZ;TBZ=_.W1(function(V){var l=_.sZ(),I=function(){return l&&_.sB(V.data().rendererContext)};
_.A9(l,function(){return V.data().rendererContext});
var H=function(){var x=V.data().avatars,n,w;return(w=(n=(x==null?0:x[0])?_.y(x[0],_.C6):void 0)==null?void 0:n.avatarImageSize)!=null?w:"AVATAR_SIZE_UNKNOWN"},T={};
return _.Y("yt-avatar-stack-view-model",{el:l,class:_.ii("yt-avatar-stack-view-model-wiz",V.className,(T["yt-avatar-stack-view-model-wiz--tappable"]=I,T["yt-avatar-stack-view-model-wiz--is-overlay"]=V.isOverlay,T["yt-avatar-stack-view-model-wiz--medium-text"]=V.useMediumText,T)),tabindex:function(){return I()?0:void 0},
role:function(){return I()?"link":void 0},
"aria-label":function(){var x,n;return(n=(x=_.y(V.data().rendererContext,_.uP))==null?void 0:x.label)!=null?n:""}},_.Y(_.NS,{cond:function(){var x;
return V.data().avatars&&!((x=V.hideAvatar)==null?0:x.call(V))},
then:function(){return _.Y("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.Y(_.NS,{cond:function(){return V.data().decoratedText},
then:function(x){var n={};return _.Y("div",{class:_.ii("yt-avatar-stack-view-model-wiz__text-container",(n["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return H()==="AVATAR_SIZE_XXS"||H()==="AVATAR_SIZE_XS"},n["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var w;
return((w=V.isOverlay)==null?void 0:w.call(V))&&(H()==="AVATAR_SIZE_XXS"||H()==="AVATAR_SIZE_XS")},n)),
style:_.na({width:function(){return fPt(H())+"px"},
height:function(){return fPt(H())+"px"}})},_.Y(_.Ni,{text:x,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.Y(_.rw,{data:function(){return V.data().avatars.slice().reverse()}},{avatarViewModel:function(x){return _.Y("div",{class:function(){return g2f(H())}},_.Y(_.SA,{data:x.data,
decorations:function(){var n;if((n=V.decorations)==null?0:n.call(V))n=V.decorations();else{n=V.data();var w=0;n.avatars&&(w+=n.avatars.length);n.decoratedText&&(w+=1);n=w>1?[3]:[]}return n},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:V.isOverlay}))},
decoratedAvatarViewModel:function(x){return _.Y("div",{class:function(){return g2f(H())}},_.Y(_.R_,{data:x.data}))}}))}}),_.Y(_.NS,{cond:function(){return V.data().text},
then:function(x){return _.Y(_.Ni,{text:x,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"R");
_.BBZ=_.z("web_enable_sink_lockups_batch")?TBZ:aP1;_.x5b=_.z("web_enable_sink_lockups_batch")?TBZ:_.I2(aP1);TBZ.idomCompat=!0;_.MR(_.W1(function(V){var l=V.data;var I=V.thumbnailSize;return _.Y("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.Y("div",{class:_.ii("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return mdt(I==null?void 0:I())})},_.Y(_.rw,{data:function(){return l().avatarStack}},{avatarStackViewModel:function(H){return _.Y(_.x5b,{data:H.data,
decorations:[5]})}})))},"S"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.b9,
thumbnailSize:_.b9}});_.m5(ipW);var U5w=_.W1(function(V){V=_.Rj(V,{hidden:!1});var l=V.data;return _.Y("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:V.hidden},_.Y(_.Ni,{text:function(){return l().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.Y(_.NS,{cond:function(){return l().subtitle},
then:function(){return _.Y(_.Ni,{text:function(){return l().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"T"),nxN=_.z("web_enable_sink_lockups_batch")?U5w:ipW,$5b=_.z("web_enable_sink_lockups_batch")?U5w:_.I2(ipW);
U5w.idomCompat=!0;_.z("web_enable_sink_lockups_batch")?_.MR($5b,"yt-thumbnail-overlay-title-view-model",{props:{data:_.b9,hidden:_.b9}}):_.aN(nxN,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var d5N=_.W1(function(V){V=_.Rj(V,{isClip:!1});var l=V.data,I=V.thumbnailSize,H={};return _.Y("yt-thumbnail-overlay-badge-view-model",{class:_.ii("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(l().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var T="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:T="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return T},function(){return Vp1(I==null?void 0:I())},(H["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
V.isClip,H))},_.Y(_.rw,{data:function(){return l().thumbnailBadges}},{thumbnailBadgeViewModel:function(T){return _.Y(a_a,{data:T.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"U");
d5N.idomCompat=!0;_.MR(d5N,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.b9,thumbnailSize:_.b9,isClip:_.b9}});_.m5(l_y);_.aN(l_y,"yt-page-indicator-view-model",{propNames:["data"]});var wLo=function(){var V=_.M.apply(this,arguments)||this;V.eventSink=function(){return V};
V.disableInteraction=!1;V.noRoundedCorners=!1;V.isPreviewLoading=!1;V.isOriginalAspectRatio=!1;V.computedObjectFit=!1;V.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return V};
_.t(wLo,_.M);_.B=wLo.prototype;
_.B.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:_.z("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"}}};
_.B.onImageLoaded=function(){this.loaded=!0};
_.B.onImageUnloaded=function(){this.loaded=!1};
_.B.computeRichThumbnail=function(V,l,I,H){if(V&&l&&!H&&!_.z("disable_moving_thumbs_handling")&&!I)return l};
_.B.computeImageWidth=function(V,l){return l||9999};
_.B.computeIsOriginalAspectRatio=function(V){return V};
_.B.computeIsLive=function(V){if(V==null?0:V.badges)for(var l=0;l<V.badges.length;l++){var I=V.badges[l];if(I.metadataBadgeRenderer&&I.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(V==null?0:V.thumbnailOverlays)for(l=0;l<V.thumbnailOverlays.length;l++)if(I=V.thumbnailOverlays[l],I.thumbnailOverlayTimeStatusRenderer&&I.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.B.computeObjectFit=function(V,l){return l||(V?"CONTAIN":"")};
_.B.computeNavigationEndpoint=function(V,l,I){return V?l:I};
_.B.computeHasClip=function(V){V=_.U(V||[]);for(var l=V.next();!l.done;l=V.next())if(l.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.B.computeOverlayColor=function(V){var l;return(V==null?0:(l=V.darkColorPalette)==null?0:l.section2Color)?V.darkColorPalette.section2Color:V==null?void 0:V.sampledThumbnailColor};
_.vI.Object.defineProperties(wLo.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return sx(this.width)}}});
var QL=wLo;QL.prototype.onImageUnloaded=QL.prototype.onImageUnloaded;QL.prototype.onImageLoaded=QL.prototype.onImageLoaded;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],QL.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(qco),_.a("design:type",Object)],QL.prototype,"ytdThumbnailBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],QL.prototype,"componentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],QL.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],QL.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],QL.prototype,"circular",void 0);
_.O([_.q({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.a("design:type",Object)],QL.prototype,"richThumbnail",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.a("design:type",Boolean)],QL.prototype,"hasClip",void 0);_.O([_.q(),_.a("design:type",Object)],QL.prototype,"eventSink",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],QL.prototype,"queued",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],QL.prototype,"richGridThumbnail",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],QL.prototype,"useExpandableTooltip",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],QL.prototype,"useUntranslatedNavigationEndpoint",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],QL.prototype,"disableInteraction",void 0);
_.O([_.q({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.a("design:type",Object)],QL.prototype,"computedNavigationEndpoint",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],QL.prototype,"nowPlayingEqualizerOnly",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],QL.prototype,"hidePlaybackStatus",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],QL.prototype,"objectFit",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],QL.prototype,"noRoundedCorners",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],QL.prototype,"watchFeedThumbnail",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],QL.prototype,"isPreviewLoading",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.a("design:type",Object)],QL.prototype,"isOriginalAspectRatio",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.a("design:type",Object)],QL.prototype,"computedObjectFit",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.a("design:type",Boolean)],QL.prototype,"isLiveVideo",void 0);
_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],QL.prototype,"loaded",void 0);_.O([_.q({computed:"computeOverlayColor(data.thumbnail)"}),_.a("design:type",Object)],QL.prototype,"overlayColor",void 0);_.O([_.q({selector:_.hdg}),_.a("design:type",Boolean)],QL.prototype,"inlinePreviewIsEnabled",void 0);_.O([_.q(),_.a("design:type",Number)],QL.prototype,"width",void 0);
_.O([_.Q("inlinePreviewIsEnabled"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],QL.prototype,"isPreviewDisabled",null);_.O([_.Q("width"),_.a("design:type",String),_.a("design:paramtypes",[])],QL.prototype,"thumbnailSize",null);_.O([_.W("image-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QL.prototype,"onImageLoaded",null);
_.O([_.W("image-unloaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QL.prototype,"onImageUnloaded",null);QL=_.O([_.A({disableElementRegistration:!0,is:"ytd-thumbnail"})],QL);
var NB0=_.O7()(QL,"ytd-thumbnail",function(){if(OJJ===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);OJJ=V}V=OJJ;return V},{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 Baq=function(V){var l=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12649_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12649_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(I){KgZ(l,I)};
this.onLockupMouseLeaveFn=function(I){I=I.relatedTarget;var H,T;((H=document.getElementsByTagName("ytd-video-preview"))==null?0:(T=H.item(0))==null?0:T.contains(I))||(l.terminateVideoPreview(),cB(l))};
this.onThumbnailMouseDownFn=function(){l.terminateVideoPreview();cB(l)};
this.onTouchStart=function(){l.JSC$12649_touched=!0};
this.mediaRenderer=V.mediaRenderer;this.thumbnailElement=V.thumbnailElement;this.lockupElement=V.lockupElement;this.videoPreviewOptsInput=V.videoPreviewOpts;jTW(this);WB(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)):
_.hF(Error("Eh")):_.hF(Error("Fh")):YWi(this)},UJ=function(V){YWi(V);
var l;(l=V.lockupElement)==null||l.removeEventListener("mouseenter",V.onMouseMoveFn);var I;(I=V.lockupElement)==null||I.removeEventListener("mouseleave",V.onLockupMouseLeaveFn);var H;(H=V.lockupElement)==null||H.removeEventListener("touchstart",V.onTouchStart);var T;(T=V.thumbnailElement)==null||T.removeEventListener("mousedown",V.onThumbnailMouseDownFn);cB(V)},jTW=function(V){V.inlinePreviewIsEnabledForUser=_.v4().getState().ui.inlinePreviewIsEnabled;
V.unsubscribeFromInlinePreviewIsEnabled=_.Ln(_.v4(),_.hdg,function(l){(V.inlinePreviewIsEnabledForUser=l)||cB(V)});
V.JSC$12649_unsubscribeFromInlinePreviewIsActive=_.Ln(_.v4(),_.ogT,function(l){(V.inlinePreviewIsActive=l)||cB(V)})},YWi=function(V){V.unsubscribeFromInlinePreviewIsEnabled();
V.unsubscribeFromInlinePreviewIsEnabled=function(){};
V.JSC$12649_unsubscribeFromInlinePreviewIsActive();V.JSC$12649_unsubscribeFromInlinePreviewIsActive=function(){}},KgZ=function(V,l){l.buttons>0||(l=_.g7("kevlar_lockup_hover_delay",-1),V.JSC$12649_touched&&l>=0?(_.r0.cancelJob(V.videoPreviewJobId),V.videoPreviewJobId=_.vX(_.r0,function(){LgN(V)},l),V.JSC$12649_touched=!1):LgN(V))},eQa=function(V){V.videoPreviewJobId=_.vX(_.r0,function(){var l,I,H,T;
return _.d(function(x){if(x.nextAddress==1){if(!WB(V))return x.return();l=V.getVideoPreviewOpts();return l?(H=(I=_.U4(V.mediaRenderer.hostElement,"yt-open-video-preview-action",[l]))&&I[0])?_.K(x,I[0],3):x.jumpTo(2):x.return()}x.nextAddress!=2&&(H=x.yieldResult===1);H&&HJy((T=V.mediaRenderer)==null?void 0:T.data);_.FU(x)})},2E3)},LgN=function(V){!V.previewTriggered&&WB(V)&&(V.inlinePreviewIsActive&&V.terminateVideoPreview(),V.previewTriggered=!0,V.mediaRenderer.isInlinePreviewTriggered=!0,_.r0.cancelJob(V.videoPreviewJobId),
V.videoPreviewJobId=_.vX(_.r0,function(){var l,I,H,T;
return _.d(function(x){if(x.nextAddress==1){if(!WB(V))return x.return();l=V.getVideoPreviewOpts();return l?(H=(I=_.U4(V.mediaRenderer.hostElement,"yt-open-video-preview-action",[l]))&&I[0])?_.K(x,I[0],3):x.jumpTo(2):x.return()}x.nextAddress!=2&&(H=x.yieldResult===1);H&&HJy((T=V.mediaRenderer)==null?void 0:T.data);_.FU(x)})}))};
Baq.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var V,l;if((l=(V=this.videoPreviewOptsInput)==null?void 0:V.videoPreviewData)!=null)V=l;else if(V=this.mediaRenderer.data)if(I_t(V))V={inlinePlaybackEndpoint:_.to(V.inlinePlayerData.onVisible),navigationEndpoint:_.to(V.onTap),thumbnail:"image"in V?V.image:V.thumbnail,thumbnailOverlays:void 0,accessibilityText:TaN(V)};else if("multipleInlinePlaybackEndpoint"in V){var I=_.y(_.y(V.multipleInlinePlaybackEndpoint,a4a),f4J);if(I!=
null&&I.playerDescriptors){l=[];I=_.U(I.playerDescriptors);for(var H=I.next();!H.done;H=I.next())H=H.value,l.push({inlinePlaybackEndpoint:H.inlinePlaybackEndpoint,navigationEndpoint:H.navigationEndpoint,thumbnail:H.thumbnail,thumbnailOverlays:H.thumbnailOverlays,accessibilityText:TaN(V)});V=l}else V=void 0}else V={inlinePlaybackEndpoint:V.inlinePlaybackEndpoint,navigationEndpoint:V.navigationEndpoint,thumbnail:V.thumbnail,thumbnailOverlays:V.thumbnailOverlays,accessibilityText:TaN(V)};else V=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:V,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var WB=function(V){var l;if(l=V.inlinePreviewIsEnabledForUser)l=(V=V.mediaRenderer.data)?"inlinePlaybackEndpoint"in V&&V.inlinePlaybackEndpoint||I_t(V)&&V.inlinePlayerData||"multipleInlinePlaybackEndpoint"in V&&V.multipleInlinePlaybackEndpoint?!0:!1:!1;return l};
Baq.prototype.terminateVideoPreview=function(){_.xB(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var cB=function(V){_.r0.cancelJob(V.videoPreviewJobId);V.inlinePreviewIsActive=!1;V.previewTriggered=!1;V.mediaRenderer.isInlinePreviewTriggered=!1};var k_B=_.fl(["#"]),FgE=function(){var V=_.M.apply(this,arguments)||this;V.isDisabled=!1;return V};
_.t(FgE,_.M);_.B=FgE.prototype;_.B.configureRendererStamper=function(){return{"data.menu":F1,"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"}}}};
_.B.attached=function(){this.updateInlinePreviewHoverListeners()};
_.B.detached=function(){this.clearInlinePreviewHoverListeners()};
_.B.getMetadata=function(V){var l=[];if(V.metadataText&&Object.keys(V.metadataText).length>0){var I=this.ytRendererBehavior.getSimpleString(V.metadataText);V.upcomingEventData&&V.upcomingEventData.upcomingEventText&&(I=_.Zb(I,Number(V.upcomingEventData.startTime)));l.push(I)}else V.shortViewCountText&&l.push(this.ytRendererBehavior.getSimpleString(V.shortViewCountText)),V.publishedTimeText&&l.push(this.ytRendererBehavior.getSimpleString(V.publishedTimeText)),V.upcomingEventData&&V.upcomingEventData.upcomingEventText&&
(I=this.ytRendererBehavior.getSimpleString(V.upcomingEventData.upcomingEventText),l.push(_.Zb(I,Number(V.upcomingEventData.startTime))));return l};
_.B.calculateBylineText=function(V){return V.shortBylineText?V.shortBylineText:V.bylineText?V.bylineText:null};
_.B.calculateIsDisabled=function(V){return!!V.isDisabled};
_.B.computeHrefWithDefault=function(V){return this.ytComponentBehavior.computeHref_(V)||_.ch(k_B)};
_.B.onDetailsTap=function(V){var l=this.data&&this.data.navigationEndpoint;l&&!_.qi(_.b3(V)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.z("kevlar_grid_video_renderer_killswitch")?_.B$(this.hostElement,"yt-navigate",{endpoint:l}):this.ytComponentBehavior.resolveCommand(l))};
_.B.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.B.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12653_inlinePreviewHoverListener=a6({mediaRenderer:this,lockupElement:_.h(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.h(this.hostElement).querySelector("ytd-thumbnail")})};
_.B.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$12653_inlinePreviewHoverListener)==null||UJ(V)};
_.B.computeThumbnailWidth=function(V,l){return l&&l>0?l:V?360:210};
_.B.computeShowChannelThumbnail=function(V,l){var I;return l&&!!(V==null?0:(I=V.channelThumbnailSupportedRenderers)==null?0:I.channelThumbnailWithLinkRenderer)};
_.vI.Object.defineProperties(FgE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$12653_inlinePreviewHoverListener)==null?0:WB(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var bS=FgE;bS.prototype.dataChanged=bS.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],bS.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],bS.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.R(_.sE),_.a("design:type",Object)],bS.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],bS.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],bS.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],bS.prototype,"noEndpoints",void 0);_.O([_.q({computed:"calculateBylineText(data)"}),_.a("design:type",Object)],bS.prototype,"bylineText",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],bS.prototype,"isSearch",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],bS.prototype,"isDownloading",void 0);_.O([_.q({reflectToAttribute:!0,value:0}),_.a("design:type",Number)],bS.prototype,"width",void 0);_.O([_.q({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.a("design:type",Object)],bS.prototype,"isDisabled",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bS.prototype,"dataChanged",null);_.O([_.Q("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],bS.prototype,"isHovered",null);bS=_.O([_.A({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],bS);
_.u(bS,"ytd-grid-video-renderer",function(){if(rsN!==void 0)return rsN;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return rsN=V},{mode:_.Cm("kevlar_poly_si_batch_j047")?1:2});var XLW;var qC=function(){var V=_.M.apply(this,arguments)||this;V.roundedContainer=!0;V.skipRoundingTop=!1;V.disableTopPadding=!1;V.amsterdamEnabled=_.z("enable_desktop_amsterdam_info_panels");return V};
_.t(qC,_.M);qC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
qC.prototype.onClick=function(V){var l,I=(l=this.data)==null?void 0:l.sourceEndpoint;!_.qi(_.b3(V),this.hostElement,["A".toString()])&&I&&_.B$(this.hostElement,"yt-navigate",{endpoint:I})};
_.vI.Object.defineProperties(qC.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 V;return!((V=this.data)==null||!V.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=(V=this.data)==null?void 0:V.paragraphMaxLines)!=null?l:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
var MC=qC;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],MC.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],MC.prototype,"showVerticalDividers",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],MC.prototype,"roundedContainer",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],MC.prototype,"skipRoundingTop",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],MC.prototype,"disableTopPadding",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],MC.prototype,"amsterdamEnabled",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"showMetadataAtTop",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"showMetadataBelowTitle",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.menu"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"hasMenu",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.truncateParagraphs"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"truncateParagraphs",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.paragraphMaxLines"),_.a("design:type",Number),_.a("design:paramtypes",[])],MC.prototype,"paragraphMaxLines",null);_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.background"),_.a("design:type",Object),_.a("design:paramtypes",[])],MC.prototype,"background",null);MC=_.O([_.A({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],MC);
_.u(MC,"ytd-info-panel-content-renderer",function(){if(XLW!==void 0)return XLW;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return XLW=V},{mode:_.Cm("kevlar_poly_si_batch_j076")?1:2});var zQW;var yhB;var tIZ;var rh3;var G_b=function(){return _.M.apply(this,arguments)||this};
_.t(G_b,_.M);G_b.prototype.computeStyle=function(V){return V};
var s5=G_b;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],s5.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],s5.prototype,"style_",void 0);s5=_.O([_.Lm({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],s5);
_.u(s5,"yt-channel-thumbnail-with-link-renderer",function(){if(rh3===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;tIZ===void 0&&(tIZ=document.createElement("template"));var H=tIZ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);rh3=V}V=rh3;return V},{mode:2});var pw=function(){var V=_.M.apply(this,arguments)||this;V.modernTypography=_.z("web_modern_typography");return V};
_.t(pw,_.M);pw.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"}}}};
pw.prototype.computeTitleStyle=function(V){return V||null};
pw.prototype.computeAvatarStyle=function(V){return V||null};
pw.prototype.computeShowNavigationButton=function(V,l){return!(V==null||!V.navigationButton||l)};
var AD=pw;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],AD.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],AD.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.a("design:type",String)],AD.prototype,"titleStyle",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.a("design:type",String)],AD.prototype,"avatarStyle",void 0);_.O([_.q(),_.a("design:type",Boolean)],AD.prototype,"hideNavigationButton",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],AD.prototype,"isModernSd",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],AD.prototype,"modernTypography",void 0);
AD=_.O([_.A({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],AD);
_.u(AD,"ytd-rich-list-header-renderer",function(){if(yhB!==void 0)return yhB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return yhB=V},{mode:_.Cm("kevlar_poly_si_batch_j058")?1:2});var ExB=function(){return _.M.apply(this,arguments)||this};
_.t(ExB,_.M);ExB.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
var uS=ExB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],uS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],uS.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],uS.prototype,"isSearch",void 0);uS=_.O([_.A({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],uS);
_.u(uS,"ytd-preview-card-renderer",function(){if(zQW!==void 0)return zQW;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return zQW=V},{mode:1});var Jhb;var vB=function(){return _.M.apply(this,arguments)||this};
_.t(vB,_.M);vB.prototype.configureRendererStamper=function(){return{"data.menu":F1}};
vB.prototype.dataChanged=function(){var V=this.get("colorExtractionPalette.section1Color",this.data);V=_.tv(V);_.i3(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":V})};
vB.prototype.computeCardStyle=function(V){return this.get("style.value",V)||null};
var O5=vB;O5.prototype.dataChanged=O5.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],O5.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],O5.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.a("design:type",String)],O5.prototype,"cardStyle",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],O5.prototype,"dataChanged",null);O5=_.O([_.A({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],O5);
_.u(O5,"ytd-compact-channel-recommendation-card-renderer",function(){if(Jhb!==void 0)return Jhb;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Jhb=V},{mode:1});var ox0;var hQZ;var PXN=function(){var V=_.M.apply(this,arguments)||this;V.alignAuto=!1;V.collapsed=!0;V.isToggled=!1;V.alwaysCollapsed=!1;V.canToggle=!0;V.collapsedHeight=80;V.disableToggle=!1;V.alwaysToggleable=!1;V.reversed=!1;V.shouldUseNumberOfLines=!1;V.recomputeOnResize=!1;V.canToggleJobId=0;V.lastReversed=!1;return V};
_.t(PXN,_.M);_.B=PXN.prototype;_.B.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.B.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.B.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var V=_.h(this.hostElement),l=V.childNodes,I=document.createDocumentFragment(),H=V.childNodes.length-1;H>=0;H--)_.h(I).appendChild(l[H]);_.z("enable_shadydom_free_scoped_node_methods")?_.aQ(this.hostElement).appendChild(I):V.appendChild(I)}};
_.B.ready=function(){var V=this;_.r_(function(){V.initChildrenObserver()},1)};
_.B.detached=function(){this.detachObserver()};
_.B.toggle=function(V,l){this.canToggle&&(this.isToggled=l,_.B$(this.hostElement,"yt-refit"),V&&V.stopPropagation())};
_.B.reset=function(){this.childrenChanged()};
_.B.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.B.computeIsMoreVisible=function(V,l){return V&&!l};
_.B.computeShouldUseNumberOfLines=function(V){try{return!!V&&window.CSS.supports("-webkit-line-clamp","1")}catch(l){}return!1};
_.B.computeIsLessVisible=function(V,l){return V&&l};
_.B.observeCollapsedHeightAndMaxLines=function(){var V=this.collapsedHeight,l=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.i3(this.hostElement,{"--ytd-expander-max-lines":""+l,"--ytd-expander-collapsed-height":""}):_.i3(this.hostElement,{"--ytd-expander-collapsed-height":V+"px","--ytd-expander-max-lines":""})};
_.B.handleMoreTap=function(V){this.disableToggle||(_.B$(this.hostElement,"yt-expander-more-tapped"),this.toggle(V,!0))};
_.B.handleLessTap=function(V){_.B$(this.hostElement,"yt-expander-less-tapped");this.toggle(V,!1)};
_.B.initChildrenObserver=function(){var V=this;this.observer=new MutationObserver(function(){V.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.B.childrenChanged=function(){var V=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){ui(function(){V.canToggleJobId=0;V.calculateCanCollapse()})}))};
_.B.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};
_.B.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.B.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("collapsed-changed",this.collapsed))};
_.B.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("is-toggled-changed",this.isToggled))};
_.B.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("can-toggle-changed",this.canToggle))};
_.vI.Object.defineProperties(PXN.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
var Cw=PXN;Cw.prototype.canToggleChangedForBinding=Cw.prototype.canToggleChangedForBinding;Cw.prototype.isToggledChangedForBinding=Cw.prototype.isToggledChangedForBinding;Cw.prototype.collapsedChangedForBinding=Cw.prototype.collapsedChangedForBinding;Cw.prototype.observeCollapsedHeightAndMaxLines=Cw.prototype.observeCollapsedHeightAndMaxLines;Cw.prototype.onIronResize=Cw.prototype.onIronResize;Cw.prototype.reversedChanged=Cw.prototype.reversedChanged;Cw.prototype.toggledChanged=Cw.prototype.toggledChanged;
Cw.prototype.alwaysToggleableChanged=Cw.prototype.alwaysToggleableChanged;_.O([_.R(_.Da),_.a("design:type",Object)],Cw.prototype,"ironResizableBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Cw.prototype,"alignAuto",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Cw.prototype,"collapsed",void 0);_.O([_.q(),_.a("design:type",Object)],Cw.prototype,"isToggled",void 0);_.O([_.q(),_.a("design:type",Object)],Cw.prototype,"alwaysCollapsed",void 0);
_.O([_.q(),_.a("design:type",Object)],Cw.prototype,"canToggle",void 0);_.O([_.q(),_.a("design:type",Object)],Cw.prototype,"collapsedHeight",void 0);_.O([_.q(),_.a("design:type",Object)],Cw.prototype,"disableToggle",void 0);_.O([_.q(),_.a("design:type",Object)],Cw.prototype,"alwaysToggleable",void 0);_.O([_.q(),_.a("design:type",Object)],Cw.prototype,"reversed",void 0);_.O([_.q(),_.a("design:type",Number)],Cw.prototype,"maxNumberOfLines",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.a("design:type",Object)],Cw.prototype,"shouldUseNumberOfLines",void 0);_.O([_.q(),_.a("design:type",Object)],Cw.prototype,"recomputeOnResize",void 0);_.O([_.Ij("#content"),_.a("design:type",HTMLDivElement)],Cw.prototype,"content",void 0);_.O([_.xs("alwaysToggleable"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cw.prototype,"alwaysToggleableChanged",null);
_.O([_.xs("isToggled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cw.prototype,"toggledChanged",null);_.O([_.Q("canToggleJobId"),_.a("design:type",Object),_.a("design:paramtypes",[])],Cw.prototype,"isResetting",null);_.O([_.b("reversed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cw.prototype,"reversedChanged",null);
_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cw.prototype,"onIronResize",null);_.O([_.b("maxNumberOfLines","collapsedHeight"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cw.prototype,"observeCollapsedHeightAndMaxLines",null);_.O([_.b("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cw.prototype,"collapsedChangedForBinding",null);
_.O([_.b("isToggled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cw.prototype,"isToggledChangedForBinding",null);_.O([_.b("canToggle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cw.prototype,"canToggleChangedForBinding",null);Cw=_.O([_.A({disableElementRegistration:!0,is:"ytd-expander"})],Cw);
_.u(Cw,"ytd-expander",function(){if(hQZ!==void 0)return hQZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return hQZ=V},{mode:1});var a_=function(){return _.M.apply(this,arguments)||this};
_.t(a_,_.M);a_.prototype.computeIsCarousel=function(V){return!!V.isCarousel};
a_.prototype.observeLightsourcePalette=function(){var V,l=(V=this.data)==null?void 0:V.vibrantsourceColorPaletteData;l&&_.Xp(this.hostElement,l)};
a_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var fw=a_;fw.prototype.observeLightsourcePalette=fw.prototype.observeLightsourcePalette;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],fw.prototype,"data",void 0);_.O([_.q({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],fw.prototype,"isCarousel",void 0);
_.O([_.b("data.vibrantsourceColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fw.prototype,"observeLightsourcePalette",null);fw=_.O([_.A({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],fw);
_.u(fw,"ytd-media-upsell-renderer",function(){if(ox0!==void 0)return ox0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ox0=V},{mode:2});var D5o;var Zo0=function(){var V=_.M.apply(this,arguments)||this;V.JSC$12681_playerEvents=new Map;V.listeningToPlayer=!1;V.startX=0;V.active=!1;V.shouldShowButtons=_.z("web_buttons_hidden_killswitch");V.isHighlighted=!1;V.useHighlightStyling=_.z("web_enable_deeper_metadata_highlight_styling");V.modern=_.z("kevlar_modern_sd");V.enableProblemWalkthrough=_.z("problem_walkthrough_sd");return V};
_.t(Zo0,_.M);_.B=Zo0.prototype;
_.B.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}}}}}};
_.B.created=function(){this.JSC$12681_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.B.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.VP(this,this.onRepeatButtonToggle));_.z("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.VP(this,this.onActiveUpdate))};
_.B.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.VP(this,this.onRepeatButtonToggle));_.z("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.VP(this,this.onActiveUpdate))};
_.B.onDataChanged=function(){this.removePlayerListeners()};
_.B.onColorPaletteChange=function(){var V={},l;if(_.Pb()==="USER_INTERFACE_THEME_DARK"&&((l=this.data)==null?0:l.darkColorPalette)){var I=this.data.darkColorPalette;V["--ytd-macro-markers-list-item-background-color"]=_.rP(this.get("section2Color",I))}else{var H;_.Pb()==="USER_INTERFACE_THEME_LIGHT"&&((H=this.data)==null?0:H.lightColorPalette)&&(I=this.data.lightColorPalette,V["--ytd-macro-markers-list-item-background-color"]=_.rP(this.get("section3Color",I)))}I?(V["--ytd-macro-markers-list-item-title-color"]=
_.rP(this.get("primaryTitleColor",I)),V["--ytd-macro-markers-list-item-secondary-color"]=_.rP(this.get("secondaryTitleColor",I)),V["--ytd-macro-markers-list-item-timestamp-background-color"]=_.rP(this.get("section1Color",I)),this.customButtonProperties={customColors:{color:_.rP(this.get("primaryTitleColor",I))}},this.useColorSampling=!0):(V["--ytd-macro-markers-list-item-background-color"]="initial",V["--ytd-macro-markers-list-item-title-color"]="initial",V["--ytd-macro-markers-list-item-secondary-color"]=
"initial",V["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.i3(this.hostElement,V)};
_.B.onEndpointMouseDown=function(V){this.startX=V.clientX};
_.B.onEndpointClick=function(V){var l=this,I,H,T;return _.d(function(x){if(x.nextAddress==1){if(l.startX!==V.clientX)return V.preventDefault(),x.return();l.data&&l.ytRendererBehavior.logExplicitClick(l.data);if(!l.seekWithAnimationOnClick)return x.jumpTo(0);if(V.button!==0||V.shiftKey||V.altKey||V.metaKey||V.ctrlKey||_.qi(_.b3(V),l.hostElement,["BUTTON".toString()]))return x.return();V.stopPropagation();V.preventDefault();return l.data?_.K(x,_.vu().getPlayerPromise(),3):x.return()}I=x.yieldResult;
T=(H=_.y(l.data.onTap,_.vU))==null?void 0:H.startTimeSeconds;T!==void 0&&I.seekToTimeWithAnimation(T*1E3,_.A5(l.data.title));_.FU(x)})};
_.B.computeLayout=function(V){return V};
_.B.computeIsHighlighted=function(V){return!!V};
_.B.computeCarouselType=function(V){return V};
_.B.hideModernCarousel=function(V){return this.modern&&this.hideThumbnail(V)};
_.B.hideThumbnail=function(V){return this.enableProblemWalkthrough&&V!==null&&V==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.B.onRepeatButtonToggle=function(V){var l=this;V.detail.toggled&&_.vu().getPlayerPromise().then(function(I){l.ytPlayerListenerBehavior.listenToPlayerEvents(I,l.JSC$12681_playerEvents);l.listeningToPlayer=!0})};
_.B.onLoopRangeChange=function(V){var l=_.h(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(l){var I=l.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",l.polymerController.data);if(I){var H=Number(I.endTimeMs);if(Number(I.startTimeMs)!==(V==null?void 0:V.startTimeMs)||H!==(V==null?void 0:V.endTimeMs))l.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.B.removePlayerListeners=function(){var V=this;this.listeningToPlayer&&_.vu().getPlayerPromise().then(function(l){V.ytPlayerListenerBehavior.unlistenFromPlayerEvents(l,V.JSC$12681_playerEvents);V.listeningToPlayer=!1})};
_.B.onActiveUpdate=function(V){this.active=V.detail.active};
var gM=Zo0;gM.prototype.onColorPaletteChange=gM.prototype.onColorPaletteChange;gM.prototype.onDataChanged=gM.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],gM.prototype,"ytPlayerListenerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],gM.prototype,"data",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],gM.prototype,"useCustomColors",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gM.prototype,"active",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],gM.prototype,"shouldShowButtons",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.a("design:type",String)],gM.prototype,"layout",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.a("design:type",Object)],gM.prototype,"isHighlighted",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gM.prototype,"useHighlightStyling",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gM.prototype,"modern",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gM.prototype,"enableProblemWalkthrough",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.a("design:type",String)],gM.prototype,"carouselType",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],gM.prototype,"useColorSampling",void 0);_.O([_.q(),_.a("design:type",Boolean)],gM.prototype,"seekWithAnimationOnClick",void 0);_.O([_.q(),_.a("design:type",Object)],gM.prototype,"customButtonProperties",void 0);
_.O([_.Ij("#repeat-button"),_.a("design:type",HTMLElement)],gM.prototype,"repeatButton",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gM.prototype,"onDataChanged",null);_.O([_.b("data.lightColorPalette","data.darkColorPalette"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gM.prototype,"onColorPaletteChange",null);
gM=_.O([_.A({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],gM);
_.u(gM,"ytd-macro-markers-list-item-renderer",function(){if(D5o!==void 0)return D5o;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return D5o=V},{mode:1});var SW0;var RQo;var QT0=function(){var V=_.M.apply(this,arguments)||this;V.modernTypography=_.z("web_modern_typography");return V};
_.t(QT0,_.M);var mQ=QT0;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],mQ.prototype,"modernTypography",void 0);_.O([_.q(),_.a("design:type",Object)],mQ.prototype,"data",void 0);mQ=_.O([_.A({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],mQ);
_.u(mQ,"ytd-title-and-button-list-header-renderer",function(){if(RQo!==void 0)return RQo;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return RQo=V},{mode:1});var chB;var WgJ=new _.Vr("BUTTON_RENDERER_WIZ_TOKEN"),bo0=new _.Vr("BUTTON_RENDERER_TOKEN");_.iS=_.W1(function(V){var l=_.F().resolve(_.Cs(WgJ));if(l)return _.Y(l,Object.assign({},V));var I=_.F().resolve(bo0);return I?_.Y(dZg,null,function(){return _.Y(ux,null,function(){var H,T,x,n,w,N,L,e,k,X,r,E;return void I(V.data(),{onButtonClickCallback:V.onButtonClickCallback,shouldShowIcons:(H=V.shouldShowIcons)==null?void 0:H.call(V),icon:(T=V.icon)==null?void 0:T.call(V),processAllEndpoints:(x=V.processAllEndpoints)==null?void 0:x.call(V),preventDefault:(n=V.preventDefault)==null?void 0:n.call(V),
stopPropagation:(w=V.stopPropagation)==null?void 0:w.call(V),disableButtonRendererClickHandling:(N=V.disableButtonRendererClickHandling)==null?void 0:N.call(V),className:(L=V.className)==null?void 0:L.call(V),buttonOverrides:(e=V.buttonOverrides)==null?void 0:e.call(V),forceModernIconButton:(k=V.forceModernIconButton)==null?void 0:k.call(V),isSubscribe:(X=V.isSubscribe)==null?void 0:X.call(V),alignByText:(r=V.alignByText)==null?void 0:r.call(V),forceDisabled:(E=V.forceDisabled)==null?void 0:E.call(V)})})}):
_.Y(_.CN,null)},"V");
_.iS.idomCompat=!0;var qWo=_.W1(function(V){var l=V.notification,I=_.S5(V.useSquareAspectRatio,!1);return _.Y(_.NS,{cond:function(){var H,T;return(H=l().responseText)==null?void 0:(T=H.runs)==null?void 0:T.length},
then:function(){var H={};return _.Y("div",{class:_.ii("yt-mini-game-card-view-model__dismissed-card",(H["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!I()},H["yt-mini-game-card-view-model--dismissed-square-card"]=I,H))},_.Y("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.Y(_.NS,{cond:function(){return l().responseText.runs[0].text},
then:function(T){return _.Y("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:T},T)}}),_.Y(_.rw,{data:function(){return l().buttons}},{buttonRenderer:_.iS,
buttonViewModel:_.Db})))}})},"W");var vxZ=_.W1(function(V){V=_.Rj(V,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var l=V.data,I=V.useFullWidth,H=V.isDesktopWeb,T=V.addSearchResultTopMargin,x=function(){return l().layout},n=function(){return l().title},w=function(){return l().genre},N=function(){return l().channelName},L=function(){return l().image},e=function(){return l().colorPalette},k=function(){return l().actionButton},X=function(){return l().overflowButton},r=function(){return l().avatar},
E=function(){var p={};
p=_.ii("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(p["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return H()},p));
return _.Y("div",{class:p},_.Y(MIZ,{imageData:L,colorPalette:e}),_.Y(sTE,{onTap:function(){return l().onTap},
imageData:L,accessibilityText:function(){return l().accessibilityText},
overlayBadgeText:function(){return l().overlayBadgeText},
iconName:function(){return l().iconName},
unplayableInlinePlaybackIconName:function(){return l().unplayableInlinePlaybackIconName},
isDesktopWeb:H}),_.Y(_.NS,{cond:function(){return!H()},
then:function(){return _.Y(_.CN,null,_.Y(pLa,{layout:x,colorPalette:e,isDesktopWeb:H,overflowButton:X,avatar:r,onTap:function(){return l().onTap},
genre:w,title:n,channelName:N,entityRedesignExperiments:function(){return l().entityRedesignExperiments}}),_.Y(Vc,{actionButton:k}))}}))},D=function(){var p={};
p=_.ii((p["yt-mini-game-card-view-model--search-result-desktop"]=function(){return H()},p["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!H()},p["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return T()},p));
return _.Y("div",{class:p},E(),_.Y(Aha,{description:function(){return l().description},
isDesktopWeb:H,title:n,genre:w,onTap:function(){return l().onTap},
actionButton:k,overflowButton:X,avatar:r,channelName:N}))},Z=function(){var p=function(){var C;
return(C=l().entityRedesignExperiments)==null?void 0:C.changePlayablesLayoutWithCta},Vf={};
Vf=_.ii("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(Vf["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return p()},Vf["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return H()},Vf["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return H()&&l().width===135},Vf["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return H()},Vf["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!p()&&H()&&l().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},Vf["yt-mini-game-card-view-model--big-metadata-font"]=function(){return l().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},Vf["yt-mini-game-card-view-model--use-full-width"]=function(){return I()},Vf["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!k()},Vf));
return _.Y("div",{class:Vf},_.Y(_.NS,{cond:function(){return p()},
then:function(){return _.Y(_.CN,null,_.Y(u9o,{entityRedesignExperiments:function(){return l().entityRedesignExperiments},
colorPalette:e,isDesktopWeb:H,onTap:function(){return l().onTap},
accessibilityText:function(){return l().accessibilityText},
overlayBadgeText:function(){return l().overlayBadgeText},
iconName:function(){return l().iconName},
unplayableInlinePlaybackIconName:function(){return l().unplayableInlinePlaybackIconName},
actionButton:k,imageData:L}),_.Y(pLa,{layout:x,colorPalette:e,isDesktopWeb:H,overflowButton:X,avatar:r,onTap:function(){return l().onTap},
genre:w,title:n,channelName:N,entityRedesignExperiments:function(){return l().entityRedesignExperiments}}),_.Y(_.NS,{cond:function(){return!!p()===!1&&k()},
then:function(){return _.Y(Vc,{actionButton:k})}}))},
else:function(){return _.Y(_.CN,null,_.Y(MIZ,{imageData:L,colorPalette:e}),_.Y(sTE,{onTap:function(){return l().onTap},
imageData:L,accessibilityText:function(){return l().accessibilityText},
overlayBadgeText:function(){return l().overlayBadgeText},
iconName:function(){return l().iconName},
unplayableInlinePlaybackIconName:function(){return l().unplayableInlinePlaybackIconName},
isDesktopWeb:H}),_.Y(pLa,{layout:x,colorPalette:e,isDesktopWeb:H,overflowButton:X,avatar:r,onTap:function(){return l().onTap},
genre:w,title:n,channelName:N,entityRedesignExperiments:function(){return l().entityRedesignExperiments}}),_.Y(Vc,{actionButton:k}))}}))},S=function(){var p={};
p=_.ii("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(p["yt-mini-game-card-view-model--square-card-desktop"]=function(){return H()},p["yt-mini-game-card-view-model--use-full-width"]=function(){return I()},p));
return _.Y("div",{class:p},_.Y(sTE,{onTap:function(){return l().onTap},
imageData:L,accessibilityText:function(){return l().accessibilityText},
overlayBadgeText:function(){return l().overlayBadgeText},
iconName:function(){return l().iconName},
unplayableInlinePlaybackIconName:function(){return l().unplayableInlinePlaybackIconName},
isDesktopWeb:H}),_.Y(pLa,{layout:x,colorPalette:e,isDesktopWeb:H,overflowButton:X,avatar:r,onTap:function(){return l().onTap},
genre:w,title:n,channelName:N,entityRedesignExperiments:function(){return l().entityRedesignExperiments}}))};
return _.Y("mini-game-card-view-model",{class:V.className},_.Y(_.YG,null,_.Y(_.jN,{when:function(){return x()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return Z()}),_.Y(_.jN,{when:function(){return x()==="MINI_APP_LAYOUT_SQUARE"}},function(){return S()}),_.Y(_.jN,{when:function(){return x()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return D()})))},"X");
vxZ.idomCompat=!0;var Vc=_.W1(function(V){var l=_.S5(V.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.Y(_.rw,{data:V.actionButton},{buttonViewModel:function(I){return _.Y("div",{class:l},_.Y(_.Db,{data:I.data}))}})},"Y"),sTE=_.W1(function(V){var l=V.onTap;
var I=V.imageData;var H=V.accessibilityText;var T=V.overlayBadgeText;var x=V.iconName;var n=V.unplayableInlinePlaybackIconName;V=V.isDesktopWeb;return _.Y(_.wq,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:l},_.Y(_.cX,{data:I,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(H==null?void 0:H())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.Y(Ooi,{overlayBadgeText:T,iconName:x,unplayableInlinePlaybackIconName:n,isDesktopWeb:V}))},"Z"),Ooi=_.W1(function(V){var l=V.overlayBadgeText;
var I=V.iconName;var H=V.unplayableInlinePlaybackIconName;var T=V.isDesktopWeb;return _.Y("div",{class:"yt-mini-game-card-view-model__badge-container"},_.Y(_.NS,{cond:I,then:function(x){return _.Y("div",{class:"yt-mini-game-card-view-model__badge"},_.Y("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.Y(_.dq,{icon:x,className:"yt-mini-game-card-view-model__icon"}),_.Y("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},l)))}}),_.Y(_.NS,{cond:function(){return!I()&&
l()},
then:function(){return _.Y("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},l)}}),_.Y(_.NS,{cond:function(){return H()&&T()},
then:function(){return _.Y("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.Y(_.dq,{icon:H,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"$"),MIZ=_.W1(function(V){var l=V.colorPalette;
var I=V.imageData;var H=function(){return l().vibrantColorPalette?l().vibrantColorPalette.section2Color:l().sectionTwoColor};
return _.Y(_.CN,null,_.Y("div",{class:"yt-mini-game-card-view-model__background-base",style:_.na({"background-color":function(){return GR(H(),"1")}})}),_.Y("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.na({"background-image":function(){return"url("+I().sources[0].url+")"}})}),_.Y("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.na({background:function(){return"linear-gradient(180deg,\n    "+GR(H(),".8")+" 0%,\n    "+GR(H(),".4")+" 25%,\n    "+GR(l().vibrantColorPalette?l().vibrantColorPalette.section4Color:l().sectionFourColor,".8")+" 100%)"}})}))},"aa"),pLa=_.W1(function(V){var l=V.layout;
var I=V.colorPalette;var H=V.overflowButton;var T=V.avatar;var x=V.onTap;var n=V.title;var w=V.channelName;var N=V.entityRedesignExperiments;var L=V.genre;var e=function(){var X;return l()!=="MINI_APP_LAYOUT_SQUARE"&&((X=I())==null?0:X.textPrimaryColor)?"color: "+GR(I().textPrimaryColor,".7"):""},k=function(){var X;
return N==null?void 0:(X=N())==null?void 0:X.changePlayablesLayoutWithCta};
return _.Y("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.Y(_.NS,{cond:T,then:function(){return _.Y("div",{class:"yt-mini-game-card-view-model__avatar"},_.Y(_.rw,{data:T},{avatarViewModel:_.SA}))}}),_.Y(_.wq,{command:x,
className:"yt-mini-game-card-view-model__metadata-details"},_.Y("h3",{class:"yt-mini-game-card-view-model__title",title:n},n),_.Y(_.NS,{cond:T,then:function(){return _.Y("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.Y("span",{class:"yt-mini-game-card-view-model__genre",title:w,style:e},w),_.Y("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:e},L))},
else:function(){return _.Y(_.NS,{cond:k,then:function(){return _.Y("span",{class:"yt-mini-game-card-view-model__genre",title:L},L)},
else:function(){return _.Y("span",{class:"yt-mini-game-card-view-model__genre",title:L,style:e},L)}})}})),_.Y("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Y(_.rw,{data:H},{buttonViewModel:function(X){var r=X.data;
return _.Y(_.Db,{data:function(){return Object.assign({},r(),{customFontColor:k()?void 0:r().customFontColor})}})}})))},"ba"),u9o=_.W1(function(V){var l=V.entityRedesignExperiments;
var I=V.colorPalette;var H=V.isDesktopWeb;var T=V.onTap;var x=V.accessibilityText;var n=V.overlayBadgeText;var w=V.iconName;var N=V.unplayableInlinePlaybackIconName;var L=V.actionButton;V=V.imageData;var e=function(){var k;return l==null?void 0:(k=l())==null?void 0:k.changePlayablesLayoutWithCta};
return _.Y("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.Y(MIZ,{imageData:V,colorPalette:I}),_.Y(sTE,{onTap:T,imageData:V,accessibilityText:x,overlayBadgeText:n,iconName:w,unplayableInlinePlaybackIconName:N,isDesktopWeb:H}),_.Y(_.NS,{cond:function(){return(e==null?void 0:e())&&(L==null?void 0:L())},
then:function(){return _.Y(Vc,{actionButton:L})}}))},"ca"),Aha=_.W1(function(V){var l=V.description;
var I=V.isDesktopWeb;var H=V.title;var T=V.genre;var x=V.onTap;var n=V.actionButton;var w=V.overflowButton;var N=V.avatar;V=V.channelName;var L={};L=_.ii("yt-mini-game-card-view-model--search-result-metadata-wrapper",(L["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=I,L["yt-mini-game-card-view-model--show-unplayable-on-hover"]=I,L["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!I()},L));
var e={};e=_.ii("yt-mini-game-card-view-model__search-result-info-row",(e["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!I()},e));
return _.Y("div",{class:L},_.Y("div",{class:e},_.Y(_.wq,{command:x,className:"yt-mini-game-card-view-model__metadata-details"},_.Y("h3",{class:"yt-mini-game-card-view-model__title",title:H},H),_.Y("span",{class:"yt-mini-game-card-view-model__genre",title:T},T)),_.Y(Vc,{actionButton:n,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.Y("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Y(_.rw,{data:w},{buttonViewModel:_.Db}))),_.Y("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.Y("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.Y("div",{class:"yt-mini-game-card-view-model__avatar"},_.Y(_.rw,{data:N},{avatarViewModel:function(k){var X=k.data;return _.Y(_.SA,{data:function(){return Object.assign({},X(),{avatarImageSize:I()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.Y(_.wq,{command:x,
className:"yt-mini-game-card-view-model__description"},_.Y("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},V)),_.Y(_.wq,{command:x,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.Y("div",null)))),_.Y(_.NS,{cond:I,then:function(){return _.Y(_.wq,{command:x,className:"yt-mini-game-card-view-model__description"},l)}}))},"da");var CX0={isAdsVideo:!0},aOv={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},fOJ={showPlayerControls:!1,videoPreviewDurationMs:15E3},iot={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.z("web_shorts_imp_fullwidth_killswitch")},gxZ={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var m5a=function(){var V=_.M.apply(this,arguments)||this;V.isSearch=!1;V.isRichGrid=!1;return V};
_.t(m5a,_.M);_.B=m5a.prototype;_.B.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.B.dismissibleItemOnYtServiceRequestSent=function(V,l){l.actions&&this.dismissibleItemProcessActions(V,l.actions)};
_.B.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.B.attached=function(){this.updateInlinePreviewHoverListeners()};
_.B.detached=function(){this.clearInlinePreviewHoverListeners()};
_.B.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.B.dismissibleItemProcessActions=function(V,l){for(var I=0;I<l.length;I++){var H=l[I];_.y(H,_.zj)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.y(H,_.zj)),V.stopPropagation())}};
_.B.dismissibleItemHandleReplaceEnclosingAction=function(V){this.dismissedRenderer=V.item;this.isDismissed=!0};
_.B.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12713_inlinePreviewHoverListener=a6({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:gxZ}))};
_.B.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$12713_inlinePreviewHoverListener)==null||UJ(V)};
_.B.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.B.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var V=this.data.layout==="MINI_APP_LAYOUT_SQUARE";RN(qWo)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:V===void 0?!1:V})}else RN(vxZ)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
var l6=m5a;l6.prototype.experimentalPropertiesChanged=l6.prototype.experimentalPropertiesChanged;l6.prototype.dataChanged=l6.prototype.dataChanged;l6.prototype.dismissibleItemOnRequestSent=l6.prototype.dismissibleItemOnRequestSent;l6.prototype.dismissibleItemOnYtServiceRequestSent=l6.prototype.dismissibleItemOnYtServiceRequestSent;_.O([_.R(dTZ),_.a("design:type",Object)],l6.prototype,"ytIdomTemplatingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],l6.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],l6.prototype,"isSearch",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],l6.prototype,"isDismissed",void 0);_.O([_.q(),_.a("design:type",Object)],l6.prototype,"dismissedRenderer",void 0);_.O([_.Ij(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.a("design:type",HTMLElement)],l6.prototype,"thumbnailWrapper",void 0);
_.O([_.Ij("mini-game-card-view-model"),_.a("design:type",HTMLElement)],l6.prototype,"miniGameCardViewModel",void 0);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],l6.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.O([_.W("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],l6.prototype,"dismissibleItemOnRequestSent",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],l6.prototype,"dataChanged",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],l6.prototype,"isRichGrid",void 0);_.O([_.b("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],l6.prototype,"experimentalPropertiesChanged",null);
l6=_.O([_.Lm({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],l6);
_.u(l6,"ytd-mini-game-card-view-model",function(){if(chB!==void 0)return chB;var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return chB=V},{mode:_.Cm("kevlar_poly_si_batch_j081")?1:2});var io3;var Vw3;var l7b=function(){return _.Ow.apply(this,arguments)||this};
_.t(l7b,_.Ow);l7b.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
l7b.prototype.getContinuationUrl=function(V){var l={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(l.itct=this.data.clickTrackingParams);return _.MS(V,l)};
var I7J=l7b;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],I7J.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],I7J.prototype,"data",void 0);I7J=_.O([_.Lm({is:"yt-reload-continuation",noInjection:!0})],I7J);var HLN;var TrN;var Br0=function(){var V=_.M.apply(this,arguments)||this;V.notificationData={};return V};
_.t(Br0,_.M);_.B=Br0.prototype;_.B.isMenuExpanded=function(V){return V&&V.length<=1?"undefined":"false"};
_.B.dataChanged_=function(){this.selected=void 0;var V=this.computeSelectedIndex_(this.data);V>=0&&(this.selected=V);V=this.data&&this.data.length>1;_.fY(this.hostElement,"has-items",V);_.h(this.hostElement).querySelector("#label").tabIndex=V?0:-1};
_.B.onDropdownOpen=function(){var V=_.oa();if(this.parentTrackingParams&&this.data){var l=_.dj(this.parentTrackingParams);this.data.forEach(function(I){V&&l&&I.trackingParams&&(I=_.dj(I.trackingParams),_.MJ(V,l,I),_.pT(V,[I]))})}else this.parentTrackingParams||_.hF(new _.Yd("No parent tracking params passed in for yt-dropdown-menu."))};
_.B.hasNotification=function(V){var l;if(V.targetId&&((l=this.notificationData)==null?0:l.targetId)){var I;return V.targetId===((I=this.notificationData)==null?void 0:I.targetId)}};
_.B.computeSelectedIndex_=function(V){if(V)for(var l=0,I=V.length;l<I;l++)if(V[l].selected)return l;return-1};
_.B.computeLabel_=function(V){return this.data&&V!=void 0?this.data[V].title:""};
_.B.computeShowIcon_=function(V,l){return!l&&!!V};
_.B.computeVerticalOffset_=function(V){return V?36:0};
_.B.computeEndpoint_=function(V){return V.endpoint||V.navigationEndpoint};
_.B.onLabelClick_=function(V){this.data&&this.data.length<=1?V.stopPropagation():this.menuExpanded="true"};
_.B.onIronActivate_=function(V){V=V.detail.item;var l=_.h(this.hostElement).querySelector("#repeat").itemForElement(V);if(l&&l.trackingParams){var I=_.oa(),H=_.dj(l.trackingParams);I&&_.uJ(I,H)}if(l&&l.serviceEndpoint)_.z("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(l.serviceEndpoint):_.$B(this.hostElement,[l.serviceEndpoint]),_.B$(this.hostElement,"yt-playlist-reloading");else a:{if((l=V.querySelector("yt-supported-renderers"))&&(l=
l.rendererElement)&&l.is=="yt-reload-continuation"){l.trigger();break a}(V=V.querySelector("yt-reload-continuation"))&&V.trigger()}};
_.B.onTap_=function(V){V.preventDefault()};
_.B.onItemTap_=function(V){this.ytEndpointBehavior.onEndpointTap_(V)};
_.B.onLinkFocus_=function(V){try{var l=V.target}catch(H){}if(l){var I=l.querySelector("tp-yt-paper-item");I&&_.Go(this,"focus",function(){I.focus()})}};
_.B.onMenuClose_=function(){this.menuExpanded="false"};
_.B.isLabelIconActive_=function(V){return V==="true"};
_.B.computeHasSubtitle_=function(V){return!!V};
_.B.computeHrefForItem_=function(V){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(V))};
_.B.updateSelectedFromBinding=function(V){this.selected=V.detail.value};
var I5=Br0;I5.prototype.onMenuClose_=I5.prototype.onMenuClose_;I5.prototype.onTap_=I5.prototype.onTap_;I5.prototype.onIronActivate_=I5.prototype.onIronActivate_;I5.prototype.onDropdownOpen=I5.prototype.onDropdownOpen;I5.prototype.dataChanged_=I5.prototype.dataChanged_;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],I5.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Uf.YtEndpointBehavior),_.a("design:type",Object)],I5.prototype,"ytEndpointBehavior",void 0);
_.O([_.q(),_.a("design:type",Array)],I5.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],I5.prototype,"parentTrackingParams",void 0);_.O([_.q(),_.a("design:type",Object)],I5.prototype,"selected",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],I5.prototype,"useLabel",void 0);_.O([_.q(),_.a("design:type",String)],I5.prototype,"icon",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],I5.prototype,"iconLabel",void 0);
_.O([_.q(),_.a("design:type",String)],I5.prototype,"ariaLabel",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],I5.prototype,"disabled",void 0);_.O([_.q({computed:"isMenuExpanded(data)"}),_.a("design:type",String)],I5.prototype,"menuExpanded",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],I5.prototype,"closeOnActivate",void 0);_.O([_.q({reflectToAttribute:!0,value:_.z("web_modern_buttons")}),_.a("design:type",Boolean)],I5.prototype,"modernButtons",void 0);
_.O([_.q(),_.a("design:type",Object)],I5.prototype,"notificationData",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],I5.prototype,"dataChanged_",null);_.O([_.W("paper-dropdown-open"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],I5.prototype,"onDropdownOpen",null);
_.O([_.W("iron-activate"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],I5.prototype,"onIronActivate_",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],I5.prototype,"onTap_",null);_.O([_.W("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],I5.prototype,"onMenuClose_",null);
I5=_.O([_.Lm({is:"yt-dropdown-menu",disableElementRegistration:!0})],I5);
_.u(I5,"yt-dropdown-menu",function(){if(TrN===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;HLN===void 0&&(HLN=document.createElement("template"));var H=HLN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);TrN=V}V=TrN;return V},{mode:2});var H2=function(){var V=_.M.apply(this,arguments)||this;V.hasNotification=!1;return V};
_.t(H2,_.M);H2.prototype.computeId=function(V){return V};
H2.prototype.computeHorizontalAlign=function(V){return V?"right":"left"};
H2.prototype.computeAccessibilityLabel=function(V){var l,I;return((l=V.accessibility)==null?void 0:(I=l.accessibilityData)==null?void 0:I.label)||null};
H2.prototype.notificationDataChanged=function(){var V;this.hasNotification=!!this.notificationData&&!((V=this.data)==null?0:V.icon)};
var TM=H2;TM.prototype.notificationDataChanged=TM.prototype.notificationDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Pf.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],TM.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],TM.prototype,"data",void 0);
_.O([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",String)],TM.prototype,"id",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],TM.prototype,"isRightAligned",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],TM.prototype,"disabled",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],TM.prototype,"closeOnActivate",void 0);_.O([_.q(),_.a("design:type",Object)],TM.prototype,"notificationData",void 0);
_.O([_.q(),_.a("design:type",Object)],TM.prototype,"hasNotification",void 0);_.O([_.b("notificationData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TM.prototype,"notificationDataChanged",null);TM=_.O([_.Lm({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],TM);
_.u(TM,"yt-sort-filter-sub-menu-renderer",function(){if(Vw3===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;io3===void 0&&(io3=document.createElement("template"));var H=io3;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Vw3=V}V=Vw3;return V},{mode:2});_.m5(Ujt);
var xpN=_.W1(function(V){var l=V.children;var I=V.className;var H=V.style;var T=V.role;var x=V.ariaSelected;var n=V.ariaLabel;var w=V.ariaHidden;var N=V.ariaLabelledby;var L=V.ariaDescribedby;var e=V.command;var k=V.elementsCommand;var X=V.forceNewState;var r=V.tabIdentifier;var E=V.target;var D=V.tabIndex;var Z=V.stopPropagation;V=_.Ny(function(){var S=_.GG({innertubeCommand:e==null?void 0:e(),elementsCommand:k==null?void 0:k(),forceNewState:X==null?void 0:X(),stopPropagation:(Z==null?void 0:Z())!==
!1});S||(S={});S["aria-hidden$"]=w==null?void 0:w();var p;S.tabindex$=(p=D==null?void 0:D())!=null?p:S.tabindex$;var Vf;S["force-new-state$"]=(Vf=X==null?void 0:X())!=null?Vf:S["force-new-state$"];var C;S.role$=(C=T==null?void 0:T())!=null?C:S.role$;var By;S["aria-hidden$"]=(By=w==null?void 0:w())!=null?By:S["aria-hidden$"];var lN;S.target$=(lN=E==null?void 0:E())!=null?lN:S.target$;return S},void 0,"SU0Mnc");
return _.Y(_.wq,{aTagConfig:V,className:I,style:H,ariaLabel:n,ariaLabelledby:N,ariaDescribedby:L,ariaSelected:x,tabIdentifier:r},l)},"ea");var nWT=_.z("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",Upw=_.I2($jy);_.m5($jy);_.MR(Upw,"place-data-view-model",{props:{data:_.b9}});var naa=new _.Vr("INLINE_PLAYBACK_HOOK_TOKEN");var ysN=function(V){this.setActiveSlideIndex=V;this.jobIds=[];this.isSlideshowPlaying=!1},rst=function(V){if(V.isSlideshowPlaying){V.isSlideshowPlaying=!1;
for(var l=V.jobIds,I=0,H=l.length;I<H;I++)_.r0.cancelJob(l[I]);V.jobIds.length=0}},tpw=function(V,l){V.isSlideshowPlaying||(V.isSlideshowPlaying=!0,$pZ(V),dpa(V,l,0))},$pZ=function(V){_.vX(_.r0,function(){V.setActiveSlideIndex(0)},1)},dpa=function(V,l,I){V.jobIds.push(_.vX(_.r0,function(){var H=I<l-1?I+1:0;
V.setActiveSlideIndex(H);dpa(V,l,H)},1800))};var LXW=new _.Vr("IMAGE_ON_LOAD_HANDLER_TOKEN");var wDN=_.W1(function(V){return _.Y("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.Y(_.NS,{cond:function(){var l;return(l=V.data())==null?void 0:l.thumbnail},
then:function(l){return _.Y(_.cX,{data:l,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"fa");_.B2=_.W1(function(V){var l=V.data;var I=V.lockupExperiments;V={};return _.Y("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.Y("div",{class:_.ii("ytThumbnailOverlayButtonViewModelButton",(V.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var H;return I&&((H=I())==null?void 0:H.useLegacySizedIconButton)},V))},_.Y(_.rw,{data:function(){return l().overlayButton}},{buttonViewModel:function(H){return _.Y(_.Db,{data:H.data,
buttonOverrides:function(){var T;return I&&((T=I())==null?0:T.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ga");
_.B2.idomCompat=!0;var Nr0=_.W1(function(V){var l=_.Bu(function(I){I.preventDefault();return!1});
return _.Y("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":l},_.Y(_.rw,{data:function(){return V.data().buttons}},{toggleButtonViewModel:function(I){return _.Y("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.Y(_.o6,{data:I.data}))}}))},"ha");
Nr0.idomCompat=!0;var KrE=_.W1(function(V){var l=function(){var I;return((I=_.y(V.data().rendererContext,_.uP))==null?void 0:I.label)||""};
return _.Y("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.Y(_.NS,{cond:function(){return V.data().image},
then:function(){return _.Y("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.Y(_.cX,{data:function(){return V.data().image},
alt:l}))}}),_.Y(_.NS,{cond:function(){return V.data().text},
then:function(){return _.Y("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return V.data().text})}}))},"ia");var eyf=_.FR({thumbnailOverlayTitleViewModel:nxN,thumbnailOverlayBadgeViewModel:d5N,thumbnailBottomOverlayViewModel:f_Z,thumbnailOverlayFullViewModel:KrE,thumbnailOverlayButtonViewModel:_.B2}),k7W=_.FR({thumbnailHoverOverlayViewModel:mjZ,thumbnailHoverOverlayToggleActionsViewModel:Nr0}),FXT=_.FR({animatedThumbnailOverlayViewModel:wDN});_.m5(X8T);var jcB=_.W1(function(V){var l=[],I=function(){var k,X;return sx((k=V.width)==null?void 0:k.call(V),(X=V.height)==null?void 0:X.call(V))},H=_.F().resolve(_.Cs(LXW)),T=_.sZ(function(){l.push("elRef.value set");
var k;(k=V.playbackRef)==null||k.call(V,{thumbnailElRef:T,thumbnail:V.data().image,thumbnailOverlays:V.data().overlays,thumbnailSize:I()})});
_.XW(function(){l.push("onInit");_.rx(function(){l.push("onCleanup")})});
var x=_.rq(w81),n=function(){var k,X;return(X=(k=V.aspectRatio)==null?void 0:k.call(V))!=null?X:0},w=function(){return(V.data().image?_.nug(V.data().image):n())<=1&&n()===0},N=function(){return w()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},L=function(){T.value||_.hF(new _.Yd("Thumbnail elRef.value is null",l.join("\n")));
H&&T.value&&H(T.value)},e={};
return _.Y("yt-thumbnail-view-model",{class:_.ii("yt-thumbnail-view-model",V.className,function(){return zyg(n())},function(){var k,X;
a:{var r=I(),E=(k=V.disableRounding)==null?void 0:k.call(V);k=(X=V.isClip)==null?void 0:X.call(V);if(!E&&!k)switch(r){case "large":X="yt-thumbnail-view-model--large";break a;case "small":X="yt-thumbnail-view-model--small";break a;default:X="yt-thumbnail-view-model--medium";break a}X=void 0}return X},(e["yt-thumbnail-view-model--cinematic"]=w,e)),
style:_.na({"background-color":function(){var k,X=w()?(k=V.data().backgroundColor)==null?void 0:k.lightTheme:void 0;return X?GR(X,"1"):void 0}}),
el:T},_.Y(_.NS,{cond:w,then:function(){return _.Y("div",{class:"yt-thumbnail-view-model__blurred-image"},_.Y(_.cX,{data:function(){return V.data().image},
alt:"",contentMode:N,targetWidth:V.width,onload:L}))}}),_.Y("div",{class:"yt-thumbnail-view-model__image"},_.Y(_.cX,{data:function(){return V.data().image},
alt:"",contentMode:N,targetWidth:V.width,onload:L}),null),_.Y(_.rw,{data:function(){return V.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:$5b,thumbnailOverlayBadgeViewModel:function(k){return _.Y(d5N,{data:k.data,thumbnailSize:I,isClip:V.isClip})},
thumbnailBottomOverlayViewModel:f_Z,thumbnailOverlayFullViewModel:KrE,thumbnailOverlayButtonViewModel:function(k){return _.Y(_.B2,{data:k.data,lockupExperiments:V.lockupExperiments})}}),_.Y(_.rw,{data:function(){var k;
return((k=V.hovered)==null?0:k.call(V))?V.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(k){return _.Y(iJi,{data:k.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Nr0}),_.Y(_.rw,{data:function(){var k;return((k=V.hovered)==null?0:k.call(V))&&x()?V.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:wDN}),_.Y(_.NS,{cond:V.isClip,then:function(){return jft()}}))},"ja"),YyN=_.z("web_enable_sink_lockups_batch")?jcB:X8T,x3=_.z("web_enable_sink_lockups_batch")?jcB:_.I2(YyN,{callbacks:{playbackRef:!0}});
jcB.idomCompat={callbacks:{playbackRef:!0}};var G7c=_.FR({thumbnailViewModel:YyN});_.m5(EWy);var Lrv=_.W1(function(V){var l=_.U(_.xi(-1,void 0,"GEkecf")),I=l.next().value,H=l.next().value;_.XW(function(){var T=new ysN(H);tpw(T,V.data().thumbnails.length);_.rx(function(){rst(T)})});
return _.Y("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.Y(_.rw,{data:function(){return V.data().thumbnails}},{thumbnailViewModel:function(T,x){return _.Y("div",{class:function(){var n=!V.data().primaryThumbnail,w=x(),N=I(),L=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
n&&w===0&&L.push("yt-collection-thumbnail-slideshow--first-slide");w<=N&&L.push("yt-collection-thumbnail-slideshow--show-slide");return L.join(" ")}},_.Y(x3,{data:T.data,
disableRounding:V.disableRounding}))}}))},"ka"),DjT=_.z("web_enable_sink_lockups_batch")?Lrv:EWy,eAw=_.z("web_enable_sink_lockups_batch")?Lrv:_.I2(EWy);
Lrv.idomCompat=!0;var Jsf=new _.Vr("DWELL_DETECTOR_REGISTRY_TOKEN");var PCT=_.FR({thumbnailViewModel:YyN});_.m5(ZJq);var Fr3=_.W1(function(V){var l=hy1(V.triggeringElement),I=function(){return!!V.data().primaryThumbnail};
return _.Y("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.Y(kzB,{stackEnabled:I,thumbnailSize:function(){var H,T;return sx((H=V.width)==null?void 0:H.call(V),(T=V.height)==null?void 0:T.call(V))},
doubleStack:V.doubleStack,stackColor:function(){return V.data().stackColor}},_.Y("div",null,_.Y(_.rw,{data:function(){return V.data().primaryThumbnail}},{thumbnailViewModel:function(H){var T={};
return _.Y(x3,{data:H.data,width:V.width,height:V.height,aspectRatio:V.aspectRatio,disableRounding:V.disableRounding,className:_.ii((T["yt-collection-thumbnail-view-model--has-stacks"]=I,T)),hovered:V.hovered,playbackRef:V.playbackRef})}}),_.Y(_.NS,{cond:function(){var H;
return l()&&((H=V.data().thumbnails)==null?void 0:H.length)},
then:function(){return _.Y("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.Y(eAw,{data:V.data,disableRounding:function(){return!I()}}))}}))))},"la"),XDN=_.z("web_enable_sink_lockups_batch")?Fr3:_.I2(ZJq,{callbacks:{playbackRef:!0}});
Fr3.idomCompat={callbacks:{playbackRef:!0}};
var kzB=_.W1(function(V){var l=V.children;var I=V.stackEnabled;var H=V.thumbnailSize;var T=V.doubleStack;var x=V.stackColor;var n,w=(n=_.F().resolve(_.Cs(_.DA)))==null?void 0:n();return _.Y(_.NS,{cond:I,then:function(){return _.Y(UjN,{data:function(){var N,L;return{experimentEnabled:!0,thumbnailSize:H(),doubleStack:T==null?void 0:T(),color:w?x==null?void 0:(N=x())==null?void 0:N.darkTheme:x==null?void 0:(L=x())==null?void 0:L.lightTheme,enableResponsiveMode:!1}}},l)},
else:function(){return l}})},"ma");var zAJ=new _.Vr("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var nP;_.U6={calledOnce:!0,state:"visible"};nP={calledOnce:!0,state:"hidden"};_.$3=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;var H=V.className;var T=V.delayedClassName;V=V.animationEntityKey;var x=_.sZ(),n=_.S5(V,""),w=_.dw(EqJ,n),N=function(){var lN,wW;return(wW=(lN=w())==null?void 0:lN.value)!=null?wW:!1},L=function(){_.ZR(_.K6("booleanEntity",n(),{key:n(),
value:!0}));S=void 0};
V=_.U(_.Ux(N));var e=V.next().value,k=V.next().value;V=_.U(_.Ux(N));var X=V.next().value,r=V.next().value;V=_.U(_.Ux(function(){var lN;return N()?(lN=l().styleTransitionConfig)==null?void 0:lN.destinationStyle:void 0}));
var E=V.next().value,D=V.next().value,Z=function(){var lN=Object.assign({},l(),E()&&{style:E()}),wW,o1,h1=lN.label,ec=(wW=lN.interaction)==null?void 0:(o1=wW.accessibility)==null?void 0:o1.label;wW=lN.iconImage?lN.label&&lN.label.content?lN.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:h1,accessibilityLabel:ec,style:csW(lN.style),type:WXJ(lN.style),state:"active",size:Qfg(lN.size),iconPosition:wW,disabled:!1,aTagConfig:Ry1(lN,I)}},S;
_.gT(x,{visibilityCallback:function(lN){var wW,o1=(wW=l().interaction)==null?void 0:wW.onFirstVisible;lN&&o1&&_.EI(o1)},
showOption:_.U6});var p=function(){return kDq(Z(),!!l().iconImage)};
H=_.ii(function(){return"ytwAdButtonViewModelHost"},function(){return l().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var lN=!!l().delayedAppearanceConfig,wW=e();
return lN?wW?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var lN=!!l().delayedAppearanceConfig,wW=X();
return lN?wW?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!l().delayedAppearanceConfig||e()?T==null?void 0:T():""},H!=null?H:"");
var Vf=function(){var lN,wW=(lN=l().delayedAppearanceConfig)==null?void 0:lN.delayedInvisibleSeconds;wW&&(S=_.L6(_.r0,function(){k(!0);C()},wW*1E3))},C=function(){var lN,wW=(lN=l().delayedAppearanceConfig)==null?void 0:lN.delayedVisibleSeconds;
wW&&(S=_.L6(_.r0,function(){r(!0);By()},wW*1E3))},By=function(){var lN,wW=(lN=l().styleTransitionConfig)==null?void 0:lN.styleTransitionSeconds,o1,h1=(o1=l().styleTransitionConfig)==null?void 0:o1.destinationStyle;
wW&&h1?S=_.L6(_.r0,function(){D(h1);L()},wW*1E3):L()};
_.XW(function(){var lN;((lN=l().delayedAppearanceConfig)==null?0:lN.transitionDurationSeconds)&&x.value.style.setProperty("transition-duration",l().delayedAppearanceConfig.transitionDurationSeconds+"s");Vf()});
_.rx(function(){S&&_.r0.cancelJob(S)});
return _.Y("ad-button-view-model",{class:H,el:x},_.Y(_.NS,{cond:Z,then:function(){return _.Y(IJ,{data:Z,icon:function(){return _.Y(_.NS,{cond:function(){return l().iconImage},
then:function(lN){return _.Y(_.cX,{data:lN,alt:"",targetWidth:p,targetHeight:p,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"na");var yS0=_.W1(function(V){var l=V.data;V=_.sZ();_.gT(V,{visibilityCallback:function(I){var H,T=(H=l().interaction)==null?void 0:H.onFirstVisible;I&&T&&_.EI(T)},
showOption:_.U6});return _.Y("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:V},_.Y("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.Y(_.rw,{data:function(){return l().secondaryAdButton}},{adButtonViewModel:function(I){return _.Y(_.$3,{data:I.data})}})),_.Y("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.Y(_.rw,{data:function(){return l().primaryAdButton}},{adButtonViewModel:function(I){return _.Y(_.$3,{data:I.data})}})))},"oa");var tw3=_.W1(function(V){var l=function(){var I;return((I=V.data())==null?void 0:I.answers)||[]};
return _.Y("yt-survey-icons",{class:"ytSurveyIconsHost"},_.Y("div",{class:"ytSurveyIconsHeader"},_.Y("div",{class:"ytSurveyIconsTitle"},function(){var I;return(I=V.data())==null?void 0:I.text}),_.Y("div",null,_.Y(IJ,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var I;(I=V.onDismiss)==null||I.call(V)}}},
iconName:"DISMISSAL"}))),_.Y("div",null,_.Y("div",{class:"ytSurveyIconsAnswers"},_.Y(_.Ks,{each:function(){return l()},
keyBy:"INDEX"},function(I,H){return _.Y("div",null,_.Y(IJ,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var T;(T=V.onSelect)==null||T.call(V,I(),H)}}},
icon:function(){return _.Y(_.dq,{icon:function(){var T,x;return(T=I())==null?void 0:(x=T.icon)==null?void 0:x.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.Y("div",{class:"ytSurveyIconsAnswersText"},_.Y("div",null,function(){return l().length?l()[0].text:""}),_.Y("div",null,function(){return l().length?l()[l().length-1].text:""}))))},"pa");var rS0=_.W1(function(V){var l=_.U(_.xi(!1,void 0,"s8HkOb")),I=l.next().value,H=l.next().value,T=_.dw(f2f,function(){var w;return(w=V.data().keys)==null?void 0:w.surveyEntityKey}),x=_.dw(g5J,function(){var w;
return(w=V.data().keys)==null?void 0:w.surveyStateEntityKey});
_.M4("ytd-slimline-survey-show-action",function(){H(!1)});
var n=function(){var w,N;var L=(w=x())==null?void 0:(N=w.questionStack)==null?void 0:N[0];if(L!==void 0){var e,k;return(e=T())==null?void 0:(k=e.questions)==null?void 0:k[L]}};
l={};return _.Y("yt-slimline-survey-view-model",{class:_.ii("ytSlimlineSurveyViewModelHost",(l.ytSlimlineSurveyViewModelCollapsed=function(){return I()},l))},_.Y("div",{class:"ytSlimlineSurveyViewModelContainer"},_.Y(_.NS,{cond:function(){var w;
return((w=n())==null?void 0:w.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.Y(tw3,{data:function(){return n()},
onSelect:function(w,N){var L,e;return _.d(function(k){H(!0);if(e=(L=V.data())==null?void 0:L.onSelectRating)_.EI(e),_.ZR(I5J(N));_.FU(k)})},
onDismiss:function(){H(!0)}})}})))},"qa");var Gz0=_.W1(function(V){return _.Y("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.Y(_.rw,{data:function(){var l;return(l=V.data())==null?void 0:l.attachments}},{flexibleActionsViewModel:function(l){return _.Y("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Y(HpB,{data:l.data,
layout:function(){var I;return((I=V.lockupStyle())==null?void 0:I.arrangement)===1?0:1},
justifyContentOverride:function(){var I;return((I=V.lockupStyle())==null?void 0:I.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(l){return _.Y("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Y(rS0,{data:l.data}))},
expandableMetadataViewModel:function(l){l=l.data;var I;return _.Y("div",{class:"ytLockupAttachmentsViewModelAttachment"},(I=_.F().resolve(_.Cs(zAJ)))==null?void 0:I({data:l}))},
adButtonGroupViewModel:function(l){return _.Y("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Y(yS0,{data:l.data}))}}))},"ra");var Asc=_.g7("rich_grid_min_item_width",310),sfT=_.g7("rich_grid_max_item_width",500);var IOt=_.W1(function(V){var l=V.data;return _.Y("br-nz-badge-shape",{class:_.ii(function(){return mjK(l().brNzRatingBadgeType)}),
role:function(){return l().accessibilityText?"img":void 0},
"aria-label":function(){return l().accessibilityText}},function(){var I;
return(I=l())==null?void 0:I.text})},"sa");_.m5(Ho3);var EaZ,OfK;EaZ=_.W1(function(V){var l=function(){var I=V.data(),H,T;return I?lOt(I,!((H=V.workaroundShortsIsThumbnailBadge)==null||!H.call(V)),(T=V.modern)==null?void 0:T.call(V)):void 0};
return _.Y("yt-badge-view-model",{class:_.ii("yt-badge-view-model-wiz",V.class)},_.Y(_.YG,null,_.Y(_.jN,{when:function(){var I;return!((I=l())==null||!I.brNzRatingBadgeType)}},function(){return _.Y(IOt,{data:function(){return l()}})}),_.Y(_.jN,{when:function(){return!!l()&&!l().brNzRatingBadgeType}},function(){return _.Y(_.mw,{data:function(){return l()}})})))},"ta");
OfK=_.z("web_enable_sink_lockups_batch")?EaZ:Ho3;_.dn=_.z("web_enable_sink_lockups_batch")?EaZ:_.I2(Ho3);EaZ.idomCompat=!0;var BBK,TBN;BBK=16/9;TBN=2/3;_.wn=_.W1(function(V){var l=V.data;var I=V.className;var H=V.imageSizeConfig;var T=V.notifyOnLoaded;V=_.sZ();var x=function(){return l().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},n=function(){var e;
return _.sB((e=l())==null?void 0:e.rendererContext)},w={};
w=(w["yt-content-preview-image-view-model-wiz"]=!0,w["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return x()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},w["yt-content-preview-image-view-model-wiz--tappable"]=function(){return n()},w);
var N=function(){var e,k;return(k=(e=_.y(l().rendererContext,_.uP))==null?void 0:e.label)!=null?k:""},L=function(){return U5y(l())};
_.A9(V,function(){var e;return(e=l())==null?void 0:e.rendererContext});
return _.Y("yt-content-preview-image-view-model",{el:V,role:function(){return n()?"link":void 0},
tabindex:function(){return n()?0:void 0},
class:_.ii(I,w,function(){var e=x();var k=H==null?void 0:H();e=e==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||e==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||e==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||e==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(k==null?void 0:k.size)!=null&&k.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(k==null?void 0:k.size)!=null&&k.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 e}),
style:function(){return x5W(x(),l().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",H==null?void 0:H(),nxq(L()),l().layoutWidth,l().layoutHeight)}},_.Y(_.NS,{cond:L,
then:function(e){return _.Y(_.cX,{data:e,alt:N,"data-disabled$":function(){return!N()},
notifyOnLoaded:T})}}),_.Y(_.rw,{data:function(){var e;
return(e=l())==null?void 0:e.overlays}},{thumbnailHoverOverlayViewModel:iJi,
thumbnailOverlayButtonViewModel:_.B2}))},"ua");
_.wn.idomCompat=!0;var oaZ=_.W1(function(V){var l=V.data;var I=V.className;var H=V.useSmallLayout;var T=V.useMediumText;V=_.sZ();var x={};T=(x["yt-attribution-view-model-wiz"]=!0,x["yt-attribution-view-model-wiz--medium-text"]=T,x);_.A9(V,function(){var n;return(n=l())==null?void 0:n.rendererContext});
return _.Y("yt-attribution-view-model",{el:V,class:_.ii(I,T)},_.Y(_.NS,{cond:function(){return _.sB(l().rendererContext)},
then:function(){return _.Y("button",{class:"yt-attribution-view-model-wiz--tappable"},_.Y(JSb,{data:l,useSmallLayout:H}))},
else:function(){return _.Y(JSb,{data:l,useSmallLayout:H})}}))},"va"),JSb=_.W1(function(V){var l=V.data;
var I=V.useSmallLayout;var H=function(){return{size:(I==null?0:I())?16:24}};
return _.Y(_.CN,null,_.Y(_.rw,{data:function(){return l().contentPreviewImage}},{contentPreviewImageViewModel:function(T){return _.Y(_.wn,{data:T.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:H})}}),_.Y(_.rw,{data:function(){return l().badge}},{badgeViewModel:function(T){return _.Y(_.dn,{data:T.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.Y(_.NS,{cond:function(){return l().text},
then:function(){return _.Y(_.Ni,{text:function(){return l().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.Y(_.NS,{cond:function(){return l().suffix},
then:function(){return _.Y(_.Ni,{text:function(){return l().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"wa");
oaZ.idomCompat=!0;var YW1=_.FR({avatarStackViewModel:_.BBZ,badgeViewModel:OfK});_.m5(k_1);var hAN,PaZ,DpE,ZLb,Syb,RAW,QcE;hAN=_.W1(function(V){var l=V.delimiter;var I=V.max;var H=V.index;var T=V.isStandalone;return _.Y(_.NS,{cond:function(){return I()-1>H()},
then:function(){var x={};return _.Y("span",{class:_.ii("yt-content-metadata-view-model-wiz__delimiter",(x["yt-content-metadata-view-model-wiz__delimiter--standalone"]=T,x)),"aria-hidden":!0},l)}})},"xa");
PaZ=_.W1(function(V){var l=V.metadataPart;var I=V.maxLines;return _.Y(_.Ni,{text:function(){return l().text},
linkInheritColor:!0,className:function(){return Fgw(I())},
userInput:!0})},"ya");
DpE=_.W1(function(V){var l=V.metadataPart;var I=V.maxLines;return _.Y(_.CN,null,_.Y(_.NS,{cond:function(){return l().tooltip},
then:function(H){return _.Y("span",{title:H,role:"tooltip"},_.Y(PaZ,{metadataPart:l,maxLines:I}))},
else:function(){return _.Y(PaZ,{metadataPart:l,maxLines:I})}}))},"za");
ZLb=_.W1(function(V){var l=V.metadataPart;var I=V.isOverlay;var H=V.useMediumText;var T=V.hideAvatar;var x=function(){return l().maxLines!==void 0?l().maxLines:1};
return _.Y(_.CN,null,_.Y(_.rw,{data:function(){return l().avatarStack}},{avatarStackViewModel:function(n){return _.Y(_.x5b,{data:n.data,
isOverlay:I,useMediumText:H,hideAvatar:T})},
badgeViewModel:_.dn}),_.Y(_.NS,{cond:function(){return l().text},
then:function(){return _.Y(DpE,{metadataPart:l,maxLines:x})}}))},"Aa");
Syb=_.W1(function(V){var l=V.metadataRow;var I=V.isInline;var H=V.delimiter;var T=V.isOverlay;var x=V.useMediumText;var n=V.extensions;var w=function(){var N;return d5t(n==null?void 0:(N=n())==null?void 0:N.lockupMetadata,l())};
V={};return _.Y("div",{class:_.ii("yt-content-metadata-view-model-wiz__metadata-row",(V["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=I,V["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var N;return wLc(n==null?void 0:(N=n())==null?void 0:N.lockupMetadata,l())},V["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var N;
return!!(n==null?0:(N=n())==null?0:N.lockupMetadata)&&l().badges},V))},_.Y(_.rw,{data:function(){return l().badges}},{badgeViewModel:function(N){return _.Y("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.Y(_.dn,{data:N.data}))}}),_.Y(_.Ks,{each:function(){return l().metadataParts||[]}},function(N,L){return _.Y(_.CN,null,_.Y(ZLb,{metadataPart:N,
isOverlay:T,useMediumText:x,hideAvatar:w}),_.Y(hAN,{delimiter:H,max:function(){return l().metadataParts.length},
index:L,isStandalone:!1}))}),_.Y(_.NS,{cond:function(){return l().isSpacerRow&&!I()},
then:function(){return _.Y("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ba");
RAW=_.W1(function(V){var l=_.Rj(V,{layout:0,isOverlay:!1});V=l.className;var I=l.data,H=l.layout,T=l.isOverlay,x=l.useMediumText,n=l.extensions;l=_.sZ();var w=function(){return H()===0};
_.A9(l,function(){return I().rendererContext});
var N={};return _.Y("yt-content-metadata-view-model",{class:_.ii(V,"yt-content-metadata-view-model-wiz",(N["yt-content-metadata-view-model-wiz--inline"]=w,N["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.sB(I().rendererContext)},N["yt-content-metadata-view-model-wiz--medium-text"]=x,N)),
el:l},_.Y(_.Ks,{each:function(){return I().metadataRows}},function(L,e){return _.Y(_.CN,null,_.Y(Syb,{metadataRow:L,
isInline:w,delimiter:function(){return I().delimiter},
isOverlay:T,useMediumText:x,extensions:n}),_.Y(_.NS,{cond:function(){return w()&&!L.isSpacerRow},
then:function(){return _.Y(hAN,{delimiter:function(){return I().delimiter},
max:function(){return I().metadataRows.length},
index:e,isStandalone:!0})}}))}))},"Ca");
QcE=_.z("web_enable_sink_lockups_batch")?RAW:k_1;_.cSJ=_.z("web_enable_sink_lockups_batch")?RAW:_.I2(k_1);RAW.idomCompat=!0;var VO=_.FR({avatarViewModel:_.hy,decoratedAvatarViewModel:HoW,contentMetadataViewModel:QcE,buttonViewModel:_.Db,attributionViewModel:oaZ,lockupAttachmentsViewModel:Gz0});_.m5(yh1);var Wr0=_.W1(function(V){var l={};return _.Y("yt-lockup-metadata-view-model",{class:_.ii("yt-lockup-metadata-view-model-wiz",function(){a:{var I=V.lockupStyle();if(I==null?0:I.isOverlay)I="yt-lockup-metadata-view-model-wiz--overlay";else switch(I==null?void 0:I.arrangement){case 1:I="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:I="yt-lockup-metadata-view-model-wiz--vertical"}}return I},function(){a:{var I=V.lockupStyle();
if(I==null?0:I.isTiny)I="yt-lockup-metadata-view-model-wiz--tiny";else switch(I==null?void 0:I.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":I="yt-lockup-metadata-view-model-wiz--compact";break a;default:I="yt-lockup-metadata-view-model-wiz--standard"}}return I},(l["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var I;
return(I=V.lockupStyle())==null?void 0:I.isOverlay},l["yt-lockup-metadata-view-model-wiz--card"]=function(){var I;
return(I=V.lockupStyle())==null?void 0:I.isCard},l["yt-lockup-metadata-view-model-wiz--centered"]=function(){var I;
return(I=V.lockupStyle())==null?void 0:I.isCentered},l["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var I;
return(I=V.lockupStyle())==null?void 0:I.typographyBump},l["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var I;
return(I=V.lockupStyle())==null?void 0:I.useLegacyTypography},l["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var I;
return(I=V.lockupStyle())==null?void 0:I.useRichGridLegacyTypography},l))},_.Y(_.rw,{data:function(){return V.data().image}},{avatarViewModel:function(I){return _.Y("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Y(_.SA,{data:I.data}))},
decoratedAvatarViewModel:function(I){return _.Y("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Y(_.R_,{data:I.data}))}}),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.Y("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var I;return(I=V.data().title)==null?void 0:I.content}},_.Y(_.NS,{cond:function(){return V.data().title},
then:function(I){return _.Y(_.wq,{command:V.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:V.lockupAccessibilityLabel},_.Y(_.Ni,{text:I}))}})),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.Y(_.rw,{data:function(){return V.data().metadata}},{contentMetadataViewModel:function(I){return _.Y(_.cSJ,{data:I.data,
layout:1,useMediumText:function(){var H,T;return((H=V.lockupStyle())==null?void 0:H.typographyBump)||((T=V.lockupStyle())==null?void 0:T.useRichGridLegacyTypography)},
extensions:function(){var H,T;return{lockupMetadata:{byline:{hideAvatar:((H=V.lockupStyle())==null?void 0:H.arrangement)===0,addPadding:((T=V.lockupStyle())==null?void 0:T.arrangement)===1}}}}})}})),_.Y(_.rw,{data:function(){return V.data().attribution}},{attributionViewModel:function(I){return _.Y("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.Y(oaZ,{data:I.data,
useSmallLayout:!0}))}}),_.Y("div",null,_.Y(_.rw,{data:function(){return V.data().attachmentSlot}},{lockupAttachmentsViewModel:function(I){return _.Y(Gz0,{data:I.data,
lockupStyle:V.lockupStyle})}}))),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.Y(_.rw,{data:function(){return V.data().menuButton}},{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
buttonOverrides:function(){var H;return((H=V.lockupStyle())==null?0:H.isOverlay)?{style:"overlay"}:void 0}})}})))},"Da"),bLW=_.z("web_enable_sink_lockups_batch")?Wr0:_.I2(yh1);
Wr0.idomCompat=!0;var qya=_.W1(function(V){var l=_.sZ();_.kG(function(){requestAnimationFrame(function(){_.MD(l.value)})});
var I={},H={},T={};return _.Y("notification-multi-action-renderer",{class:_.ii("ytNotificationMultiActionRendererHost",(I.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var x;return(x=V.useLegacyShelfStyle)==null?void 0:x.call(V)},I)),
el:l},_.Y("span",{"aria-live":"polite",class:_.ii("ytNotificationMultiActionRendererTextContainer",(H.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var x;return(x=V.useLegacyShelfStyle)==null?void 0:x.call(V)},H))},_.Y(_.Ni,{text:function(){return V.data().responseText}})),_.Y("div",{class:_.ii("ytNotificationMultiActionRendererButtonContainer",(T.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var x;
return(x=V.useLegacyShelfStyle)==null?void 0:x.call(V)},T))},_.Y(_.rw,{data:function(){var x;
return(x=V.data().buttons)==null?void 0:x.map(function(n){if(n=n.buttonRenderer){var w,N=Object,L=N.assign,e=(w=n.icon)==null?void 0:w.iconType;w=(w=n.command||n.serviceEndpoint||n.navigationEndpoint)?{innertubeCommand:w}:void 0;n={buttonViewModel:L.call(N,{},{iconName:e,onTap:w,trackingParams:n.trackingParams,titleFormatted:n.text?_.Fo(n.text):void 0},tIK(n))}}else n=void 0;return n}).filter(function(n){return!!n})}},{buttonViewModel:function(x,n){return _.Y("div",null,_.Y(_.Db,{data:x.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var w;return((w=V.useModernStyles)==null?0:w.call(V))?{type:n()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ea");var Mw0=_.W1(function(V){var l=_.sZ();_.kG(function(){requestAnimationFrame(function(){_.MD(l.value)})});
return _.Y("notification-text-renderer",{el:l,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.Y(_.Ni,{text:function(){return V.data().successResponseText}}))},"Fa");_.sca=_.W1(function(V){var l=_.dw(h9T,function(){var H;return rht((H=V.contentId)==null?void 0:H.call(V))}),I=function(){var H;
return _.y((H=l())==null?void 0:H.command,_.zj)};
return _.Y(_.NS,{cond:function(){var H;if(!(H=I())){var T;H=_.y((T=l())==null?void 0:T.command,TRZ)}return H},
then:function(){return _.Y(_.NS,{cond:I,then:function(){var H={};return _.Y("div",{class:_.ii("ytDismissibleItemReplacedContent",function(){var T;return G_W((T=V.aspectRatio)==null?void 0:T.call(V))})},_.Y("div",{class:_.ii((H.ytDismissibleItemAspectRatioContainer=function(){var T;
return((T=V.aspectRatio)==null?void 0:T.call(V))!==void 0},H))},_.Y(_.rw,{data:function(){var T;
return(T=I())==null?void 0:T.item}},{notificationMultiActionRenderer:function(T){return _.Y(qya,{data:T.data,
useModernStyles:V.useModernStyle,useLegacyShelfStyle:V.useLegacyShelfStyle})},
notificationTextRenderer:Mw0})))}})},
else:V.children})},"Ga");_.pDa=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;V=_.pO();var H=function(){var x;return((x=l().interaction)==null?0:x.onTap)?function(n){var w;SiJ(n,(w=l().interaction)==null?void 0:w.onTap,I)}:void 0},T=function(){var x,n=l(),w=H(),N=(x=_.y(l().rendererContext,_.uP))==null?void 0:x.label;
a:switch(n.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":x=1;break a;default:x=0}return{size:oxJ(n.size),type:x,onTap:w,accessibilityText:N}};
_.gT(V,{visibilityCallback:function(x){var n,w=(n=l().interaction)==null?void 0:n.onFirstVisible;x&&w&&_.EI(w)},
showOption:_.U6});return _.Y("ad-avatar-view-model",{class:function(){var x;return((x=l().interaction)==null?0:x.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:V},_.Y(_.NS,{cond:function(){return l().image},
then:function(x){return _.Y(vK,{data:T,image:x})}}))},"Ha");_.Ns=_.W1(function(V){V=_.Rj(V,{hasDot:!1});var l=Object.assign({},V),I=V.data,H=V.hasDot;V=V.customCommandResolver;var T=(delete l.data,delete l.hasDot,delete l.customCommandResolver,l);l=function(){return I().style};
l!==void 0&&l!==null||_.Rw(Error("Gh"));l=_.sZ();_.f6(l,function(){return I().interaction},V);
return _.Y("ad-badge-view-model",{class:_.ii(function(){var x;return((x=I().interaction)==null?0:x.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var x=T.adRenderingContextType();
I();return x==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:l},_.Y(_.mw,{data:function(){var x;I();var n=(x=I().label)==null?void 0:x.content;x=H();var w=I().style==="AD_BADGE_STYLE_STARK_OVERLAY";return{type:2,text:n,adsIncludeDot:x,isOverlay:w}}}))},"Ia");var ASZ;_.KP=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;var H=V.adRenderingContextType;V=_.sZ();_.f6(V,function(){return l().interaction},I);
_.gT(V,{visibilityCallback:function(T){var x,n=(x=l().interaction)==null?void 0:x.onFirstVisible;T&&n&&_.EI(n)},
showOption:_.U6});return _.Y("ad-details-line-view-model",{class:function(){var T;return((T=l().interaction)==null?0:T.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:V},_.Y(_.NS,{cond:function(){return l().style},
then:function(T){return _.Y(_.Ks,{each:function(){var x;return((x=l())==null?void 0:x.attributes)||[]},
keyBy:"INDEX"},function(x){return _.Y(ASZ,{attribute:x,style:T,adRenderingContextType:function(){return H()}})})}}))},"Ja");
ASZ=_.W1(function(V){var l=V.attribute;var I=V.style;var H=V.adRenderingContextType;return _.Y(_.NS,{cond:function(){return l().text},
then:function(T){return _.Y(_.Ni,{text:T,className:function(){var x=H();I();return x==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ka");var uw3=_.W1(function(V){var l=V.data;var I=function(){return l().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
return _.Y(_.CN,null,_.Y("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.Y(_.Ni,{text:function(){return l().headline},
className:function(){return I()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline"},
linkInheritColor:!0}),_.Y(_.NS,{cond:function(){return l().description},
then:function(H){return _.Y(_.Ni,{text:H,className:function(){return I()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription"},
linkInheritColor:!0})}}),_.Y("div",{class:function(){return I()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.Y(_.rw,{data:function(){return l().adBadge}},{adBadgeViewModel:function(H){return _.Y(_.Ns,{data:H.data,
hasDot:function(){return!!l().adDetailsLine},
adRenderingContextType:function(){return l().adRenderingContextType}})}}),_.Y(_.rw,{data:function(){return l().adDetailsLine}},{adDetailsLineViewModel:function(H){return _.Y(_.KP,{data:H.data,
adRenderingContextType:function(){return l().adRenderingContextType}})}}))),_.Y("div",{class:function(){return I()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.Y(_.rw,{data:function(){return l().menu}},{buttonViewModel:function(H){return _.Y(_.Db,{data:H.data,
buttonOverrides:function(){a:switch(l().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var T="S";break a;default:T="M"}return{size:T}}})}})))},"La"),vaJ=_.W1(function(V){var l=V.data;
var I=V.noBottomMargin;var H=V.useVideoLockupTopPadding;V={};V=_.ii("ytwFeedAdMetadataViewModelHostMetadata",(V.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return I==null?void 0:I()},V.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return H==null?void 0:H()},V));
var T=function(){return l().adBadge};
T!==void 0&&T!==null||_.Rw(Error("Hh"));T={};return _.Y(_.CN,null,_.Y(_.NS,{cond:function(){return l().adAvatar},
then:function(){return _.Y("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.Y(_.rw,{data:function(){return l().adAvatar}},{adAvatarViewModel:function(x){return _.Y(_.pDa,{data:x.data})}}))}}),_.Y("div",{class:V},_.Y("div",{class:"ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline"},_.Y(_.Ni,{text:function(){return l().headline},
linkInheritColor:!0})),_.Y(_.NS,{cond:function(){return l().description},
then:function(x){return _.Y(_.Ni,{text:x,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.Y("div",{class:function(){return l().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.z("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.Y(_.rw,{data:function(){return l().adBadge}},
{adBadgeViewModel:function(x){return _.Y(_.Ns,{data:x.data,
hasDot:function(){return!!l().adDetailsLine},
adRenderingContextType:function(){return l().adRenderingContextType}})}}),_.Y(_.rw,{data:function(){return l().adDetailsLine}},{adDetailsLineViewModel:function(x){return _.Y(_.KP,{data:x.data,
adRenderingContextType:function(){return l().adRenderingContextType}})}})),_.Y(_.NS,{cond:function(){return l().secondaryDescription},
then:function(x){return _.Y(_.Ni,{text:x,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.Y("div",{class:_.ii("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(T.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return H==null?void 0:H()},T))},_.Y(_.rw,{data:function(){return l().menu}},{buttonViewModel:_.Db})))},"Ma"),OLZ=_.W1(function(V){var l=V.data;
var I=V.noBottomMargin;var H=V.listenToTapEvent;var T=V.setTouchEndHandler;var x=V.useVideoLockupTopPadding;var n=_.sZ();_.f6(n,function(){return l().interaction},void 0,function(){return H==null?void 0:H()});
V=_.U(_.xi(!1,void 0,"rVW2Qd"));var w=V.next().value,N=V.next().value;V=_.Bu(function(){(T==null?0:T())&&!w()&&(n.value.click(),N(!0),setTimeout(function(){N(!1)},100));
return!1});
_.gT(n,{visibilityCallback:function(L){var e,k=(e=l().interaction)==null?void 0:e.onFirstVisible;L&&k&&_.EI(k)},
showOption:_.U6});return _.Y("feed-ad-metadata-view-model",{class:function(){var L;return((L=l().interaction)==null?0:L.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:n,"on:touchend":V},_.Y(_.YG,null,_.Y(_.jN,{when:function(){return l().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.Y(uw3,{data:l})}),_.Y(_.jN,{when:function(){return l().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.Y(vaJ,{data:l,
noBottomMargin:I,useVideoLockupTopPadding:x})})))},"Na");var jG=_.W1(function(V){return _.Y("yt-lockup-view-model",{class:_.ii(V.className)},_.Y(_.sca,{contentId:function(){return V.data().contentId},
useModernStyle:!0,aspectRatio:function(){var l,I;return((l=V.containerType)==null?void 0:l.call(V))!==3?f_N(V.data().contentType,(I=V.force16By9ThumbnailAspectRatio)==null?void 0:I.call(V)):void 0}},function(){return _.Y(Cao,Object.assign({},V))}))},"Oa"),Cao=_.W1(function(V){V=_.Rj(V,{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 l=V.data,I=V.containerLayoutConfig,H=V.containerType,T=V.sizing,x=V.protectBackground,n=V.typographyBump,w=V.force16By9ThumbnailAspectRatio,N=V.thumbnailFixedWidth,L=V.thumbnailTargetWidth,e=V.lockupExperiments,k=V.elementsPerRow;V=_.sZ();_.A9(V,function(){var ec;return(ec=l())==null?
void 0:ec.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL"],!0);var X=_.rq(Naw),r=_.F().resolve(_.Cs(naa)),E=r?{}:void 0,D=function(){var ec,Zg,Va;return(Va=(Zg=_.y((ec=l())==null?void 0:ec.rendererContext,_.uP))==null?void 0:Zg.label)!=null?Va:void 0},Z=function(){var ec=I==null?void 0:I(),Zg;
if(ec==null?0:ec.containerType){var Va=(Zg=l())==null?void 0:Zg.contentType;Zg=e();var wb=n(),CK=L(),CZ=x();ec=Object.assign({},gWK(OJT(ec),uqK(ec.responsiveSize),wb,Va,ec.force16By9ThumbnailAspectRatio,CK,CZ,Zg),{thumbnailFixedWidth:ec.contentPreviewWidth})}else ec=gWK(H(),T(),n(),(Va=l())==null?void 0:Va.contentType,w(),L(),x(),e());return ec};
r&&E&&r({enabled:function(){return X()},
itemPlaybackModel:function(){return l().itemPlayback},
thumbnailElRef:function(){return E.thumbnailElRef},
containerElRef:V,options:function(){var ec,Zg=(ec=_.y(l().metadata,DBN))==null?void 0:ec.endorsement;ec=E.thumbnailOverlays||[];Zg&&ec.push(Zg);var Va,wb;return{thumbnail:E.thumbnail,thumbnailOverlays:ec,accessibilityText:D(),thumbnailSize:E.thumbnailSize,enableRounding:Z().isCollection,containPlayerWithinThumbnail:Z().isCollection,trackingParams:(Va=_.y(l().rendererContext,_.Pjc))==null?void 0:(wb=Va.loggingDirectives)==null?void 0:wb.trackingParams}}});
var S=0;r=_.U(_.xi(!1,void 0,"HzAs3"));var p=r.next().value,Vf=r.next().value;r=_.U(_.xi(!1,void 0,"ujOXud"));var C=r.next().value,By=r.next().value;r=_.Bu(function(){var ec=X()&&l().itemPlayback;C()?(_.r0.cancelJob(S),S=_.r0.addJob(function(){Vf(!ec)},8,32)):Vf(!ec);
return!0});
_.AF(V,"mouseleave",function(){S&&(_.r0.cancelJob(S),S=0);Vf(!1)});
_.rx(function(){S&&(_.r0.cancelJob(S),S=0)});
var lN=JhW(function(){By(!0)}),wW=lN.touchFeedbackEvents,o1=lN.touchFeedbackOnPointerUp,h1=lN.touchFeedbackOnPointerDown;
_.AF(V,"pointerleave",lN.touchFeedbackOnPointerLeave);lN={};return _.Y("div",{el:V,class:_.ii("yt-lockup-view-model-wiz",function(){a:{var ec=Z();if(ec.isOverlay)ec="yt-lockup-view-model-wiz--overlay";else switch(ec.arrangement){case 1:ec="yt-lockup-view-model-wiz--horizontal";break a;default:ec="yt-lockup-view-model-wiz--vertical"}}return ec},function(){a:{var ec=Z();
if(ec.isOverlay)ec="yt-lockup-view-model-wiz--overlay";else{switch(ec.collectionStackNumber){case 1:ec="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:ec="yt-lockup-view-model-wiz--collection-stack-2";break a}ec=void 0}}return ec},(lN["yt-lockup-view-model-wiz--card"]=function(){return Z().isCard},lN["yt-lockup-view-model-wiz--compact"]=function(){return Z().isTiny||Z().sizing!=="STANDARD"},lN["yt-lockup-view-model-wiz--protect-background"]=x,lN["yt-lockup-view-model-wiz--add-margins"]=
function(){return Z().addMarginForFullbleed},lN["yt-lockup-view-model-wiz--centered"]=function(){return Z().isCentered},lN["yt-lockup-view-model-wiz--fullbleed"]=function(){return Z().fullbleed},lN["yt-lockup-view-model-wiz--single-column-grid"]=function(){return k()===1&&H()===2},lN["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var ec;
return(ec=e())==null?void 0:ec.useRichGridLegacyMargin},lN)),
"on:mousedown":h1,"on:mouseup":o1,"on:mouseover":r,"on:touchstart":h1,"on:touchend":o1},_.Y(_.wq,{command:function(){var ec;return _.M7((ec=l())==null?void 0:ec.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return N()&&Z().arrangement===1?"width: "+N():""}},_.Y(_.rw,{data:function(){var ec;
return(ec=l())==null?void 0:ec.contentImage}},{thumbnailViewModel:function(ec){return _.Y(x3,{data:ec.data,
aspectRatio:function(){return Z().aspectRatio},
disableRounding:function(){return Z().disableRounding},
width:L,hovered:p,isClip:function(){var Zg;return((Zg=l())==null?void 0:Zg.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:djW(E),lockupExperiments:function(){return e()}})},
collectionThumbnailViewModel:function(ec){return _.Y(XDN,{data:ec.data,aspectRatio:function(){return Z().aspectRatio},
disableRounding:function(){return Z().disableRounding},
doubleStack:function(){return Z().collectionStackNumber===2},
hovered:p,playbackRef:djW(E)})},
decoratedAvatarViewModel:_.R_})),_.Y("div",{class:"yt-lockup-view-model-wiz__metadata"},_.Y(_.rw,{data:function(){var ec;return(ec=l())==null?void 0:ec.metadata}},{lockupMetadataViewModel:function(ec){return _.Y(bLW,{data:ec.data,
lockupStyle:Z,lockupCommand:function(){var Zg;return _.M7((Zg=l())==null?void 0:Zg.rendererContext)},
lockupAccessibilityLabel:function(){return D()}})},
feedAdMetadataViewModel:function(ec){return _.Y(OLZ,{data:ec.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0}})}}),_.Y(_.rw,{data:function(){var ec;
return(ec=l())==null?void 0:ec.attachmentSlot}},{lockupAttachmentsViewModel:function(ec){return _.Y(Gz0,{data:ec.data,
lockupStyle:Z})}})),_.Y(_.Ka,{model:function(){a:{switch(Z().collectionStackNumber){case 1:var ec=8;
break a;case 2:ec=12;break a}ec=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:ec}},
pointerDownEvent:wW.pointerDownEvent,pointerUpEvent:wW.pointerUpEvent,pointerLeaveEvent:wW.pointerLeaveEvent}))},"Pa");
jG.idomCompat=!0;_.MR(jG,"yt-lockup-view-model",{props:{data:_.b9,containerLayoutConfig:_.b9,containerType:_.b9,sizing:_.b9,protectBackground:_.b9,typographyBump:_.b9,thumbnailFixedWidth:_.b9,thumbnailTargetWidth:_.b9,force16By9ThumbnailAspectRatio:_.b9,className:_.b9,lockupExperiments:_.b9,elementsPerRow:_.b9}});_.m5(RQc);var MIN=_.FR({buttonViewModel:_.Db}),a7Z=_.I2(boJ);_.m5(boJ);_.m5(ch1);_.m5(WgT);_.MR(a7Z,"yt-video-attribute-view-model",{props:{data:_.b9,className:_.b9}});var f7Z=function(){var V=_.M.apply(this,arguments)||this;V.useHighlightStyling=_.z("web_enable_deeper_metadata_highlight_styling");V.isSearch=!1;V.JSC$12902_lastScrollContainerWidth=NaN;V.pageLoadingFromNavigation=!1;V.currentIndex=0;V.supportComponentResize=!1;return V};
_.t(f7Z,_.M);_.B=f7Z.prototype;
_.B.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}}}}}};
_.B.attached=function(){document.addEventListener("yt-page-type-changed",_.VP(this,this.onPageChange))};
_.B.detached=function(){document.removeEventListener("yt-page-type-changed",_.VP(this,this.onPageChange))};
_.B.getItemsPath=function(){return"data.cards"};
_.B.onIronResize=function(){this.updateListStyles()};
_.B.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var V;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(V=this.data)==null?void 0:V.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.z("problem_walkthrough_sd")&&!!this.centerItems};
_.B.computeCardListStyle=function(V){return V||null};
_.B.computeEmpty=function(V){return!this.get("cards.length",V)};
_.B.computeThumbnailStyle=function(V){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",V)||null};
_.B.computeHasSubtitle=function(V){return!!this.get("header.richListHeaderRenderer.subtitle",V)};
_.B.computeInitialCountNumber=function(V){return this.hasSquareMiniApp&&V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.B.computeUseFloorScrolling=function(V){return V==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.B.computeHasGameCard=function(V){return(V=this.get("cards",V))?V.some(function(l){return l.gameCardRenderer}):!1};
_.B.computeCenterHeaderTitle=function(V){return!(V==null||!V.centerHeaderTitle)};
_.B.computeHasPortraitMiniApp=function(V){return(V=V==null?void 0:V.cards)?V.some(function(l){return l.miniGameCardViewModel&&l.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.B.computeHasSquareMiniApp=function(V){return(V=V==null?void 0:V.cards)?V.some(function(l){return l.miniGameCardViewModel&&l.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.B.computeIncreasePortraitMiniAppWidth=function(V){return(V=V==null?void 0:V.cards)?V.some(function(l){var I;return l.miniGameCardViewModel&&((I=l.miniGameCardViewModel.entityRedesignExperiments)==null?void 0:I.enable11ThumbnailOnHomeShelves)})&&_.z("enable_playables_reduced_card_count"):!1};
_.B.computeHasSkinnyWidthPortraitMiniApp=function(V){return(V=V==null?void 0:V.cards)?V.some(function(l){return l.miniGameCardViewModel&&l.miniGameCardViewModel.width===135}):!1};
_.B.computeCenterItems=function(V){return!!V};
_.B.computeHasInfoPanel=function(V){var l;return V==null?void 0:(l=V.cards)==null?void 0:l.some(function(I){return I.infoPanelContentRenderer})};
_.B.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.B.getItemByIndex=function(V){var l=this.items.children;return l&&l.length>V?l[V]:void 0};
_.B.onPageChange=function(){var V=this;this.pageLoadingFromNavigation=!0;_.r0.addJob(function(){V.pageLoadingFromNavigation=!1;_.U4(V.hostElement,"yt-terminate-video-preview-action")},8)};
_.B.updateListStyles=function(){if(_.z("problem_walkthrough_sd")&&this.JSC$12902_scrollContainer!==void 0){var V=this.JSC$12902_scrollContainer.clientWidth;V!==this.JSC$12902_lastScrollContainerWidth&&(this.JSC$12902_lastScrollContainerWidth=V,_.i3(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(V*.8,415)+"px"}),_.B$(this.hostElement,"iron-resize"))}};
_.vI.Object.defineProperties(f7Z.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.z("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return _.z("kevlar_modern_sd")&&!!((V=this.data)==null?0:(l=V.cards)==null?0:(I=l[0])==null?0:I.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return!!((V=this.data)==null?0:(l=V.cards)==null?0:(I=l[0])==null?0:I.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return _.z("enable_desktop_amsterdam_info_panels")&&!!((V=this.data)==null?0:(l=V.cards)==null?0:(I=l[0])==null?0:I.infoPanelContentRenderer)}}});
var Y3=f7Z;Y3.prototype.dataChanged=Y3.prototype.dataChanged;Y3.prototype.onIronResize=Y3.prototype.onIronResize;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.ID.YtdHorizontalListBehavior),_.a("design:type",Object)],Y3.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.R(_.SE),_.a("design:type",Object)],Y3.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Y3.prototype,"data",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Y3.prototype,"useCustomColors",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Y3.prototype,"useHighlightStyling",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.a("design:type",Object)],Y3.prototype,"cardListStyle",void 0);_.O([_.q({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.a("design:type",Boolean)],Y3.prototype,"empty",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.a("design:type",Boolean)],Y3.prototype,"hasSubtitle",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.a("design:type",Boolean)],Y3.prototype,"thumbnailStyle",void 0);_.O([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.a("design:type",Boolean)],Y3.prototype,"hasGameCard",void 0);_.O([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.a("design:type",Boolean)],Y3.prototype,"centerHeaderTitle",void 0);
_.O([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeIncreasePortraitMiniAppWidth(data)"}),_.a("design:type",Boolean)],Y3.prototype,"increasePortraitMiniAppWidth",void 0);_.O([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.a("design:type",Boolean)],Y3.prototype,"hasPortraitMiniApp",void 0);_.O([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.a("design:type",Boolean)],Y3.prototype,"hasSquareMiniApp",void 0);
_.O([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.a("design:type",Boolean)],Y3.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);_.O([_.q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.a("design:type",Boolean)],Y3.prototype,"hasInfoPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Y3.prototype,"isSearch",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y3.prototype,"inlineStructuredDescription",void 0);_.O([_.Ij("#scroll-container"),_.a("design:type",HTMLDivElement)],Y3.prototype,"JSC$12902_scrollContainer",void 0);_.O([_.q({computed:"computeInitialCountNumber(data.style.type)"}),_.a("design:type",Number)],Y3.prototype,"initialCount",void 0);_.O([_.q({computed:"computeUseFloorScrolling(data.style.type)"}),_.a("design:type",Boolean)],Y3.prototype,"useFloorScrolling",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.a("design:type",Boolean)],Y3.prototype,"centerItems",void 0);_.O([_.q(),_.a("design:type",Object)],Y3.prototype,"pageLoadingFromNavigation",void 0);_.O([_.q(),_.a("design:type",Object)],Y3.prototype,"currentIndex",void 0);_.O([_.q(),_.a("design:type",Number)],Y3.prototype,"scrollCount",void 0);_.O([_.q(),_.a("design:type",Object)],Y3.prototype,"supportComponentResize",void 0);
_.O([_.Ij("#items"),_.a("design:type",HTMLDivElement)],Y3.prototype,"items",void 0);_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y3.prototype,"onIronResize",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y3.prototype,"dataChanged",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("inlineStructuredDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Y3.prototype,"hideNavigationButton",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Y3.prototype,"modernChapters",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Y3.prototype,"hasVideoAttributeViewModels",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Y3.prototype,"modernInfoPanels",null);Y3=_.O([_.A({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Y3);
_.u(Y3,"ytd-horizontal-card-list-renderer",function(){if(SW0!==void 0)return SW0;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return SW0=V},{mode:_.Cm("kevlar_poly_si_batch_j072")?1:2});_.m5(pLf);var gaJ=_.I2(pLf);_.aN(pLf,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var mpa=function(){var V=_.M.apply(this,arguments)||this;var l,I;V.isExpanded=(I=(l=V.data)==null?void 0:l.isExpanded)!=null?I:!1;V.disableExpand=!1;V.showProminentLabel=!1;V.showRightSideLabel=!0;V.toggleExpandableContent=function(H){V.disableExpand||(H.stopPropagation(),_.Mi(_.b3(H),V.hostElement,["info","expanded-subtitle"])||(V.isExpanded=!V.isExpanded,V.ytRendererBehavior.logExplicitClick(V.data),V.JSC$12915_cardList&&!_.z("expandable_metadata_a11y_fix_ks")&&_.Al(V,function(){_.qD(V.hostElement)})))};
V.useSquareThumbnail=!1;V.startX=0;return V};
_.t(mpa,_.M);_.B=mpa.prototype;_.B.computeUseSquareThumbnail=function(){var V;return(V=this.data)==null?void 0:V.useSquareThumbnail};
_.B.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"}}}}};
_.B.dataChanged=function(){if(this.data){var V,l;this.isExpanded=(l=(V=this.data)==null?void 0:V.isExpanded)!=null?l:!1;var I,H,T,x;if(V=this.isDarkTheme()?(I=this.data)==null?void 0:(H=I.colorData)==null?void 0:H.darkColorPalette:(T=this.data)==null?void 0:(x=T.colorData)==null?void 0:x.lightColorPalette){var n,w;if((n=this.data)==null?0:(w=n.colorData)==null?0:w.vibrantColorPalette)V.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Xp(this.hostElement,V)}}};
_.B.isExpandedChanged=function(){this.isExpanded&&this.JSC$12915_cardList&&_.B$(this.JSC$12915_cardList,"iron-resize")};
_.B.computeIsExpanded=function(V){return!!V.isExpanded};
_.B.computeShowProminentLabel=function(V,l){var I;return!!(V==null?0:(I=V.header)==null?0:I.showLeadingCollapsedLabel)&&!l};
_.B.computeShowRightSideLabel=function(V,l){var I;return!(V==null?0:(I=V.header)==null?0:I.showLeadingCollapsedLabel)&&!l};
_.B.captureContentClick=function(V){if(!this.disableExpand)if(_.z("expandable_metadata_fix_killswitch")){var l=V.target;_.Gfo(l,"ytd-macro-markers-list-item-renderer")||V.stopPropagation();(l==null?void 0:l.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Mi(_.b3(V),this.hostElement,["items"])||_.qi(_.b3(V),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.B.timestampClick=function(V){V.stopPropagation();var l,I;(V=(l=this.data)==null?void 0:(I=l.header)==null?void 0:I.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(V)};
_.B.onDown=function(V){V.stopPropagation();this.startX=V.detail?V.detail.x:0};
_.B.onUp=function(V){this.skipKeyInteraction(V)&&V.stopPropagation()};
_.B.skipKeyInteraction=function(V){var l=V.target;if((l==null?void 0:l.id)==="scroll-container"||(l==null?void 0:l.id)==="items"||V.detail&&V.detail.x!==this.startX)return!0;V=_.b3(V);V=_.U(V);for(l=V.next();!l.done;l=V.next()){l=l.value;if(l===this.hostElement)break;if(l.hasAttribute&&l.hasAttribute("skip-key-interaction"))return!0}return!1};
_.B.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.vI.Object.defineProperties(mpa.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var V;return!!_.y((V=this.data)==null?void 0:V.expandedContent,aEN)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var V;return!!_.y((V=this.data)==null?void 0:V.expandedContent,ZnN)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var V,l;return!((V=this.data)==null||!V.useCustomColors)&&!((l=this.data)==null||!l.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var V,l;return!!((V=this.data)==null?0:(l=V.header)==null?0:l.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var V,l;return!!((V=this.data)==null?0:(l=V.header)==null?0:l.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var V,l;return!!((V=this.data)==null?0:(l=V.header)==null?0:l.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
var LP=mpa;LP.prototype.onUp=LP.prototype.onUp;LP.prototype.onDown=LP.prototype.onDown;LP.prototype.isExpandedChanged=LP.prototype.isExpandedChanged;LP.prototype.dataChanged=LP.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],LP.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],LP.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],LP.prototype,"isExpanded",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],LP.prototype,"disableExpand",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],LP.prototype,"isSearch",void 0);
_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],LP.prototype,"isWatch",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.a("design:type",Object)],LP.prototype,"showProminentLabel",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.a("design:type",Object)],LP.prototype,"showRightSideLabel",void 0);
_.O([_.q({value:!1,reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],LP.prototype,"hasVideoSummary",null);_.O([_.q({value:!1,reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],LP.prototype,"hasLockupViewModel",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data","isWatch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],LP.prototype,"useCustomColors",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],LP.prototype,"showInfoButton",null);_.O([_.Q("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],LP.prototype,"showTimestamp",null);_.O([_.Q("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],LP.prototype,"showExpandedSubtitle",null);
_.O([_.Q("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],LP.prototype,"showThumbnail",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],LP.prototype,"useVppShoppingDestinationStyle",null);_.O([_.q(),_.a("design:type",Object)],LP.prototype,"toggleExpandableContent",void 0);_.O([_.Ij("ytd-horizontal-card-list-renderer"),_.a("design:type",Object)],LP.prototype,"JSC$12915_cardList",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.a("design:type",Object)],LP.prototype,"useSquareThumbnail",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LP.prototype,"dataChanged",null);_.O([_.b("isExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LP.prototype,"isExpandedChanged",null);
_.O([_.W("down"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],LP.prototype,"onDown",null);_.O([_.W("up"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],LP.prototype,"onUp",null);LP=_.O([_.A({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],LP);
_.u(LP,"ytd-expandable-metadata-renderer",function(){if(NaE!==void 0)return NaE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return NaE=V},{mode:1});var iLZ,VjZ=function(){if(iLZ!==void 0)return iLZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return iLZ=V};_.yN("itemSectionRenderer","videoRenderer","ytd-video-renderer");var eG=function(){var V=_.M.apply(this,arguments)||this;V.disableExpand=!1;V.shouldShowChannelInfo=!1;V.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return V};
_.t(eG,_.M);_.B=eG.prototype;_.B.computeUseSearchUi=function(){var V,l;return this.isSearch||((V=this.data)==null?void 0:(l=V.style)==null?void 0:l.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.B.computeUseThreeLineTitle=function(){var V;return((V=this.data)==null?void 0:V.maxTitleLines)===3};
_.B.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.z("polymer_video_renderer_defer_menu")&&!BVo?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]]"}}}}}};
_.B.attached=function(){_.fY(this.hostElement,"blue-links",_.z("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.B.detached=function(){this.clearInlinePreviewHoverListeners()};
_.B.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.gP(_.h(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var V=this.get("data.buttons.buttonRenderer.serviceEndpoint"),l;V&&((l=_.y(V.commandMetadata,_.Jr))==null?0:l.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(V);this.updateInlinePreviewHoverListeners()};
_.B.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12920_inlinePreviewHoverListener=a6({mediaRenderer:this,lockupElement:this.JSC$12920_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.B.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$12920_inlinePreviewHoverListener)==null||UJ(V)};
_.B.onTextWrapperClick=function(V){var l,I,H=this.hideTranslation?(l=this.data)==null?void 0:l.untranslatedNavigationEndpoint:(I=this.data)==null?void 0:I.navigationEndpoint;l=_.Mi(_.b3(V),this.hostElement,["expandable-metadata"]);!H||l&&!_.z("expandable_metadata_fix_killswitch")||_.qi(_.b3(V),this.hostElement,["A".toString(),"BUTTON".toString()])||_.B$(this.hostElement,"yt-navigate",{endpoint:H})};
_.B.computeThumbnailWidth=function(V,l,I,H,T){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:H?T==="MASSIVE"?600:T==="BIG"?500:T==="MEDIUM"?450:420:I?360:l?128:V?210:246};
_.B.computeUseBiggerThumbs=function(V){return V&&_.z("enable_desktop_search_bigger_thumbs")};
_.B.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.B.computeVideoStyle=function(){if(_.z("enable_video_style")){var V,l;return(V=this.data)==null?void 0:(l=V.style)==null?void 0:l.value}};
_.B.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.B.handleHideItemSectionVideosByIdCommand=function(V){var l;V=(l=_.y(V,kma))==null?void 0:l.videoId;this.data&&this.data.videoId===V&&(this.isHidden=!0)};
_.B.getMetadataSnippetContainerClass=function(V){return V?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.B.computeTitleText=function(V,l,I){return V?I:l};
_.B.computeDescriptionSnippet=function(V,l,I){return V?I:l};
_.B.computeSnippetText=function(V,l,I){return V?I:l};
_.B.computeNavigationEndpoint=function(V,l){return V?l==null?void 0:l.untranslatedNavigationEndpoint:l==null?void 0:l.navigationEndpoint};
_.B.hideInlineTitleIcon=function(V,l){return V||!l};
_.vI.Object.defineProperties(eG.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 V;return(V=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?V:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$12920_inlinePreviewHoverListener)==null?0:WB(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.vI.Object.defineProperties(eG,{template:{configurable:!0,enumerable:!0,get:function(){return VjZ()}}});
var k3=eG;k3.prototype.dataChanged=k3.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],k3.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],k3.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.R(_.sE),_.a("design:type",Object)],k3.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],k3.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],k3.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],k3.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],k3.prototype,"isBackstageVideo",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],k3.prototype,"isPostCompactVideo",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],k3.prototype,"isHistory",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],k3.prototype,"isRichGridVideoPost",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],k3.prototype,"isHidden",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],k3.prototype,"isSearch",void 0);_.O([_.q({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.a("design:type",Boolean)],k3.prototype,"useSearchUi",void 0);_.O([_.q({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.a("design:type",Boolean)],k3.prototype,"useThreeLineTitle",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.a("design:type",Boolean)],k3.prototype,"useBiggerThumbs",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.a("design:type",Object)],k3.prototype,"videoStyle",void 0);_.O([_.q({computed:"computeDisableExpand(videoStyle)"}),_.a("design:type",Object)],k3.prototype,"disableExpand",void 0);
_.O([_.q({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.a("design:type",Object)],k3.prototype,"shouldShowChannelInfo",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.m_("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],k3.prototype,"biggerThumbsStyle",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.a("design:type",String)],k3.prototype,"inlineTitleIcon",void 0);_.O([_.q({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.a("design:type",Object)],k3.prototype,"computedNavigationEndpoint",void 0);_.O([_.q({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(V,l){return _.nW(V.entities,"searchVideoResultEntity",l)}}),
_.a("design:type",Object)],k3.prototype,"searchVideoResultEntity",void 0);_.O([_.Ij("ytd-thumbnail"),_.a("design:type",HTMLElement)],k3.prototype,"thumbnail",void 0);_.O([_.Ij("#dismissible"),_.a("design:type",HTMLElement)],k3.prototype,"JSC$12920_dismissibleMedia",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],k3.prototype,"dataChanged",null);
_.O([_.Q("searchVideoResultEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],k3.prototype,"hideTranslation",null);_.O([_.Q("searchVideoResultEntity"),_.a("design:type",Array),_.a("design:paramtypes",[])],k3.prototype,"hiddenBadgeGroups",null);_.O([_.Q("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],k3.prototype,"isHovered",null);k3=_.O([_.A({is:"ytd-video-renderer",disableElementRegistration:!0})],k3);
_.u(k3,"ytd-video-renderer",function(){return VjZ()},{mode:_.Cm("kevlar_poly_si_batch_j047")?1:2});var lIE=function(){var V=_.M.apply(this,arguments)||this;V.editDialog=null;V.roundedContainer=!0;V.isLoading=!1;V.isRichGrid=!1;V.isRichGridRepost=!1;V.reduceSidePaddings=_.z("reduce_side_paddings_in_shelf");V.JSC$12926_spinnerEl=null;return V};
_.t(lIE,_.M);_.B=lIE.prototype;
_.B.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"}}}};
_.B.contentTextChanged=function(){this.expander.reset()};
_.B.dataChanged=function(){var V=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var l=0,I=this.data.actions&&this.data.actions.length;l<I;l++)this.openEditDialog(_.y(this.data.actions[l],utJ));if((l=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(l=this.get("buttonRenderer.hint.hintRenderer.hintId",l))&&l.startsWith("share-post-hint")){var H=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(H){_.l9.getInstance();var T=IU(_.pW(_.LT("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.r0.addLowPriorityJob(function(){_.d6(V.hostElement,T,H)})}}}};
_.B.updatePoll=function(V){V>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.B.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12926_spinnerEl||(this.JSC$12926_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.h(this.hostElement).appendChild(this.JSC$12926_spinnerEl));this.JSC$12926_spinnerEl&&(this.JSC$12926_spinnerEl.active=this.isLoading)};
_.B.onYtNavigate=function(V){var l=this.get("updateCommentDialogEndpoint",V.detail.endpoint);l&&(this.openEditDialog(l),V.stopPropagation())};
_.B.onYtCommentboxDismiss=function(){this.editDialog=null};
_.B.onYtCommentPollRevert=function(V,l){l&&this.updatePoll(l.selectedChoiceIndex)};
_.B.onYtServiceRequestSent=function(V,l){var I;l.endpoint&&(_.y(l.endpoint,Hnb)||_.y(l.endpoint,cq)&&((I=_.y(l.endpoint,cq))==null||!I.clientActions))&&(this.isLoading=!0);if(l.actions)for(V=0;V<l.actions.length;V++)I=l.actions[V],_.y(I,Gj)&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I==void 0&&(I=-1),this.updatePoll(I))};
_.B.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.B.openEditDialog=function(V){V&&V.dialog&&(this.editDialog=V.dialog,V=this.editDialogEl.firstElementChild)&&(V.focus(),V.openDialog&&V.openDialog())};
_.B.computeIsPostHidden=function(V,l){return!!V||l};
_.B.computeSurfaceType=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.B.computeUsesCompactLockup=function(V){return V==="BACKSTAGE_SURFACE_TYPE_HOME"||V==="BACKSTAGE_SURFACE_TYPE_SEARCH"||V==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||V==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||V==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||V==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.B.computeShowWithoutToolbar=function(V){return!V.actionButtons&&!V.actionMenu};
_.B.computePostAttachment=function(V){if(V.backstageAttachment){if(_.y(V.backstageAttachment,W1B))return"poll";if(_.y(V.backstageAttachment,zpB))return"quiz";if(_.y(V.backstageAttachment,_.vUv))return"video";if(_.y(V.backstageAttachment,yr0))return"uploaded-videos";if(_.y(V.backstageAttachment,FCN))return V.contentText?"image":"image-only";if(_.y(V.backstageAttachment,epw))return"playlist"}return"none"};
_.B.computePostTabIndex=function(V){return V?0:-1};
_.B.computeButtonTooltipPosition=function(V){return this.computeUsesCompactLockup(V)?"top":"bottom"};
_.B.computeHasText=function(V){return!(V==null||!V.contentText)};
_.B.onTap=function(V){var l,I;if(((l=this.data)==null?0:l.navigationEndpoint)&&((I=this.data)==null?void 0:I.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var H;((H=this.data)==null?0:H.navigationEndpoint)&&!_.qi(_.b3(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.vI.Object.defineProperties(lIE.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.voteCount)||_.pW("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,W1B))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,yr0))}}});
var F4=lIE;F4.prototype.onYtServiceRequestCompleted=F4.prototype.onYtServiceRequestCompleted;F4.prototype.onYtServiceRequestSent=F4.prototype.onYtServiceRequestSent;F4.prototype.onYtCommentPollRevert=F4.prototype.onYtCommentPollRevert;F4.prototype.onYtCommentboxDismiss=F4.prototype.onYtCommentboxDismiss;F4.prototype.onYtNavigate=F4.prototype.onYtNavigate;F4.prototype.isLoadingChanged=F4.prototype.isLoadingChanged;F4.prototype.dataChanged=F4.prototype.dataChanged;F4.prototype.contentTextChanged=F4.prototype.contentTextChanged;
_.O([_.R(_.SE),_.a("design:type",Object)],F4.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],F4.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],F4.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],F4.prototype,"editDialog",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],F4.prototype,"roundedContainer",void 0);_.O([_.q(),_.a("design:type",Object)],F4.prototype,"isLoading",void 0);_.O([_.q({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.a("design:type",String)],F4.prototype,"surface",void 0);
_.O([_.q({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.a("design:type",Boolean)],F4.prototype,"usesCompactLockup",void 0);_.O([_.q({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],F4.prototype,"showWithoutToolbar",void 0);_.O([_.q({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.a("design:type",String)],F4.prototype,"attachment",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],F4.prototype,"isRichGrid",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],F4.prototype,"isRichGridRepost",void 0);_.O([_.q({reflectToAttribute:!0,value:_.z("use_better_post_dismissals")}),_.a("design:type",Boolean)],F4.prototype,"useBetterPostDismissals",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],F4.prototype,"reduceSidePaddings",void 0);
_.O([_.q({computed:"computeHasText(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],F4.prototype,"hasText",void 0);_.O([_.Ij("#expander"),_.a("design:type",Object)],F4.prototype,"expander",void 0);_.O([_.Ij("#action-buttons"),_.a("design:type",Object)],F4.prototype,"actionButtons",void 0);_.O([_.Ij("#edit-dialog"),_.a("design:type",HTMLElement)],F4.prototype,"editDialogEl",void 0);
_.O([_.b("data.contentText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],F4.prototype,"contentTextChanged",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],F4.prototype,"dataChanged",null);_.O([_.b("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],F4.prototype,"isLoadingChanged",null);
_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],F4.prototype,"onYtNavigate",null);_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],F4.prototype,"onYtCommentboxDismiss",null);_.O([_.W("yt-comment-poll-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],F4.prototype,"onYtCommentPollRevert",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],F4.prototype,"onYtServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],F4.prototype,"onYtServiceRequestCompleted",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],F4.prototype,"voteCount",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],F4.prototype,"commentCount",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],F4.prototype,"hasPoll",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],F4.prototype,"hasUploadedVideo",null);F4=_.O([_.A({is:"ytd-post-renderer",disableElementRegistration:!0})],F4);
_.u(F4,"ytd-post-renderer",function(){if(Kei!==void 0)return Kei;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Kei=V},{mode:1});var IIE;var HfZ;var TCb=function(){return _.M.apply(this,arguments)||this};
_.t(TCb,_.M);TCb.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
var X4=TCb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.ID.YtdHorizontalListBehavior),_.a("design:type",Object)],X4.prototype,"ytdHorizontalListBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],X4.prototype,"componentBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],X4.prototype,"data",void 0);_.O([_.q({value:"$.items.children"}),_.a("design:type",String)],X4.prototype,"itemsPath",void 0);_.O([_.q({value:1}),_.a("design:type",Number)],X4.prototype,"initialCount",void 0);_.O([_.q(),_.a("design:type",String)],X4.prototype,"surface",void 0);X4=_.O([_.A({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],X4);
_.u(X4,"ytd-post-multi-image-renderer",function(){if(HfZ!==void 0)return HfZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return HfZ=V},{mode:_.Cm("kevlar_poly_si_batch_j079")?1:2});var BCv={"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"}}},xFZ=function(){var V=_.M.apply(this,arguments)||this;V.hasInlineCommentSection=!1;V.editDialog=null;V.isLoading=!1;V.shouldHideAuthor=!1;V.shouldShowVideoTime=!1;
V.isInEngagementPanel=!1;V.hideBorder=!1;V.usesFullLockup=!1;V.shouldShowMenuInCompactView=!1;V.JSC$12942_spinnerEl=null;V.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return V};
_.t(xFZ,_.M);_.B=xFZ.prototype;_.B.configureRendererStamper=function(){return BCv};
_.B.computeIsPollHeaderEnabled=function(V){return(V==null?void 0:V.pollMetadataIcon)!=null};
_.B.getPublishTimeStampString=function(V,l){l=new Date((Number(l)-60*((new Date).getTimezoneOffset()-(new Date(Number(l)*1E3)).getTimezoneOffset()))*1E3);l=(new Mr(10)).format(l);if(V&&V.runs&&V.runs.length)for(var I=0;I<V.runs.length;I++)V.runs[I].text&&(V.runs[I].text=V.runs[I].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",l));return V};
_.B.created=function(){this.JSC$12942_spinnerEl=null};
_.B.contentTextChanged=function(){this.expander.reset()};
_.B.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var V;if((V=this.data)==null?0:V.actions){V=_.U(this.data.actions);for(var l=V.next();!l.done;l=V.next())this.openEditDialog(_.y(l.value,utJ))}};
_.B.handleSignalActionOpenPostCommentDialogAction=function(){_.h(this.hostElement).querySelector("#action-buttons").reply()};
_.B.updatePoll=function(V,l){l&&this.set("data.pollMetadataVoteCountText",l);this.hasInlineCommentSection&&(V=V>=0,l=_.h(this.hostElement).querySelector("#action-buttons"),V?l.reply():l.hideReplyDialog())};
_.B.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12942_spinnerEl||(this.JSC$12942_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.h(this.hostElement).appendChild(this.JSC$12942_spinnerEl));this.JSC$12942_spinnerEl&&(this.JSC$12942_spinnerEl.active=this.isLoading)};
_.B.onYtNavigate=function(V){var l=this.get("updateCommentDialogEndpoint",V.detail.endpoint);l&&(this.openEditDialog(l),V.stopPropagation())};
_.B.onYtCommentboxDismiss=function(){this.editDialog=null};
_.B.onYtCommentPollRevert=function(V,l){l&&this.updatePoll(l.selectedChoiceIndex,l.totalVotes)};
_.B.onYtServiceRequestSent=function(V,l){V.stopPropagation();V=_.y(l.endpoint,cq);if(_.y(l.endpoint,Hnb)||V&&!V.clientActions)this.isLoading=!0;if(l.actions)for(V=0;V<l.actions.length;V++){var I=l.actions[V],H=_.y(I,Gj);H&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I===void 0&&(I=-1),this.updatePoll(I,H.totalVotes))}};
_.B.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.B.openEditDialog=function(V){V&&V.dialog&&(this.editDialog=V.dialog,V=this.editDialogElement.firstElementChild)&&(V.focus(),V.openDialog&&V.openDialog())};
_.B.computeIsBodyHidden=function(V,l){return!!V||l};
_.vI.Object.defineProperties(xFZ.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var V,l;if((V=this.data)==null?0:(l=V.pollMetadataIcon)==null?0:l.iconType)return _.mj(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.voteCount)||_.pW("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,W1B))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,zpB))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,yr0))}}});
var zM=xFZ;zM.prototype.onYtServiceRequestCompleted=zM.prototype.onYtServiceRequestCompleted;zM.prototype.onYtServiceRequestSent=zM.prototype.onYtServiceRequestSent;zM.prototype.onYtCommentPollRevert=zM.prototype.onYtCommentPollRevert;zM.prototype.onYtCommentboxDismiss=zM.prototype.onYtCommentboxDismiss;zM.prototype.onYtNavigate=zM.prototype.onYtNavigate;zM.prototype.isLoadingChanged=zM.prototype.isLoadingChanged;zM.prototype.dataChanged=zM.prototype.dataChanged;zM.prototype.contentTextChanged=zM.prototype.contentTextChanged;
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],zM.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zM.prototype,"rendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],zM.prototype,"rendererstamperBehavior",void 0);_.O([_.Ij("#contentTextExpander"),_.a("design:type",Object)],zM.prototype,"expander",void 0);
_.O([_.Ij("#edit-dialog"),_.a("design:type",Element)],zM.prototype,"editDialogElement",void 0);_.O([_.q(),_.a("design:type",Object)],zM.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],zM.prototype,"hasInlineCommentSection",void 0);_.O([_.q(),_.a("design:type",Object)],zM.prototype,"editDialog",void 0);_.O([_.q(),_.a("design:type",Object)],zM.prototype,"isLoading",void 0);
_.O([_.q({computed:"computeIsPollHeaderEnabled(data)"}),_.a("design:type",Boolean)],zM.prototype,"isPollHeaderEnabled",void 0);_.O([_.q(),_.a("design:type",Object)],zM.prototype,"shouldHideAuthor",void 0);_.O([_.q(),_.a("design:type",Object)],zM.prototype,"shouldShowVideoTime",void 0);_.O([_.q(),_.a("design:type",Object)],zM.prototype,"isInEngagementPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zM.prototype,"hideBorder",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zM.prototype,"usesFullLockup",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zM.prototype,"shouldShowMenuInCompactView",void 0);_.O([_.Q("isInEngagementPanel"),_.a("design:type",Number),_.a("design:paramtypes",[])],zM.prototype,"postTextMaxLines",null);_.O([_.Q("data.icon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],zM.prototype,"pollIcon",null);
_.O([_.b("data.contentText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zM.prototype,"contentTextChanged",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zM.prototype,"dataChanged",null);_.O([_.b("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zM.prototype,"isLoadingChanged",null);
_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zM.prototype,"onYtNavigate",null);_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zM.prototype,"onYtCommentboxDismiss",null);_.O([_.W("yt-comment-poll-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],zM.prototype,"onYtCommentPollRevert",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],zM.prototype,"onYtServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zM.prototype,"onYtServiceRequestCompleted",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],zM.prototype,"voteCount",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],zM.prototype,"commentCount",null);_.O([_.Q("data.backstageAttachment"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zM.prototype,"hasPoll",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zM.prototype,"hasQuiz",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zM.prototype,"hasUploadedVideo",null);
zM=_.O([_.A({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],zM);
_.u(zM,"ytd-backstage-post-renderer",function(){if(IIE!==void 0)return IIE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return IIE=V},{mode:1});var UF0;var nMN=function(){var V=_.M.apply(this,arguments)||this;V.editDialog=null;V.showExpandButton=!1;V.isRichGrid=!1;V.usesFullLockup=!1;return V};
_.t(nMN,_.M);_.B=nMN.prototype;_.B.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"}}}};
_.B.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.B.computeShowExpandButton=function(V){return this.usesCompactLockup||V&&V.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.B.computeUsesCompactLockup=function(V){return!!V.condensedContent};
_.B.computeShowFullContentText=function(V){return!V};
_.B.onYtNavigate=function(V){V=this.get("updateCommentDialogEndpoint",V.detail.endpoint);this.openEditDialog(V)};
_.B.onYtCommentboxDismiss=function(){this.editDialog=null};
_.B.openEditDialog=function(V){V&&V.dialog&&(this.editDialog=V.dialog,V=this.repostEditDialogEl.firstElementChild)&&(V.focus(),V.openDialog&&V.openDialog())};
_.B.onTap=function(V){if(this.data){var l=null;this.usesCompactLockup&&!_.qi(_.b3(V)||[],this.hostElement,["YT-IMG-SHADOW"])?l=this.get("navigationEndpoint",this.data):V.target===this.moreButtonEl&&(l=this.get("navigationEndpoint",V.target.data));l&&_.B$(this.hostElement,"yt-navigate",{endpoint:l})}};
var yc=nMN;yc.prototype.onYtCommentboxDismiss=yc.prototype.onYtCommentboxDismiss;yc.prototype.onYtNavigate=yc.prototype.onYtNavigate;yc.prototype.dataChanged=yc.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yc.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],yc.prototype,"editDialog",void 0);_.O([_.q({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],yc.prototype,"usesCompactLockup",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yc.prototype,"showExpandButton",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yc.prototype,"isRichGrid",void 0);
_.O([_.q({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.a("design:type",Boolean)],yc.prototype,"showFullContentText",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yc.prototype,"usesFullLockup",void 0);_.O([_.Ij("#more"),_.a("design:type",Object)],yc.prototype,"moreButtonEl",void 0);_.O([_.Ij("#repost-content-text"),_.a("design:type",HTMLElement)],yc.prototype,"repostContentTextEl",void 0);
_.O([_.Ij("#repost-edit-dialog"),_.a("design:type",HTMLElement)],yc.prototype,"repostEditDialogEl",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yc.prototype,"dataChanged",null);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],yc.prototype,"onYtNavigate",null);
_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yc.prototype,"onYtCommentboxDismiss",null);yc=_.O([_.A({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],yc);
_.u(yc,"ytd-shared-post-renderer",function(){if(UF0!==void 0)return UF0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return UF0=V},{mode:1});var $FJ;var dFa;var tx=function(){return _.M.apply(this,arguments)||this};
_.t(tx,_.M);tx.prototype.attached=function(){var V=this;this.networkStatusManager||(this.networkStatusManager=new _.ca,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){V.onlineHandler()}))};
tx.prototype.detached=function(){var V=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){V.onlineHandler()}),delete this.networkStatusManager)};
tx.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
var rn=tx;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],rn.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],rn.prototype,"data",void 0);rn=_.O([_.A({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],rn);
_.u(rn,"ytd-reload-page-button-renderer",function(){if(dFa!==void 0)return dFa;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return dFa=V},{mode:1});var wob={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"},NCZ=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(NCZ,_.M);_.B=NCZ.prototype;_.B.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.B.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.B.computeHasBodyText=function(V){return!!V.bodyText};
_.B.computeButtons=function(V){var l=[];V.ctaButton&&l.push(V.ctaButton);V.secondaryButton&&l.push(V.secondaryButton);return l};
_.B.computeRendererStyle=function(V){return V.style?V.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():V.icon?"":"no-icon"};
_.B.getIconName=function(V,l){l=l===void 0?!1:l;if(V===void 0)return"";V=this.get("icon.iconType",V);var I;_.z("enable_hlp_client_icon_pick")?I=this.getThemedIcon(V,l):I=V;(l=wob[I])||(l="yt-icons");return[l,I].join(":")};
_.B.getThemedIcon=function(V,l){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(V)?l?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(V)?l?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":V};
_.B.isThumbnail=function(V){return!!V.thumbnail};
_.B.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.B.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
var GM=NCZ;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],GM.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],GM.prototype,"data",void 0);
_.O([_.q({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],GM.prototype,"rendererStyle",void 0);_.O([_.q({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.a("design:type",String)],GM.prototype,"iconName",void 0);_.O([_.q({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],GM.prototype,"thumbnail",void 0);_.O([_.q({computed:"computeButtons(data)"}),_.a("design:type",Array)],GM.prototype,"buttons",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],GM.prototype,"isDarkTheme",void 0);_.O([_.q({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],GM.prototype,"hasBodyText",void 0);GM=_.O([_.A({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],GM);
_.u(GM,"ytd-background-promo-renderer",function(){if($FJ!==void 0)return $FJ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return $FJ=V},{mode:1});var KPN;var j3b=function(){var V=_.M.apply(this,arguments)||this;V.collections=_.z("web_modern_collections_v2");return V};
_.t(j3b,_.M);_.vI.Object.defineProperties(j3b.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H,T,x;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(V=this.data)==null?void 0:(l=V.thumbnail)==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(H=I.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(T=this.data)==null?void 0:(x=T.thumbnail)==null?void 0:x.darkColorPalette,experimentEnabled:this.collections}}}});
var E6=j3b;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],E6.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],E6.prototype,"collections",void 0);_.O([_.Q("data","collections"),_.a("design:type",Object),_.a("design:paramtypes",[])],E6.prototype,"collectionStack",null);E6=_.O([_.A({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],E6);
_.u(E6,"ytd-compact-station-renderer",function(){if(KPN!==void 0)return KPN;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return KPN=V},{mode:1});var YeB;var LPw=function(){var V=_.M.apply(this,arguments)||this;V.isRichGrid=!1;return V};
_.t(LPw,_.M);LPw.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
var Jx=LPw;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Jx.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Jx.prototype,"isRichGrid",void 0);Jx=_.O([_.A({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Jx);
_.u(Jx,"ytd-grid-channel-renderer",function(){if(YeB!==void 0)return YeB;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return YeB=V},{mode:1});var eFo;var kv3=function(){return _.M.apply(this,arguments)||this};
_.t(kv3,_.M);var o5=kv3;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],o5.prototype,"data",void 0);o5=_.O([_.A({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],o5);
_.u(o5,"ytd-grid-movie-playlist-renderer",function(){if(eFo!==void 0)return eFo;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return eFo=V},{mode:1});var FPw;var hx=function(){var V=_.M.apply(this,arguments)||this;V.downloadProgress=0;V.transferState="TRANSFER_STATE_UNKNOWN";V.modernButtons=_.z("web_modern_buttons");V.useModernCollectionsV2=_.z("web_modern_collections_v2");return V};
_.t(hx,_.M);hx.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
hx.prototype.configureRendererStamper=function(){return{"data.menu":F1}};
hx.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
hx.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.z("woffle_playlist_renderer_killswitch")){var V,l=rMg(this.entityInfo,this.transferState,this.downloadProgress,(V=this.data)==null?void 0:V.playlistId,this.isOnline);V=l.viewPlaylistText;var I=l.badges;l=l.thumbnailOverlays;this.isDownloads=!!V||!!I;this.set("data.viewPlaylistText",V);I&&I.length>0&&this.set("data.badges",I);l&&l.length>0&&this.set("data.thumbnailOverlays",
l)}};
_.vI.Object.defineProperties(hx.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 V;return!((V=this.data)==null?0:V.menu)}}});
var P2=hx;P2.prototype.transferStateChanged=P2.prototype.transferStateChanged;P2.prototype.dataChanged=P2.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],P2.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],P2.prototype,"ytdReduxBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],P2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q({selector:_.bnT,selectorArgs:["data.playlistId"]}),_.a("design:type",Object)],P2.prototype,"downloadProgress",void 0);_.O([_.q({selector:_.Zw,selectorArgs:["data.playlistId"]}),_.a("design:type",Object)],P2.prototype,"transferState",void 0);_.O([_.q({selector:W8W,selectorArgs:["data.playlistId"]}),_.a("design:type",Object)],P2.prototype,"entityInfo",void 0);
_.O([_.q({selector:DBq}),_.a("design:type",Boolean)],P2.prototype,"isOnline",void 0);_.O([_.q(),_.a("design:type",Object)],P2.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],P2.prototype,"downloadRenderData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],P2.prototype,"modernButtons",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],P2.prototype,"isDownloads",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],P2.prototype,"useModernCollectionsV2",void 0);_.O([_.Q("transferState"),_.q({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],P2.prototype,"downloadState",null);_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],P2.prototype,"menuHidden",null);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P2.prototype,"dataChanged",null);_.O([_.xs("transferState","downloadProgress","isOnline"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P2.prototype,"transferStateChanged",null);P2=_.O([_.A({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],P2);
_.u(P2,"ytd-grid-playlist-renderer",function(){if(FPw!==void 0)return FPw;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return FPw=V},{mode:1});var XoE;var zFB=function(){var V=_.M.apply(this,arguments)||this;V.collections=_.z("web_modern_collections_v2");return V};
_.t(zFB,_.M);zFB.prototype.configureRendererStamper=function(){return{"data.menu":F1,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.vI.Object.defineProperties(zFB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H,T,x;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(V=this.data)==null?void 0:(l=V.thumbnail)==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(H=I.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(T=this.data)==null?void 0:(x=T.thumbnail)==null?void 0:x.darkColorPalette,experimentEnabled:this.collections}}}});
var DW=zFB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],DW.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],DW.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],DW.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],DW.prototype,"collections",void 0);_.O([_.Q("data","collections"),_.a("design:type",Object),_.a("design:paramtypes",[])],DW.prototype,"collectionStack",null);DW=_.O([_.A({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],DW);
_.u(DW,"ytd-grid-radio-renderer",function(){if(XoE!==void 0)return XoE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return XoE=V},{mode:1});var ypE;var tjo=function(){var V=_.M.apply(this,arguments)||this;V.useModernCollectionsV2=_.z("web_modern_collections_v2");return V};
_.t(tjo,_.M);tjo.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
tjo.prototype.computeNavigationEndpoint=function(V){return ZiN(V==null?void 0:V.navigationEndpoint)};
var ZW=tjo;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],ZW.prototype,"ytdLockupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ZW.prototype,"data",void 0);
_.O([_.q({computed:"computeNavigationEndpoint(data)"}),_.a("design:type",Object)],ZW.prototype,"computedNavigationEndpoint",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ZW.prototype,"useModernCollectionsV2",void 0);ZW=_.O([_.A({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],ZW);
_.u(ZW,"ytd-grid-show-renderer",function(){if(ypE!==void 0)return ypE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ypE=V},{mode:1});var rpZ;_.SG=function(V){this.playerClient=V};
_.Gvo=function(V,l,I){I=I===void 0?{}:I;return V.playerClient.setOption("ad",l,I)};
_.SG.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.SG.prototype.executeCommand=function(V,l){this.getOptions().includes("executeCommand")?_.Gvo(this,"executeCommand",{command:V,layoutId:l}):_.Hl("Calling executeCommand when adModule is not loaded")};var EM3=function(){return _.M.apply(this,arguments)||this};
_.t(EM3,_.M);EM3.prototype.getLayoutId=function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.layoutId:null};
EM3.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var V=_.u8(),l=this.getLayoutId(),I=this.data.clickthroughEndpoint;V&&l&&_.z("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?V.getPlayerPromise().then(function(H){(new _.SG(H)).executeCommand(I,l)}):_.B$(this.hostElement,"yt-navigate",{endpoint:I})}};
var R5=EM3;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],R5.prototype,"data",void 0);R5=_.O([_.A({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],R5);
_.u(R5,"ytd-shopping-companion-item-renderer",function(){if(rpZ!==void 0)return rpZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return rpZ=V},{mode:1});var Jpo;var oM0=function(){var V=_.M.apply(this,arguments)||this;V.isExpandableContent=!1;return V};
_.t(oM0,_.M);_.vI.Object.defineProperties(oM0.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((V=this.data)==null?void 0:V.price)||((l=this.data)==null?void 0:(I=l.dealsData)==null?void 0:I.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var V,l;if((V=this.data)!=null&&V.dealsData&&((l=this.data)==null||!l.priceReplacementText)){V=this.data.dealsData;var I,H,T;return((I=V.salesData)==null?void 0:I.originalPrice)||((H=V.priceDropData)==null?void 0:H.referencePrice)||((T=V.promotionData)==null?void 0:T.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var V,l;return(V=this.data)==null?void 0:(l=V.dealsData)==null?void 0:l.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
var Qc=oM0;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Qc.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Qc.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Qc.prototype,"isExpandableContent",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"showCta",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"ctaText",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"hasPriceTopPosition",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"hasPriceBottomPosition",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"useNewStyle",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"showPriceReplacementText",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"priceValue",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"showDeal",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"showAffiliateDisclaimer",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"useSaleStyle",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"useFromBrandCtaStyle",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"useFromVendorCtaStyle",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qc.prototype,"useShoppingCollectionCtaStyle",null);Qc=_.O([_.A({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Qc);
_.u(Qc,"ytd-vertical-product-card-renderer",function(){if(Jpo!==void 0)return Jpo;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Jpo=V},{mode:1});var hFa;var PHa=function(){return _.M.apply(this,arguments)||this};
_.t(PHa,_.M);PHa.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var c2=PHa;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],c2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],c2.prototype,"ytdLockupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],c2.prototype,"data",void 0);c2=_.O([_.A({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],c2);
_.u(c2,"ytd-grid-movie-renderer",function(){if(hFa!==void 0)return hFa;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return hFa=V},{mode:1});var DFZ;var ZfN=function(){var V=_.M.apply(this,arguments)||this;V.rounded=!0;V.itemStyle="small-item";return V};
_.t(ZfN,_.M);ZfN.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var V,l,I,H,T=(l=_.y((V=this.data)==null?void 0:V.buttonCommand,_.Hgw))==null?void 0:(I=l.item)==null?void 0:(H=I.notificationTextRenderer)==null?void 0:H.successResponseText;T&&_.Ahf(this.hostElement,T)}};
_.vI.Object.defineProperties(ZfN.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:V.isProductPlaceholder)!==void 0&&((l=this.data)==null?void 0:l.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
var W2=ZfN;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],W2.prototype,"rounded",void 0);_.O([_.q(),_.a("design:type",Object)],W2.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],W2.prototype,"itemStyle",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W2.prototype,"hasPrice",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W2.prototype,"hasPriceReplacementText",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W2.prototype,"hasAdditionalFeesText",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W2.prototype,"hasAffiliateDisclaimer",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W2.prototype,"isProductPlaceholder",null);
_.O([_.q(),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W2.prototype,"hideOpenInNewIcon",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W2.prototype,"ariaLabel",null);W2=_.O([_.A({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],W2);
_.u(W2,"ytd-merch-shelf-item-renderer",function(){if(DFZ!==void 0)return DFZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return DFZ=V},{mode:1});var Sev=_.W1(function(V){var l=_.sZ();_.A9(l,function(){return V.data().rendererContext});
return _.Y("button-card-view-model",{el:l,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return V.data().title},
role:"button"},_.Y(_.Ka,{model:{}}),_.Y("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.Y("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.Y(_.NS,{cond:function(){return V.data().image},
then:function(I){return _.Y(_.cX,{data:I,alt:function(){var H;return(H=V.data().title)!=null?H:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.Y("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return V.data().title})))},"Qa");_.z("web_button_view_model_wcw_registration_killswitch")||_.MR(Sev,"button-card-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){V=_.Rj(V,{className:void 0});var l=V.data;V=V.className;var I=_.Ny(function(){return l().onTapCommand},void 0,"NprDr");
return _.Y("ytd-shopping-item-card",{class:_.ii("ytdShoppingItemCardHost",V)},_.Y(_.wq,{command:I,className:"ytdShoppingItemCardHostLink"},_.Y("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.Y(_.rw,{data:function(){return l().thumbnailViewModel}},{thumbnailViewModel:function(H){return _.Y(x3,{data:H.data,
aspectRatio:3})}})),_.Y("div",null,_.Y("p",{class:"ytdShoppingItemCardHostItemTitle"},_.Y(_.Ni,{text:function(){return l().itemTitle}})),_.Y("p",{class:"ytdShoppingItemCardHostPrice"},_.Y(_.Ni,{text:function(){return l().priceOrStatus}})))))},"Ra"),"ytd-shopping-item-card",{props:{data:_.b9,
className:_.b9}});var TK=null,u9c={};var CXJ="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(" "),b6={},aOg=(b6.FEwhat_to_watch="home",b6.FEhashtag="hashtag",b6.FEtrending="trending",b6.FEhistory="history",b6.SPunlimited="premium",b6.FEmemberships_and_purchases="paid_memberships",b6.SPredeem_code="redeem",b6.SPverify_location="locate",b6.SPminor_moment="minor_moment",
b6.FEmini_app_container="mini_app",b6.FEnews_destination="news",b6.SPopen_in_app="open_in_app",b6.FEexplore="explore",b6.FEsubscriptions="subscriptions",b6.FEsfv_audio_pivot="sfv_audio_pivot",b6.FEplaylist_aggregation="playlist_aggregation",b6);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");_.w6("init");var l7W=_.FR({badgeViewModel:OfK}),m5f=function(){},RF3=_.I2(Trt),Q3v=_.W1(function(V){var l=_.Ny(function(){var I=V.data().entityId;
return I?I.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"oz73f");
return _.Y("ytm-shorts-lockup-view-model-v2",{class:_.ii("shortsLockupViewModelHost",V.className)},_.Y(_.sca,{contentId:l,aspectRatio:function(){var I;if(((I=V.aspectRatio)==null?void 0:I.call(V))===1)return 1;var H;return((H=V.aspectRatio)==null?void 0:H.call(V))===2?2:4}},function(){return _.Y(RF3,Object.assign({},V))}))},"Sa");
_.m5(Trt);_.m5(Vwt);_.m5(HLt);_.m5(BrJ);_.m5(I7T);_.MR(Q3v,"ytm-shorts-lockup-view-model-v2",{props:{data:_.qR,inlineMetadata:_.qR,aspectRatio:_.qR,scrimStyle:_.qR,className:_.qR,useDefaultStyle:_.qR}});var cpZ=16/9*210,qs=function(){var V=_.M.apply(this,arguments)||this;V.isExpandableContent=!1;V.hideShelfHeader=!1;V.engagementPanel=!1;V.buttonClasses=["arrow"];V.isSearch=!1;V.disableScrollEventListener=!1;V.containsLockup=!1;V.overrideArrowPositionForProductCard=!1;V.overrideArrowPositionForShoppingItemCard=!1;V.overrideArrowPositionForReelItems=!1;V.overrideArrowPositionForGridMovie=!1;V.overrideArrowPositionToCenter=!1;V.isSearchPostShelf=!1;V.overrideArrowPositionForMixedShelf=!1;V.overrideArrowPositionForMixedShelfShortsOnly=
!1;V.hasBigThumbsReelItems=!1;V.shouldUseMixedListHeight=!1;V.shouldUseShortsListHeight=!1;V.gridVideoWidth=0;V.isSearchVodShelf=!1;V.disableWheelScroll=!1;V.sizing="COMPACT";V.shortsLockupAspectRatio=0;return V};
_.t(qs,_.M);_.B=qs.prototype;
_.B.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]]"}}}}};
_.B.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.z("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.B.computeInitialCountNumber=function(V){if(!V)return 6;var l=V.items.some(function(x){return!!x.topicRecommendationsChipRenderer}),I=V.items.some(function(x){return!!x.displayAdRenderer}),H=this.computeShouldListItemsHaveEqualHeight(V),T=V.items.some(function(x){return!!x.gridPlaylistRenderer});
V=V.items.some(function(x){return!!x.shoppingItemCardViewModel});
return l?9:I?8:T||H?10:V?7:6};
_.B.computeContainsPost=function(V){return!!V&&!!V.items&&V.items.some(function(l){return!!l.postRenderer})};
_.B.computeContainsLockup=function(){if(_.z("web_horizontal_list_lockup_arrow_killswitch"))return!1;var V,l;return(V=this.data)==null?void 0:(l=V.items)==null?void 0:l.some(function(I){return!!I.lockupViewModel})};
_.B.maybeUpdateLockupAspectRatio=function(){var V,l;if(this.computeContainsLockup()&&((V=this.data)==null?0:(l=V.items)==null?0:l.length)){var I;V=f_N((I=this.data.items[0].lockupViewModel)==null?void 0:I.contentType,this.data.force16By9ThumbnailAspectRatio);I=R$1(V);I=this.computeLockupWidth()/I;_.i3(this.hostElement,{"--yt-horizontal-list-content-height":I+"px"})}};
_.B.computeOverrideArrowPositionForProductCard=function(V){if(this.isExpandableContent)return!1;var l;return!!(V==null?0:(l=V.items)==null?0:l.some(function(I){return!!I.verticalProductCardRenderer}))};
_.B.computeOverrideArrowPositionForShoppingItemCard=function(V){var l;return!!(V==null?0:(l=V.items)==null?0:l.some(function(I){return!!I.shoppingItemCardViewModel}))};
_.B.computeOverrideArrowPositionForReelItemRenderer=function(V){return this.containsReelItemRenderer(V)};
_.B.computeHasBigThumbsReelItems=function(V,l){return V&&this.containsReelItemRenderer(l)};
_.B.computeShouldListItemsHaveEqualHeight=function(V){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(V==null?void 0:V.itemSizeConstraint)};
_.B.computeShouldListItemsHaveShortsHeight=function(V){return this.computeShouldListItemsHaveEqualHeight(V)&&!this.containsGridVideoRenderer(V)};
_.B.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.B.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.B.containsReelItemRenderer=function(V){var l;return!!(V==null?0:(l=V.items)==null?0:l.some(function(I){return!(!I.reelItemRenderer&&!I.shortsLockupViewModel)}))};
_.B.containsGridVideoRenderer=function(V){var l;return!!(V==null?0:(l=V.items)==null?0:l.some(function(I){return!!I.gridVideoRenderer||!!I.lockupViewModel}))};
_.B.computeContainsGridMovieRenderer=function(V){var l;return!!(V==null?0:(l=V.items)==null?0:l.some(function(I){return!!I.gridMovieRenderer}))};
_.B.computeOverrideArrowPositionToCenter=function(V){return this.computeIsSearchPostShelf(V)};
_.B.computeIsSearchPostShelf=function(V){var l;return!!(V==null?0:(l=V.items)==null?0:l.some(function(I){var H,T;return((T=(H=I.postRenderer)==null?void 0:H.surface)!=null?T:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.B.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(V){var l;return!!(V==null?0:(l=V.items)==null?0:l.some(function(I){var H,T,x;return((x=(H=I.backgroundPromoRenderer)==null?void 0:(T=H.style)==null?void 0:T.value)!=null?x:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.B.computeIsSearchVodShelf=function(V,l){return V&&this.containsGridVideoRenderer(l)};
_.B.computeDisableWheelScroll=function(V,l){return this.computeIsSearchVodShelf(V,l)};
_.B.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.B.computeShortsLockupAspectRatio=function(V){return V&&_.z("web_shorts_2_by_3_lockups_no_search")&&!_.z("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.B.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.i3(this.hostElement,{"--ytd-reel-item-thumbnail-height":cpZ+"px"})};
qs.prototype.dataChanged=qs.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.ID.YtdHorizontalListBehavior),_.a("design:type",Object)],qs.prototype,"ytdHorizontalListBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],qs.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],qs.prototype,"isExpandableContent",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"hideShelfHeader",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"engagementPanel",void 0);_.O([_.q(),_.a("design:type",Array)],qs.prototype,"buttonClasses",void 0);_.O([_.q(),_.a("design:type",Object)],qs.prototype,"isSearch",void 0);
_.O([_.q(),_.a("design:type",Object)],qs.prototype,"disableScrollEventListener",void 0);_.O([_.q({computed:"computeInitialCountNumber(data)"}),_.a("design:type",Number)],qs.prototype,"initialCount",void 0);_.O([_.q({computed:"computeContainsPost(data)"}),_.a("design:type",Boolean)],qs.prototype,"supportComponentResize",void 0);_.O([_.q({computed:"computeContainsPost(data)"}),_.a("design:type",Boolean)],qs.prototype,"containsPost",void 0);
_.O([_.q({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"containsLockup",void 0);_.O([_.q({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],qs.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.O([_.q({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"overrideArrowPositionForProductCard",void 0);_.O([_.q({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.O([_.q({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"overrideArrowPositionForReelItems",void 0);_.O([_.q({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"overrideArrowPositionForGridMovie",void 0);
_.O([_.q({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"overrideArrowPositionToCenter",void 0);_.O([_.q({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"isSearchPostShelf",void 0);_.O([_.q({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.O([_.q({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.O([_.q({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"hasBigThumbsReelItems",void 0);
_.O([_.q({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"shouldUseMixedListHeight",void 0);_.O([_.q({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"shouldUseShortsListHeight",void 0);_.O([_.q({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"gridVideoWidth",void 0);
_.O([_.q({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"isSearchVodShelf",void 0);_.O([_.q({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.a("design:type",Object)],qs.prototype,"disableWheelScroll",void 0);_.O([_.q({computed:"computeSizing(isSearch)"}),_.a("design:type",Object)],qs.prototype,"sizing",void 0);
_.O([_.q({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.a("design:type",Object)],qs.prototype,"shortsLockupAspectRatio",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qs.prototype,"dataChanged",null);
_.u(qs,"yt-horizontal-list-renderer",function(){if(eVo===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);eVo=V}V=eVo;return V},{mode:1});var WPi;var bfZ=[10,12,14,16,18,20,24,28,32,36],qeN=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Mjw=function(){var V=_.M.apply(this,arguments)||this;V.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";V.hideOverflow=!1;V.useRoboto=!1;V.fontClass="";V.overflown=!1;V.actionMap={"yt-window-resized":"resize"};return V};
_.t(Mjw,_.M);_.B=Mjw.prototype;
_.B.attached=function(){var V=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();_.Al(this,function(){V.resize()});
if(!_.NU){var l,I,H;(l=document)==null||(I=l.fonts)==null||(H=I.ready)==null||H.then(function(){V.resize()})}};
_.B.dataChanged=function(){this.resize()};
_.B.guideIsExpandedChanged=function(){this.resize()};
_.B.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 V=this.getMaxNumLines(),l=this.getMinFont(),I=this.getMaxFont(),H=this.useRoboto?bfZ:qeN;for(H=H.filter(function(x){return x<=I&&x>=l});H.length>1;){var T=Math.floor(H.length/2);
this.updateFontSize(H[T]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=V)H=H.slice(T,H.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>V)H=H.slice(0,T);else break}this.updateFontSize(H[H.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(V)}};
_.B.handleOverflow=function(V){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>V&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",V.toString()))};
_.B.updateFontSize=function(V){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+V;this.textNode.classList.add(this.fontClass)};
_.B.getMaxFont=function(){var V=this.useRoboto?bfZ:qeN;V=V[V.length-1];return this.maxFontSize&&this.maxFontSize<=V?this.maxFontSize:V};
_.B.getMinFont=function(){var V=(this.useRoboto?bfZ:qeN)[0];return this.minFontSize&&this.minFontSize>=V?this.minFontSize:V};
_.B.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.B.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.B.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.A5(this.text).split("\n").length-1:Infinity};
_.B.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("Ih`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
var Ms=Mjw;Ms.prototype.guideIsExpandedChanged=Ms.prototype.guideIsExpandedChanged;Ms.prototype.dataChanged=Ms.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Ms.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Ms.prototype,"actionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ms.prototype,"text",void 0);
_.O([_.q(),_.a("design:type",String)],Ms.prototype,"fontFamily",void 0);_.O([_.q(),_.a("design:type",Number)],Ms.prototype,"maxWidth",void 0);_.O([_.q(),_.a("design:type",Number)],Ms.prototype,"maxHeight",void 0);_.O([_.q(),_.a("design:type",Number)],Ms.prototype,"maxFontSize",void 0);_.O([_.q(),_.a("design:type",Number)],Ms.prototype,"minFontSize",void 0);_.O([_.q(),_.a("design:type",Number)],Ms.prototype,"maxLines",void 0);_.O([_.q(),_.a("design:type",Object)],Ms.prototype,"hideOverflow",void 0);
_.O([_.q({selector:_.Gsc}),_.a("design:type",Boolean)],Ms.prototype,"guideIsExpanded",void 0);_.O([_.Ij("#container"),_.a("design:type",HTMLElement)],Ms.prototype,"containerNode",void 0);_.O([_.Ij("#text"),_.a("design:type",HTMLElement)],Ms.prototype,"textNode",void 0);_.O([_.xs("text"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ms.prototype,"dataChanged",null);
_.O([_.xs("guideIsExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ms.prototype,"guideIsExpandedChanged",null);Ms=_.O([_.A({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Ms);
_.u(Ms,"yt-dynamic-sizing-formatted-string",function(){if(WPi!==void 0)return WPi;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return WPi=V},{mode:1});var s3Z;_.poN=function(V){_.I1.call(this,V)};
_.t(_.poN,_.I1);var Apa=function(V){_.I1.call(this,V)};
_.t(Apa,_.poN);var s6=function(){return _.M.apply(this,arguments)||this};
_.t(s6,_.M);s6.prototype.onTapSuspendedChannel=function(){var V;if((V=this.data)!=null&&V.serviceEndpoint){var l,I;(V=(I=_.y((l=this.data)==null?void 0:l.serviceEndpoint,_.cF))==null?void 0:I.url)?_.oQ(V,void 0,void 0,window.top):(l=new Apa("Did not handle suspended account tap. No appealUrl."),_.Gr(l))}else l=new Apa("Did not handle suspended account tap. No serviceEndpoint."),_.Gr(l)};
s6.prototype.onTap=function(){var V=this,l=_.x7(),I,H=(I=_.BX(l,{veType:7116}))!=null?I:void 0;_.Dt(l,{visualElement:H});_.Ez();this.saveRoleText();var T;if((T=this.data)==null?0:T.youtubeSuspended)this.onTapSuspendedChannel();else{var x=!1,n,w;(l=(w=_.y((n=this.data)==null?void 0:n.serviceEndpoint,_.$BB))==null?void 0:w.supportedTokens)&&l.forEach(function(N){if(N.accountSigninToken)if(x=!0,V.onAccountItemTap)V.onAccountItemTap(N.accountSigninToken.signinUrl);else _.oQ(N.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!x){if(n=this.get("serviceEndpoint",this.data))x=!0,this.ytComponentBehavior.resolveCommand(n);x||_.oV(new Apa("Did not handle account switch tap. No token."))}}};
s6.prototype.saveRoleText=function(){if(this.data){var V=this.data,l=V.channelDelegationRole;if(l){var I,H=(I=_.y(V==null?void 0:V.serviceEndpoint,_.$BB))==null?void 0:I.supportedTokens;if(!H){var T,x,n,w;H=(T=_.y(V==null?void 0:V.serviceEndpoint,_.Ed))==null?void 0:(x=T.popup)==null?void 0:(n=x.confirmDialogRenderer)==null?void 0:(w=n.confirmButton)==null?void 0:w.buttonRenderer;var N;H=(N=_.y(H==null?void 0:H.command,_.NJ))==null?void 0:N.commands;if(!H)return;var L;H=(L=_.y(H[1],_.$BB))==null?
void 0:L.supportedTokens}if(H){N=void 0;L=_.U(H);for(H=L.next();!H.done;H=L.next())if(H=H.value,H.datasyncIdToken){N=H.datasyncIdToken.datasyncIdToken;break}if(N){var e;a:{if(_.nr1()&&(L=_.nfN(N+"::pom"))){L=new jW(L);break a}L=void 0}(e=L)==null||e.set("role_text",l);if((zST?zST:window.location).href.indexOf("studio")!==-1&&(e=$6J())){L=e.src?(new URL(e.src)).origin:"*";var k;(k=e.contentWindow)==null||k.postMessage({action:"save_pom_role",datasyncId:N,roleText:l},L)}}}}}};
_.vI.Object.defineProperties(s6.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(V=this.data)==null?void 0:(l=V.accountPhoto)==null?void 0:l.thumbnails;return I&&I.length>0&&(I[0].height===36||I[0].height===48)?I[0].height:40}}});
var pP=s6;pP.prototype.onTap=pP.prototype.onTap;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],pP.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pP.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!1}),_.a("design:type",Function)],pP.prototype,"onAccountItemTap",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],pP.prototype,"enableRingForActiveAccount",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],pP.prototype,"thumbnailSize",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pP.prototype,"onTap",null);pP=_.O([_.A({is:"ytd-account-item-renderer",disableElementRegistration:!0})],pP);
_.u(pP,"ytd-account-item-renderer",function(){if(s3Z!==void 0)return s3Z;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return s3Z=V},{mode:1});var udw;var vMW=function(){return _.M.apply(this,arguments)||this};
_.t(vMW,_.M);vMW.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&(_.z("web_ytd_identity_chip_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.onTapCommand]):_.F().resolve(_.aw).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}}))};
var Ax=vMW;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ax.prototype,"data",void 0);Ax=_.O([_.A({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Ax);
_.u(Ax,"ytd-identity-chip-renderer",function(){if(udw!==void 0)return udw;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return udw=V},{mode:1});var OfZ;var CH0;var aIw;var fIZ;var gMZ=function(){var V=_.M.apply(this,arguments)||this;V.richItemMinWidth=_.g7("wn_grid_min_item_width",310);V.isShorts=!1;V.isWatchNext=!1;V.isExploreHub=!1;return V};
_.t(gMZ,_.M);_.vI.Object.defineProperties(gMZ.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var V=[],l=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.i3(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var I;if(((I=this.data)==null?0:I.rows)&&l)for(l*=this.data.rows,I=0;I<l;I++)V.push({});return V}}});
var u6=gMZ;_.O([_.R(_.DS),_.a("design:type",Object)],u6.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],u6.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.oA,value:3}),_.a("design:type",Number)],u6.prototype,"itemsPerRow",void 0);_.O([_.q({selector:_.rtc,value:6}),_.a("design:type",Number)],u6.prototype,"slimItemsPerRow",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Number)],u6.prototype,"richItemMinWidth",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],u6.prototype,"miniMode",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],u6.prototype,"isShorts",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],u6.prototype,"isWatchNext",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],u6.prototype,"isExploreHub",void 0);
_.O([_.Q("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.a("design:type",Array),_.a("design:paramtypes",[])],u6.prototype,"cardItems",null);u6=_.O([_.A({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],u6);
_.mFb=_.O7()(u6,"ytd-ghost-grid-renderer",function(){if(fIZ===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);fIZ=V}V=fIZ;return V},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.MR(_.W1(function(V){var l=_.Rj(V,{numberOfComments:3}).numberOfComments,I=_.Rj(V,{isInitialLoad:!1}).isInitialLoad,H=_.rq(_.P4),T=function(){return Math.min(Number(l==null?void 0:l())||20,20)};
return _.Y("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.Y(_.NS,{cond:function(){return(H==null?void 0:H())&&(I==null?void 0:I())},
then:function(){return _.Y("div",{class:"ytGhostCommentsComments"},_.Y("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.Y("div",{class:_.ii("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.Y("div",{class:_.ii("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.Y("div",{class:"ytGhostCommentsGhostCard"},_.Y("div",{class:"ytGhostCommentsAvatar"},_.Y("div",{class:"ytGhostCommentsCircle"})),_.Y("div",{class:"ytGhostCommentsComments"},_.Y("div",{class:"ytGhostCommentsMeta"},
_.Y("div",{class:_.ii("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.Y("div",{class:_.ii("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.Y("div",{class:"ytGhostCommentsComments"},_.Y(_.Ks,{each:function(){return Array((T==null?void 0:T())||3)}},function(){return _.Y("div",{class:"ytGhostCommentsGhostCard"},_.Y("div",{class:"ytGhostCommentsAvatar"},_.Y("div",{class:"ytGhostCommentsCircle"})),_.Y("div",{class:"ytGhostCommentsHost"},_.Y("div",{class:"ytGhostCommentsMeta"},
_.Y("div",{class:_.ii("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.Y("div",{class:_.ii("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Y("div",{class:_.ii("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Y("div",{class:"ytGhostCommentsGhostLikeDislike"},_.Y("div",{class:_.ii("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Y("div",{class:_.ii("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Ta"),"yt-ghost-comments",{props:{numberOfComments:_.b9,
isInitialLoad:_.b9}});_.yN("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var ifi=function(){var V=_.M.apply(this,arguments)||this;V.isOverridable=!1;V.spinnerActive=!1;V.showButton=!1;V.isCommentsSection=!1;V.isShortsGrid=!1;V.isShortsPage=!1;V.isWatchPage=!1;V.ghostCardExperimentEnabled=_.z("show_ghost_comments_shorts_watch")||_.z("show_ghost_comments_desktop_watch");V.originalShowButton=!1;V.endOfList=!1;return V};
_.t(ifi,_.M);_.B=ifi.prototype;_.B.resetIntersectionObserver=function(){var V;(V=this.observer)==null||V.disconnect();this.observer=void 0};
_.B.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var V,l;((V=this.data)==null?void 0:V.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((l=this.data)==null?0:l.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.B.initializeIntersectionObserver=function(){var V=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(l){l=_.U(l);for(var I=l.next();!I.done;I=l.next())I.value.isIntersecting&&(V.triggerContinuation(),V.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.B.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]]"}}}}}};
_.B.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var V;((V=this.data)==null?0:V.continuationEndpoint)&&(V=_.y(this.data.continuationEndpoint,_.Ex))&&this.ytdReduxBehavior.dispatch(_.IA({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:V}}))};
_.B.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.B.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.B.onServiceRequestCompleted=function(V,l){if(!_.z("kevlar_hide_spinner_on_empty_continuation_killswitch")){var I;(I=l.actions)!=null&&I.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.B.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.B.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.B.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.B.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var V=3;if(this.isShortsPage){var l,I,H;V=Math.floor(((((l=this.hostElement)==null?void 0:(I=l.parentElement)==null?void 0:(H=I.parentElement)==null?void 0:H.scrollHeight)||108)-108)/108);V=this.isInitialLoad?Math.max(V,3):3}l=[].concat(_.oI(this.hostElement.querySelectorAll("yt-ghost-comments")));l=_.U(l);for(I=l.next();!I.done;I=l.next())I=I.value,I.numberOfComments=V,I.isInitialLoad=this.isInitialLoad}};
_.B.detached=function(){this.resetIntersectionObserver()};
_.vI.Object.defineProperties(ifi.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.z("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.z("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
var v2=ifi;v2.prototype.numberOfGhostCommentsChanged=v2.prototype.numberOfGhostCommentsChanged;v2.prototype.continuationTriggerOffsetChanged=v2.prototype.continuationTriggerOffsetChanged;v2.prototype.showButtonChanged=v2.prototype.showButtonChanged;v2.prototype.onYtServiceRequestCompletedForButtonRenderer=v2.prototype.onYtServiceRequestCompletedForButtonRenderer;v2.prototype.onServiceRequestCompleted=v2.prototype.onServiceRequestCompleted;v2.prototype.onYtServiceRequestSentForButtonRenderer=v2.prototype.onYtServiceRequestSentForButtonRenderer;
v2.prototype.observeData=v2.prototype.observeData;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.RU.YtVisibilityBehavior),_.a("design:type",Object)],v2.prototype,"ytVisibilityBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],v2.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],v2.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],v2.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],v2.prototype,"isOverridable",void 0);_.O([_.q(),_.a("design:type",Object)],v2.prototype,"spinnerActive",void 0);_.O([_.q(),_.a("design:type",Object)],v2.prototype,"showButton",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],v2.prototype,"isCommentsSection",void 0);
_.O([_.q(),_.a("design:type",Object)],v2.prototype,"isShortsGrid",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.Jtf}),_.a("design:type",Object)],v2.prototype,"isShortsPage",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.P4}),_.a("design:type",Object)],v2.prototype,"isWatchPage",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],v2.prototype,"ghostCardExperimentEnabled",void 0);_.O([_.q(),_.a("design:type",Number)],v2.prototype,"continuationTriggerOffset",void 0);
_.O([_.q(),_.a("design:type",Object)],v2.prototype,"endOfList",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],v2.prototype,"isInitialLoad",void 0);_.O([_.Ij("ytd-button-renderer"),_.a("design:type",_.Of)],v2.prototype,"buttonRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],v2.prototype,"buttonOverrides",void 0);
_.O([_.q(),_.Q("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.a("design:type",Object),_.a("design:paramtypes",[])],v2.prototype,"isShortsCommentsSection",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v2.prototype,"observeData",null);_.O([_.W("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v2.prototype,"onYtServiceRequestSentForButtonRenderer",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],v2.prototype,"onServiceRequestCompleted",null);_.O([_.W("yt-service-request-completed-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v2.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);
_.O([_.xs("showButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v2.prototype,"showButtonChanged",null);_.O([_.xs("continuationTriggerOffset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v2.prototype,"continuationTriggerOffsetChanged",null);_.O([_.b("isInitialLoad","isShortsPage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v2.prototype,"numberOfGhostCommentsChanged",null);
v2=_.O([_.A({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],v2);
_.u(v2,"ytd-continuation-item-renderer",function(){if(aIw!==void 0)return aIw;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return aIw=V},{mode:1});var VFW;var O6=function(){var V=_.M.apply(this,arguments)||this;V.downloadProgress=0;V.transferState="TRANSFER_STATE_UNKNOWN";V.downloadState="DOWNLOAD_STATE_UNKNOWN";V.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";V.offlineVideoPolicyExpirationTimestamp=0;V.downloadedVideoPlaybackPosition=0;return V};
_.t(O6,_.M);O6.prototype.dataChanged=function(){var V;this.videoData=_.y((V=this.data)==null?void 0:V.renderer,pqZ);this.transferStateChanged()};
O6.prototype.downloadProgressChanged=function(){if(this.entityInfo){var V=Object.assign({},this.videoData),l=G43(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),I=l.publishedTimeText,H=l.badges;V.shortViewCountText=l.shortViewCountText;V.publishedTimeText=I;V.badges=H;this.set("videoData",V)}};
O6.prototype.transferStateChanged=function(){if(this.entityInfo){var V=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",l=_.kf(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!es(this.entityInfo.policyEntity),I=Object.assign({},this.videoData),H=G43(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),T=H.publishedTimeText,x=H.badges;I.shortViewCountText=
H.shortViewCountText;I.publishedTimeText=T;I.badges=x;I.isDisabled=l;I.isWatched=this.downloadedVideoPlaybackPosition>0;I.navigationEndpoint=l?void 0:PWg(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var n;V&&((n=this.videoData)==null?0:n.videoId)&&!_.z("dl_resume_click_killswitch")&&(I.isDisabled=!1,I.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});I.thumbnailOverlays=tWt(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",I)}};
var CP=O6;CP.prototype.transferStateChanged=CP.prototype.transferStateChanged;CP.prototype.downloadProgressChanged=CP.prototype.downloadProgressChanged;CP.prototype.dataChanged=CP.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],CP.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],CP.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],CP.prototype,"videoData",void 0);_.O([_.q({selector:Ss,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],CP.prototype,"downloadProgress",void 0);_.O([_.q(),_.a("design:type",Number)],CP.prototype,"relativeDateReference",void 0);_.O([_.q({selector:_.Dw,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],CP.prototype,"transferState",void 0);
_.O([_.q({selector:C1y,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],CP.prototype,"downloadState",void 0);_.O([_.q({selector:SgT,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],CP.prototype,"offlinePolicyAction",void 0);_.O([_.q({selector:Rdw,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],CP.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.O([_.q({selector:RA,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],CP.prototype,"downloadedVideoPlaybackPosition",void 0);_.O([_.q({selector:cty,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],CP.prototype,"entityInfo",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],CP.prototype,"isDownloading",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CP.prototype,"dataChanged",null);
_.O([_.xs("downloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CP.prototype,"downloadProgressChanged",null);_.O([_.xs("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CP.prototype,"transferStateChanged",null);
CP=_.O([_.A({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],CP);
_.u(CP,"ytd-downloaded-video-grid-video-renderer",function(){if(VFW!==void 0)return VFW;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return VFW=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var lDZ;var a5=function(){};
a5.prototype.resolve=function(V,l){var I=this;return _.d(function(H){return _.K(H,I.resolveCommand(V,l),0)})};var ID0,fP;ID0=wM3(function(V){return V.targetId},{shouldPersist:!1});
fP=ID0.updateData;_.HFw=ID0.useUpdatableData;var T5a,B5W;T5a=wM3(function(V){return V.targetId});
B5W=T5a.updateData;_.xH3=T5a.useUpdatableData;var UH3=xpt.bind(null,fP),n0Z=xpt.bind(null,B5W);(function(V,l,I){var H=_.y(I==null?void 0:I.updatedRenderer,_.kj3);return H?V({targetId:l},function(){return H}):!1}).bind(null,fP);var gn=function(){};
_.t(gn,a5);gn.prototype.resolveCommand=function(V){var l;return _.d(function(I){l=_.y(V,_.Gnt);if(!l)return I.return();UH3(l.targetId,l);_.FU(I)})};var $HZ=function(){var V=_.To.apply(this,arguments)||this;V.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return V};
_.t($HZ,_.To);_.B=$HZ.prototype;_.B.configureContinuationPathMap=function(){return{}};
_.B.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.B.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.B.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.B.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.B.handleAppendContinuationItemsAction=function(V){var l=_.y(V,_.l4a);if(this.data&&this.data.targetId&&l&&this.continuationPathMap&&l.targetId===this.data.targetId){var I=ojt(V);if((V=I&&this.continuationPathMap[I])&&I){I=this.get(V,this.data);var H;a:{for(H=0;H<I.length;H++){var T=I[H],x=void 0,n=!!_.y((x=_.y(T,QBb))==null?void 0:x.content,_.b7N);if(_.y(T,_.nl)||n)break a}H=I.length}V="data."+V;l.continuationItems?H===I.length-1?(this.pop(V),this.push.apply(this,[V].concat(_.oI(l.continuationItems)))):
H===I.length?this.push.apply(this,[V].concat(_.oI(l.continuationItems))):this.splice.apply(this,[V,H,1].concat(_.oI(l.continuationItems))):this.splice(V,H,1);(_.z("web_enable_voting_animation")||_.z("enable_music_web_cairo_voting_animation"))&&_.B$(this.hostElement,"yt-append-continuation-items-action-finished");_.B$(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.hF(new _.Yd("append continuation path does not exist",I))}};
_.B.handleReloadContinuationItemsCommand=function(V){var l=_.y(V,_.Gnt);if(this.data&&l){if(_.z("web_explore_hub")||_.z("web_client_explore_hub"))try{_.F().resolve(gn).resolveCommand(V)}catch(x){}if(this.data.targetId&&this.continuationPathMap&&l.targetId===this.data.targetId&&(!_.z("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||l.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var I,H=(I=l.slot)==null?void 0:I.replace("RELOAD_CONTINUATION_SLOT_","");I=(V=ojt(V)+
"-"+(H==null?void 0:H.toLowerCase()))&&this.continuationPathMap[V];if(!I||!V||!H)_.hF(new _.Yd("reload continuation path does not exist",V));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(l)){if(l.replaceWithFirstItem){var T;this.set("data."+I,((T=l.continuationItems)==null?0:T.length)?l.continuationItems[0]:{})}else this.set("data."+I,l.continuationItems?l.continuationItems:[]);this.continuationIsReloading=!1;_.B$(this.hostElement,"yt-reload-continuation-finish",
null,{bubbles:!1})}}}};
_.B.handleShowReloadUiCommand=function(V){V=_.y(V,jBB);var l;((l=this.data)==null?0:l.targetId)&&(V==null?0:V.targetId)&&V.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
var mn=$HZ;mn.prototype.observeData=mn.prototype.observeData;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],mn.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],mn.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],mn.prototype,"data",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],mn.prototype,"continuationIsReloading",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mn.prototype,"observeData",null);mn=_.O([_.B1()],mn);_.i6=[_.DX.YtComponentBehavior,_.aU.YtActionHandlerBehavior,mn.prototype];_.Vi={};_.Vi.YtNextContinuationBehavior=[_.AM.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",_.VP(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.VP(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(V,l){V.stopPropagation();if(this.nextContinuation.requestPath){V=this.nextContinuation.requestPath;var I={};_.z("direct_innertube_click_tracking_reporting")&&(I={context:{clickTracking:{clickTrackingParams:this.nextContinuation.clickTrackingParams}}});this.makeNextContinuationRequest_(V,l,I)}else V={locationRetrieved:function(H,T){var x={};_.z("direct_innertube_click_tracking_reporting")&&T.clickTrackingParams&&Object.assign(x,{context:{clickTracking:{clickTrackingParams:T.clickTrackingParams}}});
this.makeNextContinuationRequest_(H,l,x)}.bind(this)},_.B$(this.hostElement,"yt-retrieve-location",V)},
makeNextContinuationRequest_:function(V,l,I){_.S1("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();V=l(V);var H;this.canUseContextualNetworkManager_()&&(H=this.getNetworkManager());H||(H=_.F().resolve(_.kV));l=_.Zt.instance;if(_.h6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&l){H=_.Ol([V.startsWith("/")?V.substr(1):V]);var T,x;I=_.R7(l,{},H,I==null?void 0:(T=I.context)==null?void 0:(x=T.clickTracking)==null?void 0:x.clickTrackingParams).then(function(n){return{response:n}})}else I=
this.nextContinuation.usePost?H.postData(V,I):H.fetchData(V);
I.then(this.updateNextContinuationData_.bind(this,V));this.pendingContinuationRequest_=I;this.startListeningForNavigate_()},
updateNextContinuationData_:function(V,l){var I=this;_.S1("ncl");this.pendingContinuationRequest_=void 0;if(l){var H={};this.nextContinuation&&(H=this.nextContinuation);if(l.response&&l.response.continuationContents&&l.response.continuationContents[H.continuationType]){V=l.response.continuationContents[H.continuationType];var T=H.header||"data.header",x=V[H.responseHeaderKey||"header"];x&&this.set(T,x);T=H.contentsArray||"data.contents";x=this.getContents_(V,H.responseContentsKey||"contents")||[];
this.pathExists_(T)?(x.unshift(T),this.push.apply(this,x)):this.set(T,x);x&&(Upy(_.x7(),l.response,this.hostElement,function(n){_.xB(I.hostElement,"yt-store-grafted-ve-action",[n])}),_.B$(this.hostElement,"yt-next-continuation-data-updated",{continuationData:l,
page:this,contentsArray:T}));this.set(H.continuationsArray||"data.continuations",V[H.responseContinuationsKey||"continuations"]||[])}else l.reload?_.hF(new _.Yd("Reloading from continuation is unsupported")):l.responseContext&&l.responseContext.errors||(delete l.xsrf_token,delete l.timing,delete l.endpoint,delete l.csn,l.responseContext&&delete l.responseContext.serviceTrackingParams,T={request:_.qS(V,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(l).sort()},l.response&&(T.responseContentKeys=
Object.keys(l.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(T.continuationType=this.nextContinuation.continuationType.substr(0,256)),l=new _.Yd("Malformed continuation",T),V.indexOf("/comment_service_ajax")==0?_.hF(l):_.Gr(l)),this.set(H.continuationsArray||"data.continuations",[])}else _.oV(new _.Yd("Missing continuation response",V))},
getContents_:function(V,l){l=l.split(".");return _.EL.getValueByKeys(V,l)},
pathExists_:function(V){var l=this;V=V.toString().split(".");for(var I=0;I<V.length;I++)if(l=l[V[I]],l===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var dHa;var weo;var N5i=function(){var V=_.M.apply(this,arguments)||this;V.triggered_=!1;return V};
_.t(N5i,_.M);_.B=N5i.prototype;_.B.attached=function(){this.maybeTriggerAutoload()};
_.B.detached=function(){this.hasBeenTriggered_=!1};
_.B.onPrescanVisible=function(){this.onShow()};
_.B.onShow=function(){this.showButton||this.trigger()};
_.B.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.B$(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.B.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.B.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.B.computeLabel_=function(V,l){return V===void 0?null:V.label||!l?V.label:this.showMoreText_};
_.B.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.B.getContinuationUrl=function(V){var l={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(l.itct=this.data.clickTrackingParams);return _.MS(V,l)};
_.B.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
var lp=N5i;lp.prototype.showButtonChanged_=lp.prototype.showButtonChanged_;lp.prototype.observeData_=lp.prototype.observeData_;_.O([_.R(_.RU.YtVisibilityBehavior),_.a("design:type",Object)],lp.prototype,"ytVisibilityBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],lp.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],lp.prototype,"showButton",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],lp.prototype,"showIcon",void 0);_.O([_.q({computed:"computeLabel_(data, showButton)"}),_.a("design:type",Object)],lp.prototype,"label",void 0);_.O([_.q({value:_.pW(_.LT("SHOW_MORE",void 0,"Show More"))}),_.a("design:type",Object)],lp.prototype,"showMoreText_",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],lp.prototype,"spinnerActive_",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],lp.prototype,"hasBeenTriggered_",void 0);
_.O([_.q({value:void 0}),_.a("design:type",String)],lp.prototype,"observeVisibleOption",void 0);_.O([_.q({value:void 0}),_.a("design:type",String)],lp.prototype,"observeHiddenOption",void 0);_.O([_.q({value:"observe_once"}),_.a("design:type",Object)],lp.prototype,"observePrescanOption",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lp.prototype,"observeData_",null);
_.O([_.b("showButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lp.prototype,"showButtonChanged_",null);lp=_.O([_.Lm({is:"yt-next-continuation",disableElementRegistration:!0})],lp);
_.u(lp,"yt-next-continuation",function(){if(weo===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;dHa===void 0&&(dHa=document.createElement("template"));var H=dHa;I.call(l,H.content.cloneNode(!0),V.content.firstChild);weo=V}V=weo;return V},{mode:2});var KAN;var jZa;var YbJ=function(){return _.M.apply(this,arguments)||this};
_.t(YbJ,_.M);YbJ.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
var Ip=YbJ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ip.prototype,"data",void 0);Ip=_.O([_.Lm({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Ip);
_.u(Ip,"yt-music-pass-small-feature-info-renderer",function(){if(jZa===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;KAN===void 0&&(KAN=document.createElement("template"));var H=KAN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);jZa=V}V=jZa;return V},{mode:2});_.yN("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var LAw=function(){var V=_.M.apply(this,arguments)||this;V.isCollapsible=!1;V.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return V};
_.t(LAw,_.M);_.B=LAw.prototype;_.B.computeIsCollapsible=function(V){return!!(((V==null?0:V.showMoreText)||(V==null?0:V.visibleRowCount))&&(V==null?0:V.isCollapsible))};
_.B.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"}}}};
_.B.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.B.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.B.onIronResize=function(){var V=this;_.Go(this,"updateGridInitItems",function(){V.maybeUpdateInitialItemsDisplayed()})};
_.B.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var V=this.getVisibleWidth();V!==0&&(V=Math.floor(V/214)*(this.data.visibleRowCount||2),V!==this.initialCount&&(this.initialCount=V,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.B.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.B.computeExpandVisible=function(V,l,I,H){return V&&l&&I&&!!H&&!!H.showMoreText};
_.B.computeShowMoreButton=function(V){return{text:V,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.B.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.B.initCollapsed=function(){var V=this;this.ytLazyListBehavior.canShowMore=!1;var l;(this.collapsed=!((l=this.data)==null||!l.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Al(this,function(){_.U4(V.hostElement,"yt-refit-popups-action")})};
_.B.fillRestIfNotCollapsible=function(){var V=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!V||this.ytLazyListBehavior.fillRemainingListItems()};
_.B.computeViewAllHidden=function(V,l){return V||!l.viewAllEndpoint};
var H9=LAw;H9.prototype.fillRestIfNotCollapsible=H9.prototype.fillRestIfNotCollapsible;H9.prototype.initCollapsed=H9.prototype.initCollapsed;H9.prototype.onIronResize=H9.prototype.onIronResize;H9.prototype.persistentGuideChanged=H9.prototype.persistentGuideChanged;_.O([_.R(_.Da),_.a("design:type",Object)],H9.prototype,"ironResizableBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.lL.YtLazyListBehavior),_.a("design:type",Object)],H9.prototype,"ytLazyListBehavior",void 0);_.O([_.R(_.Vi.YtNextContinuationBehavior),_.a("design:type",Object)],H9.prototype,"ytNextContinuationBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],H9.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.R(_.i6),_.a("design:type",Object)],H9.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],H9.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],H9.prototype,"collapsed",void 0);_.O([_.q(),_.a("design:type",Number)],H9.prototype,"initialCount",void 0);_.O([_.q({computed:"computeShowMoreButton(data.showMoreText)"}),_.a("design:type",Object)],H9.prototype,"showMoreButton",void 0);
_.O([_.q({computed:"computeIsCollapsible(data)"}),_.a("design:type",Object)],H9.prototype,"isCollapsible",void 0);_.O([_.Ij("#items"),_.a("design:type",HTMLElement)],H9.prototype,"items",void 0);_.O([_.xs("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H9.prototype,"persistentGuideChanged",null);_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H9.prototype,"onIronResize",null);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H9.prototype,"initCollapsed",null);_.O([_.xs("canShowMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H9.prototype,"fillRestIfNotCollapsible",null);H9=_.O([_.A({is:"ytd-grid-renderer",disableElementRegistration:!0})],H9);
_.u(H9,"ytd-grid-renderer",function(){if(lDZ!==void 0)return lDZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return lDZ=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var evZ=function(){return _.M.apply(this,arguments)||this};
_.t(evZ,_.M);
evZ.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
var TH=evZ;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],TH.prototype,"data",void 0);TH=_.O([_.A({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],TH);
_.u(TH,"ytd-carousel-ad-renderer",function(){if(CH0!==void 0)return CH0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return CH0=V},{mode:1});var k$E;var B9,FAN=function(){return _.M.apply(this,arguments)||this};
_.t(FAN,_.M);_.B=FAN.prototype;_.B.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"}}}};
_.B.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,B9.JSC$13112_CLICK_LOCATION_ID_MAP))};
_.B.onSitelinkTap=function(V){V.stopPropagation();var l,I,H=V==null?void 0:(l=V.model)==null?void 0:(I=l.item)==null?void 0:I.onTap;H&&this.ytSparklesClickLocationBehavior.handleClick(H,V,!1)};
_.B.onTap=function(V){var l=this.data&&this.data.content&&this.data.content.navigationEndpoint;l&&this.ytSparklesClickLocationBehavior.handleClick(l,V,!1)};
_.B.sendImpression=function(){if(this.data&&this.data.content)for(var V=_.U(this.data.content.impressionEndpoints||[]),l=V.next();!l.done;l=V.next()){l=_.U(l.value.loggingUrls||[]);for(var I=l.next();!I.done;I=l.next())I=I.value,I.baseUrl&&Qz(I.baseUrl,I.attributionSrcMode)}};
var xX=B9=FAN;B9.prototype.onTap=B9.prototype.onTap;B9.prototype.dataChanged=B9.prototype.dataChanged;xX.JSC$13112_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"]]);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Vs.YtSparklesClickLocationBehavior),_.a("design:type",Object)],xX.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],xX.prototype,"data",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xX.prototype,"dataChanged",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],xX.prototype,"onTap",null);xX=B9=_.O([_.A({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],xX);
_.u(xX,"ytd-promoted-sparkles-text-search-renderer",function(){if(k$E!==void 0)return k$E;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return k$E=V},{mode:1});var Xea;var UT,zvJ=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-mute-ad-action":"handleMuteAd"};return V};
_.t(zvJ,_.M);_.B=zvJ.prototype;
_.B.configureRendererStamper=function(){return{"data.menu":{id:_.z("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]]"}}}}}};
_.B.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.B.computeHasAdBadge=function(V){return!(V==null||!V.adBadge)};
_.B.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",UT.JSC$13121_DEFAULT_AD_BADGE_RENDERER),_.fY(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,UT.JSC$13121_CLICK_LOCATION_ID_MAP))};
_.B.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var V;(((V=this.data)==null?void 0:V.impressionCommands)||[]).forEach(function(l){l=_.U(l.loggingUrls||[]);for(var I=l.next();!I.done;I=l.next())I=I.value,I.baseUrl&&Qz(I.baseUrl,I.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.B.onTap=function(V){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint,H;(l=(H=this.data)==null?void 0:H.thumbnailNavigationEndpoint)&&_.Mi(_.b3(V),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(l,V,!1):I&&this.ytSparklesClickLocationBehavior.handleClick(I,V,!1)};
_.B.handleMuteAd=function(){this.collapsed=!0};
_.B.attached=function(){var V=this;_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.B.detached=function(){_.z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vI.Object.defineProperties(zvJ.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var V;return!(((V=this.data)==null?void 0:V.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var V;return!(((V=this.data)==null?void 0:V.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
var ne=UT=zvJ;UT.prototype.dataChanged=UT.prototype.dataChanged;
ne.JSC$13121_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"]]);
ne.JSC$13121_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.LT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.O([_.R(P0),_.a("design:type",Object)],ne.prototype,"ytdActiveViewBehavior",void 0);
_.O([_.R([_.aU.YtActionHandlerBehavior]),_.a("design:type",Object)],ne.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.Vs.YtSparklesClickLocationBehavior),_.a("design:type",Object)],ne.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ne.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],ne.prototype,"collapsed",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],ne.prototype,"useBiggerThumbs",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.m_("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],ne.prototype,"biggerThumbsStyle",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.a("design:type",Boolean)],ne.prototype,"fixAlignmentSmallScreens",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs_square")}}),
_.a("design:type",Boolean)],ne.prototype,"useBiggerThumbsSquare",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.mediaHoverOverlay"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ne.prototype,"hideHoverOverlay",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ne.prototype,"webSearchLayout",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ne.prototype,"webSearchLayoutLandscape",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ne.prototype,"webSearchLayoutSquare",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.promotedSparklesWebStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ne.prototype,"sparklesCtaNoBackground",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.actionButton"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ne.prototype,"hideActionButton",null);_.O([_.q({computed:"computeButtonOverride(uiUpdate)"}),_.a("design:type",Object)],ne.prototype,"buttonOverride",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.a("design:type",Boolean)],ne.prototype,"hasNewAdBadge",void 0);_.O([_.Q("data.promotedSparklesWebStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ne.prototype,"useRoundedBadge",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ne.prototype,"dataChanged",null);ne=UT=_.O([_.A({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],ne);
_.u(ne,"ytd-promoted-sparkles-web-renderer",function(){if(Xea!==void 0)return Xea;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Xea=V},{mode:1});var yja;var $X,tFZ=function(){return _.M.apply(this,arguments)||this};
_.t(tFZ,_.M);_.B=tFZ.prototype;_.B.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]]"}}}}}};
_.B.computeShowCta=function(V){return!(V==null||!V.ctaRenderer)};
_.B.onCtaClick=function(){var V,l,I,H=(V=this.data)==null?void 0:(l=V.ctaRenderer)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.command;H&&this.ytComponentBehavior.resolveCommand(H)};
_.B.onWatchButtonClick=function(){var V,l,I,H=(V=this.data)==null?void 0:(l=V.watchButtonRenderer)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.command;H&&this.ytComponentBehavior.resolveCommand(H)};
_.B.onTap=function(){};
_.B.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",$X.JSC$13124_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",$X.JSC$13124_DEFAULT_CLICK_LOCATION_BEHAVIOR,$X.JSC$13124_CLICK_LOCATION_ID_MAP),this.thumbnail)){var V=this.thumbnail.getElementsByTagName("a");V.length>0&&(V=V.namedItem("thumbnail"))&&V.removeAttribute("href")}};
_.B.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var V=_.U(this.data.impressionUrls),l=V.next();!l.done;l=V.next())l=l.value,dRf(l,NjK(l));this.data.impressionsFired=!0}};
_.B.maybeComputeHref=function(){return null};
_.B.computeIsShortDR=function(V){return!(V==null||!V.watchButtonRenderer)&&!(V==null||!V.ctaRenderer)&&!!this.enableShortDR};
_.B.computeIsNewUiOrShortDr=function(V){return!!this.enableUiUpdate||this.computeIsShortDR(V)};
_.B.computeIsNewUiAndNotShortDr=function(V){return!!this.enableUiUpdate&&!this.computeIsShortDR(V)};
_.B.computeHideAvatar=function(V){return!((V==null?0:V.channelThumbnail)&&this.computeIsNewUiOrShortDr(V))};
_.B.onClick=function(V){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;if(this.enableShortDR&&I&&(_.y(I,_.vU)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(I,V,!!_.y(I,_.vU)),V.stopPropagation();else if(I&&_.y(I,_.vU))this.ytSparklesClickLocationBehavior.handleClick(I,V,!0),V.stopPropagation();else if(I){var H,T;((H=this.data)==null?0:H.navigationEndpoint)&&((T=this.data)==null?0:T.adPlaybackContextParams)&&lEw(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(I)}};
_.B.computeButtonOverride=function(V){if(this.computeIsNewUiOrShortDr(V))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.B.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.B.onThumbnailContainerClick=function(V){this.onClick(V)};
_.B.computeThumbnailWidth=function(V,l){return V?l==="MASSIVE"?600:l==="BIG"?500:l==="MEDIUM"?450:420:360};
_.B.attached=function(){var V=this;_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.B.detached=function(){_.z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var dV=$X=tFZ;$X.prototype.dataChanged=$X.prototype.dataChanged;$X.prototype.onTap=$X.prototype.onTap;dV.JSC$13124_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.LT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};dV.JSC$13124_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
dV.JSC$13124_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"}];_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.O([_.R(P0),_.a("design:type",Object)],dV.prototype,"ytdActiveViewBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],dV.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Vs.YtSparklesClickLocationBehavior),_.a("design:type",Object)],dV.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],dV.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],dV.prototype,"useBiggerThumbs",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_video_display_compact_button_group_for_desktop_search")}}),
_.a("design:type",Boolean)],dV.prototype,"enableShortDR",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_vac_ui_update_for_desktop_search")}}),
_.a("design:type",Boolean)],dV.prototype,"enableUiUpdate",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.m_("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],dV.prototype,"biggerThumbsStyle",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.a("design:type",Boolean)],dV.prototype,"showCta",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.a("design:type",Boolean)],dV.prototype,"isShortDr",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.a("design:type",Boolean)],dV.prototype,"isShortDrOrNewUi",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.a("design:type",Boolean)],dV.prototype,"isNewUiAndNotShortDr",void 0);_.O([_.q({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],dV.prototype,"buttonOverride",void 0);_.O([_.q({computed:"computeSecondaryButtonOverride(data)"}),_.a("design:type",Object)],dV.prototype,"secondaryButtonOverride",void 0);_.O([_.Ij("ytd-thumbnail"),_.a("design:type",HTMLElement)],dV.prototype,"thumbnail",void 0);
_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dV.prototype,"onTap",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dV.prototype,"dataChanged",null);dV=$X=_.O([_.A({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],dV);
_.u(dV,"ytd-promoted-video-renderer",function(){if(yja!==void 0)return yja;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return yja=V},{mode:1});var rja;var wV,G$a=function(){var V=_.M.apply(this,arguments)||this;V.useRoundedBadge=!0;V.sitelinkIds=[];return V};
_.t(G$a,_.M);_.B=G$a.prototype;
_.B.configureRendererStamper=function(){return{"data.menu":{id:_.z("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]]"}}}}}};
_.B.dataChanged=function(){var V;(V=this.data)!=null&&V.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,wV.JSC$13131_CLICK_LOCATION_ID_MAP)};
_.B.onTap=function(V){var l,I=(l=this.data)==null?void 0:l.navigationCommand;I&&!_.Mi(_.b3(V),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(I,V,!1)};
_.B.onSitelinkTap=function(V){var l,I,H=V==null?void 0:(l=V.model)==null?void 0:(I=l.item)==null?void 0:I.onTap;H&&this.ytSparklesClickLocationBehavior.handleClick(H,V,!1)};
_.B.configureSitelinkClickTargets=function(){var V=this,l,I,H=(l=this.data)==null?void 0:(I=l.clickLocationTargets)==null?void 0:I.find(function(T){return T.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
H&&_.h(this.hostElement).querySelectorAll(".sitelink").forEach(function(T){_.fY(T,"yt-simple-endpoint",!0);V.sitelinkIds.push(T.id);var x,n;(x=V.ytSparklesClickLocationBehavior)==null||(n=x.clickTargetMap)==null||n.set(T.id,H)})};
_.B.sendImpression=function(){var V,l,I=((V=this.data)==null?void 0:(l=V.impressionCommand)==null?void 0:l.loggingUrls)||[];V=_.U(I);for(l=V.next();!l.done;l=V.next())l=l.value,l.baseUrl&&Qz(l.baseUrl,l.attributionSrcMode)};
_.B.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.vI.Object.defineProperties(G$a.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
var NQ=wV=G$a;wV.prototype.onTap=wV.prototype.onTap;wV.prototype.dataChanged=wV.prototype.dataChanged;
NQ.JSC$13131_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"]]);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],NQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Vs.YtSparklesClickLocationBehavior),_.a("design:type",Object)],NQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],NQ.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],NQ.prototype,"showFavicon",null);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],NQ.prototype,"useBiggerThumbs",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.m_("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],NQ.prototype,"biggerThumbsStyle",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.a("design:type",Boolean)],NQ.prototype,"enableThumbnailScalingFix",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],NQ.prototype,"dataChanged",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],NQ.prototype,"onTap",null);NQ=wV=_.O([_.A({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],NQ);
_.u(NQ,"ytd-text-image-no-button-layout-renderer",function(){if(rja!==void 0)return rja;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return rja=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var E00;var Ke,JjJ=function(){var V=_.M.apply(this,arguments)||this;V.isInlinePlaybackState=!1;V.uiUpdate=_.z("web_modern_buttons");V.hideCta=_.z("hide_cta_for_home_web_video_ads");V.noBottomMargin=!1;V.animateInTimeStamp=_.g7("hide_cta_for_home_web_video_ads_animate_in_time");V.animateInCta=!1;V.isHovered=!1;V.player=null;V.JSC$13138_playerEvents=new Map;V.JSC$13138_preventProgressSaveTimer=null;V.delayedCtaJobId=null;return V};
_.t(JjJ,_.M);_.B=JjJ.prototype;_.B.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]]"}}}}}};
_.B.attached=function(){this.JSC$13138_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13138_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.z("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.B.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13138_playerEvents)};
_.B.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Ke.JSC$13137_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ke.JSC$13137_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.B.hoverChanged=function(){var V=this;this.delayedCtaJobId&&(_.r0.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.z("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.L6(_.r0,function(){V.buttonContainer.classList.add("show-delayed-buttons")},_.g7("delayed_cta_on_web_delay_milliseconds")))};
_.B.setPlayer=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return(l=_.U4(V.hostElement,"yt-get-inline-preview-player-action"))&&l[0]?_.K(I,l[0].getPlayerPromise(),3):I.jumpTo(0);V.player=I.yieldResult;V.ytPlayerListenerBehavior.listenToPlayerEvents(V.player,V.JSC$13138_playerEvents);_.FU(I)})};
_.B.onPlaybackStart=function(){var V=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13138_preventProgressSaveTimer=_.vX(_.r0,function(){V.JSC$13138_preventProgressSaveTimer=null},1E4))};
_.B.onVideoProgress=function(V){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&V>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.B.resetPreventProgressSaveTimer=function(){_.r0.cancelJob(this.JSC$13138_preventProgressSaveTimer);this.JSC$13138_preventProgressSaveTimer=null};
_.B.getSimpleString=function(V){return _.A5(V)};
_.B.onClick=function(V){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint,H;l=(H=this.data)==null?void 0:H.channelEndpoint;var T,x;(H=(x=_.y((T=this.data)==null?void 0:T.adCtaButton,_.RG))==null?void 0:x.command)&&_.Mi(_.b3(V),this.hostElement,["call-to-action"])?_.z("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(H,V,!1):l&&_.Mi(_.b3(V),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(l,V,!1):!_.Mi(_.b3(V),this.hostElement,["secondary-button"])&&I&&(_.z("enable_short_dr_for_desktop_launchable")?(T=!!_.y(I,_.vU),this.isInlinePlaybackState&&T&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,V,T)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,V,!0)))}};
_.B.updateWatchEndpointStartTime=function(){var V,l;this.player&&((V=this.data)==null?0:V.inlinePlaybackEndpoint)&&((l=this.data)==null?0:l.navigationEndpoint)&&!this.JSC$13138_preventProgressSaveTimer&&(V=Math.floor(this.player.getCurrentTime()),_.y(this.data.navigationEndpoint,_.vU).startTimeSeconds=V,_.y(this.data.inlinePlaybackEndpoint,_.vU).startTimeSeconds=V)};
_.B.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.B.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.vI.Object.defineProperties(JjJ.prototype,{isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var V,l;return!((V=this.data)==null||!V.watchButton)&&!((l=this.data)==null||!l.adCtaButton)}}});
var j0=Ke=JjJ;Ke.prototype.hoverChanged=Ke.prototype.hoverChanged;Ke.prototype.dataChanged=Ke.prototype.dataChanged;
j0.JSC$13137_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"]]);
j0.JSC$13137_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"}];
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],j0.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.Vs.YtSparklesClickLocationBehavior),_.a("design:type",Object)],j0.prototype,"ytSparklesClickLocationBehavior",void 0);
_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],j0.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],j0.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],j0.prototype,"isInlinePlaybackState",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],j0.prototype,"miniMode",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],j0.prototype,"uiUpdate",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],j0.prototype,"hideCta",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],j0.prototype,"noBottomMargin",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],j0.prototype,"animateInCta",void 0);_.O([_.q({computed:"computeButtonOverride(uiUpdate)"}),_.a("design:type",Object)],j0.prototype,"buttonOverride",void 0);
_.O([_.q({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.a("design:type",Object)],j0.prototype,"secondaryButtonOverride",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],j0.prototype,"isHovered",void 0);_.O([_.Ij("#button-container"),_.a("design:type",HTMLElement)],j0.prototype,"buttonContainer",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],j0.prototype,"dataChanged",null);
_.O([_.b("isHovered"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],j0.prototype,"hoverChanged",null);_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],j0.prototype,"isButtonGroup",null);j0=Ke=_.O([_.A({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],j0);
_.u(j0,"ytd-ad-inline-playback-meta-block",function(){if(E00!==void 0)return E00;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return E00=V},{mode:_.Cm("kevlar_poly_si_batch_j065")?1:2});var o0B;var YX,hvb=function(){var V=_.M.apply(this,arguments)||this;V.noBottomMargin=!1;V.isInlinePreviewTriggered=!1;V.JSC$13143_activeViewMeasurementDataResolver=_.QN();return V};
_.t(hvb,_.M);_.B=hvb.prototype;_.B.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.B.attached=function(){var V=this;this.updateInlinePreviewHoverListeners();this.JSC$13143_activeViewMeasurementDataResolver.promise.then(function(l){V.ytdActiveViewBehavior.enableActiveViewMeasurement(l,15)});
_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.B.detached=function(){this.clearInlinePreviewHoverListeners();_.z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.B.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13143_inlinePreviewHoverListener=a6({mediaRenderer:this,lockupElement:this.JSC$13143_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:CX0})};
_.B.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$13143_inlinePreviewHoverListener)==null||UJ(V)};
_.B.onDataChanged=function(){var V;((V=this.data)==null?0:V.activeView)&&this.JSC$13143_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",YX.JSC$13142_DEFAULT_CLICK_LOCATION_BEHAVIOR,YX.JSC$13142_CLICK_LOCATION_ID_MAP);this.thumbnail&&(V=this.thumbnail.getElementsByTagName("a"),V.length>0&&(V=V.namedItem("thumbnail"))&&V.removeAttribute("href"));var l;if((l=this.data)==
null?0:l.hasAutoplay){var I;(I=this.JSC$13143_inlinePreviewHoverListener)==null||eQa(I)}};
_.B.onThumbnailContainerClick=function(V){if(this.data&&this.data.navigationEndpoint){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,V,!!_.y(I,_.vU));V.stopPropagation()}};
_.B.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.B.impressionLog=function(){var V=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var l,I,H=(I=_.y((l=this.data)==null?void 0:l.onImpression,_.NJ))==null?void 0:I.commands;H&&(H.forEach(function(T){T.clickTrackingParams&&delete T.clickTrackingParams;V.ytComponentBehavior.resolveCommand(T)}),this.data.impressionsFired=!0)}};
_.vI.Object.defineProperties(hvb.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$13143_inlinePreviewHoverListener)==null?0:WB(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var Le=YX=hvb;YX.prototype.onDataChanged=YX.prototype.onDataChanged;Le.JSC$13142_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Le.JSC$13142_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"}];_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Le.prototype,"ytComponentBehavior",void 0);
_.O([_.R(P0),_.a("design:type",Object)],Le.prototype,"ytdActiveViewBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],Le.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],Le.prototype,"ytdLockupBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],Le.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.Vs.YtSparklesClickLocationBehavior),_.a("design:type",Object)],Le.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Le.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Le.prototype,"noBottomMargin",void 0);_.O([_.q(),_.a("design:type",Object)],Le.prototype,"isInlinePreviewTriggered",void 0);
_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],Le.prototype,"miniMode",void 0);_.O([_.Ij("ytd-thumbnail"),_.a("design:type",HTMLElement)],Le.prototype,"thumbnail",void 0);_.O([_.Ij("#dismissible"),_.a("design:type",HTMLElement)],Le.prototype,"JSC$13143_dismissibleMedia",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Le.prototype,"onDataChanged",null);
_.O([_.Q("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Le.prototype,"isHovered",null);Le=YX=_.O([_.A({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Le);
_.u(Le,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(o0B!==void 0)return o0B;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return o0B=V},{mode:1});var Pyi;var e0,DHZ=function(){var V=_.M.apply(this,arguments)||this;V.isInlinePreviewTriggered=!1;V.JSC$13146_activeViewMeasurementDataResolver=_.QN();return V};
_.t(DHZ,_.M);_.B=DHZ.prototype;_.B.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.B.attached=function(){var V=this;this.updateInlinePreviewHoverListeners();this.JSC$13146_activeViewMeasurementDataResolver.promise.then(function(l){V.ytdActiveViewBehavior.enableActiveViewMeasurement(l,15)})};
_.B.detached=function(){this.clearInlinePreviewHoverListeners()};
_.B.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13146_inlinePreviewHoverListener=a6({mediaRenderer:this,lockupElement:this.JSC$13146_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:CX0})};
_.B.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$13146_inlinePreviewHoverListener)==null||UJ(V)};
_.B.onDataChanged=function(){var V;((V=this.data)==null?0:V.activeView)&&this.JSC$13146_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",e0.JSC$13145_DEFAULT_CLICK_LOCATION_BEHAVIOR,e0.JSC$13145_CLICK_LOCATION_ID_MAP);this.thumbnail&&(V=this.thumbnail.getElementsByTagName("a"),V.length>0&&(V=V.namedItem("thumbnail"))&&V.removeAttribute("href"))};
_.B.onThumbnailContainerClick=function(V){if(this.data&&this.data.navigationEndpoint){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,V,!0);V.stopPropagation()}};
_.B.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.B.impressionLog=function(){var V=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var l,I,H=(I=_.y((l=this.data)==null?void 0:l.onImpression,_.NJ))==null?void 0:I.commands;H&&(H.forEach(function(T){T.clickTrackingParams&&delete T.clickTrackingParams;_.z("web_ytd_video_display_full_buttoned_renderer_command_resolver_ks")?_.$B(V.hostElement,[T]):_.F().resolve(_.aw).resolveCommand(T,{form:{element:V.hostElement}})}),this.data.impressionsFired=!0)}};
_.vI.Object.defineProperties(DHZ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$13146_inlinePreviewHoverListener)==null?0:WB(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var kX=e0=DHZ;e0.prototype.onDataChanged=e0.prototype.onDataChanged;kX.JSC$13145_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);kX.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"}];_.O([_.R(P0),_.a("design:type",Object)],kX.prototype,"ytdActiveViewBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],kX.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],kX.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],kX.prototype,"ytdReduxBehavior",void 0);
_.O([_.R(_.Vs.YtSparklesClickLocationBehavior),_.a("design:type",Object)],kX.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],kX.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],kX.prototype,"isInlinePreviewTriggered",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],kX.prototype,"miniMode",void 0);_.O([_.Ij("ytd-thumbnail"),_.a("design:type",HTMLElement)],kX.prototype,"thumbnail",void 0);
_.O([_.Ij("#dismissible"),_.a("design:type",HTMLElement)],kX.prototype,"JSC$13146_dismissibleMedia",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kX.prototype,"onDataChanged",null);_.O([_.Q("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kX.prototype,"isHovered",null);kX=e0=_.O([_.A({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],kX);
_.u(kX,"ytd-video-display-full-buttoned-renderer",function(){if(Pyi!==void 0)return Pyi;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Pyi=V},{mode:1});var NZ=function(V,l,I,H){H=H===void 0?!1:H;_.I1.call(this,V);this.adsClientErrorMessage=I;this.aggressivelySample=H;this.args=[];l&&this.args.push(l)};
_.t(NZ,_.I1);var dv=function(V,l,I,H){H=H===void 0?!1:H;_.I1.call(this,V);this.adsClientErrorMessage=I;this.aggressivelySample=H;this.args=[];l&&this.args.push(l)};
_.t(dv,_.I1);var ZFZ=function(V){_.XG.call(this);var l=this;this.initializationFunction=V;this.instance=null;this.addOnDisposeCallback(function(){_.ag(l.instance);l.instance=null})};
_.t(ZFZ,_.XG);ZFZ.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Hl("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var Yyq=function(){var V=new Map;[].forEach(function(l){V.set(l.JSC$26614_getType(),l)})};new Promise(function(){});var dpf=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"]]),naf=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"}]]),Sbv=function(V){this.experimentApiProvider=V;V=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=V<.1};var FL=function(V,l,I,H){_.XG.call(this);this.adsControlFlowEventListeners=l;this.adEventLogger=I;this.experimentApiProvider=H;this.adsControlFlowManagerHelper=V(this,this,this,this,this);_.$w(this,this.adsControlFlowManagerHelper);V=_.U(l);for(l=V.next();!l.done;l=V.next())_.$w(this,l.value)};
_.t(FL,_.XG);var Rvw=function(V,l,I,H){XL(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",l,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H);V=_.U(V.adsControlFlowEventListeners);for(H=V.next();!H.done;H=V.next())Rvw(H.value,l,I)};
_.B=FL.prototype;_.B.onOpportunityProcessedExternallyManaged=function(V,l,I,H){XL(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",V,I,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H)};
_.B.onSlotReceivedExternallyManaged=function(V,l){zH(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",V,l)};
_.B.onSlotEntered=function(V){if(yi(this.adsControlFlowManagerHelper,V)!=null){zH(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",V);this.adsControlFlowManagerHelper.onSlotEntered(V);for(var l=_.U(this.adsControlFlowEventListeners),I=l.next();!I.done;I=l.next())I.value.onSlotEntered(V);if(yi(this.adsControlFlowManagerHelper,V)!=null&&yi(this.adsControlFlowManagerHelper,V).isOccupyingSlotType()&&td(this.adsControlFlowManagerHelper,V)&&!QZ0(this.adsControlFlowManagerHelper,V)){var H;rV(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",V,(H=td(this.adsControlFlowManagerHelper,V))!=null?H:void 0);V=yi(this.adsControlFlowManagerHelper,V);V.slotLifecycleStage!=="entered"&&GH(V.slot,V.slotLifecycleStage,"enterLayoutForSlot");V.slotLifecycleStage="rendering";V.registeredLayoutRenderingAdapter.startRendering(V.layout)}}};
_.B.onSlotExited=function(V){if(yi(this.adsControlFlowManagerHelper,V)!=null){zH(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",V);this.adsControlFlowManagerHelper.onSlotExited(V);for(var l=_.U(this.adsControlFlowEventListeners),I=l.next();!I.done;I=l.next())I.value.onSlotExited(V);yi(this.adsControlFlowManagerHelper,V)!=null&&yi(this.adsControlFlowManagerHelper,V).markedForUnscheduleAfterOutboundAdapterRequests&&cjZ(this,V)}};
_.B.onLayoutReceivedExternallyManaged=function(V,l,I){V.managerLayer!=="core"&&rV(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",V,l,I)};
var WAE=function(V,l,I){if(yi(V.adsControlFlowManagerHelper,l)!=null){rV(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",l,I);V=_.U(V.adsControlFlowEventListeners);for(var H=V.next();!H.done;H=V.next())WAE(H.value,l,I)}};
FL.prototype.onLayoutExited=function(V,l,I){if(yi(this.adsControlFlowManagerHelper,V)!=null){rV(this.adEventLogger,$pN(I),V,l);this.adsControlFlowManagerHelper.onLayoutExited(V,l);for(var H=_.U(this.adsControlFlowEventListeners),T=H.next();!T.done;T=H.next())T.value.onLayoutExited(V,l,I);(I=td(this.adsControlFlowManagerHelper,V))&&l.layoutId===I.layoutId&&bFa(this,V)}};
FL.prototype.disposeInternal=function(){var V=qbi(this.adsControlFlowManagerHelper);V=_.U(V);for(var l=V.next();!l.done;l=V.next())cjZ(this,l.value);_.XG.prototype.disposeInternal.call(this)};
var cjZ=function(V,l){if(yi(V.adsControlFlowManagerHelper,l)!=null)if(yi(V.adsControlFlowManagerHelper,l).JSC$26645_isSlotExitRequested()||yi(V.adsControlFlowManagerHelper,l).JSC$26645_isLayoutExitRequested())yi(V.adsControlFlowManagerHelper,l).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(yi(V.adsControlFlowManagerHelper,l).isOccupyingSlotType())yi(V.adsControlFlowManagerHelper,l).markedForUnscheduleAfterOutboundAdapterRequests=!0,bFa(V,l);else if(yi(V.adsControlFlowManagerHelper,l).JSC$26645_isSlotFillRequested())yi(V.adsControlFlowManagerHelper,
l).markedForUnscheduleAfterOutboundAdapterRequests=!0,yi(V.adsControlFlowManagerHelper,l)!=null&&(zH(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",l),l=yi(V.adsControlFlowManagerHelper,l),l.fulfillmentLifecycleStage="fill_cancel_requested",l.registeredFulfillmentAdapter.cancelSlotFilling());else{var I=td(V.adsControlFlowManagerHelper,l),H;V.experimentApiProvider.get();(H=_.z("h5_enable_layout_unscheduling_events"))&&(I?MFZ(V,l,I):_.Hl(Error("Kh"),l,I,void 0,!1));zH(V.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",l);var T=yi(V.adsControlFlowManagerHelper,l),x=l.slotEntryTrigger,n=T.registeredSlotEntryTriggerAdapters.get(x.triggerId);n&&(n.unregisterTrigger(x),T.registeredSlotEntryTriggerAdapters.delete(x.triggerId));x=_.U(l.slotFulfillmentTriggers);for(n=x.next();!n.done;n=x.next()){n=n.value;var w=T.registeredFulfillmentTriggerAdapters.get(n.triggerId);w&&(w.unregisterTrigger(n),T.registeredFulfillmentTriggerAdapters.delete(n.triggerId))}x=_.U(l.slotExpirationTriggers);
for(n=x.next();!n.done;n=x.next())if(n=n.value,w=T.registeredExpirationTriggerAdapters.get(n.triggerId))w.unregisterTrigger(n),T.registeredExpirationTriggerAdapters.delete(n.triggerId);T.hasLayout()&&(x=T.layout,ET(T,x.layoutExitNormalTriggers),ET(T,x.layoutExitSkipTriggers),ET(T,x.layoutExitMuteTriggers),ET(T,x.layoutExitUserInputSubmittedTriggers),ET(T,x.layoutExitUserCancelledTriggers));T.registeredFulfillmentAdapter=void 0;T.registeredSlotAdapter!=null&&(T.registeredSlotAdapter.release(),T.registeredSlotAdapter=
void 0);T.registeredLayoutRenderingAdapter!=null&&(T.registeredLayoutRenderingAdapter.release(),T.registeredLayoutRenderingAdapter=void 0);T=V.adsControlFlowManagerHelper;yi(T,l)&&(T=sZZ(T,l.slotType+"_"+l.slotPhysicalPosition))&&T.delete(l.slotId);zH(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",l);V=_.U(V.adsControlFlowEventListeners);for(T=V.next();!T.done;T=V.next())T=T.value,T.onSlotUnscheduled(l),I&&!H&&MFZ(T,l,I)}},MFZ=function(V,l,I){rV(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
l,I);
rV(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",l,I);V=_.U(V.adsControlFlowEventListeners);for(var H=V.next();!H.done;H=V.next())H=H.value,I&&MFZ(H,l,I)},bFa=function(V,l){if(yi(V.adsControlFlowManagerHelper,l)!=null&&yi(V.adsControlFlowManagerHelper,l).isOccupyingSlotType()){var I=td(V.adsControlFlowManagerHelper,l);
if(I&&QZ0(V.adsControlFlowManagerHelper,l)){if(yi(V.adsControlFlowManagerHelper,l)!=null){var H=V.adEventLogger,T;var x=((T=naf.get("abandoned"))==null?void 0:T.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";rV(H,x,l,I);V=yi(V.adsControlFlowManagerHelper,l);V.slotLifecycleStage!=="rendering"&&GH(V.slot,V.slotLifecycleStage,"exitLayout");V.slotLifecycleStage="rendering_stop_requested";V.registeredLayoutRenderingAdapter.stopRendering(I,"abandoned")}}else{zH(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
l);try{H=yi(V.adsControlFlowManagerHelper,l);if(!H)throw new dv("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");H.slotLifecycleStage!=="enter_requested"&&H.slotLifecycleStage!=="entered"&&H.slotLifecycleStage!=="rendering"&&GH(H.slot,H.slotLifecycleStage,"exitSlot");H.slotLifecycleStage="exit_requested";if(H.registeredSlotAdapter===void 0)throw H.slotLifecycleStage="scheduled",new dv("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
H.registeredSlotAdapter.exit()}catch(n){n instanceof dv&&n.adsClientErrorMessage?(peo(V.adEventLogger,n.adsClientErrorMessage,l),_.Hl(n,l,void 0,void 0,n.aggressivelySample)):(peo(V.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",l),_.Hl(n,l))}}}};var Jd=function(V,l,I,H,T,x){_.XG.call(this);this.registry=V;this.experimentApiProvider=x;this.slotMap=new Map};
_.t(Jd,_.XG);var sZZ=function(V,l){return(V=V.slotMap.get(l))?V:new Map},yi=function(V,l){return sZZ(V,l.slotType+"_"+l.slotPhysicalPosition).get(l.slotId)},qbi=function(V){var l=[];
V.slotMap.forEach(function(I){I=_.U(I.values());for(var H=I.next();!H.done;H=I.next())l.push(H.value.slot)});
return l};
Jd.prototype.onSlotEntered=function(V){V=yi(this,V);V.slotLifecycleStage!=="enter_requested"&&GH(V.slot,V.slotLifecycleStage,"onSlotEntered");V.slotLifecycleStage="entered"};
var QZ0=function(V,l){V=yi(V,l);return V.hasLayout()&&V.isRendering()},td=function(V,l){(V=yi(V,l))?V.hasLayout()&&!V.layout&&_.Hl("Unexpected empty layout",l):_.Hl("Unexpected undefined slotState",l);
return(V==null?void 0:V.layout)||null};
Jd.prototype.onSlotExited=function(V){V=yi(this,V);V.slotLifecycleStage!=="exit_requested"&&GH(V.slot,V.slotLifecycleStage,"onSlotExited");V.slotLifecycleStage="scheduled"};
Jd.prototype.onLayoutExited=function(V,l){V=yi(this,V);V.isPrimaryLayout(l)&&(V.slotLifecycleStage!=="rendering_stop_requested"&&GH(V.slot,V.slotLifecycleStage,"onLayoutExited"),V.slotLifecycleStage="entered")};
var ET=function(V,l){l=_.U(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var H=V.registeredLayoutExitTriggerAdapters.get(I.triggerId);H&&(H.unregisterTrigger(I),V.registeredLayoutExitTriggerAdapters.delete(I.triggerId))}},GH=function(V,l,I){_.Hl("Slot stage was "+l+" when calling method "+I,V)};var usW=function(V){_.XG.call(this);this.deps=V;this.JSC$13195_adsControlFlowManager=Aj3(this)};
_.t(usW,_.XG);var Aj3=function(V){var l=new FL(function(I,H,T,x){return new Jd(V.deps.registry,I,H,T,x,V.deps.experimentApiProvider)},new Set(jc1(V.deps.registry).concat(V.deps.listeners)),V.deps.adEventLogger,V.deps.experimentApiProvider);
_.$w(V,l);return l};var v0v=function(V,l){_.XG.call(this);this.experimentApiProvider=V;this.eventLoggingSettingsProvider=l;this.eventCount=0};
_.t(v0v,_.XG);v0v.prototype.logEvent=function(V){XL(this,V)};
var zH=function(V,l,I,H){XL(V,l,void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,void 0,H)},rV=function(V,l,I,H,T){XL(V,l,void 0,void 0,void 0,I,H?H:void 0,void 0,void 0,I.adSlotLoggingData,H?H.adLayoutLoggingData:void 0,void 0,T)},peo=function(V,l,I){XL(V,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:l})},XL=function(V,l,I,H,T,x,n,w,N,L,e,k,X){X=X===void 0?0:X;
OFi(V.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+l,"slot:",x,"layout:",n,"ping:",w,"Opportunity:",{opportunityType:I,associatedSlotId:H,slotsFromOpportunity:T,triggerBundle:N,adSlotLoggingData:L,adLayoutLoggingData:e});try{var r=function(){V.experimentApiProvider.get();if(l!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){l||_.Hl("Empty PACF event type",x,n);var E=V.eventLoggingSettingsProvider.get();var D;(D=E.alwaysIncludeDebugData)||(E.experimentApiProvider.get(),D=
!1);E=D;D={eventType:l,eventOrder:++V.eventCount};var Z={};x&&(Z.slotData=NrJ(E,x));if(n){var S={type:n.layoutType,controlFlowManagerLayer:dpf.get(n.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};E&&(S.debugData={layoutId:n.layoutId});Z.layoutData=S}w&&(Z.pingData={pingDispatchStatus:w.dispatchStatus,serializedAdPingMetadata:w.ping.serializedAdPingMetadata,pingIndex:w.index});N&&(Z.triggerData=wDq(N.trigger,N.category));I&&(Z.opportunityData=Krw(E,I,H,T));D.adClientData=Z;L&&(D.serializedSlotAdServingData=
L.serializedSlotAdServingDataEntry);e&&(D.serializedAdServingData=e.serializedAdServingDataEntry);k&&(D.errorInfo=k);_.tF("adsClientStateChange",{adsClientEvent:D})}};
X&&X>0?_.et(_.Dk(),function(){return r()},X):r()}catch(E){OFi(V.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.et(_.Dk(),function(){_.Hl(E instanceof Error?E:String(E),x,n,{pacf_message:"exception during pacf logging"})})}};var Cyw=function(V,l){v0v.call(this,V,l)};
_.t(Cyw,v0v);var aDo=function(){},OFi=function(V,l){return _.z(l)};var g00=function(){var V=new fDN;this.JSC$13214_adsControlFlowManager=(new usW(V)).JSC$13195_adsControlFlowManager},fDN=function(){_.XG.call(this);
var V=this;this.experimentApiProvider=new ZFZ(function(){return new aDo});
var l=new ZFZ(function(){return new Sbv(V.experimentApiProvider)});
this.adEventLogger=new Cyw(this.experimentApiProvider,l);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.t(fDN,_.XG);var mHv=function(){},iFo,op=function(){iFo||(iFo=new mHv);
return iFo},hd=function(V){if(!V.JSC$13225_externallyManagedSlotAdapterCallback){var l=(new g00).JSC$13214_adsControlFlowManager;
V.JSC$13225_externallyManagedSlotAdapterCallback=l}return V.JSC$13225_externallyManagedSlotAdapterCallback},VHZ=function(V,l,I){var H=l.opportunityType,T=Error("Lh");
if(H!==void 0){var x=hd(V);Rvw(x,H,void 0,I)}else _.Hl(T,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});x=[];if(l.adSlotAndLayoutMetadata!==void 0){l=_.U(l.adSlotAndLayoutMetadata);for(var n=l.next();!n.done;n=l.next()){var w=n.value;if(n=w.adSlotMetadata)if(x.push(n),V.onSlotReceivedExternallyManaged(n,I),w.adLayoutMetadata){w=_.U(w.adLayoutMetadata);for(var N=w.next();!N.done;N=w.next())V.onLayoutReceivedExternallyManaged(n,N.value,I)}else I>0&&_.Hl("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else I>0&&_.Hl("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else I>0&&_.Hl("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(H!==void 0)V.onOpportunityProcessedExternallyManaged(H,x,void 0,I);else _.Hl(T,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
mHv.prototype.onSlotReceivedExternallyManaged=function(V,l){V=wv(V);if(V instanceof dv)_.Hl(V,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else hd(this).onSlotReceivedExternallyManaged(V,l)};
mHv.prototype.onLayoutReceivedExternallyManaged=function(V,l,I){V=wv(V);l=Lrg(l);if(V instanceof dv)_.Hl(V,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(l instanceof NZ)_.Hl(l,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else hd(this).onLayoutReceivedExternallyManaged(V,l,I)};
mHv.prototype.onOpportunityProcessedExternallyManaged=function(V,l,I,H){var T=[];l=_.U(l);for(var x=l.next();!x.done;x=l.next())x=wv(x.value),x instanceof dv?_.Hl(x,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):T.push(x);hd(this).onOpportunityProcessedExternallyManaged(V,T,I,H)};
var l9N=function(V,l){l=wv(l);if(l instanceof dv)_.Hl(l,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var I=hd(V);zH(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",l);I=_.U(I.adsControlFlowEventListeners);for(var H=I.next();!H.done;H=I.next())H=yi(H.value,l),H.slotLifecycleStage!=="not_scheduled"&&GH(H.slot,H.slotLifecycleStage,"onSlotScheduled"),H.slotLifecycleStage="scheduled";V=hd(V);zH(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",l);V=_.U(V.adsControlFlowEventListeners);
for(I=V.next();!I.done;I=V.next())I.value.onSlotEntered(l)}},I9J=function(V,l){l=wv(l);
if(l instanceof dv)_.Hl(l,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var I=hd(V);zH(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",l);I=_.U(I.adsControlFlowEventListeners);for(var H=I.next();!H.done;H=I.next())H.value.onSlotExited(l);V=hd(V);zH(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",l);V=_.U(V.adsControlFlowEventListeners);for(I=V.next();!I.done;I=V.next())I.value.onSlotUnscheduled(l)}},H_o=function(V,l,I){l=wv(l);
I=Lrg(I);if(l instanceof dv)_.Hl(l,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(I instanceof NZ)_.Hl(I,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var H=hd(V);rV(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",l,I);H=_.U(H.adsControlFlowEventListeners);for(var T=H.next();!T.done;T=H.next())T.value.onLayoutScheduled(l,I);V=hd(V);rV(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",l,I);V=_.U(V.adsControlFlowEventListeners);
for(H=V.next();!H.done;H=V.next())WAE(H.value,l,I)}},P9=function(V,l,I){l=wv(l);
I=Lrg(I);if(l instanceof dv)_.Hl(l,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(I instanceof NZ)_.Hl(I,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var H=hd(V);rV(H.adEventLogger,$pN("normal"),l,I);H=_.U(H.adsControlFlowEventListeners);for(var T=H.next();!T.done;T=H.next())T.value.onLayoutExited(l,I,"normal");V=hd(V);V=_.U(V.adsControlFlowEventListeners);for(H=V.next();!H.done;H=V.next())MFZ(H.value,l,I)}};_.Di=_.W1(function(V){var l=_.Rj(V,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});V=Object.assign({},l);var I=l.data;l=l.customCommandResolver;var H=(delete V.data,delete V.customCommandResolver,V),T=_.sZ();_.f6(T,function(){return I().interaction},l,function(){var w;
return(w=H.listenToTapEvent)==null?void 0:w.call(H)});
_.gT(T,{visibilityCallback:function(w){var N,L=(N=I().interaction)==null?void 0:N.onFirstVisible;w&&(L&&_.EI(L),H.setOnErrorHandler()&&eAy(T))},
showOption:_.U6});V=_.U(_.xi(!1,void 0,"eiYvIe"));var x=V.next().value,n=V.next().value;V=_.Bu(function(){var w;((w=H.setTouchEndHandler)==null?0:w.call(H))&&!x()&&(T.value.click(),n(!0),setTimeout(function(){n(!1)},100));
return!1});
return _.Y("ad-image-view-model",{class:function(){var w,N=[((w=I().interaction)==null?0:w.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],L;((L=H.isGridViewEnabled)==null?0:L.call(H))&&N.push("ytwAdImageViewModelHostInGridView");return N.join(" ")},
el:T,"on:touchend":V},_.Y("div",{class:"ytwAdImageViewModelHostImageContainer"},_.Y(_.cX,{data:function(){var w;return{sources:I().imageSources,contentMode:(w=I().imageProperties)==null?void 0:w.contentMode}},
alt:function(){var w,N;return((w=I().interaction)==null?void 0:(N=w.accessibility)==null?void 0:N.label)||""},
targetHeight:H.targetHeight,targetWidth:H.targetWidth,preserveHeight:H.preserveHeight,preserveWidth:H.preserveWidth,useWidth:H.useWidth,style:function(){var w,N;return"vertical-align: bottom;"+(((w=I().background)==null?0:w.color)?"background-color:"+_.tv((N=I().background)==null?void 0:N.color)+";":"")},
className:function(){return H.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var w,N;return(N=(w=H.setDraggable)==null?void 0:w.call(H))!=null?N:void 0}})))},"Ua");var TkN=_.W1(function(V){var l=V.data,I=V.listenToTapEvent,H=_.sZ();_.z("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.f6(H,function(){return l().interaction},void 0,function(){return I==null?void 0:I()});
_.gT(H,{visibilityCallback:function(x){var n,w=(n=l().interaction)==null?void 0:n.onFirstVisible;x&&w&&_.EI(w)},
showOption:_.U6});V=_.Bu(function(){if(_.z("enable_web_home_top_landscape_image_layout_legacy_click_command")){var x,n=(x=l().interaction)==null?void 0:x.onTap;n&&_.B$(H.value,"yt-navigate",{endpoint:_.to(n)})}});
var T=function(){};
return _.Y("ad-button-hover-overlay-view-model",{"on:click":V,class:function(){var x;return((x=l().interaction)==null?0:x.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:H},function(){return _.z("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.Y(_.rw,{data:function(){return l().button}},{adButtonViewModel:function(x){return _.Y(_.$3,{data:x.data,
customCommandResolver:T})}}):_.Y(_.rw,{data:function(){return l().button}},{adButtonViewModel:_.$3})}())},"Va");var Kv;_.MR(_.W1(function(V){var l=V.data;var I=_.sZ();_.z("stop_av_measurement_on_detach")&&_.rx(function(){Y9(I)});
_.f6(I,function(){return l().interaction},void 0,function(){return!0});
_.gT(I,{visibilityCallback:function(x){if(x){var n;(x=(n=l().interaction)==null?void 0:n.onFirstVisible)&&_.EI(x);var w;if(n=(w=l().adLayoutData)==null?void 0:w.activeViewData)jn(I,n),_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y9(I)})}else _.z("stop_av_measurement_on_detach")&&Y9(I)},
showOption:_.U6,hideOption:nP});V=_.U(_.xi(!1,void 0,"yzu6qe"));var H=V.next().value,T=V.next().value;_.AF(I,"mouseenter",function(){T(!0)});
_.AF(I,"mouseleave",function(){T(!1)});
return _.Y("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:I},_.Y("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.na({"max-width":function(){return _.z("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.Y("div",{class:function(){var x;
a:{var n;switch((x=_.y(l().thumbnailImage,yX))==null?void 0:(n=x.imageProperties)==null?void 0:n.renderingAspect){case "RENDERING_ASPECT_SQUARE":x="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":x="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}x=void 0}return x}},_.Y(_.rw,{data:function(){return l().thumbnailImage}},{adImageViewModel:function(x){return _.Y(_.Di,
{data:x.data,
listenToTapEvent:!0,setTouchEndHandler:_.z("enable_top_landscape_image_experiment_dom_id_web")})}})),_.Y("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Y(_.NS,{cond:function(){var x,n,w;
return(x=_.y(l().thumbnailImage,yX))==null?void 0:(n=x.imageProperties)==null?void 0:(w=n.overlayIcon)==null?void 0:w.iconImage},
then:function(x){return _.Y(_.cX,{data:x,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.Y("div",{class:function(){return H()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.Y(_.rw,{data:function(){return l().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(x){return _.Y(TkN,
{data:x.data,
listenToTapEvent:!0})}}))),_.Y("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.Y(_.rw,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:function(x){return _.Y(OLZ,{data:x.data,
listenToTapEvent:!0,setTouchEndHandler:_.z("enable_top_landscape_image_experiment_dom_id_web")})}})))},"Wa"),"compact-landscape-no-button-layout-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;var I=_.sZ();_.z("stop_av_measurement_on_detach")&&_.rx(function(){Y9(I)});
var H=_.rq(_.SM);_.f6(I,function(){return l().interaction});
_.gT(I,{visibilityCallback:function(L){if(L){var e;(L=(e=l().interaction)==null?void 0:e.onFirstVisible)&&_.EI(L);var k;if(e=(k=l().adLayoutData)==null?void 0:k.activeViewData)jn(I,e),_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y9(I)})}else _.z("stop_av_measurement_on_detach")&&Y9(I)},
showOption:_.U6,hideOption:nP});var T=_.Bu(function(L){var e,k,X=(e=_.y(l().adImage,yX))==null?void 0:(k=e.interaction)==null?void 0:k.onTap;X&&(_.z("enable_square_image_components_ui_web_with_custom_event")?_.B$(I.value,"yt-navigate",{endpoint:_.to(X)}):SiJ(L,X))}),x=_.Bu(function(){var L,e,k=(L=_.y(l().adButton,YRN))==null?void 0:(e=L.interaction)==null?void 0:e.onTap;
k&&_.B$(I.value,"yt-navigate",{endpoint:_.to(k)})}),n=function(){};
V={};var w={},N={};return _.Y("square-image-layout-view-model",{class:_.ii("ytwSquareImageLayoutViewModelHost",(V.ytwSquareImageLayoutViewModelHostColumn=H,V)),el:I},_.Y("div",{class:_.ii("ytwSquareImageLayoutViewModelHostImage",(w.ytwSquareImageLayoutViewModelHostColumnImage=H,w))},function(){return _.z("enable_square_image_components_ui_web_with_native_img")?_.Y("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var L,e,k;return((L=_.y(l().adImage,yX))==null?void 0:(e=L.imageSources)==
null?void 0:(k=e[0])==null?void 0:k.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":T}):_.Y(_.rw,{data:function(){return l().adImage}},{adImageViewModel:function(L){return _.Y(_.Di,{data:L.data,
isGridViewEnabled:H,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.Y("div",{class:_.ii("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(N.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=H,N))},_.Y(_.rw,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:OLZ}),function(){return _.z("enable_square_image_components_ui_web_with_float_button")?_.Y("div",{"on:click":x},_.Y(_.rw,{data:function(){return l().adButton}},
{adButtonViewModel:function(L){var e={};
return _.Y(_.$3,{data:L.data,customCommandResolver:n,className:_.ii((e.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,e.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=H,e))})}})):_.Y(_.rw,{data:function(){return l().adButton}},{adButtonViewModel:function(L){var e={};
return _.Y(_.$3,{data:L.data,className:_.ii((e.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,e.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=H,e))})}})}()))},"Xa"),"square-image-layout-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;var I=V.noBottomMargin;var H=_.sZ();_.z("stop_av_measurement_on_detach")&&_.rx(function(){Y9(H)});
_.z("enable_web_home_top_landscape_image_layout_level_click")&&_.f6(H,function(){return l().interaction},void 0,function(){return!0});
V=function(){return l().interaction};
V!==void 0&&V!==null||_.Rw(Error("Mh"));_.gT(H,{visibilityCallback:function(N){if(N){var L;(N=(L=l().interaction)==null?void 0:L.onFirstVisible)&&_.EI(N);var e;if(L=(e=l().adLayoutData)==null?void 0:e.activeViewData)jn(H,L),_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y9(H)})}else _.z("stop_av_measurement_on_detach")&&Y9(H)},
showOption:_.U6,hideOption:nP});var T=function(){var N,L,e;return(N=_.y(l().thumbnailImage,yX))==null?void 0:(L=N.background)==null?void 0:(e=L.backgroundImageSource)==null?void 0:e.imageSources};
V=_.U(_.xi(!1,void 0,"rWKgsf"));var x=V.next().value,n=V.next().value;_.AF(H,"mouseenter",function(){n(!0)});
_.AF(H,"mouseleave",function(){n(!1)});
var w=function(){return x()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.Y("top-landscape-image-layout-view-model",{class:function(){var N;return((N=l().interaction)==null?0:N.onTap)&&_.z("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:H},_.Y("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.Y(_.NS,{cond:function(){return T()&&T().length>0},
then:function(){return _.Y("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.na({top:"0","background-image":function(){return"url("+String(T()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.Y(_.NS,{cond:function(){return!!l().adButtonHoverOverlay},
then:function(){return _.Y("div",{class:w},_.Y(_.rw,{data:function(){return l().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:TkN}))}}),_.Y("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.Y(_.rw,{data:function(){return l().thumbnailImage}},{adImageViewModel:function(N){return _.Y(_.Di,{data:N.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.z("enable_web_home_top_landscape_image_layout_level_click")})}})),_.Y("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Y(_.cX,{data:{sources:[{clientResource:{imageName:"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.Y("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.Y(_.rw,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:function(N){return _.Y(OLZ,{data:N.data,
noBottomMargin:function(){return I==null?void 0:I()},
listenToTapEvent:function(){return _.z("enable_web_home_top_landscape_image_layout_level_click")}})}})))},"Ya"),"top-landscape-image-layout-view-model",{props:{data:_.b9,
noBottomMargin:_.b9}});_.MR(_.W1(function(V){var l=V.data;var I=_.sZ();_.z("stop_av_measurement_on_detach")&&_.rx(function(){Y9(I)});
_.gT(I,{visibilityCallback:function(H){if(H){var T;(H=(T=l().interaction)==null?void 0:T.onFirstVisible)&&_.EI(H);var x;if(T=(x=l().adLayoutData)==null?void 0:x.activeViewData)jn(I,T),_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y9(I)})}else _.z("stop_av_measurement_on_detach")&&Y9(I)},
showOption:_.U6,hideOption:nP});return _.Y("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:I},_.Y("div",null,_.Y(_.rw,{data:function(){return l().videoLockup}},{lockupViewModel:function(H){return _.Y(jG,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999})}})))},"Za"),"video-display-button-group-layout-view-model",{props:{data:_.b9,
noBottomMargin:_.b9}});_.MR(_.W1(function(V){var l=V.data;var I=_.sZ();_.z("stop_av_measurement_on_detach")&&_.rx(function(){Y9(I)});
_.gT(I,{visibilityCallback:function(H){if(H){var T;(H=(T=l().interaction)==null?void 0:T.onFirstVisible)&&_.EI(H);var x;if(T=(x=l().adLayoutData)==null?void 0:x.activeViewData)jn(I,T),_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y9(I)})}else _.z("stop_av_measurement_on_detach")&&Y9(I)},
showOption:_.U6,hideOption:nP});return _.Y("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:I},_.Y("div",null,_.Y(_.rw,{data:function(){return l().videoLockup}},{lockupViewModel:function(H){return _.Y(jG,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999})}})))},"$a"),"video-display-full-layout-view-model",{props:{data:_.b9,
noBottomMargin:_.b9}});_.BkN=_.W1(function(V){var l=V.data;V=_.sZ();return _.Y("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:V},_.Y(_.NS,{cond:function(){return l().imageBadge},
then:function(I){return _.Y(_.cX,{data:I,alt:""})}}))},"ab");var x8a=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;V=_.sZ();_.f6(V,function(){return l().interaction},I);
_.gT(V,{visibilityCallback:function(H){var T,x=(T=l().interaction)==null?void 0:T.onFirstVisible;H&&x&&_.EI(x)},
showOption:_.U6});return _.Y("carousel-ad-card-image-view-model",{class:function(){var H;return((H=l().interaction)==null?0:H.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:V,"aria-label":function(){var H,T;return(H=l().interaction)==null?void 0:(T=H.accessibility)==null?void 0:T.label}},_.Y(_.rw,{data:function(){return l().adImage}},{adImageViewModel:function(H){return _.Y(_.Di,{data:H.data,
customCommandResolver:I})}}),_.Y("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.Y(_.rw,{data:function(){return l().badge}},{adCardBadgeViewModel:_.BkN})),_.Y(_.Ka,{model:{color:4}}))},"bb");var U8w=_.W1(function(V){var l=_.U(_.xi(0,void 0,"RmZkje")),I=l.next().value,H=l.next().value,T=_.U(_.xi(!1,void 0,"uS7ese"));l=T.next().value;var x=T.next().value,n;_.rx(function(){clearTimeout(n)});
T=_.Bu(function(){var L;((L=V.animate)==null?0:L.call(V))?(x(!0),n=setTimeout(function(){x(!1);w()},200)):w();
return!1});
var w=function(){H(YZg(function(L){return(L+V.numShownItems())%V.data().length}))},N={};
return _.Y("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.Y("div",{class:_.ii("ytwHorizontalCarouselCarouselWrapper")},_.Y("div",{class:_.ii("ytwHorizontalCarouselCarouselInnerWrapper",(N.ytwHorizontalCarouselAnimating=l,N))},_.Y(_.Ks,{each:V.data,keyBy:"INDEX"},function(L,e){return _.Y("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.na({"flex-basis":function(){return"calc((100% - (8px * "+(V.numShownItems()-1)+")) / "+V.numShownItems()+")"},
order:function(){var k=e-I();k<0&&(k+=V.data().length);return k}})},V.children(L,e))}))),_.Y("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":T},V.nextButton()))},"cb");var nHZ=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;var H=V.expansive;V=_.sZ();_.gT(V,{visibilityCallback:function(T){var x,n=(x=l().interaction)==null?void 0:x.onFirstVisible;T&&n&&_.EI(n)},
showOption:_.U6});return _.Y("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:V},_.Y(U8w,{data:function(){var T;return((T=l())==null?void 0:T.carouselAdCards)||[]},
nextButton:function(){return _.Y(_.rw,{data:function(){return l().nextButton}},{buttonViewModel:function(T){var x=T.data;
return _.Y(_.Db,{data:function(){return(H==null?0:H())?Object.assign({},x(),{style:"mono"}):x()},
className:_.z("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(T){return _.Y(_.rw,{data:T},{carouselAdCardImageViewModel:function(x){return _.Y(x8a,{data:x.data,customCommandResolver:I})}})}))},"db");var $8Z=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;var H=V.className;var T=V.buttonClassName;var x=V.animationEntityKey;var n=V.expansive;return _.Y("carousel-button-view-model",{class:_.ii("ytwCarouselButtonViewModelHost",H)},_.Y(_.rw,{data:function(){return l().carousel}},{carouselAdCardCollectionViewModel:function(w){return _.Y(nHZ,{data:w.data,
customCommandResolver:I,expansive:n})}}),_.Y(_.rw,{data:function(){return l().button}},{adButtonViewModel:function(w){var N=w.data;
return _.Y(_.$3,{data:function(){return(n==null?0:n())?Object.assign({},N(),{style:"AD_BUTTON_STYLE_TONAL"}):N()},
className:T,customCommandResolver:I,animationEntityKey:x})}}))},"eb");_.d8B=_.W1(function(V){var l=V.data;V=V.className;var I=_.sZ();_.XW(function(){var H;((H=l())==null?0:H.backgroundColor)&&I.value.setAttribute("data-background-color",String(l().backgroundColor))});
return _.Y("pivot-button-view-model",{el:I,class:_.ii("ytwPivotButtonViewModelHost",V)},_.Y(_.wq,{command:function(){var H=l();H=H.onClickCommand?_.to(H.onClickCommand):H.contentDescription?_.fW(H.contentDescription):void 0;return H},
ariaLabel:function(){return l().contentDescription}},_.Y(_.NS,{cond:function(){return l().thumbnail},
then:function(H){return _.Y(_.cX,{data:H,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.Y(_.NS,{cond:function(){return l().icon},
then:function(H){return _.Y(_.dq,{icon:function(){return H().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"fb");_.wrW=_.W1(function(V){var l=V.data;var I=V.buttonShapeOverrideables;return _.Y("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.Y(_.rw,{data:function(){return l().buttonViewModels}},{buttonViewModel:function(H){return _.Y(_.Db,{data:H.data,
buttonOverrides:I})},
likeButtonViewModel:function(H){return _.Y(_.BKi,{data:H.data,buttonShapeOverrideables:I})},
dislikeButtonViewModel:function(H){return _.Y(_.TKN,{data:H.data,buttonShapeOverrideables:I})}}))},"gb");var NkW=_.W1(function(V){var l=V.avatar;var I=V.headline;var H=V.badge;var T=V.description;var x=V.expansive;V={};return _.Y("yt-ad-metadata-shape",{class:_.ii("ytAdMetadataShapeHost",(V.ytAdMetadataShapeHostLarge=x,V))},_.Y("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.Y(_.NS,{cond:l,then:function(n){return _.Y(_.pDa,{data:function(){return(x==null?0:x())?Object.assign({},n(),{size:"AD_AVATAR_SIZE_MPLUS"}):n()}})}}),_.Y("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.Y(_.Ni,{text:I,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.Y(_.NS,{cond:H,then:function(n){return _.Y(_.Ns,{data:function(){return(x==null?0:x())?Object.assign({},n(),{style:"AD_BADGE_STYLE_STARK"}):n()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.Y("h2",{class:"ytAdMetadataShapeHostDescription"},_.Y(_.Ni,{text:T,
linkInheritColor:!0})))},"hb");var KTN=_.W1(function(V){var l=V.data;var I=V.onShow;var H=V.expansive;V=_.sZ();_.f6(V,function(){return l().interaction});
_.XW(function(){var x,n=(x=l().animatedRenderingConfig)==null?void 0:x.delayedSecondsToVisible;if(n){var w=setTimeout(I,n*1E3);_.rx(function(){clearTimeout(w)})}});
var T={};return _.Y("reels-ad-card-buttoned-view-model",{class:_.ii(function(){var x;return((x=l().interaction)==null?0:x.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(T.ytwReelsAdCardButtonedViewModelHostExpansive=H,T)),
el:V},_.Y(NkW,{avatar:function(){return _.y(l().avatar,KCv)},
headline:function(){return l().headline},
badge:function(){return _.y(l().adBadge,jm0)},
description:function(){return l().description},
expansive:H}),_.Y(_.rw,{data:function(){return l().ctaButton}},{adButtonViewModel:function(x){var n=x.data;
return _.Y(_.$3,{data:function(){return(H==null?0:H())?Object.assign({},n(),{style:"AD_BUTTON_STYLE_FILLED"}):n()}})}}))},"ib");var jdZ=_.W1(function(V){var l=V.data;V=V.expansive;var I=_.sZ();_.z("web_ad_metadata_clickable")&&_.f6(I,function(){return l().interaction});
var H={};H=_.l8("ytwReelsAdMetadataViewModelHost",(H.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.z("web_ad_metadata_clickable"),H));return _.Y("reels-ad-metadata-view-model",{class:H,el:I},_.Y(NkW,{avatar:function(){return _.y(l().avatar,KCv)},
headline:function(){return l().headline},
badge:function(){return _.y(l().adBadge,jm0)},
description:function(){return l().description},
expansive:V}))},"jb");var YvZ={iconPosition:"icon-with-label",size:"L"},LTE=_.W1(function(V){var l=V.data;V=V.overlayDensity;var I=_.sZ(),H=_.S5(V,0);_.t0(function(){I.value.setAttribute("overlay-density",String(H()))});
var T=function(){var k;return(k=l().reelsAdCardButtonedEntityKey)!=null?k:""},x=function(){return T()+"/ad_button"},n=_.dw(EqJ,T),w=function(){var k,X;
return(X=(k=n())==null?void 0:k.value)!=null?X:!1},N=_.rq(twt),L=function(){return Object.assign({},YvZ,(N()||H()===2)&&{style:"overlay-dark"})};
V={};var e={};return _.Y("reels-player-overlay-layout-view-model",{class:_.ii("ytwReelsPlayerOverlayLayoutViewModelHost",(V.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!l().extension},V.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},V)),
el:I},_.Y("div",{class:_.ii("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(e.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},e))},_.Y("div",{"aria-hidden":function(){return w()},
class:_.ii("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return w()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.na({"transition-duration":function(){return EaK(l())}})},_.Y(_.rw,{data:function(){return l().adMetadata}},{reelsAdMetadataViewModel:function(k){return _.Y(jdZ,{data:k.data,
expansive:function(){return H()===1}})}}),_.Y(_.NS,{cond:function(){return l().extension},
then:function(k){return _.Y("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.Y(_.rw,{data:k},{adButtonViewModel:function(X){return _.Y(_.$3,{data:X.data,animationEntityKey:x,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(X){return _.Y($8Z,{data:X.data,animationEntityKey:x,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return H()===1}})}}))}})),_.Y("div",{"aria-hidden":function(){return!w()},
class:_.ii("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return w()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.na({"transition-duration":function(){return EaK(l())}})},_.Y(_.rw,{data:function(){return l().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(k){return _.Y(KTN,{data:k.data,
onShow:function(){_.ZR(_.K6("booleanEntity",T(),{key:T(),value:!0}))},
expansive:function(){return H()===1}})}}))),_.Y("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.Y(_.rw,{data:function(){return l().actions}},{reelActionBarViewModel:function(k){return _.Y(_.wrW,{data:k.data,
buttonShapeOverrideables:L})}}),_.Y(_.rw,{data:function(){return l().menu}},{buttonViewModel:function(k){return _.Y(_.Db,{data:k.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},L(),{type:"tonal"})}})}}),_.Y(_.rw,{data:function(){return l().pivotButton}},{pivotButtonViewModel:function(k){return _.Y(_.d8B,{data:k.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"kb");_.MR(LTE,"reels-player-overlay-layout-view-model",{props:{data:_.b9,overlayDensity:_.b9}});var e0i=function(){var V=_.M.apply(this,arguments)||this;V.noBottomMargin=!1;V.overlayDensity=0;return V};
_.t(e0i,_.M);_.B=e0i.prototype;
_.B.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.z("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.B.ready=function(){var V=this;lof(function(){V.isAttached&&nv(V.JSC$13267_storedAdSlotMetadata,V.JSC$13267_storedAdLayoutMetadata,V.adSlotMetadata,V.adLayoutMetadata)&&P9(op(),V.JSC$13267_storedAdSlotMetadata,V.JSC$13267_storedAdLayoutMetadata)})};
_.B.attached=function(){nv(this.JSC$13267_storedAdSlotMetadata,this.JSC$13267_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&H_o(op(),this.JSC$13267_storedAdSlotMetadata,this.JSC$13267_storedAdLayoutMetadata)};
_.B.detached=function(){nv(this.JSC$13267_storedAdSlotMetadata,this.JSC$13267_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&P9(op(),this.JSC$13267_storedAdSlotMetadata,this.JSC$13267_storedAdLayoutMetadata)};
_.B.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13267_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13267_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13267_storedAdLayoutMetadata!==void 0&&this.JSC$13267_storedAdSlotMetadata!==void 0&&P9(op(),this.JSC$13267_storedAdSlotMetadata,this.JSC$13267_storedAdLayoutMetadata),H_o(op(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13267_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13267_storedAdSlotMetadata=this.adSlotMetadata)};
_.vI.Object.defineProperties(e0i.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.adLayoutMetadata}}});
var Zi=e0i;Zi.prototype.onAdMetadataChanged=Zi.prototype.onAdMetadataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Zi.prototype,"rendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Zi.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Zi.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],Zi.prototype,"noBottomMargin",void 0);_.O([_.q(),_.a("design:type",Object)],Zi.prototype,"overlayDensity",void 0);_.O([_.Q("data.adLayoutMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Zi.prototype,"adLayoutMetadata",null);_.O([_.q(),_.a("design:type",Object)],Zi.prototype,"adSlotMetadata",void 0);
_.O([_.b("adLayoutMetadata","adSlotMetadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zi.prototype,"onAdMetadataChanged",null);Zi=_.O([_.A({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Zi);
_.u(Zi,"ytd-in-feed-ad-layout-renderer",function(){if(OfZ!==void 0)return OfZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return OfZ=V},
{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var kIZ;var FTZ;var Xri=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return V};
_.t(Xri,_.M);_.B=Xri.prototype;_.B.computeHasLiveDescription=function(V){return!(V==null||!V.liveDescription)};
_.B.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.B.onYtToggleButton=function(V){var l,I=(l=this.data)==null?void 0:l.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.K6("upcomingEventReminderStateEntity",I,{key:I,state:V.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.B.attached=function(){this.updateChannelBanner()};
_.B.dataChanged=function(){this.updateChannelBanner()};
_.B.videoReminderStateChanged=function(){var V;this.videoReminderState&&_.y((V=this.data)==null?void 0:V.cta,_.QX)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.B.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var V=_.sI(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);V&&(V.startsWith("//")&&(V="https:"+V),this.hostElement.classList.add("channel-banner"),_.i3(this.hostElement,{"--ytvmh-channel-banner":"url("+V+")"}))}else _.z("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.B.onPlayerReady=function(){this.onIronResize()};
_.B.maybeFlushDebouncer=function(){_.z("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(V){var l;V=(l=V.getElementsByTagName("yt-attributed-string"))==null?void 0:l[0];Xsq(V==null?void 0:V.polymerController)})};
_.B.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var V=_.h(this.hostElement).querySelector("#live-description"),l;V&&((l=this.data)==null?0:l.shortLiveDescription)&&V.clientWidth<V.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
var S0=Xri;S0.prototype.onIronResize=S0.prototype.onIronResize;S0.prototype.videoReminderStateChanged=S0.prototype.videoReminderStateChanged;S0.prototype.dataChanged=S0.prototype.dataChanged;S0.prototype.onYtToggleButton=S0.prototype.onYtToggleButton;_.O([_.R(_.Da),_.a("design:type",Object)],S0.prototype,"ironResizableBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],S0.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],S0.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],S0.prototype,"data",void 0);_.O([_.q({selectorArgs:["data.videoReminderEntityKey"],selector:rac}),_.a("design:type",Object)],S0.prototype,"videoReminderState",void 0);
_.O([_.q({reflectToAttribute:!0,value:_.z("web_modern_buttons")}),_.a("design:type",Boolean)],S0.prototype,"rounded",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.a("design:type",Boolean)],S0.prototype,"hasLiveDescription",void 0);_.O([_.q({reflectToAttribute:!0,value:_.z("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.a("design:type",Boolean)],S0.prototype,"resizableAdBannerSafariFix",void 0);
_.O([_.q({reflectToAttribute:!0,value:_.z("align_three_dot_menu_with_title_description")}),_.a("design:type",Boolean)],S0.prototype,"menuFix",void 0);_.O([_.H1("yt-formatted-string"),_.a("design:type",Array)],S0.prototype,"formattedStrings",void 0);_.O([_.Ij("#cta-button"),_.a("design:type",HTMLElement)],S0.prototype,"ctaButton",void 0);_.O([_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],S0.prototype,"onYtToggleButton",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S0.prototype,"dataChanged",null);_.O([_.b("videoReminderState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S0.prototype,"videoReminderStateChanged",null);_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S0.prototype,"onIronResize",null);
S0=_.O([_.A({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],S0);
_.u(S0,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(FTZ!==void 0)return FTZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return FTZ=V},{mode:1});var z0N;var y$a=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};V.isLocked=!1;return V};
_.t(y$a,_.M);_.B=y$a.prototype;_.B.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.B.onExpandedChanged=function(){this.expanded&&_.U4(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.B.onMouseOver=function(){this.maybeExpand()};
_.B.onTap=function(){this.maybeExpand()};
_.B.onExpandableTileExpanding=function(V){V!==this&&(this.expanded=!1)};
_.B.onExpandableTileLockAndCollapse=function(V){this.isLocked=!0;V!==this&&(this.expanded=!1)};
_.B.onExpandableTileUnlock=function(){this.isLocked=!1};
var Rp=y$a;Rp.prototype.onTap=Rp.prototype.onTap;Rp.prototype.onMouseOver=Rp.prototype.onMouseOver;Rp.prototype.onExpandedChanged=Rp.prototype.onExpandedChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Rp.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Rp.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Rp.prototype,"expanded",void 0);_.O([_.xs("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rp.prototype,"onExpandedChanged",null);_.O([_.W("mouseover"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rp.prototype,"onMouseOver",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rp.prototype,"onTap",null);
Rp=_.O([_.A({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Rp);
_.u(Rp,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(z0N!==void 0)return z0N;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return z0N=V},{mode:1});var tH0;var Qi,r$Z=function(){var V=_.M.apply(this,arguments)||this;V.buttonOverrides={style:"overlay"};V.useYtdPlayer=_.z("use_ytd_player_for_desktop_masthead");V.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};V.playbackFinished=!1;V.JSC$13279_playerManager=null;V.JSC$13279_mastheadCounter=new XTJ;return V};
_.t(r$Z,_.M);_.B=r$Z.prototype;_.B.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"}}}};
_.B.created=function(){this.JSC$13279_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13279_playerManager=new Y6)};
_.B.ready=function(){var V=this;this.JSC$13279_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var l=_.h(this.hostElement).querySelector("#player");this.useYtdPlayer?l.style.display="none":(this.ytdPlayer.style.display="none",X9o(this.JSC$13279_playerManager,l,function(){V.onPlaybackEnded()}),_.h(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var I;
((I=V.data)==null?0:I.navigationEndpoint)&&_.B$(V.hostElement,"yt-navigate",{endpoint:V.data.navigationEndpoint})}))};
_.B.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13279_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.B.attached=function(){var V=this;_.r_(function(){V.maybePlayVideo()})};
_.B.maybePlayVideo=function(){var V=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$13279_playerManager.playVideo(),this.getPlayerPromise().then(function(){V.JSC$13279_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.B.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13279_playerManager.stopVideo()};
_.B.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var V,l={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((V=this.data.playbackStartMs)!=null?V:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(l);this.setupYtdPlayer()}else ydE(this.JSC$13279_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(zbb(this.JSC$13279_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.B.getPlayerPromise=function(){return this.JSC$13279_playerManager.getPlayerPromise()};
_.B.onYtToggleButton=function(V){this.useYtdPlayer?this.toggleMute(V.detail.toggled):V.detail.toggled?this.JSC$13279_playerManager.mute():this.JSC$13279_playerManager.unMute()};
_.B.onYtNavigate=function(V){var l=tyT(V.detail.endpoint),I=r7J(this.data.clickthroughReportingData);l&&I&&(V.detail.endpoint.watchEndpoint?V.detail.tempData=I:_.f8(l,I,30))};
_.B.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.B.onExpandedChanged=function(){this.expanded?(_.U4(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.B.onMouseOver=function(){this.maybeExpand()};
_.B.onTap=function(){this.maybeExpand()};
_.B.onExpandableTileExpanding=function(V){V!==this&&(this.stopVideo(),this.expanded=!1)};
_.B.onExpandableTileLockAndCollapse=function(V){V!==this&&(this.isLocked=!0,this.expanded=!1)};
_.B.onExpandableTileUnlock=function(){this.isLocked=!1};
_.B.lockAndCollapseExpandableTiles=function(){_.xB(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.B.unlockExpandableTiles=function(){_.xB(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.B.setupYtdPlayer=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,V.ytdPlayer.getPlayerPromise(),2);l=I.yieldResult;l.addEventListener("onStateChange",function(H){V.onPlayerStateChange(H)});
l.addEventListener("onCueRangeExit",function(H){V.onCueRangeExit(H)});
_.FU(I)})};
_.B.onPlayerStateChange=function(V){if(V===1&&(V=this.ytdPlayer.getPlayer())){var l=V.getCurrentTime(),I,H,T=l+((H=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?H:0)/1E3;V.addCueRange("playback",l,T);this.JSC$13279_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.B.onCueRangeExit=function(V){V==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.B.toggleMute=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,l.ytdPlayer.getPlayerPromise(),2);I=H.yieldResult;V?I.mute():I.unMute();_.FU(H)})};
var c9=Qi=r$Z;Qi.prototype.onTap=Qi.prototype.onTap;Qi.prototype.onMouseOver=Qi.prototype.onMouseOver;Qi.prototype.onExpandedChanged=Qi.prototype.onExpandedChanged;Qi.prototype.onYtNavigate=Qi.prototype.onYtNavigate;Qi.prototype.onYtToggleButton=Qi.prototype.onYtToggleButton;Qi.prototype.dataChanged=Qi.prototype.dataChanged;c9.JSC$13278_PLAYBACK_CUE_RANGE="playback";_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],c9.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],c9.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],c9.prototype,"expanded",void 0);_.O([_.q(),_.a("design:type",Object)],c9.prototype,"buttonOverrides",void 0);
_.O([_.q(),_.a("design:type",Object)],c9.prototype,"useYtdPlayer",void 0);_.O([_.Ij("#ytd-player"),_.a("design:type",Object)],c9.prototype,"ytdPlayer",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],c9.prototype,"dataChanged",null);_.O([_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],c9.prototype,"onYtToggleButton",null);
_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],c9.prototype,"onYtNavigate",null);_.O([_.xs("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],c9.prototype,"onExpandedChanged",null);_.O([_.W("mouseover"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],c9.prototype,"onMouseOver",null);
_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],c9.prototype,"onTap",null);c9=Qi=_.O([_.A({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],c9);
_.u(c9,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(tH0!==void 0)return tH0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return tH0=V},{mode:1});var GIi;var W9=function(){return _.M.apply(this,arguments)||this};
_.t(W9,_.M);W9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
W9.prototype.onShow=function(){var V=_.h(this.hostElement).querySelector("#live-description"),l;V&&((l=this.data)==null?0:l.shortLiveDescription)&&V.clientWidth<V.scrollWidth&&this.hostElement.classList.add("short-live-description")};
W9.prototype.onYtToggleButton=function(V){var l,I=(l=this.data)==null?void 0:l.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.K6("upcomingEventReminderStateEntity",I,{key:I,state:V.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
W9.prototype.videoReminderStateChanged=function(){var V;this.videoReminderState&&_.y((V=this.data)==null?void 0:V.cta,_.QX)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
var bp=W9;bp.prototype.videoReminderStateChanged=bp.prototype.videoReminderStateChanged;bp.prototype.onYtToggleButton=bp.prototype.onYtToggleButton;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],bp.prototype,"ytdReduxBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],bp.prototype,"data",void 0);_.O([_.q({selectorArgs:["data.videoReminderEntityKey"],selector:rac}),_.a("design:type",Object)],bp.prototype,"videoReminderState",void 0);_.O([_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],bp.prototype,"onYtToggleButton",null);
_.O([_.b("videoReminderState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bp.prototype,"videoReminderStateChanged",null);bp=_.O([_.A({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],bp);
_.u(bp,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(GIi!==void 0)return GIi;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return GIi=V},{mode:_.Cm("kevlar_poly_si_batch_j065")?1:2});var EH0;var qQ,J$o=function(){var V=_.M.apply(this,arguments)||this;V.useYtdPlayer=_.z("use_ytd_player_for_desktop_masthead");V.buttonOverrides={style:"overlay"};V.JSC$13287_playerManager=null;V.JSC$13287_mastheadCounter=new XTJ;V.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return V};
_.t(J$o,_.M);_.B=J$o.prototype;_.B.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"}}}};
_.B.created=function(){this.JSC$13287_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13287_playerManager=new Y6)};
_.B.ready=function(){var V=this;this.JSC$13287_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var l;(l=this.embeddedPlayer)==null||l.remove()}else{var I;(I=this.ytdPlayer)==null||I.remove();X9o(this.JSC$13287_playerManager,this.embeddedPlayer,function(){V.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){V.data&&V.data.navigationEndpoint&&_.B$(V.hostElement,"yt-navigate",{endpoint:V.data.navigationEndpoint})})}};
_.B.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13287_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.B.dataChanged=function(){var V=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var l=!this.data.disableAutoPlayback,I,H={autoplay:l,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((I=this.data.playbackStartMs)!=null?I:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(l?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(H);this.setupYtdPlayer()}else ydE(this.JSC$13287_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(zbb(this.JSC$13287_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13287_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.xB(V.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");V.JSC$13287_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.B.getPlayerPromise=function(){return this.JSC$13287_playerManager.getPlayerPromise()};
_.B.onYtToggleButton=function(V){this.useYtdPlayer?this.toggleMute(V.detail.toggled):V.detail.toggled?this.JSC$13287_playerManager.mute():this.JSC$13287_playerManager.unMute()};
_.B.onYtNavigate=function(V){var l=tyT(V.detail.endpoint),I=r7J(this.data.clickthroughReportingData);l&&I&&(V.detail.endpoint.watchEndpoint?V.detail.tempData=I:_.f8(l,I,30))};
_.B.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13287_playerManager.stopVideo()};
_.B.setupYtdPlayer=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,V.ytdPlayer.getPlayerPromise(),2);l=I.yieldResult;l.addEventListener("onStateChange",function(H){V.onPlayerStateChange(H)});
l.addEventListener("onCueRangeExit",function(H){V.onCueRangeExit(H)});
_.FU(I)})};
_.B.onPlayerStateChange=function(V){if(V===1&&(V=this.ytdPlayer.getPlayer())){var l=V.getCurrentTime(),I,H,T=l+((H=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?H:0)/1E3;V.addCueRange("playback",l,T);_.xB(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13287_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.B.onCueRangeExit=function(V){V==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.B.toggleMute=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,l.ytdPlayer.getPlayerPromise(),2);I=H.yieldResult;V?I.mute():I.unMute();_.FU(H)})};
_.vI.Object.defineProperties(J$o.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var V,l;if(!((V=this.data)==null?0:(l=V.accessibilityData)==null?0:l.label))return"Ad primary link";var I,H;return _.LT("AD_TITLE",{title:(I=this.data)==null?void 0:(H=I.accessibilityData)==null?void 0:H.label})}}});
var MQ=qQ=J$o;qQ.prototype.onYtMastheadHidden=qQ.prototype.onYtMastheadHidden;qQ.prototype.onYtNavigate=qQ.prototype.onYtNavigate;qQ.prototype.onYtToggleButton=qQ.prototype.onYtToggleButton;qQ.prototype.dataChanged=qQ.prototype.dataChanged;MQ.JSC$13286_PLAYBACK_CUE_RANGE="playback";_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],MQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],MQ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],MQ.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],MQ.prototype,"useYtdPlayer",void 0);_.O([_.Ij("ytd-toggle-button-renderer"),_.a("design:type",Object)],MQ.prototype,"muteButton",void 0);_.O([_.q(),_.a("design:type",Object)],MQ.prototype,"buttonOverrides",void 0);
_.O([_.Q("data.accessibilityData.label"),_.a("design:type",String),_.a("design:paramtypes",[])],MQ.prototype,"titleAriaLabel",null);_.O([_.Ij("#replay-button"),_.a("design:type",Object)],MQ.prototype,"replayButton",void 0);_.O([_.Ij("#player-container"),_.a("design:type",Object)],MQ.prototype,"playerContainer",void 0);_.O([_.Ij("#player"),_.a("design:type",Object)],MQ.prototype,"embeddedPlayer",void 0);_.O([_.Ij("#ytd-player"),_.a("design:type",Object)],MQ.prototype,"ytdPlayer",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MQ.prototype,"dataChanged",null);_.O([_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],MQ.prototype,"onYtToggleButton",null);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],MQ.prototype,"onYtNavigate",null);
_.O([_.W("yt-masthead-hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MQ.prototype,"onYtMastheadHidden",null);MQ=qQ=_.O([_.A({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],MQ);
_.u(MQ,"ytd-video-masthead-ad-primary-video-renderer",function(){if(EH0!==void 0)return EH0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return EH0=V},{mode:2});var oHw;var h0w=function(){var V=_.M.apply(this,arguments)||this;V.collapsed=!1;V.impressionResolver=_.QN();V.JSC$13291_activeViewMeasurementDataResolver=_.QN();V.actionMap={"yt-mute-ad-action":"handleMuteAd"};return V};
_.t(h0w,_.M);_.B=h0w.prototype;_.B.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"}}}};
_.B.ready=function(){var V=this;_.h(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){V.expandAd()});
this.hostElement.addEventListener("yt-action",function(l){if(l.detail.actionName==="yt-service-request"){var I=l.detail.args[1];I.videoMastheadAdMuteCommand&&(V.collapseAd(I.videoMastheadAdMuteCommand.encryptedMastheadId),l.stopPropagation())}})};
_.B.attached=function(){var V=this;_.r_(function(){V.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(l){if(!V.collapsed){l=_.U(l);for(var I=l.next();!I.done;I=l.next())I=I.value,Qz(I.baseUrl,I.attributionSrcMode);V.data.impressionCommand=void 0}});
this.JSC$13291_activeViewMeasurementDataResolver.promise.then(function(l){V.ytdActiveViewBehavior.enableActiveViewMeasurement(l,15)});
_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.B.dataChanged=function(){var V;((V=this.data.impressionCommand)==null?0:V.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var l;((l=this.data)==null?0:l.activeView)&&this.JSC$13291_activeViewMeasurementDataResolver.resolve(this.data.activeView);(V=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(V.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.B.computeWidescreen=function(V){var l;return!!(V&&((l=_.y(V,nLB))==null?0:l.isWidescreen))};
_.B.computeExpandable=function(V){return!!(V&&V.length>0)};
_.B.onIronResize=function(){if(this.expandable){var V=_.h(this.hostElement).querySelector("#expandable-tile-container :first-child");V&&!V.expanded&&(V.expanded=!0)}};
_.B.handleMuteAd=function(){this.collapseAd(null)};
_.B.restoreCollapsedState=function(V){this.collapsed=_.Fu().get("HIDDEN_MASTHEAD_ID")===V};
_.B.collapseAd=function(V){if(V){var l=_.Fu();l.set("HIDDEN_MASTHEAD_ID",V);l.save()}(V=_.h(this.hostElement).querySelector("#video"))&&_.B$(V,"yt-masthead-hidden");this.collapsed=!0};
_.B.expandAd=function(){var V=_.Fu();V.set("HIDDEN_MASTHEAD_ID",!1);V.save();location.reload()};
_.B.detached=function(){_.z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var sT=h0w;sT.prototype.onIronResize=sT.prototype.onIronResize;sT.prototype.dataChanged=sT.prototype.dataChanged;_.O([_.R(_.Da),_.a("design:type",Object)],sT.prototype,"ironResizableBehavior",void 0);_.O([_.R(P0),_.a("design:type",Object)],sT.prototype,"ytdActiveViewBehavior",void 0);_.O([_.R(_.c0),_.a("design:type",Object)],sT.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],sT.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],sT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],sT.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.a("design:type",Boolean)],sT.prototype,"widescreen",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.a("design:type",Boolean)],sT.prototype,"expandable",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],sT.prototype,"collapsed",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sT.prototype,"dataChanged",null);
_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sT.prototype,"onIronResize",null);sT=_.O([_.A({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],sT);
_.u(sT,"ytd-video-masthead-ad-v3-renderer",function(){if(oHw!==void 0)return oHw;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return oHw=V},{mode:2});var PVN=function(){return _.M.apply(this,arguments)||this};
_.t(PVN,_.M);_.B=PVN.prototype;_.B.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.B.ready=function(){var V=this;lof(function(){V.isAttached&&nv(V.JSC$13296_storedAdSlotMetadata,V.JSC$13296_storedAdLayoutMetadata,V.adSlotMetadata,V.adLayoutMetadata)&&P9(op(),V.JSC$13296_storedAdSlotMetadata,V.JSC$13296_storedAdLayoutMetadata)})};
_.B.attached=function(){nv(this.JSC$13296_storedAdSlotMetadata,this.JSC$13296_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&H_o(op(),this.JSC$13296_storedAdSlotMetadata,this.JSC$13296_storedAdLayoutMetadata)};
_.B.detached=function(){nv(this.JSC$13296_storedAdSlotMetadata,this.JSC$13296_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&P9(op(),this.JSC$13296_storedAdSlotMetadata,this.JSC$13296_storedAdLayoutMetadata)};
_.B.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13296_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13296_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13296_storedAdLayoutMetadata!==void 0&&this.JSC$13296_storedAdSlotMetadata!==void 0&&P9(op(),this.JSC$13296_storedAdSlotMetadata,this.JSC$13296_storedAdLayoutMetadata),H_o(op(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13296_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13296_storedAdSlotMetadata=this.adSlotMetadata)};
_.vI.Object.defineProperties(PVN.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.adLayoutMetadata}}});
var pe=PVN;pe.prototype.onAdMetadataChanged=pe.prototype.onAdMetadataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],pe.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pe.prototype,"data",void 0);_.O([_.Q("data.adLayoutMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],pe.prototype,"adLayoutMetadata",null);
_.O([_.q(),_.a("design:type",Object)],pe.prototype,"adSlotMetadata",void 0);_.O([_.b("adLayoutMetadata","adSlotMetadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pe.prototype,"onAdMetadataChanged",null);pe=_.O([_.A({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],pe);
_.u(pe,"ytd-page-top-ad-layout-renderer",function(){if(kIZ!==void 0)return kIZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return kIZ=
V},{mode:_.Cm("kevlar_poly_si_batch_j070")?1:2});var D8J;var Z_i=function(){var V=_.M.apply(this,arguments)||this;V.noBottomMargin=!1;V.overlayDensity=0;return V};
_.t(Z_i,_.M);_.B=Z_i.prototype;
_.B.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.B.ready=function(){var V=this;lof(function(){V.isAttached&&V.adSlotMetadata&&I9J(op(),V.adSlotMetadata)})};
_.B.attached=function(){if(this.adSlotMetadata){var V;if(this.adSlotMetadata===((V=this.data)==null?void 0:V.adSlotMetadata))l9N(op(),this.adSlotMetadata);else{var l;_.hF(Error("Nh`"+this.adSlotMetadata+"`"+((l=this.data)==null?void 0:l.adSlotMetadata)))}}};
_.B.detached=function(){this.adSlotMetadata&&I9J(op(),this.adSlotMetadata)};
_.B.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&I9J(op(),this.adSlotMetadata),l9N(op(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.vI.Object.defineProperties(Z_i.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var V,l,I=_.y((V=this.data)==null?void 0:(l=V.fulfillmentContent)==null?void 0:l.fulfilledLayout,_.dIZ),H;return(V=(H=_.y(I==null?void 0:I.renderingContent,$I3))==null?void 0:H.layout)?V.toLowerCase().replace(/_/g,"-"):""}}});
var Ad=Z_i;Ad.prototype.onAdSlotMetadataChanged=Ad.prototype.onAdSlotMetadataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Ad.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ad.prototype,"rendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ad.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],Ad.prototype,"noBottomMargin",void 0);_.O([_.q(),_.a("design:type",Object)],Ad.prototype,"overlayDensity",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",String),_.a("design:paramtypes",[])],Ad.prototype,"layout",null);_.O([_.b("data.adSlotMetadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ad.prototype,"onAdSlotMetadataChanged",null);
Ad=_.O([_.A({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Ad);
_.u(Ad,"ytd-ad-slot-renderer",function(){if(D8J!==void 0)return D8J;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return D8J=V},{mode:_.Cm("kevlar_poly_si_batch_j077")?
1:2});var Svw;var R0N=function(){return _.M.apply(this,arguments)||this};
_.t(R0N,_.M);_.B=R0N.prototype;_.B.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"}}}};
_.B.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&lEw(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.B.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var V=_.U(this.data.impressionUrls),l=V.next();!l.done;l=V.next())l=l.value,dRf(l,NjK(l));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.B.attached=function(){var V=this;_.z("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.B.detached=function(){_.z("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vI.Object.defineProperties(R0N.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var up=R0N;up.prototype.dataChanged=up.prototype.dataChanged;up.prototype.onTap=up.prototype.onTap;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.O([_.R(P0),_.a("design:type",Object)],up.prototype,"ytdActiveViewBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],up.prototype,"ytdReduxBehavior",void 0);
_.O([_.q({selector:_.SM}),_.a("design:type",Object)],up.prototype,"isGridViewEnabled",void 0);_.O([_.Q("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],up.prototype,"watchFeedBigThumbs",null);_.O([_.Q("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],up.prototype,"thumbnailWidth",null);_.O([_.q(),_.a("design:type",Object)],up.prototype,"data",void 0);
_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],up.prototype,"onTap",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],up.prototype,"dataChanged",null);up=_.O([_.A({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],up);
_.u(up,"ytd-compact-promoted-video-renderer",function(){if(Svw!==void 0)return Svw;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Svw=V},{mode:1});var QdW;_.yN("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var c$Z=function(){return _.M.apply(this,arguments)||this};
_.t(c$Z,_.M);c$Z.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
var v9=c$Z;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],v9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],v9.prototype,"data",void 0);v9=_.O([_.A({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],v9);
_.u(v9,"ytd-search-pyv-renderer",function(){if(QdW!==void 0)return QdW;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return QdW=V},{mode:1});var WT0;var b_i;var qvi;var MHw;var sdB;var pro=function(){var V=_.M.apply(this,arguments)||this;V.boundCaptureFocus=function(l){V.onCaptureFocus(l)};
return V};
_.t(pro,_.M);_.B=pro.prototype;_.B.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.B.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.B.onCaptureFocus=function(V){_.b3(V).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.B.getIconType=function(V){return V?"yt-icons:"+V.toLowerCase():null};
_.B.onSelect=function(){var V;if((V=this.data)==null?0:V.onSelectCommand)if(_.z("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var l;((l=_.y(this.data.onSelectCommand.commandMetadata,_.mK))==null?0:l.url)?_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.F().resolve(_.aw).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.vI.Object.defineProperties(pro.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.A5(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
var OT=pro;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],OT.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],OT.prototype,"data",void 0);_.O([_.Ij("#item"),_.a("design:type",HTMLElement)],OT.prototype,"item",void 0);_.O([_.Q("data.label"),_.a("design:type",String),_.a("design:paramtypes",[])],OT.prototype,"label",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],OT.prototype,"value",null);OT=_.O([_.A({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],OT);
_.u(OT,"ytd-privacy-dropdown-item-renderer",function(){if(sdB!==void 0)return sdB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return sdB=V},{mode:1});var A$N=function(){var V=_.M.apply(this,arguments)||this;V.value="";V.label="";V.disabled=!1;return V};
_.t(A$N,_.M);_.B=A$N.prototype;_.B.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"}}}};
_.B.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.B.dataChanged=function(){this.reset()};
_.B.valueChanged=function(){var V;if(this.value&&(V=this.data)!=null&&V.entries){V=_.U(this.data.entries);for(var l=V.next();!l.done;l=V.next())if((l=this.getRendererForEntry(l.value))&&this.getItemRendererValue(l)===this.value){this.label=this.ytComponentBehavior.getSimpleString(l.label);break}}};
_.B.setInitialLabel=function(){if(this.data&&this.data.entries)for(var V=_.U(this.data.entries),l=V.next();!l.done;l=V.next())if(l=this.getRendererForEntry(l.value)){if(l.isSelected){this.label=this.ytComponentBehavior.getSimpleString(l.label);break}this.data.label&&(this.label=this.data.label)}};
_.B.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var V=_.U(this.data.entries),l=V.next();!l.done;l=V.next()){l=this.getRendererForEntry(l.value);var I=void 0;if((I=l)==null?0:I.isSelected)return this.getItemRendererValue(l)||-1}return-1};
_.B.getItemRendererValue=function(V){return"stringValue"in V||"int32Value"in V?V.stringValue||V.int32Value||null:null};
_.B.getRendererForEntry=function(V){return V.dropdownItemRenderer||V.privacyDropdownItemRenderer||V.navigationDropdownItemRenderer||null};
_.B.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("value-changed",this.value))};
_.B.updateValueFromBinding=function(V){this.value=V.detail.value};
var Ce=A$N;Ce.prototype.valueChangedForBinding=Ce.prototype.valueChangedForBinding;Ce.prototype.valueChanged=Ce.prototype.valueChanged;Ce.prototype.dataChanged=Ce.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Ce.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ce.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Ce.prototype,"value",void 0);_.O([_.q(),_.a("design:type",Object)],Ce.prototype,"label",void 0);_.O([_.Ij("#entries"),_.a("design:type",Object)],Ce.prototype,"entries",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ce.prototype,"disabled",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ce.prototype,"dataChanged",null);_.O([_.xs("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ce.prototype,"valueChanged",null);_.O([_.b("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ce.prototype,"valueChangedForBinding",null);Ce=_.O([_.A({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Ce);
_.u(Ce,"ytd-flat-dropdown-renderer",function(){if(MHw!==void 0)return MHw;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return MHw=V},{mode:1});var u_Z;var vHE;var O_b=function(){var V=_.M.apply(this,arguments)||this;V.images=[];V.selectedImageIndex=0;return V};
_.t(O_b,_.M);_.B=O_b.prototype;
_.B.ready=function(){_.NR(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.NR(this.JSC$13323_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.NR(this.JSC$13323_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.NR(this.JSC$13323_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.B.onThumbnailClick=function(V){if(V=V.event_.detail)this.selectedImageIndex=this.images.indexOf(V)};
_.B.updateImageThumbnails=function(V){V=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:V.event_.detail});this.images.splice(this.selectedImageIndex,1,V);this.images=[].concat(_.oI(this.images))};
_.B.cancelImageRepositions=function(){this.selectedImageIndex=0;_.B$(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.B.saveImageRepositions=function(){this.selectedImageIndex=0;_.B$(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.vI.Object.defineProperties(O_b.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var V=this;return(this.images||[]).map(function(l,I){return{image:l,selected:I===V.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
var ap=O_b;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Ij("ytd-backstage-image-preview-renderer"),_.a("design:type",Object)],ap.prototype,"JSC$13323_imagePreviewContainer",void 0);_.O([_.Ij(".thumbnail-images-container"),_.a("design:type",HTMLElement)],ap.prototype,"thumbnailImagesContainer",void 0);_.O([_.q(),_.a("design:type",Array)],ap.prototype,"images",void 0);
_.O([_.q(),_.a("design:type",Object)],ap.prototype,"repositionInstructions",void 0);_.O([_.q(),_.a("design:type",Object)],ap.prototype,"selectedImageIndex",void 0);_.O([_.Q("images","selectedImageIndex"),_.a("design:type",Array),_.a("design:paramtypes",[])],ap.prototype,"thumbnailRendererDatas",null);_.O([_.Q("images","selectedImageIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],ap.prototype,"selectedImageData",null);
ap=_.O([_.A({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],ap);
_.u(ap,"ytd-backstage-multi-image-reposition-renderer",function(){if(vHE!==void 0)return vHE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return vHE=V},{mode:1});var fe=function(V,l){_.tm.call(this);this.uploadUrl=V;this.channelId=l;this.imagesUploadData=[]};
_.t(fe,_.tm);fe.prototype.getAllUploadStatuses=function(){var V=this,l,I,H;return _.d(function(T){if(T.nextAddress==1)return _.K(T,CVw(V),2);l=T.yieldResult;I=l.get("succeed");H=l.get("failed");return T.return(I.concat(H))})};
var f9B=function(V){var l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,CVw(V),2);l=H.yieldResult;I=l.get("failed");I.length>0&&a9b(V,I);return H.return(V.getAllUploadStatuses())})},CVw=function(V){var l,I,H,T,x,n,w;
return _.d(function(N){if(N.nextAddress==1)return l=new Map,_.K(N,Promise.allSettled(V.imagesUploadData.map(function(L){return L.uploadPromise})),2);
I=N.yieldResult;H=[];T=_.U(I);for(x=T.next();!x.done;x=T.next())n=x.value,n.status==="fulfilled"&&H.push(n.value);w=V.imagesUploadData.map(function(L){return L.image}).filter(function(L){return H.every(function(e){return e.id!==L.id})});
l.set("succeed",H);l.set("failed",w);return N.return(l)})},a9b=function(V,l){l=_.U(l);
for(var I=l.next();!I.done;I=l.next()){var H=V;I=I.value;gHZ(H,I.id)>=0&&H.cancel(I.id);var T=new m8Z(I),x=_.Mui(H.uploadUrl,{"X-YouTube-ChannelId":H.channelId},I.imageBlob);T.transfer=x;T.uploadPromise=i_E(x,I);H.imagesUploadData.push(T);x.run()}};
fe.prototype.cancel=function(V){var l=gHZ(this,V);l!==-1&&((l=this.imagesUploadData[l].transfer)&&l.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(I){return I.image.id!==V}))};
var gHZ=function(V,l){return V.imagesUploadData.findIndex(function(I){return I.image.id===l})},i_E=function(V,l){return new Promise(function(I,H){V.listen("l",function(){var T=V.getResponseText();
T?(T=JSON.parse(T).encryptedBlobId,l.encryptedBlobId=T,I(l)):H("upload failed")});
V.listen("n",function(){H("upload failed")})})},m8Z=function(V){this.image=V};var JSW=function(V,l,I,H,T){this.id=V;this.imageBlob=l;this.localImageSrc=I;this.naturalWidth=H;this.naturalHeight=T;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var VmZ=[".jpeg",".jpg",".png"],lTa=function(){var V=_.M.apply(this,arguments)||this;V.showImagesPreview=!1;V.pollOptions=[];V.errorMessage="";V.optionPlaceholderText="";V.optionDefaultText="";V.JSC$13334_imageId=0;V.maxFileSizeMb=0;V.maxAspectRatio=0;V.invalidFileSizeError="";V.invalidAspectRatioError="";V.invalidFileTypeError="";V.imageSelector=new K7(null,"single_file",VmZ);return V};
_.t(lTa,_.M);_.B=lTa.prototype;_.B.ready=function(){_.NR(this.imageSelector,"j",this.onImageSelect,!1,this);_.NR(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.NR(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.B.dataChanged=function(){var V,l,I=_.y((V=this.data)==null?void 0:(l=V.cellTemplate)==null?void 0:l.onEmptyCellTap,DhZ);if(I&&I.uploadUrl&&I.channelId){var H;this.maxFileSizeMb=((H=I.imageValidationInfo)==null?void 0:H.maxFileSizeMb)||0;var T;this.maxAspectRatio=((T=I.imageValidationInfo)==null?void 0:T.allowedMaxAspectRatio)||0;var x;this.invalidFileSizeError=this.getSimpleString((x=this.data)==null?void 0:x.invalidFileSizeError);var n;this.invalidAspectRatioError=this.getSimpleString((n=this.data)==
null?void 0:n.invalidAspectRatioError);var w;this.invalidFileTypeError=this.getSimpleString((w=this.data)==null?void 0:w.invalidFileTypeError);this.uploadManager=new fe(I.uploadUrl,I.channelId)}};
_.B.onEditorInfoChange=function(){this.optionPlaceholderText=_.A5(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.A5(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.B.observeAddImageError=function(){this.errorMessage!==""&&_.B$(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.B.onPollOptionsChange=function(){for(var V=!1,l=[],I=0;I<this.pollOptions.length;I++){var H=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(I+1);this.pollOptions[I].placeholderText!==H?(V=!0,l.push(Object.assign({},this.pollOptions[I],{placeholderText:H}))):l.push(this.pollOptions[I])}V&&(this.pollOptions=l);this.isValid()?_.B$(this.hostElement,"yt-commentbox-post-enable"):_.B$(this.hostElement,"yt-commentbox-post-disable")};
_.B.createPollOptions=function(V){var l=[],I;V=(I=V==null?void 0:V.minPollOptions)!=null?I:0;for(I=0;I<V;I++)l.push(this.createPollOption());return l};
_.B.onImageSelect=function(V){var l=this,I,H,T,x,n,w;return _.d(function(N){if(N.nextAddress==1){if(l.selectedImageIndex===void 0)return N.jumpTo(0);I=V.files[0];l.errorMessage="";H=l.validateImage(I);if(H!=="")return l.errorMessage=H,N.return();T=new uF(l.maxAspectRatio,!1,!0);return _.K(N,T.transform(I),3)}if(N.nextAddress!=4)return x=N.yieldResult,x.transformedData?x.invalidAspectRatio?(l.errorMessage=l.invalidAspectRatioError,N.return()):_.K(N,oaK(l.JSC$13334_imageId,V.files[0],x.transformedData),
4):(l.errorMessage=l.invalidFileTypeError,N.return());n=N.yieldResult;l.JSC$13334_imageId++;a9b(l.uploadManager,[n]);w=Object.assign({},l.pollOptions[l.selectedImageIndex],{image:n});l.pollOptions.splice(l.selectedImageIndex,1,w);l.refreshPollOptions();_.B$(l.hostElement,"yt-backstage-poll-image-select");_.FU(N)})};
_.B.validateImage=function(V){return V.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.B.refreshPollOptions=function(){this.pollOptions=[].concat(_.oI(this.pollOptions))};
_.B.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.oI(this.pollOptions),[this.createPollOption()]))};
_.B.onRemovePollOption=function(V){var l=this.pollOptions[V.model.index];l&&l.image&&this.uploadManager.cancel(l.image.id);this.pollOptions.splice(V.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.B$(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.B.onTextInput=function(){this.refreshPollOptions()};
_.B.onImageButtonClick=function(V){this.selectedImageIndex=V.model.index;this.imageSelector.click()};
_.B.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.B.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.B.saveImageRepositions=function(V){V=V.event_.detail;for(var l=0,I=[],H=_.U(this.pollOptions),T=H.next();!T.done;T=H.next())T=T.value,T.image!==void 0?(T=Object.assign({},T,{image:V[l]}),I.push(T),l++):I.push(T);this.showImagesPreview=!1;this.pollOptions=[].concat(_.oI(I))};
_.B.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 V=0,l=_.U(this.pollOptions),I=l.next();!I.done;I=l.next())if(I=I.value,I.optionText.trim()!==""||I.image!==void 0){if(!I.image||this.hasCustomOptionText&&I.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;V++}return V>=Number(this.editorInfo.minPollOptions)};
_.B.getAllUploadStatuses=function(){var V=this,l,I,H,T;return _.d(function(x){if(x.nextAddress==1)return _.K(x,V.uploadManager.getAllUploadStatuses(),2);l=x.yieldResult;I=_.U(l);for(H=I.next();!H.done;H=I.next())if(T=H.value,T.encryptedBlobId===void 0)return x.return(f9B(V.uploadManager));return x.return(l)})};
_.B.getPostCreateOptions=function(){for(var V=[],l=_.U(this.pollOptions),I=l.next();!I.done;I=l.next())I=I.value,I.image!==void 0&&V.push({text:this.hasCustomOptionText?I.optionText:I.placeholderText,image:I.image});return V};
_.B.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.B.createButtonRenderer=function(V,l){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleString(V)}},isDisabled:l}};
_.B.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.B.computeThumbnailRendererData=function(V){return V?{image:V,selected:!1}:void 0};
_.B.getSimpleString=function(V){return _.A5(V)};
_.B.updateOptionTextFromBinding=function(V){if(V.target){var l=Array.from(_.h(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(V.target);if(l>=0){var I;this.pollOptions[l].optionText=(I=V.detail.value)!=null?I:""}}};
_.vI.Object.defineProperties(lTa.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var V,l;return this.pollOptions.length<((l=(V=this.editorInfo)==null?void 0:V.maxPollOptions)!=null?l:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(V){return V.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(V){return V.image}).map(function(V){return V.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(V){return V.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var V,l=(V=this.data)==null?void 0:V.addOptionButtonText;return l?this.createButtonRenderer(l,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var V,l=(V=this.data)==null?void 0:V.repositionImagesButtonLabel;return l?this.createButtonRenderer(l,!this.hasImages):void 0}}});
var gV=lTa;gV.prototype.onPollOptionsChange=gV.prototype.onPollOptionsChange;gV.prototype.observeAddImageError=gV.prototype.observeAddImageError;gV.prototype.onEditorInfoChange=gV.prototype.onEditorInfoChange;gV.prototype.dataChanged=gV.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],gV.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.Ij("ytd-backstage-multi-image-reposition-renderer"),_.a("design:type",Object)],gV.prototype,"imageRepositionContainer",void 0);_.O([_.q(),_.a("design:type",Object)],gV.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],gV.prototype,"editorInfo",void 0);_.O([_.q(),_.a("design:type",fe)],gV.prototype,"uploadManager",void 0);_.O([_.q(),_.a("design:type",Object)],gV.prototype,"showImagesPreview",void 0);_.O([_.q(),_.a("design:type",Array)],gV.prototype,"pollOptions",void 0);
_.O([_.q(),_.a("design:type",Object)],gV.prototype,"errorMessage",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gV.prototype,"dataChanged",null);_.O([_.xs("editorInfo"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gV.prototype,"onEditorInfoChange",null);_.O([_.b("errorMessage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gV.prototype,"observeAddImageError",null);
_.O([_.xs("pollOptions"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gV.prototype,"onPollOptionsChange",null);_.O([_.Q("pollOptions","editorInfo"),_.a("design:type",Object),_.a("design:paramtypes",[])],gV.prototype,"isAllowedToAddOption",null);_.O([_.Q("pollOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],gV.prototype,"hasImages",null);
_.O([_.Q("pollOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],gV.prototype,"imagesToReposition",null);_.O([_.Q("pollOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],gV.prototype,"hasCustomOptionText",null);_.O([_.Q("data","isAllowedToAddOption"),_.a("design:type",Object),_.a("design:paramtypes",[])],gV.prototype,"addOptionButton",null);_.O([_.Q("data","hasImages"),_.a("design:type",Object),_.a("design:paramtypes",[])],gV.prototype,"repositionImagesButton",null);
gV=_.O([_.A({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],gV);
_.u(gV,"ytd-backstage-image-poll-editor-renderer",function(){if(u_Z!==void 0)return u_Z;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return u_Z=V},{mode:2});var ITZ;var H1i={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 TG0;var BG3;var xuN=function(){var V=_.M.apply(this,arguments)||this;V.a11yConfig=H1i;V.imageDisplayOffsetTop=0;V.imageDisplayOffsetLeft=0;V.pickerDisplayOffsetTop=0;V.pickerDisplayOffsetLeft=0;V.cropCoordinatesSaved=!1;V.previewSize=0;V.startPicker=!1;V.repositionOptional=!1;return V};
_.t(xuN,_.M);_.B=xuN.prototype;_.B.created=function(){_.Mh.requestAvailability()};
_.B.ready=function(){};
_.B.onArrowKeysDown=function(V){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){V.detail.keyboardEvent.preventDefault();var l=0,I=0,H="";switch(V.detail.keyboardEvent.key){case "ArrowUp":hAq(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?H=this.a11yConfig.reachBottomOfImage:l=this.imageHeight*.05*-1;break;case "ArrowDown":hAq(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?H=this.a11yConfig.reachTopOfImage:
l=this.imageHeight*.05;break;case "ArrowLeft":hAq(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?H=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":hAq(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?H=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}H&&_.LT(H)&&_.B$(this.hostElement,"iron-announce",{text:_.LT(H)});if(I||l)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+l)),V=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),V=_.LT(this.a11yConfig.imageVerticalPosition,{x_percent:""+V,y_percent:""+(100-V)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),V=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),V=_.LT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+V,y_percent:""+(100-V)})),V&&_.B$(this.hostElement,"iron-announce",{text:V})}};
_.B.getPreviewPosition=function(V,l,I,H){return Math.round(100*(V+l*.5-I)/H)};
_.B.displayImage=function(){var V=this.JSC$13347_pickerContainer.getBoundingClientRect().width,l=this.JSC$13347_pickerContainer.getBoundingClientRect().height,I=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),H=this.JSC$13347_imageInBackground.naturalWidth,T=this.JSC$13347_imageInBackground.naturalHeight;this.displayScale=Math.max(I/H,I/T);this.imageWidth=H*this.displayScale;this.imageHeight=T*this.displayScale;this.pickerDisplayOffsetLeft=(V-I)/2;this.pickerDisplayOffsetTop=
(l-I)/2;this.imageDisplayOffsetLeft=T>H?this.pickerDisplayOffsetLeft:(V-this.imageWidth)/2;this.imageDisplayOffsetTop=H>T?this.pickerDisplayOffsetTop:(l-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.B.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13347_imageInBackground.src=this.imageData.toString(),this.JSC$13347_imageInPicker.src=this.imageData.toString(),this.JSC$13347_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.B.getSignedPosition=function(V,l,I){return l==="X"&&_.h6("HTML_DIR")==="rtl"?I==="-"?V+"px":V*-1+"px":I==="-"?V*-1+"px":V+"px"};
_.B.pickerMove=function(V){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var l=this.pickerOffsetX-V.clientX,I=this.pickerOffsetY-V.clientY;this.pickerOffsetX=V.clientX;this.pickerOffsetY=V.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-l))}};
_.B.pickerMoveStart=function(V){this.startPicker=!0;this.pickerOffsetX=V.clientX;this.pickerOffsetY=V.clientY};
_.B.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.B.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.B$(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.B.getPreviewOffset=function(V,l,I,H){return l&&V&&I?(H==="X"&&_.h6("HTML_DIR")==="rtl"?I/l*V:I/l*V*-1)+"px":"0px"};
_.B.getSimpleText=function(V){return V?_.A5(V):""};
_.B.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var V=this.cropOffsetTop/this.imageHeight,l=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,I=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,H=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.h(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.B$(this.hostElement,"yt-img-crop-coordinates-update",{top:V,right:l,bottom:I,left:H})}};
_.vI.Object.defineProperties(xuN.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var V=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.LT(this.a11yConfig.imageVerticalPosition,{x_percent:""+V,y_percent:""+(100-V)})+"\n"+_.LT(this.a11yConfig.verticalRepositionInstruction)}V=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.LT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+V,y_percent:""+(100-V)})+"\n"+_.LT(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 V,l=(V=this.learnMore.runs[0])==null?void 0:V.navigationEndpoint,I;return((I=_.y(l,_.cF))==null?void 0:I.url)||void 0}}}});
var mB=xuN;mB.prototype.onImageDataChange=mB.prototype.onImageDataChange;_.O([_.q(),_.a("design:type",Object)],mB.prototype,"imageData",void 0);_.O([_.q(),_.a("design:type",Object)],mB.prototype,"instruction",void 0);_.O([_.q(),_.a("design:type",Object)],mB.prototype,"a11yConfig",void 0);_.O([_.q(),_.a("design:type",Number)],mB.prototype,"imageWidth",void 0);_.O([_.q(),_.a("design:type",Number)],mB.prototype,"imageHeight",void 0);_.O([_.q(),_.a("design:type",Number)],mB.prototype,"displayScale",void 0);
_.O([_.q(),_.a("design:type",Object)],mB.prototype,"imageDisplayOffsetTop",void 0);_.O([_.q(),_.a("design:type",Object)],mB.prototype,"imageDisplayOffsetLeft",void 0);_.O([_.q(),_.a("design:type",Object)],mB.prototype,"pickerDisplayOffsetTop",void 0);_.O([_.q(),_.a("design:type",Object)],mB.prototype,"pickerDisplayOffsetLeft",void 0);_.O([_.q(),_.a("design:type",Object)],mB.prototype,"cropCoordinatesSaved",void 0);_.O([_.q(),_.a("design:type",Object)],mB.prototype,"previewSize",void 0);
_.O([_.q(),_.a("design:type",Object)],mB.prototype,"startPicker",void 0);_.O([_.q(),_.a("design:type",Number)],mB.prototype,"pickerOffsetX",void 0);_.O([_.q(),_.a("design:type",Number)],mB.prototype,"pickerOffsetY",void 0);_.O([_.q(),_.a("design:type",Object)],mB.prototype,"repositionOptional",void 0);_.O([_.Ij("#picker-container"),_.a("design:type",HTMLElement)],mB.prototype,"JSC$13347_pickerContainer",void 0);_.O([_.Ij("#picker"),_.a("design:type",HTMLElement)],mB.prototype,"picker",void 0);
_.O([_.Ij("#image-in-picker-background"),_.a("design:type",HTMLImageElement)],mB.prototype,"JSC$13347_imageInBackground",void 0);_.O([_.Ij("#image-in-picker"),_.a("design:type",HTMLImageElement)],mB.prototype,"JSC$13347_imageInPicker",void 0);_.O([_.Ij("#image-in-preview-clipper"),_.a("design:type",HTMLImageElement)],mB.prototype,"JSC$13347_imageInPreviewClipper",void 0);_.O([_.Ij("#full-image-as-preview"),_.a("design:type",HTMLImageElement)],mB.prototype,"imageAsPreview",void 0);
_.O([_.Q("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],mB.prototype,"altLabelForImage",null);_.O([_.Q("imageHeight","imageWidth"),_.a("design:type",Number),_.a("design:paramtypes",[])],mB.prototype,"pickerSize",null);_.O([_.Q("imageHeight","imageWidth"),_.a("design:type",Object),_.a("design:paramtypes",[])],mB.prototype,"imageOrientationStyle",null);
_.O([_.Q("instruction.previewInstruction.editButtonLabel"),_.a("design:type",Object),_.a("design:paramtypes",[])],mB.prototype,"editButton",null);_.O([_.Q("instruction.editInstruction.saveButtonLabel"),_.a("design:type",Object),_.a("design:paramtypes",[])],mB.prototype,"saveButton",null);_.O([_.Q("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.a("design:type",Number),_.a("design:paramtypes",[])],mB.prototype,"cropOffsetTop",null);
_.O([_.Q("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.a("design:type",Number),_.a("design:paramtypes",[])],mB.prototype,"cropOffsetLeft",null);_.O([_.Q("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],mB.prototype,"pickerBackgroundStyle",null);_.O([_.Q("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],mB.prototype,"pickerDisplayStyle",null);
_.O([_.Q("cropOffsetLeft","cropOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],mB.prototype,"imageInPickerStyle",null);_.O([_.Q("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.a("design:type",String),_.a("design:paramtypes",[])],mB.prototype,"previewClipperStyle",null);_.O([_.b("imageData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mB.prototype,"onImageDataChange",null);
_.O([_.Q("cropCoordinatesSaved"),_.a("design:type",String),_.a("design:paramtypes",[])],mB.prototype,"pickerModeStyle",null);_.O([_.Q("instruction.editInstruction.learnMore"),_.a("design:type",Object),_.a("design:paramtypes",[])],mB.prototype,"learnMore",null);_.O([_.Q("learnMore"),_.a("design:type",Object),_.a("design:paramtypes",[])],mB.prototype,"learnMoreUrl",null);mB=_.O([_.Lm({is:"yt-img-crop-picker",disableElementRegistration:!0})],mB);
_.u(mB,"yt-img-crop-picker",function(){if(BG3===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;TG0===void 0&&(TG0=document.createElement("template"));var H=TG0;I.call(l,H.content.cloneNode(!0),V.content.firstChild);BG3=V}V=BG3;return V},{mode:2});var Uu0=function(){var V=_.M.apply(this,arguments)||this;V.errorMessage="";V.hasPreview=!1;V.isBackstagePost=!1;V.dismissButtonOverrides={size:"XS"};return V};
_.t(Uu0,_.M);_.B=Uu0.prototype;_.B.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"}}}};
_.B.detached=function(){this.removeOverlay()};
_.B.setPreview=function(V){_.h(this.hostElement).querySelector("#preview-picker").imageData=V;this.hasPreview=!0;_.B$(this.hostElement,"yt-backstage-image-select-preview")};
_.B.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var V=_.h(this.hostElement).querySelector("#dropzone");V.classList.remove("dragover");V.classList.remove("error");_.B$(this.hostElement,"yt-backstage-image-select-cancel")};
_.B.setupOverlay=function(){var V=this.imageUploadEndpoint;this.removeOverlay();if(V&&V.imageValidationInfo){var l=_.h(this.hostElement).querySelector("#dropzone"),I=_.h(this.hostElement).querySelector("#select");this.overlay=new Od(V.uploadUrl,V.channelId,V.imageValidationInfo.maxFileSizeMb,V.imageValidationInfo.allowedMaxAspectRatio,l,I,!0);_.NR(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.NR(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.NR(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.NR(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.NR(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.B.removeOverlay=function(){this.overlay&&(_.y$(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.y$(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.y$(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.y$(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.y$(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.B.onDragOver=function(V){var l=_.h(this.hostElement).querySelector("#dropzone");_.fY(l,"dragover",V.value)};
_.B.onPreview=function(V){this.setPreview(V.value)};
_.B.onImageError=function(V){if(V.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var l;V=(l=this.data)==null?void 0:l.fileSizeError}else if(V.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var I;V=(I=this.data)==null?void 0:I.invalidError}else if(V.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var H;V=(H=this.data)==null?void 0:H.invalidAspectRatioError}else return;this.errorMessage=_.A5(V);_.h(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.B.onImageAlert=function(V){this.onImageError(V)};
_.B.uploadPromise=function(){var V=this,l=this.overlay&&this.overlay.uploadPromise();if(l)return l.catch(function(){throw Error(V.data?_.A5(V.data.uploadFailureError):"");})};
_.vI.Object.defineProperties(Uu0.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var V,l;if((V=this.data)==null?0:(l=V.icon)==null?0:l.iconType)return _.mj(this.data.icon.iconType)}}});
var ip=Uu0;ip.prototype.setupOverlay=ip.prototype.setupOverlay;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ip.prototype,"rendererStamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ip.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],ip.prototype,"imageUploadEndpoint",void 0);_.O([_.q(),_.a("design:type",Object)],ip.prototype,"errorMessage",void 0);
_.O([_.q(),_.a("design:type",Od)],ip.prototype,"overlay",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ip.prototype,"hasPreview",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ip.prototype,"isBackstagePost",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ip.prototype,"selectionCancel",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ip.prototype,"previewCancel",null);
_.O([_.Q("data.icon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],ip.prototype,"icon",null);_.O([_.q(),_.a("design:type",Object)],ip.prototype,"dismissButtonOverrides",void 0);_.O([_.b("imageUploadEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ip.prototype,"setupOverlay",null);ip=_.O([_.A({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],ip);
_.u(ip,"ytd-backstage-image-select-renderer",function(){if(ITZ!==void 0)return ITZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return ITZ=V},{mode:1});var nm0={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 $u0;var duZ=function(){var V=_.M.apply(this,arguments)||this;V.a11yConfig=nm0;V.imageDisplayOffsetTop=0;V.imageDisplayOffsetLeft=0;V.pickerDisplayOffsetTop=0;V.pickerDisplayOffsetLeft=0;V.showPreviewContainer=!0;V.startPicker=!1;V.repositionOptional=!1;V.editOnlyMode=!1;V.savedImageDisplayOffsetTop=0;V.savedImageDisplayOffsetLeft=0;return V};
_.t(duZ,_.M);_.B=duZ.prototype;_.B.created=function(){_.Mh.requestAvailability()};
_.B.ready=function(){};
_.B.onArrowKeysDown=function(V){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){V.detail.keyboardEvent.preventDefault();var l=0,I=0,H="";switch(V.detail.keyboardEvent.key){case "ArrowUp":PaN(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?H=this.a11yConfig.reachBottomOfImage:l=this.imageHeight*.05*-1;break;case "ArrowDown":PaN(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?H=this.a11yConfig.reachTopOfImage:
l=this.imageHeight*.05;break;case "ArrowLeft":PaN(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?H=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":PaN(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?H=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}H&&_.LT(H)&&_.B$(this.hostElement,"iron-announce",{text:_.LT(H)});if(I||l)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+l)),V=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),V=_.LT(this.a11yConfig.imageVerticalPosition,{x_percent:""+V,y_percent:""+(100-V)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),V=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),V=_.LT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+V,y_percent:""+(100-V)})),V&&_.B$(this.hostElement,"iron-announce",{text:V})}};
_.B.getPreviewPosition=function(V,l,I,H){return Math.round(100*(V+l*.5-I)/H)};
_.B.calculateDisplayPosition=function(){var V=this.imageData.naturalWidth,l=this.imageData.naturalHeight;this.displayScale=Math.max(200/V,200/l);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var I=V*this.displayScale*this.imageData.previewCoordinates.left,H=l*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=l>V?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-I;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=V>l?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-H;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=V*this.displayScale;this.imageHeight=l*this.displayScale};
_.B.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.B.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.B.getSignedPosition=function(V,l,I){return l==="X"&&_.h6("HTML_DIR")==="rtl"?I==="-"?V+"px":V*-1+"px":I==="-"?V*-1+"px":V+"px"};
_.B.pickerMove=function(V){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var l=this.pickerOffsetX-V.clientX,I=this.pickerOffsetY-V.clientY;this.pickerOffsetX=V.clientX;this.pickerOffsetY=V.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-l))}};
_.B.pickerMoveStart=function(V){this.startPicker=!0;this.pickerOffsetX=V.clientX;this.pickerOffsetY=V.clientY};
_.B.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var V=this.generateCropPreview();V&&_.B$(this.hostElement,"ytd-backstage-image-preview-coordinates-update",V)};
_.B.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.B$(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.B.deleteImage=function(){_.B$(this.hostElement,"ytd-backstage-image-preview-delete")};
_.B.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.B.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var V=this.generateCropPreview();V&&_.B$(this.hostElement,"ytd-backstage-image-preview-coordinates-save",V)};
_.B.getPreviewOffset=function(V,l,I){return l&&V?(I==="X"&&_.h6("HTML_DIR")==="rtl"?300/l*V:300/l*V*-1)+"px":"0px"};
_.B.getSimpleText=function(V){return V?_.A5(V):""};
_.B.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}};
_.vI.Object.defineProperties(duZ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var V=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.LT(this.a11yConfig.imageVerticalPosition,{x_percent:""+V,y_percent:""+(100-V)})+"\n"+_.LT(this.a11yConfig.verticalRepositionInstruction)}V=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.LT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+V,y_percent:""+(100-V)})+"\n"+_.LT(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 V,l,I=(V=this.instruction)==null?void 0:(l=V.previewInstruction)==null?void 0:l.editButtonLabel;return I?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H,T=this.editOnlyMode?(V=this.instruction)==null?void 0:(l=V.editInstruction)==null?void 0:l.saveImagesButtonLabel:(I=this.instruction)==null?void 0:(H=I.editInstruction)==null?void 0:H.saveButtonLabel;return T?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:T,accessibilityData:{accessibilityData:{label:this.getSimpleText(T)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(V=this.instruction)==null?void 0:(l=V.previewInstruction)==null?void 0:l.deleteButtonLabel;return I?{size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(V=this.instruction)==null?void 0:(l=V.editInstruction)==null?void 0:l.cancelButtonLabel;V=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return I?{style:V,size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
var Ve=duZ;Ve.prototype.onEditOnlyModeUpdate=Ve.prototype.onEditOnlyModeUpdate;Ve.prototype.onImageChange=Ve.prototype.onImageChange;_.O([_.q(),_.a("design:type",JSW)],Ve.prototype,"imageData",void 0);_.O([_.q(),_.a("design:type",Object)],Ve.prototype,"instruction",void 0);_.O([_.q(),_.a("design:type",Object)],Ve.prototype,"a11yConfig",void 0);_.O([_.q(),_.a("design:type",Number)],Ve.prototype,"imageWidth",void 0);_.O([_.q(),_.a("design:type",Number)],Ve.prototype,"imageHeight",void 0);
_.O([_.q(),_.a("design:type",Number)],Ve.prototype,"displayScale",void 0);_.O([_.q(),_.a("design:type",Object)],Ve.prototype,"imageDisplayOffsetTop",void 0);_.O([_.q(),_.a("design:type",Object)],Ve.prototype,"imageDisplayOffsetLeft",void 0);_.O([_.q(),_.a("design:type",Object)],Ve.prototype,"pickerDisplayOffsetTop",void 0);_.O([_.q(),_.a("design:type",Object)],Ve.prototype,"pickerDisplayOffsetLeft",void 0);_.O([_.q(),_.a("design:type",Object)],Ve.prototype,"showPreviewContainer",void 0);
_.O([_.q(),_.a("design:type",Object)],Ve.prototype,"startPicker",void 0);_.O([_.q(),_.a("design:type",Number)],Ve.prototype,"pickerOffsetX",void 0);_.O([_.q(),_.a("design:type",Number)],Ve.prototype,"pickerOffsetY",void 0);_.O([_.q(),_.a("design:type",Object)],Ve.prototype,"repositionOptional",void 0);_.O([_.q(),_.a("design:type",Object)],Ve.prototype,"editOnlyMode",void 0);_.O([_.Ij("#picker-container"),_.a("design:type",HTMLElement)],Ve.prototype,"JSC$13360_pickerContainer",void 0);
_.O([_.Ij("#picker"),_.a("design:type",HTMLElement)],Ve.prototype,"picker",void 0);_.O([_.Ij("#preview-clipper"),_.a("design:type",HTMLElement)],Ve.prototype,"previewClipper",void 0);_.O([_.Ij("#image-in-picker-background"),_.a("design:type",HTMLImageElement)],Ve.prototype,"JSC$13360_imageInBackground",void 0);_.O([_.Ij("#image-in-picker"),_.a("design:type",HTMLImageElement)],Ve.prototype,"JSC$13360_imageInPicker",void 0);
_.O([_.Ij("#image-in-preview-clipper"),_.a("design:type",HTMLImageElement)],Ve.prototype,"JSC$13360_imageInPreviewClipper",void 0);_.O([_.Q("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],Ve.prototype,"altLabelForImage",null);_.O([_.Q("imageHeight","imageWidth"),_.a("design:type",Number),_.a("design:paramtypes",[])],Ve.prototype,"pickerSize",null);
_.O([_.Q("imageHeight","imageWidth"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ve.prototype,"imageOrientationStyle",null);_.O([_.Q("instruction"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ve.prototype,"editButton",null);_.O([_.Q("instruction","editOnlyMode"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ve.prototype,"saveButton",null);_.O([_.Q("instruction"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ve.prototype,"deleteButton",null);
_.O([_.Q("instruction","editOnlyMode"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ve.prototype,"cancelButton",null);_.O([_.Q("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.a("design:type",Number),_.a("design:paramtypes",[])],Ve.prototype,"cropOffsetTop",null);_.O([_.Q("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.a("design:type",Number),_.a("design:paramtypes",[])],Ve.prototype,"cropOffsetLeft",null);
_.O([_.Q("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],Ve.prototype,"pickerBackgroundStyle",null);_.O([_.Q("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],Ve.prototype,"pickerDisplayStyle",null);_.O([_.Q("cropOffsetLeft","cropOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],Ve.prototype,"imageInPickerStyle",null);
_.O([_.Q("cropOffsetLeft","cropOffsetTop","pickerSize"),_.a("design:type",String),_.a("design:paramtypes",[])],Ve.prototype,"previewClipperStyle",null);_.O([_.xs("imageData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ve.prototype,"onImageChange",null);_.O([_.xs("editOnlyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ve.prototype,"onEditOnlyModeUpdate",null);
_.O([_.Q("showPreviewContainer"),_.a("design:type",String),_.a("design:paramtypes",[])],Ve.prototype,"pickerModeStyle",null);Ve=_.O([_.A({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Ve);
_.u(Ve,"ytd-backstage-image-preview-renderer",function(){if($u0!==void 0)return $u0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return $u0=V},{mode:1});var wPv;var NGN;var KNZ=function(){var V=_.M.apply(this,arguments)||this;V.selected=!1;return V};
_.t(KNZ,_.M);_.B=KNZ.prototype;_.B.computeSelected=function(V){return V==null?void 0:V.selected};
_.B.computeTransform=function(V,l,I){var H,T,x=(T=(H=this.imageContainer)==null?void 0:H.getBoundingClientRect())!=null?T:{width:0,height:0};H=Math.max(x.width/l,x.height/I);I=I*H*V.top;return"translateX("+this.getSignedPosition(l*H*V.left,"X","-")+") translateY("+this.getSignedPosition(I,"Y","-")+")"};
_.B.getSignedPosition=function(V,l,I){return l==="X"&&_.h6("HTML_DIR")==="rtl"?I==="-"?V+"px":V*-1+"px":I==="-"?V*-1+"px":V+"px"};
_.B.onClick=function(){var V;_.B$(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(V=this.data)==null?void 0:V.image)};
_.B.onKeyPress=function(V){if(V.keyCode===13)this.onClick()};
_.vI.Object.defineProperties(KNZ.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:(l=V.image)==null?void 0:l.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)!=null&&V.image){var l;V=(l=this.data)==null?void 0:l.image;return V.previewCoordinates.top!==0||V.previewCoordinates.left!==0?(l=this.computeTransform(V.previewCoordinates,V.naturalWidth,V.naturalHeight),V.naturalHeight>=V.naturalWidth?"width:inherit;transform:"+l+";":"height:inherit;transform:"+l+";"):V.naturalHeight>=V.naturalWidth?"width:inherit;":"height:inherit;"}}}});
var lT=KNZ;lT.prototype.onKeyPress=lT.prototype.onKeyPress;_.O([_.Ij(".image-container"),_.a("design:type",HTMLElement)],lT.prototype,"imageContainer",void 0);_.O([_.q(),_.a("design:type",Object)],lT.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.a("design:type",Object)],lT.prototype,"selected",void 0);_.O([_.Q("data.image"),_.a("design:type",Object),_.a("design:paramtypes",[])],lT.prototype,"thumbnailUrl",null);
_.O([_.Q("data.image","data.image.previewCoordinates"),_.a("design:type",Object),_.a("design:paramtypes",[])],lT.prototype,"thumbnailStyle",null);_.O([_.W("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],lT.prototype,"onKeyPress",null);lT=_.O([_.A({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],lT);
_.u(lT,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(NGN!==void 0)return NGN;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return NGN=V},{mode:2});var IL=function(V,l,I){I=I===void 0?!1:I;_.tm.call(this);var H=this;this.dropZoneOverlay=new N$(V);this.selectOverlay=I?new K7(l,"multiple_file",["image/*"]):new K7(l,"single_file",["image/*"]);this.handler=new _.ig(this);_.$w(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(l,"click",function(){H.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.t(IL,_.tm);IL.prototype.onChange=function(V){var l;(l=V.files)!=null&&l.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:V.files}))};var jWW=function(){var V=_.M.apply(this,arguments)||this;V.addImageErrorMessage="";V.errorMessage="";V.images=[];V.selectedImageIndex=0;V.modern=_.z("web_modern_buttons");V.maxNumImagesPerPost=_.g7("max_num_images_per_post_web_ui");V.JSC$13373_imageId=0;return V};
_.t(jWW,_.M);_.B=jWW.prototype;_.B.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.B$(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.B.observeDragToReorder=function(){var V=this;if(this.showImagesPreview){var l,I=LnN(_.l9.getInstance(),(l=this.data)==null?void 0:l.dragToReorderTooltip);_.r0.addLowPriorityJob(function(){_.d6(V.hostElement,I,V.thumbnailDragDropArea)})}};
_.B.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}}};
_.B.computeThumbnail=function(V){return(V==null?void 0:V.localImageSrc)||void 0};
_.B.onRendererstamperFinished=function(){_.kWv(this.ytReorderableBehavior,_.h(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.h(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.B.handleDrop=function(V){var l=V.currDragItem;if(l!=null&&l.data){V=this.images[this.selectedImageIndex];var I=l.data.image,H=this.images.indexOf(I)||0;l=_.qq(l.parentNode.children,l);this.images.splice(H,1);this.images.splice(l,0,I);this.images=[].concat(_.oI(this.images));this.selectedImageIndex=this.images.indexOf(V)}};
_.B.setUpImagePicker=function(){var V=this.imageUploadEndpoint;V&&V.imageValidationInfo&&(this.uploadManager=new fe(V.uploadUrl,V.channelId),this.initialPicker||(this.initialPicker=new IL(this.dropzone,this.selectLink,!0),_.NR(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new IL(this.addImageButtonContainer,this.addImageSelectButton),_.NR(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.NR(this.JSC$13373_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.NR(this.JSC$13373_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.NR(_.h(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.B.detached=function(){this.initialPicker&&(_.y$(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.y$(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.B.onInitialSelectImages=function(V){var l=this;return _.d(function(I){return _.K(I,l.onSelectImages(V,!1),0)})};
_.B.onAddImage=function(V){var l=this;return _.d(function(I){return _.K(I,l.onSelectImages(V,!0),0)})};
_.B.onSelectImages=function(V,l){var I=this,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C,By,lN;return _.d(function(wW){switch(wW.nextAddress){case 1:l?I.addImageErrorMessage="":(I.images=[],I.errorMessage="");H=V.detail;T=I.validateImages([].concat(_.oI(H)));if(T!=="")return l?I.addImageErrorMessage=T:I.errorMessage=T,wW.return();x=[].concat(_.oI(H)).map(function(o1){return(new uF(I.maxAspectRatio,!1,!0)).transform(o1)});
return _.K(wW,Promise.allSettled(x),2);case 2:n=wW.yieldResult,w=_.U(n.entries()),N=w.next();case 3:if(N.done){wW.jumpTo(5);break}L=N.value;e=_.U(L);k=e.next().value;X=e.next().value;r=k;E=X;if(E.status!=="fulfilled"){S=Z=D=void 0;l?I.addImageErrorMessage=_.A5((D=I.data)==null?void 0:D.invalidError):I.errorMessage=I.errorMessage===""?_.A5((Z=I.data)==null?void 0:Z.invalidError):_.A5((S=I.data)==null?void 0:S.multiFileError);wW.jumpTo(4);break}p=E.value;p.cropped&&_.B$(I.hostElement,"yt-backstage-multi-image-cropped");
if(p.invalidAspectRatio){By=C=Vf=void 0;l?I.addImageErrorMessage=_.A5((Vf=I.data)==null?void 0:Vf.invalidAspectRatioError):I.errorMessage=I.errorMessage===""?_.A5((C=I.data)==null?void 0:C.invalidAspectRatioError):_.A5((By=I.data)==null?void 0:By.multiFileError);wW.jumpTo(4);break}return _.K(wW,oaK(I.JSC$13373_imageId,V.detail[r],p.transformedData),8);case 8:lN=wW.yieldResult,I.images.push(lN),I.JSC$13373_imageId++;case 4:N=w.next();wW.jumpTo(3);break;case 5:if(I.errorMessage!==""||I.addImageErrorMessage!==
"")return wW.return();l?a9b(I.uploadManager,[I.images[I.images.length-1]]):a9b(I.uploadManager,I.images);I.images=[].concat(_.oI(I.images));I.selectedImageIndex=l?Math.max(I.images.length-1,0):0;_.B$(I.hostElement,"yt-backstage-multi-image-select");_.FU(wW)}})};
_.B.onThumbnailClick=function(V){if(V=V.event_.detail)this.selectedImageIndex=this.images.indexOf(V)};
_.B.validateImages=function(V){if(V.length>this.maxNumImagesPerPost){var l;return _.A5((l=this.data)==null?void 0:l.multiImageExceedMaxImageCountError)}var I=1048576*this.maxFileSizeMb;V=V.filter(function(x){return x.size>I}).length;
if(V===0)return"";var H,T;V=V>1?(H=this.data)==null?void 0:H.multiFileError:(T=this.data)==null?void 0:T.fileSizeError;return _.A5(V)};
_.B.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.oI(this.images));this.selectedImageIndex=0};
_.B.repositionImage=function(V){this.images[this.selectedImageIndex].previewCoordinates=V.event_.detail;this.images=[].concat(_.oI(this.images))};
_.B.getAllUploadStatuses=function(){var V=this,l,I,H,T;return _.d(function(x){if(x.nextAddress==1)return _.K(x,V.uploadManager.getAllUploadStatuses(),2);l=x.yieldResult;I=_.U(l);for(H=I.next();!H.done;H=I.next())if(T=H.value,T.encryptedBlobId===void 0)return x.return(f9B(V.uploadManager));return x.return(l)})};
_.B.hasImages=function(){return this.images.length>0};
_.B.cancel=function(){for(var V=this.uploadManager,l=_.U(V.imagesUploadData),I=l.next();!I.done;I=l.next())V.cancel(I.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.B$(this.hostElement,"yt-backstage-multi-image-cancel")};
_.vI.Object.defineProperties(jWW.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.imageUploadEndpoint)==null?void 0:(l=V.imageValidationInfo)==null?void 0:l.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.imageUploadEndpoint)==null?void 0:(l=V.imageValidationInfo)==null?void 0:l.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var V,l;if((V=this.data)==null?0:(l=V.icon)==null?0:l.iconType)return _.mj(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.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 V=this;return(this.images||[]).map(function(l,I){return{renderer:{image:l,selected:I===V.selectedImageIndex}}})}}});
var Hs=jWW;Hs.prototype.setUpImagePicker=Hs.prototype.setUpImagePicker;Hs.prototype.onRendererstamperFinished=Hs.prototype.onRendererstamperFinished;Hs.prototype.observeDragToReorder=Hs.prototype.observeDragToReorder;Hs.prototype.observeAddImageError=Hs.prototype.observeAddImageError;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Hs.prototype,"rendererStamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.XGo),_.a("design:type",Object)],Hs.prototype,"ytReorderableBehavior",void 0);_.O([_.Ij("#dropzone"),_.a("design:type",HTMLElement)],Hs.prototype,"dropzone",void 0);_.O([_.Ij("#select-link"),_.a("design:type",HTMLElement)],Hs.prototype,"selectLink",void 0);_.O([_.Ij("#thumbnail-drag-drop-area"),_.a("design:type",HTMLElement)],Hs.prototype,"thumbnailDragDropArea",void 0);_.O([_.Ij("#add-image-button-container"),_.a("design:type",HTMLElement)],Hs.prototype,"addImageButtonContainer",void 0);
_.O([_.Ij("#add-image-button"),_.a("design:type",HTMLElement)],Hs.prototype,"addImageSelectButton",void 0);_.O([_.Ij("#image-preview-container"),_.a("design:type",Object)],Hs.prototype,"JSC$13373_imagePreviewContainer",void 0);_.O([_.q(),_.a("design:type",Object)],Hs.prototype,"addImageErrorMessage",void 0);_.O([_.q(),_.a("design:type",Object)],Hs.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Hs.prototype,"errorMessage",void 0);
_.O([_.q(),_.a("design:type",Object)],Hs.prototype,"imageUploadEndpoint",void 0);_.O([_.q(),_.a("design:type",Array)],Hs.prototype,"images",void 0);_.O([_.q(),_.a("design:type",IL)],Hs.prototype,"initialPicker",void 0);_.O([_.q(),_.a("design:type",IL)],Hs.prototype,"addImagePicker",void 0);_.O([_.q(),_.a("design:type",fe)],Hs.prototype,"uploadManager",void 0);_.O([_.q(),_.a("design:type",Object)],Hs.prototype,"selectedImageIndex",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Hs.prototype,"modern",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Hs.prototype,"maxNumImagesPerPost",void 0);_.O([_.Q("imageUploadEndpoint"),_.a("design:type",Number),_.a("design:paramtypes",[])],Hs.prototype,"maxAspectRatio",null);_.O([_.Q("imageUploadEndpoint"),_.a("design:type",Number),_.a("design:paramtypes",[])],Hs.prototype,"maxFileSizeMb",null);
_.O([_.Q("data.icon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hs.prototype,"dropIcon",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hs.prototype,"selectionCancel",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hs.prototype,"previewCancel",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hs.prototype,"dataForAddImageButton",null);
_.O([_.Q("errorMessage"),_.a("design:type",String),_.a("design:paramtypes",[])],Hs.prototype,"dropzoneClass",null);_.O([_.Q("images"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Hs.prototype,"showImagesPreview",null);_.O([_.Q("images"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Hs.prototype,"containMaxImages",null);_.O([_.b("addImageErrorMessage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hs.prototype,"observeAddImageError",null);
_.O([_.b("showImagesPreview"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hs.prototype,"observeDragToReorder",null);_.O([_.Q("images","selectedImageIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hs.prototype,"selectedImageData",null);_.O([_.Q("images","selectedImageIndex"),_.a("design:type",Array),_.a("design:paramtypes",[])],Hs.prototype,"thumbnailRenderers",null);
_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hs.prototype,"onRendererstamperFinished",null);_.O([_.b("imageUploadEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hs.prototype,"setUpImagePicker",null);Hs=_.O([_.A({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Hs);
_.u(Hs,"ytd-backstage-multi-image-select-renderer",function(){if(wPv!==void 0)return wPv;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return wPv=V},{mode:1});var Y8J;var LNi=function(){var V=_.M.apply(this,arguments)||this;V.quizOptions=[];V.explanationPlaceholderText="";V.optionPlaceholderText="";V.correctAnswerIndex=-1;V.isMarkAnswerTooltipShown=!1;V.timer=0;return V};
_.t(LNi,_.M);_.B=LNi.prototype;_.B.dataChanged=function(){this.optionPlaceholderText=_.A5(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.A5(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.B.onMarkCorrectAnswer=function(V){var l,I=((l=this.quizOptions[this.correctAnswerIndex])==null?void 0:l.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[V.model.index]=Object.assign({},this.quizOptions[V.model.index],{explanationText:I,isCorrect:!0});this.correctAnswerIndex=V.model.index;this.quizOptions=[].concat(_.oI(this.quizOptions))};
_.B.updatePlaceholderTexts=function(){for(var V=!1,l=[],I=0;I<this.quizOptions.length;I++){var H=this.optionPlaceholderText+" "+(I+1),T=void 0;((T=this.quizOptions[I])==null?void 0:T.placeholderText)!==H?(V=!0,l.push(Object.assign({},this.quizOptions[I],{placeholderText:H}))):l.push(this.quizOptions[I])}V&&(this.quizOptions=l);this.isValid()?_.B$(this.hostElement,"yt-commentbox-post-enable"):_.B$(this.hostElement,"yt-commentbox-post-disable")};
_.B.getSimpleString=function(V){return _.A5(V)};
_.B.createQuizOptions=function(V){var l=[],I;V=(I=V==null?void 0:V.minQuizOptions)!=null?I:0;for(I=0;I<V;I++)l.push(this.createQuizOption());return l};
_.B.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.oI(this.quizOptions),[this.createQuizOption()]))};
_.B.onInput=function(){this.quizOptions=[].concat(_.oI(this.quizOptions))};
_.B.onExplanationInput=function(){_.B$(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.B.onRemoveQuizOption=function(V){this.quizOptions.splice(V.model.index,1);V.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:V.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.oI(this.quizOptions));this.quizOptions.length===0&&_.B$(this.hostElement,"yt-quiz-attachment-dismiss")};
_.B.updateHintRenderer=function(){var V=this;clearTimeout(this.timer);this.timer=setTimeout(function(){V.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.B.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var V=0,l=0,I=_.U(this.quizOptions),H=I.next();!H.done;H=I.next()){H=H.value;var T=void 0;if(((T=H.optionText)==null?void 0:T.trim())!==""||H.isCorrect){H.isCorrect&&l++;T=void 0;if(this.hasCustomOptionText&&((T=H.optionText)==null?void 0:T.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;V++}}return V>=
Number(this.editorInfo.minQuizOptions)&&l===1};
_.B.getPostCreateOptions=function(){for(var V=[],l=_.U(this.quizOptions),I=l.next();!I.done;I=l.next()){I=I.value;var H=void 0;((H=I.optionText)==null?void 0:H.trim())!==""&&V.push({pollOption:{text:I.optionText,explanation:I.explanationText},isCorrect:I.isCorrect})}return V};
_.B.getExplanationText=function(){var V;return((V=this.quizOptions[this.correctAnswerIndex])==null?void 0:V.explanationText)||""};
_.B.maybeDisplayMarkAnswerEduToolTip=function(){var V,l,I,H,T,x,n;this.shouldShowMarkAnswerTooltip()&&((V=this.editorInfo)==null?0:(l=V.markAnswerButton)==null?0:(I=l.buttonRenderer)==null?0:(H=I.hint)==null?0:(T=H.hintRenderer)==null?0:(x=T.content)==null?0:(n=x.bubbleHintRenderer)==null?0:n.text)&&(_.l9.getInstance(),V=IU(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,(V==null?void 0:V.length)>0&&this.optionSelectors&&_.IN(V[0],this.optionSelectors[0]))};
_.B.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var V=0,l=_.U(this.quizOptions),I=l.next();!I.done;I=l.next()){I=I.value;var H=void 0;((H=I.optionText)==null?void 0:H.trim())!==""&&V++;if(I.isCorrect)return!1}return V<2?!1:!0};
_.B.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.B.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.B.updateOptionTextFromBinding=function(V){if(V.target){var l=Array.from(_.h(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(V.target);if(l>=0){var I;this.quizOptions[l].optionText=(I=V.detail.value)!=null?I:""}}};
_.vI.Object.defineProperties(LNi.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(V=this.editorInfo)==null?void 0:(l=V.addOptionButton)==null?void 0:l.buttonRenderer;I&&(I.style="STYLE_SUGGESTIVE",I.size="SIZE_SMALL",I.isDisabled=!this.isAllowedToAddOption);return(I==null?0:I.text)?I:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var V,l;return this.quizOptions.length<((l=(V=this.editorInfo)==null?void 0:V.maxQuizOptions)!=null?l:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(V){var l;return(l=V.optionText)==null?void 0:l.trim()})}}});
var Tc=LNi;Tc.prototype.updatePlaceholderTexts=Tc.prototype.updatePlaceholderTexts;Tc.prototype.dataChanged=Tc.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],Tc.prototype,"editorInfo",void 0);_.O([_.q(),_.a("design:type",Array)],Tc.prototype,"quizOptions",void 0);_.O([_.q(),_.a("design:type",Object)],Tc.prototype,"explanationPlaceholderText",void 0);_.O([_.H1(".option-selector-button"),_.a("design:type",Array)],Tc.prototype,"optionSelectors",void 0);
_.O([_.xs("editorInfo"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tc.prototype,"dataChanged",null);_.O([_.Q("editorInfo","isAllowedToAddOption","quizOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],Tc.prototype,"addAnswerButton",null);_.O([_.Q("editorInfo","quizOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],Tc.prototype,"isAllowedToAddOption",null);
_.O([_.xs("quizOptions"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tc.prototype,"updatePlaceholderTexts",null);_.O([_.Q("quizOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],Tc.prototype,"hasCustomOptionText",null);Tc=_.O([_.A({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Tc);
_.u(Tc,"ytd-backstage-quiz-editor-renderer",function(){if(Y8J!==void 0)return Y8J;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Y8J=V},{mode:2});var e4N;var kto=(EJ.FIRSTDAYOFWEEK+1)%7;var FNZ;var XPB=[],z4N=0,yAv=0;z4N=0;yAv=24;if(.25*(yAv-z4N)<0)FNZ=[];else{for(var tm3=z4N;tm3<yAv;tm3+=.25)XPB.push(tm3);FNZ=XPB}var rAE=FNZ.map(function(V){V=V*60*60;return{secondsSinceMidnight:V,text:(new Mr(7)).format(new Date(0,0,0,0,0,V))}});var GtN;var EmZ=function(){var V=_.M.apply(this,arguments)||this;V.skipNextOpenDialog=!1;V.errorMessage="";return V};
_.t(EmZ,_.M);_.B=EmZ.prototype;_.B.attached=function(){var V=this,l=new MutationObserver(function(){V.JSC$13405_calendarMain.scrollHeight>0&&(l.disconnect(),V.calendarConfig&&V.calendarConfig.selectedDate&&V.scrollToDate())});
l.observe(this.JSC$13405_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){l.disconnect()},1E3)};
_.B.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.B.onDateTextChange=function(){if(this.calendarConfig){var V=this.validateDateText();V.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(V.details)):this.textbox.setAttribute("invalid","")}};
_.B.handleDayClick=function(V){V.model.day.date&&(this.commitDate(V.model.day.date),this.dialog.close())};
_.B.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var V=qyf(this.calendarConfig.selectedDate,this.renderData);V!==void 0&&this.JSC$13405_calendarMain.scrollToIndex(V)}};
_.B.scrollToNextMonth=function(){this.JSC$13405_calendarMain.scrollToIndex(this.JSC$13405_calendarMain.firstVisibleIndex+1)};
_.B.scrollToPrevMonth=function(){this.JSC$13405_calendarMain.firstVisibleIndex===0&&this.JSC$13405_calendarMain.scrollTo(0,0);this.JSC$13405_calendarMain.scrollToIndex(this.JSC$13405_calendarMain.firstVisibleIndex-1)};
_.B.onFormSubmit=function(V){V.preventDefault();this.calendarConfig&&(V=this.validateDateText(),V.isValid&&(this.commitDate(V.details),this.dialog.close()))};
_.B.onEscOrClickingOutside=function(V){V=V.detail.path&&!!V.detail.path.length&&V.detail.path[0];if(V.classList.contains("ytd-calendar-date-picker")){V===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var l=0;l<this.dropdownButton.children.length;l++)this.dropdownButton.children[l]===V&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}V=this.textbox.value!==this.dateText;l=this.validateDateText();V&&l.isValid&&this.commitDate(l.details);this.dialog.close();this.textbox.value=
this.dateText};
_.B.commitDate=function(V){this.calendarConfig&&(this.set("calendarConfig.selectedDate",V),_.B$(this.hostElement,"ytd-calendar-date-selected",V))};
_.B.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var V=this.textbox.value;var l=new Date;V=(new BCg(2)).parse(V,l,{validate:!0})===V.length?WrJ(l):void 0;if(!V)return this.errorMessage=_.LT("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};l=this.calendarConfig.start;var I=this.calendarConfig.end;if(ZLW(V,l))return this.errorMessage=_.LT("ENTER_DATE_OR_LATER",{allowed_date:cST(l)}),{isValid:!1,details:void 0};if(ZLW(I,V))return this.errorMessage=
_.LT("ENTER_DATE_OR_EARLIER",{allowed_date:cST(I)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:V}};
_.vI.Object.defineProperties(EmZ.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?cST(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var V=this.calendarConfig,l=[],I=0;I<7;I++)l.push(EJ.NARROWWEEKDAYS[(I+kto)%7]);I=[];for(var H=new Date(V.start.year,V.start.month);H.getFullYear()<V.end.year||H.getFullYear()===V.end.year&&H.getMonth()<=V.end.month;){var T=I,x=T.push,n=H.getFullYear(),w=H.getMonth(),N=V,L=void 0,e=[],k=Object.freeze({extraCssClass:"invisible",debugClass:""}),X=new Date(n,w),r=WrJ(X);X=X.getDay();for(var E=WrJ(new Date);r.month===
w;){X!==kto&&L||(L=Array.from({length:7}).fill(k),e.push(L));var D={date:{year:n,month:w,day:r.day},extraCssClass:"",debugClass:""};N.selectedDate&&D.date&&Dpw(D.date,N.selectedDate)&&(D.extraCssClass+=" selected");if(ZLW(r,N.start)||ZLW(N.end,r))D.extraCssClass+=" disabled";Dpw(r,E)&&(D.extraCssClass+=" today");D.extraCssClass=D.extraCssClass.trim();L[(X-kto+7)%7]=D;r=RA3(r);X=(X+1)%7}x.call(T,{weeks:e,monthLabel:EJ.SHORTMONTHS[w]+" "+n,year:n,month:w,monthLabelExtraCssClass:e[0][2]===k?"shift-down-label":
""});H.setMonth(H.getMonth()+1)}return{months:I,daysOfWeekLabel:l}}}}});
var Bs=EmZ;Bs.prototype.onEscOrClickingOutside=Bs.prototype.onEscOrClickingOutside;Bs.prototype.scrollToDate=Bs.prototype.scrollToDate;_.O([_.q(),_.a("design:type",Object)],Bs.prototype,"calendarConfig",void 0);_.O([_.q(),_.a("design:type",Object)],Bs.prototype,"skipNextOpenDialog",void 0);_.O([_.q(),_.a("design:type",Object)],Bs.prototype,"errorMessage",void 0);_.O([_.Ij("#textbox"),_.a("design:type",HTMLInputElement)],Bs.prototype,"textbox",void 0);
_.O([_.Ij("#calendar-dialog"),_.a("design:type",Object)],Bs.prototype,"dialog",void 0);_.O([_.Ij("#calendar-main"),_.a("design:type",Object)],Bs.prototype,"JSC$13405_calendarMain",void 0);_.O([_.Ij("#date-picker"),_.a("design:type",HTMLElement)],Bs.prototype,"dropdownButton",void 0);_.O([_.Q("calendarConfig.selectedDate"),_.a("design:type",String),_.a("design:paramtypes",[])],Bs.prototype,"dateText",null);
_.O([_.Q("calendarConfig","calendarConfig.selectedDate"),_.a("design:type",Object),_.a("design:paramtypes",[])],Bs.prototype,"renderData",null);_.O([_.b("renderData","calendarConfig.selectedDate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bs.prototype,"scrollToDate",null);_.O([_.W("iron-overlay-canceled"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Bs.prototype,"onEscOrClickingOutside",null);
Bs=_.O([_.Lm({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Bs);
_.u(Bs,"ytd-calendar-date-picker",function(){if(GtN!==void 0)return GtN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return GtN=V},{mode:2});var JAN=_.LT("UTC_OFFSET_FORMAT",{utc_offset:(new Mr("Z")).format(new Date)}),om3=(new Date).getTimezoneOffset()*-60,h4a=new Date,Pui,Du0=qr(h4a.getTimezoneOffset());Pui=OmJ(aRW(Du0,h4a));var Z1a=_.LT("LOCAL_TIME_GMT_LABEL",{gmt_text:Pui.replace("+0","+").replace("-0","-").replace(":00","")}),S8N=function(){var V=_.M.apply(this,arguments)||this;V.selectedTimeIndex=0;V.selectedTimezoneIndex=0;V.timeOfDayOptions=rAE;return V};
_.t(S8N,_.M);_.B=S8N.prototype;_.B.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var V=Qcw();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=V,this.selectedTimeIndex=0;else{var l=bL3(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},V,{selectedDate:l.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(I){return I.secondsSinceMidnight===l.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.B.onDatePicked=function(V){this.selectedDate=V.detail};
_.B.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.B$(this.hostElement,"ytd-date-time-selection-cancelled")};
_.B.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var V=this.selectedDate;V=new Date(V.year,V.month,V.day);_.B$(this.hostElement,"ytd-date-time-selection-update",Math.floor(V.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+V.getTimezoneOffset()*60))}};
_.B.getTimezoneFormat=function(V){return V.localizedDisplayText?V.localizedDisplayText:_.LT("TIMEZONE_FORMAT",{utc_offset_text:""+V.localizedUtcOffset,city_name:""+V.localizedName})};
_.B.updateSelectedTimeIndexFromBinding=function(V){this.selectedTimeIndex=V.detail.value};
_.B.updateSelectedTimezoneIndexFromBinding=function(V){this.selectedTimezoneIndex=V.detail.value};
_.vI.Object.defineProperties(S8N.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var V=this.data.timezoneOptions;var l={name:"Etc/Unknown",localizedName:_.LT("LOCAL_TIME_LABEL"),localizedUtcOffset:JAN,utcOffsetSec:""+om3,localizedDisplayText:Z1a};V?V.length&&V[0].name!==l.name&&(V[0].localizedDisplayText||(l.localizedDisplayText=""),V.unshift(l)):V=[l];return V}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
var x1=S8N;x1.prototype.onDateTimeTimezoneChange=x1.prototype.onDateTimeTimezoneChange;x1.prototype.onDatePicked=x1.prototype.onDatePicked;x1.prototype.updateDefaultSelectedValue=x1.prototype.updateDefaultSelectedValue;_.O([_.q(),_.a("design:type",Object)],x1.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],x1.prototype,"calendarConfig",void 0);_.O([_.q(),_.a("design:type",Object)],x1.prototype,"selectedDate",void 0);
_.O([_.q(),_.a("design:type",Object)],x1.prototype,"selectedTimeIndex",void 0);_.O([_.q(),_.a("design:type",Object)],x1.prototype,"selectedTimezoneIndex",void 0);_.O([_.Ij("#time-listbox"),_.a("design:type",Object)],x1.prototype,"timeListBox",void 0);_.O([_.Ij("#timezone-listbox"),_.a("design:type",Object)],x1.prototype,"timezoneListBox",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],x1.prototype,"rendererStamperBehavior",void 0);
_.O([_.Q("data.timezoneOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],x1.prototype,"timeZones",null);_.O([_.xs("data","timeZones"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],x1.prototype,"updateDefaultSelectedValue",null);_.O([_.Q("selectedTimezoneIndex","timeZones"),_.a("design:type",Object),_.a("design:paramtypes",[])],x1.prototype,"selectedTimezone",null);
_.O([_.Q("selectedTimeIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],x1.prototype,"selectedTime",null);_.O([_.W("ytd-calendar-date-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],x1.prototype,"onDatePicked",null);_.O([_.b("selectedTimezone","selectedTime","selectedDate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],x1.prototype,"onDateTimeTimezoneChange",null);
x1=_.O([_.A({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],x1);
_.u(x1,"ytd-date-time-picker-renderer",function(){if(e4N!==void 0)return e4N;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return e4N=V},{mode:1});var R4N;var Us=function(){var V=_.M.apply(this,arguments)||this;V.boundOnTapDismissButton=function(){V.dismissTapHandler()};
V.dismissButtonOverrides={size:"XS"};return V};
_.t(Us,_.M);Us.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}}}}}};
Us.prototype.dismissTapHandler=function(){_.B$(this.hostElement,"yt-backstage-attachment-dismissed")};
Us.prototype.computeAttachmentType=function(V){return V?V.backstageImageRenderer?"image":V.videoRenderer?"video":"none":"none"};
var nX=Us;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],nX.prototype,"attachmentPreview",void 0);_.O([_.q(),_.a("design:type",Object)],nX.prototype,"dismissButton",void 0);_.O([_.q(),_.a("design:type",Object)],nX.prototype,"boundOnTapDismissButton",void 0);
_.O([_.q(),_.a("design:type",Object)],nX.prototype,"dismissButtonOverrides",void 0);_.O([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.a("design:type",String)],nX.prototype,"attachmentType",void 0);nX=_.O([_.A({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],nX);
_.u(nX,"ytd-backstage-dismissable-attachment",function(){if(R4N!==void 0)return R4N;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return R4N=V},{mode:1});var QW3;var cAo=function(){var V=_.M.apply(this,arguments)||this;V.selectedVideoId=void 0;V.picker=void 0;V.dismissButtonOverrides={size:"XS"};V.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return V};
_.t(cAo,_.M);_.B=cAo.prototype;_.B.onServiceRequestCompleted=function(V){V.stopPropagation()};
_.B.handleAddVideoPreviewAction=function(V){V=this.get("addVideoPreviewAction",V);this.onGetVideoPreviewSuccess(V)};
_.B.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}}}}}};
_.B.onLaunchVideoPicker=function(V){var l=this,I=_.A5(this.get("addVideoLinkAction.title",V)),H=this.get("addVideoLinkAction.onePickHostId",V);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",V);H&&(this.picker||(I=_.iAN(_.JNN(H).setTitle(I).addView(aYZ()).addView(C2v()),function(T){l.onPickVideo(T)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",V)||I.addView("youtube"),this.picker=I.build()),this.picker.setVisible(!0))};
_.B.onPickVideo=function(V){if(V)if(V.action==="cancel")_.B$(this.hostElement,"yt-video-link-button-cancel");else if(V.action==="picked"){V=V.docs;if(!V||V.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(V=(V==null?0:V.length)?V[0]:void 0)?V.id:void 0;this.setVideoPreview()}};
_.B.setVideoPreview=function(){var V=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){V.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.B.onGetVideoPreviewSuccess=function(V){if(V&&V.videoPreview&&V.cancelButton)this.videoPreview=V.videoPreview,this.cancelButton=V.cancelButton,_.B$(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.B.onGetVideoPreviewError=function(){this.cancel()};
_.B.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.B$(this.hostElement,"yt-video-link-cancel")};
_.B.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
var $1=cAo;$1.prototype.onServiceRequestCompleted=$1.prototype.onServiceRequestCompleted;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],$1.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],$1.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$1.prototype,"videoPreview",void 0);_.O([_.q(),_.a("design:type",Object)],$1.prototype,"cancelButton",void 0);_.O([_.q(),_.a("design:type",Object)],$1.prototype,"getVideoPreviewCommand",void 0);_.O([_.q(),_.a("design:type",Object)],$1.prototype,"dismissButtonOverrides",void 0);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$1.prototype,"onServiceRequestCompleted",null);$1=_.O([_.A({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],$1);
_.u($1,"ytd-backstage-video-link-attachment",function(){if(QW3!==void 0)return QW3;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return QW3=V},{mode:1});var WNo;var b1E;var q8i;var dA=function(){return _.M.apply(this,arguments)||this};
_.t(dA,_.M);dA.prototype.dataChanged=function(){this.active=!1};
dA.prototype.onTap=function(){_.B$(this.hostElement,"yt-select-emoji-suggestion",this.data)};
dA.prototype.identity=function(V){return V};
_.vI.Object.defineProperties(dA.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H;if((V=this.data)==null?0:(l=V.image)==null?0:(I=l.thumbnails)==null?0:(H=I[0])==null?0:H.url)return V=this.data.image.thumbnails[0].url,V.startsWith("data:image/svg+xml")?Eq(V):_.S6(V)}}});
var wA=dA;wA.prototype.dataChanged=wA.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],wA.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],wA.prototype,"active",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wA.prototype,"dataChanged",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],wA.prototype,"imageSrc",null);
wA=_.O([_.A({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],wA);
_.u(wA,"ytd-emoji-suggestion",function(){if(q8i!==void 0)return q8i;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return q8i=V},{mode:1});var Mmi=/.*([:@#].*?)$/,sWE=function(){var V=_.M.apply(this,arguments)||this;V.suggestions=[];V.suggestionIndex=-1;V.JSC$13433_lastSuggestionRange=null;return V};
_.t(sWE,_.M);_.B=sWE.prototype;_.B.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.B.getSuggestions=function(V){var l=[],I=G3i(this.emojiManager,V.substr(0,3));if(I)for(var H in I)if(H.toLocaleLowerCase().indexOf(V)===0){var T=I[H];if(T&&T.emojiId){T=Re(this.emojiManager,T.emojiId);var x=void 0,n=void 0,w=void 0,N=void 0,L=((x=T)==null?0:x.isCustomEmoji)?(n=T)==null?void 0:(w=n.shortcuts)==null?void 0:w[0]:(N=T)==null?void 0:N.emojiId;x=void 0;l.push({suggestion:{image:(x=T)==null?void 0:x.image,alt:L,text:H}});if(l.length>=64)break}}return l?l.sort(function(e,k){return k.suggestion.text<
e.suggestion.text?-1:k.suggestion.text===e.suggestion.text?0:1}):null};
_.B.insertSuggestion=function(V){_.B$(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13433_lastSuggestionRange,text:V.alt});this.dropdown.opened=!1};
_.B.updateSuggestionsAtCaret=function(V){this.updateSuggestions(V,this.retrieveTextBeforeRange(V))};
_.B.offsetStartOfRangeBy=function(V,l){V.startOffset>=l&&V.setStart(V.startContainer,V.startOffset-l)};
_.B.updateSuggestions=function(V,l){var I=this;this.JSC$13433_lastSuggestionRange&&(this.JSC$13433_lastSuggestionRange.detach(),this.JSC$13433_lastSuggestionRange=null);if((l=Mmi.exec(l))&&l.length&&(l=l[l.length-1].toLocaleLowerCase(),l.length>2||l===":_")&&(this.offsetStartOfRangeBy(V,l.length),this.JSC$13433_lastSuggestionRange=V,(V=this.getSuggestions(l))&&V.length)){this.suggestions=V;_.Al(this,function(){I.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(V.length-1);return}this.dropdown.opened=!1};
_.B.onKeyDown=function(V){if(this.dropdown.opened)switch(V.key){case "Escape":this.dropdown.opened=!1;V.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);V.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);V.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),V.preventDefault()}};
_.B.onKeyUp=function(V,l){switch(V.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(l);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(l)}};
_.B.onKeyPress=function(V){V.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),V.preventDefault())};
_.B.changeSuggestionIndex=function(V){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(V+this.suggestions.length)%this.suggestions.length,V=this.dropdownContent.children[this.suggestionIndex],V.active=!0,this.dropdownContent.scrollTop=V.offsetTop)};
_.B.retrieveTextBeforeRange=function(V){var l=V.startContainer;return l&&l.nodeType===Node.TEXT_NODE?l.textContent.substr(0,V.startOffset):""};
var Nk=sWE;Nk.prototype.onKeyPress=Nk.prototype.onKeyPress;Nk.prototype.onKeyUp=Nk.prototype.onKeyUp;Nk.prototype.onKeyDown=Nk.prototype.onKeyDown;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Array)],Nk.prototype,"suggestions",void 0);_.O([_.q(),_.a("design:type",_.Z6)],Nk.prototype,"emojiManager",void 0);_.O([_.q(),_.a("design:type",Number)],Nk.prototype,"verticalSuggestionsOffset",void 0);
_.O([_.Ij("#dropdown"),_.a("design:type",Object)],Nk.prototype,"dropdown",void 0);_.O([_.Ij("#dropdown-content"),_.a("design:type",HTMLDivElement)],Nk.prototype,"dropdownContent",void 0);_.O([_.W("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],Nk.prototype,"onKeyDown",null);_.O([_.W("keyup"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent,Range]),_.a("design:returntype")],Nk.prototype,"onKeyUp",null);
_.O([_.W("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],Nk.prototype,"onKeyPress",null);Nk=_.O([_.A({disableElementRegistration:!0,is:"ytd-emoji-input"})],Nk);
_.u(Nk,"ytd-emoji-input",function(){if(b1E!==void 0)return b1E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return b1E=V},{mode:2});var pPa;var AAW=function(){var V=_.M.apply(this,arguments)||this;V.hasMaxOptions=!1;return V};
_.t(AAW,_.M);_.B=AAW.prototype;_.B.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.B.setPrefilledChoices=function(V){var l=this;this.set("pollOptions",[]);var I;for(I=0;I<Math.min(V.length,this.data.maxPollOptions);I++)this.push("pollOptions",V[I].substring(0,this.data.maxPollOptionChars));for(;I<this.data.minPollOptions;I++)this.push("pollOptions","");this.hasMaxOptions=I>=this.data.maxPollOptions;_.Al(this,function(){for(var H=l.pollOptions,T=_.h(l.hostElement).querySelectorAll(".poll-option-input"),x=0;x<T.length;x++)T[x].value=H[x]})};
_.B.focusChanged=function(){_.i3(this.hostElement)};
_.B.onInput=function(){var V=this;_.Go(this,"onInput",function(){V.isValid()?_.B$(V.hostElement,"yt-commentbox-post-enable"):_.B$(V.hostElement,"yt-commentbox-post-disable")},300)};
_.B.setPollOptions=function(){var V=[],l,I=((l=this.data)==null?0:l.minPollOptions)?this.data.minPollOptions:0;for(l=0;l<I;l++)V.push("");return V};
_.B.addPollOption=function(){var V=this;_.B$(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.r0.addLowPriorityJob(function(){var l;(l=_.h(V.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||l.focus()})};
_.B.onRemovePollOption=function(V){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.B$(this.hostElement,"yt-poll-attachment-dismiss")):(V=this.repeat.indexForElement(V.target.parentNode),V!==null&&(this.splice("pollOptions",V,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.B$(this.hostElement,"yt-commentbox-post-enable"))))};
_.B.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.B.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var V=0,l=this.pollOptions.length;V<l;V++)if(this.pollOptions[V].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.B.getPollOptions=function(){return this.pollOptions};
_.B.setPollOptionsFromInputs=function(){for(var V=_.h(this.hostElement).querySelectorAll(".poll-option-input"),l=0;l<V.length;l++)this.pollOptions[l]=V[l].value.trim()};
_.B.clearPollOptions=function(){var V=_.h(this.hostElement).querySelectorAll(".poll-option-input");V=_.U(V);for(var l=V.next();!l.done;l=V.next())l.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.B.getSimpleString=function(V){return _.A5(V)};
_.B.updateValueFromBinding=function(V){if(V.target&&this.pollOptions){var l=Array.from(_.h(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(V.target);if(l>=0){var I;this.pollOptions[l]=(I=V.detail.value)!=null?I:"";this.notifyPath("pollOptions."+l)}}};
var KX=AAW;KX.prototype.dataChanged=KX.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],KX.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Array)],KX.prototype,"pollOptions",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],KX.prototype,"hasMaxOptions",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],KX.prototype,"enableCreationBox",void 0);_.O([_.Ij("#repeat"),_.a("design:type",Km)],KX.prototype,"repeat",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KX.prototype,"dataChanged",null);KX=_.O([_.A({disableElementRegistration:!0,is:"ytd-poll-attachment"})],KX);
_.u(KX,"ytd-poll-attachment",function(){if(pPa!==void 0)return pPa;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return pPa=V},{mode:2});var uDZ;var vmB;var O1B;var CuN;var aTJ=function(){return _.M.apply(this,arguments)||this};
_.t(aTJ,_.M);_.vI.Object.defineProperties(aTJ.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
var jC=aTJ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],jC.prototype,"rendererBehaviors",void 0);_.O([_.q(),_.a("design:type",Object)],jC.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],jC.prototype,"focused",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("focused"),_.a("design:type",Object),_.a("design:paramtypes",[])],jC.prototype,"ariaSelected",null);jC=_.O([_.Lm({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],jC);
_.u(jC,"yt-user-mention-suggestion-renderer",function(){if(CuN===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;O1B===void 0&&(O1B=document.createElement("template"));var H=O1B;I.call(l,H.content.cloneNode(!0),V.content.firstChild);CuN=V}V=CuN;return V},{mode:2});var fTZ;var gmJ;var mui=function(){var V=_.M.apply(this,arguments)||this;V.focusedSuggestionIndex=-1;return V};
_.t(mui,_.M);_.B=mui.prototype;_.B.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.B.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.B.setFocusedSuggestionIndex=function(V){!this.data||!this.data.suggestions||V<0||V>=this.data.suggestions.length||(this.focusedSuggestionIndex=V,V=this.getSuggestionId(V),this._setFocusedSuggestionId(V))};
_.B.advanceSuggestion=function(V){this.focusedSuggestionIndex===-1||V!==-1&&V!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+V),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.B.ensureSuggestionVisible=function(V){V=this.getSuggestionId(V);V=_.h(this.hostElement).querySelector("[id="+V+"]");V!=null&&(V.offsetTop<this.hostElement.scrollTop?V.scrollIntoView(!0):V.offsetTop+V.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&V.scrollIntoView(!1))};
_.B.getSuggestionId=function(V){return"user-mention-suggestion-"+V};
_.B.onSuggestionTap=function(V){var l=_.y(V.model.item,zdo);this.ytRendererBehavior.logExplicitClick(l);_.B$(this.hostElement,"yt-user-mention-suggestion-selected",{data:l,index:V.model.index})};
_.B.onSuggestionMouseMove=function(V){V.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(V.model.index)};
_.B.isSuggestionFocused=function(V,l){return V===l};
_.B.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.B.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("focused-suggestion-id-changed",this.focusedSuggestionId))};
var Y1=mui;Y1.prototype.focusedSuggestionIdChangedForBinding=Y1.prototype.focusedSuggestionIdChangedForBinding;Y1.prototype.onDomChange=Y1.prototype.onDomChange;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Y1.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Y1.prototype,"focusedSuggestionIndex",void 0);_.O([_.q({readOnly:!0}),_.a("design:type",String)],Y1.prototype,"focusedSuggestionId",void 0);
_.O([_.W("dom-change"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y1.prototype,"onDomChange",null);_.O([_.b("focusedSuggestionId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y1.prototype,"focusedSuggestionIdChangedForBinding",null);Y1=_.O([_.Lm({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Y1);
_.u(Y1,"yt-user-mention-suggestions-dropdown",function(){if(gmJ===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;fTZ===void 0&&(fTZ=document.createElement("template"));var H=fTZ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);gmJ=V}V=gmJ;return V},{mode:2});var i1B=function(){var V=_.M.apply(this,arguments)||this;V.suggestionsResponse=null;V.activeMention=null;V.selectionChangeListener=V.onSelectionChange.bind(V);V.handlesEnabled=_.z("enable_handles_in_mention_suggest_posts");V.handlesInMentionSuggestionsEnabled=_.z("handles_in_mention_suggest_posts");V.zeroPrefixMentionSuggestionEnabled=_.z("enable_zero_prefix_mention_suggestion_web");V.pendingQuery=null;V.flowNonce=null;return V};
_.t(i1B,_.M);_.B=i1B.prototype;_.B.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.B.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.B.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.B.hasSuggestions=function(V){return!!(V&&V.suggestions&&V.suggestions.length>0)};
_.B.onInput=function(){var V=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var l=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),I=this.activeMention.JSC$9102_getText().slice(-1)===" ",H=this.activeMention.JSC$9102_getText().slice(-2,-1)===" ",T="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9102_getText().slice(-2,-1))>=
0;T=this.zeroPrefixMentionSuggestionEnabled&&T;if(this.activeMention.isCollapsed()||(l||H||T)&&I)this.cancelActiveMention();else{var x=this.activeMention.JSC$9102_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Go(this,"requestSuggestions",function(){V.requestSuggestions(x)},100)}}}};
_.B.onServiceRequestSent=function(V){V.stopPropagation()};
_.B.onServiceRequestCompleted=function(V){V.stopPropagation();V=V.detail.data;V.query&&(!this.pendingQuery||this.pendingQuery!==V.query)||!this.zeroPrefixMentionSuggestionEnabled&&V.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=V,this.hasSuggestions(V)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.B.onServiceRequestError=function(V){V.stopPropagation()};
_.B.onUserMentionSuggestionSelected=function(V){this.selectSuggestion(V.detail.data,V.detail.index)};
_.B.onSelectionChange=function(){if(this.activeMention){var V=_.zK(),l=this.activeMention.JSC$9102_containsRange(V);V=V&&this.containsHelper(this.dropdown,V.getContainer());l||V||this.cancelActiveMention()}};
_.B.containsHelper=function(V,l){var I;if(((I=window.ShadyDOM)==null?void 0:I.noPatch)===!0)return V.contains(l);for(;l;){if(l===V)return!0;l=l instanceof ShadowRoot?l.host:l.parentNode}return!1};
_.B.maybeStartSuggest=function(){var V=_.zK();if(V&&V.isCollapsed()){var l=V.JSC$9102_getStartNode(),I=V.JSC$9102_getStartOffset();if(l instanceof Text&&!(I<1)){var H=l.textContent;!(H=H&&H.charAt(I-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(H)<0||(this.activeMention=_.WJ(l,I-1,V.JSC$9102_getEndNode(),V.JSC$9102_getEndOffset()),this.flowNonce=Gu(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.B.updateActiveMention=function(){if(this.activeMention){var V=_.zK();V&&V.isCollapsed()&&(this.activeMention=_.WJ(this.activeMention.JSC$9102_getStartNode(),this.activeMention.JSC$9102_getStartOffset(),V.JSC$9102_getEndNode(),V.JSC$9102_getEndOffset()))}};
_.B.requestSuggestions=function(V){if(this.activeMention){var l={suggestions_query:V};this.pendingQuery=V;_.$B(this.hostElement,[this.suggestionsEndpoint,l])}};
_.B.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()};
_.B.focusPreviousSuggestion=function(V){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),V.preventDefault())};
_.B.focusNextSuggestion=function(V){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),V.preventDefault())};
_.B.selectFocusedSuggestion=function(V){if(this.hasSuggestions(this.suggestionsResponse)){var l=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.y(l,zdo)&&(this.selectSuggestion(_.y(l,zdo),this.dropdown.focusedSuggestionIndex),V.preventDefault())}};
_.B.selectSuggestion=function(V,l){if(V){var I=this.activeMention;if(I){var H=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&V.handle?_.Ma(H,"\u00a0\u2068@"+V.handle+"\u2069\u00a0"):this.handlesEnabled?_.Ma(H,"\u00a0"+V.displayName+"\u00a0"):_.Ma(H,"\u00a0@"+V.displayName+"\u00a0");bY(H,"/channel/"+V.channelId);H.classList.add("yt-formatted-string","yt-simple-endpoint");H.setAttribute("spellcheck","false");I.isCollapsed()||I.JSC$9102_removeContents();I.insertNode(H,!0);V=document.createTextNode(" ");
H.parentNode.insertBefore(V,H.nextSibling);window.getSelection().collapse(V,1);l={suggestionSelected:{suggestionIndex:l}};if(this.zeroPrefixMentionSuggestionEnabled){var T;l.suggestionSelected.isZeroPrefix=((T=this.suggestionsResponse)==null?void 0:T.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",l);this.cancelActiveMention();_.B$(this.hostElement,"yt-mention-inserted")}}};
_.B.getPositionTarget=function(V){return V&&V.getBrowserRangeObject()};
_.B.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.B.onFocusedSuggestionIdChanged=function(V){var l=_.cDt(this.hostElement)[0];l&&(V.detail.value?l.setAttribute("aria-activedescendant",V.detail.value):l.removeAttribute("aria-activedescendant"))};
_.B.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.B.logGELEvent=function(V,l){V={eventType:V,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};l&&(V=Object.assign(V,l));_.tF("userMentionAutoCompleteBoxEvent",V)};
var LX=i1B;LX.prototype.onDomChange=LX.prototype.onDomChange;LX.prototype.onUserMentionSuggestionSelected=LX.prototype.onUserMentionSuggestionSelected;LX.prototype.onServiceRequestError=LX.prototype.onServiceRequestError;LX.prototype.onServiceRequestCompleted=LX.prototype.onServiceRequestCompleted;LX.prototype.onServiceRequestSent=LX.prototype.onServiceRequestSent;LX.prototype.onInput=LX.prototype.onInput;_.O([_.R(_.yn),_.a("design:type",Object)],LX.prototype,"ironA11yKeysBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],LX.prototype,"suggestionsEndpoint",void 0);_.O([_.q(),_.a("design:type",Object)],LX.prototype,"suggestionsResponse",void 0);_.O([_.q(),_.a("design:type",Object)],LX.prototype,"activeMention",void 0);_.O([_.Ij("#dropdown"),_.a("design:type",Object)],LX.prototype,"dropdown",void 0);_.O([_.Ij("#iron-dropdown"),_.a("design:type",Object)],LX.prototype,"ironDropdown",void 0);
_.O([_.W("input"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],LX.prototype,"onInput",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],LX.prototype,"onServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],LX.prototype,"onServiceRequestCompleted",null);
_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],LX.prototype,"onServiceRequestError",null);_.O([_.W("yt-user-mention-suggestion-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],LX.prototype,"onUserMentionSuggestionSelected",null);
_.O([_.W("dom-change"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],LX.prototype,"onDomChange",null);LX=_.O([_.Lm({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],LX);
_.u(LX,"yt-user-mention-autosuggest-input",function(){if(vmB===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;uDZ===void 0&&(uDZ=document.createElement("template"));var H=uDZ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);vmB=V}V=vmB;return V},{mode:2});var eC=null;
_.Ne({is:"ytd-commentbox",_template:function(){if(WNo!==void 0)return WNo;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return WNo=V},
behaviors:[_.za1.YtHostElementBehavior,_.yn,_.aU.YtActionHandlerBehavior,_.DX.YtComponentBehavior,_.Cb.YtRendererstamperBehavior,_.W0v.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(V,l){return _.nW(V.entities,"aadcGuidelinesStateEntityPayload",l)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(V,l){return _.nW(V.entities,"commentboxStateEntity",l)},
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 _.Q2}},
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:_.z("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.z("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",_.VP(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(V){this.fire(V?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(V){this.set("submitButtonDisabled",void 0);this.clear();V&&this.computeIsEmojiButtonDisplayed_(V)&&(V=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&V.updateEmojiCategories()},
observePrefilledImage_:function(V,l,I){this.isValidPrefilledImage_(V,l,I)&&(this.prefilledAttachment_="image",this.prefilledImageData_=l,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(V,l){this.isValidPrefilledVideo_(V,l)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(V){V&&V.pollData&&V.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(V.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.KD();this.focus()},
detached:function(){document.removeEventListener("tap",_.VP(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(V){V=V.detail;V=V.isCustomEmoji?V.shortcuts[0]:V.emojiId;var l=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(l,V);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var V=_.zK();if(V){V=V.getBrowserRangeObject();for(var l=V.commonAncestorContainer;l;){if(l===this.getEditableTextArea_())return V;l=l.parentNode}}V=this.getEditableTextArea_();V=_.cJ(V,V.childNodes.length);V.select();return V.getBrowserRangeObject()},
insertTextWithEmojis_:function(V,l,I){(l=this.emojiManager.createDocumentFragment(l,!0,!1,I===void 0?!0:I))&&l.childNodes.length!==0&&(V.collapsed||V.deleteContents(),I=l.lastChild,V.insertNode(l),_.jjZ(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var V=_.zK();if(V){var l=V.JSC$9102_getStartNode(),I=V.JSC$9102_getEndNode();if(MwJ(l)&&MwJ(I)){var H=V.JSC$9102_getStartOffset(),T;if(_.Yv&&l.nodeType===Node.ELEMENT_NODE&&(T=_.IC0(l)))_.cJ(T,0).select();else{T=k9(l)?l:_.Rg(l,k9);var x=k9(I)?I:_.Rg(I,k9);if(T||x)if(V.isCollapsed()){if(l.nodeType===Node.TEXT_NODE){V=!0;H===l.length&&(V=!1);if(eC==="end"||eC==="right")V=!1;l=l.parentNode;V=[].concat(_.oI(l.parentNode.childNodes)).indexOf(l)+(V?0:1);_.cJ(l.parentNode,V).select()}}else T?
T.previousSibling&&T.previousSibling.length>0?_.WJ(I,V.JSC$9102_getEndOffset(),T.previousSibling,T.previousSibling.length-1).select():(l=document.createTextNode("\u200b"),T.parentNode.insertBefore(l,T),_.WJ(I,V.JSC$9102_getEndOffset(),l,0).select()):x&&(x.nextSibling&&x.nextSibling.length>0?_.WJ(l,V.JSC$9102_getStartOffset(),x.nextSibling,1).select():(I=document.createTextNode("\u200b"),x.parentNode.insertBefore(I,x.nextSibling),_.WJ(l,V.JSC$9102_getStartOffset(),I,I.length).select()));eC=null}}else eC=
null}else eC=null},
leftKeyPressed_:function(){eC="left"},
rightKeyPressed_:function(){eC="right"},
endKeyPressed_:function(){eC="end"},
maybeDeleteChip_:function(){var V=OLK(!0);if(V){var l=_.zK(),I=l.JSC$9102_getStartNode();l=l.JSC$9102_getStartOffset();_.DE(I,l,V,V.childNodes.length).select()}},
maybeBackspaceChip_:function(){var V=OLK(!1);if(V){var l=_.zK(),I=l.JSC$9102_getStartNode();l=l.JSC$9102_getStartOffset();_.DE(I,l,V,0).select()}},
maybeBackspaceChipWordMode_:function(V){var l=_.zK();if(l.isCollapsed()){var I=l.JSC$9102_getStartNode();l=l.JSC$9102_getStartOffset();var H=Cac(I,l,!0);H&&(_.DE(I,l,H,0).select(),document.execCommand("delete"),V.preventDefault(),V.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(V){var l=_.zK();if(l.isCollapsed()){var I=l.JSC$9102_getStartNode();l=l.JSC$9102_getStartOffset();var H=Cac(I,l,!1);H&&(_.DE(I,l,H,H.childNodes.length).select(),document.execCommand("delete"),V.preventDefault(),V.stopImmediatePropagation())}},
onTap_:function(V){if(!V.defaultPrevented&&(V.currentTarget.tagName==="YTD-COMMENTBOX"&&k9(V.target)&&V.preventDefault(),this.isEmojiPickerDisplayed)){var l=this.$$("#emojis"),I=this.$$("#emoji-button"),H=this.getEditableTextArea_();if((V=V.path?V.path:V.composedPath&&V.composedPath())&&!V.includes(l)&&!V.includes(H)&&!V.includes(I))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(V,l,I){return V==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&l!==void 0&&l.encryptedBlobId!==null&&l.sourceExternalVideoId!==null&&I!==void 0&&I.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(V,l){return V==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!l&&!!l.videoRenderer&&!!l.videoRenderer.videoId},
isValidPrefilledAttachment_:function(V,l,I){return this.isValidPrefilledImage_(V,l,I)||this.isValidPrefilledVideo_(V,I)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.z("enable_multi_image_post_creation")){var V=this.$$("ytd-backstage-multi-image-select-renderer");V&&V.hasImages()&&V.cancel()}else(V=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&V.cancel();(V=this.$["poll-attachment"])&&this.hasPoll_&&V.clearPollOptions();(V=this.$["image-poll-attachment"])&&this.hasImagePoll_&&V.resetPollOptions();(V=this.$["quiz-attachment"])&&this.hasQuiz_&&V.resetQuizOptions();
(V=this.$["video-link-attachment"])&&this.hasVideo_&&V.cancel();(V=this.$["access-restrictions-selector"].firstElementChild)&&V.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 _.h(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.h(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(V,l){V=pDf(V,this.emojiManager,l).cloneNode(!0);for(l=V.firstChild;l;)if(l.nodeType!==1)l=l.nextSibling;else switch(l.tagName){case "BR":var I=_.Rk();_.dVW(I,l);l=I.nextSibling;break;case "DIV":(I=l.lastChild)&&l.nextSibling&&_.b_(_.Rk(),I);l.previousSibling&&(l.previousSibling.nodeType===1||l.previousSibling.nodeType===3&&!l.previousSibling.textContent.endsWith("\n"))&&_.Wi(_.Rk(),l);I&&I.nodeName==="BR"&&_.Yw(I);I=l;l.hasChildNodes()?(l=l.firstChild,
_.who(I)):(l=l.nextSibling,_.Yw(I));break;default:l=l.nextSibling}return a7K(V)},
onAddImageError_:function(V){V.stopPropagation();this.errorMessage_=_.pW(V.detail)},
setTextAreaValue_:function(V){V||(V="");var l=this.getEditableFormattedString_();l.text="";this.getEditableTextArea_().innerText="";typeof V==="string"&&(V={runs:[{text:V}]});l.text=V},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();eC=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var V=this.getEditableTextArea_();V&&(_.cJ(V,V.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.h6("HTML_DIR")==="rtl"){var V=this.getEditableTextArea_(),l=this.getTextAreaValue()!==""?"auto":"rtl";V.setAttribute("dir",l)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var V;return gNW((V=this.$["quiz-attachment"])==null?void 0:V.getExplanationText())||gNW(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var V=null;if(this.isEmojiButtonDisplayed){var l=this.getInputRange_();l&&(V=this.emojiInput.retrieveTextBeforeRange(l))}this.insertText_(V,!0);this.updateCharCount_();this.setSubmitButton_();V=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=V.scrollHeight>V.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var V=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:V})},
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(V){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(V)},
onPasteEmoji_:function(V){V.preventDefault();V.stopImmediatePropagation();V=V.clipboardData.getData("text/plain");this.insertText_(V,!1,!1)},
insertText_:function(V,l,I){l=l===void 0?!1:l;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&V){var H=this.getInputRange_().cloneRange();this.emojiManager&&H&&(l&&this.emojiInput.offsetStartOfRangeBy(H,V.length),this.insertTextWithEmojis_(H,V,I),scf(this.getEditableTextArea_().lastChild)||(H=this.getInputRange_().cloneRange()),H&&(this.emojiInput.updateSuggestions(H,V),this.updateSuggestionOffset_(H)))}},
setSubmitButton_:function(){if(this.data){var V=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",l=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(V||l){var I=this.getTextAreaValue().trim();l=I===this.previousText_;I=!I||this.aboveCharLimit_;V&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(I=this.aboveCharLimit_);this.submitButtonDisabled=
l||I||!this.getTextLength();V&&_.z("enable_post_scheduling")&&(this.submitButtonDisabled=l&&!this.scheduledPublishTimeSec_||I)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.A5,computeCreationBoxClass_:function(V){return V?"focused":"not-focused"},
computeFooterMessageClass_:function(V,l){return l?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(V,l){return l?l:V},
computeFooterMessageHidden_:function(V,l){return!l&&!V},
computePlaceholderText_:function(V,l,I){return(I==="video"||I==="image")&&(V==null?0:V.prefilledPlaceholderText)?V==null?void 0:V.prefilledPlaceholderText:l==="poll"||l==="image-poll"?V==null?void 0:V.pollPostPlaceholderText:l==="quiz"?V==null?void 0:V.quizPostPlaceholderText:l==="image"?V==null?void 0:V.imagePostPlaceholderText:V==null?void 0:V.placeholderText},
computeHideAttachmentButtons_:function(V,l,I,H){return V===void 0?!1:H&&this.getSimpleString(H)===this.getSimpleString(V.rateLimitErrorMessage)?!0:l!=="none"||I!=="none"||!V.videoLinkButton&&!V.pollButton&&!V.imagePollButton&&!V.quizButton&&!V.imageButton},
computeHideDismissableAttachment_:function(V){return V!=="image"&&V!=="video"},
computeHasVideo_:function(V){return V==="video"},
computeHasImage_:function(V){return V==="image"},
computeHasPoll_:function(V){return V==="poll"},
computeHasImagePoll_:function(V){return V==="image-poll"},
computeHasQuiz_:function(V){return V==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(V){return V&&V.backstageAttachment?V.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!V.backstageAttachment.quizRenderer&&!V.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(V){if(this.isValidPrefilledAttachment_(V.purpose,V.prefilledImageData,V.backstageAttachment))return V.backstageAttachment},
computeEditAttachment_:function(V){if(this.computePrefilledContent_(V)===void 0)return V.backstageAttachment},
computeAuthorThumbnailDimension_:function(V,l){return V&&!l?24:40},
computeImageUploadEndpoint_:function(V){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",V)},
computeRateLimitErrorCommands_:function(V){var l,I;return V==null?void 0:(l=V.advancedTierFeatures)==null?void 0:(I=l.rateLimit)==null?void 0:I.rateLimitCommands},
computeIsBackstageComment_:function(V){return!(!V||V!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(V){return this.get("submitButton.buttonRenderer.serviceEndpoint",V)||this.get("replyButton.buttonRenderer.serviceEndpoint",V)||this.get("postButton.buttonRenderer.serviceEndpoint",V)},
computeSubmitButtonOverride:function(){if(_.z("web_modern_buttons")){var V,l;return{segmentedPosition:this.dropdownSchedulePanel_||!((V=this.data)==null?0:(l=V.postOptionsMenu)==null?0:l.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.z("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(V,l){V=this.get("submitButton.buttonRenderer",V)||this.get("replyButton.buttonRenderer",V)||this.get("postButton.buttonRenderer",V);l&&(V=l);V&&(V=Object.assign({},V),V.serviceEndpoint=void 0,V.isDisabled=this.submitButtonDisabled);return V},
computeHasExternalLinksAccess_:function(V){if(_.z("enable_rfa_external_links")){var l,I,H;return(H=V==null?void 0:(l=V.advancedTierFeatures)==null?void 0:(I=l.externalLinks)==null?void 0:I.allowExternalLinks)!=null?H:!0}return!0},
computeIsEmojiButtonDisplayed_:function(V){return V.emojiButton&&V.emojiPicker&&V.emojiPicker.emojiPickerRenderer&&V.emojiPicker.emojiPickerRenderer.categories?V.emojiPicker.emojiPickerRenderer.categories.find(function(l){return l.emojiPickerCategoryRenderer?l.emojiPickerCategoryRenderer.emojiIds&&l.emojiPickerCategoryRenderer.emojiIds.length>0:l.emojiPickerUpsellCategoryRenderer?l.emojiPickerUpsellCategoryRenderer.emojis&&l.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(V){return V.charLimit?V.charLimit:null},
computeDropdownSchedulingPanel_:function(V,l){if(V==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&l)return l},
computeInlineSchedulingPanel_:function(V,l){if(V==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&l)return l},
computeHideAuthorThumbnail_:function(V,l){return V||this.computeUseIdentityChip_(l)},
computeHideIdentityChipRenderer_:function(V,l){return V||!this.computeUseIdentityChip_(l)},
computeUseIdentityChip_:function(V){return!!V&&!!V.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(V){var l,I,H,T;(V==null?0:(l=V.detail)==null?0:(I=l.endpoint)==null?0:I.ypcGetOffersEndpoint)||(V==null?0:(H=V.detail)==null?0:(T=H.endpoint)==null?0:T.ypcOffersEndpoint)?(V.stopPropagation(),_.$B(this,[V.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",V)&&(V.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(V){this.addedAttachment="video";this.selectedVideoId_=V.detail.videoId},
commentboxStateEntityChanged_:function(V){var l=this;(V==null?void 0:V.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(V==null?void 0:V.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){l.focus()})},
onYtServiceRequestSent_:function(V,l){if(l.actions)for(V=_.U(l.actions),l=V.next();!l.done;l=V.next())l.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(V){this.isLoading=!1;var l=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",V),I,H,T,x=V==null?void 0:(I=V.detail)==null?void 0:(H=I.data)==null?void 0:(T=H.actionResult)==null?void 0:T.commentboxStateEntityKey;if(l)this.errorMessage_=l;else if(x){var n;this.dismissData_=V==null?void 0:(n=V.detail)==null?void 0:n.data;this.commentboxStateKey_=x}else{this.clear();var w;this.fire("yt-commentbox-dismiss",V==null?void 0:(w=V.detail)==
null?void 0:w.data)}},
onYtServiceRequestError_:function(V){V.stopPropagation();this.isLoading=!1;var l,I;if(((l=this.data)==null?void 0:l.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((I=this.data)==null?void 0:I.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(l=this.get("detail.error.args",V)||[],l.length>1&&l[1].message){this.handlePostsServiceRequestError_(l[1].message);return}(V=this.get("detail.error.message",V))?this.errorMessage_=this.data.errorMessage||_.pW(V):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(V){if(_.z("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var l=_.U(this.rateLimitErrorCommands),I=l.next();!I.done;I=l.next())if(I=I.value,I.errorLabel===V){_.IN(I.command,this.hostElement);return}this.errorMessage_=_.pW(V)},
submitIfNotBackstagePost_:function(V){if(!this.isBackstagePost)this.onSubmit_(V)},
onSubmit_:function(V){var l=this,I,H,T,x,n,w,N,L,e,k,X,r,E,D,Z;return _.d(function(S){switch(S.nextAddress){case 1:V.stopPropagation();if(!l.serviceEndpoint||!l.isValidInput_())return S.return();if(l.shouldShowPostAadcNotice_())return l.showPostAadcNotice_(),S.return();if(l.shouldShowCommentAadcNotice_())return l.showCommentAadcNotice_(),S.return();if(!(l.$$("ytd-backstage-multi-image-select-renderer")&&l.hasImage_&&_.z("enable_multi_image_post_creation"))){S.jumpTo(2);break}I=l.$$("ytd-backstage-multi-image-select-renderer");
return _.K(S,I.getAllUploadStatuses(),3);case 3:H=S.yieldResult;if(!H)return S.return();T=_.U(H);for(x=T.next();!x.done;x=T.next())if(n=x.value,n.encryptedBlobId===void 0)return l.isLoading=!1,N=w=void 0,l.errorMessage_=(N=(w=l.imageUploadEndpoint_)==null?void 0:w.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?N:null,S.return();return S.return(l.submitForm_(void 0,void 0,void 0,void 0,I.images,l.taggedVideoId_));case 2:if(!l.hasImagePoll_||!l.$["image-poll-attachment"]){S.jumpTo(4);
break}return _.K(S,l.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:L=S.yieldResult;if(!L)return S.return();e=_.U(L);for(k=e.next();!k.done;k=e.next())if(X=k.value,!X.encryptedBlobId)return l.isLoading=!1,r=void 0,l.errorMessage_=(r=l.data.errorMessage)!=null?r:null,S.return();case 4:D=(E=l.$$("ytd-backstage-image-select-renderer"))&&E.uploadPromise(),Z=l.getSharedPostId_(),D?D.then(function(){l.submitForm_.apply(l,_.oI(_.Q5.apply(0,arguments)))}).catch(function(p){l.isLoading=!1;
l.errorMessage_=_.pW(p.message)}):l.selectedVideoId_?l.submitForm_(void 0,l.selectedVideoId_):l.prefilledAttachment_==="image"?l.submitForm_(l.prefilledImageData_.encryptedBlobId,void 0,void 0,l.prefilledImageData_.sourceExternalVideoId,void 0,l.taggedVideoId_):l.prefilledAttachment_==="video"?l.submitForm_(void 0,l.data.backstageAttachment.videoRenderer.videoId):Z?l.submitForm_(void 0,void 0,Z):l.taggedVideoId_!==void 0?l.submitForm_(void 0,void 0,void 0,void 0,void 0,l.taggedVideoId_):l.submitForm_(),
_.FU(S)}})},
openSchedulingPanel:function(V){V&&V.scheduleButton&&V.scheduleButton.buttonRenderer&&(this.scheduleButton_=V.scheduleButton.buttonRenderer);V&&V.dateTimePicker&&this.set("data.schedulingDateTimePicker",V.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(V){V.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(V){V.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(V){V.stopPropagation();V.detail.alertMessage&&(this.alertMessage_=V.detail.alertMessage)},
onImageSelected_:function(V){V.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(V){V.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(V){V.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(V.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(V){V.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(V){var l=this.$["video-link-attachment"];l&&l.onLaunchVideoPicker(V)},
onAttachmentDismiss_:function(V){V.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"&&_.z("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.z("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 V;if(this.addedAttachment==="image-poll"&&((V=this.$["image-poll-attachment"])==null||!V.isValid()))return!1;var l;if(this.addedAttachment==="quiz"&&((l=this.$["quiz-attachment"])==null||!l.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;V=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(V=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")V=!0;return V||!!this.getTextAreaValue().trim()},
submitForm_:function(V,l,I,H,T,x){var n=this.getTextAreaValue().trim(),w={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&n===this.previousText_&&(n=void 0);n!==void 0&&(w.comment_text=n);this.isLoading=!0;x!=void 0&&(w.tagged_video_id=x);V?(w.image_blob_id=V,this.imagePreviewCoordinates_&&(w.image_preview_coordinates=this.imagePreviewCoordinates_)):l?w.attached_video_id=l:I?w.shared_post_id=I:T&&T.length>0&&(w.images_data=T.map(function(N){return{encryptedBlobId:N.encryptedBlobId,
previewCoordinates:N.previewCoordinates}}));
H&&(w.source_video_id=H);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(w.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(w.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(w.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.z("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(w.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.z("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(w.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.$B(this,[this.serviceEndpoint,w])},
onIsInputFocusChanged_:function(V,l){V?this.fire("yt-autonav-pause-focus"):l!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(V){var l=this.getEditableTextArea_();[].concat(_.oI(V.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(H){l.appendChild(document.createTextNode(H))})});
V.preventDefault()},
preventDefault_:function(V){V.preventDefault()},
onSuggestionInsert_:function(V){this.insertTextWithEmojis_(V.detail.range,V.detail.text)},
onEmojiSuggestionClick_:function(V){this.emojiInput.insertSuggestion(V.detail)},
computeSubmitButtonClass_:function(V,l){return!l||V?"":"with-options"},
updateSuggestionOffset_:function(V){if(this.emojiInput&&_.h(this.emojiInput).querySelector("#dropdown")){var l=this.getEditableTextArea_().getBoundingClientRect().bottom,I=V.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(l-I)+5;l=this.getEditableTextArea_().getBoundingClientRect().left;V=V.getBoundingClientRect().left-l;_.h(this.emojiInput).querySelector("#dropdown").style.marginLeft=V+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(V){if(_.z("enable_post_scheduling")&&this.data&&this.data.purpose){V=V.detail;if(Math.floor(Date.now()/1E3)>=V)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var l=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(l)||l!==V?this.scheduledPublishTimeSec_=V:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=V;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var V=["image-button","image-poll-button","poll-button"];_.z("enable_quiz_creation")&&V.push("quiz-button");_.z("auto_convert_posts_video_tag")||V.push("video-link-button");return V},
getButtonRenderer:function(V,l){if(V)switch(l){case "video-link-button":var I;return((I=V.videoLinkButton)==null?void 0:I.buttonRenderer)||void 0;case "image-button":var H;return((H=V.imageButton)==null?void 0:H.buttonRenderer)||void 0;case "poll-button":var T;return((T=V.pollButton)==null?void 0:T.buttonRenderer)||void 0;case "image-poll-button":var x;return((x=V.imagePollButton)==null?void 0:x.buttonRenderer)||void 0;case "quiz-button":var n;return((n=V.quizButton)==null?void 0:n.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var V;return(V=this.data)==null||!V.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var V,l;return!((V=this.data)==null||!V.openAadcDialog)&&!((l=this.aadcGuidelinesState_)==null||!l.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.h6("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var V;((V=this.data)==null?0:V.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.h2("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(V){V.clickTrackingParams&&_.x7().clickCommand(V);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.xB(this,"yt-close-popup-action")},
onHideIdentityChip:function(V){var l;this.set("data.placeholderText",(l=V.hideIdentityChipAction)==null?void 0:l.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var VV0=function(){var V=_.M.apply(this,arguments)||this;V.isOpen=!1;V.modern=_.z("web_modern_buttons");V.roundedContainer=!0;V.dropdownButtonOverride=_.z("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;V.inPopupContainer=!1;V.isCommentboxLoading=!1;var l=["image-button","image-poll-button","poll-button"];_.z("enable_quiz_creation")&&l.push("quiz-button");_.z("auto_convert_posts_video_tag")||l.push("video-link-button");V.attachmentButtonIds=l;V.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 V};
_.t(VV0,_.M);_.B=VV0.prototype;_.B.computeButtonOverride=function(){var V;return((V=this.data)==null?0:V.postOptionsMenu)&&_.z("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.B.configureRendererStamper=function(){var V={"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]]"}}}}};_.z("auto_convert_posts_video_tag")||(V["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return V};
_.B.ready=function(){var V=this,l=_.h(this.hostElement).querySelector("#placeholder-area"),I=function(H){V.onOpen(H)};
l.addEventListener("tap",I);l.addEventListener("keypress",I)};
_.B.showButtonEduTooltip=function(){var V,l,I,H,T,x,n;if(_.z("enable_quiz_creation")&&((V=this.data)==null?0:(l=V.quizButton)==null?0:(I=l.buttonRenderer)==null?0:(H=I.hint)==null?0:(T=H.hintRenderer)==null?0:(x=T.content)==null?0:(n=x.bubbleHintRenderer)==null?0:n.text)&&(_.l9.getInstance(),V=IU(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(V==null?void 0:
V.length)>0)){this.ytComponentBehavior.resolveCommand(V[0],{form:{element:this.quizButton}});return}var w;if((w=this.data)==null?0:w.imagePollButtonTooltip)if(_.l9.getInstance(),w=IU(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(w==null?void 0:w.length)>0){this.ytComponentBehavior.resolveCommand(w[0],{form:{element:this.imagePollButton}});return}var N;_.z("enable_multi_image_post_creation")&&
((N=this.data)==null?0:N.multiImageButtonTooltip)&&(_.l9.getInstance(),N=IU(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(N==null?void 0:N.length)>0&&this.ytComponentBehavior.resolveCommand(N[0],{form:{element:this.imageButton}}))};
_.B.onCreatePollAction=function(V){_.y(V,pHb)&&(this.JSC$13488_commentbox.addedAttachment="poll",this.openDialog())};
_.B.onAddVideoLinkAction=function(V){if(_.y(V,smZ))this.JSC$13488_commentbox.onAddVideoLink(V)};
_.B.onShowSchedulingPanelCommand=function(V){(V=_.y(V,eqv))&&this.openSchedulingPanel(V)};
_.B.onCreateImagePollCommand=function(V){_.y(V,F1N)&&(this.JSC$13488_commentbox.openImagePollComponent(),this.openDialog())};
_.B.onCreateQuizCommand=function(V){_.y(V,XqJ)&&(this.JSC$13488_commentbox.openQuizComponent(),this.openDialog())};
_.B.openSchedulingPanel=function(V){_.z("enable_post_scheduling")&&(this.openDialog(),this.JSC$13488_commentbox.openSchedulingPanel(V))};
_.B.onCreateCommentAction=function(V){this.get("createCommentAction.contents",V)&&(this.JSC$13488_commentbox.clear(),this.closeDialog())};
_.B.onOpen=function(V){V instanceof KeyboardEvent&&V.type==="keypress"&&V.keyCode!==13&&V.keyCode!==32||(this.data.prepareAccountEndpoint?_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.B.onYtCommentboxDismiss=function(){this.closeDialog()};
_.B.onYtCommentboxLoadingStart=function(V){V.stopPropagation();this.isCommentboxLoading=!0};
_.B.onYtCommentboxLoadingEnd=function(V){V.stopPropagation();this.isCommentboxLoading=!1};
_.B.onYtVideoLinkButtonCancel=function(V){V.stopPropagation();this.onOpen(V)};
_.B.onYtVideoLinkSelected=function(V){V.stopPropagation();this.onOpen(V)};
_.B.onIronSelect=function(V){V.stopPropagation();V.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=V.detail.item.value&&(this.accessRestriction?(this.accessRestriction=V.detail.item.value,this.onOpen(V)):this.accessRestriction=V.detail.item.value)};
_.B.onYtNavigate=function(V){this.get("detail.endpoint.backstageImageUploadEndpoint",V)&&(this.JSC$13488_commentbox.addedAttachment="image",this.JSC$13488_commentbox.submitButtonDisabled=!0,this.onOpen(V))};
_.B.onRequestSent=function(V){if(_.z("web_button_rework"))for(var l=_.U(V.detail),I=l.next();!I.done;I=l.next())_.y(I.value,DhZ)&&(this.JSC$13488_commentbox.addedAttachment="image",this.JSC$13488_commentbox.submitButtonDisabled=!0,this.onOpen(V))};
_.B.openDialog=function(){this.JSC$13488_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13488_commentbox.focus()};
_.B.onPopupClosed=function(){_.l9.getInstance()};
_.B.computeCreationDisabled=function(V){return!!V};
_.B.computeIsCreationDialog=function(V){return!!V&&V==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.B.computeDisabledPostButton=function(V){if(!V)return null;V.isDisabled=!0;return V};
_.B.computeIsCreationDialogWithHeader=function(V){return!this.inPopupContainer&&!!V&&!!V.authorText&&V.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.B.computeIsHeaderHidden=function(V,l){return!V||l};
_.B.computeDropdownRendererClasses=function(V){return V?["text-secondary-style"]:[]};
_.B.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var V=_.h(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;V&&V.reset()};
var k1=VV0;k1.prototype.onPopupClosed=k1.prototype.onPopupClosed;k1.prototype.onRequestSent=k1.prototype.onRequestSent;k1.prototype.onYtNavigate=k1.prototype.onYtNavigate;k1.prototype.onIronSelect=k1.prototype.onIronSelect;k1.prototype.onYtVideoLinkSelected=k1.prototype.onYtVideoLinkSelected;k1.prototype.onYtVideoLinkButtonCancel=k1.prototype.onYtVideoLinkButtonCancel;k1.prototype.onYtCommentboxLoadingEnd=k1.prototype.onYtCommentboxLoadingEnd;k1.prototype.onYtCommentboxLoadingStart=k1.prototype.onYtCommentboxLoadingStart;
k1.prototype.onYtCommentboxDismiss=k1.prototype.onYtCommentboxDismiss;k1.prototype.showButtonEduTooltip=k1.prototype.showButtonEduTooltip;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],k1.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],k1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],k1.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],k1.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],k1.prototype,"isOpen",void 0);_.O([_.q({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],k1.prototype,"buttonOverride",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],k1.prototype,"modern",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],k1.prototype,"roundedContainer",void 0);_.O([_.q(),_.a("design:type",Object)],k1.prototype,"dropdownButtonOverride",void 0);_.O([_.q({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.a("design:type",Boolean)],k1.prototype,"creationDisabled",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],k1.prototype,"enableCreationBox",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.a("design:type",Boolean)],k1.prototype,"isCreationDialog",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],k1.prototype,"inPopupContainer",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.a("design:type",Boolean)],k1.prototype,"isCreationDialogWithHeader",void 0);_.O([_.q(),_.a("design:type",Object)],k1.prototype,"accessRestriction",void 0);
_.O([_.q({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.a("design:type",Array)],k1.prototype,"dropdownRendererClasses",void 0);_.O([_.q(),_.a("design:type",Object)],k1.prototype,"isCommentboxLoading",void 0);_.O([_.q(),_.a("design:type",Array)],k1.prototype,"attachmentButtonIds",void 0);_.O([_.Ij("#image-button"),_.a("design:type",HTMLElement)],k1.prototype,"imageButton",void 0);
_.O([_.Ij("#image-poll-button"),_.a("design:type",HTMLElement)],k1.prototype,"imagePollButton",void 0);_.O([_.Ij("#quiz-button"),_.a("design:type",HTMLElement)],k1.prototype,"quizButton",void 0);_.O([_.Ij("#commentbox"),_.a("design:type",Object)],k1.prototype,"JSC$13488_commentbox",void 0);_.O([_.b("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],k1.prototype,"showButtonEduTooltip",null);
_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],k1.prototype,"onYtCommentboxDismiss",null);_.O([_.W("yt-commentbox-loading-start"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],k1.prototype,"onYtCommentboxLoadingStart",null);
_.O([_.W("yt-commentbox-loading-end"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],k1.prototype,"onYtCommentboxLoadingEnd",null);_.O([_.W("yt-video-link-button-cancel"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],k1.prototype,"onYtVideoLinkButtonCancel",null);
_.O([_.W("yt-video-link-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],k1.prototype,"onYtVideoLinkSelected",null);_.O([_.W("iron-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],k1.prototype,"onIronSelect",null);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],k1.prototype,"onYtNavigate",null);
_.O([_.W("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],k1.prototype,"onRequestSent",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],k1.prototype,"onPopupClosed",null);k1=_.O([_.A({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],k1);
_.u(k1,"ytd-backstage-post-dialog-renderer",function(){if(qvi!==void 0)return qvi;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return qvi=V},{mode:1});var lMo;var IMJ;var Hyo=function(){return _.M.apply(this,arguments)||this};
_.t(Hyo,_.M);_.B=Hyo.prototype;_.B.computeHeartButtonStyle=function(V){return(V==null?0:V.styleType)?V.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.B.onYtButtonTap=function(){if(this.data.isEnabled){var V=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(V=this.getEndpoint(V))&&_.$B(this.hostElement,[V])}else(V=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(V)};
_.B.toggle=function(V){this.set("data.isHearted",V!==void 0?V:!this.data.isHearted)};
_.B.getEndpoint=function(V){var l,I=(l=this.data)==null?void 0:l.heartEndpoint,H;l=(H=this.data)==null?void 0:H.unheartEndpoint;if(I&&l)return V?l:I};
_.B.computeButtonAccessibility=function(V,l){var I,H,T=V==null?void 0:(I=V.heartedAccessibility)==null?void 0:(H=I.accessibilityData)==null?void 0:H.label,x,n;V=V==null?void 0:(x=V.unheartedAccessibility)==null?void 0:(n=x.accessibilityData)==null?void 0:n.label;return l?T:V};
_.vI.Object.defineProperties(Hyo.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 V;return _.z("kevlar_system_icons")&&!((V=this.data)==null||!V.isHearted)}}});
var F6=Hyo;F6.prototype.onYtButtonTap=F6.prototype.onYtButtonTap;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],F6.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],F6.prototype,"data",void 0);_.O([_.Q("data.isHearted"),_.a("design:type",Object),_.a("design:paramtypes",[])],F6.prototype,"heartTooltip",null);
_.O([_.Q("data.isHearted"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],F6.prototype,"iconFilled",null);_.O([_.q({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.a("design:type",String)],F6.prototype,"buttonAccessibility",void 0);_.O([_.q({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],F6.prototype,"heartButtonStyle",void 0);
_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],F6.prototype,"onYtButtonTap",null);F6=_.O([_.A({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],F6);
_.u(F6,"ytd-creator-heart-renderer",function(){if(IMJ!==void 0)return IMJ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return IMJ=V},{mode:1});var Tfi=function(){var V=_.M.apply(this,arguments)||this;V.hasCreatorReply=!1;V.buttonOverrides={size:"S",iconPosition:"icon-only"};V.replyButtonOverrides={size:"S",type:"text"};V.forceIconButton=!_.z("web_modern_buttons");V.modern=_.z("web_modern_buttons");V.buttonTooltipPosition="bottom";V.systemIcons=_.z("kevlar_system_icons");V.replyDialog=null;return V};
_.t(Tfi,_.M);_.B=Tfi.prototype;
_.B.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]]"}}}}}};
_.B.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.B.dataChange=function(){this.replyDialog&&_.h(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var V,l,I;this.isLiked=this.systemIcons&&!!((V=this.data)==null?0:(l=V.likeButton)==null?0:(I=l.toggleButtonRenderer)==null?0:I.isToggled)};
_.B.computeShowVoteCountBeginning=function(V,l){return V===void 0||l===void 0?!0:V.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!l&&this.ytRendererBehavior.getSimpleString(l)!=="0"};
_.B.computeShowVoteCountEnd=function(V,l){return V===void 0||l===void 0?!0:V.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!l&&this.ytRendererBehavior.getSimpleString(l)!=="0"};
_.B.computeShowCommentCount=function(V,l){return V===void 0||l===void 0?!0:V.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!l&&this.ytRendererBehavior.getSimpleString(l)!=="0"};
_.B.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.B.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.B.showReplyDialog=function(V){V&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.h(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=V,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.B.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.B.onRequestSent=function(V){if(_.z("web_button_rework")){V=_.U(V.detail);for(var l=V.next();!l.done;l=V.next())(l=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",l.value))&&this.showReplyDialog(l)}};
_.B.onYtNavigate=function(V){var l,I;(V=(l=_.y(V.detail.endpoint,_.SMW))==null?void 0:(I=l.dialog)==null?void 0:I.commentReplyDialogRenderer)&&this.showReplyDialog(V)};
_.B.onYtServiceRequestSent=function(V,l){V.stopPropagation();if(l.actions)for(V=0;V<l.actions.length;V++){var I=_.y(l.actions[V],vLW);I&&this.handleUpdateCommentVoteAction(I)}};
_.B.handleUpdateCommentVoteAction=function(V){this.voteCount=V.voteCount||_.pW("0");V.voteStatus==="LIKE"?this.JSC$13499_ytdDislikeToggleButtonRenderer.toggle(!1):V.voteStatus==="DISLIKE"?this.JSC$13499_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13499_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13499_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.B.computeReplyButtonHidden=function(V){return V};
_.B.computeReplyButtonBeginning=function(V){return(V==null?0:V.replyButton)&&V.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?V.replyButton:void 0};
_.B.computeReplyButtonEnd=function(V){return(V==null?0:V.replyButton)&&V.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?V.replyButton:void 0};
_.B.computeActionButtonStyle=function(V){return(V==null?0:V.style)?V.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.B.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.B.onYtToggleButton=function(V){var l,I;this.isLiked=this.systemIcons&&!!((l=V.detail)==null?0:(I=l.actions)==null?0:I.like)};
var X6=Tfi;X6.prototype.onYtToggleButton=X6.prototype.onYtToggleButton;X6.prototype.onButtonTooltipPositionChanged=X6.prototype.onButtonTooltipPositionChanged;X6.prototype.onYtServiceRequestSent=X6.prototype.onYtServiceRequestSent;X6.prototype.onYtNavigate=X6.prototype.onYtNavigate;X6.prototype.onRequestSent=X6.prototype.onRequestSent;X6.prototype.onYtCommentboxDismiss=X6.prototype.onYtCommentboxDismiss;X6.prototype.dataChange=X6.prototype.dataChange;
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],X6.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],X6.prototype,"voteCount",void 0);_.O([_.q(),_.a("design:type",Object)],X6.prototype,"commentCount",void 0);_.O([_.q(),_.a("design:type",Object)],X6.prototype,"replyThumbnail",void 0);
_.O([_.q(),_.a("design:type",Object)],X6.prototype,"hasCreatorReply",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],X6.prototype,"enableCreationBox",void 0);_.O([_.q({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],X6.prototype,"actionButtonsStyle",void 0);_.O([_.q({computed:"computeReplyButtonBeginning(data)"}),_.a("design:type",Object)],X6.prototype,"replyButtonBeginning",void 0);
_.O([_.q({computed:"computeReplyButtonEnd(data)"}),_.a("design:type",Object)],X6.prototype,"replyButtonEnd",void 0);_.O([_.q(),_.a("design:type",Object)],X6.prototype,"buttonOverrides",void 0);_.O([_.q(),_.a("design:type",Object)],X6.prototype,"replyButtonOverrides",void 0);_.O([_.q(),_.a("design:type",Object)],X6.prototype,"forceIconButton",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],X6.prototype,"useCommentIcon",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],X6.prototype,"modern",void 0);_.O([_.q(),_.a("design:type",Object)],X6.prototype,"buttonTooltipPosition",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],X6.prototype,"systemIcons",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],X6.prototype,"isLiked",void 0);_.O([_.Ij("ytd-button-renderer"),_.a("design:type",Object)],X6.prototype,"ytdReplyButtonRenderer",void 0);
_.O([_.Ij("#like-button"),_.a("design:type",Object)],X6.prototype,"JSC$13499_ytdLikeToggleButtonRenderer",void 0);_.O([_.Ij("#dislike-button"),_.a("design:type",Object)],X6.prototype,"JSC$13499_ytdDislikeToggleButtonRenderer",void 0);_.O([_.Ij("#reply-dialog"),_.a("design:type",HTMLElement)],X6.prototype,"replyDialogElement",void 0);_.O([_.Ij("#reply-button"),_.a("design:type",HTMLElement)],X6.prototype,"replyButtonElement",void 0);
_.O([_.Ij("#reply-button-end"),_.a("design:type",HTMLElement)],X6.prototype,"replyButtonEndElement",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X6.prototype,"dataChange",null);_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],X6.prototype,"onYtCommentboxDismiss",null);
_.O([_.W("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],X6.prototype,"onRequestSent",null);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],X6.prototype,"onYtNavigate",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],X6.prototype,"onYtServiceRequestSent",null);_.O([_.b("buttonTooltipPosition"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X6.prototype,"onButtonTooltipPositionChanged",null);_.O([_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],X6.prototype,"onYtToggleButton",null);
X6=_.O([_.A({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],X6);
_.u(X6,"ytd-comment-action-buttons-renderer",function(){if(lMo!==void 0)return lMo;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return lMo=V},{mode:1});var BfJ;var x1o=function(){return _.M.apply(this,arguments)||this};
_.t(x1o,_.M);x1o.prototype.focus=function(){_.h(this.hostElement).querySelector("#commentbox").focus()};
var zc=x1o;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zc.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],zc.prototype,"zeroStepChannelCreationRenderer",void 0);zc=_.O([_.A({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],zc);
_.u(zc,"ytd-comment-dialog-renderer",function(){if(BfJ!==void 0)return BfJ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return BfJ=V},{mode:1});var U1N;var n8J=function(){return _.M.apply(this,arguments)||this};
_.t(n8J,_.M);var ye=n8J;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ye.prototype,"data",void 0);ye=_.O([_.A({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],ye);
_.u(ye,"ytd-comment-inline-thumbnail-renderer",function(){if(U1N!==void 0)return U1N;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return U1N=V},{mode:1});var $1i;var d1J;var wtE=function(){var V=_.M.apply(this,arguments)||this;V.isOpen=!1;return V};
_.t(wtE,_.M);_.B=wtE.prototype;_.B.dataChanged=function(){this.isOpen=!1};
_.B.onTap=function(){this.data&&(this.data.navigationEndpoint?_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.B.focus=function(){this.JSC$13509_commentbox.focus()};
_.B.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.B.openDialog=function(){this.isOpen=!0;this.JSC$13509_commentbox.focus();this.JSC$13509_commentbox.maybeHeightChanged()};
var tL=wtE;tL.prototype.onYtCommentboxDismiss=tL.prototype.onYtCommentboxDismiss;tL.prototype.dataChanged=tL.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tL.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],tL.prototype,"isOpen",void 0);_.O([_.Ij("#commentbox"),_.a("design:type",Object)],tL.prototype,"JSC$13509_commentbox",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tL.prototype,"dataChanged",null);_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],tL.prototype,"onYtCommentboxDismiss",null);tL=_.O([_.A({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],tL);
_.u(tL,"ytd-comment-reply-dialog-renderer",function(){if(d1J!==void 0)return d1J;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return d1J=V},{mode:1});var NfB;var KDv=function(){return _.M.apply(this,arguments)||this};
_.t(KDv,_.M);_.vI.Object.defineProperties(KDv.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(V=this.data)==null?void 0:(l=V.icon)==null?void 0:l.iconType;return I?"yt-icons:"+I.toLowerCase():null}}});
var rA=KDv;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],rA.prototype,"data",void 0);_.O([_.q(),_.Q("data.icon"),_.a("design:type",Object),_.a("design:paramtypes",[])],rA.prototype,"icon",null);rA=_.O([_.A({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],rA);
_.u(rA,"ytd-pinned-comment-badge-renderer",function(){if(NfB!==void 0)return NfB;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return NfB=V},{mode:1});var jPi;var YQa={},LDw={input:!0,meta:!0,br:!0,link:!0,img:!0},Gc=null;YQa.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(){Gc==null&&(Gc=document.createElement("tp-yt-paper-tooltip"),Gc.offset=8,Gc.fitToVisibleBounds=!0)},
onMouseOver_:function(V){if(V=_.Rg(V.target,function(T){return T==this||T.getAttribute&&T.getAttribute("shared-tooltip-text")}.bind(this),!0)){var l=V.getAttribute("shared-tooltip-text");
if(l){var I=this,H=null;V!=this&&(V.tagName.toLowerCase()in LDw?I=V.parentElement:I=V,V.id&&(H=V.id));this.polymerController.createTooltipIfRequired_();if(Gc.parentElement!=I||Gc.for!=H)(0,_.mL)(Gc).textContent=l,_.h(I).appendChild(Gc),Gc.for=H,Gc.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Gc.position=this.polymerController.sharedTooltipPosition}}}};var Es=function(){return _.M.apply(this,arguments)||this};
_.t(Es,_.M);Es.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]]"}}}}}};
Es.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
Es.prototype.colorChanged=function(){var V,l,I,H=(V=this.data)==null?void 0:(l=V.color)==null?void 0:(I=l.basicColorPaletteData)==null?void 0:I.foregroundBodyColor;H&&(this.rgbBadgeColor=_.tv(H));_.h(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Es.prototype.tooltipChanged=function(){var V;((V=this.data)==null?0:V.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
var JL=Es;JL.prototype.tooltipChanged=JL.prototype.tooltipChanged;JL.prototype.colorChanged=JL.prototype.colorChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(YQa.YtSharedTooltipBehavior),_.a("design:type",Object)],JL.prototype,"ytSharedTooltipBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],JL.prototype,"data",void 0);_.O([_.q({value:"#4285F4"}),_.a("design:type",String)],JL.prototype,"rgbBadgeColor",void 0);_.O([_.b("data.color"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JL.prototype,"colorChanged",null);_.O([_.b("data.tooltip"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JL.prototype,"tooltipChanged",null);
JL=_.O([_.A({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],JL);
_.u(JL,"ytd-sponsor-comment-badge-renderer",function(){if(jPi!==void 0)return jPi;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return jPi=V},{mode:1});var e_N;var kJN;var oL=function(){var V=_.M.apply(this,arguments)||this;V.defaultIconToFilled=!_.z("kevlar_fill_comment_chip_icon_killswitch");return V};
_.t(oL,_.M);oL.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
oL.prototype.dataChanged=function(){if(this.data){var V,l;((V=this.data.chipColorPalette)==null?0:V.backgroundColor)&&((l=this.data.chipColorPalette)==null?0:l.foregroundTitleColor)&&_.i3(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.rP(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.rP(this.data.chipColorPalette.foregroundTitleColor)});var I;((I=this.data)==null?0:I.command)?(_.i3(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.i3(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}};
oL.prototype.onTap=function(){var V;if(this.data&&(V=this.data)!=null&&V.command){var l;this.ytComponentBehavior.resolveCommand((l=this.data)==null?void 0:l.command)}};
oL.prototype.getIconSize=function(){return _.z("kevlar_fill_comment_chip_icon_killswitch")?24:12};
var hL=oL;hL.prototype.onTap=hL.prototype.onTap;hL.prototype.dataChanged=hL.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],hL.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.yn),_.a("design:type",Object)],hL.prototype,"ironA11yKeysBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],hL.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],hL.prototype,"basePriceText",void 0);_.O([_.q(),_.a("design:type",Object)],hL.prototype,"chipIcon",void 0);_.O([_.q(),_.a("design:type",Object)],hL.prototype,"defaultIconToFilled",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hL.prototype,"dataChanged",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hL.prototype,"onTap",null);
hL=_.O([_.Lm({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],hL);
_.u(hL,"yt-pdg-comment-chip-renderer",function(){if(kJN===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;e_N===void 0&&(e_N=document.createElement("template"));var H=e_N;I.call(l,H.content.cloneNode(!0),V.content.firstChild);kJN=V}V=kJN;return V},{mode:2});var FDE=function(){var V=_.M.apply(this,arguments)||this;V.isReply=!1;V.isCreatorReply=!1;V.useSmallAvatarsEngagementPanelOnly=_.z("small_avatars_for_comments_ep");V.useSmallAvatars=_.z("small_avatars_for_comments");V.editDialog=null;V.hasPendingRequest=!1;V.linkedBadgeEl=null;V.shouldShowReadMoreInitially=!1;V.JSC$13529_spinnerEl=null;V.attachedResolver=_.QN();return V};
_.t(FDE,_.M);_.B=FDE.prototype;
_.B.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.pinnedCommentBadge":{id:"pinned-comment-badge",mapping:{pinnedCommentBadgeRenderer:"ytd-pinned-comment-badge-renderer"}},"data.sponsorCommentBadge":{id:"sponsor-comment-badge",mapping:{sponsorCommentBadgeRenderer:"ytd-sponsor-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",
mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer",commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.B.contentTextChanged=function(){var V;(V=this.expander)==null||V.reset()};
_.B.attached=function(){this.attachedResolver.resolve()};
_.B.detached=function(){this.editDialog=null};
_.B.dataChanged=function(){if(this.data&&(this.hasPendingRequest=!1,this.editDialog=null,this.linkedBadgeEl&&(this.linkedCommentBadge.removeChild(this.linkedBadgeEl),this.linkedBadgeEl=null),this.data.hiddenByDefault&&(this.hostElement.hidden=!0),this.data.actions))for(var V=0,l=this.data.actions.length;V<l;V++)this.openEditDialog(_.y(this.data.actions[V],utJ))};
_.B.hasPendingRequestChanged=function(){!this.hasPendingRequest||this.editDialog||this.JSC$13529_spinnerEl||(this.JSC$13529_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.h(this.hostElement).appendChild(this.JSC$13529_spinnerEl));this.JSC$13529_spinnerEl&&(this.JSC$13529_spinnerEl.active=this.hasPendingRequest)};
_.B.backgroundExtendedDetailsChanged=function(){var V,l;((V=this.data)==null?0:(l=V.backgroundExtendedDetails)==null?0:l.backgroundColorArgb)?(V={"--ytd-comment-paid-background-color":_.rP(this.data.backgroundExtendedDetails.backgroundColorArgb),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"},_.i3(this.hostElement,V)):_.i3(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.B.linkedCommentBadgeChanged=function(){var V=this,l;if((l=this.data)!=null&&l.linkedCommentBadge){this.linkedBadgeEl||(this.linkedBadgeEl=document.createElement("ytd-badge-supported-renderer"));this.linkedBadgeEl.topStandaloneBadge=this.data.linkedCommentBadge;this.linkedCommentBadge.appendChild(this.linkedBadgeEl);if(!_.z("disable_pause_on_linked_comment_nav"))try{var I=_.u8();I&&I.pause()}catch(H){}this.attachedResolver.promise.then(this.afterNextRender).then(function(){var H,T=(H=_.F().resolve(_.Cs(_.pa)))==
null?void 0:H.getCurrentPage();T&&T.getScrollTop()===0&&T.setScrollTop(V.hostElement.offsetTop+V.hostElement.offsetHeight-document.documentElement.clientHeight+32)})}};
_.B.onShow=function(){_.S1("cmv",void 0,"wn_comments")};
_.B.onYtNavigate=function(V){V=V.detail.endpoint;this.openEditDialog(_.y(V,_.Rio)||_.y(V,_.QR3))};
_.B.onYtCommentboxDismiss=function(){this.editDialog=null;_.i3(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.B.onYtCommentboxResize=function(V){var l;(V==null?0:(l=V.detail)==null?0:l.height)&&_.i3(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":V.detail.height+"px"})};
_.B.onYtServiceRequestSent=function(V,l){V.stopPropagation();V=l==null?void 0:l.endpoint;l=_.z("enable_profile_cards_on_comments")&&(_.y(V,wVw)||_.y(V,Jta)||_.y(V,gDZ)||_.y(V,_.Pq)||_.y(V,_.Ex));if(_.y(V,TtB)||l)this.hasPendingRequest=!1;else{var I;if(_.y(V,Hnb)||_.y(V,TFb)||(I=_.y(V,cq))==null||!I.clientActions||_.y(V,HHE))this.hasPendingRequest=!0}};
_.B.onAuthorThumbnailClicked=function(){var V=this;if(_.z("enable_profile_cards_on_comments")){var l;(l=this.data)!=null&&l.authorEndpoint&&this.componentBehavior.resolveCommand(this.data.authorEndpoint,{commandController:{onSuccess:function(I,H){V.onAuthorEndpointSuccess(H)},
onServerError:function(I,H){_.hF(new _.Yd("Failed to resolve the command",H))}}})}};
_.B.onAuthorEndpointSuccess=function(V){if(V=V==null?void 0:V.popupCommand){this.componentBehavior.resolveCommand(V,{form:{element:this.authorThumbnail}});this.logScreenVe();V=V==null?void 0:V.clickTrackingParams;var l=_.JO();V&&l&&_.x7().graftServerVe(V,l)}};
_.B.logScreenVe=function(){_.xg(_.x7(),66557)};
_.B.onYtServiceRequestCompleted=function(){this.hasPendingRequest=!1};
_.B.openEditDialog=function(V){this.data&&V&&V.dialog&&(this.editDialog=V.dialog,this.JSC$13529_editReplyDialogContainer?this.JSC$13529_editReplyDialogContainer.openDialog():this.JSC$13529_editCommentDialogContainer&&this.JSC$13529_editCommentDialogContainer.focus())};
_.B.computeAuthorTextClass=function(V){return V.authorIsChannelOwner?"channel-owner":""};
_.B.computeIsBodyHidden=function(V,l){return!!V||l};
_.B.computeCommentStyle=function(V){return V.style?V.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.B.onYtExpanderMoreTapped=function(){var V,l,I=(V=this.data)==null?void 0:(l=V.expandButton)==null?void 0:l.buttonRenderer;I&&this.ytRendererBehavior.logExplicitClick(I)};
_.B.afterNextRender=function(){var V=this;return new Promise(function(l){_.Al(V,l)})};
_.vI.Object.defineProperties(FDE.prototype,{optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.z("web_watch_compact_comments")||_.z("optimal_reading_width_comments_ep")&&this.engagementPanel}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.voteCount)||_.pW("0")}},
replyThumbnail:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.currentUserReplyThumbnail}},
hasCreatorReply:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return!!(((V=this.data)==null?0:(l=V.creatorReply)==null?0:l.commentRenderer)||((I=this.data)==null?0:I.containsCreatorReply))}},
authorTextCommand:{configurable:!0,enumerable:!0,get:function(){var V;if(_.z("enable_profile_cards_on_comments")&&((V=this.data)==null?0:V.channelPageEndpoint)){var l;return(l=this.data)==null?void 0:l.channelPageEndpoint}var I;return(I=this.data)==null?void 0:I.authorEndpoint}},
hidePaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null?0:V.paidCommentChipRenderer)}}});
var Ps=FDE;Ps.prototype.onYtExpanderMoreTapped=Ps.prototype.onYtExpanderMoreTapped;Ps.prototype.onYtServiceRequestCompleted=Ps.prototype.onYtServiceRequestCompleted;Ps.prototype.onYtServiceRequestSent=Ps.prototype.onYtServiceRequestSent;Ps.prototype.onYtCommentboxResize=Ps.prototype.onYtCommentboxResize;Ps.prototype.onYtCommentboxDismiss=Ps.prototype.onYtCommentboxDismiss;Ps.prototype.onYtNavigate=Ps.prototype.onYtNavigate;Ps.prototype.linkedCommentBadgeChanged=Ps.prototype.linkedCommentBadgeChanged;
Ps.prototype.backgroundExtendedDetailsChanged=Ps.prototype.backgroundExtendedDetailsChanged;Ps.prototype.hasPendingRequestChanged=Ps.prototype.hasPendingRequestChanged;Ps.prototype.dataChanged=Ps.prototype.dataChanged;Ps.prototype.contentTextChanged=Ps.prototype.contentTextChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Ps.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Ps.prototype,"componentBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.RU.YtVisibilityBehavior),_.a("design:type",Object)],Ps.prototype,"ytVisibilityBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ps.prototype,"data",void 0);_.O([_.q({computed:"computeCommentStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],Ps.prototype,"commentStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ps.prototype,"isReply",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ps.prototype,"isCreatorReply",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ps.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ps.prototype,"useSmallAvatars",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Ps.prototype,"engagementPanel",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data","engagementPanel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Ps.prototype,"optimalReadingWidthComments",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ps.prototype,"voteCount",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ps.prototype,"replyThumbnail",null);_.O([_.q(),_.a("design:type",Object)],Ps.prototype,"editDialog",void 0);
_.O([_.Q("data","data.containsCreatorReply"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Ps.prototype,"hasCreatorReply",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ps.prototype,"authorTextCommand",null);_.O([_.q(),_.a("design:type",Object)],Ps.prototype,"hasPendingRequest",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Ps.prototype,"noActions",void 0);_.O([_.q(),_.a("design:type",Object)],Ps.prototype,"linkedBadgeEl",void 0);
_.O([_.q(),_.a("design:type",Object)],Ps.prototype,"shouldShowReadMoreInitially",void 0);_.O([_.Ij("ytd-expander"),_.a("design:type",Object)],Ps.prototype,"expander",void 0);_.O([_.Ij("#linked-comment-badge"),_.a("design:type",HTMLElement)],Ps.prototype,"linkedCommentBadge",void 0);_.O([_.Ij("#body"),_.a("design:type",HTMLElement)],Ps.prototype,"body",void 0);_.O([_.Ij("#author-thumbnail > a"),_.a("design:type",HTMLElement)],Ps.prototype,"authorThumbnail",void 0);
_.O([_.Ij("ytd-comment-dialog-renderer"),_.a("design:type",Object)],Ps.prototype,"JSC$13529_editCommentDialogContainer",void 0);_.O([_.Ij("ytd-comment-reply-dialog-renderer"),_.a("design:type",Object)],Ps.prototype,"JSC$13529_editReplyDialogContainer",void 0);_.O([_.b("data.contentText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ps.prototype,"contentTextChanged",null);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ps.prototype,"dataChanged",null);_.O([_.b("hasPendingRequest"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ps.prototype,"hasPendingRequestChanged",null);_.O([_.b("data.backgroundExtendedDetails"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ps.prototype,"backgroundExtendedDetailsChanged",null);
_.O([_.b("data.linkedCommentBadge"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ps.prototype,"linkedCommentBadgeChanged",null);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ps.prototype,"onYtNavigate",null);_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ps.prototype,"onYtCommentboxDismiss",null);
_.O([_.W("yt-commentbox-resize"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ps.prototype,"onYtCommentboxResize",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],Ps.prototype,"onYtServiceRequestSent",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Ps.prototype,"hidePaidCommentChipRenderer",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ps.prototype,"onYtServiceRequestCompleted",null);_.O([_.W("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ps.prototype,"onYtExpanderMoreTapped",null);Ps=_.O([_.A({is:"ytd-comment-renderer",disableElementRegistration:!0})],Ps);
_.u(Ps,"ytd-comment-renderer",function(){if($1i!==void 0)return $1i;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-renderer"></div>\n<div id="linked-comment-badge" hidden="[[!data.linkedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-comment-renderer">\n  <div id="author-thumbnail" class="style-scope ytd-comment-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" on-click="onAuthorThumbnailClicked" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-comment-renderer">\n    <div id="header" class="style-scope ytd-comment-renderer">\n      <div id="pinned-comment-badge" hidden="[[!data.pinnedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n      <div id="header-author" class="style-scope ytd-comment-renderer">\n        <h3 class="style-scope ytd-comment-renderer">\n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(authorTextCommand)]]" data="[[authorTextCommand]]" hidden="[[data.authorCommentBadge]]">\n            <yt-formatted-string class$="[[computeAuthorTextClass(data)]] style-scope ytd-comment-renderer" respect-lang-dir="" text="[[data.authorText]]">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <span id="sponsor-comment-badge" hidden="[[!data.sponsorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <yt-formatted-string class="published-time-text style-scope ytd-comment-renderer" link-inherit-color="" text="[[data.publishedTimeText]]">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-comment-renderer"></span>\n      </div>\n    </div>\n    <div id="comment-content" class="style-scope ytd-comment-renderer">\n      \n      <ytd-comment-inline-thumbnail-renderer id="inline-thumbnail-renderer" data="[[data.videoThumbnail.commentVideoThumbnailRenderer]]" hidden="[[!data.videoThumbnail]]" class="style-scope ytd-comment-renderer">\n      </ytd-comment-inline-thumbnail-renderer>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-renderer">\n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[data.paidCommentChipRenderer.pdgCommentChipRenderer]]" hidden="[[hidePaidCommentChipRenderer]]" class="style-scope ytd-comment-renderer">\n      </yt-pdg-comment-chip-renderer>\n      <yt-formatted-string id="content-text" slot="content" split-lines="" text="[[data.contentText]]" user-input="" class="style-scope ytd-comment-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-comment-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-comment-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n  </div>\n    <ytd-comment-action-buttons-renderer id="action-buttons" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" reply-thumbnail="[[replyThumbnail]]" vote-count="[[voteCount]]" class="style-scope ytd-comment-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n  <div id="action-menu" class="style-scope ytd-comment-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-renderer"></div>\n\n');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return $1i=V},{mode:1});var Xto=function(){var V=_.M.apply(this,arguments)||this;V.hasSpam=!1;V.showButton=!0;V.actionMap={"yt-approve-comment-action":"approveCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-load-next-continuation":"onLoadNextContinuation"};V.nextContinuation={contentsArray:"data.contents",continuationType:"commentModerationPanelContinuation",requestPath:"/comment_service_ajax?action_get_comment_replies=1&pbj=1",
usePost:!0};return V};
_.t(Xto,_.M);_.B=Xto.prototype;_.B.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}}},"data.contents":{id:"held-comments",mapping:{commentRenderer:{component:"ytd-comment-renderer"}}},"data.likelySpamContents":{id:"likely-spam-comments",mapping:{commentRenderer:{component:"ytd-comment-renderer"}}}}};
_.B.ready=function(){var V=this,l=_.h(this.hostElement).querySelector("#moderation-contents");l&&l.addEventListener("scroll",function(){V.onPanelScroll()})};
_.B.dataChanged=function(){this.expander.collapsed=!0};
_.B.computeSettingsButton=function(V){var l,I,H;return(H=V==null?void 0:(l=V.expander)==null?void 0:(I=l.commentModerationPanelExpanderRenderer)==null?void 0:I.settingsButton)==null?void 0:H.buttonRenderer};
_.B.onPanelScroll=function(){var V=this;_.Go(this,"onPanelScroll",function(){var l=_.h(V.hostElement).querySelector("#moderation-contents");if(l){l=l.scrollTop===0;var I,H;_.fY((H=(I=V.expander.children[1])==null?void 0:I.offsetParent)!=null?H:V.hostElement,"scrolling",l)}},50)};
_.B.onNextContinuationDataUpdated=function(V,l){V=l.continuationData.response;var I,H;if(!((I=V.continuationContents)==null?0:(H=I.commentModerationPanelContinuation)==null?0:H.contents)){var T,x;if((T=V.continuationContents)==null?0:(x=T.commentModerationPanelContinuation)==null?0:x.likelySpamContents){var n;this.data.spamHeaderText=(n=V.continuationContents)==null?void 0:n.commentModerationPanelContinuation.spamHeaderText;var w;this.set("data.likelySpamContents",(w=V.continuationContents)==null?
void 0:w.commentModerationPanelContinuation.likelySpamContents);this.nextContinuation={contentsArray:"data.likelySpamContents",continuationType:"commentModerationPanelContinuation",responseContentsKey:"likelySpamContents",usePost:!0};this.hasSpam=!0}}};
_.B.computeHasContinuation=function(V){return!!V};
_.B.hideSpamDivider=function(V){return!V||V&&this.data.contents.length===0};
_.B.computeSpamHeaderText=function(V,l){return V?l:_.pW("")};
_.B.triggerContinuation=function(){this.hostElement.querySelector("yt-next-continuation").trigger();this.showButton=!1};
_.B.approveCommentAction=function(V){(V=this.get("approveCommentAction.commentId",V))&&this.removeComment(V)};
_.B.banAuthorAction=function(V){(V=this.get("banAuthorAction.commentId",V))&&this.removeComment(V)};
_.B.removeCommentAction=function(V){(V=this.get("removeCommentAction.commentId",V))&&this.removeComment(V)};
_.B.hideReportedCommentAction=function(V){(V=this.get("hideReportedCommentAction.commentId",V))&&this.removeComment(V)};
_.B.removeComment=function(V){var l=this.commentIdToHeldCommentsIndex(V);V=this.commentIdToLikelySpamCommentsIndex(V);l>=0?this.splice("data.contents",l,1):V>=0&&this.splice("data.likelySpamContents",V,1);this.data.contents&&this.data.contents.length!==0||this.data.likelySpamContents&&this.data.likelySpamContents.length!==0||_.B$(this.hostElement,"ytd-comment-moderation-panel-empty")};
_.B.commentIdToHeldCommentsIndex=function(V){var l;if((l=this.data)==null||!l.contents)return-1;for(l=0;l<this.data.contents.length;l++)if(this.data.contents[l].commentRenderer.commentId===V)return l;return-1};
_.B.commentIdToLikelySpamCommentsIndex=function(V){var l;if((l=this.data)==null||!l.likelySpamContents)return-1;for(l=0;l<this.data.likelySpamContents.length;l++)if(this.data.likelySpamContents[l].commentRenderer.commentId===V)return l;return-1};
var DQ=Xto;DQ.prototype.onNextContinuationDataUpdated=DQ.prototype.onNextContinuationDataUpdated;DQ.prototype.dataChanged=DQ.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],DQ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Vi.YtNextContinuationBehavior),_.a("design:type",Object)],DQ.prototype,"ytNextContinuationBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],DQ.prototype,"data",void 0);_.O([_.q({computed:"computeSettingsButton(data)"}),_.a("design:type",Object)],DQ.prototype,"settingsButton",void 0);_.O([_.q(),_.a("design:type",Object)],DQ.prototype,"hasSpam",void 0);_.O([_.q({computed:"computeHasContinuation(data.continuations)"}),_.a("design:type",Boolean)],DQ.prototype,"hasContinuation",void 0);
_.O([_.q(),_.a("design:type",Object)],DQ.prototype,"showButton",void 0);_.O([_.Ij("#expander"),_.a("design:type",Object)],DQ.prototype,"expander",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DQ.prototype,"dataChanged",null);_.O([_.W("yt-next-continuation-data-updated"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],DQ.prototype,"onNextContinuationDataUpdated",null);
DQ=_.O([_.A({is:"ytd-comment-moderation-panel-renderer",disableElementRegistration:!0})],DQ);
_.u(DQ,"ytd-comment-moderation-panel-renderer",function(){if(b_i!==void 0)return b_i;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-moderation-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-expander id="expander" align-auto="" always-toggleable="" collapsed-height="0" reversed="" class="style-scope ytd-comment-moderation-panel-renderer">\n  <div class="more-button style-scope ytd-comment-moderation-panel-renderer" slot="more-button" on-click="triggerContinuation">\n    <span class="expander-text style-scope ytd-comment-moderation-panel-renderer">\n      [[getSimpleString(data.expander.commentModerationPanelExpanderRenderer.text)]]\n    </span>\n    <div class="icons style-scope ytd-comment-moderation-panel-renderer">\n      <ytd-button-renderer class="settings-button style-scope ytd-comment-moderation-panel-renderer" data="[[settingsButton]]">\n      </ytd-button-renderer>\n      <yt-icon id="expander-icon" icon="yt-icons:expand-more" class="style-scope ytd-comment-moderation-panel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div class="less-button style-scope ytd-comment-moderation-panel-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-comment-moderation-panel-renderer">\n      [[getSimpleString(data.expander.commentModerationPanelExpanderRenderer.text)]]\n    </span>\n    <div class="icons style-scope ytd-comment-moderation-panel-renderer">\n      <ytd-button-renderer class="settings-button style-scope ytd-comment-moderation-panel-renderer" data="[[settingsButton]]">\n      </ytd-button-renderer>\n      <yt-icon id="expander-icon" icon="yt-icons:expand-less" class="style-scope ytd-comment-moderation-panel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="moderation-contents" slot="content" class="style-scope ytd-comment-moderation-panel-renderer">\n    <div id="held-comments" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <div id="likely-spam-divider" hidden="[[hideSpamDivider(hasSpam)]]" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <yt-formatted-string id="likely-spam-header" text="[[computeSpamHeaderText(data.likelySpamContents, data.spamHeaderText)]]" class="style-scope ytd-comment-moderation-panel-renderer">\n    </yt-formatted-string>\n    <div id="likely-spam-comments" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <div id="continuation" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n  </div>\n</ytd-expander>\n');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return b_i=V},{mode:1});_.yN("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var z_Z=function(){var V=_.M.apply(this,arguments)||this;V.roundedContainer=!0;V.JSC$13552_handleOpenPostCommentDialogActionAfterStamp=!1;V.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return V};
_.t(z_Z,_.M);_.B=z_Z.prototype;
_.B.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.moderationPanel":{id:"moderation-panel",mapping:{commentModerationPanelRenderer:"ytd-comment-moderation-panel-renderer"}},"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.B.onStampFinished=function(){this.JSC$13552_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.B.handleSignalActionOpenPostCommentDialogAction=function(){var V=_.h(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");V?V.openDialog():this.JSC$13552_handleOpenPostCommentDialogActionAfterStamp=!0};
_.B.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.B.computeHideBorder=function(){return this.isInEngagementPanel};
_.B.computeIsCompact=function(){return this.isInEngagementPanel};
_.B.computeUsesCompactLockup=function(V){return V==="BACKSTAGE_SURFACE_TYPE_HOME"||V==="BACKSTAGE_SURFACE_TYPE_SEARCH"||V==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||V==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||V==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||V==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.B.computeUsesFullLockup=function(){var V,l=(V=this.data)==null?void 0:V.post,I;V=(I=_.y(l,XHN))==null?void 0:I.surface;var H;I=(H=_.y(l,ymN))==null?void 0:H.originalPost;var T;if(H=V||((T=_.y(I,XHN))==null?void 0:T.surface))return!this.computeUsesCompactLockup(H)&&this.useUpdatedRepostUi;var x;return((x=_.y(l,ymN))==null?void 0:x.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.vI.Object.defineProperties(z_Z.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var V,l;return((l=_.y((V=this.data)==null?void 0:V.post,XHN))==null?void 0:l.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.useUpdatedRepostUi}}});
var ZQ=z_Z;ZQ.prototype.onYtCommentModerationPanelEmpty=ZQ.prototype.onYtCommentModerationPanelEmpty;ZQ.prototype.onStampFinished=ZQ.prototype.onStampFinished;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ZQ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],ZQ.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ZQ.prototype,"roundedContainer",void 0);_.O([_.q({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.a("design:type",Boolean)],ZQ.prototype,"hideBorder",void 0);_.O([_.q({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.a("design:type",Boolean)],ZQ.prototype,"isCompact",void 0);
_.O([_.q({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.a("design:type",Boolean)],ZQ.prototype,"usesFullLockup",void 0);_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZQ.prototype,"onStampFinished",null);
_.O([_.W("ytd-comment-moderation-panel-empty"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ZQ.prototype,"onYtCommentModerationPanelEmpty",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ZQ.prototype,"isInEngagementPanel",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ZQ.prototype,"useUpdatedRepostUi",null);
ZQ=_.O([_.A({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],ZQ);
_.u(ZQ,"ytd-backstage-post-thread-renderer",function(){if(WT0!==void 0)return WT0;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return WT0=V},{mode:1});var yRv;var SC=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(SC,_.M);SC.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
SC.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var V=this.data.thumbnail.thumbnails;this.isDarkTheme&&(V=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(V=_.sI(V,24,void 0,"height"))?V:void 0}};
SC.prototype.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
SC.prototype.computeHasText=function(){var V;return!((V=this.data)==null||!V.text)};
_.vI.Object.defineProperties(SC.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.S6(this.bannerImageUrl))+'");'}}});
var RL=SC;RL.prototype.computeHasText=RL.prototype.computeHasText;RL.prototype.computeBannerImageUrl=RL.prototype.computeBannerImageUrl;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],RL.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],RL.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],RL.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],RL.prototype,"isDarkTheme",void 0);_.O([_.q(),_.a("design:type",String)],RL.prototype,"bannerImageUrl",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.a("design:type",Boolean)],RL.prototype,"hasText",void 0);_.O([_.b("data","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],RL.prototype,"computeBannerImageUrl",null);
_.O([_.b("data.text"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],RL.prototype,"computeHasText",null);_.O([_.Q("bannerImageUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],RL.prototype,"bannerStyle",null);RL=_.O([_.A({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],RL);
_.u(RL,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(yRv!==void 0)return yRv;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return yRv=V},{mode:1});var tV3;var rRB=function(){return _.M.apply(this,arguments)||this};
_.t(rRB,_.M);var Qe=rRB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Qe.prototype,"data",void 0);Qe=_.O([_.A({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Qe);
_.u(Qe,"ytd-backstage-zero-state-renderer",function(){if(tV3!==void 0)return tV3;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return tV3=V},{mode:1});var GJN;var E8E=function(){return _.M.apply(this,arguments)||this};
_.t(E8E,_.M);var cs=E8E;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],cs.prototype,"data",void 0);_.O([_.q({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],cs.prototype,"icon",void 0);cs=_.O([_.A({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],cs);
_.u(cs,"ytd-post-filter-zero-state-renderer",function(){if(GJN!==void 0)return GJN;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return GJN=V},{mode:1});var JRv;var o8Z={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},h_Z=function(){return _.M.apply(this,arguments)||this};
_.t(h_Z,_.M);h_Z.prototype.configureRendererStamper=function(){return o8Z};
var Ws=h_Z;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Ws.prototype,"rendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ws.prototype,"data",void 0);_.O([_.q({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],Ws.prototype,"icon",void 0);Ws=_.O([_.A({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Ws);
_.u(Ws,"ytd-post-scheduling-zero-state-renderer",function(){if(JRv!==void 0)return JRv;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return JRv=V},{mode:1});var Ps3;var bT=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return V};
_.t(bT,_.M);bT.prototype.onTabsActivate=function(V){this.data&&this.data.tabs&&_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[V.detail.selected].navigationEndpoint})};
bT.prototype.shouldShowTotalCount=function(V){return V&&V.totalCount!==void 0};
bT.prototype.handleUpdatePostsTotalCountAction=function(V){var l=this.get(["data.tabs",1,"totalCount"]),I=this.get("updatePostsTotalCountAction.updateType",V);V=this.get("updatePostsTotalCountAction.number",V);l!==void 0&&I!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&V&&(I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(l)+V):I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(l)-V))};
_.vI.Object.defineProperties(bT.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var V=0,l=this.data.tabs.length;V<l;V++)if(this.data.tabs[V].selected)return V;return 0}}});
var qk=bT;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],qk.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],qk.prototype,"rendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],qk.prototype,"data",void 0);_.O([_.Q("data.tabs"),_.a("design:type",Number),_.a("design:paramtypes",[])],qk.prototype,"selected",null);qk=_.O([_.A({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],qk);
_.u(qk,"ytd-post-stream-filter-renderer",function(){if(Ps3!==void 0)return Ps3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Ps3=V},{mode:1});var D1Z;var ZyW=function(){return _.M.apply(this,arguments)||this};
_.t(ZyW,_.M);var Mk=ZyW;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Mk.prototype,"kevlarBehaviors",void 0);_.O([_.q(),_.a("design:type",Object)],Mk.prototype,"data",void 0);Mk=_.O([_.A({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Mk);
_.u(Mk,"ytd-channel-age-gate-renderer",function(){if(D1Z!==void 0)return D1Z;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return D1Z=V},{mode:1});var SQ3;_.yN("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var R_3=function(){var V=_.M.apply(this,arguments)||this;V.data=null;return V};
_.t(R_3,_.M);R_3.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vI.Object.defineProperties(R_3.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((V=this.data)==null?0:(l=V.title)==null?0:(I=l.runs)==null?0:I.length)?147:160}}});
var ss=R_3;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ss.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],ss.prototype,"imageSizePx",null);ss=_.O([_.A({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],ss);
_.u(ss,"ytd-channel-owner-empty-state-renderer",function(){if(SQ3!==void 0)return SQ3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return SQ3=V},{mode:1});var QPW;var cRE;var WDi=function(){var V=_.M.apply(this,arguments)||this;V.boundSubmitSearch=function(){V.submitSearch()};
V.boundClearSearch=function(){V.clearSearch()};
return V};
_.t(WDi,_.M);_.B=WDi.prototype;_.B.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]]"}}}}}};
_.B.toggleClearButton=function(){this.hideClearButton=ybt||!this.input.value};
_.B.submitOnEnterKeyUp=function(V){V.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.B.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.B.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.B.submit=function(){_.B$(this.hostElement,"search-query-changed",this.input.value)};
var pX=WDi;pX.prototype.toggleClearButton=pX.prototype.toggleClearButton;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],pX.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pX.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],pX.prototype,"hideClearButton",void 0);_.O([_.q(),_.a("design:type",Object)],pX.prototype,"boundSubmitSearch",void 0);_.O([_.q(),_.a("design:type",Object)],pX.prototype,"boundClearSearch",void 0);_.O([_.Ij("#input"),_.a("design:type",Object)],pX.prototype,"input",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pX.prototype,"toggleClearButton",null);
pX=_.O([_.A({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],pX);
_.u(pX,"ytd-channel-switcher-search-box-renderer",function(){if(cRE!==void 0)return cRE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return cRE=V},{mode:1});var byw;var qQa=function(){var V=_.M.apply(this,arguments)||this;V.boundSubmit=function(){V.submit()};
return V};
_.t(qQa,_.M);_.B=qQa.prototype;_.B.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"}}}}};
_.B.ready=function(){var V=this;this.form.addEventListener("submit",function(l){return V.onSubmit(l)})};
_.B.onSubmit=function(V){V.preventDefault();return!1};
_.B.toggleClearButton=function(){this.hideClearButton=ybt||!this.input.value};
_.B.submitOnEnterKeyUp=function(V){V.keyCode===13&&this.submit()};
_.B.submit=function(){var V=this.data.endpoint,l=(0,_.EL.unsafeClone)(V);_.y(l,_.$V)?_.y(l,_.$V).query=this.input.value:_.y(l,_.Nv)&&(_.y(l,_.Nv).query=this.input.value);var I=_.y(l.commandMetadata,_.mK);(I==null?0:I.url)?(I.url=_.Z1(I.url,"query",this.input.value),_.B$(this.hostElement,"yt-navigate",{endpoint:l})):_.y(l,IxJ)?(_.y(l,IxJ).channelSwitcherQuery=this.input.value,_.z("web_ytd_search_box_renderer_command_resolver_ks")?_.$B(this.hostElement,[l]):_.F().resolve(_.aw).resolveCommand(l,{form:{element:this.hostElement}})):
(V=Error("Oh`"+JSON.stringify(V)),_.Gr(V))};
_.B.getUrl=function(V){return this.get("commandMetadata.webCommandMetadata.url",V)};
var AL=qQa;AL.prototype.toggleClearButton=AL.prototype.toggleClearButton;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],AL.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],AL.prototype,"hideClearButton",void 0);
_.O([_.q(),_.a("design:type",Object)],AL.prototype,"boundSubmit",void 0);_.O([_.Ij("#form"),_.a("design:type",HTMLFormElement)],AL.prototype,"form",void 0);_.O([_.Ij("#input"),_.a("design:type",Object)],AL.prototype,"input",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AL.prototype,"toggleClearButton",null);AL=_.O([_.A({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],AL);
_.u(AL,"ytd-search-box-renderer",function(){if(byw!==void 0)return byw;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return byw=V},{mode:2});var MV0=function(){var V=_.M.apply(this,arguments)||this;V.showSearchBox=!0;return V};
_.t(MV0,_.M);MV0.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
var uT=MV0;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],uT.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],uT.prototype,"showSearchBox",void 0);uT=_.O([_.A({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],uT);
_.u(uT,"ytd-channel-switcher-header-renderer",function(){if(QPW!==void 0)return QPW;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return QPW=V},{mode:1});var sPJ;var ptJ;var AR3=function(){var V=_.M.apply(this,arguments)||this;V.isDisplayed=!0;return V};
_.t(AR3,_.M);_.B=AR3.prototype;_.B.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B.dataChanged=function(){this.isDisplayed=!0};
_.B.computeType=function(V){return V||"UNKNOWN"};
_.B.onYtServiceRequestCompleted=function(V){V.stopPropagation();this.isDisplayed=!1};
_.B.onClose=function(){this.isDisplayed=!1};
var vs=AR3;vs.prototype.onYtServiceRequestCompleted=vs.prototype.onYtServiceRequestCompleted;vs.prototype.dataChanged=vs.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],vs.prototype,"data",void 0);
_.O([_.q({computed:"computeType(data.type)",reflectToAttribute:!0}),_.a("design:type",String)],vs.prototype,"type",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vs.prototype,"isDisplayed",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vs.prototype,"dataChanged",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],vs.prototype,"onYtServiceRequestCompleted",null);vs=_.O([_.A({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],vs);
_.u(vs,"ytd-alert-with-button-renderer",function(){if(ptJ!==void 0)return ptJ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ptJ=V},{mode:1});var uZE=function(){var V=_.M.apply(this,arguments)||this;V.noResult=!1;V.enableAlertBanner=!1;V.dismissedAlertBanner=!1;V.hideCreateChannelButton=!1;V.boundDismissAlertBanner=function(){V.dismissAlertBanner()};
V.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return V};
_.t(uZE,_.M);_.B=uZE.prototype;_.B.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.B.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.B.updateChannelSwitcherAction=function(V){var l;V=(l=_.y(V,RXb))==null?void 0:l.page;_.y(V,SOJ)!==void 0&&(this.data=_.y(V,SOJ))};
_.B.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]]"}}}}}};
_.B.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.B.searchQueryChanged=function(V,l){if(this.data&&this.data.contents&&this.data.contents.length){V=[];var I=[];this.hideCreateChannelButton=this.noResult=!1;for(var H=document.querySelectorAll("ytd-account-item-renderer"),T=_.U(H),x=T.next();!x.done;x=T.next())x=x.value,I.push(x),x.style.display="block";this.resetRightBorder(I);if(l){this.hideCreateChannelButton=!0;for(I=1;I<this.data.contents.length;I++)if(x=this.data.contents[I],_.y(x,iuE)){var n=void 0,w=void 0;T=(n=_.y(x,iuE))==null?void 0:(w=
n.accountName)==null?void 0:w.simpleText;w=n=void 0;x=(n=_.y(x,iuE))==null?void 0:(w=n.channelHandle)==null?void 0:w.simpleText;(n=H[I-1])&&T&&_.XJ(T,l)?V.push(n):_.z("enable_handle_search_on_channel_switcher")&&n&&x&&_.XJ(x.toString(),l.toString())?V.push(n):n.style.display="none"}V.length===0&&(this.noResult=!0);this.resetRightBorder(V)}}};
_.B.resetRightBorder=function(V){for(var l=0;l<V.length;l++)V[l].style.borderRight=!this.hideCreateChannelButton&&(l+2)%3===0||this.hideCreateChannelButton&&(l+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.B.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.B.setShowSearchBox=function(V){if(V&&V.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var l=0;l<V.contents.length;l++)_.y(V.contents[l],_.nl)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.B.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.vI.Object.defineProperties(uZE.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null?0:V.contents)}}});
var Os=uZE;Os.prototype.onContinuationItemsUpdated=Os.prototype.onContinuationItemsUpdated;Os.prototype.searchQueryChanged=Os.prototype.searchQueryChanged;Os.prototype.onDataChanged=Os.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Os.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Os.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],Os.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Os.prototype,"data",void 0);_.O([_.Ij("ytd-channel-switcher-header-renderer"),_.a("design:type",Object)],Os.prototype,"channelSwitcherHeaderRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],Os.prototype,"noResult",void 0);
_.O([_.q(),_.a("design:type",Object)],Os.prototype,"enableAlertBanner",void 0);_.O([_.q(),_.a("design:type",Object)],Os.prototype,"dismissedAlertBanner",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Os.prototype,"hideCreateChannelButton",void 0);_.O([_.Q("data.contents"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Os.prototype,"isLoading",null);_.O([_.q(),_.a("design:type",Object)],Os.prototype,"boundDismissAlertBanner",void 0);
_.O([_.q({computed:"computeButtonOverride()"}),_.a("design:type",Object)],Os.prototype,"buttonOverride",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Os.prototype,"onDataChanged",null);_.O([_.W("search-query-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,String]),_.a("design:returntype")],Os.prototype,"searchQueryChanged",null);
_.O([_.W("yt-next-continuation-data-updated"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Os.prototype,"onContinuationItemsUpdated",null);Os=_.O([_.A({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Os);
_.u(Os,"ytd-channel-switcher-page-renderer",function(){if(sPJ!==void 0)return sPJ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return sPJ=V},{mode:1});var v8w;var Oyw=function(){var V=_.M.apply(this,arguments)||this;V.buttonOverrides={size:"S",iconPosition:"icon-only"};V.replyButtonOverrides={size:"S",type:"text"};return V};
_.t(Oyw,_.M);_.B=Oyw.prototype;_.B.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.B.detached=function(){this.replyBox&&this.replyBox.remove()};
_.B.showReplyDialog=function(V){if(V){var l=this.replyBox;l||(l=document.createElement("ytd-comment-reply-dialog-renderer"),l.id="replybox",_.h(this.replyDialogDiv).appendChild(l));l.data=V;this.replyDialogDiv.hidden=!1;l.openDialog()}};
_.B.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.B.onYtServiceRequestSent=function(V,l){V.stopPropagation();if(l.actions)for(var I=0;I<l.actions.length;I++){var H=_.y(l.actions[I],vLW);H?this.handleUpdateCommentVoteAction(H):V.target===this.heartButton&&this.toggleHeartState()}};
_.B.handleUpdateCommentVoteAction=function(V){var l;(l=this.toolbarState)!=null&&l.key&&this.ytdReduxBehavior.dispatch(_.h9("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:V.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":V.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.B.toggleHeartState=function(){var V;(V=this.toolbarState)!=null&&V.key&&this.ytdReduxBehavior.dispatch(_.h9("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.vI.Object.defineProperties(Oyw.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return(((V=this.toolbarState)==null?void 0:V.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(l=this.toolbarData)==null?void 0:l.likeCountLiked:(I=this.toolbarData)==null?void 0:I.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.toolbarSurface)==null?void 0:V.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.toolbarSurface)==null?void 0:V.prepareAccountCommand)!==void 0&&!_.z("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var V,l=_.y((V=this.toolbarSurface)==null?void 0:V.prepareAccountCommand,_.yI),I,H,T,x,n,w,N,L,e;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((H=this.toolbarState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:l!=null?l:_.y((T=this.toolbarSurface)==null?void 0:T.likeCommand,_.yI),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:l!=null?l:_.y((x=this.toolbarSurface)==null?void 0:x.unlikeCommand,_.yI),defaultCommand:this.isVisiblyDisabled?_.y((n=this.toolbarSurface)==null?void 0:n.commentDisabledActionCommand,_.yI):void 0,defaultTooltip:(w=this.toolbarData)==null?void 0:w.likeInactiveTooltip,toggledTooltip:(N=this.toolbarData)==null?void 0:N.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(L=this.toolbarData)==null?void 0:L.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(e=this.toolbarSharedData)==null?void 0:e.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var V,l=_.y((V=this.toolbarSurface)==null?void 0:V.prepareAccountCommand,_.yI),I,H,T,x,n,w,N,L,e,k;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((H=this.toolbarState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:l!=null?l:_.y((T=this.toolbarSurface)==null?void 0:T.dislikeCommand,_.yI),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:l!=null?l:_.y((x=this.toolbarSurface)==null?void 0:x.undislikeCommand,_.yI),defaultCommand:this.isVisiblyDisabled?_.y((n=this.toolbarSurface)==null?void 0:n.commentDisabledActionCommand,_.yI):void 0,defaultTooltip:(w=this.toolbarData)==null?void 0:w.dislikeInactiveTooltip,toggledTooltip:(N=this.toolbarData)==null?void 0:
N.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(L=this.toolbarSharedData)==null?void 0:L.dislikeReplyButtonA11y:(e=this.toolbarSharedData)==null?void 0:e.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(k=this.toolbarSharedData)==null?void 0:k.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var V,l,I;if(((V=this.toolbarState)==null?void 0:V.heartState)!==void 0&&((l=this.toolbarState)==null?void 0:l.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((I=this.toolbarState)==null?void 0:I.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var H,T,x,n,w,N,L,e,k,X,r,E,D,Z;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(H=this.toolbarData)==null?void 0:H.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((T=this.toolbarState)==null?void 0:T.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((x=this.toolbarState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((n=this.toolbarState)==null?void 0:n.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((w=this.toolbarState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.y((N=this.toolbarSurface)==null?void 0:N.heartCommand,
_.yI),unheartEndpoint:this.isVisiblyDisabled?void 0:_.y((L=this.toolbarSurface)==null?void 0:L.unheartCommand,_.yI),disabledEndpoint:this.isVisiblyDisabled?_.y((e=this.toolbarSurface)==null?void 0:e.commentDisabledActionCommand,_.yI):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(k=this.toolbarData)==null?void 0:k.heartActiveTooltip,unheartedTooltip:(X=this.toolbarData)==null?void 0:X.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((r=
this.toolbarState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(E=this.toolbarSharedData)==null?void 0:E.unheartButtonA11y:(D=this.toolbarSharedData)==null?void 0:D.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(Z=this.toolbarSharedData)==null?void 0:Z.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.toolbarSurface)==null||!V.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(V=this.commentStrings)==null?void 0:V.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.y((l=this.toolbarSurface)==null?void 0:l.replyCommand,_.yI),command:this.isVisiblyDisabled?_.y((I=this.toolbarSurface)==null?void 0:I.commentDisabledActionCommand,_.yI):void 0}}}});
var CX=Oyw;CX.prototype.onYtServiceRequestSent=CX.prototype.onYtServiceRequestSent;CX.prototype.hideReplyDialogDiv=CX.prototype.hideReplyDialogDiv;_.O([_.q(),_.a("design:type",Object)],CX.prototype,"commentStrings",void 0);_.O([_.q(),_.a("design:type",Boolean)],CX.prototype,"isReply",void 0);_.O([_.q(),_.a("design:type",Object)],CX.prototype,"toolbarData",void 0);_.O([_.q(),_.a("design:type",Object)],CX.prototype,"toolbarSharedData",void 0);
_.O([_.q(),_.a("design:type",String)],CX.prototype,"toolbarStateKey",void 0);_.O([_.q(),_.a("design:type",String)],CX.prototype,"toolbarSurfaceKey",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],CX.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],CX.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.Ij("#reply-dialog"),_.a("design:type",HTMLElement)],CX.prototype,"replyDialogDiv",void 0);_.O([_.Ij("#replybox"),_.a("design:type",Object)],CX.prototype,"replyBox",void 0);_.O([_.Ij("ytd-creator-heart-renderer"),_.a("design:type",Object)],CX.prototype,"heartButton",void 0);_.O([_.q({selector:function(V,l){return _.nW(V.entities,"engagementToolbarStateEntityPayload",l)},
selectorArgs:["toolbarStateKey"]}),_.a("design:type",Object)],CX.prototype,"toolbarState",void 0);_.O([_.q({selector:GCT,selectorArgs:["toolbarSurfaceKey"]}),_.a("design:type",Object)],CX.prototype,"toolbarSurface",void 0);_.O([_.q(),_.a("design:type",Object)],CX.prototype,"buttonOverrides",void 0);_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CX.prototype,"hideReplyDialogDiv",null);
_.O([_.Q("toolbarData","toolbarState"),_.a("design:type",String),_.a("design:paramtypes",[])],CX.prototype,"likeCount",null);_.O([_.Q("likeCount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],CX.prototype,"showLikeCount",null);_.O([_.Q("toolbarSurface"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],CX.prototype,"isVisiblyDisabled",null);_.O([_.Q("toolbarSurface"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],CX.prototype,"hasPrepareAccountCommand",null);
_.O([_.Q("toolbarData","toolbarState","toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],CX.prototype,"likeToggleButtonRenderer",null);_.O([_.Q("isReply","toolbarData","toolbarState","toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],CX.prototype,"dislikeToggleButtonRenderer",null);_.O([_.Q("toolbarData","toolbarState","toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],CX.prototype,"creatorHeartSupportedRenderer",null);
_.O([_.Q("toolbarSurface"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],CX.prototype,"hasReplyCommand",null);_.O([_.Q("toolbarSurface","commentStrings","isVisiblyDisabled"),_.a("design:type",Object),_.a("design:paramtypes",[])],CX.prototype,"replyButtonRenderer",null);_.O([_.q(),_.a("design:type",Object)],CX.prototype,"replyButtonOverrides",void 0);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],CX.prototype,"onYtServiceRequestSent",null);CX=_.O([_.A({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],CX);
_.u(CX,"ytd-comment-engagement-bar",function(){if(v8w!==void 0)return v8w;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return v8w=V},{mode:1});var Csi;var aMo=function(){return _.M.apply(this,arguments)||this};
_.t(aMo,_.M);var fMv=aMo;_.O([_.q(),_.a("design:type",Object)],fMv.prototype,"data",void 0);fMv=_.O([_.A({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],fMv);
_.u(fMv,"ytd-comment-pause-composer-renderer",function(){if(Csi!==void 0)return Csi;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Csi=V},{mode:1});var g8o;var m1o;var iyN;var aL=function(){return _.M.apply(this,arguments)||this};
_.t(aL,_.M);aL.prototype.computeState=function(V){switch(V==null?void 0:V.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"}};
aL.prototype.updateStateIdentifier=function(V){if(this.viewModel.triStateKey){var l=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.h9("triStateButtonStateEntityPayload",l,{key:l,stateIdentifier:V}))}};
aL.prototype.onClick=function(){var V=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(){V.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){V.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.vI.Object.defineProperties(aL.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 V;return((V=this.data)==null?void 0:V.buttonText)||""}}});
var fX=aL;_.O([_.q(),_.a("design:type",Object)],fX.prototype,"viewModel",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],fX.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],fX.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);
_.O([_.q({selector:EK1,selectorArgs:["viewModel.triStateKey"]}),_.a("design:type",Object)],fX.prototype,"triStateButtonStateEntity",void 0);_.O([_.q({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.a("design:type",String)],fX.prototype,"state",void 0);_.O([_.Q("viewModel","state"),_.a("design:type",Object),_.a("design:paramtypes",[])],fX.prototype,"data",null);_.O([_.Q("data"),_.a("design:type",String),_.a("design:paramtypes",[])],fX.prototype,"buttonText",null);
fX=_.O([_.A({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],fX);
_.u(fX,"ytd-tri-state-button-view-model",function(){if(iyN!==void 0)return iyN;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return iyN=V},{mode:1});var VRa=function(){var V=_.M.apply(this,arguments)||this;V.useSmallAvatars=_.z("small_avatars_for_comments");V.webWatchCompactComments=_.z("web_watch_compact_comments");V.editDialog=null;return V};
_.t(VRa,_.M);_.B=VRa.prototype;_.B.onShow=function(){_.S1("cmv",void 0,"wn_comments")};
_.B.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"}}}};
_.B.detached=function(){this.editDialog=null;this.expander.reset()};
_.B.updateBackgroundColor=function(){if(this.backgroundColor){var V={"--ytd-comment-paid-background-color":_.rP(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.i3(this.hostElement,V)}else _.i3(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.B.resetExpander=function(){var V;(V=this.expander)==null||V.reset()};
_.B.openEditDialog=function(V){V.dialog&&(this.editDialog=V.dialog,this.JSC$13620_editReplyDialogContainer?this.JSC$13620_editReplyDialogContainer.openDialog():this.JSC$13620_editCommentDialogContainer&&this.JSC$13620_editCommentDialogContainer.focus())};
_.B.onYtNavigate=function(V){var l=V.detail.endpoint;if(l=_.y(l,_.Rio)||_.y(l,_.QR3))V.stopPropagation(),this.openEditDialog(l)};
_.B.onYtCommentboxDismiss=function(){this.editDialog=null;_.i3(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.B.onAuthorThumbnailClicked=function(){var V=this;_.z("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(l,I){V.onAuthorThumbnailEndpointSuccess(I)},
onServerError:function(l,I){_.hF(new _.Yd("Failed to resolve the command",I))}}})};
_.B.onAuthorThumbnailEndpointSuccess=function(V){if((V=V==null?void 0:V.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(V,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();V=V==null?void 0:V.clickTrackingParams;var l=_.JO();V&&l&&_.x7().graftServerVe(V,l)}};
_.B.logScreenVe=function(){_.xg(_.x7(),66557)};
_.B.onYtCommentboxResize=function(V){var l;(V==null?0:(l=V.detail)==null?0:l.height)&&_.i3(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":V.detail.height+"px"})};
_.vI.Object.defineProperties(VRa.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 V,l=(V=this.commentEntity)==null?void 0:V.author;return l&&(l.isCreator||l.isVerified||l.isArtist)?{renderer:{authorEndpoint:l.channelPageEndpoint?_.y(l.channelPageEndpoint,_.yI):_.y(l.channelCommand,_.yI),authorText:{runs:[{text:l.displayName}]},color:l.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:l.isArtist?{iconType:"AUDIO_BADGE"}:
l.isVerified?{iconType:l.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:l.isArtist||l.isVerified?l.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var V,l=(V=this.commentEntity)==null?void 0:V.author;return l!=null&&l.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:l.sponsorBadgeUrl}]},tooltip:l.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var V;return _.y((V=this.commentSurfaceEntity)==null?void 0:V.pdgCommentChip,_.d$W)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var V;return this.voiceReplyContainerViewModel&&((V=this.voiceReplyContainerViewModel)==null?void 0:V.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var V;return _.y((V=this.commentSurfaceEntity)==null?void 0:V.voiceReplyContainerViewModel,igZ)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var V;return this.voiceReplyContainerViewModel&&(V=this.voiceReplyContainerViewModel)!=null&&V.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=(V=this.commentSurfaceEntity)==null?void 0:V.commentBackgroundColor)!=null?l:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.z("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var V,l;return(((V=this.commentEntity)==null?void 0:(l=V.properties)==null?void 0:l.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var V,l;if(_.z("enable_profile_cards_on_comments")&&((V=this.commentEntity)==null?0:(l=V.author)==null?0:l.profileCardEndpoint)&&this.viewModel.allowProfileCard){var I,H;return _.y((I=this.commentEntity)==null?void 0:(H=I.author)==null?void 0:H.profileCardEndpoint,_.yI)}var T,x;return _.y((T=this.commentEntity)==null?void 0:(x=T.avatar)==null?void 0:x.endpoint,_.yI)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var V,l;if(_.z("enable_profile_cards_on_comments")&&((V=this.commentEntity)==null?0:(l=V.author)==null?0:l.channelPageEndpoint)){var I,H;return _.y((I=this.commentEntity)==null?void 0:(H=I.author)==null?void 0:H.channelPageEndpoint,_.yI)}var T,x;return _.y((T=this.commentEntity)==null?void 0:(x=T.avatar)==null?void 0:x.endpoint,_.yI)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H,T=(V=this.commentEntity)==null?void 0:(l=V.avatar)==null?void 0:(I=l.image)==null?void 0:(H=I.sources)==null?void 0:H[0];return T?{thumbnails:[{url:T.url,width:T.width,height:T.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.commentEntity)==null?0:(l=V.author)==null?0:l.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.commentEntity)==null?void 0:(l=V.author)==null?void 0:l.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.commentEntity)==null?void 0:(l=V.properties)==null?void 0:l.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var V;return _.y((V=this.commentSurfaceEntity)==null?void 0:V.publishedTimeCommand,_.yI)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var V,l;if(((V=this.commentEntity)==null?0:V.translatedContent)&&((l=this.translateButtonState)==null?void 0:l.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var I;if((I=this.voiceReplyContainerViewModel)==null?0:I.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var H,T;return((H=this.commentEntity)==null?void 0:(T=H.properties)==null?void 0:T.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.commentSharedEntity)==null?void 0:(l=V.strings)==null?void 0:l.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.commentSharedEntity)==null?void 0:(l=V.strings)==null?void 0:l.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.commentEntity)==null||!V.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var V,l,I=(l=_.y((V=this.viewModel)==null?void 0:V.translateButton,mIE))!=null?l:{},H,T,x,n,w,N,L,e,k,X,r;return Object.assign({},I,{untoggledStateData:Object.assign({},I.untoggledStateData,{buttonText:(H=this.commentEntity)==null?void 0:(T=H.translateData)==null?void 0:T.text}),togglingStateData:Object.assign({},I.togglingStateData,{buttonText:(x=this.commentSharedEntity)==null?
void 0:(n=x.strings)==null?void 0:n.translatingText}),toggledStateData:Object.assign({},I.toggledStateData,{buttonText:(w=this.commentSharedEntity)==null?void 0:(N=w.strings)==null?void 0:N.seeOriginalText}),transitionCommand:((L=this.commentEntity)==null?0:L.translatedContent)?void 0:_.y((e=this.commentEntity)==null?void 0:(k=e.translateData)==null?void 0:k.translateComment,_.yI),triStateKey:(X=this.commentEntity)==null?void 0:(r=X.properties)==null?void 0:r.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((l=_.y(_.y((V=this.toolbarSurface)==null?void 0:V.menuCommand,_.yI),cww))==null?void 0:(I=l.menu)==null?void 0:I.menuRenderer)||null}}});
var gA=VRa;gA.prototype.onYtCommentboxResize=gA.prototype.onYtCommentboxResize;gA.prototype.onYtCommentboxDismiss=gA.prototype.onYtCommentboxDismiss;gA.prototype.onYtNavigate=gA.prototype.onYtNavigate;gA.prototype.resetExpander=gA.prototype.resetExpander;gA.prototype.updateBackgroundColor=gA.prototype.updateBackgroundColor;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],gA.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],gA.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Ij("#author-thumbnail > button"),_.a("design:type",HTMLElement)],gA.prototype,"authorThumbnailAnchor",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("viewModel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"linked",null);_.O([_.Q("viewModel","linked"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"linkedCommentBadge",null);_.O([_.q({reflectToAttribute:!0}),_.Q("viewModel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"pinned",null);
_.O([_.Q("viewModel","pinned"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"pinnedCommentBadge",null);_.O([_.Q("commentEntity","commentSharedEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"authorCommentBadge",null);_.O([_.q({reflectToAttribute:!0}),_.Q("authorCommentBadge"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"hasAuthorBadge",null);
_.O([_.Q("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"sponsorCommentBadge",null);_.O([_.q({reflectToAttribute:!0}),_.Q("sponsorCommentBadge"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"hasSponsorBadge",null);_.O([_.Q("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"pdgCommentChipRenderer",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("voiceReplyContainerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"hasVoiceReply",null);_.O([_.Q("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"voiceReplyContainerViewModel",null);_.O([_.Q("voiceReplyContainerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"voiceReplyUnavailableText",null);_.O([_.q(),_.a("design:type",Object)],gA.prototype,"data",void 0);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"viewModel",null);_.O([_.q({selector:function(V,l){return _.nW(V.entities,"commentSharedEntityPayload",l)},
selectorArgs:["viewModel.sharedKey"]}),_.a("design:type",Object)],gA.prototype,"commentSharedEntity",void 0);_.O([_.q({selector:function(V,l){return _.nW(V.entities,"commentEntityPayload",l)},
selectorArgs:["viewModel.commentKey"]}),_.a("design:type",Object)],gA.prototype,"commentEntity",void 0);_.O([_.q({selector:function(V,l){return _.nW(V.entities,"commentSurfaceEntityPayload",l)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.a("design:type",Object)],gA.prototype,"commentSurfaceEntity",void 0);_.O([_.q({selector:GCT,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.a("design:type",Object)],gA.prototype,"toolbarSurface",void 0);_.O([_.q({selector:EK1,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.a("design:type",Object)],gA.prototype,"translateButtonState",void 0);
_.O([_.Q("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"backgroundColor",null);_.O([_.q({reflectToAttribute:!0}),_.Q("viewModel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"optimalReadingWidthComments",null);_.O([_.Ij("ytd-expander"),_.a("design:type",Object)],gA.prototype,"expander",void 0);
_.O([_.b("backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gA.prototype,"updateBackgroundColor",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"useSmallAvatars",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"webWatchCompactComments",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"isReply",null);
_.O([_.Q("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"authorThumbnailEndpoint",null);_.O([_.Q("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"authorNameEndpoint",null);_.O([_.Q("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"authorThumbnail",null);_.O([_.Q("commentEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],gA.prototype,"authorTextClass",null);
_.O([_.Q("commentEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],gA.prototype,"authorChannelName",null);_.O([_.Q("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"publishedTime",null);_.O([_.Q("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"publishedTimeCommand",null);
_.O([_.Q("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"contentText",null);_.O([_.b("contentText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gA.prototype,"resetExpander",null);_.O([_.Q("commentEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"shouldShowReadMoreInitially",null);
_.O([_.Q("commentSharedEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],gA.prototype,"expandText",null);_.O([_.Q("commentSharedEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],gA.prototype,"collapseText",null);_.O([_.Q("commentEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"shouldShowTranslateButton",null);
_.O([_.Q("commentEntity","commentSharedEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"translateButton",null);_.O([_.Q("toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],gA.prototype,"overflowMenuRenderer",null);_.O([_.q(),_.a("design:type",Object)],gA.prototype,"editDialog",void 0);_.O([_.Ij("ytd-comment-dialog-renderer"),_.a("design:type",Object)],gA.prototype,"JSC$13620_editCommentDialogContainer",void 0);
_.O([_.Ij("ytd-comment-reply-dialog-renderer"),_.a("design:type",Object)],gA.prototype,"JSC$13620_editReplyDialogContainer",void 0);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],gA.prototype,"onYtNavigate",null);_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],gA.prototype,"onYtCommentboxDismiss",null);
_.O([_.W("yt-commentbox-resize"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],gA.prototype,"onYtCommentboxResize",null);gA=_.O([_.A({disableElementRegistration:!0,is:"ytd-comment-view-model"})],gA);
_.u(gA,"ytd-comment-view-model",function(){if(m1o!==void 0)return m1o;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return m1o=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var lGN=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("web_modern_buttons");V.isWatchGrid=_.z("kevlar_watch_grid");V.buttonOverrides={style:"call-to-action"};V.JSC$13637_spinnerEl=null;V.nextContinuation={continuationType:"commentRepliesContinuation",usePost:!0};return V};
_.t(lGN,_.M);_.B=lGN.prototype;_.B.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.B.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",params:{showButton:!0,showIcon:!0}}}},"data.teaserContents":{id:"teaser-replies",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"},
continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.B.attached=function(){this.isShowRepliesVisible=!0};
_.B.created=function(){this.domRepeatInitialCount=10};
_.B.dataChanged=function(){var V=this.expanderContents;V&&(V.hidden=!0);this.isLoading=!1};
_.B.onContentsDomChange=function(){this.domRepeatInitialCount=_.h(this.hostElement).querySelectorAll("ytd-comment-renderer").length};
_.B.onRetrieveLocation=function(V,l){l.locationRetrieved("/comment_service_ajax?action_get_comment_replies=1&pbj=1",void 0);V.stopPropagation()};
_.B.triggerFirstContinuation=function(){this.data.contents||this.continuation&&this.continuation.trigger();this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.B.isLoadingChanged=function(){this.isLoading&&!this.JSC$13637_spinnerEl&&(this.JSC$13637_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.h(this.expanderContents).appendChild(this.JSC$13637_spinnerEl));this.JSC$13637_spinnerEl&&(this.JSC$13637_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var V;(V=this.contents)==null||V.classList.remove("reloading")}};
_.B.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var V=_.y(this.data.viewReplies,_.RG);V&&this.ytRendererBehavior.logExplicitClick(V)};
_.B.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var V=_.y(this.data.hideReplies,_.RG);V&&this.ytRendererBehavior.logExplicitClick(V)};
_.B.isShowMoreChanged=function(){var V=_.h(this.hostElement).querySelector("#expander-contents");V&&(V.hidden=this.isShowRepliesVisible)};
_.B.computeAlign=function(){if(this.modern){var V;return!((V=this.data)==null?0:V.viewRepliesCreatorThumbnail)}};
_.vI.Object.defineProperties(lGN.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var V,l=(V=this.data)==null?void 0:V.contents,I;return!((I=this.data)==null||!I.continuations)||!!l&&l.length>0&&!!l[l.length-1].continuationItemRenderer}}});
var mz=lGN;mz.prototype.isShowMoreChanged=mz.prototype.isShowMoreChanged;mz.prototype.isLoadingChanged=mz.prototype.isLoadingChanged;mz.prototype.triggerFirstContinuation=mz.prototype.triggerFirstContinuation;mz.prototype.onRetrieveLocation=mz.prototype.onRetrieveLocation;mz.prototype.dataChanged=mz.prototype.dataChanged;_.O([_.R(_.Vi.YtNextContinuationBehavior),_.a("design:type",Object)],mz.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],mz.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],mz.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],mz.prototype,"modern",void 0);
_.O([_.q(),_.a("design:type",Boolean)],mz.prototype,"isLoading",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],mz.prototype,"isShowRepliesVisible",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],mz.prototype,"useNewFormatting",void 0);_.O([_.q({value:10}),_.a("design:type",Number)],mz.prototype,"domRepeatInitialCount",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],mz.prototype,"isWatchGrid",void 0);
_.O([_.q(),_.a("design:type",Object)],mz.prototype,"buttonOverrides",void 0);_.O([_.Ij("#expander-contents"),_.a("design:type",HTMLElement)],mz.prototype,"expanderContents",void 0);_.O([_.Ij("yt-next-continuation"),_.a("design:type",Object)],mz.prototype,"continuation",void 0);_.O([_.Ij("ytd-continuation-item-renderer"),_.a("design:type",Object)],mz.prototype,"continuationItemRenderer",void 0);_.O([_.Ij("#contents"),_.a("design:type",HTMLElement)],mz.prototype,"contents",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"dataChanged",null);_.O([_.Q("data.continuations","data.contents"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],mz.prototype,"hasContinuation",null);_.O([_.W("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],mz.prototype,"onRetrieveLocation",null);
_.O([_.W("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"triggerFirstContinuation",null);_.O([_.b("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"isLoadingChanged",null);_.O([_.b("isShowRepliesVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"isShowMoreChanged",null);
mz=_.O([_.A({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],mz);
_.u(mz,"ytd-comment-replies-renderer",function(){if(g8o!==void 0)return g8o;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return g8o=V},{mode:1});var IGN;var HcZ=function(){var V=_.M.apply(this,arguments)||this;V.isOpen=!1;V.commentDialog=null;V.useSmallAvatars=_.z("small_avatars_for_comments");V.useSmallAvatarsEngagementPanelOnly=_.z("small_avatars_for_comments_ep");V.placeholderFocusListener=null;V.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return V};
_.t(HcZ,_.M);_.B=HcZ.prototype;_.B.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]]"}}}}}};
_.B.ready=function(){var V=this,l=_.h(this.hostElement).querySelector("#placeholder-area"),I=_.h(this.hostElement).querySelector("#simplebox-placeholder"),H=function(T){T.stopPropagation();T instanceof KeyboardEvent&&T.type==="keypress"&&T.keyCode!==13&&T.keyCode!==32||V.openDialog()};
this.placeholderFocusListener=H;I.addEventListener("focus",this.placeholderFocusListener);l.addEventListener("tap",H);l.addEventListener("keypress",H)};
_.B.maybeRemoveFocusEventListener=function(){var V;(V=this.data)!=null&&V.prepareAccountEndpoint&&!_.z("web_comments_simplebox_modal_focus_on_tap_ks")&&(V=_.h(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(V.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.B.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.B.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.z("web_comment_simplebox_resolve_polymer_command_ks")?_.li.instance.resolveCommand(this.data.prepareAccountEndpoint):_.IN(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.h(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.B.onYtCommentboxDismiss=function(V){V.stopPropagation();this.isOpen=!1};
_.B.onCreateCommentAction=function(V){this.get("createCommentAction.contents",V)&&(this.isOpen=!1)};
_.B.computeCommentDialog=function(V){return{placeholderText:V.placeholderText,authorThumbnail:V.authorThumbnail,submitButton:V.submitButton,imageButton:V.imageButton,cancelButton:V.cancelButton,emojiButton:V.emojiButton,emojis:V.emojis,emojiPicker:V.emojiPicker,aadcGuidelinesStateEntityKey:V.aadcGuidelinesStateEntityKey,openAadcDialog:V.openAadcDialog,unicodeEmojisUrl:V.unicodeEmojisUrl}};
_.B.onHideIdentityChip=function(V){_.y(V,AmZ)&&this.set("data.placeholderText",_.y(V,AmZ).placeholderText)};
var iT=HcZ;iT.prototype.onYtCommentboxDismiss=iT.prototype.onYtCommentboxDismiss;iT.prototype.dataChanged=iT.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],iT.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],iT.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],iT.prototype,"isOpen",void 0);_.O([_.q(),_.a("design:type",Object)],iT.prototype,"commentDialog",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],iT.prototype,"engagementPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],iT.prototype,"useSmallAvatars",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],iT.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],iT.prototype,"enableCreationBox",void 0);_.O([_.q(),_.a("design:type",Boolean)],iT.prototype,"showCreateDialog",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iT.prototype,"dataChanged",null);
_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],iT.prototype,"onYtCommentboxDismiss",null);iT=_.O([_.A({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],iT);
_.u(iT,"ytd-comment-simplebox-renderer",function(){if(IGN!==void 0)return IGN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return IGN=V},{mode:1});var T80;_.yN("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var V_=function(){var V=_.M.apply(this,arguments)||this;V.addHoverEffect=_.z("swatcheroo_comments_hover_effect");return V};
_.t(V_,_.M);V_.prototype.onTap=function(V){if(this.addHoverEffect&&!this.engagementPanel&&!_.qi(_.b3(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;((l=window.getSelection())==null?0:l.toString().length)||_.IN({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
V_.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.vI.Object.defineProperties(V_.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)!=null&&V.commentViewModel)return _.y(this.data.commentViewModel,gLw)}}});
var ld=V_;ld.prototype.onTap=ld.prototype.onTap;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ld.prototype,"addHoverEffect",void 0);_.O([_.q(),_.a("design:type",Object)],ld.prototype,"data",void 0);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ld.prototype,"commentViewModel",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],ld.prototype,"engagementPanel",void 0);_.O([_.W("tap"),_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ld.prototype,"onTap",null);ld=_.O([_.A({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],ld);
_.u(ld,"ytd-comment-thread-renderer",function(){if(T80!==void 0)return T80;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.comment.commentRenderer]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-renderer id="comment" data="[[data.comment.commentRenderer]]" engagement-panel="[[engagementPanel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-renderer>\n</template>\n<template is="dom-if" if="[[data.commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</template>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return T80=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var B8N;var xmJ=function(){var V=_.M.apply(this,arguments)||this;V.modernTypography=_.z("web_modern_typography");V.compactHeader=_.z("web_watch_compact_comments_header");V.hidePanelButton=!1;V.isPostSchedulingEnabled=_.z("enable_post_scheduling");V.hasFinishedStamping=!1;V.JSC$13655_handleOpenPostCommentDialogActionAfterStamp=!1;V.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return V};
_.t(xmJ,_.M);_.B=xmJ.prototype;
_.B.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"}}}};
_.B.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.B.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13655_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.B.onYtServiceRequestSent=function(V,l){if(!_.z("kevlar_command_handler")&&l.actions)for(V=0;V<l.actions.length;V++){var I=l.actions[V];_.y(I,eqv)&&_.h(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.y(I,eqv))}};
_.B.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var V;if(this.getPrefilledBackstagePostDialog((V=this.data)==null?void 0:V.actions)){_.h(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var l=_.h(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;l&&_.Al(this,function(){l.focus();l.openDialog&&l.openDialog()})}}else this.hasActionsChange=!0};
_.B.computeIsBackstage=function(V){return V};
_.B.onYtCommentboxDismiss=function(){_.h(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.B.removePrefilledDialog=function(V){if(V==null?0:V.actions){for(var l=V.actions.length-1;l>=0;l--){var I=void 0;((I=_.y(V.actions[l],ZiZ))==null?0:I.dialog)&&delete V.actions[l]}this.set("data",void 0);this.set("data",V)}};
_.B.getPrefilledBackstagePostDialog=function(V){if(V)for(var l=0;l<V.length;l++){var I=V[l],H=void 0;if((H=_.y(I,ZiZ))==null?0:H.dialog)return _.y(I,ZiZ).dialog}return null};
_.B.computeBackstagePostDialog=function(V){return V&&(this.getPrefilledBackstagePostDialog(V.actions)||V.createRenderer)};
_.B.dataChanged=function(){if(this.data){var V=this.data.customEmojis,l=this.data.unicodeEmojisUrl;_.Q2.clear();l&&_.XjZ(_.Q2,l);V&&_.Q2.load(V)}};
_.B.handleSignalActionOpenPostCommentDialogAction=function(){var V=_.h(this.hostElement).querySelector("ytd-comment-simplebox-renderer");V?V.openDialog():this.JSC$13655_handleOpenPostCommentDialogActionAfterStamp=!0};
_.vI.Object.defineProperties(xmJ.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.z("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H,T,x,n;return!this.hidePanelButton&&_.z("kevlar_watch_comments_panel_button")&&((n=_.y((V=this.data)==null?void 0:(l=V.sortMenu)==null?void 0:(I=l.sortFilterSubMenuRenderer)==null?void 0:(H=I.subMenuItems)==null?void 0:(T=H[0])==null?void 0:(x=T.serviceEndpoint)==null?void 0:x.commandMetadata,_.mK))==null?void 0:n.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.LT("MINIPLAYER_EXPAND_LABEL"),text:_.pW(_.LT("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
var Iy=xmJ;Iy.prototype.dataChanged=Iy.prototype.dataChanged;Iy.prototype.onYtCommentboxDismiss=Iy.prototype.onYtCommentboxDismiss;Iy.prototype.observePrefilledBackstagePostDialog=Iy.prototype.observePrefilledBackstagePostDialog;Iy.prototype.onYtServiceRequestSent=Iy.prototype.onYtServiceRequestSent;Iy.prototype.onStampFinished=Iy.prototype.onStampFinished;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Iy.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Iy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Iy.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Iy.prototype,"modernTypography",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Iy.prototype,"compactHeader",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Iy.prototype,"engagementPanel",void 0);_.O([_.q(),_.a("design:type",Object)],Iy.prototype,"hidePanelButton",void 0);_.O([_.q({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Iy.prototype,"isBackstage",void 0);_.O([_.q({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.a("design:type",Object)],Iy.prototype,"backstagePostDialog",void 0);
_.O([_.q(),_.a("design:type",Object)],Iy.prototype,"isPostSchedulingEnabled",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data","showCommentsPanelButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iy.prototype,"useSpaceBetween",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data","hidePanelButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iy.prototype,"showCommentsPanelButton",null);
_.O([_.Q("data","showCommentsPanelButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iy.prototype,"commentsPanelButtonData",null);_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iy.prototype,"onStampFinished",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],Iy.prototype,"onYtServiceRequestSent",null);
_.O([_.b("data.actions"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iy.prototype,"observePrefilledBackstagePostDialog",null);_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Iy.prototype,"onYtCommentboxDismiss",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iy.prototype,"dataChanged",null);
Iy=_.O([_.A({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Iy);
_.u(Iy,"ytd-comments-header-renderer",function(){if(B8N!==void 0)return B8N;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return B8N=V},{mode:1});var UmZ;var nyN=function(){return _.M.apply(this,arguments)||this};
_.t(nyN,_.M);var HS=nyN;_.O([_.q(),_.a("design:type",Object)],HS.prototype,"data",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);HS=_.O([_.A({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],HS);
_.u(HS,"ytd-destination-button-renderer",function(){if(UmZ!==void 0)return UmZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return UmZ=V},{mode:1});var $mv;var dm0=function(){var V=_.M.apply(this,arguments)||this;V.isRichGrid=!1;V.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};V.modernTypography=_.z("web_modern_typography");return V};
_.t(dm0,_.M);_.B=dm0.prototype;_.B.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.B.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.B.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.B.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var V;if((V=this.data)==null||!V.isExpanded){V=this.hostElement.clientWidth;var l;if(V&&(l=this.data)!=null&&l.destinationButtons){l=Math.floor((V+4)/214);V=this.data.destinationButtons.length;var I=Math.ceil(V/l);this.fullyVisibleRows=V%l===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}}}};
_.B.updateRichGridDestinationButtonsVisibility=function(){var V,l;if(this.isRichGrid&&((V=this.data)==null||!V.isExpanded)&&(l=this.data)!=null&&l.destinationButtons){V=this.richGridItemsPerRow+1;l=this.data.destinationButtons.length;var I=Math.ceil(l/V);this.fullyVisibleRows=l%V===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
_.B.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var Th=dm0;Th.prototype.updateRichGridDestinationButtonsVisibility=Th.prototype.updateRichGridDestinationButtonsVisibility;_.O([_.q(),_.a("design:type",Object)],Th.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Number)],Th.prototype,"fullyVisibleRows",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Th.prototype,"isShowMoreVisible",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Th.prototype,"isRichGrid",void 0);
_.O([_.q({selector:_.oA,value:0}),_.a("design:type",Number)],Th.prototype,"richGridItemsPerRow",void 0);_.O([_.q(),_.a("design:type",Object)],Th.prototype,"gridStateActionMap",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Th.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Th.prototype,"ytdReduxBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Th.prototype,"modernTypography",void 0);_.O([_.b("data","richGridItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Th.prototype,"updateRichGridDestinationButtonsVisibility",null);
Th=_.O([_.A({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Th);
_.u(Th,"ytd-destination-shelf-renderer",function(){if($mv!==void 0)return $mv;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return $mv=V},{mode:1});var wR3;var N8w=function(){return _.M.apply(this,arguments)||this};
_.t(N8w,_.M);N8w.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var BS=N8w;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],BS.prototype,"data",void 0);BS=_.O([_.A({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],BS);
_.u(BS,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(wR3!==void 0)return wR3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return wR3=V},{mode:1});var KHW;var jbJ=function(){var V=_.M.apply(this,arguments)||this;V.disableAnimation=!1;V.isSlimlineSurvey=!1;V.isSlimlineSurveyFollowUp=!1;V.isShortsStyle=!1;return V};
_.t(jbJ,_.M);jbJ.prototype.onTap=function(V){V.preventDefault();this.data&&_.B$(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.vI.Object.defineProperties(jbJ.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 V,l,I,H,T;return((V=this.data)==null?0:V.checked)?(l=this.data)==null?void 0:(I=l.onStateIcon)==null?void 0:I.iconType:(H=this.data)==null?void 0:(T=H.defaultStateIcon)==null?void 0:T.iconType}}});
var x$=jbJ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],x$.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],x$.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],x$.prototype,"disableAnimation",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],x$.prototype,"isSlimlineSurvey",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],x$.prototype,"isSlimlineSurveyFollowUp",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],x$.prototype,"isShortsStyle",void 0);_.O([_.Q("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],x$.prototype,"isAnimatedIcon",null);
_.O([_.Q("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.a("design:type",Number),_.a("design:paramtypes",[])],x$.prototype,"iconSize",null);_.O([_.Q("isShortsStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],x$.prototype,"isDarkTheme",null);_.O([_.Q("data.checked"),_.a("design:type",Object),_.a("design:paramtypes",[])],x$.prototype,"icon",null);x$=_.O([_.A({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],x$);
_.u(x$,"ytd-rating-survey-option-renderer",function(){if(KHW!==void 0)return KHW;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return KHW=V},{mode:2});var Yrb;var LHb=function(){var V=_.M.apply(this,arguments)||this;V.firstResponseText=null;V.lastResponseText=null;V.selectedNonStarOption=null;V.hideOptions=!1;V.hideUndoButton=!0;V.disableAnimation=!1;V.showResponseRangeText=!1;V.selectedRatingIndex=-1;V.isSlimlineSurvey=!1;V.isSlimlineSurveyFollowUp=!1;V.isShortsStyle=!1;V.slimlineSurveyRatingSelectedIndex=-1;return V};
_.t(LHb,_.M);_.B=LHb.prototype;_.B.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.B.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.B.onOptionChange=function(V,l){var I=this;V=l.onStateIcon&&l.defaultStateIcon&&l.onStateIcon.iconType===l.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(n,w){n.responseText===l.responseText?I.isSlimlineSurvey?(I.selectedRatingIndex=w,I.ytdReduxBehavior.dispatch(I5J(w))):(I.setSurveyOptionValue(w,!0,"checked"),I.setSurveyOptionValue(w,!0,"selected")):(I.setSurveyOptionValue(w,!1,"checked"),I.setSurveyOptionValue(w,
!1,"selected"))});
else if(V)this.selectedNonStarOption=l,this.hideOptions=!0;else{var H=this.ytRendererBehavior.getSimpleString(l.responseText),T=!0;this.getOptionRenderers().forEach(function(n,w){I.setSurveyOptionValue(w,T,"checked");I.setSurveyOptionValue(w,!1,"selected");I.ytRendererBehavior.getSimpleString(n.responseText)===H&&(T=!1,I.setSurveyOptionValue(w,!0,"selected"))})}V=l.responseEndpoint;
var x;l.followUpCommand&&(x=_.y(l.followUpCommand,nCN));this.isSlimlineSurvey?(this.resetComponent(),_.xB(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.xB(this.hostElement,"ytd-inline-survey-rating-select-action",[V,x])};
_.B.showSelectedOption=function(){var V=this;_.r0.addJob(function(){var l=V.getOptionRenderers()[V.slimlineSurveyRatingSelectedIndex];V.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),l)},8,100)};
_.B.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(V){var l;return(l=_.y(V,dOa))!=null?l:{}}):[]};
_.B.onUndoClick=function(){this.resetComponent();_.xB(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.B.setSurveyOptionValue=function(V,l,I){this.notifyPath("data.ratings."+V+".ratingSurveyOptionRenderer."+I);this.set("data.ratings."+V+".ratingSurveyOptionRenderer."+I,l)};
_.B.resetComponent=function(){var V=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var l=this.getOptionRenderers(),I,H;this.firstResponseText=(H=(I=l[0])==null?void 0:I.responseText)!=null?H:null;var T,x;this.lastResponseText=(x=(T=l[l.length-1])==null?void 0:T.responseText)!=null?x:null;l.forEach(function(n,w){V.setSurveyOptionValue(w,!1,"checked");V.setSurveyOptionValue(w,!1,"selected")})};
_.vI.Object.defineProperties(LHb.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
var U1=LHb;U1.prototype.onOptionChange=U1.prototype.onOptionChange;U1.prototype.dataChanged=U1.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],U1.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],U1.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],U1.prototype,"firstResponseText",void 0);_.O([_.q(),_.a("design:type",Object)],U1.prototype,"lastResponseText",void 0);_.O([_.q(),_.a("design:type",Object)],U1.prototype,"selectedNonStarOption",void 0);_.O([_.q(),_.a("design:type",Object)],U1.prototype,"hideOptions",void 0);_.O([_.q(),_.a("design:type",Object)],U1.prototype,"hideUndoButton",void 0);_.O([_.q(),_.a("design:type",Object)],U1.prototype,"disableAnimation",void 0);
_.O([_.q(),_.a("design:type",Object)],U1.prototype,"showResponseRangeText",void 0);_.O([_.q(),_.a("design:type",Object)],U1.prototype,"selectedRatingIndex",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],U1.prototype,"isSlimlineSurvey",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],U1.prototype,"isSlimlineSurveyFollowUp",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],U1.prototype,"isShortsStyle",void 0);_.O([_.q({selector:function(V){return V.ui.slimlineSurveyRatingSelectedIndex}}),
_.a("design:type",Object)],U1.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.O([_.Q("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],U1.prototype,"isSingleSelect",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],U1.prototype,"dataChanged",null);
_.O([_.W("ytd-rating-survey-option-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],U1.prototype,"onOptionChange",null);U1=_.O([_.A({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],U1);
_.u(U1,"ytd-rating-survey-renderer",function(){if(Yrb!==void 0)return Yrb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Yrb=V},{mode:1});var eWN;var kXw;var FHN;var IIw=(EJ.FIRSTDAYOFWEEK+1)%7,XRW=function(V,l,I,H){var T="";if(H.selection&&mpf(H.selection))ty(V,H.selection)&&(T+=" selected");else if(H.selection&&iLN(H.selection)){var x=H.selection.selectionState||"START_DATE";ty(V,H.selection.start)&&(T+=" period-start ",x==="START_DATE"&&(T+="selected"));ty(V,H.selection.end)&&(T+=" period-end ",x==="END_DATE"&&(T+="selected"));rv(V,H.selection.start)||rv(H.selection.end,V)||(T+=" highlighted")}if(rv(l,H.start)||rv(H.end,l))T+=" disabled";H.circleToday&&
ty(l,I)&&(T+=" today");return T};var zWv=function(){return _.M.apply(this,arguments)||this};
_.t(zWv,_.M);_.B=zWv.prototype;_.B.attached=function(){var V=this;_.Al(this,function(){V.JSC$13689_calendarMain.scrollHeight>0&&(V.calendarConfig.selection?V.scrollToDate(VjK(V.calendarConfig.selection)):V.scrollToDate(V.calendarConfig.end))})};
_.B.updateSelection=function(V){V=HfN(Object.assign({},this.calendarConfig,{selection:V}),XRW);this.splice.apply(this,["renderData.months",0,V.length].concat(_.oI(V)))};
_.B.scrollToDate=function(V){this.renderData&&(V=TCW(V,this.renderData),V!==void 0&&this.JSC$13689_calendarMain.scrollToIndex(V))};
_.B.scrollToNextMonth=function(){this.JSC$13689_calendarMain.scrollToIndex(this.JSC$13689_calendarMain.firstVisibleIndex+1)};
_.B.scrollToPrevMonth=function(){this.JSC$13689_calendarMain.firstVisibleIndex===0&&this.JSC$13689_calendarMain.scrollTo(0,0);this.JSC$13689_calendarMain.scrollToIndex(this.JSC$13689_calendarMain.firstVisibleIndex-1)};
_.B.handleDayClick=function(V){_.xB(this.hostElement,"ytd-calendar-date-clicked",[V.model.day.date])};
_.B.handleDayMouseDown=function(V){V.preventDefault();_.xB(this.hostElement,"ytd-calendar-date-mousedown",[V.model.day.date])};
_.B.handleDayMouseUp=function(V){_.xB(this.hostElement,"ytd-calendar-date-mouseup",[V.model.day.date])};
_.B.handleDayMouseEnter=function(V){V.preventDefault();_.xB(this.hostElement,"ytd-calendar-date-mouseenter",[V.model.day.date])};
_.B.handleDayMouseLeave=function(V){_.xB(this.hostElement,"ytd-calendar-date-mouseleave",[V.model.day.date])};
_.vI.Object.defineProperties(zWv.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var V=this.calendarConfig,l=XRW;l=l===void 0?XRW:l;for(var I=[],H=0;H<7;H++)I.push(EJ.NARROWWEEKDAYS[(H+IIw)%7]);return{months:HfN(V,l),daysOfWeekLabel:I}}}});
var nV=zWv;_.O([_.q(),_.a("design:type",Object)],nV.prototype,"calendarConfig",void 0);_.O([_.Ij("#calendar-main"),_.a("design:type",Object)],nV.prototype,"JSC$13689_calendarMain",void 0);_.O([_.Q("calendarConfig"),_.a("design:type",Object),_.a("design:paramtypes",[])],nV.prototype,"renderData",null);nV=_.O([_.A({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],nV);
_.u(nV,"ytd-scrollable-calendar",function(){if(FHN!==void 0)return FHN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return FHN=V},{mode:2});var yJW;var tRE;var rJE=function(){var V=_.M.apply(this,arguments)||this;V.hideCharCounter=!1;V.hideLabel=!1;V.noLabelFloat=!1;V.autoValidate=!0;V.invalid=!1;V.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return V};
_.t(rJE,_.M);_.B=rJE.prototype;_.B.reset=function(V){this.value=V&&this.data?this.data.value=V:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.B.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.B.focusTextInput=function(){this.input.focus()};
_.B.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()};
_.B.valueChanged=function(){var V,l;if(((V=this.data)==null?0:V.value)||((l=this.data)==null?void 0:l.value)==="")this.value=this.data.value;else{var I;((I=this.data)==null?void 0:I.value)!==void 0||this.value||(this.value="")}};
_.B.computeLabel=function(V,l){return l?"":_.A5(V)};
_.B.computeAriaLabel=function(V,l){return l?_.A5(V):""};
_.B.computeErrorMessage=function(V,l,I,H){!V&&l?V=I||this.strings.REQUIRED_LABEL:(V=_.A5(H),V=_.kT(V,"&")?"document"in _.nK?EJ3(V):JBZ(V):V);return V};
_.B.computeType=function(V){return V==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.B.onTextValueChanged=function(V){this.value=V.detail.value;var l;(l=this.onValueChanged)==null||l.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.B.handleUpdateTextInputFormFieldRendererCommand=function(V){(V=_.y(V,hXN))&&this.data&&this.data.id===V.id&&(V.invalid!==void 0&&(this.invalid=V.invalid),V.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",V.invalidValueErrorMessage))};
_.B.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("value-changed",this.value))};
_.B.updateInvalidFromBinding=function(V){this.invalid=V.detail.value};
_.vI.Object.defineProperties(rJE.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var V;return!((V=this.data)==null||!V.isMultiline)}}});
var $$=rJE;$$.prototype.valueChangedForBinding=$$.prototype.valueChangedForBinding;$$.prototype.valueChanged=$$.prototype.valueChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],$$.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],$$.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],$$.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],$$.prototype,"value",void 0);_.O([_.q(),_.a("design:type",String)],$$.prototype,"pattern",void 0);_.O([_.q(),_.a("design:type",String)],$$.prototype,"errorMessage",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],$$.prototype,"componentStyle",void 0);_.O([_.q(),_.a("design:type",Object)],$$.prototype,"hideCharCounter",void 0);
_.O([_.q(),_.a("design:type",Object)],$$.prototype,"hideLabel",void 0);_.O([_.q(),_.a("design:type",Object)],$$.prototype,"noLabelFloat",void 0);_.O([_.q(),_.a("design:type",Function)],$$.prototype,"onValueChanged",void 0);_.O([_.q(),_.a("design:type",Boolean)],$$.prototype,"isMultilineOverride",void 0);_.O([_.q(),_.a("design:type",Object)],$$.prototype,"autoValidate",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$$.prototype,"invalid",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],$$.prototype,"enableOverlayTheme",void 0);_.O([_.q({value:{REQUIRED_LABEL:_.LT("REQUIRED_LABEL",void 0,"Required")}}),_.a("design:type",Object)],$$.prototype,"strings",void 0);_.O([_.Ij("#input"),_.a("design:type",Object)],$$.prototype,"input",void 0);_.O([_.Q("data","isMultilineOverride"),_.a("design:type",Object),_.a("design:paramtypes",[])],$$.prototype,"isMultiline",null);
_.O([_.xs("data.value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$$.prototype,"valueChanged",null);_.O([_.b("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$$.prototype,"valueChangedForBinding",null);$$=_.O([_.Lm({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],$$);
_.u($$,"yt-text-input-form-field-renderer",function(){if(tRE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;yJW===void 0&&(yJW=document.createElement("template"));var H=yJW;I.call(l,H.content.cloneNode(!0),V.content.firstChild);tRE=V}V=tRE;return V},{mode:2});var GXo=function(){var V=_.M.apply(this,arguments)||this;V.data=void 0;V.selectionState="START_DATE";V.isStartDateInvalid=!1;V.isEndDateInvalid=!1;V.autoapply=!1;V.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 V};
_.t(GXo,_.M);_.B=GXo.prototype;_.B.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"}}}}};
_.B.focus=function(){this.startDateInput.focus()};
_.B.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:GK(this.data.selection.start),end:GK(this.data.selection.end)})};
_.B.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.B.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.AB(this.selectionState)}};
_.B.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.B.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.B.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.B.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var V=this.calendar.calendarConfig,l=V.end;V=xFN({start:V.start,end:this.endDate||l},this.startDateInput.value||"");this.isStartDateInvalid=!V.isValid;V.isValid&&(V=V.value,this.selection=this.endDate?{start:V,end:this.endDate}:V,this.calendar.scrollToDate(V));this.updateInvalidState()}};
_.B.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var V=this.calendar.calendarConfig,l=V.start;V=xFN({start:this.startDate||l,end:V.end},this.endDateInput.value||"");this.isEndDateInvalid=!V.isValid;V.isValid&&(V=V.value,this.selection={start:this.startDate,end:V},this.calendar.scrollToDate(V));this.updateInvalidState()}};
_.B.handleCalendarDateClicked=function(V){var l=this.selection&&VjK(this.selection),I=this.selection&&lIw(this.selection);l&&!rv(V,l)&&this.selectionState==="END_DATE"?(this.selection={start:l,end:V},this.selectionState="START_DATE"):(I&&!rv(I,V)?this.selection={start:V,end:I}:this.selection=V,this.selectionState="END_DATE")};
_.B.handleCalendarDateMouseDown=function(V){this.selection&&!mpf(this.selection)&&(this.dragPivot=ty(V,this.selection.start)?this.selection.end:ty(V,this.selection.end)?this.selection.start:V)};
_.B.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.B.handleCalendarDateMouseEnter=function(V){this.dragPivot&&(this.selection={start:function(l,I){return rv(l,I)?l:I}(this.dragPivot,V),
end:function(l,I){return rv(l,I)?I:l}(this.dragPivot,V)},this.dragPivot||(this.selectionState="START_DATE"))};
_.B.handleCalendarDateMouseLeave=function(){};
_.B.handleCalendarSubmitDateRange=function(){this.selection&&!mpf(this.selection)&&_.xB(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.B.updateInvalidState=function(){var V=function(l,I){I?l.setAttribute("invalid",""):l.removeAttribute("invalid")};
V(this.startDateInput,this.isStartDateInvalid);V(this.endDateInput,this.isEndDateInvalid)};
_.B.updateDateStrings=function(){this.selection&&(mpf(this.selection)?gaT(this.selection):(gaT(this.selection.start),gaT(this.selection.end)))};
_.B.updateCalendarSelection=function(V){this.calendar.updateSelection(Object.assign({},V,{selectionState:this.selectionState}))};
_.B.updateIsStartDateInvalidFromBinding=function(V){this.isStartDateInvalid=V.detail.value};
_.B.updateIsEndDateInvalidFromBinding=function(V){this.isEndDateInvalid=V.detail.value};
_.B.updateStartDateStringFromBinding=function(){};
_.B.updateEndDateStringFromBinding=function(){};
_.vI.Object.defineProperties(GXo.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:GK(this.data.dateRangeStart),end:GK(this.data.dateRangeEnd),selection:{start:GK(this.data.selection.start),end:GK(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&VjK(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&lIw(this.selection)}}});
var d2=GXo;d2.prototype.resetTextboxes=d2.prototype.resetTextboxes;d2.prototype.observeSelection=d2.prototype.observeSelection;d2.prototype.dataChanged=d2.prototype.dataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],d2.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Ij("#calendar"),_.a("design:type",Object)],d2.prototype,"calendar",void 0);
_.O([_.Ij("#start-date"),_.a("design:type",Object)],d2.prototype,"startDateInput",void 0);_.O([_.Ij("#end-date"),_.a("design:type",Object)],d2.prototype,"endDateInput",void 0);_.O([_.q(),_.a("design:type",Object)],d2.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],d2.prototype,"selection",void 0);_.O([_.q(),_.a("design:type",String)],d2.prototype,"selectionState",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],d2.prototype,"calendarConfig",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],d2.prototype,"errorMessage",null);_.O([_.Q("selection"),_.a("design:type",Object),_.a("design:paramtypes",[])],d2.prototype,"startDate",null);_.O([_.Q("selection"),_.a("design:type",Object),_.a("design:paramtypes",[])],d2.prototype,"endDate",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],d2.prototype,"dataChanged",null);
_.O([_.b("selection","selectionState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],d2.prototype,"observeSelection",null);_.O([_.b("selectionState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],d2.prototype,"resetTextboxes",null);d2=_.O([_.A({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],d2);
_.u(d2,"ytd-date-period-picker-renderer",function(){if(kXw!==void 0)return kXw;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return kXw=V},{mode:1});var EyJ=function(){var V=_.M.apply(this,arguments)||this;var l={};V.actionMap=(l["ytd-date-period-picker-apply"]="handleDateRangeUpdated",l);return V};
_.t(EyJ,_.M);EyJ.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
EyJ.prototype.handleDateRangeUpdated=function(){};
var w2=EyJ;_.O([_.q(),_.a("design:type",Object)],w2.prototype,"data",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],w2.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],w2.prototype,"rendererstamperBehavior",void 0);w2=_.O([_.A({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],w2);
_.u(w2,"ytd-report-history-section-header-renderer",function(){if(eWN!==void 0)return eWN;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return eWN=V},{mode:1});var JJv;var oy0;var hWE;var PIi=function(){return _.M.apply(this,arguments)||this};
_.t(PIi,_.M);_.vI.Object.defineProperties(PIi.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?0:(l=V.icon)==null?0:l.iconType)?_.mj(this.data.icon.iconType):""}}});
var NT=PIi;_.O([_.q(),_.a("design:type",Object)],NT.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",String),_.a("design:paramtypes",[])],NT.prototype,"icon",null);NT=_.O([_.A({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],NT);
_.u(NT,"ytd-report-history-table-text-cell-renderer",function(){if(hWE!==void 0)return hWE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return hWE=V},{mode:1});var Dmi=function(){return _.M.apply(this,arguments)||this};
_.t(Dmi,_.M);Dmi.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
var KV=Dmi;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],KV.prototype,"data",void 0);KV=_.O([_.A({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],KV);
_.u(KV,"ytd-report-history-table-reason-cell-renderer",function(){if(oy0!==void 0)return oy0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return oy0=V},{mode:1});var Zcb=function(){return _.M.apply(this,arguments)||this};
_.t(Zcb,_.M);Zcb.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
var jL=Zcb;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],jL.prototype,"rendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],jL.prototype,"data",void 0);jL=_.O([_.A({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],jL);
_.u(jL,"ytd-report-history-table-cell-renderer",function(){if(JJv!==void 0)return JJv;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return JJv=V},{mode:1});var SrW;var Y$=function(){var V=_.M.apply(this,arguments)||this;V.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 V};
_.t(Y$,_.M);Y$.prototype.onDataChanged=function(){var V;if((V=this.data)==null?0:V.style)this.componentStyle=this.getStyleName(this.data.style)};
Y$.prototype.getCellForColumn=function(V){return this.cells.find(function(l){var I;return((I=_.y(l==null?void 0:l.cell,Kqb)||_.y(l==null?void 0:l.cell,N3i))==null?void 0:I.columnId)===V.type})};
Y$.prototype.getClassForColumn=function(V){switch(V){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Y$.prototype.getStyleName=function(V){switch(V){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.vI.Object.defineProperties(Y$.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.cells)||[]).map(function(l){return _.y(l,w6Z)})}}});
var LV=Y$;LV.prototype.onDataChanged=LV.prototype.onDataChanged;_.O([_.q(),_.a("design:type",Object)],LV.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Array)],LV.prototype,"columnRenderData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],LV.prototype,"componentStyle",void 0);_.O([_.Q("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],LV.prototype,"cells",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LV.prototype,"onDataChanged",null);LV=_.O([_.A({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],LV);
_.u(LV,"ytd-report-history-table-row-renderer",function(){if(SrW!==void 0)return SrW;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return SrW=V},{mode:1});var RWb;var QbN;var UFJ={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},nMt={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var eL=function(){return _.M.apply(this,arguments)||this};
_.t(eL,_.M);eL.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"}}}}}};
eL.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.vI.Object.defineProperties(eL.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.columns)?KPt(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return woW(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var V=this.tableSpec,l=UFJ;l=l===void 0?nMt:l;l=NCK(V.columnDimensions,V.columnsToShow||[],l);V=0;l=_.U(l);for(var I=l.next();!I.done;I=l.next())I=I.value,V+=I.minWidth+I.paddingLeft+I.paddingRight;return V}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
var k$=eL;_.O([_.R(_.i6),_.a("design:type",Object)],k$.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],k$.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k$.prototype,"tableSpec",null);_.O([_.Q("tableSpec"),_.a("design:type",Array),_.a("design:paramtypes",[])],k$.prototype,"columnRenderData",null);
_.O([_.Q("tableSpec"),_.a("design:type",Number),_.a("design:paramtypes",[])],k$.prototype,"totalMinWidth",null);_.O([_.Q("totalMinWidth"),_.a("design:type",String),_.a("design:paramtypes",[])],k$.prototype,"tableWidthStyle",null);k$=_.O([_.A({is:"ytd-table-renderer",disableElementRegistration:!0})],k$);
_.u(k$,"ytd-table-renderer",function(){if(QbN!==void 0)return QbN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return QbN=V},{mode:1});var cJw=function(){return _.M.apply(this,arguments)||this};
_.t(cJw,_.M);cJw.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var Fl=cJw;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Fl.prototype,"data",void 0);Fl=_.O([_.A({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Fl);
_.u(Fl,"ytd-report-reason-history-modal-renderer",function(){if(RWb!==void 0)return RWb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return RWb=V},{mode:1});var WHW;var bcW;var qrN;var MRZ=function(){return _.M.apply(this,arguments)||this};
_.t(MRZ,_.M);var Xl=MRZ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Xl.prototype,"data",void 0);Xl=_.O([_.A({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Xl);
_.u(Xl,"ytd-profile-column-stats-entry-renderer",function(){if(qrN!==void 0)return qrN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return qrN=V},{mode:1});var sbb;var pRZ=function(){return _.M.apply(this,arguments)||this};
_.t(pRZ,_.M);pRZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
var zh=pRZ;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zh.prototype,"data",void 0);zh=_.O([_.A({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],zh);
_.u(zh,"ytd-profile-column-stats-renderer",function(){if(sbb!==void 0)return sbb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return sbb=V},{mode:1});var AJB;var u7Z=function(){return _.M.apply(this,arguments)||this};
_.t(u7Z,_.M);_.vI.Object.defineProperties(u7Z.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.useThumbnailSize)return 80;var l,I;V=(l=this.data)==null?void 0:(I=l.thumbnail)==null?void 0:I.thumbnails;var H;return V&&((H=V[0])==null?void 0:H.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.useThumbnailSize)return 80;var l,I;V=(l=this.data)==null?void 0:(I=l.thumbnail)==null?void 0:I.thumbnails;var H;return V&&((H=V[0])==null?void 0:H.height)||80}}});
var y_=u7Z;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],y_.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],y_.prototype,"componentStyle",void 0);_.O([_.Q("data.useThumbnailSize"),_.a("design:type",Object),_.a("design:paramtypes",[])],y_.prototype,"thumbnailWidth",null);
_.O([_.Q("data.useThumbnailSize"),_.a("design:type",Object),_.a("design:paramtypes",[])],y_.prototype,"thumbnailHeight",null);y_=_.O([_.A({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],y_);
_.u(y_,"ytd-profile-column-user-info-renderer",function(){if(AJB!==void 0)return AJB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return AJB=V},{mode:1});var vy3=function(){return _.M.apply(this,arguments)||this};
_.t(vy3,_.M);vy3.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
var tC=vy3;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tC.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],tC.prototype,"componentStyle",void 0);tC=_.O([_.A({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],tC);
_.u(tC,"ytd-profile-column-renderer",function(){if(bcW!==void 0)return bcW;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return bcW=V},{mode:1});var OcE=function(){var V=_.M.apply(this,arguments)||this;V.componentStyle="NON_CENTERED_PROFILE";return V};
_.t(OcE,_.M);OcE.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
OcE.prototype.getIcon=function(V){return V?"settings:"+V.toLowerCase():null};
var r2=OcE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],r2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],r2.prototype,"data",void 0);r2=_.O([_.A({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],r2);
_.u(r2,"ytd-page-introduction-renderer",function(){if(WHW!==void 0)return WHW;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return WHW=V},{mode:1});var CIw;var aGv=function(){return _.M.apply(this,arguments)||this};
_.t(aGv,_.M);var Gh=aGv;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Gh.prototype,"data",void 0);Gh=_.O([_.A({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Gh);
_.u(Gh,"ytd-report-description-renderer",function(){if(CIw!==void 0)return CIw;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return CIw=V},{mode:1});var fGW;var gyv;var mmo=function(){return _.M.apply(this,arguments)||this};
_.t(mmo,_.M);mmo.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
var E1=mmo;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],E1.prototype,"data",void 0);E1=_.O([_.A({is:"ytd-video-report-renderer",disableElementRegistration:!0})],E1);
_.u(E1,"ytd-video-report-renderer",function(){if(gyv!==void 0)return gyv;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return gyv=V},{mode:1});var icb;_.yN("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.yN("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var JC=function(){return _.M.apply(this,arguments)||this};
_.t(JC,_.M);JC.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]]"}}}}}};
JC.prototype.computeMessageStyle=function(V){return V};
JC.prototype.computeButtonOverride=function(V){var l;if((V==null?0:(l=V.style)==null?0:l.value)&&V.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
var oy=JC;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],oy.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],oy.prototype,"shelf",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],oy.prototype,"panel",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.a("design:type",Boolean)],oy.prototype,"componentStyle",void 0);_.O([_.q({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],oy.prototype,"buttonOverride",void 0);oy=_.O([_.A({is:"ytd-message-renderer",disableElementRegistration:!0})],oy);
_.u(oy,"ytd-message-renderer",function(){if(icb!==void 0)return icb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return icb=V},{mode:1});var hC=function(){return _.M.apply(this,arguments)||this};
_.t(hC,_.M);hC.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"}}}};
hC.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
hC.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.vI.Object.defineProperties(hC.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var V,l;return!!(((V=this.data)==null?0:V.header)&&((l=this.data)==null?0:l.table))}}});
var PS=hC;PS.prototype.onRequestError=PS.prototype.onRequestError;_.O([_.R(_.i6),_.a("design:type",Object)],PS.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],PS.prototype,"data",void 0);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],PS.prototype,"isUnifiedReportHistory",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PS.prototype,"onRequestError",null);PS=_.O([_.A({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],PS);
_.u(PS,"ytd-report-history-section-renderer",function(){if(fGW!==void 0)return fGW;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return fGW=V},{mode:1});var VeN;var lFa=function(){var V=_.M.apply(this,arguments)||this;V.answerExpanded=!1;return V};
_.t(lFa,_.M);lFa.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
var Ds=lFa;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ds.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ds.prototype,"answerExpanded",void 0);Ds=_.O([_.A({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Ds);
_.u(Ds,"ytd-handles-claiming-faq-renderer",function(){if(VeN!==void 0)return VeN;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return VeN=V},{mode:1});var IFN;var H3i=function(){return _.M.apply(this,arguments)||this};
_.t(H3i,_.M);var TDv=H3i;_.O([_.q(),_.a("design:type",Object)],TDv.prototype,"data",void 0);TDv=_.O([_.A({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],TDv);
_.u(TDv,"ytd-handles-claiming-faq-section-renderer",function(){if(IFN!==void 0)return IFN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return IFN=V},{mode:1});var BDa;var xGa=function(){var V=_.M.apply(this,arguments)||this;V.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";V.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";V.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";V.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";V.leftSquiggly=V.leftSquigglyLight;V.rightSquiggly=V.rightSquigglyLight;
V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};V.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return V};
_.t(xGa,_.M);_.B=xGa.prototype;_.B.updateLeftSquigglyStyle=function(){_.i3(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.B.updateRightSquigglyStyle=function(){_.i3(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.B.ready=function(){var V=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(V)};
_.B.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.set("isDarkTheme",V),V?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.B.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
var Zs=xGa;Zs.prototype.updateRightSquigglyStyle=Zs.prototype.updateRightSquigglyStyle;Zs.prototype.updateLeftSquigglyStyle=Zs.prototype.updateLeftSquigglyStyle;_.O([_.q(),_.a("design:type",Object)],Zs.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Zs.prototype,"isDarkTheme",void 0);_.O([_.q(),_.a("design:type",String)],Zs.prototype,"leftSquiggly",void 0);_.O([_.q(),_.a("design:type",String)],Zs.prototype,"rightSquiggly",void 0);
_.O([_.b("leftSquiggly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zs.prototype,"updateLeftSquigglyStyle",null);_.O([_.b("rightSquiggly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zs.prototype,"updateRightSquigglyStyle",null);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Zs.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Zs.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Zs.prototype,"actionButtonOverride",void 0);Zs=_.O([_.A({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Zs);
_.u(Zs,"ytd-handles-claiming-header-renderer",function(){if(BDa!==void 0)return BDa;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return BDa=V},{mode:1});var UGi;var nPo=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};V.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";V.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";V.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";V.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
V.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";V.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";V.image0SquigglyBackground=V.image0LightSquigglyBackground;V.image1SquigglyBackground=V.image1LightSquigglyBackground;V.image3SquigglyBackground=V.image3LightSquigglyBackground;return V};
_.t(nPo,_.M);_.B=nPo.prototype;_.B.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.B.onDataChanged=function(){this.updateTitleAndImages()};
_.B.onThemeChanged=function(){this.updateTitleAndImages()};
_.B.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.isDarkTheme=V)};
_.B.updateImage0SquigglyBackground=function(){_.i3(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.B.updateImage1SquigglyBackground=function(){_.i3(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.B.updateImage3SquigglyBackground=function(){_.i3(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.B.updateTitleAndImages=function(){var V,l;((V=this.data)==null?void 0:(l=V.titleImages)==null?void 0:l.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
var SL=nPo;SL.prototype.updateImage3SquigglyBackground=SL.prototype.updateImage3SquigglyBackground;SL.prototype.updateImage1SquigglyBackground=SL.prototype.updateImage1SquigglyBackground;SL.prototype.updateImage0SquigglyBackground=SL.prototype.updateImage0SquigglyBackground;SL.prototype.onThemeChanged=SL.prototype.onThemeChanged;SL.prototype.onDataChanged=SL.prototype.onDataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],SL.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],SL.prototype,"isDarkTheme",void 0);_.O([_.q(),_.a("design:type",Object)],SL.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],SL.prototype,"title0",void 0);_.O([_.q(),_.a("design:type",Object)],SL.prototype,"title1",void 0);_.O([_.q(),_.a("design:type",Object)],SL.prototype,"title2",void 0);_.O([_.q(),_.a("design:type",Object)],SL.prototype,"title3",void 0);
_.O([_.q(),_.a("design:type",Object)],SL.prototype,"title4",void 0);_.O([_.q(),_.a("design:type",Object)],SL.prototype,"image0",void 0);_.O([_.q(),_.a("design:type",Object)],SL.prototype,"image1",void 0);_.O([_.q(),_.a("design:type",Object)],SL.prototype,"image2",void 0);_.O([_.q(),_.a("design:type",Object)],SL.prototype,"image3",void 0);_.O([_.q(),_.a("design:type",Object)],SL.prototype,"image4",void 0);_.O([_.q(),_.a("design:type",String)],SL.prototype,"image0SquigglyBackground",void 0);
_.O([_.q(),_.a("design:type",String)],SL.prototype,"image1SquigglyBackground",void 0);_.O([_.q(),_.a("design:type",String)],SL.prototype,"image3SquigglyBackground",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SL.prototype,"onDataChanged",null);_.O([_.b("isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SL.prototype,"onThemeChanged",null);
_.O([_.b("image0SquigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SL.prototype,"updateImage0SquigglyBackground",null);_.O([_.b("image1SquigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SL.prototype,"updateImage1SquigglyBackground",null);
_.O([_.b("image3SquigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SL.prototype,"updateImage3SquigglyBackground",null);SL=_.O([_.A({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],SL);
_.u(SL,"ytd-handles-claiming-title-images-section-renderer",function(){if(UGi!==void 0)return UGi;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return UGi=V},{mode:1});var $Gv;var Ry=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(Ry,_.M);Ry.prototype.ready=function(){var V=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(V)};
Ry.prototype.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&this.set("isDarkTheme",V)};
Ry.prototype.onCopyButtonClick=function(){var V=this,l,I,H;return _.d(function(T){return(l=V.data)!=null&&l.primaryChannelUrl?_.K(T,navigator.clipboard.writeText(((I=V.data)==null?0:I.encodedChannelUrl)?V.data.encodedChannelUrl:"https://"+_.A5((H=V.data)==null?void 0:H.primaryChannelUrl)),0):T.jumpTo(0)})};
var Q_=Ry;_.O([_.q(),_.a("design:type",Object)],Q_.prototype,"data",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Q_.prototype,"ytComponentBehavior",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Q_.prototype,"isDarkTheme",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Q_.prototype,"ytActionHandlerBehavior",void 0);Q_=_.O([_.A({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Q_);
_.u(Q_,"ytd-handles-claiming-update-social-renderer",function(){if($Gv!==void 0)return $Gv;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return $Gv=V},{mode:1});var dGZ;var cS=function(){var V=_.M.apply(this,arguments)||this;V.JSC$13784_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";V.JSC$13784_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};V.squigglyBackground=V.JSC$13784_squigglyBackgroundLight;return V};
_.t(cS,_.M);cS.prototype.updateSquigglyBackgroundStyle=function(){_.i3(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
cS.prototype.ready=function(){var V=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",V);this.squigglyBackground=V?this.JSC$13784_squigglyBackgroundDark:this.JSC$13784_squigglyBackgroundLight};
cS.prototype.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.set("isDarkTheme",V),this.squigglyBackground=V?this.JSC$13784_squigglyBackgroundDark:this.JSC$13784_squigglyBackgroundLight)};
var WS=cS;WS.prototype.updateSquigglyBackgroundStyle=WS.prototype.updateSquigglyBackgroundStyle;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],WS.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],WS.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],WS.prototype,"isDarkTheme",void 0);_.O([_.q(),_.a("design:type",String)],WS.prototype,"squigglyBackground",void 0);_.O([_.b("squigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WS.prototype,"updateSquigglyBackgroundStyle",null);WS=_.O([_.A({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],WS);
_.u(WS,"ytd-handles-claiming-vanity-info-renderer",function(){if(dGZ!==void 0)return dGZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return dGZ=V},{mode:1});var w5W;var NDW=function(){var V=_.M.apply(this,arguments)||this;V.JSC$13787_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";V.JSC$13787_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";V.squigglyBackground=V.JSC$13787_squigglyBackgroundLight;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(NDW,_.M);_.B=NDW.prototype;_.B.ready=function(){var V=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(V)};
_.B.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.set("isDarkTheme",V),this.squigglyBackground=V?this.JSC$13787_squigglyBackgroundDark:this.JSC$13787_squigglyBackgroundLight)};
_.B.updateSquigglyBackgroundStyle=function(){_.i3(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.B.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.B.detached=function(){this.stop()};
_.B.stop=function(){this.playerElement.stop()};
_.B.setupVideoPlayer=function(){var V=this,l,I;return _.d(function(H){l=V.data.videoId;I="http://i1.ytimg.com/vi/"+l+"/maxresdefault.jpg";V.playerElement.loadVideoWithPlayerVars({video_id:l,iurlhq:I});_.FU(H)})};
var bd=NDW;bd.prototype.onDataChanged=bd.prototype.onDataChanged;bd.prototype.updateSquigglyBackgroundStyle=bd.prototype.updateSquigglyBackgroundStyle;_.O([_.q({value:!1}),_.a("design:type",Boolean)],bd.prototype,"isDarkTheme",void 0);_.O([_.q(),_.a("design:type",String)],bd.prototype,"squigglyBackground",void 0);_.O([_.Ij("#player"),_.a("design:type",Object)],bd.prototype,"playerElement",void 0);_.O([_.q(),_.a("design:type",Object)],bd.prototype,"data",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],bd.prototype,"ytActionHandlerBehavior",void 0);_.O([_.b("squigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bd.prototype,"updateSquigglyBackgroundStyle",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bd.prototype,"onDataChanged",null);
bd=_.O([_.A({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],bd);
_.u(bd,"ytd-handles-claiming-video-item-renderer",function(){if(w5W!==void 0)return w5W;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return w5W=V},{mode:1});var KvZ;var MT=function(){var V=_.To.apply(this,arguments)||this;V.dragging=!1;V.dragMouseStart=0;V.dragOffsetStart=0;V.containerWidthDiff=0;V.boundPrevClick=function(){V.set("offset",qT(V,V.offset-(V.scrollDistance||320)))};
V.boundNextClick=function(){V.set("offset",qT(V,V.offset+(V.scrollDistance||320)))};
V.boundScrollContainerMouseDown=function(l){V.dragMouseStart=l.clientX;V.dragOffsetStart=V.offset;V.dragging=!0};
V.boundScrollContainerDrag=function(l){V.dragging&&V.set("offset",qT(V,V.dragOffsetStart-(l.clientX-V.dragMouseStart)))};
V.boundMouseUp=function(){V.onMouseUp()};
V.boundWheelScroll=function(l){var I=0;Math.abs(l.deltaX)>=Math.abs(l.deltaY)?I=l.deltaX:l.shiftKey&&(I=l.deltaY);I!==0&&(V.offset+=I,l.stopPropagation(),l.preventDefault())};
V.boundChipCloudChipScrollIntoView=function(l){(l=l.detail)&&V.scrollChipIntoView(l)};
return V};
_.t(MT,_.To);MT.prototype.attached=function(){var V=_.h(this.hostElement).querySelector("#scroll-container");V.addEventListener("wheel",this.boundWheelScroll);V.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);V.style.touchAction="pan-y";V.addEventListener("pointerdown",this.boundScrollContainerMouseDown);V.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
MT.prototype.detached=function(){var V=_.h(this.hostElement).querySelector("#scroll-container");V.removeEventListener("wheel",this.boundWheelScroll);V.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);V.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);V.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
MT.prototype.reset=function(){this.set("offset",0);_.Al(this,this.setContainerWidthDiff);s1(this)};
var qT=function(V,l){return Math.min(Math.max(l,0),V.containerWidthDiff)};
MT.prototype.onMouseUp=function(){this.dragging=!1};
MT.prototype.transformContainer=function(){this.offset=qT(this,this.offset);var V=_.h6("HTML_DIR")==="rtl"?"":"-";_.h(this.hostElement).querySelector("#chips").style.transform="translateX("+V+this.offset+"px)";s1(this)};
var s1=function(V){_.Al(V,V.setButtonsState)};
MT.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=qT(this,this.offset));this.atStart=this.offset<=0};
MT.prototype.setContainerWidthDiff=function(){var V=_.h(this.hostElement).querySelector("#scroll-container"),l=_.h(this.hostElement).querySelector("#chips");V&&l&&(this.containerWidthDiff=l.clientWidth-V.clientWidth)};
MT.prototype.scrollChipIntoView=function(V){var l=_.h(this.hostElement).querySelector("#scroll-container");if(l){var I=this.atStart?0:106,H=this.atEnd?0:106;V.offsetLeft<this.offset+I?this.offset=qT(this,V.offsetLeft-I):V.offsetLeft+V.clientWidth>this.offset+l.clientWidth-H&&(this.offset=qT(this,V.offsetLeft+V.clientWidth+H-l.clientWidth))}};
var pV=MT;pV.prototype.transformContainer=pV.prototype.transformContainer;_.O([_.q({value:0}),_.a("design:type",Number)],pV.prototype,"offset",void 0);_.O([_.q({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],pV.prototype,"atStart",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],pV.prototype,"atEnd",void 0);_.O([_.q(),_.a("design:type",Number)],pV.prototype,"scrollDistance",void 0);
_.O([_.b("offset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pV.prototype,"transformContainer",null);pV=_.O([_.B1()],pV);var j0Z;var Y0o;var k5w=_.W1(function(V){var l=V.data;V=_.U(_.xi(!1,void 0,"icHmSe"));var I=V.next().value,H=V.next().value;V={};V=_.ii("ytChipShapeChip",function(){a:switch(l==null?void 0:l().state){case 0:var w="ytChipShapeActive";break a;case 1:w="ytChipShapeDisabled";break a;default:w="ytChipShapeInactive"}return w},function(){var w=l().type===1||l().type===2,N=l();
return w||N!=null&&N.startIcon?N==null||!N.startIcon||N!=null&&N.text?w?"ytChipShapeEndIconPadding":(N==null?0:N.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(V.ytChipShapeFocused=function(){var w;
return I()&&((w=l())==null?void 0:w.state)!==1},V));
var T=function(w){if((l==null?void 0:l().state)!==1){var N,L;(L=(N=l()).onTap)==null||L.call(N,w)}},x=_.Bu(function(){var w=_.F().resolve(_.Cs(_.eM));
if(w){H(w.isKeyBoardInUse());var N,L;(L=(N=l()).onFocusIn)==null||L.call(N)}return!1}),n=_.Bu(function(){H(!1);
return!1});
return _.Y("chip-shape",{class:"ytChipShapeHost","on:focusin":x,"on:focusout":n},_.Y(Lv3,{shouldWrapInButton:function(){return l().type!==2},
selected:function(){return l().state===0},
onClick:T,isDropdown:function(){return l().type===1},
accessibilityLabel:function(){return l().accessibilityLabel}},_.Y("div",{class:V},_.Y(_.NS,{cond:function(){return l().startIcon},
then:function(){return _.Y(_.dq,{icon:function(){var w;return(w=l())==null?void 0:w.startIcon},
className:function(){return l().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return l().text},_.Y(ezN,{shape:l,
onClick:T}))))},"lb");
k5w.idomCompat=!0;var Lv3=_.W1(function(V){var l=_.Bu(function(I){V.onClick(I);return!1});
return _.Y(_.NS,{cond:V.shouldWrapInButton,then:function(){return _.Y("button",{class:"ytChipShapeButtonReset","on:click":l,role:function(){return V.isDropdown()?"combobox":"tab"},
"aria-label":V.accessibilityLabel,"aria-selected":V.selected},V.children)},
else:function(){return V.children}})},"mb"),ezN=_.W1(function(V){var l=V.shape;
var I=V.onClick;var H=_.Bu(function(T){I(T);return!1});
return _.Y(_.YG,null,_.Y(_.jN,{when:function(){return l().type===1}},function(){return _.Y(_.dq,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.Y(_.jN,{when:function(){return l().type===2}},function(){return _.Y("button",{class:"ytChipShapeButtonReset",
"on:click":H},_.Y(_.dq,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.Y(_.jN,{when:function(){return l().type===0}},function(){return _.Y(_.CN,null)}))},"nb");_.MR(k5w,"chip-shape",{props:{data:_.b9}});var FvZ=function(){var V=_.M.apply(this,arguments)||this;V.disableDeselectEvent=!1;V.modern=_.z("web_modern_typography");V.useChipShape=_.z("web_chip_shape_defrag");V.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return V};
_.t(FvZ,_.M);_.B=FvZ.prototype;_.B.beforeRegister=function(){_.z("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.B.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.B.onSelectChipCommand=function(V){if(!this.selected&&this.data&&(V=_.y(V,X_W),V.targetId&&V.targetId===this.data.targetId))this.onTap()};
_.B.onFilterChipTransformCommand=function(V){if(!this.selected&&this.data){var l;(V=(l=_.y(V,EL0))==null?void 0:l.chipUniqueId)&&V===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.B.dataChanged=function(){var V=this;_.Al(this,function(){V.data&&V.data.isSelected&&!V.selected&&(V.scrollChipIntoView(),V.onTap())})};
_.B.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.B.computeChipStyle=function(V){return V!=null?V:"STYLE_DEFAULT"};
_.B.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.xB(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.xB(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.B.onFocus=function(){var V=_.F().resolve(_.Cs(_.eM));V&&V.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.B.scrollChipIntoView=function(){_.B$(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.vI.Object.defineProperties(FvZ.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return FPy({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
var AC=FvZ;AC.prototype.onFocus=AC.prototype.onFocus;AC.prototype.onTap=AC.prototype.onTap;AC.prototype.selectionChanged=AC.prototype.selectionChanged;AC.prototype.dataChanged=AC.prototype.dataChanged;_.O([_.R(_.GZ),_.a("design:type",Object)],AC.prototype,"ironButtonState",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],AC.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],AC.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.yn),_.a("design:type",Object)],AC.prototype,"ironA11yKeysBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],AC.prototype,"disableDeselectEvent",void 0);_.O([_.q(),_.a("design:type",Object)],AC.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.icon"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],AC.prototype,"hasIcon",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.uniqueId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],AC.prototype,"isGnomeChip",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],AC.prototype,"modern",void 0);_.O([_.q({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.a("design:type",String)],AC.prototype,"chipStyle",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],AC.prototype,"selected",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],AC.prototype,"useChipShape",void 0);_.O([_.Q("data","selected"),_.a("design:type",Object),_.a("design:paramtypes",[])],AC.prototype,"chipShapeData",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AC.prototype,"dataChanged",null);_.O([_.b("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AC.prototype,"selectionChanged",null);
_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AC.prototype,"onTap",null);_.O([_.W("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AC.prototype,"onFocus",null);AC=_.O([_.Lm({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],AC);
_.u(AC,"yt-chip-cloud-chip-renderer",function(){if(Y0o===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;j0Z===void 0&&(j0Z=document.createElement("template"));var H=j0Z;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Y0o=V}V=Y0o;return V},{mode:2});var X50=function(){var V=_.M.apply(this,arguments)||this;V.isDarkTheme=!1;V.notSticky=!1;V.transparentBackground=!1;V.shouldHide=!1;V.disableSticky=!1;V.fluidWidth=!1;V.isClipList=!1;V.defaultChipIndex=0;V.isPlaylist=!1;V.playlistVotingAnimationEnabled=_.z("web_enable_voting_animation");V.toolbarHeight=0;V.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return V};
_.t(X50,_.M);_.B=X50.prototype;
_.B.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}}}}}};
_.B.attached=function(){var V=this;document.addEventListener("scroll",_.VP(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var l;this.toolbarHeight=((l=document.querySelector("ytd-masthead"))==null?void 0:l.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(I){V.handleIntersect(I)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){V.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.B.detached=function(){var V;(V=this.intersectionObserver)==null||V.disconnect();var l;(l=this.resizeObserver)==null||l.disconnect();document.removeEventListener("scroll",_.VP(this,this.updateChipBarWidthAndTop))};
_.B.dataChanged=function(){var V=this,l,I,H;((H=_.y((l=this.data)==null?void 0:(I=l.contents)==null?void 0:I[0],MKa))==null?void 0:H.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var T=this.findSelectedChipIndex();this.selectedIndex!==T&&(this.selectedIndex=-1);_.Al(this,function(){V.selectedIndex=T;V.updating=!1;V.ytScrollableChipCloudBehavior.reset()})};
_.B.findSelectedChipIndex=function(){var V;if((V=this.data)==null||!V.contents)return 0;V=this.data.contents;for(var l=0;l<V.length;l++){var I=void 0;if((I=_.y(V[l],MKa))==null?0:I.isSelected)return l}return 0};
_.B.computeStyle=function(V){return V};
_.B.handleChipCloudChipSelectAction=function(V){V=this.JSC$13806_chipsSelector.indexOf(V);V>-1&&this.JSC$13806_chipsSelector.selectIndex(V)};
_.B.handleChipCloudChipDeselectAction=function(){if(_.z("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var V,l,I,H=(I=_.y((V=this.data)==null?void 0:(l=V.contents)==null?void 0:l[0],MKa))==null?void 0:I.navigationEndpoint;H&&_.xB(this.hostElement,"yt-browse-section-list-reload-endpoint",[H]);this.JSC$13806_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.B.onGuideIsExpandedChanged=function(){var V=this.ytScrollableChipCloudBehavior;_.Al(V,V.setContainerWidthDiff);s1(this.ytScrollableChipCloudBehavior)};
_.B.onResize=function(){var V=this.ytScrollableChipCloudBehavior;_.Al(V,V.setContainerWidthDiff);s1(this.ytScrollableChipCloudBehavior)};
_.B.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.B.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.B.handleIntersect=function(V){_.z("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||V[0].intersectionRatio===1)};
_.B.updateDimensions=function(){var V=this.ytRendererBehavior.parentComponent;if(V){var l,I=(l=V.headerElement)!=null?l:V;_.i3(this.hostElement,{"--ytd-rich-grid-chips-bar-width":I.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.B.updateSelectedIndexFromBinding=function(V){this.selectedIndex=V.detail.value};
_.B.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var V;(V=this.sortFilterHeaderRendererElement)==null||V.setAttribute("is-playlist-page-with-filters","")}};
_.B.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.IA({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.vI.Object.defineProperties(X50.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 V,l,I=(V=this.data)==null?void 0:(l=V.contents)==null?void 0:l.find(function(H){return _.y(H,uei)});
return{sortFilterHeaderRenderer:_.y(I,uei)}}}});
var ud=X50;ud.prototype.dispatchChipBarIsSticky=ud.prototype.dispatchChipBarIsSticky;ud.prototype.isPlaylistPageChanged=ud.prototype.isPlaylistPageChanged;ud.prototype.updateChipBarWidthAndTop=ud.prototype.updateChipBarWidthAndTop;ud.prototype.onResize=ud.prototype.onResize;ud.prototype.onGuideIsExpandedChanged=ud.prototype.onGuideIsExpandedChanged;ud.prototype.dataChanged=ud.prototype.dataChanged;
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ud.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ud.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.Da),_.a("design:type",Object)],ud.prototype,"ironResizableBehavior",void 0);_.O([_.R(),_.a("design:type",pV)],ud.prototype,"ytScrollableChipCloudBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],ud.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ud.prototype,"data",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],ud.prototype,"selectedIndex",void 0);_.O([_.q({value:320}),_.a("design:type",Number)],ud.prototype,"scrollDistance",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ud.prototype,"isDarkTheme",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ud.prototype,"notSticky",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ud.prototype,"transparentBackground",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.a("design:type",String)],ud.prototype,"componentStyle",void 0);_.O([_.q({selector:_.Gsc}),_.a("design:type",Boolean)],ud.prototype,"guideIsExpanded",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ud.prototype,"shouldHide",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ud.prototype,"disableSticky",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ud.prototype,"fluidWidth",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ud.prototype,"isClipList",void 0);_.O([_.q(),_.a("design:type",Object)],ud.prototype,"defaultChipIndex",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ud.prototype,"isPlaylist",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],ud.prototype,"playlistVotingAnimationEnabled",void 0);_.O([_.Ij("#chips"),_.a("design:type",Object)],ud.prototype,"JSC$13806_chipsSelector",void 0);_.O([_.Ij("ytd-sort-filter-header-renderer"),_.a("design:type",HTMLElement)],ud.prototype,"sortFilterHeaderRendererElement",void 0);
_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],ud.prototype,"updating",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ud.prototype,"dataChanged",null);_.O([_.b("guideIsExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ud.prototype,"onGuideIsExpandedChanged",null);
_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ud.prototype,"onResize",null);_.O([_.xs("isChannelPageGrid","disableSticky","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ud.prototype,"updateChipBarWidthAndTop",null);_.O([_.Q("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ud.prototype,"isChannelPageGrid",null);
_.O([_.Q("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ud.prototype,"isHashtagLandingPage",null);_.O([_.b("isPlaylistPage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ud.prototype,"isPlaylistPageChanged",null);_.O([_.Q("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ud.prototype,"isPlaylistPage",null);
_.O([_.Q("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ud.prototype,"isDisableDeselectEvent",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ud.prototype,"sortFilterHeaderRendererData",null);_.O([_.q({reflectToAttribute:!0,selector:_.Znq}),_.a("design:type",String)],ud.prototype,"frostedGlassMode",void 0);
_.O([_.b("notSticky"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ud.prototype,"dispatchChipBarIsSticky",null);ud=_.O([_.A({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],ud);
_.u(ud,"ytd-feed-filter-chip-bar-renderer",function(){if(KvZ!==void 0)return KvZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return KvZ=V},{mode:1});var zzB;var yEJ=_.W1(function(V){var l=V.data;var I=V.buttonIndex;var H=V.selectedIndex;var T=V.onSelect;var x=function(){return I()===H()},n=function(){var N,L;
return(L=(N=l().text)==null?void 0:N.content)!=null?L:""};
_.Bu(function(){});
V=_.Q1();var w=_.Bu(function(){T(l().onSubmitCommand);return!1});
return _.Y("yt-toggleable-image-button-view-model",{class:function(){var N={};N=(N["toggleable-image-button-view-model-wiz"]=!0,N[""]=!0,N["toggleable-image-button-view-model-wiz__semi-transparent"]=H()!==-1&&!x(),N);return _.l8(N)},
tabindex:0,"aria-label":n,"aria-pressed":x,role:"button","on:keydown":V,"on:click":w},_.Y(_.NS,{cond:function(){return l().logo},
then:function(N){return _.Y(_.cX,{data:N,className:function(){var L={};L=(L["toggleable-image-button-view-model-wiz__image"]=!0,L["toggleable-image-button-view-model-wiz__circular-radius"]=!(!l().backgroundColor||!l().backgroundColorDarkMode),L["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(x()&&l().backgroundColor&&l().backgroundColorDarkMode),L);return _.l8(L)},
alt:n,useWidth:!1,style:function(){if(x()&&l().backgroundColor&&l().backgroundColorDarkMode){var L=GR(Number(l().backgroundColorDarkMode),"1");var e=GR(Number(l().backgroundColor),"1");L="background: linear-gradient(180deg,"+L+","+e+") border-box;"}else L="";return L}})}}),_.Y(_.Ka,{model:{borderRadius:"16px"}}),_.Y("p",{class:function(){var N={};
N=(N["toggleable-image-button-view-model-wiz__label"]=!0,N["toggleable-image-button-view-model-wiz__bold-text"]=x(),N);return _.l8(N)}},_.Y(_.Ni,{text:function(){return l().text}})))},"ob");
yEJ.idomCompat=!0;var rEW=_.W1(function(V){var l=V.data;V=_.U(_.xi({index:-1,command:{}},void 0,"Zcqtsb"));var I=V.next().value,H=V.next().value;return _.Y("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.Y("div",{class:"nudge-form-view-model-wiz__form-options"},_.Y(_.rw,{data:function(){return l().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(T,x){return _.Y(yEJ,{data:T.data,buttonIndex:x,selectedIndex:function(){return I().index},
onSelect:function(n){H({index:x(),command:n})}})}})),_.Y(_.Ni,{text:function(){return l().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.Y("div",{class:"nudge-form-view-model-wiz__submit"},_.Y(_.rw,{data:function(){return l().submitButton}},{buttonViewModel:function(T){return _.Y(tew,{data:T.data,
isDisabled:function(){return I().index===-1},
onClick:function(){_.EI(I().command)}})}})))},"pb");
rEW.idomCompat=!0;var tew=_.W1(function(V){var l=_.Ny(function(){return Object.assign({},V.data(),{state:V.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.Y(_.Db,{data:l,onClick:V.onClick})},"qb");_.MR(rEW,"yt-nudge-form-view-model",{props:{data:_.b9}});var G50=function(){var V=_.M.apply(this,arguments)||this;V.roundedContainer=!0;V.buttonUpdate=_.z("web_modern_buttons");V.isDarkMode=!1;V.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return V};
_.t(G50,_.M);_.B=G50.prototype;_.B.computeNudgeStyle=function(V){return V?"modernized-nudge":""};
_.B.handleDarkModeToggledAction=function(V){this.isDarkMode=V};
_.B.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.B.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"}}}};
_.B.computeIsHorizontalButtons=function(V){return V?!!V.applyModernizedStyle&&!!V.enableHorizontalButtons&&!!V.secondaryButton:!1};
_.vI.Object.defineProperties(G50.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=(V=this.data)==null?void 0:V.backgroundStyle)!=null?l:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=(V=this.data)==null?void 0:V.contentsLocation)!=null?l:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null?0:V.lightIconImage)}}});
var vS=G50;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],vS.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],vS.prototype,"actionHandlerBehavior",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("isHideEnclosingAction"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],vS.prototype,"isHidden",null);_.O([_.q(),_.a("design:type",Object)],vS.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vS.prototype,"roundedContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vS.prototype,"buttonUpdate",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.a("design:type",String)],vS.prototype,"nudgeStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.trimStyle"),_.a("design:type",String),_.a("design:paramtypes",[])],vS.prototype,"trimStyle",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.backgroundStyle"),_.a("design:type",String),_.a("design:paramtypes",[])],vS.prototype,"backgroundStyle",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.contentsLocation"),_.a("design:type",String),_.a("design:paramtypes",[])],vS.prototype,"contentsLocation",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.disableDropShadow"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],vS.prototype,"noShadow",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.lightIconImage"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],vS.prototype,"noIcon",null);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.a("design:type",Boolean)],vS.prototype,"isHorizontalButtons",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Object)],vS.prototype,"isDarkMode",void 0);vS=_.O([_.A({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],vS);
_.u(vS,"ytd-feed-nudge-renderer",function(){if(zzB!==void 0)return zzB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return zzB=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var EPi;var JEE;var O1=function(){var V=_.M.apply(this,arguments)||this;V.collapsed=!1;V.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return V};
_.t(O1,_.M);O1.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"}}}};
O1.prototype.handleRatingSelect=function(){var V;((V=this.data)==null?0:V.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
O1.prototype.handleShowSurvey=function(){this.collapsed=!1};
var CV=O1;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],CV.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],CV.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.SE),_.a("design:type",Object)],CV.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],CV.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],CV.prototype,"collapsed",void 0);CV=_.O([_.A({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],CV);
_.u(CV,"ytd-slimline-survey-renderer",function(){if(JEE!==void 0)return JEE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return JEE=V},{mode:1});var oPa;var hza=function(){return _.M.apply(this,arguments)||this};
_.t(hza,_.M);hza.prototype.maybeGetBackgroundColor=function(V){return this.isDarkMode?V.section2Color:V.section3Color};
hza.prototype.colorPaletteChanged=function(){var V=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;V&&(V==null?0:V.secondaryTitleColor)&&this.maybeGetBackgroundColor(V)?(this.hostElement.style.backgroundColor=_.tv(this.maybeGetBackgroundColor(V)),this.hostElement.style.color=_.tv(V.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
var ay=hza;ay.prototype.colorPaletteChanged=ay.prototype.colorPaletteChanged;_.O([_.R(_.DS),_.a("design:type",Object)],ay.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ay.prototype,"data",void 0);_.O([_.q({selector:function(V){return V.ui.darkModeIsEnabled}}),
_.a("design:type",Boolean)],ay.prototype,"isDarkMode",void 0);_.O([_.q(),_.a("design:type",Object)],ay.prototype,"lightColorPalette",void 0);_.O([_.q(),_.a("design:type",Object)],ay.prototype,"darkColorPalette",void 0);_.O([_.b("darkColorPalette","lightColorPalette","data","isDarkMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ay.prototype,"colorPaletteChanged",null);ay=_.O([_.A({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],ay);
_.u(ay,"ytd-endorsement-header-renderer",function(){if(oPa!==void 0)return oPa;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return oPa=V},{mode:1});_.MR(_.R_,"yt-decorated-avatar-view-model",{props:{data:_.b9,className:_.b9}});var Pki=function(){var V=_.M.apply(this,arguments)||this;V.fullHeight=_.z("web_rich_grid_media_full_height");V.showChannelAvatar=!0;V.hasPlaylistThumbnail=!1;V.prepareThumbnailForPageTransition=function(){_.z("web_thumbnail_to_watch_transition")&&(V.thumbnail.style.viewTransitionName="thumbnail-to-watch",V.cleanupThumbnailAfterPageTransition(V.thumbnail))};
return V};
_.t(Pki,_.M);_.B=Pki.prototype;
_.B.configureRendererStamper=function(){return{lazyLoadMenu:F1,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"}}}};
_.B.attached=function(){this.updateInlinePreviewHoverListeners()};
_.B.detached=function(){this.clearInlinePreviewHoverListeners()};
_.B.shouldLazyLoadMenu=function(){var V=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.z("kevlar_modern_downloads_page")||!V};
_.B.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13831_inlinePreviewHoverListener=a6({mediaRenderer:this,lockupElement:this.JSC$13831_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.B.getVideoPreviewOpts=function(){var V={},l;if((l=this.data)==null?0:l.multipleInlinePlaybackEndpoint)V=fOJ;this.isRadio&&(V=aOv);return _.z("web_thumbnail_to_watch_transition")?Object.assign({},V,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):V};
_.B.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$13831_inlinePreviewHoverListener)==null||UJ(V)};
_.B.getOwner=function(){var V,l,I;return((V=this.data)==null?void 0:(l=V.channelThumbnailSupportedRenderers)==null?void 0:l.channelThumbnailWithLinkRenderer)||_.y((I=this.data)==null?void 0:I.showProviderChannelThumbnail,WCv)};
_.B.updateLockupSize=function(){var V;((V=this.getOwner())==null?0:V.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.B.getFeedbackEndpoint=function(V){if(_.y(V,_.Q3))return V;var l,I;V=(I=(l=_.y(V,_.NJ))==null?void 0:l.commands)!=null?I:[];l=_.U(V);for(I=l.next();!I.done;I=l.next())if(I=this.getFeedbackEndpoint(I.value))return I;return null};
_.B.computeNavigationEndpoint=function(V){return ZiN(V==null?void 0:V.navigationEndpoint)};
_.B.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var V=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(V)!==JSON.stringify(this.data)&&this.set("data",V)}};
_.B.onDataChanged=function(){var V=this,l=this.getOwner();if(l){this.set("data.owner",l);var I,H,T,x,n,w=((I=this.data)==null?void 0:(H=I.shortBylineText)==null?void 0:(T=H.runs)==null?void 0:(x=T[0])==null?void 0:x.text)||((n=l.name)==null?void 0:n.simpleText);this.set("data.owner.title",w)}var N,L,e,k,X,r;l=((N=this.data)==null?void 0:(L=N.thumbnailRenderer)==null?void 0:L.playlistVideoThumbnailRenderer)||((e=this.data)==null?void 0:(k=e.thumbnailRenderer)==null?void 0:k.playlistCustomThumbnailRenderer)||
((X=this.data)==null?void 0:(r=X.thumbnailRenderer)==null?void 0:r.showCustomThumbnailRenderer);var E;((E=this.data)==null?0:E.thumbnail)||!l||this.set("data.thumbnail",l.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){V.updateLockupSize()});
var D;if(N=((D=this.data)==null?void 0:D.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(N);var Z;((Z=this.dismissActionToReplayEntity)==null?0:Z.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.B.onHiddenChanged=function(){this.updateLockupSize()};
_.B.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.xB(this.hostElement,"yt-terminate-video-preview-action");else{var V;(V=this.videoTitleLink)==null||V.focus()}};
_.B.metadataColorChanged=function(){var V;if(this.metadataColor&&((V=this.videoTitle)==null?0:V.style))this.videoTitle.style.color=_.tv(this.metadataColor);else{var l,I;!this.metadataColor&&((l=this.videoTitle)==null?0:(I=l.style)==null?0:I.color)&&(this.videoTitle.style.color="")}};
_.B.onDetailsClick=function(V){var l=this.computedNavigationEndpoint;l&&(_.qi(_.b3(V),this.hostElement,["A","BUTTON"])||_.B$(this.hostElement,"yt-navigate",{endpoint:l}))};
_.B.cleanupThumbnailAfterPageTransition=function(V){_.QN1(document,"yt-page-type-changed",function(){V.style.viewTransitionName=""})};
_.B.onRendererTap=function(){this.prepareThumbnailForPageTransition();var V,l,I=((V=this.data)==null?void 0:V.serviceEndpoint)||this.getFeedbackEndpoint((l=this.data)==null?void 0:l.navigationEndpoint);I&&_.y(I,_.Q3)&&this.ytComponentBehavior.resolveCommand(I)};
_.B.onMouseDown=function(V){var l=V.target,I=this.computedNavigationEndpoint,H;V=l.href||((H=_.y(I==null?void 0:I.commandMetadata,_.mK))==null?void 0:H.url);H=l.data||I;V&&H&&u$W(V,H)};
_.B.computeVideoTitleText=function(){var V;if((V=this.data)==null?0:V.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.B.computeHasPlaylistThumbnail=function(V){var l,I,H,T,x;if((((l=V.thumbnailRenderer)==null?0:l.playlistVideoThumbnailRenderer)||((I=V.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer)||((H=V.thumbnailRenderer)==null?0:H.showCustomThumbnailRenderer)||((T=V.thumbnailRenderer)==null?0:T.playlistVideoThumbnailRenderer)||((x=V.thumbnailRenderer)==null?0:x.playlistCustomThumbnailRenderer))&&V.thumbnailOverlays)for(l=0;l<V.thumbnailOverlays.length;l++)if(I=void 0,(I=V.thumbnailOverlays[l])==
null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.vI.Object.defineProperties(Pki.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.z("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var V;return(V=this.data)==null?void 0:V.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var V;return(V=this.data)==null?void 0:V.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$13831_inlinePreviewHoverListener)==null?0:WB(V))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.YEf(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:V.videoId)||((l=this.data)==null?void 0:l.playlistId)||""}}});
var fV=Pki;fV.prototype.onMouseDown=fV.prototype.onMouseDown;fV.prototype.metadataColorChanged=fV.prototype.metadataColorChanged;fV.prototype.onIsDismissedChanged=fV.prototype.onIsDismissedChanged;fV.prototype.onHiddenChanged=fV.prototype.onHiddenChanged;fV.prototype.onDataChanged=fV.prototype.onDataChanged;fV.prototype.handleReloadDownloadsInfo=fV.prototype.handleReloadDownloadsInfo;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],fV.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],fV.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],fV.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],fV.prototype,"ytdReduxBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],fV.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],fV.prototype,"entitySelectorType",void 0);_.O([_.q(),_.a("design:type",Boolean)],fV.prototype,"noEndpoints",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],fV.prototype,"isRadio",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],fV.prototype,"miniMode",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],fV.prototype,"fullHeight",void 0);
_.O([_.q(),_.a("design:type",Boolean)],fV.prototype,"showDarkVideoMetadata",void 0);_.O([_.q(),_.a("design:type",Boolean)],fV.prototype,"showLightVideoMetadata",void 0);_.O([_.q(),_.a("design:type",Number)],fV.prototype,"metadataColor",void 0);_.O([_.q(),_.a("design:type",Object)],fV.prototype,"showChannelAvatar",void 0);_.O([_.q(),_.a("design:type",Boolean)],fV.prototype,"hidden",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],fV.prototype,"showYtInteraction",void 0);
_.O([_.q(),_.a("design:type",String)],fV.prototype,"dismissedContentId",void 0);_.O([_.q({selectorArgs:["dismissedContentId"],selector:h9T}),_.a("design:type",Object)],fV.prototype,"dismissActionToReplayEntity",void 0);
_.O([_.q({selectorArgs:["entitySelectorType","mediaId"],selector:function(V,l,I){if(_.z("kevlar_modern_downloads_page")&&I&&l&&l!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(l){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var H=cty(V,I);if(H){l=_.Dw(V,I);var T=Ss(V,I),x=C1y(V,I);V=RA(V,I);var n=G43(H,l,T,x);T=n.shortViewCountText;var w=n.publishedTimeText;n=n.badges;var N=V>0;x=tWt(H,l,x,V);H=_.kf(l)||l==="TRANSFER_STATE_FAILED"||l==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!es(H.policyEntity)?
void 0:PWg(I,V,H.videoEntity.lengthSeconds);l==="TRANSFER_STATE_PAUSED_BY_USER"&&I&&!_.z("dl_resume_click_killswitch")&&(H={offlineVideoEndpoint:{videoId:I,action:"ACTION_RESUME"}});I={shortViewCountText:T,publishedTimeText:w,badges:n,isWatched:N,navigationEndpoint:H,thumbnailOverlays:x}}else I=void 0;return I;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(l=W8W(V,I))if(H=_.Zw(V,I),x=_.bnT(V,I),H!=="TRANSFER_STATE_UNKNOWN"){I=rMg(l,H,x,I,DBq(V));break a}I=void 0}return I;default:_.hF(new _.Yd("Error: entitySelectorType defined but not matched in selector.",
V,l))}}}),
_.a("design:type",Object)],fV.prototype,"entityDrivenState",void 0);_.O([_.q({computed:"computeVideoTitleText(data)"}),_.a("design:type",Object)],fV.prototype,"videoTitleText",void 0);_.O([_.q({computed:"computeHasPlaylistThumbnail(data)"}),_.a("design:type",Object)],fV.prototype,"hasPlaylistThumbnail",void 0);_.O([_.q({computed:"computeNavigationEndpoint(data)"}),_.a("design:type",Object)],fV.prototype,"computedNavigationEndpoint",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],fV.prototype,"typographyBump",void 0);_.O([_.Q("typographyBump"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fV.prototype,"typographyBumpV2",null);_.O([_.Ij("#video-title"),_.a("design:type",HTMLElement)],fV.prototype,"videoTitle",void 0);_.O([_.Ij("#video-title-link"),_.a("design:type",HTMLElement)],fV.prototype,"videoTitleLink",void 0);
_.O([_.Ij("#thumbnail"),_.a("design:type",HTMLElement)],fV.prototype,"thumbnail",void 0);_.O([_.Ij("#dismissible"),_.a("design:type",HTMLElement)],fV.prototype,"JSC$13831_dismissibleMedia",void 0);_.O([_.Q("data.menu"),_.a("design:type",Object),_.a("design:paramtypes",[])],fV.prototype,"lazyLoadMenu",null);_.O([_.Q("data.menu"),_.a("design:type",Object),_.a("design:paramtypes",[])],fV.prototype,"immediateLoadMenu",null);
_.O([_.xs("entityDrivenState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fV.prototype,"handleReloadDownloadsInfo",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fV.prototype,"onDataChanged",null);_.O([_.xs("hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fV.prototype,"onHiddenChanged",null);
_.O([_.b("isDismissed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fV.prototype,"onIsDismissedChanged",null);_.O([_.b("metadataColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fV.prototype,"metadataColorChanged",null);_.O([_.W("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],fV.prototype,"onMouseDown",null);
_.O([_.Q("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fV.prototype,"isHovered",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fV.prototype,"useAvatar",null);_.O([_.Q("data","entitySelectorType"),_.a("design:type",String),_.a("design:paramtypes",[])],fV.prototype,"mediaId",null);fV=_.O([_.A({is:"ytd-rich-grid-media",disableElementRegistration:!0})],fV);
var DGW=_.O7()(fV,"ytd-rich-grid-media",function(){if(EPi!==void 0)return EPi;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return EPi=V},{mode:_.Cm("kevlar_poly_si_batch_j072")?1:2});var Z3B;var S0N=function(){var V=_.M.apply(this,arguments)||this;V.removeMaxWidth=!0;V.insetMetadata=!1;return V};
_.t(S0N,_.M);_.B=S0N.prototype;_.B.configureRendererStamper=function(){return{innerMenu:F1,outerMenu:Object.assign({},F1,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.B.onDataChanged=function(){var V,l=((V=this.data)==null?void 0:V.trackingParams)||"";l&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(l));var I;((I=this.dismissActionToReplayEntity)==null?0:I.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.B.attached=function(){this.updateInlinePreviewHoverListeners()};
_.B.detached=function(){this.clearInlinePreviewHoverListeners()};
_.B.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13837_inlinePreviewHoverListener=a6({mediaRenderer:this,lockupElement:this.JSC$13837_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:iot})};
_.B.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$13837_inlinePreviewHoverListener)==null||UJ(V)};
_.B.onRendererTap=function(){var V,l,I=(V=this.data)==null?void 0:(l=V.serviceEndpoints)==null?void 0:l[0];_.y(I,_.Q3)&&this.componentBehavior.resolveCommand(I)};
_.B.onDetailsClick=function(V){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;I&&(_.qi(_.b3(V),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(I))};
_.B.onShow=function(){var V=this.data;V.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(V.onFirstVisibleCommand),delete V.onFirstVisibleCommand)};
_.vI.Object.defineProperties(S0N.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var V;return this.insetMetadata?void 0:(V=this.data)==null?void 0:V.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var V;return this.insetMetadata?(V=this.data)==null?void 0:V.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var V=this.data;if(V!=null&&V.badge&&(V=_.y(V.badge,Sdb))){var l,I,H;return[{metadataBadgeRenderer:{label:((l=V.label)==null?void 0:(I=l.runs)==null?void 0:I[0].text)||((H=V.label)==null?void 0:H.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var V=this.data;return Object.assign({},V.headline,{accessibility:V.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return this.isSlimShort?(V=this.computedTitle)==null?void 0:(l=V.accessibility)==null?void 0:(I=l.accessibilityData)==null?void 0:I.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$13837_inlinePreviewHoverListener)==null?0:WB(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var g2=S0N;g2.prototype.onDataChanged=g2.prototype.onDataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],g2.prototype,"componentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],g2.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],g2.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.SE),_.a("design:type",Object)],g2.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],g2.prototype,"ytdReduxBehavior",void 0);_.O([_.Ij("ytd-thumbnail"),_.a("design:type",HTMLElement)],g2.prototype,"thumbnail",void 0);_.O([_.Ij("#dismissible"),_.a("design:type",HTMLElement)],g2.prototype,"JSC$13837_dismissibleMedia",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],g2.prototype,"removeMaxWidth",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],g2.prototype,"insetMetadata",void 0);_.O([_.q(),_.a("design:type",String)],g2.prototype,"dismissedContentId",void 0);_.O([_.q({selectorArgs:["dismissedContentId"],selector:h9T}),_.a("design:type",Object)],g2.prototype,"dismissActionToReplayEntity",void 0);_.O([_.Q("insetMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],g2.prototype,"thumbnailObjectFit",null);
_.O([_.Q("data","insetMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],g2.prototype,"innerMenu",null);_.O([_.Q("data","insetMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],g2.prototype,"outerMenu",null);_.O([_.q(),_.a("design:type",Object)],g2.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],g2.prototype,"miniMode",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g2.prototype,"onDataChanged",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],g2.prototype,"shortsBadges",null);_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],g2.prototype,"isShort",null);_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],g2.prototype,"isSlimShort",null);
_.O([_.Q("data","isShort"),_.a("design:type",Object),_.a("design:paramtypes",[])],g2.prototype,"computedTitle",null);_.O([_.Q("isSlimShort","computedTitle"),_.a("design:type",Object),_.a("design:paramtypes",[])],g2.prototype,"computedAccessibilityLabel",null);_.O([_.Q("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],g2.prototype,"isHovered",null);g2=_.O([_.A({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],g2);
_.u(g2,"ytd-rich-grid-slim-media",function(){if(Z3B!==void 0)return Z3B;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Z3B=V},{mode:_.Cm("kevlar_poly_si_batch_j063")?1:2});var RzN;var Q0W;var mU=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(mU,_.M);mU.prototype.computeIcon=function(V){return V&&V.iconType?"yt-sys-icons:"+V.iconType.toLowerCase():""};
mU.prototype.onMouseEnter=function(){this.isHovered=!0};
mU.prototype.onMouseLeave=function(){this.isHovered=!1};
var id=mU;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],id.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],id.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],id.prototype,"isHovered",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],id.prototype,"darkerDarkTheme",void 0);id=_.O([_.A({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],id);
_.u(id,"ytd-expand-on-hover-card-renderer",function(){if(Q0W!==void 0)return Q0W;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Q0W=V},{mode:1});var cEb,Wvb=function(){if(cEb!==void 0)return cEb;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return cEb=V};_.yN("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var b33=function(){var V=_.M.apply(this,arguments)||this;V.compactStyle=!1;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(b33,_.M);_.B=b33.prototype;_.B.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.B.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"}}}};
_.B.computeHideDot=function(V){return!(V&&V.subscriberCountText&&V.videoCountText)||this.compactStyle};
_.B.hasDualButtons=function(V){return V&&V.purchaseButton&&V.subscribeButton};
_.B.backgroundColorChanged=function(){if(this.data!==void 0){var V=this.data.backgroundColor;this.isDarkTheme&&(V=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=V!=null?_.tv(V):"transparent"}};
_.B.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.B.onTap=function(V){var l,I,H=((l=this.data)==null?void 0:l.navigationEndpoint)||((I=this.data)==null?void 0:I.serviceEndpoint);_.y(H,_.x9)&&(H&&(_.z("web_ytd_channel_renderer_command_resolver_ks")?_.$B(this.hostElement,[H]):_.F().resolve(_.aw).resolveCommand(H,{form:{element:this.hostElement}})),V.preventDefault())};
_.B.computeChannelEndpoint=function(V){return _.y(V,_.x9)?null:V};
_.B.computeHrefEndpoint=function(V){return _.y(V,_.x9)?null:this.componentBehavior.computeHref_(V)};
_.B.computeChannelRendererStyle=function(V){return V};
_.B.computeIconSize=function(V){return V?108:136};
_.vI.Object.defineProperties(b33,{template:{configurable:!0,enumerable:!0,get:function(){return Wvb()}}});
var Vt=b33;Vt.prototype.backgroundColorChanged=Vt.prototype.backgroundColorChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Vt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],Vt.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Vt.prototype,"componentBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],Vt.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],Vt.prototype,"isDarkTheme",void 0);_.O([_.q({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.a("design:type",String)],Vt.prototype,"channelRendererStyle",void 0);_.O([_.q({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Vt.prototype,"dualButtons",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],Vt.prototype,"useBiggerThumbs",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.m_("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],Vt.prototype,"biggerThumbStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Vt.prototype,"compactStyle",void 0);_.O([_.b("data","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vt.prototype,"backgroundColorChanged",null);Vt=_.O([_.A({is:"ytd-channel-renderer",disableElementRegistration:!0})],Vt);_.u(Vt,"ytd-channel-renderer",function(){return Wvb()},{mode:1});var q0E;var Meo;_.yN("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var s0b=function(){var V=_.M.apply(this,arguments)||this;V.displayItemCount=2;V.collections=_.z("web_modern_collections_v2");V.hasPlaylistThumbnail=!1;V.stackThumbnailSize="large";return V};
_.t(s0b,_.M);_.B=s0b.prototype;_.B.attached=function(){this.updateInlinePreviewHoverListeners()};
_.B.detached=function(){this.clearInlinePreviewHoverListeners()};
_.B.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.B.computeFirstVideos=function(V,l){return V&&l?V.slice(0,l):[]};
_.B.computeThumbnailWidth=function(V,l){return V?l==="BIG"?500:l==="MASSIVE"?600:l==="MEDIUM"?450:420:360};
_.B.computeThumbnailHeight=function(V,l){return V?l==="BIG"?280:l==="MASSIVE"?337:234:202};
_.B.clearInlinePreviewHoverListeners=function(){var V;(V=this.JSC$13850_inlinePreviewHoverListener)==null||UJ(V)};
_.B.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13850_inlinePreviewHoverListener=a6({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:fOJ,thumbnailElement:this.thumbnail})};
_.B.computeHasPlaylistThumbnail=function(V){var l,I;if((((l=V.thumbnailRenderer)==null?0:l.playlistVideoThumbnailRenderer)||((I=V.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer))&&V.thumbnailOverlays)for(l=0;l<V.thumbnailOverlays.length;l++)if(I=void 0,(I=V.thumbnailOverlays[l])==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.vI.Object.defineProperties(s0b.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.JSC$13850_inlinePreviewHoverListener)==null?0:WB(V))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var lj=s0b;lj.prototype.dataChanged=lj.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],lj.prototype,"ytdLockupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],lj.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],lj.prototype,"displayItemCount",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],lj.prototype,"useBiggerThumbs",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.m_("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],lj.prototype,"biggerThumbsStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],lj.prototype,"collections",void 0);_.O([_.q({computed:"computeHasPlaylistThumbnail(data)"}),_.a("design:type",Object)],lj.prototype,"hasPlaylistThumbnail",void 0);_.O([_.q(),_.a("design:type",String)],lj.prototype,"stackThumbnailSize",void 0);_.O([_.Ij("ytd-thumbnail"),_.a("design:type",HTMLElement)],lj.prototype,"thumbnail",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lj.prototype,"dataChanged",null);_.O([_.Q("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],lj.prototype,"isHovered",null);lj=_.O([_.A({is:"ytd-radio-renderer",disableElementRegistration:!0})],lj);
_.u(lj,"ytd-radio-renderer",function(){if(Meo!==void 0)return Meo;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Meo=V},{mode:_.Cm("kevlar_poly_si_batch_j058")?1:2});var p5N;_.yN("itemSectionRenderer","showRenderer","ytd-show-renderer");var I$=function(){return _.M.apply(this,arguments)||this};
_.t(I$,_.M);I$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
I$.prototype.computeThumbnailWidth=function(V){return V?360:246};
I$.prototype.computeUseProminentThumbs=function(V){return V};
var Hg=I$;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Hg.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Hg.prototype,"isSearch",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.a("design:type",Boolean)],Hg.prototype,"useProminentThumbs",void 0);Hg=_.O([_.A({is:"ytd-show-renderer",disableElementRegistration:!0})],Hg);
_.u(Hg,"ytd-show-renderer",function(){if(p5N!==void 0)return p5N;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return p5N=V},{mode:1});_.yN("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var AEN=function(){var V=_.M.apply(this,arguments)||this;V.isRichGrid=!1;return V};
_.t(AEN,_.M);AEN.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
var T6=AEN;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],T6.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],T6.prototype,"isRichGrid",void 0);T6=_.O([_.A({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],T6);
_.u(T6,"ytd-feed-entry-renderer",function(){if(q0E!==void 0)return q0E;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return q0E=V},{mode:1});var uSZ;var vPa=function(){return _.M.apply(this,arguments)||this};
_.t(vPa,_.M);vPa.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
var Bg=vPa;_.O([_.R(_.DS),_.a("design:type",Object)],Bg.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Bg.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Bg.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.oA,value:3}),_.a("design:type",Number)],Bg.prototype,"itemsPerRow",void 0);
Bg=_.O([_.A({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Bg);
_.u(Bg,"ytd-link-card-renderer",function(){if(uSZ!==void 0)return uSZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return uSZ=V},{mode:1});var O33;var CkZ=function(){return _.M.apply(this,arguments)||this};
_.t(CkZ,_.M);_.B=CkZ.prototype;_.B.configureRendererStamper=function(){return{"data.menu":F1,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.B.onRendererTap=function(V){if(!this.ytdDismissibleItemBehavior.isDismissed){var l,I=(l=this.data)==null?void 0:l.navigationEndpoint;I&&!_.qi(_.b3(V),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(I)?_.qi(_.b3(V),this.hostElement,["A"])||_.B$(this.hostElement,"yt-navigate",{endpoint:I}):this.ytComponentBehavior.resolveCommand(I,{}))}};
_.B.maybeComputeHref=function(V){return this.ytComponentBehavior.computeHref_(V,!0)};
_.B.getNavigationCommand=function(V){return this.isNavigationCommand(V)?V:null};
_.B.isNavigationCommand=function(V){return V?_.y(V,_.$V)||_.y(V,_.vU)||_.y(V,_.cF)?!0:!1:!1};
var xt=CkZ;xt.prototype.onRendererTap=xt.prototype.onRendererTap;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],xt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],xt.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],xt.prototype,"ytComponentBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],xt.prototype,"data",void 0);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],xt.prototype,"onRendererTap",null);xt=_.O([_.A({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],xt);
_.u(xt,"ytd-lumiere-promo-item-image-renderer",function(){if(O33!==void 0)return O33;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return O33=V},{mode:1});var aFE;var fFN=function(){return _.M.apply(this,arguments)||this};
_.t(fFN,_.M);fFN.prototype.computeLandscapeThumbnail=function(){var V;return((V=this.data)==null?void 0:V.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
var U3=fFN;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],U3.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],U3.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],U3.prototype,"miniMode",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.oA}),_.a("design:type",Number)],U3.prototype,"itemsPerRow",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.a("design:type",Boolean)],U3.prototype,"landscapeThumbnail",void 0);U3=_.O([_.A({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],U3);
_.u(U3,"ytd-lumiere-shelf-details-renderer",function(){if(aFE!==void 0)return aFE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return aFE=V},{mode:_.Cm("kevlar_poly_si_batch_j076")?1:2});var gPZ;var mGw=function(){return _.M.apply(this,arguments)||this};
_.t(mGw,_.M);mGw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var nI=mGw;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],nI.prototype,"data",void 0);nI=_.O([_.A({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],nI);
_.u(nI,"ytd-primetime-promo-details-renderer",function(){if(gPZ!==void 0)return gPZ;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return gPZ=V},{mode:1});var i3w;var V8W=function(){return _.M.apply(this,arguments)||this};
_.t(V8W,_.M);var $t=V8W;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$t.prototype,"data",void 0);$t=_.O([_.A({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],$t);
_.u($t,"ytd-panel-show-style-metadata-renderer",function(){if(i3w!==void 0)return i3w;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return i3w=V},{mode:1});var lyJ;var IyN=function(){return _.M.apply(this,arguments)||this};
_.t(IyN,_.M);_.B=IyN.prototype;_.B.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.B.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.B.computeThumbnail=function(V){if(V)return V.smallFormFactorBackgroundThumbnail||V.largeFormFactorBackgroundThumbnail};
_.B.maybeComputeHref=function(V){return this.ytComponentBehavior.computeHref_(V,!0)};
_.B.isNavigationCommand=function(V){return V?_.y(V,_.$V)||_.y(V,_.vU)||_.y(V,_.cF)?!0:!1:!1};
_.B.getNavigationCommand=function(V){return this.isNavigationCommand(V)?V:null};
var dZ=IyN;dZ.prototype.onPanelTap=dZ.prototype.onPanelTap;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],dZ.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],dZ.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],dZ.prototype,"roundedContainer",void 0);_.O([_.q({reflectToAttribute:!0,value:_.z("web_modern_buttons")}),_.a("design:type",Boolean)],dZ.prototype,"modernButtons",void 0);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dZ.prototype,"onPanelTap",null);dZ=_.O([_.A({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],dZ);
_.u(dZ,"ytd-primetime-promo-panel-renderer",function(){if(lyJ!==void 0)return lyJ;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return lyJ=V},{mode:1});_.MR(_.W1(function(V){V=_.Rj(V,{data:{},useFullWidth:!1});var l=V.data,I=V.useFullWidth,H=function(){return l().caption},T=function(){return l().image},x=function(){return _.to(l().onTap)};
V={};V=_.ii("ytTeaserCardViewModelHost",(V.ytTeaserCardViewModelUseFullWidth=function(){return I()},V));
return _.Y("teaser-card-view-model",{class:V},_.Y(_.NS,{cond:function(){return x()},
then:function(){return _.Y(xpN,{className:"ytTeaserCardViewModelLink",command:x,forceNewState:!0,useATagConfig:!0},_.Y("div",{class:"ytTeaserCardViewModelImageContainer"},_.Y(_.NS,{cond:T,then:function(n){return _.Y(_.cX,{data:n,className:"ytTeaserCardViewModelImage",alt:""})}})),_.Y("p",{class:"ytTeaserCardViewModelCaption"},H))}}))},"rb"),"teaser-card-view-model",{props:{data:_.b9,
useFullWidth:_.b9}});var H9i=new _.Vr("RICH_GRID_VIDEO_RENDERER_TOKEN");_.MR(_.W1(function(V){var l=V.data;var I=V.showYtInteractionInContent;var H=function(){return!!l().selectableFeedback};
V=_.U(_.xi(!1,void 0,"nblDw"));var T=V.next().value,x=V.next().value;_.XW(function(){var X=_.y(l().primaryButton,_.EB);(X==null?0:X.isToggled)&&x(X.isToggled)});
V=_.Bu(function(X){if(!H())return!1;if(T()){var r;var E=(r=l().selectableFeedback)==null?void 0:r.onDeselect}else{var D;E=(D=l().selectableFeedback)==null?void 0:D.onSelect}E&&_.EI(E,{form:{element:X.target}});x(!T());if(X=_.y(l().primaryButton,_.EB))X.isToggled=T();return!1});
var n=function(){if(!H()){var X,r=(X=l().loggingDirectives)==null?void 0:X.trackingParams;r&&_.dF(_.F().resolve(_.ef),r)}},w=_.kgw(),N=function(){var X;
return H()?(X=l().selectableFeedback)==null?void 0:X.a11yLabel:void 0},L=function(){return H()?{toggled:T()}:{}},e=_.F().resolve(_.Cs(H9i)),k={};
return _.Y("yt-feedback-item-renderer",{class:_.ii("ytFeedbackItemRendererHost",(k.ytFeedbackItemRendererSelectableFeedback=H,k)),"on:click":V,"on:keydown":w,title:N,"aria-label":N,"aria-pressed":function(){return H()?T():void 0},
tabindex:function(){return H()?0:void 0},
role:function(){return H()?"button":void 0}},_.Y("div",{class:"ytFeedbackItemRendererContentContainer"},_.Y(_.rw,{data:function(){return l().content}},{videoRenderer:function(X){return _.Y(e,{data:X.data,
showYtInteraction:I})},
lockupViewModel:function(X){return _.Y(jG,{data:X.data,containerType:2})}})),_.Y("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.Y(_.rw,{data:function(){return l().primaryButton}},{toggleButtonViewModel:function(X){return _.Y(_.o6,{data:X.data,
buttonShapeOverrides:L,disableExplicitClickLogging:!0,onToggle:n})}})))},"sb"),"yt-feedback-item-renderer",{props:{data:_.b9,
showYtInteractionInContent:_.b9}});var THv=function(){var V=_.M.apply(this,arguments)||this;V.isShortsGrid=!1;V.isCompactGrid=!1;V.isShortsPanelGrid=!1;V.enablePlayablesReducedCardCount=_.z("enable_playables_reduced_card_count");V.renderedFromRichGrid=!1;V.isInFirstColumn=!1;V.noGutterMargins=!1;V.isInlineGroupItem=!1;V.insetMetadata=!1;V.noBottomMarginInAds=_.z("web_no_bottom_margin_for_home_ad_buttons");V.force16By9ThumbnailAspectRatio=!1;V.useCompactList=!1;V.containerType=2;V.thumbnailTargetWidth=9999;V.isResponsiveGrid=!1;V.lockupExperiments=
{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};V.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};V.hoverListener=V.hover.bind(V);V.leaveListener=V.leave.bind(V);V.highlighted=!1;V.JSC$13885_unsubscribeFromInlinePreviewIsActive=function(){};
return V};
_.t(THv,_.M);_.B=THv.prototype;_.B.computeContainerType=function(){return this.useCompactList?3:2};
_.B.computeThumbnailTargetWidth=function(){var V;return(V=this.itemWidth)!=null?V:9999};
_.B.updateIsInFirstColumn=function(){var V;this.isInFirstColumn=((V=this.data)==null?void 0:V.colIndex)===0};
_.B.observerContainerType=function(){if(this.lockup){var V=this.lockup;V.containerType=this.containerType;V.sizing=this.sizing;V.typographyBump=this.typographyBump;V.itemWidth=this.itemWidth}this.richGridMedia&&_.z("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump)};
_.B.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]]"}},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]]"}}}}}};
_.B.leave=function(V){V=V.relatedTarget;var l=document.querySelector("ytd-video-preview");V&&l&&_.aQ(l).contains(V)||this.removeAndCleanupHighlight()};
_.B.hover=function(){var V;if(!this.highlighted&&(!_.z("web_enable_rich_item_on_focus_effect")||(V=this.data)!=null&&V.onFocusEffect)){var l,I;((l=this.data)==null?void 0:(I=l.onFocusEffect)==null?void 0:I.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(V=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:V,boxShadow:"0 0 0 10px "+V}));var H,T;((H=this.data)==null?void 0:(T=H.onFocusEffect)==null?void 0:
T.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.B.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};
_.B.registerHoverHighlightListeners=function(){var V=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13885_unsubscribeFromInlinePreviewIsActive=_.Ln(_.v4(),_.ogT,function(l){V.highlighted&&!l&&V.removeAndCleanupHighlight()})};
_.B.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13885_unsubscribeFromInlinePreviewIsActive()};
_.B.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.B.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.B.getBackgroundColor=function(){var V,l,I=(V=this.data)==null?void 0:(l=V.onFocusEffect)==null?void 0:l.onFocusColor;if(I){if(document.documentElement.hasAttribute("dark")&&(I==null?0:I.darkTheme))return _.tv(I==null?void 0:I.darkTheme);if(I==null?0:I.lightTheme)return _.tv(I==null?void 0:I.lightTheme)}};
_.B.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var V=_.oa(),l,I,H;V&&((l=this.data)==null?0:l.trackingParams)&&((I=this.data)==null?void 0:I.colIndex)!=null&&((H=this.data)==null?void 0:H.rowIndex)!=null&&_.O4(V,_.dj(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.B.isSlimMediaRenderer=function(V){return!!_.y(V==null?void 0:V.content,_.dhw)||!!_.y(V==null?void 0:V.content,$h0)||!!_.y(V==null?void 0:V.content,_.SK)||!!_.y(V==null?void 0:V.content,PF0)};
_.B.isPostRenderer=function(){var V,l;return!!_.y((V=this.data)==null?void 0:V.content,zqN)||!!_.y((l=this.data)==null?void 0:l.content,ymN)};
_.B.computeIsGameCardShelf=function(){var V;return!!_.y((V=this.data)==null?void 0:V.content,Fq3)};
_.B.computeIsMiniGameCardShelf=function(){var V,l;return!!_.y((V=this.data)==null?void 0:V.content,RNE)||!!_.y((l=this.data)==null?void 0:l.content,QCN)};
_.B.computeIsTeaserCard=function(){var V;return!!_.y((V=this.data)==null?void 0:V.content,QCN)};
_.B.computeIsSelectableFeedbackItem=function(){var V,l;return!((l=_.y((V=this.data)==null?void 0:V.content,_.WqZ))==null||!l.selectableFeedback)};
_.B.computeContainsLumierePosters=function(){var V,l;return((l=_.y((V=this.data)==null?void 0:V.content,Zg3))==null?void 0:l.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.B.computeIsExpandOnHoverCardShelf=function(){var V;return!!_.y((V=this.data)==null?void 0:V.content,DIv)};
_.B.computeIsLinkCardShelf=function(){var V;return!!_.y((V=this.data)==null?void 0:V.content,zlb)};
_.B.computeIsReelItemStyleAvatarCircle=function(V){var l;return((l=_.y(V==null?void 0:V.content,_.SK))==null?void 0:l.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.B.computeIsLinkCardFullWidth=function(V,l){var I;return((I=_.y(V==null?void 0:V.content,zlb))==null?void 0:I.useFullWidth)||l<=2};
_.vI.Object.defineProperties(THv.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&&_.z("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.z("web_enable_rich_item_on_focus_effect")||_.z("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.z("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.z("web_shorts_2_by_3_lockups_study")||_.z("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
var wZ=THv;wZ.prototype.richGridHoverHighlightChanged=wZ.prototype.richGridHoverHighlightChanged;wZ.prototype.observerContainerType=wZ.prototype.observerContainerType;wZ.prototype.updateIsInFirstColumn=wZ.prototype.updateIsInFirstColumn;_.O([_.R(_.DS),_.a("design:type",Object)],wZ.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],wZ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],wZ.prototype,"ytdLockupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],wZ.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.a("design:type",Boolean)],wZ.prototype,"isPost",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.a("design:type",Boolean)],wZ.prototype,"containsLumierePosters",void 0);_.O([_.q({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.a("design:type",Boolean)],wZ.prototype,"isSlimMedia",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.a("design:type",Boolean)],wZ.prototype,"isGameCardShelf",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.a("design:type",Boolean)],wZ.prototype,"isMiniGameCardShelf",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.a("design:type",Boolean)],wZ.prototype,"isTeaserCard",void 0);_.O([_.q({computed:"computeIsSelectableFeedbackItem(data)"}),_.a("design:type",Boolean)],wZ.prototype,"isSelectableFeedbackItem",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wZ.prototype,"isShortsGrid",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],wZ.prototype,"isSlimGrid",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wZ.prototype,"isCompactGrid",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wZ.prototype,"isShortsPanelGrid",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.a("design:type",Boolean)],wZ.prototype,"isExpandOnHoverCardShelf",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wZ.prototype,"enablePlayablesReducedCardCount",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.a("design:type",Boolean)],wZ.prototype,"isLinkCardShelf",void 0);
_.O([_.q({reflectToAttribute:!0,selector:_.oA,value:3}),_.a("design:type",Number)],wZ.prototype,"itemsPerRow",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wZ.prototype,"renderedFromRichGrid",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wZ.prototype,"isInFirstColumn",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wZ.prototype,"noGutterMargins",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wZ.prototype,"isInlineGroupItem",void 0);_.O([_.q(),_.a("design:type",Object)],wZ.prototype,"insetMetadata",void 0);_.O([_.q(),_.a("design:type",Object)],wZ.prototype,"noBottomMarginInAds",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],wZ.prototype,"isShelfItem",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.a("design:type",Boolean)],wZ.prototype,"isReelItemStyleAvatarCircle",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.a("design:type",Boolean)],wZ.prototype,"isLinkCardFullWidth",void 0);_.O([_.q(),_.a("design:type",Object)],wZ.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wZ.prototype,"useCompactList",void 0);_.O([_.q(),_.a("design:type",String)],wZ.prototype,"sizing",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],wZ.prototype,"typographyBump",void 0);_.O([_.q(),_.a("design:type",Number)],wZ.prototype,"itemWidth",void 0);_.O([_.q(),_.a("design:type",Boolean)],wZ.prototype,"isHomeShelf",void 0);_.O([_.Ij("yt-lockup-view-model"),_.a("design:type",HTMLElement)],wZ.prototype,"lockup",void 0);
_.O([_.Ij("ytd-rich-grid-media"),_.a("design:type",HTMLElement)],wZ.prototype,"richGridMedia",void 0);_.O([_.q({computed:"computeContainerType(useCompactList)"}),_.a("design:type",Object)],wZ.prototype,"containerType",void 0);_.O([_.q({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.a("design:type",Object)],wZ.prototype,"thumbnailTargetWidth",void 0);
_.O([_.Q("showYtInteractionOnRichItem"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],wZ.prototype,"showYtInteractionOnRichGridMedia",null);_.O([_.Q("isSelectableFeedbackItem","richGridHoverHighlight"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],wZ.prototype,"showYtInteractionOnRichItem",null);_.O([_.Q("typographyBump"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],wZ.prototype,"richTypographyBump",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("isShortsGrid","isCompactGrid"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],wZ.prototype,"richGridHoverHighlight",null);_.O([_.Q("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.a("design:type",Number),_.a("design:paramtypes",[])],wZ.prototype,"shortsLockupViewModelAspectRatio",null);_.O([_.Q("isInlineGroupItem"),_.a("design:type",Number),_.a("design:paramtypes",[])],wZ.prototype,"shortsLockupViewModelScrimStyle",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wZ.prototype,"updateIsInFirstColumn",null);_.O([_.b("containerType","sizing","typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wZ.prototype,"observerContainerType",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wZ.prototype,"isResponsiveGrid",void 0);_.O([_.q(),_.a("design:type",Object)],wZ.prototype,"lockupExperiments",void 0);
_.O([_.b("richGridHoverHighlight"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wZ.prototype,"richGridHoverHighlightChanged",null);wZ=_.O([_.A({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],wZ);
_.BH0=_.O7()(wZ,"ytd-rich-item-renderer",function(){if(RzN===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);RzN=V}V=RzN;return V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var oMJ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var cpK=_.pW(_.LT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var xgw;var UgJ=function(){var V=_.M.apply(this,arguments)||this;V.useResponsiveGrid=!1;V.hidden=!1;V.standardShelfMargins=_.z("web_rich_grid_standard_shelf_margins");V.isShowMoreHidden=!1;V.isExpanded=!1;V.isInnerShelf=!1;V.allVideosCount=0;V.allPlaylistCount=0;V.haveSmartDownloadsCompleted=!1;V.isShowLessHidden=!0;V.restrictContentsOverflow=!1;V.firstShownIndex=0;V.horizontalOffset=0;V.atEnd=!0;V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};V.nextClick=function(){var l;(l=V.data)!=null&&l.contents&&(V.firstShownIndex+=V.currentElementsPerRow,V.updateHorizontalOffset(),V.updateHorizontalItemVisibility())};
V.previousClick=function(){var l;(l=V.data)!=null&&l.contents&&(V.firstShownIndex-=V.currentElementsPerRow,V.updateHorizontalOffset(),V.updateHorizontalItemVisibility())};
return V};
_.t(UgJ,_.M);_.B=UgJ.prototype;
_.B.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:_.h6("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.B.attached=function(){this.requestElementsPerRow()};
_.B.refreshGridLayoutNew=function(){var V;if((V=this.data)!=null&&V.contents&&this.containerWidth){var l;((l=this.data.responsiveContainerConfiguration)==null?0:l.responsiveSize)?(V=_.qeq(this.data.responsiveContainerConfiguration,this.containerWidth),V=_.gw(Object.assign({},V,{standardUnitMinWidth:this.standardUnitMinWidth}))):V=_.gw({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=V.typographyBump;if(this.elementsPerRow!==
V.numItems||this.gutter!==V.gutter)this.elementsPerRow=V.numItems,this.gutter=V.gutter,this.itemWidth=V.itemWidth,_.i3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":V.gutter+"px"})}};
_.B.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.z("web_use_layout_library_for_rich_grid_disable_shorts"))){var V=_.vWg(this.data);if(V)return V;if(_.z("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.B.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.z("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.B.computeButton=function(V){var l=_.y(V,_.RG);V=Object.assign({},_.y(V,_.RG));return l?(V.text||(V.text={simpleText:V.tooltip}),V.style="STYLE_MONO_OUTLINE",V.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",V):l};
_.B.onRowIndexChange=function(){var V=_.oa(),l,I;((l=this.data)==null?0:l.trackingParams)&&((I=this.data)==null?void 0:I.rowIndex)!=null&&V&&_.O4(V,_.dj(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.B.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var V,l=((V=this.getRichItemRenderers()[0])==null?void 0:V.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*l;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.B.requestElementsPerRow=function(){_.B$(this.hostElement,"yt-request-elements-per-row")};
_.B.onUpdateElementsPerRowAction=function(V,l,I,H,T,x){if(this.containerWidth!==x&&(this.containerWidth=x,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&V&&l&&I&&H&&T&&(this.elementsPerRow!==V||this.postsPerRow!==l||this.slimItemsPerRow!==I||this.gameCardsPerRow!==H||this.miniGameCardsPerRow!==T)&&(this.elementsPerRow=V,this.postsPerRow=l,this.slimItemsPerRow=I,this.gameCardsPerRow=H,this.miniGameCardsPerRow=T,this.updateItemVisibility())};
_.B.getRichItemRenderers=function(){return _.h(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.B.updateItemVisibility=function(){var V=this;if(this.data&&this.data.contents){var l=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(H,T){var x;((x=V.data)==null?0:x.isExpanded)?(H.hidden=T>l-1,H.ytRendererBehavior.markDirty()):H.hidden=T>V.currentElementsPerRow-1||T>l-1});
var I=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||I||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||I||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.B.setHeightToSingleRow=function(){var V=this.getRichItemRenderers(),l=Number.parseInt(getComputedStyle(V[0]).marginBottom,10)||0;V=V.slice(0,this.currentElementsPerRow).reduce(function(I,H){return Math.max(I,H.getBoundingClientRect().height+l)},0);
this.contents.style.height=V+"px"};
_.B.focusNextExpandedItem=function(){var V;((V=this.data)==null?0:V.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.B.focusItem=function(V,l){var I=this.getRichItemRenderers();if(I[V]&&(V=I[V].querySelector(".focus-on-expand"))){if(l){var H;(H=I[this.currentElementsPerRow])==null||H.scrollIntoView({behavior:"smooth",block:"center"})}V.focus({preventScroll:!0})}};
_.B.onDataChange=function(){var V=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.Al(this,function(){V.updateItemVisibility()});
var l;if((l=this.data)==null?0:l.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.i3(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),l=0;l<this.data.contents.length;l++){var I=_.y(this.data.contents[l],_.oG)||{};I.colIndex=l;I.rowIndex=this.data.rowIndex}};
_.B.handleRerenderDownloadsData=function(){_.z("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())};
_.B.blockInlinePreview=function(V){var l=this,I;return _.d(function(H){(I=l.inlinePreviewIsEnabled)&&l.ytdReduxBehavior.dispatch(_.TMi(!1));return H.return(new Promise(function(T){V(function(){I&&l.ytdReduxBehavior.dispatch(_.TMi(!0));T()})}))})};
_.B.expandShelf=function(){var V=this;if(this.data){var l,I=(l=_.y(this.data.showMoreButton,_.RG))==null?void 0:l.trackingParams;I&&_.dF(_.x7(),I);this.data.isExpanded=!0;this.blockInlinePreview(function(H){V.setHeightToSingleRow();V.updateItemVisibility();V.contents.style.height=V.contents.scrollHeight+"px";_.r0.addJob(function(){V.contents.style.height="auto";V.focusNextExpandedItem();H()},2,200)})}};
_.B.collapseShelf=function(){var V=this;return _.d(function(l){if(l.nextAddress==1){if(!V.data)return l.return();V.data.isExpanded=!1;return _.K(l,V.blockInlinePreview(function(I){V.contents.style.height=V.contents.scrollHeight+"px";V.setHeightToSingleRow();_.r0.addJob(function(){V.updateItemVisibility();V.contents.style.height="auto";I()},2,200)}),2)}_.B$(V.hostElement,"yt-rich-shelf-renderer-collapse",V.data.trackingParams);
V.focusItem(0,!1);_.FU(l)})};
_.B.updateArrowButtonStatus=function(){var V=this.getRichItemRenderers().length;if(!_.z("web_rich_shelf_renderer_use_data_contents_killswitch")){var l,I;V=((l=this.data)==null?void 0:(I=l.contents)==null?void 0:I.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=V};
_.B.onChildElementFocus=function(V){this.hasChevronButtons&&(V=V.target.closest("#contents > *"),this.contents.contains(V)&&(V.offsetLeft<this.horizontalOffset?this.previousClick():V.offsetLeft+V.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.B.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.h6("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.B.updateHorizontalOffset=function(){var V=this.getRichItemRenderers(),l=V.length;if(!_.z("web_rich_shelf_renderer_use_data_contents_killswitch")){var I,H;l=((I=this.data)==null?void 0:(H=I.contents)==null?void 0:H.length)||0}var T;V=((T=V[0])==null?void 0:T.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>l?this.firstShownIndex=l-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*V};
_.B.isSlimMediaShelfRenderer=function(){var V,l,I,H=(I=_.y((V=this.data)==null?void 0:(l=V.contents)==null?void 0:l[0],_.oG))==null?void 0:I.content;return!!(_.y(H,_.dhw)||_.y(H,$h0)||_.y(H,_.SK)||_.y(H,PF0))};
_.B.isGameCardShelf=function(){var V,l,I,H=(I=_.y((V=this.data)==null?void 0:(l=V.contents)==null?void 0:l[0],_.oG))==null?void 0:I.content;return!!_.y(H,Fq3)};
_.B.isGnomeShelf=function(){var V,l,I,H=(I=_.y((V=this.data)==null?void 0:(l=V.contents)==null?void 0:l[0],_.oG))==null?void 0:I.content;return!!_.y(H,_.WqZ)};
_.B.isMiniGameCardShelf=function(){var V,l,I,H=(I=_.y((V=this.data)==null?void 0:(l=V.contents)==null?void 0:l[0],_.oG))==null?void 0:I.content;return!!_.y(H,RNE)||!!_.y(H,QCN)};
_.B.hasGameBoxArtAvatarStyle=function(){var V;return((V=this.data)==null?void 0:V.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.B.hasRoundedGameBoxArtAvatarStyle=function(){var V;return((V=this.data)==null?void 0:V.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.B.isShortsShelf=function(){var V,l,I,H=(I=_.y((V=this.data)==null?void 0:(l=V.contents)==null?void 0:l[0],_.oG))==null?void 0:I.content;return!!_.y(H,_.SK)||!!_.y(H,PF0)};
_.B.isPostShelfRenderer=function(){var V,l,I,H=(I=_.y((V=this.data)==null?void 0:(l=V.contents)==null?void 0:l[0],_.oG))==null?void 0:I.content;return!(!_.y(H,zqN)&&!_.y(H,ymN))};
_.B.isLumiereShelf=function(){var V,l,I=_.y((V=this.data)==null?void 0:(l=V.contents)==null?void 0:l[0],_.oG);return!!_.y(I==null?void 0:I.content,Zg3)};
_.B.isLumiereShelfWithPosters=function(){var V,l,I=_.y((V=this.data)==null?void 0:(l=V.contents)==null?void 0:l[0],_.oG),H;return((H=_.y(I==null?void 0:I.content,Zg3))==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.B.isExpandOnHoverCardShelf=function(){var V,l,I,H=(I=_.y((V=this.data)==null?void 0:(l=V.contents)==null?void 0:l[0],_.oG))==null?void 0:I.content;return!!_.y(H,DIv)};
_.B.computeHasFeaturedBadge=function(){var V,l,I=_.y((V=this.data)==null?void 0:(l=V.badges)==null?void 0:l[0],_.WRZ);return I?I.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.B.computeHasPaygatedFeaturedBadge=function(){var V,l,I=_.y((V=this.data)==null?void 0:(l=V.badges)==null?void 0:l[0],_.WRZ);return I?(I==null?void 0:I.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.B.computeHeaderHidden=function(){var V,l,I,H,T,x;return!((V=this.data)==null?0:V.icon)&&!((l=this.data)==null?0:l.title)&&!((I=this.data)==null?0:I.subtitle)&&!((H=this.data)==null?0:H.thumbnail)&&!((T=this.data)==null?0:T.badges)&&!((x=this.data)==null?0:x.menu)};
_.B.showCtaButton=function(){var V;return!((V=this.data)==null||!V.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.B.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.B.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.B.computeForce16By9ThumbnailAspectRatio=function(){var V,l;return((V=this.data)==null?void 0:(l=V.responsiveContainerConfiguration)==null?void 0:l.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.B.onSectionReactiveDismissal=function(V,l,I){var H,T;var x=(H=this.data)==null?void 0:(T=H.targetingContext)==null?void 0:T.targetGroupId;this&&x&&l.targetGroupId&&x.includes(l.targetGroupId)?(H=this.rowIndex,V=H===void 0?!1:!(l.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&H<=V)):V=!1;V&&(this.hidden=I)};
_.vI.Object.defineProperties(UgJ.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var V=this.elementsPerRow;this.isPostShelfRenderer()?V=this.postsPerRow:this.isSlimMediaShelfRenderer()?V=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?V=this.slimItemsPerRow-1:this.isGameCardShelf()?V=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(V=this.miniGameCardsPerRow);return V}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.z("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var V,l;return!((V=this.data)==null||!V.previousButton)&&!((l=this.data)==null||!l.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 V;return((V=_.F().resolve(_.pa).getCurrentPage())==null?void 0:V.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H;return!((V=this.data)==null?0:(l=V.thumbnail)==null?0:(I=l.accessibility)==null?0:(H=I.accessibilityData)==null?0:H.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
var Nt=UgJ;Nt.prototype.onChildElementFocus=Nt.prototype.onChildElementFocus;Nt.prototype.handleRerenderDownloadsData=Nt.prototype.handleRerenderDownloadsData;Nt.prototype.onDataChange=Nt.prototype.onDataChange;Nt.prototype.onRowIndexChange=Nt.prototype.onRowIndexChange;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.SE),_.a("design:type",Object)],Nt.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Nt.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Nt.prototype,"ytdReduxBehavior",void 0);_.O([_.q({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.a("design:type",Object)],Nt.prototype,"useResponsiveGrid",void 0);_.O([_.q(),_.a("design:type",Object)],Nt.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Number)],Nt.prototype,"standardUnitMinWidth",void 0);_.O([_.q({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],Nt.prototype,"elementsPerRow",void 0);_.O([_.q({value:3}),_.a("design:type",Number)],Nt.prototype,"postsPerRow",void 0);_.O([_.q({value:6}),_.a("design:type",Number)],Nt.prototype,"slimItemsPerRow",void 0);_.O([_.q({value:6}),_.a("design:type",Number)],Nt.prototype,"gameCardsPerRow",void 0);
_.O([_.q({value:6}),_.a("design:type",Number)],Nt.prototype,"miniGameCardsPerRow",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nt.prototype,"hidden",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nt.prototype,"standardShelfMargins",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nt.prototype,"isShowMoreHidden",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nt.prototype,"isExpanded",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nt.prototype,"isInnerShelf",void 0);_.O([_.q({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.a("design:type",Boolean)],Nt.prototype,"isShorts",void 0);_.O([_.q({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.a("design:type",Boolean)],Nt.prototype,"isLumiere",void 0);_.O([_.q({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.a("design:type",Boolean)],Nt.prototype,"hasBoxArtThumbnailStyle",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.a("design:type",Boolean)],Nt.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.a("design:type",Boolean)],Nt.prototype,"hasFeaturedBadge",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.a("design:type",Boolean)],Nt.prototype,"hasPaygatedFeaturedBadge",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.a("design:type",Boolean)],Nt.prototype,"isHeaderHidden",void 0);_.O([_.q({selector:_.Q7T}),_.a("design:type",Object)],Nt.prototype,"allVideosCount",void 0);_.O([_.q({selector:bfN}),_.a("design:type",Object)],Nt.prototype,"allPlaylistCount",void 0);_.O([_.q({selector:vgt}),_.a("design:type",Object)],Nt.prototype,"haveSmartDownloadsCompleted",void 0);
_.O([_.q({selectorArgs:["entitySelectorType"],selector:function(V,l){if(_.z("kevlar_modern_downloads_page")&&l&&l!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var I=V.entities;switch(l){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":l=_.rJ(I);V=oJ(l);var H=_.F3(l);I=_.El(I);I=_.iJ(PHf(H,I,l.length));return{contents:V,subtitle:I};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return I=_.rJ(I),{contents:oJ(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return I=
_.GV(I),{contents:oJ(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return I=_.K8t(I),{contents:oJ(I)};default:_.hF(new _.Yd("Error: entitySelectorType defined but not matched in selector.",V,l))}}}}),
_.a("design:type",Object)],Nt.prototype,"entityDrivenRichShelfData",void 0);_.O([_.q({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.a("design:type",Boolean)],Nt.prototype,"hasTopCtaButton",void 0);_.O([_.q({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.a("design:type",Boolean)],Nt.prototype,"hasBottomCtaButton",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.a("design:type",Boolean)],Nt.prototype,"force16By9ThumbnailAspectRatio",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nt.prototype,"isShowLessHidden",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nt.prototype,"restrictContentsOverflow",void 0);_.O([_.q({selector:_.hdg}),_.a("design:type",Boolean)],Nt.prototype,"inlinePreviewIsEnabled",void 0);
_.O([_.q({computed:"computeSizing(data)"}),_.a("design:type",String)],Nt.prototype,"sizing",void 0);_.O([_.q(),_.a("design:type",Boolean)],Nt.prototype,"typographyBump",void 0);_.O([_.q(),_.a("design:type",Number)],Nt.prototype,"itemWidth",void 0);_.O([_.q(),_.a("design:type",Object)],Nt.prototype,"firstShownIndex",void 0);_.O([_.q(),_.a("design:type",Object)],Nt.prototype,"horizontalOffset",void 0);_.O([_.q(),_.a("design:type",Object)],Nt.prototype,"atEnd",void 0);
_.O([_.Ij("#contents"),_.a("design:type",HTMLElement)],Nt.prototype,"contents",void 0);_.O([_.b("data.rowIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nt.prototype,"onRowIndexChange",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nt.prototype,"onDataChange",null);
_.O([_.b("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nt.prototype,"handleRerenderDownloadsData",null);_.O([_.W("focusin"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Nt.prototype,"onChildElementFocus",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data","isHomePage"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nt.prototype,"isTruncated",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nt.prototype,"hideBottomDivider",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nt.prototype,"hasChevronButtons",null);_.O([_.Q("firstShownIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nt.prototype,"previousButtonOverride",null);
_.O([_.Q("atEnd"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nt.prototype,"nextButtonOverride",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nt.prototype,"isHomePage",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nt.prototype,"thumbnailAriaHidden",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nt.prototype,"initiallyIsExpanded",null);
_.O([_.Q("data"),_.a("design:type",String),_.a("design:paramtypes",[])],Nt.prototype,"entitySelectorType",null);Nt=_.O([_.A({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Nt);
_.nZ0=_.O7()(Nt,"ytd-rich-shelf-renderer",function(){if(xgw===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);xgw=V}V=xgw;return V},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var $gi;var dgN=function(){var V=_.M.apply(this,arguments)||this;V.tileLottieAnimationRef={};V.backgroundLottieAnimationRef={};V.isOnHoverBehaviorForLottieEnabled=!0;V.useBiggerShowcaseImage=_.z("enable_desktop_search_bigger_thumbs");V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return V};
_.t(dgN,_.M);_.B=dgN.prototype;_.B.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.B.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"}}}};
_.B.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var V=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);V!==this.hasTile&&this.set("hasTile",V);V=this.hasLogo(this.data)||!!this.data.badgeText;V!==this.hasMetadata&&this.set("hasMetadata",V);V=this.data.overflowButton?!1:V;V!==this.showLogoImage&&this.set("showLogoImage",V);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.B.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.B.currentColorChanged=function(){this.updateButtonPalette()};
_.B.computeBackgroundStyle=function(V){if(V&&this.data){var l=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.pt((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&l.push('background-image: url("'+I+'");')}var H;((H=V.basicColorData)==null?void 0:H.backgroundColor)!==void 0&&l.push("background-color: "+_.rP(V.basicColorData.backgroundColor)+";");return l.join("")}};
_.B.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&this.set("isDarkTheme",V)};
_.B.getCurrentLogo=function(V,l){if(V)return l?V.darkLogoImage:V.lightLogoImage};
_.B.getCurrentStaticTileImage=function(V,l){if(this.hasStaticTile(V))return V.darkTileImage?l?V.darkTileImage:V.tileImage:V.tileImage};
_.B.computeTitleStyle=function(V){if(this.data&&this.data.title&&V&&V.basicColorData&&V.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.tv(V.basicColorData.foregroundTitleColor)+";"};
_.B.computeSubtitleStyle=function(V){if(this.data&&this.data.subtitle&&V&&V.basicColorData&&V.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.tv(V.basicColorData.foregroundBodyColor)+";"};
_.B.computeSupplementalStyle=function(V){if(this.data&&this.data.supplementalText&&V&&V.supplementalTextColor!==void 0)return V=_.tv(V.supplementalTextColor),"color:"+V+";--yt-endpoint-color:"+V+";--yt-endpoint-hover-color:"+V+";--yt-endpoint-visited-color:"+V+";--yt-formatted-string-bold-font-weight:700;"};
_.B.computeBadgeStyle=function(V){if(this.data&&this.data.badgeText&&V&&V.basicColorData&&V.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.tv(V.basicColorData.foregroundActivatedColor)+";"};
_.B.computeDismissIconStyle=function(V){var l,I;if((V==null?0:(l=V.dismissButtonColorData)==null?0:l.foregroundTitleColor)&&(V==null?0:(I=V.dismissButtonColorData)==null?0:I.backgroundColor))return"--yt-button-color:"+_.rP(V.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.rP(V.dismissButtonColorData.backgroundColor)+";"};
_.B.computeOverflowIconStyle=function(V){var l,I;if((V==null?0:(l=V.dismissButtonColorData)==null?0:l.foregroundTitleColor)&&(V==null?0:(I=V.dismissButtonColorData)==null?0:I.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.rP(V.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.rP(V.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.rP(V.dismissButtonColorData.foregroundTitleColor)+";"};
_.B.computeBannerStyle=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.B.computeLocation=function(V){switch(V==null?void 0:V.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.B.shouldShowTileSection=function(V,l,I){return!this.shouldExpandLogo(V,l,I)&&l};
_.B.shouldShowExpandedLogoSection=function(V,l,I){return this.shouldExpandLogo(V,l,I)&&V!==void 0&&this.hasLogo(V)};
_.B.shouldExpandLogo=function(V,l,I){return V&&l?!1:I>=2};
_.B.hasStaticTile=function(V){return!(V==null||!V.tileImage)};
_.B.hasTileLottie=function(V){var l;return!!(V==null?0:(l=V.tileLottie)==null?0:l.url)};
_.B.hasLogo=function(V){return this.getCurrentLogo(V,this.isDarkTheme)!==void 0};
_.B.getLogoHeight=function(V){return this.logoWithPadding(V)?"26":"20"};
_.B.getExpandedLogoHeight=function(V){return this.logoWithPadding(V)?"31":"24"};
_.B.getLogoImageId=function(V){return this.logoWithPadding(V)?"logo-image-with-padding":"logo-image"};
_.B.hasBackgroundLottie=function(V){var l;return!!(V==null?0:(l=V.backgroundLottie)==null?0:l.url)};
_.B.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var V,l;(V=this.tileLottieAnimationRef)==null||(l=V.lottieEl)==null||l.play();var I,H;(I=this.backgroundLottieAnimationRef)==null||(H=I.lottieEl)==null||H.play()}};
_.B.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var V,l;(V=this.tileLottieAnimationRef)==null||(l=V.lottieEl)==null||l.pause();var I,H;(I=this.backgroundLottieAnimationRef)==null||(H=I.lottieEl)==null||H.pause()}};
_.B.pauseLottie=function(){var V,l;(V=this.tileLottieAnimationRef)==null||(l=V.lottieEl)==null||l.pause();var I,H;(I=this.backgroundLottieAnimationRef)==null||(H=I.lottieEl)==null||H.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.B.performPrimaryButtonAction=function(){var V,l,I;((V=this.data)==null?0:(l=V.primaryButton)==null?0:(I=l.buttonRenderer)==null?0:I.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.B.requestElementsPerRow=function(){_.B$(this.hostElement,"yt-request-elements-per-row")};
_.B.updateButtonPalette=function(){if(this.data&&this.currentColorData){var V;((V=this.data.dismissButton)==null?0:V.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 l;if((l=this.data.primaryButton)==null?0:l.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 I;if((I=this.data.secondaryButton)==
null?0:I.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 H;((H=this.data.primaryButton)==null?0:H.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var T;((T=this.data.secondaryButton)==null?0:T.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.B.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var V=this.getTileLottieDataBasedOnTheme(),l,I;if(V.url!==((l=this.tileLottiePlayerProps)==null?void 0:(I=l.animationConfig)==null?void 0:I.path)){var H,T;(H=this.tileLottieAnimationRef)==null||(T=H.lottieEl)==null||T.destroy();var x;this.isOnHoverBehaviorForLottieEnabled=!((x=V.settings)==null?0:x.autoplay);var n,w;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(w=(n=V.settings)==null?void 0:n.autoplay)!=null?w:!1,loop:this.getLottieLoopValue(V.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof V.url==="string"?this.tileLottiePlayerProps.animationConfig.path=V.url:this.tileLottiePlayerProps.animationConfig.animationData=V.url}}};
_.B.getOverflowButton=function(V){return _.y(V.overflowButton,QGw)};
_.B.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var V=this.getBackgroundLottieDataBasedOnTheme(),l,I;if(V.url!==((l=this.backgroundLottiePlayerProps)==null?void 0:(I=l.animationConfig)==null?void 0:I.path)){var H,T;(H=this.backgroundLottieAnimationRef)==null||(T=H.lottieEl)==null||T.destroy();var x;this.isOnHoverBehaviorForLottieEnabled=!((x=V.settings)==null?0:x.autoplay);var n,w;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(w=(n=V.settings)==null?void 0:n.autoplay)!=null?w:!1,loop:this.getLottieLoopValue(V.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof V.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=V.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
V.url}}};
_.B.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var V;((V=this.tileLottieAnimationRef)==null?void 0:V.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var l;((l=this.backgroundLottieAnimationRef)==null?void 0:l.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.B.getTileLottieDataBasedOnTheme=function(){var V;if(this.isDarkTheme&&((V=this.data)==null?0:V.darkThemeTileLottie))return this.data.darkThemeTileLottie;var l;return((l=this.data)==null?0:l.tileLottie)?this.data.tileLottie:{}};
_.B.getBackgroundLottieDataBasedOnTheme=function(){var V;if(this.isDarkTheme&&((V=this.data)==null?0:V.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var l;return((l=this.data)==null?0:l.backgroundLottie)?this.data.backgroundLottie:{}};
_.B.onUpdateElementsPerRowAction=function(V){V&&this.elementsPerRow!==V&&(this.elementsPerRow=V)};
_.B.getLottieLoopValue=function(V){return V?V.loop!==void 0?V.loop:V.loopCount?V.loopCount-1:!0:!0};
_.B.logoWithPadding=function(V){var l,I,H;return(V=(l=this.getCurrentLogo(V,this.isDarkTheme))==null?void 0:(I=l.thumbnails)==null?void 0:(H=I[0])==null?void 0:H.height)&&V%31===0?!0:!1};
var KI=dgN;KI.prototype.currentColorChanged=KI.prototype.currentColorChanged;KI.prototype.themeChanged=KI.prototype.themeChanged;KI.prototype.dataChanged=KI.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],KI.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],KI.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],KI.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],KI.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],KI.prototype,"primaryButton",void 0);_.O([_.q(),_.a("design:type",Object)],KI.prototype,"secondaryButton",void 0);
_.O([_.q({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],KI.prototype,"elementsPerRow",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],KI.prototype,"isDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],KI.prototype,"hasTile",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],KI.prototype,"hasMetadata",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],KI.prototype,"showLogoImage",void 0);_.O([_.q(),_.a("design:type",Object)],KI.prototype,"currentColorData",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.a("design:type",String)],KI.prototype,"bannerStyle",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.a("design:type",String)],KI.prototype,"location",void 0);
_.O([_.q(),_.a("design:type",Object)],KI.prototype,"tileLottiePlayerProps",void 0);_.O([_.q(),_.a("design:type",Object)],KI.prototype,"tileLottieAnimationRef",void 0);_.O([_.q(),_.a("design:type",Object)],KI.prototype,"backgroundLottiePlayerProps",void 0);_.O([_.q(),_.a("design:type",Object)],KI.prototype,"backgroundLottieAnimationRef",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],KI.prototype,"useBiggerShowcaseImage",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],KI.prototype,"isHideEnclosingAction",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KI.prototype,"dataChanged",null);_.O([_.xs("isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KI.prototype,"themeChanged",null);
_.O([_.xs("currentColorData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KI.prototype,"currentColorChanged",null);KI=_.O([_.A({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],KI);
_.u(KI,"ytd-statement-banner-renderer",function(){if($gi!==void 0)return $gi;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n    <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n  </ytd-lottie-player></div>\n  <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n      <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n        <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n      </ytd-lottie-player></div>\n    </div>\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n      <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n      <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-dynamic-sizing-formatted-string>\n          <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n        </div>\n        <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n        </div>\n      </div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return $gi=V},{mode:1});var wWa;var NHi=function(){var V=_.M.apply(this,arguments)||this;V.isSearch=!1;V.hideShelfHeader=!1;V.engagementPanel=!1;V.disableMouseScroll=!0;V.useFloorScrolling=!0;V.modernTypography=_.z("web_modern_typography");return V};
_.t(NHi,_.M);NHi.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.LT("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.LT("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
NHi.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var ji=NHi;ji.prototype.onDataChanged=ji.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ji.prototype,"isSearch",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ji.prototype,"hideShelfHeader",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ji.prototype,"engagementPanel",void 0);_.O([_.q(),_.a("design:type",Object)],ji.prototype,"disableMouseScroll",void 0);_.O([_.q(),_.a("design:type",Object)],ji.prototype,"useFloorScrolling",void 0);_.O([_.q(),_.a("design:type",Object)],ji.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ji.prototype,"modernTypography",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ji.prototype,"onDataChanged",null);ji=_.O([_.A({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],ji);
_.u(ji,"ytd-reel-shelf-renderer",function(){if(wWa!==void 0)return wWa;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return wWa=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var KtZ;var j4w=_.W1(function(V){var l=V.data;V=V.useSmallFont;var I={},H={};return _.Y("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.Y(_.NS,{cond:function(){return l().favicon},
then:function(T){return _.Y(_.cX,{data:T,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.Y("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.Y(_.Ni,{text:function(){return l().title},
className:_.ii("yt-channel-external-link-view-model-wiz__title",(I["yt-channel-external-link-view-model-wiz__title--title-small-font"]=V,I)),ellipsisTruncate:!0,userInput:!0}),_.Y(_.Ni,{text:function(){return l().link},
className:_.ii("yt-channel-external-link-view-model-wiz__link",(H["yt-channel-external-link-view-model-wiz__link--link-small-font"]=V,H)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"tb");
j4w.idomCompat=!0;_.MR(j4w,"yt-channel-external-link-view-model",{props:{data:_.b9,useSmallFont:_.b9}});_.yN("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var YGJ=function(){var V=_.M.apply(this,arguments)||this;V.revealButtonClass="button";V.businessEmailDisplayState="HIDE_SECTION";return V};
_.t(YGJ,_.M);_.B=YGJ.prototype;_.B.refit=function(){var V=this;_.r_(function(){_.U4(V.hostElement,"yt-refit-popups-action")});
_.Al(this,function(){_.U4(V.hostElement,"yt-refit-popups-action")})};
_.B.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Ra("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.B.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"};
_.B.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.B.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"}}}};
_.B.computeEmailHref=function(V){return"mailto:"+V};
_.B.computeSafeUrl=function(V){if(V)return _.S6(V)};
_.B.linkEndpoint=function(V){return _.y(V.onTap,_.yI)};
_.B.linkEndpointToHref=function(V){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(V))};
_.B.onYtServiceRequestCompleted=function(V){var l;if((l=V.detail.data)==null?0:l.businessEmail)this.businessEmail=V.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=V.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=V.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.B.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var V=this.JSC$13988_captchaTextarea.value;if(V){V={recaptcha_response_token:V,channel_id:this.metadata.channelId};var l=_.y(this.metadata.onBusinessEmailRevealClickCommand,_.yI);l&&this.ytComponentBehavior.resolveCommand(l,{form:V})}}};
_.B.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.vI.Object.defineProperties(YGJ.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var V;return _.y((V=this.data)==null?void 0:V.metadata,cmE)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.y(this.metadata.businessEmailRevealButton,_.Gb)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var V=new URL(this.metadata.canonicalChannelUrl);return V.host+V.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.y(this.metadata.learnMoreOnTap,_.yI)}}});
var Yt=YGJ;Yt.prototype.onYtServiceRequestCompleted=Yt.prototype.onYtServiceRequestCompleted;Yt.prototype.businessEmailMetadataChanged=Yt.prototype.businessEmailMetadataChanged;Yt.prototype.refit=Yt.prototype.refit;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Yt.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Yt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Ij("#g-recaptcha-response"),_.a("design:type",HTMLTextAreaElement)],Yt.prototype,"JSC$13988_captchaTextarea",void 0);_.O([_.q(),_.a("design:type",Object)],Yt.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Yt.prototype,"revealButtonClass",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yt.prototype,"metadata",null);
_.O([_.Q("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yt.prototype,"revealButton",null);_.O([_.Q("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yt.prototype,"channelDisplayUrl",null);_.O([_.xs("metadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yt.prototype,"refit",null);_.O([_.Q("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yt.prototype,"formattedDescription",null);
_.O([_.Q("metadata","learnMoreCommand"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yt.prototype,"shouldRendereVerifiedPhoneStatus",null);_.O([_.Q("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yt.prototype,"learnMoreCommand",null);_.O([_.q(),_.a("design:type",String)],Yt.prototype,"businessEmailDisplayState",void 0);_.O([_.q(),_.a("design:type",String)],Yt.prototype,"businessEmail",void 0);
_.O([_.q(),_.a("design:type",String)],Yt.prototype,"businessEmailErrorMessage",void 0);_.O([_.xs("metadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yt.prototype,"businessEmailMetadataChanged",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Yt.prototype,"onYtServiceRequestCompleted",null);
Yt=_.O([_.A({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Yt);
_.u(Yt,"ytd-about-channel-renderer",function(){if(KtZ!==void 0)return KtZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return KtZ=V},{mode:1});var LtN;var eCo=function(){return _.M.apply(this,arguments)||this};
_.t(eCo,_.M);var LI=eCo;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],LI.prototype,"data",void 0);LI=_.O([_.A({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],LI);
_.u(LI,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(LtN!==void 0)return LtN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return LtN=V},{mode:1});var kyo;var Ft0=function(){return _.M.apply(this,arguments)||this};
_.t(Ft0,_.M);Ft0.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
var ei=Ft0;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ei.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],ei.prototype,"aligment",void 0);ei=_.O([_.A({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],ei);
_.u(ei,"ytd-channel-list-sub-menu-renderer",function(){if(kyo!==void 0)return kyo;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return kyo=
V},{mode:1});var XWa;var zCN=function(){return _.M.apply(this,arguments)||this};
_.t(zCN,_.M);zCN.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
var kt=zCN;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],kt.prototype,"data",void 0);kt=_.O([_.A({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],kt);
_.u(kt,"ytd-channel-sub-menu-renderer",function(){if(XWa!==void 0)return XWa;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return XWa=V},{mode:1});var yW3;var t80;var rWW=function(){var V=_.M.apply(this,arguments)||this;V.isCompact=!1;return V};
_.t(rWW,_.M);_.vI.Object.defineProperties(rWW.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var V,l;return((l=_.y((V=this.data)==null?void 0:V.endpoint,_.cF))==null?void 0:l.target)==="TARGET_NEW_WINDOW"}}});
var F8=rWW;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],F8.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],F8.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],F8.prototype,"isCompact",void 0);_.O([_.Q("isCompact"),_.a("design:type",Number),_.a("design:paramtypes",[])],F8.prototype,"thumbnailWidth",null);
_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],F8.prototype,"openNewWindow",null);F8=_.O([_.A({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],F8);
_.u(F8,"ytd-media-lockup-renderer",function(){if(t80!==void 0)return t80;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return t80=V},{mode:1});var GyZ;var EZa=function(){return _.M.apply(this,arguments)||this};
_.t(EZa,_.M);var X8=EZa;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],X8.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],X8.prototype,"data",void 0);X8=_.O([_.A({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],X8);
_.u(X8,"ytd-structured-description-channel-lockup-renderer",function(){if(GyZ!==void 0)return GyZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return GyZ=V},{mode:1});var JWN;var oZ0=function(){var V=_.M.apply(this,arguments)||this;V.isCompact=!1;V.collections=_.z("web_modern_collections_v2");V.collectionsStackColor=_.z("modernize_structured_description_playlist_lockups_v2");return V};
_.t(oZ0,_.M);oZ0.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:_.z("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.vI.Object.defineProperties(oZ0.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H,T,x;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(V=this.data)==null?void 0:(l=V.thumbnail)==null?void 0:l.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(I=this.data)==null?void 0:(H=I.thumbnail)==null?void 0:H.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(T=this.data)==null?void 0:(x=T.thumbnail)==
null?void 0:x.vibrantColorPalette:void 0}}}});
var z6=oZ0;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],z6.prototype,"componentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],z6.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],z6.prototype,"showSidePanelThumbnailOverlay",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],z6.prototype,"isCompact",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],z6.prototype,"collections",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],z6.prototype,"collectionsStackColor",void 0);
_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],z6.prototype,"twoLineTitle",null);_.O([_.Q("data","collections","collectionsStackColor"),_.a("design:type",Object),_.a("design:paramtypes",[])],z6.prototype,"collectionStack",null);z6=_.O([_.A({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],z6);
_.u(z6,"ytd-structured-description-playlist-lockup-renderer",function(){if(JWN!==void 0)return JWN;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return JWN=V},{mode:1});var hCZ;var Pq0=function(){return _.M.apply(this,arguments)||this};
_.t(Pq0,_.M);var tX=Pq0;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],tX.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tX.prototype,"data",void 0);tX=_.O([_.A({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],tX);
_.u(tX,"ytd-structured-description-video-lockup-renderer",function(){if(hCZ!==void 0)return hCZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return hCZ=V},{mode:2});var Dgi=function(){return _.M.apply(this,arguments)||this};
_.t(Dgi,_.M);
Dgi.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
var rZ=Dgi;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],rZ.prototype,"data",void 0);rZ=_.O([_.A({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],rZ);
_.u(rZ,"ytd-compact-infocard-renderer",function(){if(yW3!==void 0)return yW3;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return yW3=V},{mode:1});var Z9W;var SGv=function(){var V=_.M.apply(this,arguments)||this;V.useModernCollectionsV2=_.z("web_modern_collections_v2");return V};
_.t(SGv,_.M);SGv.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.vI.Object.defineProperties(SGv.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("kevlar_watch_feed_big_thumbs")?"":"94"}}});
var G6=SGv;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],G6.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],G6.prototype,"ytdReduxBehavior",void 0);_.O([_.q({selector:_.SM}),_.a("design:type",Object)],G6.prototype,"isGridViewEnabled",void 0);
_.O([_.Q("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],G6.prototype,"watchFeedBigThumbs",null);_.O([_.Q("isGridViewEnabled","data"),_.q({reflectToAttribute:!0,value:"168"}),_.a("design:type",String),_.a("design:paramtypes",[])],G6.prototype,"thumbnailWidth",null);_.O([_.Q("isGridViewEnabled","data"),_.q({reflectToAttribute:!0,value:"94"}),_.a("design:type",String),_.a("design:paramtypes",[])],G6.prototype,"customThumbnailSize",null);
_.O([_.q(),_.a("design:type",Object)],G6.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],G6.prototype,"useModernCollectionsV2",void 0);G6=_.O([_.A({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],G6);
_.u(G6,"ytd-compact-playlist-renderer",function(){if(Z9W!==void 0)return Z9W;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Z9W=V},{mode:1});var RCo;var Q4b=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");V.roundedContainer=!0;V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return V};
_.t(Q4b,_.M);_.B=Q4b.prototype;_.B.attached=function(){this.requestElementsPerRow()};
_.B.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"}}}};
_.B.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.B.computeViewStyle=function(V){return V.style?V.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.B.onUpdateElementsPerRowAction=function(V){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&V===1};
_.B.requestElementsPerRow=function(){_.B$(this.hostElement,"yt-request-elements-per-row")};
var E3=Q4b;E3.prototype.dataChanged=E3.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],E3.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],E3.prototype,"actionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],E3.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],E3.prototype,"hideThumbnail",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.a("design:type",String)],E3.prototype,"viewStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],E3.prototype,"darkerDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],E3.prototype,"roundedContainer",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],E3.prototype,"dataChanged",null);E3=_.O([_.A({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],E3);
_.u(E3,"ytd-compact-promoted-item-renderer",function(){if(RCo!==void 0)return RCo;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return RCo=V},{mode:1});var cWa;var JX=function(){var V=_.M.apply(this,arguments)||this;V.collections=_.z("web_modern_collections_v2");return V};
_.t(JX,_.M);JX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
JX.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
JX.prototype.onYtNavigate=function(V,l){var I=this;if(l.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",l)){var H=this.get("watchEndpoint.videoId",l.endpoint),T=_.U4(this.hostElement,"yt-get-current-video-id-action")[0];_.z("kevlar_mix_handle_first_endpoint_different")&&H&&T&&H!==T||(V.stopPropagation(),_.vu().getPlayerPromise().then(function(x){if(x.getPlayerState()===0&&I.data.secondaryNavigationEndpoint)var n=I.data.secondaryNavigationEndpoint;else{n=
Object.assign({},l.endpoint);var w=_.y(n.commandMetadata,_.mK);w&&(x=Math.floor(x.getCurrentTime()),w.url=_.MS(w.url,{t:x}),!_.z("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(w=_.y(n,_.vU)))&&(w.startTimeSeconds=x)}_.B$(I.hostElement,"yt-navigate",{endpoint:n})}))}};
_.vI.Object.defineProperties(JX.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H,T,x;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(V=this.data)==null?void 0:(l=V.thumbnail)==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(H=I.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(T=this.data)==null?void 0:(x=T.thumbnail)==null?void 0:x.darkColorPalette,experimentEnabled:this.collections}}}});
var o$=JX;o$.prototype.onYtNavigate=o$.prototype.onYtNavigate;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Uf.YtEndpointBehavior),_.a("design:type",Object)],o$.prototype,"ytEndpointBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],o$.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.R(_.sE),_.a("design:type",Object)],o$.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],o$.prototype,"ytdReduxBehavior",void 0);_.O([_.q({selector:_.SM}),_.a("design:type",Object)],o$.prototype,"isGridViewEnabled",void 0);_.O([_.Q("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],o$.prototype,"watchFeedBigThumbs",null);
_.O([_.Q("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],o$.prototype,"thumbnailWidth",null);_.O([_.q(),_.a("design:type",Object)],o$.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],o$.prototype,"collections",void 0);_.O([_.Q("data","collections"),_.a("design:type",Object),_.a("design:paramtypes",[])],o$.prototype,"collectionStack",null);
_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],o$.prototype,"onYtNavigate",null);o$=_.O([_.A({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],o$);
_.u(o$,"ytd-compact-radio-renderer",function(){if(cWa!==void 0)return cWa;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return cWa=V},{mode:1});var Wtb;var b9J=function(){return _.M.apply(this,arguments)||this};
_.t(b9J,_.M);b9J.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
b9J.prototype.computeRendererStyle=function(V){return V.style?V.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
var hX=b9J;_.O([_.q(),_.a("design:type",Object)],hX.prototype,"data",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],hX.prototype,"rendererBehavior",void 0);_.O([_.q({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],hX.prototype,"rendererStyle",void 0);
hX=_.O([_.A({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],hX);
_.u(hX,"ytd-compact-text-promo-renderer",function(){if(Wtb!==void 0)return Wtb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Wtb=V},{mode:1});var qGo;var M8N=function(){var V=_.M.apply(this,arguments)||this;V.isShortsStyle=!1;return V};
_.t(M8N,_.M);_.B=M8N.prototype;_.B.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"}}}};
_.B.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.B$(this.hostElement,"yt-disable-lockup-interaction"):_.B$(this.hostElement,"yt-enable-lockup-interaction"))};
_.B.isMetaBlockEmpty=function(V){return!V||!V.longBylineText&&!V.shortBylineText&&!V.shortViewCountText&&!V.viewCountText};
_.B.computeHasOneLineTitle=function(V){return this.forceOneLineTitle||!(V==null||!V.buttons)};
_.B.computeDisableInteraction=function(){var V;return!((V=this.data)==null?0:V.navigationEndpoint)};
_.B.hasSingularTopStandaloneBadge=function(){var V;return!((V=this.data)==null||!V.topStandaloneBadge)};
_.vI.Object.defineProperties(M8N.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("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 V;return this.hasSingularTopStandaloneBadge()?[(V=this.data)==null?void 0:V.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var V;return this.shouldShowTopBadges?((V=this.data)==null?void 0:V.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
var Pg=M8N;Pg.prototype.disableInteractionChanged=Pg.prototype.disableInteractionChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Pg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],Pg.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],Pg.prototype,"ytdLockupBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],Pg.prototype,"ytdReduxBehavior",void 0);_.O([_.q({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.a("design:type",Boolean)],Pg.prototype,"metaBlockEmpty",void 0);_.O([_.q({selector:_.SM}),_.a("design:type",Object)],Pg.prototype,"isGridViewEnabled",void 0);_.O([_.Q("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Pg.prototype,"watchFeedBigThumbs",null);
_.O([_.Q("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],Pg.prototype,"thumbnailWidth",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Pg.prototype,"isShortsStyle",void 0);_.O([_.q(),_.a("design:type",Object)],Pg.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.a("design:type",Boolean)],Pg.prototype,"hasOneLineTitle",void 0);
_.O([_.q(),_.a("design:type",Boolean)],Pg.prototype,"hideThumbnail",void 0);_.O([_.q(),_.a("design:type",Boolean)],Pg.prototype,"forceOneLineTitle",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.a("design:type",Boolean)],Pg.prototype,"disableInteraction",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Pg.prototype,"musicMetadataVideoLockup",void 0);
_.O([_.b("disableInteraction"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pg.prototype,"disableInteractionChanged",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Pg.prototype,"shouldShowTopBadges",null);_.O([_.Q("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],Pg.prototype,"topBadges",null);
_.O([_.Q("shouldShowTopBadges","data"),_.a("design:type",Array),_.a("design:paramtypes",[])],Pg.prototype,"inlineMetadataBadges",null);_.O([_.Q("shouldShowTopBadges"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Pg.prototype,"shouldShowBadgesBelowMetadata",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Pg.prototype,"compactTitleClass",null);Pg=_.O([_.A({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Pg);
_.u(Pg,"ytd-compact-video-renderer",function(){if(qGo!==void 0)return qGo;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return qGo=V},{mode:_.Cm("kevlar_poly_si_batch_j067")?1:2});var s4Z;_.yN("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var pW3=function(){return _.M.apply(this,arguments)||this};
_.t(pW3,_.M);var DH=pW3;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],DH.prototype,"data",void 0);DH=_.O([_.A({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],DH);
_.u(DH,"ytd-counterfactual-renderer",function(){if(s4Z!==void 0)return s4Z;var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return s4Z=V},{mode:1});var AW0;var ZH=function(){var V=_.M.apply(this,arguments)||this;V.hidden=!1;return V};
_.t(ZH,_.M);ZH.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&(_.z("web_ytd_dropdown_item_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.onSelectCommand]):_.F().resolve(_.aw).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}}))};
ZH.prototype.computeHidden=function(V){return!!V};
_.vI.Object.defineProperties(ZH.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
var Si=ZH;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Si.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.a("design:type",Object)],Si.prototype,"hidden",void 0);_.O([_.Q("data.label"),_.a("design:type",String),_.a("design:paramtypes",[])],Si.prototype,"label",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Si.prototype,"value",null);Si=_.O([_.A({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Si);
_.u(Si,"ytd-dropdown-item-renderer",function(){if(AW0!==void 0)return AW0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return AW0=V},{mode:1});var uno;var vZ3;var O9a=function(){return _.M.apply(this,arguments)||this};
_.t(O9a,_.M);var R$=O9a;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],R$.prototype,"data",void 0);_.O([_.q({computed:"getSimpleString(data.label)"}),_.a("design:type",String)],R$.prototype,"label",void 0);R$=_.O([_.A({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],R$);
_.u(R$,"ytd-navigation-dropdown-item-renderer",function(){if(vZ3!==void 0)return vZ3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return vZ3=V},{mode:1});var Cq0=function(){var V=_.M.apply(this,arguments)||this;V.disabled=!1;V.value="";V.noLabelFloat=!1;V.noUnderline=!1;V.usePrimaryColor=!1;V.hasBackground=!1;V.verticalAlign="top";V.autosize=!1;V.minAutosizeWidth=100;V.autosizeFont="14px Roboto";return V};
_.t(Cq0,_.M);_.B=Cq0.prototype;_.B.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"}}}};
_.B.open=function(){this.inputEl.open()};
_.B.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.B.dataChanged=function(){this.reset()};
_.B.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("value-changed",this.value))};
_.B.stopPropagation=function(V){V.stopPropagation()};
_.B.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var V=this.canvas.getContext("2d");V&&(V.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(V.measureText(this.inputEl.value).width)+24)+"px")}};
_.B.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var V=0,l=this.data.entries.length;V<l;V++){var I=this.data.entries[V],H;for(H in I)if(I.hasOwnProperty(H)){var T=I[H];if("isSelected"in T&&T.isSelected)return"stringValue"in T?T.stringValue||"":"int32Value"in T?T.int32Value||0:0}}return null};
_.B.updateValueFromBinding=function(V){this.value=V.detail.value};
_.vI.Object.defineProperties(Cq0.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 V=0,l=this.data.entries.length;V<l;V++){var I=this.data.entries[V],H;for(H in I)if(I.hasOwnProperty(H)){var T=I[H];if("isSelected"in T&&T.isSelected&&"label"in T)return this.ytRendererBehavior.getSimpleString(T.label)}}return null}}});
var Qt=Cq0;Qt.prototype.autoSizeLabel=Qt.prototype.autoSizeLabel;Qt.prototype.stopPropagation=Qt.prototype.stopPropagation;Qt.prototype.valueChangedForBinding=Qt.prototype.valueChangedForBinding;Qt.prototype.dataChanged=Qt.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Qt.prototype,"ytRendererStamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],Qt.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Qt.prototype,"disabled",void 0);_.O([_.q(),_.a("design:type",Object)],Qt.prototype,"value",void 0);_.O([_.q(),_.a("design:type",Object)],Qt.prototype,"noLabelFloat",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Qt.prototype,"noUnderline",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],Qt.prototype,"theme",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Qt.prototype,"usePrimaryColor",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Qt.prototype,"hasBackground",void 0);_.O([_.q(),_.a("design:type",Object)],Qt.prototype,"verticalAlign",void 0);_.O([_.q(),_.a("design:type",Object)],Qt.prototype,"autosize",void 0);_.O([_.q(),_.a("design:type",Object)],Qt.prototype,"minAutosizeWidth",void 0);_.O([_.q(),_.a("design:type",Object)],Qt.prototype,"autosizeFont",void 0);
_.O([_.Ij("#entries"),_.a("design:type",Object)],Qt.prototype,"entries",void 0);_.O([_.Ij("#input"),_.a("design:type",Object)],Qt.prototype,"inputEl",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qt.prototype,"dataChanged",null);_.O([_.xs("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qt.prototype,"valueChangedForBinding",null);
_.O([_.W("iron-overlay-opened"),_.W("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Qt.prototype,"stopPropagation",null);_.O([_.W("iron-select"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qt.prototype,"autoSizeLabel",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qt.prototype,"label",null);
Qt=_.O([_.A({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Qt);
_.u(Qt,"ytd-dropdown-renderer",function(){if(uno!==void 0)return uno;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return uno=V},{mode:1});var ayw;var cg=function(){var V=_.M.apply(this,arguments)||this;V.isConstrainedList=!1;return V};
_.t(cg,_.M);cg.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"}}}};
cg.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
cg.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
cg.prototype.computeViewAllHidden=function(V,l){return V||!l.viewAllEndpoint};
var Wg=cg;Wg.prototype.fillRestIfNoShowMore=Wg.prototype.fillRestIfNoShowMore;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Wg.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.lL.YtLazyListBehavior),_.a("design:type",Object)],Wg.prototype,"ytLazyListBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Wg.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Wg.prototype,"isConstrainedList",void 0);_.O([_.xs("data","canShowMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Wg.prototype,"fillRestIfNoShowMore",null);Wg=_.O([_.A({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Wg);
_.u(Wg,"ytd-expanded-shelf-contents-renderer",function(){if(ayw!==void 0)return ayw;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ayw=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var fyo;var gZb=function(){return _.M.apply(this,arguments)||this};
_.t(gZb,_.M);gZb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var bj=gZb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],bj.prototype,"data",void 0);bj=_.O([_.A({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],bj);
_.u(bj,"ytd-feed-channel-filter-header-renderer",function(){if(fyo!==void 0)return fyo;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return fyo=V},{mode:1});var mg0;var i9Z;var VrW;var lJJ=function(){return _.M.apply(this,arguments)||this};
_.t(lJJ,_.M);_.B=lJJ.prototype;_.B.onClick=function(V){var l,I=(l=this.data)==null?void 0:l.sectionEndpoint;!_.qi(_.b3(V),this.hostElement,["A".toString()])&&I&&_.B$(this.hostElement,"yt-navigate",{endpoint:I})};
_.B.computeHasSectionEndpoint=function(V){return(V==null?void 0:V.sectionEndpoint)!==void 0};
_.B.computeShowHeaderAsLink=function(V){return(V==null?void 0:V.header)!==void 0&&(V==null?void 0:V.sectionEndpoint)!==void 0};
_.B.computeShowSubheaderAsLink=function(V){return(V==null?void 0:V.subheader)!==void 0&&(V==null?void 0:V.sectionEndpoint)!==void 0&&(V==null?void 0:V.header)===void 0};
_.B.getHeaderAsLinkClass=function(V){var l=[],I;(V==null?0:(I=V.headerIcon)==null?0:I.iconType)&&l.push("header-link-active");return l.join(" ")};
var qt=lJJ;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],qt.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],qt.prototype,"data",void 0);
_.O([_.q({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],qt.prototype,"hasSectionEndpoint",void 0);_.O([_.q({computed:"computeShowHeaderAsLink(data)"}),_.a("design:type",Boolean)],qt.prototype,"showHeaderAsLink",void 0);_.O([_.q({computed:"computeShowSubheaderAsLink(data)"}),_.a("design:type",Boolean)],qt.prototype,"showSubheaderAsLink",void 0);qt=_.O([_.A({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],qt);
_.u(qt,"ytd-medical-panel-section-renderer",function(){if(VrW!==void 0)return VrW;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return VrW=V},{mode:1});var IJo=function(){var V=_.M.apply(this,arguments)||this;V.isExpanded=!1;V.roundedContainer=!0;V.skipRoundingTop=!1;V.toggleExpandableSection=function(){V.isExpanded=!V.isExpanded};
return V};
_.t(IJo,_.M);
IJo.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]]"}}}}}};
IJo.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
var Mt=IJo;Mt.prototype.dataChanged=Mt.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Mt.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Mt.prototype,"isExpanded",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Mt.prototype,"roundedContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Mt.prototype,"skipRoundingTop",void 0);_.O([_.q(),_.a("design:type",Object)],Mt.prototype,"toggleExpandableSection",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mt.prototype,"dataChanged",null);
Mt=_.O([_.A({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Mt);
_.u(Mt,"ytd-medical-panel-content-renderer",function(){if(i9Z!==void 0)return i9Z;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return i9Z=V},{mode:1});_.yN("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var s3=function(){var V=_.M.apply(this,arguments)||this;V.roundedContainer=!0;V.amsterdamEnabled=_.z("enable_desktop_amsterdam_info_panels");V.hasTitle=!1;V.linkIcon="OPEN_IN_NEW";V.isDismissed=!1;return V};
_.t(s3,_.M);
s3.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"}}}};
s3.prototype.computeHasTitle=function(V){return!(V==null||!V.title)};
s3.prototype.onClick=function(V){var l,I=(l=this.data)==null?void 0:l.headerEndpoint;!_.qi(_.b3(V),this.hostElement,["BUTTON".toString()])&&I&&this.ytComponentBehavior.resolveCommand(I)};
_.vI.Object.defineProperties(s3.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 V;return((V=this.data)==null?void 0:V.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:V.disableBottomDivider)||!((l=this.data)==null?0:l.title)}}});
var pI=s3;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],pI.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],pI.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pI.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],pI.prototype,"roundedContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],pI.prototype,"amsterdamEnabled",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.a("design:type",Object)],pI.prototype,"hasTitle",void 0);
_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.background"),_.a("design:type",Object),_.a("design:paramtypes",[])],pI.prototype,"background",null);_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.titleStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],pI.prototype,"titleStyle",null);
_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Q("data.titleStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],pI.prototype,"showLinkIcon",null);_.O([_.q(),_.a("design:type",String)],pI.prototype,"linkIcon",void 0);_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],pI.prototype,"hideDivider",null);
_.O([_.q({selectorArgs:["data.dismissStateEntityKey"],selector:function(V,l){V=_.nW(V.entities,"dismissState",l);return(V==null?void 0:V.isDismissed)||(V==null?void 0:V.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(V==null?void 0:V.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.a("design:type",Object)],pI.prototype,"isDismissed",void 0);pI=_.O([_.A({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],pI);
_.u(pI,"ytd-info-panel-container-renderer",function(){if(mg0!==void 0)return mg0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return mg0=V},{mode:1});var Hra;_.yN("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var ThB=function(){var V=_.M.apply(this,arguments)||this;V.modernTypography=_.z("web_modern_typography");return V};
_.t(ThB,_.M);ThB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ThB.prototype.computeStyle=function(V){return V?V:""};
var AX=ThB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],AX.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.a("design:type",String)],AX.prototype,"titleStyle",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],AX.prototype,"modernTypography",void 0);AX=_.O([_.A({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],AX);
_.u(AX,"ytd-item-section-header-renderer",function(){if(Hra!==void 0)return Hra;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Hra=V},{mode:1});var Bh0;var xcE,UcB=function(){return xcE!==void 0?xcE:xcE=document.createElement("template")};
document.head.appendChild(UcB().content);var nO3;_.uj=new _.Vr("VOTING_ANIMATION_CONTROLLER_TOKEN");var dcZ=_.W1(function(V){var l=V.data;var I=_.sZ(),H=_.sZ();V=_.U(_.xi("VOTE_STATUS_NONE",void 0,"FVF7mc"));var T=V.next().value,x=V.next().value,n=_.dw(Mjy,function(){var X;return(X=l())==null?void 0:X.entityKey}),w=_.z("web_enable_voting_animation")||_.z("enable_music_web_cairo_voting_animation");
_.XW(function(){var X;((X=l().initialState)==null?0:X.status)&&x(l().initialState.status)});
var N=function(){var X,r,E=(r=(X=l().initialState)==null?void 0:X.votes)!=null?r:0,D;X=(D=l().initialState)==null?void 0:D.status;return X==="VOTE_STATUS_UPVOTED"?E-1:X==="VOTE_STATUS_DOWNVOTED"?E+1:E},L=function(){return T()==="VOTE_STATUS_UPVOTED"?N()+1:T()==="VOTE_STATUS_DOWNVOTED"?N()-1:N()},e=function(X){var r=X?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
x(r);var E=L(),D=_.F().resolve(_.Cs(_.uj)),Z=n();Z&&(X&&(Z==null?0:Z.upvoteDefaultButtonOnTap)?_.EI(Z.upvoteDefaultButtonOnTap,{form:{element:I.value},disableClickTracking:!0}):(Z==null?0:Z.upvoteToggledButtonOnTap)&&_.EI(Z.upvoteToggledButtonOnTap,{form:{element:I.value},disableClickTracking:!0}));var S;X=(S=Z==null?void 0:Z.enableOptimisticReordering)!=null?S:l().enableOptimisticReordering;w&&D&&l().itemId&&X&&$cZ(D,l().itemId,E,r)},k=function(X){var r=X?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
x(r);var E=L(),D=_.F().resolve(_.Cs(_.uj)),Z=n();Z&&(X&&(Z==null?0:Z.downvoteDefaultButtonOnTap)?_.EI(Z.downvoteDefaultButtonOnTap,{form:{element:H.value},disableClickTracking:!0}):(Z==null?0:Z.downvoteToggledButtonOnTap)&&_.EI(Z.downvoteToggledButtonOnTap,{form:{element:H.value},disableClickTracking:!0}));var S;X=(S=Z==null?void 0:Z.enableOptimisticReordering)!=null?S:l().enableOptimisticReordering;w&&D&&l().itemId&&X&&$cZ(D,l().itemId,E,r)};
V={};V=_.ii("ytVotingViewModelVoteCount",(V.ytVotingViewModelVoteCountDisabled=function(){return l().isDisabled},V));
return _.Y("voting-view-model",{class:"ytVotingViewModelHost"},_.Y("div",{el:I},_.Y(_.rw,{data:function(){var X=_.y(l().upvoteButton,_.EB);return{toggleButtonViewModel:Object.assign({},X,{isToggled:T()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(X){return _.Y(_.o6,{data:X.data,
onToggle:e})}})),_.Y("div",{class:V},function(){var X,r,E;
return T()==="VOTE_STATUS_UPVOTED"?(X=l().initialState)==null?void 0:X.compactVotesUpvoted:T()==="VOTE_STATUS_DOWNVOTED"?(r=l().initialState)==null?void 0:r.compactVotesDownvoted:(E=l().initialState)==null?void 0:E.compactVotes}),_.Y("div",{el:H},_.Y(_.rw,{data:function(){var X=_.y(l().downvoteButton,_.EB);
return{toggleButtonViewModel:Object.assign({},X,{isToggled:T()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(X){return _.Y(_.o6,{data:X.data,
onToggle:k})}})))},"ub");_.MR(_.W1(function(V){var l=V.data;return _.Y("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.Y("div",{class:_.ii("ytEngagementBarViewModelEngagementBarWrapper",V.className)},_.Y(_.rw,{data:function(){return l().actions}},{votingViewModel:dcZ})))},"vb"),"engagement-bar-view-model",{props:{data:_.b9,
className:_.b9}});var w3N=function(){var V=_.M.apply(this,arguments)||this;V.amsterdamPostMvp=_.z("web_amsterdam_post_mvp_playlists");V.cairoCollabPlaylistPostMvp=_.z("web_collab_playlist_thumbnail_size");V.playlistVotingAnimationEnabled=_.z("web_enable_voting_animation");V.downloadProgress=0;V.transferState="TRANSFER_STATE_UNKNOWN";V.downloadState="DOWNLOAD_STATE_UNKNOWN";V.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";V.offlineVideoPolicyExpirationTimestamp=0;return V};
_.t(w3N,_.M);_.B=w3N.prototype;_.B.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"}}}};
_.B.canReorderChanged=function(){this.persistentDragHandle=_.z("kevlar_playlist_drag_handles")&&this.canReorder};
_.B.onDrag=function(){if(this.thumbnail){var V=_.h(this.thumbnail).querySelector("yt-image");V&&(V.shouldRenderLazy=!1)}};
_.B.onMenuOverlayChanged=function(V,l){this.menuOpened=l};
_.B.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.B.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.B.onContentsTap=function(V){var l,I=(l=this.data)==null?void 0:l.serviceEndpoints;if(I&&I.length===1&&_.y(I[0],fOT)&&!_.qi(_.b3(V),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(I[0]);else{var H;(l=(H=this.data)==null?void 0:H.navigationEndpoint)&&_.z("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Nhv(_.F().resolve(_.sH),l):(_.jl().playlistSuggestionsShelfActivation=
!0,_.K7N(_.F().resolve(_.sH),l)):l&&!_.qi(_.b3(V),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.z("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.B$(this.hostElement,"yt-navigate",{endpoint:l}):this.ytComponentBehavior.resolveCommand(l))}};
_.B.computeStyle=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.B.computeThumbnailWidth=function(V){return V==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.B.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=G43(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))}};
_.B.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.B.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.B.dataChanged=function(){if(this.data){var V,l,I,H=((V=this.downloadRenderData)==null?void 0:V.badges)&&((l=this.downloadRenderData)==null?void 0:l.badges)!==((I=this.data)==null?void 0:I.badges),T,x,n;V=((T=this.downloadRenderData)==null?void 0:T.thumbnailOverlays)&&((x=this.downloadRenderData)==null?void 0:x.thumbnailOverlays)!==((n=this.data)==null?void 0:n.thumbnailOverlays);(!this.downloadRenderData||H||V)&&this.downloadStateChanged()}};
_.B.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var V,l,I=(V=this.data.menu)==null?void 0:(l=V.menuRenderer)==null?void 0:l.items;if(I)for(V=_.U(I),l=V.next();!l.done;l=V.next())if(l=l.value,I=void 0,_.y((I=l.menuServiceItemRenderer)==null?void 0:I.serviceEndpoint,_.D0)){var H=I=void 0,T=void 0;l=(I=l)==null?void 0:(H=I.menuServiceItemRenderer)==null?void 0:(T=H.serviceEndpoint)==null?void 0:T.playlistEditEndpoint;T=H=void 0;if(I=(H=l)==null?void 0:(T=H.actions)==null?void 0:
T[0])H=void 0,I.setVideoId=(H=this.data)==null?void 0:H.setVideoId;T=H=I=void 0;if(l=(I=l)==null?void 0:(H=I.clientActions)==null?void 0:(T=H[0])==null?void 0:T.playlistRemoveVideosAction)I=void 0,l.setVideoIds=[(I=this.data)==null?void 0:I.setVideoId]}}};
_.vI.Object.defineProperties(w3N.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
var vg=w3N;vg.prototype.setVideoIdChanged=vg.prototype.setVideoIdChanged;vg.prototype.dataChanged=vg.prototype.dataChanged;vg.prototype.downloadStateChanged=vg.prototype.downloadStateChanged;vg.prototype.onMenuOverlayChanged=vg.prototype.onMenuOverlayChanged;vg.prototype.canReorderChanged=vg.prototype.canReorderChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],vg.prototype,"ytdReduxBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],vg.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],vg.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],vg.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],vg.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vg.prototype,"amsterdamPostMvp",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],vg.prototype,"canReorder",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],vg.prototype,"menuOpened",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],vg.prototype,"handleIsHovered",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],vg.prototype,"persistentDragHandle",void 0);
_.O([_.q(),_.a("design:type",Object)],vg.prototype,"downloadRenderData",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],vg.prototype,"styleType",void 0);_.O([_.q({computed:"computeThumbnailWidth(data.style)"}),_.a("design:type",Number)],vg.prototype,"thumbnailWidth",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],vg.prototype,"isDownloads",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vg.prototype,"cairoCollabPlaylistPostMvp",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],vg.prototype,"playlistVotingAnimationEnabled",void 0);_.O([_.q({selector:Ss,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],vg.prototype,"downloadProgress",void 0);_.O([_.q(),_.a("design:type",Number)],vg.prototype,"relativeDateReference",void 0);
_.O([_.q({selector:_.Dw,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],vg.prototype,"transferState",void 0);_.O([_.q({selector:C1y,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],vg.prototype,"downloadState",void 0);_.O([_.q({selector:SgT,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],vg.prototype,"offlinePolicyAction",void 0);_.O([_.q({selector:Rdw,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],vg.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.O([_.q({selector:cty,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],vg.prototype,"entityInfo",void 0);_.O([_.q({selector:_.h5}),_.a("design:type",Boolean)],vg.prototype,"miniplayerIsActive",void 0);_.O([_.Q("data"),_.a("design:type",String),_.a("design:paramtypes",[])],vg.prototype,"playlistVideoId",null);_.O([_.Ij("#thumbnail"),_.a("design:type",Object)],vg.prototype,"thumbnail",void 0);
_.O([_.xs("canReorder"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vg.prototype,"canReorderChanged",null);_.O([_.W("yt-menu-overlay-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Boolean]),_.a("design:returntype")],vg.prototype,"onMenuOverlayChanged",null);
_.O([_.xs("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vg.prototype,"downloadStateChanged",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vg.prototype,"dataChanged",null);
_.O([_.xs("data.setVideoId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vg.prototype,"setVideoIdChanged",null);vg=_.O([_.A({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],vg);
_.u(vg,"ytd-playlist-video-renderer",function(){if(nO3!==void 0)return nO3;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);V.content.insertBefore(UcB().content.cloneNode(!0),V.content.firstChild);return nO3=V},{mode:1});var joB;var YUa=function(){return _.M.apply(this,arguments)||this};
_.t(YUa,_.M);var O3=YUa;_.O([_.q(),_.a("design:type",Object)],O3.prototype,"data",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],O3.prototype,"rendererBehavior",void 0);O3=_.O([_.A({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],O3);
_.u(O3,"ytd-premium-browse-footer-renderer",function(){if(joB!==void 0)return joB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return joB=V},{mode:1});var L7B;var eUo=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return V};
_.t(eUo,_.M);_.B=eUo.prototype;_.B.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.B.handleDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.B.computeHeaderLogoThumbnail=function(V,l){if(V)return l?V.darkLogo:V.lightLogo};
_.B.computeHeaderLogoHeight=function(V,l){var I,H,T;return(V=(I=this.computeHeaderLogoThumbnail(V,l))==null?void 0:(H=I.thumbnails)==null?void 0:(T=H[0])==null?void 0:T.height)&&V%31===0?"31":"24"};
_.B.computeHeaderLogoMarginBottom=function(V,l){return this.computeHeaderLogoHeight(V,l)==="24"?"0":"-7"};
var CI=eUo;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],CI.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],CI.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],CI.prototype,"isDarkTheme",void 0);_.O([_.q({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.a("design:type",Object)],CI.prototype,"themeLogo",void 0);
_.O([_.q({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.a("design:type",String)],CI.prototype,"logoHeight",void 0);_.O([_.q({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.a("design:type",String)],CI.prototype,"logoMarginBottom",void 0);CI=_.O([_.A({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],CI);
_.u(CI,"ytd-primetime-promo-header-renderer",function(){if(L7B!==void 0)return L7B;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return L7B=V},{mode:1});var klE;_.m5(Apf);var fIK;fIK=_.FR({flexibleActionsViewModel:IPJ});_.a$=_.I2(gMN);_.m5(gMN);_.MR(_.a$,"yt-section-header-view-model",{props:{data:_.b9,className:_.b9,disableHorizontalPadding:_.b9,disableVerticalPadding:_.b9,forceSmallLayout:_.b9,useResponsiveLayout:_.b9,isOverlay:_.b9}});_.yN("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var F7N=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return V};
_.t(F7N,_.M);_.B=F7N.prototype;_.B.attached=function(){this.requestElementsPerRow()};
_.B.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"}}}};
_.B.onDataChange=function(){var V=this;_.Al(this,function(){V.updateItemVisibility()})};
_.B.onUpdateElementsPerRowAction=function(V){V&&this.elementsPerRow!==V&&(this.elementsPerRow=V,this.updateItemVisibility())};
_.B.updateItemVisibility=function(){var V=this;this.data&&this.data.panels&&_.h(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(l,I){l.hidden=I>V.elementsPerRow-1})};
_.B.requestElementsPerRow=function(){_.B$(this.hostElement,"yt-request-elements-per-row")};
var fI=F7N;fI.prototype.onDataChange=fI.prototype.onDataChange;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],fI.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],fI.prototype,"actionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],fI.prototype,"data",void 0);_.O([_.q({value:3}),_.a("design:type",Number)],fI.prototype,"elementsPerRow",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fI.prototype,"onDataChange",null);fI=_.O([_.A({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],fI);
_.u(fI,"ytd-primetime-promo-renderer",function(){if(klE!==void 0)return klE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return klE=V},{mode:1});var X3W;var gZ=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return V};
_.t(gZ,_.M);gZ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
gZ.prototype.handleButtonRefreshAction=function(V){if(V=_.y(V,_.BRN))this.set("data.button",V.membershipButton),this.notifyPath("data.button")};
_.vI.Object.defineProperties(gZ.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:(l=V.avatars)==null?void 0:l.slice(0,8))||[]}}});
var mO=gZ;_.O([_.q(),_.a("design:type",Object)],mO.prototype,"data",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],mO.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],mO.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mO.prototype,"rendererBehavior",void 0);_.O([_.Q("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],mO.prototype,"avatars",null);
mO=_.O([_.A({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],mO);
_.u(mO,"ytd-recognition-shelf-renderer",function(){if(X3W!==void 0)return X3W;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return X3W=V},{mode:1});var zU0;var ybN;var tri=function(){var V=_.M.apply(this,arguments)||this;V.modernButtons=_.z("web_modern_buttons");return V};
_.t(tri,_.M);_.B=tri.prototype;
_.B.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]]"}}}}}};
_.B.dataChanged=function(){this.collapsed=!0};
_.B.computeVisibleItems=function(V,l){return V!==void 0&&V.items?l?V.items.slice(0,this.data.collapsedItemCount):V.items:[]};
_.B.computeHideShowMore=function(V,l,I){return V>=l||!I};
_.B.computeHideShowAll=function(V,l,I){return!(V&&l)||I};
_.B.onMoreClick=function(){this.collapsed=!1};
_.vI.Object.defineProperties(tri.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.z("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
var ij=tri;ij.prototype.dataChanged=ij.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ij.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],ij.prototype,"isSearch",void 0);
_.O([_.q({computed:"computeVisibleItems(data,collapsed)"}),_.a("design:type",Array)],ij.prototype,"visibleItems",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],ij.prototype,"collapsed",void 0);_.O([_.q({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.a("design:type",Boolean)],ij.prototype,"hideShowMore",void 0);
_.O([_.q({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.a("design:type",Boolean)],ij.prototype,"hideShowAll",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],ij.prototype,"modernButtons",void 0);_.O([_.Q("isSearch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ij.prototype,"typographyBump",null);
_.O([_.Q("isSearch"),_.a("design:type",String),_.a("design:paramtypes",[])],ij.prototype,"thumbnailWidth",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ij.prototype,"dataChanged",null);ij=_.O([_.A({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],ij);
_.u(ij,"ytd-vertical-list-renderer",function(){if(ybN!==void 0)return ybN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ybN=V},{mode:1});var rbN=_.fl(["#"]);_.yN("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var GlZ=function(){var V=_.M.apply(this,arguments)||this;V.isConstrainedList=!1;V.modernTypography=_.z("web_modern_typography");return V};
_.t(GlZ,_.M);_.B=GlZ.prototype;
_.B.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"}}}};
_.B.computeThumbnailStyle=function(V){return V||""};
_.B.computePlaceAnnotationUnderTitle=function(){var V;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((V=this.data)==null?void 0:V.thumbnailStyle)||"")};
_.B.computeHrefWithDefault=function(V){return this.ytComponentBehavior.computeHref_(V)||_.ch(rbN)};
_.B.computeIsPromoShelf=function(V){var l;return(V=V==null?void 0:(l=V[0])==null?void 0:l.metadataBadgeRenderer)?V.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.B.computePlaceBadgeBesideTitle=function(V){var l;return(V==null?0:(l=V[0])==null?0:l.metadataBadgeRenderer)?!this.computeIsPromoShelf(V):!1};
_.B.computeMenuIcon=function(V){return this.computeIsPromoShelf(V)?"yt-icons:more_vert":"yt-icons:more"};
_.B.onDataChange=function(){var V,l;((V=this.data)==null?0:(l=V.content)==null?0:l.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.B.onLockupRequested=function(V){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&V.detail&&V.detail.videoIds){for(var l=this.data.content.gridRenderer.items,I=new Set,H=_.U(V.detail.videoIds),T=H.next();!T.done;T=H.next())I.add(T.value);V.detail.returnValue=l.filter(function(x){return x.gridVideoRenderer&&x.gridVideoRenderer.videoId&&I.has(x.gridVideoRenderer.videoId)}).map(function(x){return x.gridVideoRenderer})}};
_.B.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
var VY=GlZ;VY.prototype.onLockupRequested=VY.prototype.onLockupRequested;VY.prototype.onDataChange=VY.prototype.onDataChange;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],VY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],VY.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],VY.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Da),_.a("design:type",Object)],VY.prototype,"ironResizableBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],VY.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],VY.prototype,"isSearch",void 0);_.O([_.q(),_.a("design:type",Object)],VY.prototype,"isConstrainedList",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("kevlar_fluid_dismiss")}}),
_.a("design:type",Boolean)],VY.prototype,"enableFluidDismiss",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.a("design:type",String)],VY.prototype,"thumbnailStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VY.prototype,"modernTypography",void 0);_.O([_.q({computed:"computeMenuIcon(data.badges)"}),_.a("design:type",String)],VY.prototype,"menuIcon",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VY.prototype,"onDataChange",null);_.O([_.W("yt-lockup-requested"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],VY.prototype,"onLockupRequested",null);VY=_.O([_.A({is:"ytd-shelf-renderer",disableElementRegistration:!0})],VY);
_.u(VY,"ytd-shelf-renderer",function(){if(zU0!==void 0)return zU0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return zU0=V},{mode:1});var EO0;var JbZ=function(){return _.M.apply(this,arguments)||this};
_.t(JbZ,_.M);JbZ.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.vI.Object.defineProperties(JbZ.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
var lh=JbZ;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],lh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],lh.prototype,"data",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],lh.prototype,"isPlaylist",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],lh.prototype,"isClipList",void 0);
_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],lh.prototype,"isPlaylistPageWithFilters",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],lh.prototype,"hasTitle",null);_.O([_.q(),_.Q("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.a("design:type",Object),_.a("design:paramtypes",[])],lh.prototype,"isRightAligned",null);
lh=_.O([_.A({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],lh);
_.u(lh,"ytd-sort-filter-header-renderer",function(){if(EO0!==void 0)return EO0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return EO0=V},{mode:1});var oOZ;var Ir=function(){return _.M.apply(this,arguments)||this};
_.t(Ir,_.M);
Ir.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]]"}}}}}};
Ir.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.vI.Object.defineProperties(Ir.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.z("enable_creator_details_shelf_m2")){var V=[],l;((l=this.data)==null?0:l.creatorVideosButton)&&V.push(this.data.creatorVideosButton);var I;((I=this.data)==null?0:I.creatorAboutButton)&&V.push(this.data.creatorAboutButton);l=_.U(this.data.creatorCustomUrlButtons||[]);for(I=l.next();!I.done;I=l.next())V.push(I.value);return V}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.z("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
var HC=Ir;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.ID.YtdHorizontalListBehavior),_.a("design:type",Object)],HC.prototype,"ytdHorizontalListBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],HC.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],HC.prototype,"engagementPanel",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],HC.prototype,"creatorCustomUrlButtons",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data","creatorCustomUrlButtons"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],HC.prototype,"showCreatorCustomUrlButtons",null);
_.O([_.Q("showCreatorCustomUrlButtons"),_.a("design:type",Number),_.a("design:paramtypes",[])],HC.prototype,"channelAvatarSize",null);HC=_.O([_.A({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],HC);
_.u(HC,"ytd-video-description-infocards-section-renderer",function(){if(oOZ!==void 0)return oOZ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return oOZ=V},{mode:_.Cm("kevlar_poly_si_batch_j067")?1:2});var hUN;var P0Z=function(){return _.M.apply(this,arguments)||this};
_.t(P0Z,_.M);var Ti=P0Z;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Ti.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ti.prototype,"data",void 0);_.O([_.q({computed:"computeIcon_(data.infoIcon)"}),_.a("design:type",Object)],Ti.prototype,"infoIcon",void 0);
Ti=_.O([_.A({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Ti);
_.u(Ti,"ytd-eom-settings-disclaimer-renderer",function(){if(hUN!==void 0)return hUN;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return hUN=V},{mode:1});var Dcv;var ZrW=function(){return _.M.apply(this,arguments)||this};
_.t(ZrW,_.M);_.vI.Object.defineProperties(ZrW.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.suppressPaddingDisclaimer)}}});
var BC=ZrW;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],BC.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],BC.prototype,"componentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],BC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],BC.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BC.prototype,"suppressPaddingDisclaimer",null);BC=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],BC);
_.u(BC,"ytd-product-list-header-renderer",function(){if(Dcv!==void 0)return Dcv;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Dcv=V},{mode:1});var SUi;var RUB=function(){return _.M.apply(this,arguments)||this};
_.t(RUB,_.M);RUB.prototype.computeThumbnailStyle=function(V){if(V&&(V=_.tv(V)))return"background-color:"+V+";"};
var xR=RUB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xR.prototype,"rendererBehaviors",void 0);_.O([_.q(),_.a("design:type",Object)],xR.prototype,"data",void 0);xR=_.O([_.A({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],xR);
_.u(xR,"ytd-hashtag-tile-renderer",function(){if(SUi!==void 0)return SUi;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return SUi=V},{mode:1});var Qo3;var cbw=function(){return _.M.apply(this,arguments)||this};
_.t(cbw,_.M);cbw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var UF=cbw;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],UF.prototype,"data",void 0);UF=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],UF);
_.u(UF,"ytd-sponsorships-alert-renderer",function(){if(Qo3!==void 0)return Qo3;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Qo3=V},{mode:1});var W7o;var br3=function(){return _.M.apply(this,arguments)||this};
_.t(br3,_.M);br3.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.vI.Object.defineProperties(br3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.z("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.z("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var nx=br3;_.O([_.R(_.SE),_.a("design:type",Object)],nx.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],nx.prototype,"ytdLockupBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],nx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.O([_.q({selector:_.SM}),_.a("design:type",Object)],nx.prototype,"isGridViewEnabled",void 0);
_.O([_.Q("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],nx.prototype,"watchFeedBigThumbs",null);_.O([_.Q("isGridViewEnabled"),_.q({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],nx.prototype,"thumbnailWidth",null);_.O([_.q(),_.a("design:type",Object)],nx.prototype,"data",void 0);nx=_.O([_.A({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],nx);
_.u(nx,"ytd-compact-movie-renderer",function(){if(W7o!==void 0)return W7o;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return W7o=V},{mode:1});var qUZ;var MrN;var soE=_.h6("HTML_DIR")==="rtl",p33=function(){var V=_.M.apply(this,arguments)||this;V.engagementPanel=!1;V.maxLines=2;V.expandButtonOffset=0;V.showExpandButton=!1;V.isTruncated=!1;V.isExpanded=!1;V.currentSnippetType=2;V.alwaysShowExpandButton=!1;V.JSC$14136_lastWidth=NaN;V.observer=null;V.left=0;V.right=0;V.mid=0;V.longestSnippetLength=0;V.isFinalSnippet=!1;V.isFirstMutation=!1;V.isResetMutation=!1;V.OVERFLOW_THRESHOLD=5;return V};
_.t(p33,_.M);_.B=p33.prototype;_.B.onClick=function(V){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.qi(_.b3(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;if((l=window.getSelection())==null||!l.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.B.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.B.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.B.updateTextOnSnippetTypeChange=function(){_.z("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.B.setUpBinarySearch=function(V){V=V*this.maxLines/8;this.left=0;var l,I;this.right=Math.min(V*2,(I=(l=this.simpleText)==null?void 0:l.length)!=null?I:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.B.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.B.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.hF(new _.Yd("AttributedSnippet is empty when the description is not empty",this.text))};
_.B.mutationCallback=function(){if(this.observer!=null){var V=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var l=Math.floor(V*this.maxLines/8);this.setSnippetText(this.text,l);l!==0||this.attributedTextIsEmpty()||_.hF(new _.Yd("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;V=V*this.maxLines/8;this.left=0;var I;this.right=Math.min(V*2,(I=(l=this.simpleText)==null?void 0:l.length)!=null?I: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)}}};
_.B.mutationObserve=function(V){var l=this;this.observer||(this.observer=new MutationObserver(function(){l.mutationCallback()}));
this.observer.observe(V,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.B.attached=function(){var V=this;_.Al(this,function(){V.resize()})};
_.B.isExpandedChanged=function(){_.B$(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.B.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)};
_.B.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var V="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((soE?"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",V);this.snippetContainer.style.setProperty("mask-image",
V)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(soE?"right":"left",this.expandButtonOffset+"px")};
_.B.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.B.setSnippetText=function(V,l){V||(V={});if(_.ZA(V)){var I=bx3(V,l);I.attachmentRuns||I.commandRuns||I.decorationRuns||I.styleRuns||I.alignment||I.lineBreakMode?this.attributedSnippetTextEl?(_.z("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=bx3(V,l),this.attributedSnippetTextEl.headerRuns=WoJ(l,this.headerRuns)):this.attributedSnippetText={data:bx3(V,l),headerRuns:WoJ(l,this.headerRuns)},this.currentSnippetType=0):_.hF(new _.Yd("Tried to set snippet text when HTML element was null",
V)):(this.plainSnippetText.textContent=oN(V.content||"",l),this.currentSnippetType=2)}else{a:{I=mFW(V,l);if(I.runs){I=_.U(I.runs);for(var H=I.next();!H.done;H=I.next())if(H=H.value,H.bold||H.deemphasize||H.italics||H.strikethrough||H.textColor||H.navigationEndpoint||_.y(H,Xo)){I=!0;break a}}I=!1}I?this.formattedSnippetText?(this.formattedSnippetText.text=mFW(V,l),this.currentSnippetType=1):_.hF(new _.Yd("Tried to set snippet text when HTML element was null",V)):(this.plainSnippetText.textContent=
oN(_.A5(V),l),this.currentSnippetType=2)}};
_.B.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.B.attributedTextIsEmpty=function(){var V=this.text;if(!_.ZA(V))return!0;var l;return((l=V.content)==null?void 0:l.length)===0?!0:!1};
_.B.resize=function(V){if(this.snippetText){if(V===void 0?0:V)this.JSC$14136_lastWidth=NaN;var l=this.hostElement.offsetWidth;if(l!==this.JSC$14136_lastWidth&&!this.isExpanded)if(this.JSC$14136_lastWidth=l,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;V=0;var I,H;l=Math.min(l*this.maxLines/8*2,(H=(I=this.simpleText)==null?void 0:I.length)!=null?H:0)-1;for(I=0;V<=l;)H=Math.floor(V+(l-V)/2),this.setSnippetText(this.text,H),this.isOverflowing()?l=H-1:(V=H+1,I=H);this.setSnippetText(this.text,I);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.B.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.B.onExpandClick=function(){var V=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.z("inline_expander_reset_focus_killswitch")||_.Al(this,function(){var l;((l=_.F().resolve(_.Cs(_.eM)))==null?0:l.isKeyBoardInUse())&&_.qD(V.hostElement)});
_.B$(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.B.onCollapseClick=function(){this.collapse();_.B$(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.B.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.B.computeExpandButtonOffset=function(){var V=this.expandSizer;return V?soE?V.offsetParent?V.offsetParent.offsetWidth-V.offsetWidth-V.offsetLeft:0:V.offsetLeft:0};
_.vI.Object.defineProperties(p33.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.ZA(this.text)?this.text.content||"":_.A5(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 _.ZA(this.text)?!0:this.text&&_.z("web_replace_formatted_with_attributed_string")&&By1(this.text)?(this.text=_.Fo(this.text),!0):!1}},
showCollapseButton:{configurable:!0,enumerable:!0,get:function(){return!!this.collapseLabel&&this.isExpanded}},
useAttributedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===0}},
useFormattedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===1}},
usePlainSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===2}}});
var $R=p33;$R.prototype.onTextChanged=$R.prototype.onTextChanged;$R.prototype.updateMaskAndExpandButtonOffset=$R.prototype.updateMaskAndExpandButtonOffset;$R.prototype.updateSnippetContainerMaxHeight=$R.prototype.updateSnippetContainerMaxHeight;$R.prototype.isExpandedChanged=$R.prototype.isExpandedChanged;$R.prototype.updateTextOnSnippetTypeChange=$R.prototype.updateTextOnSnippetTypeChange;$R.prototype.updateIsFormattedExpanded=$R.prototype.updateIsFormattedExpanded;
$R.prototype.updateIsAttributedExpanded=$R.prototype.updateIsAttributedExpanded;$R.prototype.onClick=$R.prototype.onClick;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],$R.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$R.prototype,"text",void 0);_.O([_.q(),_.a("design:type",Array)],$R.prototype,"headerRuns",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$R.prototype,"engagementPanel",void 0);
_.O([_.q(),_.a("design:type",Object)],$R.prototype,"maxLines",void 0);_.O([_.q(),_.a("design:type",String)],$R.prototype,"expandLabel",void 0);_.O([_.q(),_.a("design:type",String)],$R.prototype,"collapseLabel",void 0);_.O([_.q(),_.a("design:type",Object)],$R.prototype,"expandCommand",void 0);_.O([_.q(),_.a("design:type",Object)],$R.prototype,"expandButtonOffset",void 0);_.O([_.Q("text"),_.a("design:type",String),_.a("design:paramtypes",[])],$R.prototype,"simpleText",null);
_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$R.prototype,"onClick",null);_.O([_.Q("text","isExpanded"),_.a("design:type",Object),_.a("design:paramtypes",[])],$R.prototype,"expandedText",null);_.O([_.Q("headerRuns","isExpanded"),_.a("design:type",Object),_.a("design:paramtypes",[])],$R.prototype,"expandedHeaderRuns",null);
_.O([_.Q("text"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$R.prototype,"hasAttributedStringText",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$R.prototype,"showExpandButton",void 0);_.O([_.Q("collapseLabel","isExpanded"),_.a("design:type",Object),_.a("design:paramtypes",[])],$R.prototype,"showCollapseButton",null);_.O([_.q(),_.a("design:type",Object)],$R.prototype,"isTruncated",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$R.prototype,"isExpanded",void 0);_.O([_.q(),_.a("design:type",Boolean)],$R.prototype,"isAttributedExpanded",void 0);_.O([_.b("isExpanded","hasAttributedStringText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$R.prototype,"updateIsAttributedExpanded",null);_.O([_.q(),_.a("design:type",Boolean)],$R.prototype,"isFormattedExpanded",void 0);
_.O([_.b("isExpanded","hasAttributedStringText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$R.prototype,"updateIsFormattedExpanded",null);_.O([_.q(),_.a("design:type",Number)],$R.prototype,"currentSnippetType",void 0);_.O([_.Q("currentSnippetType"),_.a("design:type",Object),_.a("design:paramtypes",[])],$R.prototype,"useAttributedSnippet",null);
_.O([_.Q("currentSnippetType"),_.a("design:type",Object),_.a("design:paramtypes",[])],$R.prototype,"useFormattedSnippet",null);_.O([_.Q("currentSnippetType"),_.a("design:type",Object),_.a("design:paramtypes",[])],$R.prototype,"usePlainSnippet",null);_.O([_.q(),_.a("design:type",Object)],$R.prototype,"alwaysShowExpandButton",void 0);_.O([_.b("currentSnippetType"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$R.prototype,"updateTextOnSnippetTypeChange",null);
_.O([_.q(),_.a("design:type",Object)],$R.prototype,"attributedSnippetText",void 0);_.O([_.Ij("#snippet"),_.a("design:type",HTMLElement)],$R.prototype,"snippetContainer",void 0);_.O([_.Ij("#snippet-text"),_.a("design:type",HTMLElement)],$R.prototype,"snippetText",void 0);_.O([_.Ij("#plain-snippet-text"),_.a("design:type",HTMLElement)],$R.prototype,"plainSnippetText",void 0);_.O([_.Ij("#formatted-snippet-text"),_.a("design:type",Object)],$R.prototype,"formattedSnippetText",void 0);
_.O([_.Ij("#attributed-snippet-text"),_.a("design:type",Object)],$R.prototype,"attributedSnippetTextEl",void 0);_.O([_.Ij("#expand"),_.a("design:type",HTMLElement)],$R.prototype,"expandButton",void 0);_.O([_.Ij("#expand-sizer"),_.a("design:type",HTMLElement)],$R.prototype,"expandSizer",void 0);_.O([_.xs("isExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$R.prototype,"isExpandedChanged",null);
_.O([_.b("isExpanded","maxLines"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$R.prototype,"updateSnippetContainerMaxHeight",null);_.O([_.b("isTruncated","showExpandButton","expandButtonOffset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$R.prototype,"updateMaskAndExpandButtonOffset",null);
_.O([_.xs("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$R.prototype,"onTextChanged",null);$R=_.O([_.A({is:"ytd-text-inline-expander",disableElementRegistration:!0})],$R);
_.u($R,"ytd-text-inline-expander",function(){if(MrN===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);MrN=V}V=MrN;return V},{mode:2});var dy=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return V};
_.t(dy,_.M);dy.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
dy.prototype.handleUpdateDescriptionAction=function(V){if(V=_.y(V,_.C1w))if(V.attributedDescription)this.set("data.attributedDescriptionBodyText",V.attributedDescription);else if(V.description){var l;((l=this.data)==null?0:l.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Fo(V.description)):this.set("data.descriptionBodyText",V.description)}};
_.vI.Object.defineProperties(dy.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var V,l;return!((V=this.data)==null||!V.attributedDescriptionBodyText)||!((l=this.data)==null||!l.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null?0:V.collapsedLineCount){var l;return(l=this.data)==null?void 0:l.collapsedLineCount}V=_.g7("web_watch_description_collapsed_default_lines",12);if(_.z("ww_desc_line_page_size_ks"))return V;l=Math.round(_.jD().height*_.g7("web_watch_description_screen_height_percentage",.5)/20);return Math.max(l,V)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return(I=(V=this.data)==null?void 0:V.descriptionBodyText)!=null?I:(l=this.data)==null?void 0:l.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.sourceAttributions}}});
var wy=dy;wy.prototype.panelContentVisibleChanged=wy.prototype.panelContentVisibleChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],wy.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],wy.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],wy.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Boolean)],wy.prototype,"panelContentVisible",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],wy.prototype,"engagementPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],wy.prototype,"shortsPanel",void 0);_.O([_.Ij("#inline-expander"),_.a("design:type",Object)],wy.prototype,"inlineExpander",void 0);
_.O([_.b("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wy.prototype,"panelContentVisibleChanged",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],wy.prototype,"hasDescriptionText",null);_.O([_.Q("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],wy.prototype,"collapsedLines",null);
_.O([_.Q("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.a("design:type",Object),_.a("design:paramtypes",[])],wy.prototype,"descriptionText",null);_.O([_.Q("data","data.headerRuns"),_.a("design:type",Object),_.a("design:paramtypes",[])],wy.prototype,"headerRuns",null);_.O([_.Q("data","data.sourceAttributions"),_.a("design:type",Object),_.a("design:paramtypes",[])],wy.prototype,"sourceAttributions",null);
wy=_.O([_.A({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],wy);
_.u(wy,"ytd-expandable-video-description-body-renderer",function(){if(qUZ!==void 0)return qUZ;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return qUZ=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var AbW;var u2w=_.W1(function(V){var l=V.data;return _.Y("factoid-renderer",{class:"ytwFactoidRendererHost"},_.Y("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return l().accessibilityText}},_.Y("span",{class:"ytwFactoidRendererValue"},_.Y(_.Ni,{text:function(){return l().value}})),_.Y("span",{class:"ytwFactoidRendererLabel"},_.Y(_.Ni,{text:function(){return l().label}}))))},"wb");_.MR(u2w,"factoid-renderer",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;return _.Y("upload-time-factoid-renderer",null,_.Y(_.rw,{data:function(){return l().factoid}},{factoidRenderer:u2w}))},"xb"),"upload-time-factoid-renderer",{props:{data:_.qR}});_.MR(_.W1(function(V){var l=V.data;return _.Y("view-count-factoid-renderer",null,_.Y(_.rw,{data:function(){return l().factoid}},{factoidRenderer:u2w}))},"yb"),"view-count-factoid-renderer",{props:{data:_.qR}});var vOJ=function(){var V=_.M.apply(this,arguments)||this;V.shortsPanel=!1;V.engagementPanel=!1;V.watchWhileSdp=_.z("shorts_desktop_watch_while_sdp");return V};
_.t(vOJ,_.M);vOJ.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"}}}}};
_.vI.Object.defineProperties(vOJ.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var V;return(V=this.data)==null?void 0:V.channel}}});
var Nw=vOJ;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Nw.prototype,"componentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Nw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Nw.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nw.prototype,"shortsPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nw.prototype,"engagementPanel",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nw.prototype,"watchWhileSdp",void 0);_.O([_.Q("shortsPanel","engagementPanel","data.channel"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nw.prototype,"showChannelInfo",null);Nw=_.O([_.A({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Nw);
_.u(Nw,"ytd-video-description-header-renderer",function(){if(AbW!==void 0)return AbW;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return AbW=V},{mode:1});var OrZ;var C0Z=function(){return _.M.apply(this,arguments)||this};
_.t(C0Z,_.M);var Kx=C0Z;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Kx.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kx.prototype,"noPadding",void 0);_.O([_.q(),_.a("design:type",Object)],Kx.prototype,"data",void 0);Kx=_.O([_.A({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Kx);
_.u(Kx,"ytd-list-item-view-model",function(){if(OrZ!==void 0)return OrZ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return OrZ=V},{mode:1});var aJN;var fJo;var gOi;var mcb;var jx=function(){var V=_.M.apply(this,arguments)||this;V.adaptiveFullWidth=!1;V.modernButtons=_.z("web_modern_buttons");V.buttonOverrides={style:"call-to-action",type:"filled"};V.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return V};
_.t(jx,_.M);jx.prototype.handleSetTimestamp_=function(V){this.data&&this.data.shortUrl&&(_.h(this.hostElement).querySelector("#share-url").value=V.isSet?_.tP(this.data.shortUrl,"t",V.timestamp):this.data.shortUrl)};
jx.prototype.handleSignalActionCopyShareUrl_=function(V,l){(_.z("killswitch_copy_link_target_check")||_.h(this.hostElement).querySelector("#copy-button")===l)&&this.copyUrlToClipboard()};
jx.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.h(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
jx.prototype.computeStyle_=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
var YR=jx;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],YR.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],YR.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.a("design:type",String)],YR.prototype,"rendererStyle",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],YR.prototype,"adaptiveFullWidth",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],YR.prototype,"modernButtons",void 0);_.O([_.q(),_.a("design:type",Object)],YR.prototype,"buttonOverrides",void 0);YR=_.O([_.Lm({is:"yt-copy-link-renderer",disableElementRegistration:!0})],YR);
_.u(YR,"yt-copy-link-renderer",function(){if(mcb===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;gOi===void 0&&(gOi=document.createElement("template"));var H=gOi;I.call(l,H.content.cloneNode(!0),V.content.firstChild);mcb=V}V=mcb;return V},{mode:2});_.yN("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var iro=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return V};
_.t(iro,_.M);_.B=iro.prototype;_.B.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.B.attached=function(){this.keyboardFocused=!1};
_.B.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var V=_.F().resolve(_.Cs(_.eM));V&&(this.keyboardFocused=V.isKeyBoardInUse())}};
_.B.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.B.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}};
_.B.onChange_=function(){if(this.data){var V=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;V&&this.ytComponentBehavior.resolveCommand(V);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.B.handleUpdateToggleAction_=function(V){(V=_.y(V,eXw))&&this.data&&V.targetId==this.data.targetId&&this.set("data.toggled",V.toggled)};
_.B.toBoolean_=function(V){return!!V};
_.B.reset=function(){};
_.B.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("data-changed",this.data))};
_.B.updateDataToggledFromBinding=function(V){this.set("data.toggled",V.detail.value)};
var Lx=iro;Lx.prototype.dataChangedForBinding=Lx.prototype.dataChangedForBinding;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Lx.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Lx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Lx.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Lx.prototype,"data",void 0);_.O([_.q({computed:"computeDescription_(data.*)"}),_.a("design:type",Object)],Lx.prototype,"description_",void 0);_.O([_.q({value:function(){return!!_.F().resolve(_.Cs(_.eM))&&_.z("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.a("design:type",Boolean)],Lx.prototype,"useKeyboardFocused",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Lx.prototype,"keyboardFocused",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Lx.prototype,"dataChangedForBinding",null);Lx=_.O([_.Lm({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Lx);
_.u(Lx,"yt-toggle-form-field-renderer",function(){if(fJo===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;aJN===void 0&&(aJN=document.createElement("template"));var H=aJN;I.call(l,H.content.cloneNode(!0),V.content.firstChild);fJo=V}V=fJo;return V},{mode:2});var VYZ;var lqZ;var Iqa=function(){var V=_.M.apply(this,arguments)||this;V.isDarkTheme=!1;V.isSearch=!1;V.darkerDarkTheme=_.z("web_darker_dark_theme");V.noTopMargin=_.z("kevlar_watch_no_top_margin");V.maskFade=_.z("web_watch_chips_mask_fade");V.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 V};
_.t(Iqa,_.M);_.B=Iqa.prototype;_.B.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}}}}}};
_.B.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.B.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.B.dataChanged=function(){var V=this.getSelectedIndex();if(V>0)this.selected=V;else{this.selected=0;var l,I;(l=this.ytScrollableChipCloudBehavior)==null||(I=l.reset)==null||I.call(l)}};
_.B.getSelectedIndex=function(){var V;if((V=this.data)==null||!V.chips)return-1;V=-1;for(var l,I=0;I<((l=this.data)==null?void 0:l.chips.length);I++){var H=void 0,T=void 0;if((H=this.data)==null?0:(T=H.chips[I].chipCloudChipRenderer)==null?0:T.isSelected){V=I;break}}return V};
_.B.onResize=function(){var V=this.ytScrollableChipCloudBehavior;_.Al(V,V.setContainerWidthDiff);s1(this.ytScrollableChipCloudBehavior)};
_.B.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.B.handleRelatedChipCommand=function(V,l){V=this.JSC$14163_chipsSelector.indexOf(l);V!==-1&&this.JSC$14163_chipsSelector.selectIndex(V)};
_.B.handleChipCloudChipSelectAction=function(V){V=this.JSC$14163_chipsSelector.indexOf(V);V>-1&&this.JSC$14163_chipsSelector.selectIndex(V)};
_.B.handleChipCloudChipDeselectAction=function(){var V=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14163_chipsSelector&&((V==null?0:V.continuationCommand)?_.$B(this.hostElement,[V]):(V==null?0:V.searchEndpoint)?this.ytComponentBehavior.resolveCommand(V):V&&_.d6(this.hostElement,[V],this.hostElement),this.JSC$14163_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.B.updateSelectedFromBinding=function(V){this.selected=V.detail.value};
var ex=Iqa;ex.prototype.onResize=ex.prototype.onResize;ex.prototype.dataChanged=ex.prototype.dataChanged;ex.prototype.isSearchChanged=ex.prototype.isSearchChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ex.prototype,"actionHandlerBehavior",void 0);
_.O([_.R(_.Da),_.a("design:type",Object)],ex.prototype,"ironResizableBehavior",void 0);_.O([_.R(),_.a("design:type",pV)],ex.prototype,"ytScrollableChipCloudBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ex.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ex.prototype,"data",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],ex.prototype,"selected",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ex.prototype,"isDarkTheme",void 0);_.O([_.q({value:160}),_.a("design:type",Number)],ex.prototype,"scrollDistance",void 0);_.O([_.q(),_.a("design:type",Object)],ex.prototype,"isSearch",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ex.prototype,"darkerDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ex.prototype,"noTopMargin",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ex.prototype,"maskFade",void 0);_.O([_.Ij("#chips"),_.a("design:type",Object)],ex.prototype,"JSC$14163_chipsSelector",void 0);_.O([_.b("isSearch"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ex.prototype,"isSearchChanged",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ex.prototype,"dataChanged",null);
_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ex.prototype,"onResize",null);ex=_.O([_.Lm({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],ex);
_.u(ex,"yt-chip-cloud-renderer",function(){if(lqZ===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;VYZ===void 0&&(VYZ=document.createElement("template"));var H=VYZ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);lqZ=V}V=lqZ;return V},{mode:2});var H5Z,TI0=function(){return H5Z!==void 0?H5Z:H5Z=document.createElement("template")};
document.head.appendChild(TI0().content);var BIa;var xMo=document.head,UMN=xMo.appendChild,nca;if(BIa===void 0){var $ME=document.createElement("template");_.G($ME,"");$ME.content.insertBefore(TI0().content.cloneNode(!0),$ME.content.firstChild);BIa=$ME}nca=BIa;UMN.call(xMo,nca.content);var dMZ=_.W1(function(V){var l=V.data;return _.Y("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.Y("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.Y("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.Y(_.NS,{cond:function(){return _.iP(l().image)},
then:function(I){return _.Y("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.Y(_.cX,{data:I,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.Y("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.Y(_.Ni,{text:function(){return l().subtitle}})))),_.Y(_.NS,{cond:function(){var I;
return(I=l())==null?void 0:I.hasBottomDivider},
then:function(){return _.Y("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"zb");var wci=_.W1(function(V){var l=V.data;return _.Y("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.Y("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.Y(_.rw,{data:function(){var I;return(I=l().offerPlanDetailsItem)!=null?I:[]}},{offerPlanDetailsItemViewModel:function(I){return _.Y("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.Y(dMZ,{data:I.data}))}})),_.Y("div",null,_.Y(_.NS,{cond:function(){return l().hasBottomDivider},
then:function(){return _.Y("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.Y("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.Y("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.Y("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.Y("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ab");var NIa=_.W1(function(V){var l=V.data;V=_.U(_.xi(!1,void 0,"SpEGQd"));var I=V.next().value,H=V.next().value,T=_.Bu(function(){H(!I());return!1}),x=function(){var n;
return(n=l().offerPlanDetailsContainer)!=null?n:[]};
return _.Y("lp-complex-offer-card-details-view-model",null,_.Y("div",null,_.Y(_.NS,{cond:function(){return I()},
then:function(){return _.Y("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.Y("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":T,"aria-expanded":I},_.Y(_.Ni,{text:function(){return l().expandedTitle}})),_.Y("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.Y(_.rw,{data:x},{offerPlanDetailsContainerViewModel:function(n){return _.Y("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.Y(wci,{data:n.data}))}})),_.Y("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.Y(_.Ni,{text:function(){return l().legalText}})))},
else:function(){return _.Y("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":T,"aria-expanded":I},_.Y(_.Ni,{text:function(){return l().collapsedTitle}}),_.Y("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.Y(_.dq,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Bb");var K9b=_.W1(function(V){var l=V.data;return _.Y("lp-complex-offer-card-option-view-model",null,_.Y(_.NS,{cond:function(){return l().primaryButton},
then:function(){return _.Y("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.Y(_.rw,{data:function(){return l().primaryButton}},{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}}))},"Cb");var jnb=_.W1(function(V){var l=V.data;var I=function(){var x;return((x=l())==null?void 0:x.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
V={};var H={},T={};return _.Y("ytm-lp-complex-offer-card-view-model",null,_.Y("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.Y("div",{class:_.ii((V.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=I,V),"ytmLpComplexOfferCardViewModelCardContainer")},_.Y(_.NS,{cond:function(){var x;return(x=l())==null?void 0:x.bannerText},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.Y("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.Y(_.Ni,{text:function(){return l().bannerText}})))}}),_.Y(_.NS,{cond:function(){return _.iP(l().logo)},
then:function(x){var n={};return _.Y("div",{class:_.ii((n.ytmLpComplexOfferCardViewModelLogoAlignLeft=I,n),"ytmLpComplexOfferCardViewModelLogo")},_.Y(_.cX,{data:x,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.Y("div",{class:_.ii((H.ytmLpComplexOfferCardViewModelTitleAlignLeft=I,H),"ytmLpComplexOfferCardViewModelTitle")},_.Y(_.Ni,{text:function(){return l().title}})),_.Y(_.NS,{cond:function(){var x;
return(x=l())==null?void 0:x.subtitle},
then:function(){var x={};return _.Y("div",{class:_.ii((x.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=I,x),"ytmLpComplexOfferCardViewModelSubtitle")},_.Y(_.Ni,{text:function(){return l().subtitle}}))}}),_.Y(_.NS,{cond:function(){return l().planPricingPrimary},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.Y(_.Ni,{text:function(){return l().planPricingPrimary}}))}}),_.Y(_.NS,{cond:function(){return l().planPricingSecondary},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.Y(_.Ni,{text:function(){return l().planPricingSecondary}}))}}),_.Y(_.NS,{cond:function(){return l().purchaseButton},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.Y(_.rw,{data:function(){return l().purchaseButton}},{buttonViewModel:function(x){return _.Y(_.Db,{data:x.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.Y(_.NS,{cond:function(){var x;
return(x=l())==null?void 0:x.offerOptions},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.Y(_.rw,{data:function(){return l().offerOptions}},{lpComplexOfferCardOptionViewModel:K9b}))}}),_.Y("div",{class:_.ii((T.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=I,T),"ytmLpComplexOfferCardViewModelLegalText")},_.Y(_.Ni,{text:function(){return l().legalText}})),_.Y(_.NS,{cond:function(){var x;
return(x=l())==null?void 0:x.offerCardDetails},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.Y(_.rw,{data:function(){return l().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:NIa}))}}))))},"Db");var YVW=_.W1(function(V){var l=V.data;var I=function(){var n;return((n=l())==null?void 0:n.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
V={};var H={},T={},x={};return _.Y("ytm-lp-complex-offer-card-section-view-model",null,_.Y("div",{class:_.ii("ytmLpComplexOfferCardSectionViewModelHost")},_.Y("div",{class:_.ii((V.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=I,V),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.Y("div",{class:_.ii((H.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=I,H),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.Y("h2",{class:_.ii((T.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
I,T),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.Y(_.Ni,{text:function(){return l().title}}))),_.Y(_.NS,{cond:function(){var n;
return(n=l())==null?void 0:n.subtitle},
then:function(){var n={},w={};return _.Y("div",{class:_.ii((n.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=I,n),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.Y("div",{class:_.ii((w.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=I,w),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.Y(_.Ni,{text:function(){return l().subtitle}})))}}),_.Y("div",{class:_.ii((x.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=I,x),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.Y(_.rw,{data:function(){var n;
return(n=l().offerPlans)!=null?n:[]}},{lpComplexOfferCardViewModel:function(n){return _.Y("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.Y(jnb,{data:n.data}))}})))))},"Eb");_.RJ=MQN.getInstance();var L9Z=_.W1(function(V){return _.Y("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":V.shouldAriaHideContent},_.Y("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:V.questionId},_.Y(_.Ni,{text:V.question})))},"Fb"),eIZ=_.W1(function(V){var l=V.data;
var I=V.themeOverride;V=_.U(_.xi(!1,void 0,"ljTVPd"));var H=V.next().value,T=V.next().value;V=_.Bu(function(){T(!H());return!1});
var x=function(){return H()?"EXPAND_LESS":"EXPAND_MORE"},n=("faq-container"+_.Sn(_.RJ)).toString(),w="faq-question-and-answers-section-question"+_.Sn(_.RJ),N={},L={};
return _.Y("faq-entry-view-model-c3",null,_.Y("div",{class:_.ii("yt-lp-faq-entry-view-model",(N["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return I==null?void 0:I().useDarkTheme},N))},_.Y("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":V,role:"button","aria-expanded":H,"aria-labelledby":w.toString(),"tab-index":"0"},_.Y(L9Z,{question:function(){return l().question},
questionId:w,shouldAriaHideContent:!0}),_.Y(_.NS,{cond:function(){return H()!==void 0},
then:function(){return _.Y("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.Y(_.dq,{icon:x,ariaHidden:!0}),_.Y("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.Y("div",{class:_.ii("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(L["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!H()},L))},_.Y("div",{id:n},_.Y(_.Ks,{each:function(){return l().answers||[]}},function(e){return _.Y("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.Y(_.Ni,{text:e}))})))))},"Gb");
eIZ.idomCompat=!0;var kTE=_.W1(function(V){var l=V.data;var I=V.themeOverride;V={};return _.Y("lp-faq-section-view-model-c3",null,_.Y("div",{class:_.ii("yt-lp-faq-section-view-model",(V["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},V["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},V))},_.Y("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.Y(_.NS,{cond:function(){return l().header},
then:function(H){return _.Y("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.Y(_.Ni,{text:H}))}}),_.Y("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.Y(_.rw,{data:function(){return l().faqs}},{faqEntryViewModel:function(H){return _.Y(eIZ,{data:H.data,
themeOverride:I})}})),_.Y("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.Y(_.Ks,{each:function(){return l().footers||[]}},function(H){return _.Y(_.Ni,{text:H})})),_.Y(_.NS,{cond:function(){return l().legal},
then:function(H){return _.Y("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.Y(_.Ni,{text:H}))}}))))},"Hb");
kTE.idomCompat=!0;var F9o=_.W1(function(V){var l=V.data;var I=V.themeOverride;_.XW(function(){var n=l().gtmId;n&&_.k6(n,_.h6("GL",""))});
var H={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var n,w,N;return(N=(n=l().logo)==null?void 0:(w=n.accessibilityData)==null?void 0:w.label)!=null?N:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},T=_.F().resolve(_.Cs(_.DA)),x=function(){return T&&T()||(I==null?void 0:I().useDarkTheme)};
return _.Y("lp-header-section-view-model",null,_.Y("div",{class:function(){var n=l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",w=l().marginType==="LP_SECTION_MARGIN_TYPE_TOP",N=I==null?void 0:I().useDarkTheme,L=["lp-header-section-view-model"];n&&L.push("lp-header-section-view-model--ptc-layout-type");w&&L.push("lp-header-section-view-model__lp-header-section-margin");N&&L.push("lp-header-section-view-model--premium-force-dark-mode");return L.join(" ")}},_.Y(_.NS,{cond:function(){return l().logo},
then:function(){return _.Y("div",null,_.Y(_.NS,{cond:x,then:function(){return _.Y(_.NS,{cond:function(){var n;return(n=l().logo)==null?void 0:n.imageDark},
then:function(n){return _.Y(_.cX,Object.assign({},{data:n},H))}})},
else:function(){return _.Y(_.NS,{cond:function(){var n;return(n=l().logo)==null?void 0:n.imageLight},
then:function(n){return _.Y(_.cX,Object.assign({},{data:n},H))}})}}))}}),_.Y(_.NS,{cond:function(){return l().title},
then:function(n){return _.Y("div",{class:"lp-header-section-view-model__lp-header-title"},_.Y(_.Ni,{text:n}))}}),_.Y("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.Y(_.NS,{cond:function(){return l().subtitles},
then:function(n){return _.Y(_.Ks,{each:n},function(w){return _.Y("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.Y(_.Ni,{text:w}))})}})),_.Y(_.NS,{cond:function(){return l().additionalInfo},
then:function(n){return _.Y("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.Y(_.Ni,{text:n}))}}),_.Y("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.Y(_.NS,{cond:function(){return l().primaryButton},
then:function(n){return _.Y("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.Y(_.rw,{data:n},{buttonViewModel:_.Db}))}}),_.Y(_.NS,{cond:function(){return l().secondaryButton},
then:function(n){return _.Y("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.Y(_.rw,{data:n},{buttonViewModel:_.Db}))}})),_.Y(_.NS,{cond:function(){return l().otherOffersInfo},
then:function(n){return _.Y("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.Y(_.Ni,{text:n}))}}),_.Y("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.Y(_.NS,{cond:function(){return l().billingInfo},
then:function(n){return _.Y(_.Ks,{each:n},function(w){return _.Y("div",null,_.Y(_.Ni,{text:w}))})}}))))},"Ib");
F9o.idomCompat=!0;var Xc3=_.W1(function(V){var l=V.data;var I=_.S5(V.themeOverride,{useDarkTheme:!1});V={};V=_.ii("ytm-lp-headline-section-view-model",(V["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return I().useDarkTheme},V));
return _.Y("lp-headline-section-view-model",null,_.Y("div",{class:V},_.Y("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y(_.NS,{cond:function(){return l().subtitle},
then:function(H){return _.Y("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.Y(_.Ni,{text:H}))}})))},"Jb");var zIN=_.W1(function(V){var l=V.data;var I=V.themeOverride;var H=_.F().resolve(_.Cs(_.DA)),T=function(){return H&&H()||(I==null?void 0:I().useDarkTheme)},x=function(){var L,e;
var k=T()?(L=l().textBackgroundImage)==null?void 0:L.imageDark:(e=l().textBackgroundImage)==null?void 0:e.imageLight;return UWJ((k==null?void 0:k.sources)||[])},n=function(){var L,e;
return T()?(L=l().featureImage)==null?void 0:L.imageDark:(e=l().featureImage)==null?void 0:e.imageLight},w=function(){return l().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},N=function(){var L,e;
return T()?(L=l().logo)==null?void 0:L.imageDark:(e=l().logo)==null?void 0:e.imageLight};
return _.Y("ytm-lp-large-feature-section-view-model",null,_.Y("div",{class:function(){var L=l().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",e=l().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",k=(l().index||0)%2===1,X=I==null?void 0:I().useDarkTheme,r=["yt-lp-large-feature-section-view-model"];L?r.push("yt-lp-large-feature-section-view-model--music-feature-type"):e?r.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):k||r.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
X&&r.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return r.join(" ")}},_.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.Y(_.NS,{cond:n,
then:function(){return _.Y(_.cX,{data:function(){return n()},
alt:function(){var L,e,k;return(k=(L=l().featureImage)==null?void 0:(e=L.accessibilityData)==null?void 0:e.label)!=null?k:""},
contentMode:w})}})),_.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var L;return((L=x())==null?0:L.url)?"background-image: url("+_.S6(x().url)+");":""}},_.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.Y(_.NS,{cond:N,
then:function(){return _.Y(_.cX,{data:function(){return N()},
alt:function(){var L,e,k;return(k=(L=l().logo)==null?void 0:(e=L.accessibilityData)==null?void 0:e.label)!=null?k:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.Y(_.NS,{cond:function(){return l().eyebrowText},
then:function(){return _.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.Y(_.Ni,{text:function(){return l().eyebrowText}}))}}),_.Y(_.NS,{cond:function(){return l().title},
then:function(){return _.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.Y(_.Ni,{text:function(){return l().title}}))}}),_.Y(_.NS,{cond:function(){return l().subtitles},
then:function(){return _.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.Y(_.Ks,{each:function(){return l().subtitles||[]}},function(L){return _.Y(_.Ni,{text:L})}))}})))))},"Kb");
zIN.idomCompat=!0;var yYv=_.W1(function(V){return _.Y("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.Y("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.Y(_.dq,{icon:function(){var l;return(l=V.data())==null?void 0:l.iconType},
className:function(){var l;return((l=V.data())==null?void 0:l.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.Y("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.Y(_.Ni,{text:function(){var l;
return(l=V.data())==null?void 0:l.text}}))))},"Lb");var tYB=_.W1(function(V){V=_.Rj(V,{config:void 0,themeOverride:void 0});var l=V.data,I=V.config,H=V.themeOverride;V={};V=_.ii("ytm-lp-offer-card-option-view-model",(V["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var N;return(N=H())==null?void 0:N.useDarkTheme},V));
var T=_.Bu(function(){var N,L;(N=I())==null||(L=N.handleRadioButtonClick)==null||L.call(N,l());return!1}),x=function(){var N;
return(N=I())==null?void 0:N.shouldDisplayRadioButton},n=_.Bu(function(){if(x()){var N,L;
(N=I())==null||(L=N.handleRadioButtonClick)==null||L.call(N,l())}return!1}),w=function(){var N;
return(N=l().featureListItems)!=null?N:[]};
return _.Y("ytm-lp-offer-card-option-view-model",null,_.Y("div",{class:V,"on:click":n},_.Y(_.NS,{cond:x,then:function(){return _.Y("div",null,_.Y("input",{type:"radio","on:click":T,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var N;return!((N=I())==null||!N.isOptionSelected)}}))}}),_.Y("div",null,_.Y("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.Y(_.Ni,{text:function(){return l().eyebrowText}})),_.Y("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.Y(_.Ni,{text:function(){return l().title}})),_.Y("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.Y(_.Ni,{text:function(){return l().subtitle}})),_.Y(_.NS,{cond:function(){return w().length>0},
then:function(){return _.Y("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.Y(_.rw,{data:w},{lpFeatureListItemViewModel:yYv}))}}),_.Y("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.Y(_.Ni,{text:function(){return l().description}})))))},"Mb");
tYB.idomCompat=!0;var rYb=_.W1(function(V){var l=V.data;var I=V.themeOverride;V=_.U(_.Ux(function(){var x,n=(x=l().offerOptions)==null?void 0:x[0];return _.y(n,rrw)||{}}));
var H=V.next().value,T=V.next().value;V={};return _.Y("ytm-lp-offer-card-view-model",null,_.Y("div",{class:_.ii("ytm-lp-offer-card-view-model",(V["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},V))},_.Y("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.Y(_.NS,{cond:function(){return l().titleIconType},
then:function(){return _.Y("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.Y(_.dq,{icon:function(){var x;return((x=l().titleIconType)==null?void 0:x.toString())||""}}))}}),_.Y("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y(_.rw,{data:function(){return l().titleBadge}},{badgeViewModel:function(x){return _.Y("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.Y(_.dn,{data:x.data}))}})),_.Y("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.Y(_.rw,{data:function(){return l().offerOptions}},{lpOfferCardOptionViewModel:function(x){var n=x.data;
return _.Y(_.CN,null,_.Y("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.Y(tYB,{data:n,config:function(){var w;return{shouldDisplayRadioButton:(l().offerOptions||[]).length>1,isOptionSelected:n().id===((w=H())==null?void 0:w.id),handleRadioButtonClick:function(N){return void T(N)}}},
themeOverride:I}))}})),_.Y("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.Y(_.rw,{data:function(){var x;
return(x=H())==null?void 0:x.purchaseButtonOverride}},{buttonViewModel:_.Db}))))},"Nb");
rYb.idomCompat=!0;var GTW=_.W1(function(V){var l=V.data;var I=V.themeOverride;V={};V=_.ii("ytm-lp-offer-card-section-view-model",(V["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var H;return I==null?void 0:(H=I())==null?void 0:H.useDarkTheme},V));
return _.Y("ytm-lp-offer-card-section-view-model",null,_.Y("div",{class:V},_.Y(_.NS,{cond:function(){return l().title!==void 0},
then:function(){return _.Y("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.Y("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y(_.NS,{cond:function(){return l().subtitle},
then:function(){return _.Y("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.Y(_.Ni,{text:function(){return l().subtitle}}))}}))}}),_.Y("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.Y(_.rw,{data:function(){return l().offerCards}},{lpOfferCardViewModel:function(H){return _.Y("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.Y(rYb,{data:H.data,
themeOverride:I}))}})),_.Y(_.NS,{cond:function(){return l().footer},
then:function(){return _.Y("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.Y(_.Ni,{text:function(){return l().footer}}))}})))},"Ob");var Ec3=_.W1(function(V){var l=V.data;return _.Y("lp-offer-table-cell-content-view-model",null,_.Y("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.Y(_.YG,null,_.Y(_.jN,{when:function(){return l().title}},function(){return _.Y(_.Ni,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return l().title}})}),_.Y(_.jN,{when:function(){return l().subTitle}},function(){return _.Y(_.Ni,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return l().subTitle}})}),_.Y(_.jN,{when:function(){return l().featureDescription}},function(){return _.Y(_.Ni,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return l().featureDescription}})}),_.Y(_.jN,{when:function(){return l().description}},function(){return _.Y(_.Ni,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return l().description}})}),_.Y(_.jN,{when:function(){return l().iconType}},function(){return _.Y("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.Y(_.dq,{icon:function(){return l().iconType.toString()}}))}),_.Y(_.jN,{when:function(){return l().purchaseButton}},function(){return _.Y(_.rw,{data:function(){return l().purchaseButton}},{buttonViewModel:function(I){return _.Y("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.Y(_.Db,{data:I.data}))}})}),_.Y(_.jN,{when:function(){return l().note}},function(){return _.Y(_.Ni,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return l().note}})}),_.Y(_.jN,{when:function(){return l().featureDetail}},function(){return _.Y(_.Ni,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return l().featureDetail}})}),_.Y(_.jN,{when:function(){return l().badge}},function(){return _.Y(_.rw,{data:function(){return l().badge}},{badgeViewModel:_.dn})}))))},"Pb");
Ec3.idomCompat=!0;var JYE=_.W1(function(V){var l=V.data;return _.Y("lp-offer-table-cell-view-model",null,_.Y("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(l().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;"}}},_.Y(_.rw,{data:function(){return l().contents}},{lpOfferTableCellContentViewModel:Ec3})))},
"Qb");
JYE.idomCompat=!0;var oco=_.W1(function(V){var l=V.data;var I=V.lpTableIsFirstRow;var H=V.lpTableIsLastRow;var T=function(){return(I==null?0:I())?"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"},x=function(){return(I==null?0:I())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(H==null?0:H())?"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 _.Y("ytm-lp-offer-table-row-view-model",null,_.Y("div",{class:"yt-lp-offer-table-row-view-model"},_.Y(_.rw,{data:function(){return l().rowHeaderCell}},{lpOfferTableCellViewModel:function(n){return _.Y("div",{class:T},_.Y(JYE,{data:n.data}))}}),_.Y(_.rw,{data:function(){return l().contentCells}},{lpOfferTableCellViewModel:function(n){return _.Y("div",{class:x},_.Y(JYE,{data:n.data}))}})))},"Rb");
oco.idomCompat=!0;var hIZ=_.W1(function(V){var l=V.data;var I=V.themeOverride;var H=_.F().resolve(_.Cs(_.DA)),T=function(){return _.y(l().logo,tWN)||{}};
V={};return _.Y("ytm-lp-offer-table-section-view-model",null,_.Y("div",{class:"yt-lp-offer-table-view-model"},_.Y(_.NS,{cond:function(){var x,n;return H&&H()||(I==null?0:I().useDarkTheme)?(x=T())==null?void 0:x.imageDark:(n=T())==null?void 0:n.imageLight},
then:function(x){return _.Y(_.cX,{data:x,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var n,w,N;return(N=(n=T())==null?void 0:(w=n.accessibilityData)==null?void 0:w.label)!=null?N:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.Y(_.Ni,{text:function(){return l().subtitle}})),_.Y(_.NS,{cond:function(){return l().disclaimers},
then:function(x){return _.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.Y(_.Ks,{each:x},function(n){return _.Y("div",null,_.Y(_.Ni,{text:n}))}))}}),_.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.Y(_.rw,{data:function(){return l().rows}},{lpOfferTableRowViewModel:function(x,n){return _.Y(oco,{data:x.data,
lpTableIsFirstRow:function(){return n()===0},
lpTableIsLastRow:function(){return n()===l().rows.length-1}})}})),_.Y("div",{class:_.ii((V["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return l().hasFooterBackground},V))},_.Y(_.NS,{cond:function(){return l().footer},
then:function(){return _.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.Y(_.Ni,{text:function(){return l().footer}}))}}),_.Y(_.NS,{cond:function(){return l().footerTitle},
then:function(){return _.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.Y(_.Ni,{text:function(){return l().footerTitle}}))}}),_.Y(_.NS,{cond:function(){return l().footerDescription},
then:function(){return _.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.Y(_.Ni,{text:function(){return l().footerDescription}}))}}))))},"Sb");
hIZ.idomCompat=!0;var PrB=_.W1(function(V){var l=V.data;var I=V.themeOverride;var H=_.F().resolve(_.Cs(_.DA)),T=function(){var w;return I==null?void 0:(w=I())==null?void 0:w.useDarkTheme},x=function(){var w,N;
return H&&H()||T()?(w=l().image)==null?void 0:w.imageDark:(N=l().image)==null?void 0:N.imageLight};
V={};V=_.ii("ytm-lp-small-feature-section-view-model",(V["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=T,V));var n=function(){var w,N,L;return(L=(w=l().image)==null?void 0:(N=w.accessibilityData)==null?void 0:N.label)!=null?L:""};
return _.Y("ytm-lp-small-feature-section-view-model",{class:V},_.Y(_.NS,{cond:function(){return x()&&!Xow},
then:function(){return _.Y("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.Y(_.cX,{data:function(){return x()},
alt:n,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.Y("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.Y("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.Y(_.NS,{cond:function(){return l().title},
then:function(w){return _.Y(_.Ni,{text:w})}})),_.Y("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.Y(_.Ni,{text:function(){return l().description}}))))},"Tb");
PrB.idomCompat=!0;var DMb=_.W1(function(V){var l=V.data;var I=V.themeOverride;V={};return _.Y("ytm-lp-small-feature-section-group-view-model",null,_.Y("div",{class:_.ii("ytm-lp-small-feature-section-group-view-model",(V["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},V))},_.Y("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.Y(_.rw,{data:function(){return l().smallFeatures}},{lpSmallFeatureSectionViewModel:function(H){return _.Y("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.Y(PrB,{data:H.data,
themeOverride:I}))}}))))},"Ub");
DMb.idomCompat=!0;_.MR(_.W1(function(V){var l=V.data;var I=function(){return l().forcedTheme==="USER_INTERFACE_THEME_DARK"},H=function(){return l().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},T=function(){var n="",w,N;
var L=_.F().resolve(_.Cs(_.DA));L=I()||(L==null?0:L())?(w=l().themedImageViewModel)==null?void 0:w.imageDark:(N=l().themedImageViewModel)==null?void 0:N.imageLight;(w=UWJ((L==null?void 0:L.sources)||[]))&&w.url&&(n=H()?"background-image: linear-gradient(to bottom, transparent, "+(l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.S6(w.url)+");":"background-image: url("+_.S6(w.url)+");");return n},x=function(){return{useDarkTheme:I()}};
V={};return _.Y("yt-section-group-view-model",null,_.Y("div",{class:_.ii("yt-lp-section-group-view-model",(V["yt-lp-section-group-view-model--premium-force-dark-mode"]=I,V["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},V))},_.Y(_.NS,{cond:function(){return T().length},
then:function(){var n={};return _.Y("div",{class:_.ii("yt-lp-section-group-view-model__bg-image",(n["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=H,n)),style:T})}}),_.Y("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.Y(_.rw,{data:function(){return l().sections}},{lpFaqSectionViewModel:function(n){return _.Y(kTE,{data:n.data,
themeOverride:x})},
lpHeaderSectionViewModel:function(n){return _.Y(F9o,{data:n.data,themeOverride:x})},
lpHeadlineSectionViewModel:function(n){return _.Y(Xc3,{data:n.data,themeOverride:x})},
lpLargeFeatureSectionViewModel:function(n){return _.Y(zIN,{data:n.data,themeOverride:x})},
lpOfferCardSectionViewModel:function(n){return _.Y(GTW,{data:n.data,themeOverride:x})},
lpComplexOfferCardSectionViewModel:function(n){return _.Y(YVW,{data:n.data})},
lpOfferTableSectionViewModel:function(n){return _.Y(hIZ,{data:n.data,themeOverride:x})},
lpSmallFeatureSectionGroupViewModel:function(n){return _.Y(DMb,{data:n.data,themeOverride:x})}}))))},"Vb"),"yt-section-group-view-model",{props:{data:_.b9}});var lDN=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Z5i=_.W1(function(V){function l(){if(lDN.has(V.data().displayType)){var L=!H(),e;if((e=V.disableDeselection)==null||!e.call(V)||L){V.data().selected=L;e=Object.assign({},n(),{selected:L});w(e);var k;(k=V.callback)==null||k.call(V,e,L)}}}
var I=_.sZ(),H=function(){var L,e;return!!(((L=V.selected)==null?void 0:L.call(V))!==void 0?(e=V.selected)==null?0:e.call(V):n().selected)},T=_.U(_.Ux(V.data)),x=T.next().value;
T=T.next().value;var n=x,w=T,N=_.dw(VF3,function(){return V.data().chipEntityKey||""});
return _.Y("chip-view-model",{class:"ytChipViewModelHost",el:I},_.Y(k5w,{data:function(){var L,e=Object.assign({},n(),{selected:H()}),k=N(),X=(L=V.disableDeselection)==null?void 0:L.call(V);a:switch(e.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":L=1;break a;default:L=0}return{text:(k==null?void 0:k.text)||e.text,state:e.disabled?1:e.selected?0:2,type:L,onTap:IDJ(e,I,l,X),accessibilityLabel:e.accessibilityLabel||e.text}}}))},"Wb");
_.Z5i.idomCompat={callbacks:{callback:!0}};_.MR(_.W1(function(V){var l=_.dw(if1,function(){var n;return(n=V.data())==null?void 0:n.chipBarStateEntityKey}),I=function(){return V.data().disableDeselection},H=_.U(_.Ux(function(){var n;
if(((n=l())==null?void 0:n.selectedIndex)!=void 0)return l().selectedIndex;var w,N;n=_.U(((w=V.data())==null?void 0:(N=w.chips)==null?void 0:N.entries())||[]);for(w=n.next();!w.done;w=n.next()){w=_.U(w.value);N=w.next().value;w=w.next().value;var L=void 0;if((L=_.y(w,_.bF))==null?0:L.selected)return N}return-1})),T=H.next().value,x=H.next().value;
return _.Y("chip-bar-view-model",{class:_.ii("ytChipBarViewModelHost",V.className),role:"tablist"},_.Y(_.rw,{data:function(){return V.data().chips}},{chipViewModel:function(n,w){return _.Y("div",{class:"ytChipBarViewModelChipWrapper"},_.Y(_.Z5i,{data:n.data,
selected:function(){return w()===T()},
callback:function(N,L){N=!!L;L=w();x(N?L:-1);var e,k=(e=V.data())==null?void 0:e.chipBarStateEntityKey;k&&N&&_.ZR(_.K6("chipBarStateEntity",k,{key:k,selectedIndex:L}))},
disableDeselection:V.disableDeselection||I}))}}))},"Xb"),"chip-bar-view-model",{props:{data:_.qR,
className:_.qR,disableDeselection:_.qR}});var DL=new Map,Pl=new Map,B53=0,ZL;var N51=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],YbT={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var SVv,RI3;SVv=function(V){return function(l){return function(){return String(l())+V}}};
_.kR=SVv("px");RI3=SVv("s");var cYN=_.W1(function(V){function l(C){return function(){var By=r().numItemsPerGridRow,lN=C()*By;By=lN+By;var wW,o1;return(o1=(wW=H().contents)==null?void 0:wW.slice(lN,By))!=null?o1:[]}}
var I=_.Rj(V,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),H=I.data,T=I.layoutContainerWidth,x=I.shouldUseOwnContainerSize,n=I.marginSettings;I=_.U(_.xi(!0,void 0,"qgr2Je"));var w=I.next().value,N=I.next().value,L=function(){var C,By=(C=_.y(H().showMoreButton,_.Gb))==null?void 0:C.trackingParams;By&&_.dF(_.x7(),By);N(!1)},e=function(){var C,By=(C=_.y(H().showLessButton,_.Gb))==null?void 0:C.trackingParams;
By&&_.dF(_.x7(),By);N(!0)};
I=_.sZ();var k=evK(I),X=function(){var C;return(C=H().contentAspectRatio)!=null?C:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},r=_.Ny(function(){var C=_.gw({containerWidth:x()&&k.width()>0?k.width()||T():T(),
sizing:"EXTRA_COMPACT",marginSettings:n(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:C.maxContainerWidth,numItemsPerGridRow:C.numItems,contentPadding:x()?C.margin:C.contentMargin,itemWidth:C.itemWidth,itemMargin:C.gutter/2}},void 0,"pqVdjc"),E=function(){if(H().enableVerticalExpansion){if(w())return 1;
var C,By,lN=(By=(C=H().contents)==null?void 0:C.length)!=null?By:0;return Math.ceil(lN/r().numItemsPerGridRow)}return r().numItemsPerGridRow<=2?2:1},D=function(){return H().enableVerticalExpansion&&H().showLessButton&&!w()&&E()>1},Z=function(){var C,By;
return H().enableVerticalExpansion&&H().showMoreButton&&w()&&((By=(C=H().contents)==null?void 0:C.length)!=null?By:0)>r().numItemsPerGridRow},S=function(){return!D()},p=function(){return!Z()},Vf={};
return _.Y("grid-shelf-view-model",{class:_.ii("ytGridShelfViewModelHost",V.className,(Vf.ytGridShelfViewModelHostHasBottomButton=function(){return D()||Z()},Vf)),
el:I,style:_.na({"margin-left":(0,_.kR)(function(){return r().contentPadding}),
"margin-right":(0,_.kR)(function(){return r().contentPadding})})},_.Y(_.NS,{cond:function(){return _.y(H().header,ctw)},
then:function(C){return _.Y(_.a$,{data:C,disableHorizontalPadding:!0})}}),_.Y("div",null,_.Y(_.Ks,{each:function(){return Array(E())}},function(C,By){return _.Y(Qn0,{className:V.className,
items:l(By),responsiveGridShelfLayout:r,contentAspectRatio:X})})),_.Y("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.Y(_.rw,{data:function(){return H().showMoreButton}},{buttonViewModel:function(C){return _.Y("div",{hidden:p},_.Y(_.Db,{data:C.data,
onClick:L}))}}),_.Y(_.rw,{data:function(){return H().showLessButton}},{buttonViewModel:function(C){return _.Y("div",{hidden:S},_.Y(_.Db,{data:C.data,
onClick:e}))}})))},"cc");
cYN.idomCompat=!0;var Qn0=_.W1(function(V){var l=V.items;var I=V.responsiveGridShelfLayout;var H=V.contentAspectRatio;V=V.className;var T=_.sZ();T5f(T,function(){a:{var n=T.value;for(var w=l(),N=[],L=0;L<w.length;L++){var e=_.y(w[L],PF0);if(!e||e==null||!e.inlinePlayerData){n=null;break a}var k=n.children.item(L);if(!k){n=null;break a}N.push({thumbnailElement:k,videoData:e})}n={gridVideoPreviewData:{gridItems:N}}}return n});
var x=(0,_.kR)(function(){return-I().itemMargin});
return _.Y("div",{el:T,class:_.ii("ytGridShelfViewModelGridShelfRow",V),style:_.na({"margin-left":x,"margin-right":x})},_.Y(_.rw,{data:l,replacementWrapper:function(n){return _.Y(W9w,{responsiveGridShelfLayout:I},n)}},{shortsLockupViewModel:function(n){return _.Y(W9w,{responsiveGridShelfLayout:I},_.Y(Q3v,{data:n.data,
aspectRatio:function(){return H()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"dc"),W9w=_.W1(function(V){return _.Y("div",{style:_.na({width:(0,_.kR)(function(){return V.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+V.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},V.children)},"ec");_.MR(cYN,"grid-shelf-view-model",{props:{data:_.b9,layoutContainerWidth:_.b9,shouldUseOwnContainerSize:_.b9,marginSettings:_.b9,className:_.b9}});_.MR(_.W1(function(V){var l=_.U(_.xi(!1,void 0,"YYtxR")),I=l.next().value,H=l.next().value;l={};return _.Y("yt-alert-banner-view-model",{class:_.ii("ytAlertBannerViewModelHost",function(){var T;a:switch((T=V.data())==null?void 0:T.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":T="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":T="ytAlertBannerViewModelWarning";break a;default:T="ytAlertBannerViewModelInformational"}return T},(l.ytAlertBannerViewModelDismissed=I,l.ytAlertBannerViewModelFullbleed=
V.fullbleed,l.ytAlertBannerViewModelNarrow=V.narrow,l.ytAlertBannerViewModelIsInRichGrid=V.isInRichGrid,l))},_.Y(_.NS,{cond:function(){var T;
return!((T=V.data())==null?0:T.hideIcon)},
then:function(){return _.Y("div",{class:"ytAlertBannerViewModelIcon"},_.Y(_.dq,{icon:function(){return"info_circle"}}))}}),_.Y("div",{class:"ytAlertBannerViewModelOuterContainer"},_.Y("div",{class:"ytAlertBannerViewModelContainer"},_.Y("div",{class:"ytAlertBannerViewModelContent"},_.Y("div",{class:"ytAlertBannerViewModelHeading"},_.Y(_.Ni,{text:function(){var T;
return(T=V.data())==null?void 0:T.heading}})),_.Y("div",{class:"ytAlertBannerViewModelBody"},_.Y(_.Ni,{text:function(){var T;
return(T=V.data())==null?void 0:T.body}})))),_.Y(_.rw,{data:function(){var T;
return(T=V.data())==null?void 0:T.actionButton}},{buttonViewModel:function(T){return _.Y(_.Db,{data:T.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.Y(_.rw,{data:function(){var T;
return(T=V.data())==null?void 0:T.dismissButton}},{buttonViewModel:function(T){return _.Y(_.Db,{data:T.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var x;((x=V.data())==null?0:x.disableLocalDismissBehavior)||H(!0)}})}}))},"fc"),"yt-alert-banner-view-model",{props:{data:_.b9,
fullbleed:_.b9,narrow:_.b9,isInRichGrid:_.b9}});var k$w;k$w=_.FR({chipViewModel:_.Z5i,buttonViewModel:_.Db});_.b5Z=_.I2(FAt,{callbacks:{callback:!0}});_.m5(FAt);_.MR(_.b5Z,"chips-shelf-view-model",{props:{data:_.b9,callback:_.qR,enableSingleChipSelection:_.b9,disableChipsScrollAnimation:_.b9}});var qVw=_.W1(function(V){V=_.Rj(V,{disabled:!1});var l=V.active,I=V.disabled;V={};V=_.ii("ytSwitchShapeTrack",(V.ytSwitchShapeTrackActive=function(){return l()},V.ytSwitchShapeTrackDisabled=function(){return I()},V));
var H={};H=_.ii("ytSwitchShapeKnob",(H.ytSwitchShapeKnobActive=function(){return l()},H));
return _.Y("switch-shape",{class:"ytSwitchShapeHost"},_.Y("div",{class:V}),_.Y("div",{class:H}))},"gc");var MY3=_.W1(function(V){var l=_.Rj(V,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),I=l.data;V=l.className;var H=l.handleOnTapEventInParent,T=l.parentActive;l=_.U(_.Ux(function(){var k;return(k=T())!=null?k:I().switchedOnByDefault||!1}));
var x=l.next().value,n=l.next().value,w=function(){return I().isDisabled},N=_.sZ();
l=_.Bu(function(k){return k.key==="Enter"?(k.preventDefault(),N.value.click(),!1):!0});
var L=_.Bu(function(k){if(I().handleOnTapEventInParent||H())return!0;if(w())return!1;zvT(I(),x(),k);n(!x());return!1}),e={};
e=_.ii("ytSwitchButtonViewModelButton",(e.ytSwitchButtonViewModelTappable=function(){return!w()},e));
return _.Y("switch-button-view-model",{class:_.ii("ytSwitchButtonViewModelHost",V)},_.Y("button",{el:N,class:e,"on:click":L,"on:keydown":l,"aria-label":function(){return x()?I().a11yLabelSwitchedOn:I().a11yLabelSwitchedOff},
"aria-pressed":x,"aria-disabled":w},_.Y(qVw,{active:x,disabled:w})))},"hc");_.m5(G$f);_.sni=_.I2(JjT,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});_.m5(JjT);var o01;o01=_.FR({buttonViewModel:_.Db,switchButtonViewModel:MY3,avatarViewModel:_.hy,accountLinkButtonViewModel:Hp1,subscribeButtonViewModel:_.g50,collectionThumbnailViewModel:XDN,toggleButtonViewModel:_.o6});_.Fg=_.I2(DHK,{callbacks:{onTap:!0}});_.m5(DHK);_.pcb=_.W1(function(V){var l=V.data;var I=V.onTap;var H=V.onSwitch;var T=V.overrideDisabled;V=_.U(_.Ux(function(){var e;return((e=tFN(L()))==null?void 0:e.switchedOnByDefault)||!1}));
var x=V.next().value,n=V.next().value;V=_.U(_.xi(!1,void 0,"Ri8Twb"));var w=V.next().value,N=V.next().value,L=function(){var e;if(!(e=l().switchButton)){var k=l();e=T==null?void 0:T();k={switchOnCommand:k.switchOnCommand,switchOffCommand:k.switchOffCommand,switchedOnByDefault:k.switchedOnByDefault,isDisabled:k.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:k.a11yLabelSwitchedOn,a11yLabelSwitchedOff:k.a11yLabelSwitchedOff};e!==void 0&&(k.isDisabled=e);e={switchButtonViewModel:k}}return e};
return _.Y("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.Y(_.Fg,{data:function(){return{title:l().title,subtitle:l().attributedSubtitle,leadingImage:l().leadingImage,leadingAccessory:l().leadingAccessory,isDisabled:l().isDisabled}},
onTap:function(e){var k=tFN(L());!k||k.isDisabled||l().ignoreTapUntilCommandCompletes&&w()||(I==null||I(e),zvT(k,x(),e,l().ignoreTapUntilCommandCompletes,N),n(!x()),H==null||H(x()))},
trailingAccessory:_.Y(_.rw,{data:L},{switchButtonViewModel:function(e){return _.Y(MY3,{data:e.data,parentActive:x,handleOnTapEventInParent:!!I})}})}))},"ic");var AYZ=_.LT("DOWNLOAD",{},"Download"),uOJ=_.LT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),vcW=_.LT("RETRY",{},"Retry"),O5Z=_.LT("PAUSE_DOWNLOADING",{},"Pause downloading"),CrE=_.LT("RESUME_DOWNLOAD",{},"Resume download"),ZFK={text:AYZ,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},QO={text:uOJ,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},QZJ={text:vcW,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Sbg={text:O5Z,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Rvy={text:CrE,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var aqJ=_.W1(function(V){var l=function(){var w=V.data();w=_.M7(w.rendererContext);var N;return(N=_.y(w,_.xj))==null?void 0:N.videoId},I=_.rq(function(w){var N=l(),L=bFf(V.data());
return N?_.Dw(w,N):L?_.Zw(w,L):"TRANSFER_STATE_UNKNOWN"}),H=_.dw(_.OnK,l),T=_.rq(function(w){return _.MlJ(w,l(),bFf(V.data()))}),x=function(){return WAw(I(),H(),_.M7(V.data().rendererContext),!!bFf(V.data()))},n=function(){return T()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.Y("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:n},_.Y(_.NS,{cond:function(){return!n()},
then:function(){return _.Y(_.NS,{cond:x,then:function(w){return _.Y(_.Ks,{each:w},function(N){return _.Y(_.Fg,{data:N,isCompact:V.isCompact,isMenuItem:V.isMenuItem,inPopup:V.inPopup})})}})}}))},"jc");
aqJ.idomCompat=!0;var MFN;MFN=_.FR({listItemViewModel:DHK,downloadListItemViewModel:aqJ,switchListItemViewModel:_.pcb});_.fqN=_.I2(sZN);_.m5(sZN);var gcZ=_.W1(function(V){var l=V.data;var I=V.isOverlay;V={};return _.Y("yt-course-perks-view-model",{class:_.ii("ytwCoursePerksViewModelHost",(V.ytwCoursePerksViewModelHostOverlay=I,V))},_.Y("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y("div",null,_.Y(_.NS,{cond:function(){return l().perks},
then:function(H){return _.Y(_.fqN,{data:function(){return{listItems:H()}},
isCompact:!0,isOverlay:I})}})))},"kc");_.MR(gcZ,"yt-course-perks-view-model",{props:{data:_.qR,isOverlay:_.qR}});_.MR(_.W1(function(V){var l=V.data;return _.Y("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.Y("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.Y(_.Ni,{text:function(){return l().progressSummary}})),_.Y("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.Y("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.na({width:function(){return l().progressPercentage*100+"%"}})})))},"lc"),"yt-course-progress-view-model",{props:{data:_.b9}});var mMB=_.W1(function(V){var l=_.Rj(V,{}).data;return _.Y("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.Y(_.NS,{cond:function(){return l().progressSummary},
then:function(I){return _.Y("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.Y(_.Ni,{text:I}))}}),_.Y("div",{class:"ytwProgressViewModelHostProgressContainer"},_.Y("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.Y(_.Ni,{text:function(){var I;
return(I=l())==null?void 0:I.leadingLabel}})),_.Y("div",{class:"ytwProgressViewModelHostProgressBar"},_.Y("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var I;return"width: "+(((I=l())==null?void 0:I.progressPercentage)||0)*100+"%"}}))))},"mc");var Xg=_.W1(function(V){var l=V.starNumber;var I=V.data;var H=function(){var T;return((T=I())==null?void 0:T.rating)||0};
return _.Y(_.NS,{cond:function(){return l()},
then:function(T){return _.Y(_.YG,null,_.Y(_.jN,{when:function(){return H()>=T()-.25}},function(){return _.Y("div",{class:"ytStarRatingViewModelHostStar"},_.Y(_.dq,{icon:"STAR_FILLED"}))}),_.Y(_.jN,{when:function(){return H()>=T()-.75}},function(){return _.Y("div",{class:"ytStarRatingViewModelHostStar"},_.Y(_.dq,{icon:"STAR_HALF"}))}),_.Y(_.qAK,null,function(){return _.Y("div",{class:"ytStarRatingViewModelHostStar"},_.Y(_.dq,{icon:"STAR_BORDER"}))}))}})},"nc"),i50=_.W1(function(V){V=V.data;
return _.Y("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.Y(Xg,{starNumber:1,data:V}),_.Y(Xg,{starNumber:2,data:V}),_.Y(Xg,{starNumber:3,data:V}),_.Y(Xg,{starNumber:4,data:V}),_.Y(Xg,{starNumber:5,data:V}))},"oc");_.MR(_.W1(function(V){var l=_.Rj(V,{}).data;return _.Y("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.Y("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.Y(_.Ni,{text:function(){var I;return(I=l())==null?void 0:I.title}})),_.Y("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.Y(_.NS,{cond:function(){return l().starProgressViewModels},
then:function(I){return _.Y("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.Y(_.rw,{data:I},{progressViewModel:mMB}))}}),_.Y("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.Y("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.Y(_.Ni,{text:function(){var I;
return(I=l())==null?void 0:I.averageRatingLabel}})),_.Y(_.NS,{cond:function(){return l().zeroStateText},
then:function(I){return _.Y("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.Y(_.Ni,{text:I}))}}),_.Y(_.NS,{cond:function(){return l().starRatingViewModel},
then:function(I){return _.Y("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.Y(_.rw,{data:I},{starRatingViewModel:i50}))}}),_.Y("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.Y(_.Ni,{text:function(){var I;
return(I=l())==null?void 0:I.totalRatingsCountLabel}})))))},"pc"),"yt-course-ratings-view-model",{props:{data:_.qR}});var Vcr;Vcr={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"}};_.lg2=_.W1(function(V){var l=_.sZ(),I=_.HK();_.kG(function(){requestAnimationFrame(function(){var n;(n=I.lottieEl)==null||n.addEventListener("DOMLoaded",function(){var w;(w=V.onLottieLoaded)==null||w.call(V)})});
var H,T=_.IV({browseEndpoint:{params:(H=V.data)==null?void 0:H.call(V).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}),x;((x=V.shouldSkipRequest)==null?0:x.call(V))||_.B$(l.value,"yt-navigate",{endpoint:T})});
return _.Y("yt-learning-journey-loader-view-model",{class:_.ii("learningJourneyLoaderViewModelHost",V.className),"data-target-id":function(){var H;return((H=V.data)==null?void 0:H.call(V).targetId)||""},
el:l},_.Y(_.VN,{className:_.ii("learningJourneyLoaderViewModelLoader",V.className),animationName:function(){return Vcr.animationConfig.name},
data:Vcr,animationRef:I}))},"qc");_.MR(_.lg2,"yt-learning-journey-loader-view-model",{props:{data:_.b9,className:_.qR,onLottieLoaded:_.qR,shouldSkipRequest:_.qR}});var Igr=_.W1(function(V){var l=V.data;V=_.U(_.xi(-1,void 0,"r4B6h"));var I=V.next().value,H=V.next().value,T=function(N){return I()===N},x=function(N){return l().correctAnswerIndex===N},n=function(){return I()!==-1},w=_.Bu(function(){H(-1);
return!1});
return _.Y("learning-journey-quiz-view-model",{class:"learningJourneyQuizViewModelHost",style:_.na({background:function(){return be(cl(l())).backgroundColor}})},_.Y(_.NS,{cond:function(){return!!l().video},
then:function(){return _.Y("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.na({background:function(){return be(cl(l())).videoBackgroundColor}})},_.Y(_.rw,{data:function(){return l().video}},{lockupViewModel:function(N){return _.Y(jG,{data:N.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.Y("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.Y("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.Y("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.Y("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.Y("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.na({color:function(){return be(cl(l())).primaryTextColor}})},_.Y(_.Ni,{text:function(){var N=l(),L=n(),e=I()===l().correctAnswerIndex;
return L?e?N.successTitle:N.failureTitle:N.questionHeaderText}})),_.Y(_.NS,{cond:n,
then:function(){return _.Y("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":w,role:"button","aria-label":"Reset","tab-index":"0"},_.Y("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.na({fill:function(){return be(cl(l())).primaryTextColor}})},_.Y("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"})))}})),
_.Y("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.na({color:function(){return be(cl(l())).secondaryTextColor}})},_.Y(_.Ni,{text:function(){var N=l();
return n()?N.explanationText:N.questionSubheaderText}}))),_.Y("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.Y(_.Ks,{each:function(){return l().optionsData||[]}},function(N,L){var e={};
return _.Y("div",{class:_.ii("learningJourneyQuizViewModelHostQuizOptions",(e.learningJourneyQuizViewModelHostQuizHover=function(){return!n()},e.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return I()===l().correctAnswerIndex&&T(L())},e.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return I()!==l().correctAnswerIndex&&T(L())},e.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return n()&&!T(L())},e)),
"on:click":_.Bu(function(){if(n())return!1;H(L());return!1}),
style:_.na({background:function(){return n()&&T(L())?"":be(cl(l())).optionColor}}),
role:"button","aria-disabled":n,"tab-index":"0"},_.Y(_.NS,{cond:n,then:function(){return _.Y("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var k=L();return x(k)?"0 0 24 24":"0 -960 960 960"},
style:_.na({fill:function(){return be(cl(l())).primaryTextColor}})},_.Y("path",{d:function(){var k=L();
return x(k)?"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"}}))}}),_.Y(_.Ni,{text:N.optionText}))})))))},"rc");
Igr.idomCompat=!0;_.MR(Igr,"learning-journey-quiz-view-model",{props:{data:_.b9}});var HKI=_.W1(function(V){var l=_.sZ();_.A9(l,function(){return V.data().rendererContext});
var I=_.Rj(V,{palette:void 0,isLastItem:!1}),H=I.palette,T=I.isLastItem,x=function(){return V.data().isHighlighted},n=function(){var L;
return pec((L=H())==null?void 0:L.iconDisabledColor)},w=function(){var L;
return pec((L=H())==null?void 0:L.primaryTitleColor)},N=function(){var L;
return pec((L=H())==null?void 0:L.secondaryTitleColor)};
I={};return _.Y("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:l},_.Y(_.rw,{data:function(){return V.data().thumbnail}},{thumbnailViewModel:x3}),_.Y("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.Y("div",{class:_.ii("ytMacroMarkerListItemViewModelTimeDescription",(I.ytMacroMarkerListItemViewModelHighlighted=x,I)),
style:_.na({"background-color":function(){return x()?w():n()},
color:function(){return x()?"":N()}})},_.Y(_.Ni,{text:function(){return V.data().timestamp}})),_.Y("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.na({"background-color":function(){return T()?"transparent":n()}})}),_.Y("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(x()?w():N())}},_.Y(_.Ni,{text:function(){return V.data().title}}))))},"sc");_.zi=_.W1(function(V){function l(EN){S("transform:translateX("+(_.h6("HTML_DIR")==="rtl"?"":"-")+EN+"px)")}
function I(EN){return Math.min(Math.max(EN,0),Z()-lN())}
function H(){var EN=C()+ec();return T()?(Math.round(lN()/EN)||1)*EN:0}
var T=function(){return V.data().items||[]},x=function(){return V.data().previousButton},n=function(){return V.data().nextButton},w=function(){var EN,ya;
return(ya=(EN=V.disableArrows)==null?void 0:EN.call(V))!=null?ya:!1},N=function(){var EN;
return!((EN=V.forceNarrowLayout)==null||!EN.call(V))},L=_.sZ(),e=_.sZ(),k=_.U(_.xi(0,void 0,"yngx7d")),X=k.next().value,r=k.next().value;
k=_.U(_.xi(0,void 0,"rUOyGb"));var E=k.next().value,D=k.next().value,Z=E;E=_.U(_.xi("",void 0,"jv2kWc"));k=E.next().value;var S=E.next().value;E=_.U(_.xi(0,void 0,"Xb0f0d"));var p=E.next().value,Vf=E.next().value,C=p;E=_.U(_.xi(0,void 0,"pt5wQ"));p=E.next().value;var By=E.next().value,lN=p;E=_.U(_.xi(!1,void 0,"FfPefe"));var wW=E.next().value,o1=E.next().value;E=_.U(_.xi(0,void 0,"kB5mhb"));p=E.next().value;var h1=E.next().value,ec=p;E=_.U(_.xi(0,void 0,"dnDmUd"));var Zg=E.next().value,Va=E.next().value,
wb=function(){var EN,ya=(EN=V.data())==null?void 0:EN.responsiveContainerConfiguration,Dv,Tf;return ya?uqK(ya==null?void 0:ya.responsiveSize):(Tf=(Dv=V.sizing)==null?void 0:Dv.call(V))!=null?Tf:"STANDARD"};
E=_.Ny(function(){return!w()&&X()>0},void 0,"ZIGxke");
p=_.Ny(function(){return!w()&&X()<Z()-lN()},void 0,"OJzhRd");
var CK=function(){r(I(X()-H()));l(X())},CZ=function(){r(I(X()+H()));
l(X())},ME=function(){L.value!==null&&uZ()},Hw;
_.XW(function(){uZ();window.ResizeObserver?(Hw=new ResizeObserver(_.ym(ME,0)),Hw.observe(L.value)):window.addEventListener("resize",ME)});
_.rx(function(){if(window.ResizeObserver){var EN;(EN=Hw)==null||EN.disconnect()}else window.removeEventListener("resize",ME)});
var uZ=function(){var EN=L.value.clientWidth,ya=V.includeMargin!==void 0?V.includeMargin():!1,Dv;var Tf=V.hasPeek!==void 0?V.hasPeek():!((Dv=V.data())==null||!Dv.hasPeek);EN=_.gw({containerWidth:EN,hasPeek:Tf,sizing:wb(),marginSettings:ya?N()?4:1:0});h1(EN.gutter);Va(EN.margin);Vf(EN.itemWidth);o1(EN.maxContainerWidth<528||N());By(EN.maxContainerWidth);T()&&D((EN.itemWidth+EN.gutter)*T().length-EN.gutter)};
return _.Y("horizontal-shelf-view-model",{class:_.ii("ytwHorizontalShelfViewModelHost",V.className),el:L},_.Y(_.NS,{cond:function(){return V.data().header},
then:function(){return _.Y("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.na({width:function(){return lN()+"px"},
padding:function(){return"0 "+Zg()+"px"}})},_.Y(_.rw,{data:function(){return V.data().header}},{sectionHeaderViewModel:function(EN){return _.Y(_.a$,{data:EN.data,
disableHorizontalPadding:!0,forceSmallLayout:wW,useResponsiveLayout:!0})}}))}}),_.Y("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.Y("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.na({width:function(){return lN()+"px"},
padding:function(){return"0 "+Zg()+"px"},
overflow:function(){return w()?"auto":"hidden"}})},_.Y("div",{class:"ytwHorizontalShelfViewModelItems",
el:e,style:k},_.Y(_.rw,{data:T},{macroMarkerListItemViewModel:function(EN,ya){return _.Y("div",{style:_.na({width:function(){return C()+"px"},
"margin-right":function(){return(ya()===T().length-1?0:ec())+"px"}})},_.Y(HKI,{data:EN.data,
palette:_.S5(V.palette),isLastItem:function(){return ya()===T().length-1}}))},
lockupViewModel:function(EN,ya){var Dv=EN.data;return _.Y("div",{style:_.na({width:function(){return C()+"px"},
"margin-right":function(){return(ya()===T().length-1?0:ec())+"px"}})},_.Y(jG,{data:Dv,
containerType:4,sizing:wb,protectBackground:V.protectBackground,thumbnailFixedWidth:function(){return Ajt(Dv())+"px"},
thumbnailTargetWidth:function(){return Ajt(Dv())}}))}}))),_.Y(_.NS,{cond:E,
then:function(){return _.Y("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.Y(_.rw,{data:x},{buttonViewModel:function(EN){return _.Y(_.Db,{data:EN.data,onClick:CK})}}))}}),_.Y(_.NS,{cond:p,
then:function(){return _.Y("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.Y(_.rw,{data:n},{buttonViewModel:function(EN){return _.Y(_.Db,{data:EN.data,onClick:CZ})}}))}})))},"tc");
_.zi.idomCompat=!0;var TWh=_.W1(function(V){var l=function(){return V.data().targetId||""},I=function(){var e;
return((e=V.data())==null?void 0:e.expansionEntityKey)||""},H=_.dw(_.HBt,I),T=function(){var e;
return H()?H().value===l():(e=V.data())==null?void 0:e.isExpanded},x=function(){if(T()){var e=!0;
V.onCollapse!==void 0&&(e=V.onCollapse());e&&_.ZR(_.K6("stringEntity",I(),{key:I(),value:""}))}else _.ZR(_.K6("stringEntity",I(),{key:I(),value:l()}))},n=_.Bu(x),w=function(){var e;
return(((e=V.accordionStyle)==null?void 0:e.call(V))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},N={},L={};
return _.Y("yt-accordion-item-view-model",{class:_.ii("ytAccordionItemViewModelHost",V.className,(N.ytAccordionItemViewModelExpanded=function(){return T()},N.ytAccordionItemViewModelHidden=function(){var e;
return(e=V.hideIfNotExpanded)==null?void 0:e.call(V)},N.ytAccordionItemViewModelMini=w,N)),
"data-target-id":l},_.Y("div",{class:"ytAccordionItemViewModelContainer"},_.Y("div",{class:"ytAccordionItemViewModelLeftSection","on:click":n},_.Y(_.Ni,{text:function(){return V.data().title},
className:"ytAccordionItemViewModelLabel"})),_.Y("div",{class:"ytAccordionItemViewModelRightSection"},_.Y(_.rw,{data:function(){return T()?V.data().expandButton:V.data().collapseButton}},{buttonViewModel:function(e){return _.Y(_.Db,{data:e.data,
className:"ytAccordionItemViewModelToggleButton",onClick:x})}}))),_.Y("div",{class:"ytAccordionItemViewModelContainer"},_.Y("div",{class:_.ii("ytAccordionItemViewModelContent",(L.ytAccordionItemViewModelExpandedSubtitle=function(){return T()},L))},_.Y(_.NS,{cond:function(){return!w()},
then:function(){return _.Y(_.Ni,{text:function(){return V.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.Y(_.rw,{data:function(){return V.data().content}},{horizontalShelfViewModel:function(e){return _.Y(_.zi,{data:e.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"uc");_.BW6=_.W1(function(V){var l=_.U((0,_.HFw)(V.data)).next().value,I=function(){return V.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},H=function(){return I()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},T=_.U(_.xi(!0,void 0,"ewf0jb")),x=T.next().value,n=T.next().value,w=function(){return H()&&x()},N=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){n(!x())}}};
T={};return _.Y("yt-accordion-view-model",{class:_.ii("ytAccordionViewModelHost",(T.ytAccordionViewModelMinimized=function(){return w()},T)),
"data-target-id":function(){return V.data().targetId||""}},_.Y(_.NS,{cond:function(){return H()||!!l().title},
then:function(){return _.Y("div",{class:"ytAccordionViewModelHeader"},_.Y(_.Ni,{text:function(){return l().title},
className:"ytAccordionViewModelTitle"}),_.Y(_.NS,{cond:H,then:function(){return _.Y(IJ,{data:N,iconName:function(){return w()?"chevron_down":"chevron_up"}})}}))}}),_.Y("div",{class:"ytAccordionViewModelContent"},_.Y(_.rw,{data:function(){return l().contents}},{accordionItemViewModel:function(L){return _.Y(TWh,{data:L.data,
className:"ytAccordionViewModelRow",accordionStyle:I,hideIfNotExpanded:w,onCollapse:function(){return H()?(n(!0),!1):!0}})}})))},"vc");_.MR(_.BW6,"yt-accordion-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l,I=(l=_.F().resolve(_.Cs(_.DA)))==null?void 0:l(),H=_.U(_.xi(!1,void 0,"TMXtne"));l=H.next().value;var T=H.next().value;H=_.U(_.xi(!0,void 0,"WK6Hlb"));var x=H.next().value,n=H.next().value,w=function(){T(!0);_.EI(V.data().searchEndpoint||{});return!1},N=_.sZ();
H=_.Bu(function(){n(N.value.value.length===0)});
var L=_.Bu(function(X){X.key!=="Enter"||X.shiftKey||x()||(X.preventDefault(),w())}),e={},k={};
return _.Y("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.Y("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.Y(_.cX,{data:function(){return V.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.Y("div",{class:_.ii("ytLearningJourneyZeroStateSearchBarContainer",(e.ytLearningJourneyZeroStateSearchBarContainerDark=I,e))},_.Y("textarea",{class:_.ii("ytLearningJourneyZeroStateTextInput",(k.ytLearningJourneyZeroStateTextInputDark=I,k)),el:N,"on:keyup":H,"on:keydown":L,placeholder:"What do you want to learn?",rows:1}),_.Y(_.Db,{data:function(){return _.y(V.data().searchButton,_.Gb)},
className:"ytLearningJourneyZeroStateSearchButton",onClick:w,buttonOverrides:function(){return{disabled:x(),style:I?"mono-inverse":"mono"}}})),_.Y(_.NS,{cond:l,
then:function(){return _.Y("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.Y(_.rw,{data:function(){return V.data().loader}},{learningJourneyLoaderViewModel:function(X){return _.Y(_.lg2,{data:X.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.Y("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.Y(_.rw,{data:function(){return V.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(X){return _.Y(HpB,{data:X.data,
layout:1})}}))}}))},"wc"),"yt-learning-journey-zero-state",{props:{data:_.b9}});var xqI=_.W1(function(V){var l=V.data;return _.Y("ytvl-live-leaderboard-item-action-content-view-model",{class:_.ii("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.Y(_.Ni,{text:function(){var I;return(I=l())==null?void 0:I.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.Y(_.rw,{data:function(){return l().actionButton}},{buttonViewModel:function(I){return _.Y(_.Db,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:I.data})}}))},"xc");var UqI=_.W1(function(V){var l=V.data;return _.Y("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.ii("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.Y(_.Ni,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var I;return(I=l())==null?void 0:I.displayName},
ellipsisTruncate:!0}),_.Y(_.rw,{data:function(){return l().badge}},{buttonViewModel:function(I){return _.Y(_.Db,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:I.data})}}))},"yc");_.MR(_.W1(function(V){var l=V.data;return _.Y("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.Y("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.Y(_.Ni,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var I;return(I=l())==null?void 0:I.rank}})),_.Y("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.Y(_.rw,{data:function(){return l().avatar}},{avatarViewModel:_.SA})),_.Y("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.Y(_.rw,{data:function(){return l().content}},{liveLeaderboardItemChannelContentViewModel:UqI,
liveLeaderboardItemActionContentViewModel:xqI})),_.Y(_.Ni,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var I;return(I=l())==null?void 0:I.points}}))},"zc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;return _.Y("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.Y(_.Ni,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var I,H;return(I=l())==null?void 0:(H=I.ranking)==null?void 0:H.rank}}),_.Y("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.Y(_.rw,{data:function(){return l().avatar}},{avatarViewModel:_.SA})),_.Y(_.Ni,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var I,H;return(I=l())==null?void 0:(H=I.channelContent)==null?void 0:H.channelName}}),_.Y(_.Ni,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var I;return(I=l())==null?void 0:I.points}}))},"Ac"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.b9}});var nTP=_.W1(function(V){V=_.Rj(V,{wrapper:!1}).wrapper;return _.Y(_.NS,{cond:V,then:function(){return _.Y("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.Y("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.Y("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Bc");
nTP.idomCompat=!0;var $qb=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],dqQ=_.W1(function(V){var l=V.data;var I=_.sZ(),H=_.Ny(function(){return l().command},void 0,"CGDtVe");
_.t0(function(){H()&&_.rj(H(),{form:{element:I.value}})});
return _.Y("div",{el:I},_.Y(_.NS,{cond:function(){return l().qrCodeImage},
then:function(T){return _.Y(_.cX,{data:T,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.Y(_.NS,{cond:function(){return l().spinner},
then:function(){return _.Y(nTP,null)}})}}),_.Y(_.NS,{cond:function(){return l().label},
then:function(T){return _.Y(_.Ni,{text:T,className:"YtQrCodeRendererHostLabel"})}}),_.Y(_.NS,{cond:function(){return l().labels},
then:function(T){return _.Y("div",{class:"YtQrCodeRendererHostLabels"},_.Y(_.Ks,{each:T},function(x){return _.Y(_.Ni,{text:x})}))}}))},"Dc");_.MR(_.W1(function(V){var l=V.data;var I=_.Ny(function(){return l().qrEntityKey},void 0,"joYCxd"),H=_.Ny(function(){return l().deleteEntityOnDismiss},void 0,"x3yAde"),T=_.Ny(function(){return l().command},void 0,"dJe1Re"),x=_.dw(JGN,I);
V=_.Ny(function(){return l().style&&$qb.includes(l().style)},void 0,"rGILzf");
var n=_.sZ();_.gT(n,{visibilityCallback:function(w){w&&T()&&_.rj(T())},
showOption:{calledOnce:!0,state:"visible"}});_.XW(function(){_.rx(function(){H()&&I()&&_.P1().dispatch(_.K6("qrCodeEntity",I()))})});
return _.Y("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:n},_.Y(_.NS,{cond:V,then:function(){return _.Y(_.NS,{cond:x,then:function(w){return _.Y(dqQ,{data:w})}})}}))},"Cc"),"yt-qr-code-renderer",{props:{data:_.b9}});var wyE=_.W1(function(V){var l=V.data;var I=V.topbarOffset;var H,T=((H=_.F().resolve(_.Cs(_.DA)))==null?void 0:H())||!1;return _.Y("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var x=l();var n,w,N=T?(n=x.config)==null?void 0:n.darkThemeBackgroundColor:(w=x.config)==null?void 0:w.lightThemeBackgroundColor;x=N?_.tv(N):void 0;x="background-color: "+x+";";I!==void 0&&(x+="top: -"+I()+"px;");return x},
"aria-hidden":!0},_.Y(_.NS,{cond:function(){var x,n,w;return!!((x=l().backgroundImageConfig)==null?0:(n=x.image)==null?0:(w=n.sources)==null?0:w.length)},
then:function(){return _.Y(_.cX,{data:function(){var x;return(x=l().backgroundImageConfig)==null?void 0:x.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.Y("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+us3(T,l().gradientColorConfig)+";"}}))},"Ec");
wyE.idomCompat=!0;var NWE=_.I2(v0g);_.m5(v0g);var K3b=_.W1(function(V){var l=V.data;var I=V.isOverlay;return _.Y("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.Y("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.Y(_.rw,{data:function(){return l().header}},{sectionHeaderViewModel:function(H){return _.Y(_.a$,{data:H.data,
isOverlay:I})}})),_.Y("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.Y(_.rw,{data:function(){return l().channelInfoButtons}},{flexibleActionsViewModel:HpB})),_.Y("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.Y(_.rw,{data:function(){return l().description}},{descriptionPreviewViewModel:function(H){return _.Y(NWE,{data:H.data,
isOverlay:I})}})))},"Fc");
K3b.idomCompat=!0;var j1I=_.W1(function(V){var l=V.data;var I={};return _.Y("factoid-view-model",{class:_.ii("ytwFactoidViewModelHost",(I.ytwFactoidViewModelHostOverlay=V.isOverlay,I))},_.Y(_.Ni,{text:function(){return l().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.Y(_.Ni,{text:function(){return l().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Gc");
j1I.idomCompat=!0;var Ytg=_.W1(function(V){var l=V.data;var I=V.isOverlay;return _.Y("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.Y(_.rw,{data:function(){return l().factoids}},{factoidViewModel:function(H){return _.Y(j1I,{data:H.data,
isOverlay:I})}}))},"Hc");
Ytg.idomCompat=!0;_.L3E=_.W1(function(V){var l=V.data;var I=V.isOverlay;return _.Y("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.Y(_.rw,{data:function(){return l().items}},{channelInfoViewModel:function(H){return _.Y("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Y(K3b,{data:H.data,
isOverlay:I}))},
coursePerksViewModel:function(H){return _.Y("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Y(gcZ,{data:H.data,isOverlay:I}))},
descriptionPreviewViewModel:function(H){return _.Y("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Y(NWE,{data:H.data,isOverlay:I}))},
factoidsRowViewModel:function(H){return _.Y("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Y(Ytg,{data:H.data,isOverlay:I}))}}))},"Ic");var eth=_.W1(function(V){return _.Y("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.Y(_.rw,{data:function(){return V.data().content}},{courseMetadataViewModel:function(l){return _.Y(_.L3E,{data:l.data,
isOverlay:V.isOverlay})}}))},"Jc");var kwP=_.W1(function(V){var l=V.data;V=V.className;var I=_.sZ(),H=function(){var x;return _.sB((x=l())==null?void 0:x.rendererContext)},T={};
T=(T["dynamic-text-view-model-wiz"]=!0,T["dynamic-text-view-model-wiz--tappable"]=function(){return H()},T);
_.A9(I,function(){var x;return(x=l())==null?void 0:x.rendererContext});
return _.Y("yt-dynamic-text-view-model",{el:I,role:function(){return H()?"link":void 0},
tabindex:function(){return H()?0:void 0},
class:_.ii(V,T)},_.Y("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var x,n,w;return(w=(n=_.y((x=l())==null?void 0:x.rendererContext,_.uP))==null?void 0:n.label)!=null?w:""}},_.Y(_.Ni,{text:function(){return l().text},
userInput:!0})))},"Kc");
kwP.idomCompat=!0;_.F32=_.W1(function(V){var l=V.data;var I=V.isPositionRelative;var H=_.pO(),T=_.fDt("(max-width: 527.9px)"),x=function(){var n,w;return(w=(n=l())==null?void 0:n.style)!=null?w:"IMAGE_BANNER_STYLE_FULL_BLEED"};
V={};V=(V["yt-image-banner-view-model-wiz"]=!0,V["yt-image-banner-view-model-wiz--inset"]=function(){return g0J(x())},V["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.ES(!0)&&!(I==null?0:I())},V["yt-image-banner-view-model-wiz--small-inset"]=function(){return g0J(x())&&T()},V["yt-image-banner-view-model-wiz--tappable"]=function(){var n;
return _.ES(H.value)&&_.sB((n=l())==null?void 0:n.rendererContext)},V);
_.A9(H,function(){var n;return(n=l())==null?void 0:n.rendererContext});
return _.Y("yt-image-banner-view-model",{el:H,class:_.ii(V)},_.Y(_.NS,{cond:function(){var n;return(n=l())==null?void 0:n.image},
then:function(){return _.Y(_.cX,{data:function(){return l().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.Y(_.rw,{data:function(){var n;
return(n=l())==null?void 0:n.overlays}},{thumbnailHoverOverlayViewModel:iJi}))},"Lc");
_.F32.idomCompat=!0;var qZ;qZ=_.FR({descriptionPreviewViewModel:v0g,dynamicTextViewModel:kwP,contentPreviewImageViewModel:_.wn,contentMetadataViewModel:QcE,flexibleActionsViewModel:IPJ,attributionViewModel:oaZ,imageBannerViewModel:_.F32,decoratedAvatarViewModel:HoW,cinematicContainerViewModel:wyE,flexibleContainer:eth});_.Xyb=_.I2(_.H_c);_.m5(_.H_c);_.MR(_.W1(function(V){var l=_.U(_.xi(!1,void 0,"vVRl3b")),I=l.next().value,H=l.next().value;return _.Y("yt-official-card-view-model",{class:_.ii("ytOfficialCardViewModelHost",V.className),style:_.na({"background-color":function(){var T,x=s3K((T=V.data())==null?void 0:T.backgroundColor);return x?_.rP(x):void 0}})},_.Y(_.rw,{data:function(){return V.data().header}},{pageHeaderViewModel:function(T){return _.Y(_.Xyb,{data:T.data,
noPadding:!0})}}),_.Y(_.rw,{data:function(){return V.data().contents}},{horizontalShelfViewModel:_.zi}),_.Y(_.NS,{cond:I,
then:function(){return _.Y("div",{class:"ytOfficialCardViewModelExpandedContent"},_.Y(_.rw,{data:function(){return V.data().expandedContents}},{horizontalShelfViewModel:function(T){return _.Y(_.zi,{data:T.data,
sizing:"MINI"})}}),_.Y("div",{class:"ytOfficialCardViewModelCollapseButton"},_.Y(_.rw,{data:function(){return V.data().collapseButton}},{buttonViewModel:function(T){return _.Y(_.Db,{data:T.data,
onClick:function(){H(!I())}})}})))},
else:function(){return _.Y("div",{class:"ytOfficialCardViewModelExpandButton"},_.Y(_.rw,{data:function(){return V.data().expandButton}},{buttonViewModel:function(T){return _.Y(_.Db,{data:T.data,
onClick:function(){H(!I())}})}}))}}))},"Mc"),"yt-official-card-view-model",{props:{data:_.b9,
className:_.b9}});var Tkt=_.FR({buttonViewModel:_.Db});_.m5(Bkt);_.aN(Bkt,"ytw-search-friction-view-model",{propNames:["data"]});_.yY=_.W1(function(V){var l=_.sZ(),I,H=(I=_.F().resolve(_.Cs(_.DA)))==null?void 0:I();_.t0(function(){var T=l.value;var x=new cIa,n=new Map(x.JSC$7171_sanitizerTable.globalAttributePolicies);n.set("style",{policyAction:4});x.JSC$7171_sanitizerTable=new rU(x.JSC$7171_sanitizerTable.allowedElements,x.JSC$7171_sanitizerTable.elementPolicies,x.JSC$7171_sanitizerTable.allowedGlobalAttributes,n,x.JSC$7171_sanitizerTable.globallyAllowedAttributePrefixes);var w=["data-time"];if(w===void 0)n=new Set(x.JSC$7171_sanitizerTable.globallyAllowedAttributePrefixes),
n.add("data-"),x.JSC$7171_sanitizerTable=new rU(x.JSC$7171_sanitizerTable.allowedElements,x.JSC$7171_sanitizerTable.elementPolicies,x.JSC$7171_sanitizerTable.allowedGlobalAttributes,x.JSC$7171_sanitizerTable.globalAttributePolicies,n);else{n=new Set(x.JSC$7171_sanitizerTable.allowedGlobalAttributes);w=_.U(w);for(var N=w.next();!N.done;N=w.next()){N=N.value;if(N.indexOf("data-")!==0)throw Error("qa`"+N);n.add(N)}x.JSC$7171_sanitizerTable=new rU(x.JSC$7171_sanitizerTable.allowedElements,x.JSC$7171_sanitizerTable.elementPolicies,
n,x.JSC$7171_sanitizerTable.globalAttributePolicies,x.JSC$7171_sanitizerTable.globallyAllowedAttributePrefixes)}n=new Set(x.JSC$7171_sanitizerTable.allowedGlobalAttributes);n.add("class");x.JSC$7171_sanitizerTable=new rU(x.JSC$7171_sanitizerTable.allowedElements,x.JSC$7171_sanitizerTable.elementPolicies,n,x.JSC$7171_sanitizerTable.globalAttributePolicies,x.JSC$7171_sanitizerTable.globallyAllowedAttributePrefixes);_.iY(T,_.DEZ(x.build(),U8y(V.text())));nHN(l.value)});
I={};return _.Y("div",null,_.Y("markdown-div",{class:_.ii("ytwMarkdownDivHost",(I.ytwMarkdownDivDark=H,I.ytwMarkdownDivHostSmall=function(){var T;return((T=V.isSmallText)==null?void 0:T.call(V))||!1},I)),
el:l}))},"Nc");
_.yY.idomCompat=!0;var ztE=_.W1(function(V){var l=V.imageData;var I=_.S5(V.isInList,!1),H=function(){return I()?{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 _.Y("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.Y(_.NS,{cond:function(){return l().image},
then:function(T){return _.Y(_.cX,{data:T,alt:function(){return H().alt},
contentMode:function(){return H().contentMode},
targetWidth:function(){return H().targetWidth},
targetHeight:function(){return H().targetHeight},
className:function(){return H().className}})}}),_.Y("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.Y("div",{class:_.ii("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.Y(_.Ni,{text:function(){return l().title}})),_.Y(_.Ks,{each:function(){var T;
return(T=l().description)!=null?T:[]}},function(T){return _.Y("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.Y(t8,{content:T}))})))},"Oc"),y1E=_.W1(function(V){var l=V.list;
var I=function(){var H;return(H=l().items)!=null?H:[]};
return _.Y("div",{class:"ytwGenAiRichTextViewModelListContent"},_.Y(_.NS,{cond:function(){return l().title},
then:function(H){return _.Y("div",{class:_.ii("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.Y(_.Ni,{text:H}))}}),_.Y(_.NS,{cond:function(){return l().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.Y("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.Y(_.Ks,{each:I},function(H){return _.Y("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.Y(t8,{content:H,isInList:!0}))}))}}),_.Y(_.NS,{cond:function(){return l().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.Y("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.Y(_.Ks,{each:I},function(H){return _.Y("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.Y(t8,{content:H,isInList:!0}))}))}}),_.Y(_.NS,{cond:function(){return l().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.Y("div",{class:"ytwGenAiRichTextViewModelImageList"},_.Y(_.Ks,{each:I},function(H){return _.Y("div",{class:"ytwGenAiRichTextViewModelListItem"},_.Y(t8,{content:H,isInList:!0}))}))}}))},"Pc"),tcI=_.W1(function(V){var l=V.table;
return _.Y("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.Y("thead",null,_.Y("tr",null,_.Y(_.Ks,{each:function(){var I,H;return(H=(I=l().header)==null?void 0:I.cells)!=null?H:[]}},function(I){return _.Y("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.Y(_.Ks,{each:function(){return I.contents}},function(H){return _.Y(t8,{content:H})}))}))),_.Y("tbody",null,_.Y(_.Ks,{each:function(){var I;
return(I=l().rows)!=null?I:[]}},function(I){return _.Y("tr",null,_.Y(_.Ks,{each:function(){return I.cells}},function(H){return _.Y("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.Y(_.Ks,{each:function(){return H.contents}},function(T){return _.Y(t8,{content:T})}))}))})))},"Qc"),t8=_.W1(function(V){var l=V.content;
var I=_.S5(V.isInList,!1),H=function(){var T,x;return(x=(T=l().contentBlock)==null?void 0:T.contents)!=null?x:[]};
return _.Y("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.Y(_.NS,{cond:function(){return l().text},
then:function(T){return _.Y(_.Ni,{className:"ytwGenAiRichTextViewModelText",text:T})}}),_.Y(_.NS,{cond:function(){return l().image},
then:function(T){return _.Y(ztE,{imageData:T,isInList:I})}}),_.Y(_.NS,{cond:function(){return l().list},
then:function(T){return _.Y(y1E,{list:T})}}),_.Y(_.NS,{cond:function(){return l().contentBlock},
then:function(){return _.Y("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.Y(_.Ks,{each:H},function(T){return _.Y(t8,{content:T,isInList:!1})}))}}),_.Y(_.NS,{cond:function(){return l().table},
then:function(T){return _.Y(tcI,{table:T})}}))},"Rc"),r1g=_.W1(function(V){var l={};
l=_.l8("ytwGenAiRichTextViewModelHost",(l.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.m_("search_overview_link_style")),l));return _.Y("gen-ai-rich-text-view-model",{class:l},_.Y(t8,{content:function(){return V.data().content}}))},"Sc");_.m5($8N);_.m5(MZ);_.Gwb=_.W1(function(V){var l=V.data;var I=function(){var D;return((D=l().loadingUi)!=null?D:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},H=function(){return l().isLoading&&(I()==="UNSPECIFIED"||I()==="GHOST_CARD")},T=function(){return!l().isLoading},x=function(){return!!l().content&&!l().contents},n=function(){return!!l().contents},w=function(){return!!l().nextQueryButtons},N=function(){return l().isLoading&&I()==="INVISIBLE"},L=function(){var D,Z;
return(Z=(D=l().headerIcon)==null?void 0:D.iconType)!=null?Z:""},e=function(){var D;
return(D=l().content)!=null?D:""},k=function(){return!!l().sourcesSection},X,r=!((X=_.F().resolve(_.Cs(_.DA)))==null||!X()),E=_.Ny(function(){var D=[],Z=l().contents;
if(Z)for(var S=0;S<Z.length;S++){var p=_.y(Z&&Z[S],f03);p&&D.push(p)}return D},void 0,"ycU97e");
_.XW(function(){l().isLoading||_.Z8("so_re",void 0,"search_overview_answer")});
return _.Y("ytd-overview-answer-view-model",{class:function(){var D={};D=(D.ytdOverviewAnswerViewModelHost=!0,D.ytdOverviewAnswerViewModelDarkBackground=r&&!N(),D.ytdOverviewAnswerViewModelLightBackground=!r&&!N(),D);return _.l8(D)}},_.Y(_.NS,{cond:function(){return!N()},
then:function(){return _.Y(_.CN,null,_.Y("h2",null,_.Y("div",{class:"ytdOverviewAnswerViewModelHeader"},_.Y(_.NS,{cond:L,then:function(D){return _.Y("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.Y(_.dq,{icon:D}))}}),_.Y("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.Y("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return l().headerText}),_.Y("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.Y(_.Ni,{text:function(){return l().headerSubtext}}))))),_.Y(_.NS,
{cond:H,
then:function(){return $8N()}}),_.Y(_.NS,{cond:T,
then:function(){return _.Y(_.CN,null,_.Y(_.NS,{cond:x,then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelText"},_.Y(_.yY,{text:e,isSmallText:!0}))}}),_.Y(_.NS,{cond:n,
then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelRichText"},_.Y(_.Ks,{each:E},function(D){return _.Y(r1g,{data:D})}))}}),_.Y(_.NS,{cond:w,
then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.Y(_.rw,{data:function(){return l().nextQueryButtons}},{buttonViewModel:function(D){return _.Y(_.Db,{data:D.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.zi}))}}),_.Y("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.Y("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.Y(_.NS,{cond:function(){return!!_.y(l().likeButtonViewModel,DPg)&&!!_.y(l().dislikeButtonViewModel,Z4N)},
then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.Y(_.BKi,{data:function(){return _.y(l().likeButtonViewModel,DPg)},
disableIconAnimation:!0}),_.Y(_.TKN,{data:function(){return _.y(l().dislikeButtonViewModel,Z4N)}}))}})),_.Y(_.NS,{cond:function(){var D;
return(D=l().sourcesSection)==null?void 0:D.headerText},
then:function(D){return _.Y("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.Y(_.Ni,{text:D}))}})),_.Y(_.NS,{cond:k,
then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelSources"},_.Y(_.rw,{data:function(){var D;return(D=l().sourcesSection)==null?void 0:D.sourcesShelf}},{buttonViewModel:_.Db,
horizontalShelfViewModel:function(D){return _.Y(_.zi,{data:D.data,includeMargin:!0,hasPeek:!0})}}))}}),_.Y(_.NS,{cond:function(){return l().disclaimerText},
then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.Y(_.Ni,{text:function(){return l().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Tc");var ET6=_.W1(function(V){var l=V.data;var I=V.active;var H=_.sZ();_.t0(function(){var T,x,n,w=((T=_.F().resolve(_.Cs(_.DA)))==null?0:T())?(x=l())==null?void 0:x.darkThemeColorPalette:(n=l())==null?void 0:n.lightThemeColorPalette;w&&(w.invertedBackground&&H.value.style.setProperty("--timestamp-active-background-color",_.rP(w.invertedBackground)),w.additiveBackground&&H.value.style.setProperty("--timestamp-background-color",_.rP(w.additiveBackground)),w.textPrimaryInverse&&H.value.style.setProperty("--timestamp-active-color",
_.rP(w.textPrimaryInverse)),w.textSecondary&&H.value.style.setProperty("--timestamp-color",_.rP(w.textSecondary)))},"PUzFSd");
V={};return _.Y("transcript-segment-view-model",{class:_.ii("ytwTranscriptSegmentViewModelHost",(V.ytwTranscriptSegmentViewModelHostActive=I,V.ytwTranscriptSegmentViewModelHostModern=_.z("enable_timeline_view_modern_transcript")||_.z("enable_timeline_view_modern_transcript_fe"),V)),el:H},_.Y(_.NS,{cond:function(){var T;return(T=l())==null?void 0:T.timestamp},
then:function(T){var x={};return _.Y("div",{class:_.ii("ytwTranscriptSegmentViewModelTimestamp",(x.ytwTranscriptSegmentViewModelTimestampActive=I,x))},T)}}),_.Y(_.Ni,{text:function(){var T,x,n;
return(n=(T=l())==null?void 0:T.attributedText)!=null?n:{content:(x=l())==null?void 0:x.simpleText}},
linkInheritColor:!0}))},"Uc");var J1Y=_.W1(function(V){var l=V.data;return _.Y("div",{class:"yt-video-attributes-section-view-model__header"},_.Y("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return l().headerTitle}),_.Y(_.NS,{cond:function(){return l().headerSubtitle},
then:function(){return _.Y("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return l().headerSubtitle})}}))},"Vc"),oT6=_.W1(function(V){function l(E){return Math.max(Math.min(E,0),L()-w())}
var I=V.data;var H=_.sZ(),T=_.sZ();V=_.U(_.xi(0,void 0,"ucDlDf"));var x=V.next().value,n=V.next().value,w=x;V=_.U(_.xi(0,void 0,"lHzSub"));x=V.next().value;var N=V.next().value,L=x;V=_.U(_.xi(0,void 0,"Q8fDIe"));var e=V.next().value,k=V.next().value;_.XW(function(){var E=function(){n(T.value.scrollWidth);N(H.value.clientWidth)};
E();if(window.ResizeObserver){var D=new ResizeObserver(E);D.observe(H.value);_.rx(function(){D.disconnect()})}});
var X=function(){k(l(e()+L()))},r=function(){k(l(e()-L()))};
return _.Y("yt-video-attributes-section-view-model",null,_.Y("div",{class:"yt-video-attributes-section-view-model"},_.Y(_.NS,{cond:function(){return I().headerTitle},
then:function(){return _.Y(J1Y,{data:I})}}),_.Y("div",{class:_.ii("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:H},_.Y("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.na({transform:function(){var E=e();_.h6("HTML_DIR")==="rtl"&&(E*=-1);return"translateX("+E+"px)"}}),
el:T},_.Y(_.rw,{data:function(){return I().videoAttributeViewModels}},{videoAttributeViewModel:a7Z}))),_.Y(_.rw,{data:function(){return I().footerButton}},{buttonViewModel:function(E){return _.Y(_.Db,{data:E.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.Y(_.NS,{cond:function(){return e()<0&&I().previousButton},
then:function(){return _.Y("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.Y(_.rw,{data:function(){return I().previousButton}},{buttonViewModel:function(E){return _.Y(_.Db,{data:E.data,
onClick:X})}}))}}),_.Y(_.NS,{cond:function(){return e()>L()-w()&&I().nextButton},
then:function(){return _.Y("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.Y(_.rw,{data:function(){return I().nextButton}},{buttonViewModel:function(E){return _.Y(_.Db,{data:E.data,
onClick:r})}}))}})))},"Wc");
oT6.idomCompat=!0;var htI=_.W1(function(V){var l=V.data;var I=V.active;var H={},T={};return _.Y("timeline-item-view-model",{class:_.ii("ytwTimelineItemViewModelHost",(H.ytwTimelineItemViewModelHostChapterChild=V.chapterChild,H.ytwTimelineItemViewModelModern=_.z("enable_timeline_view_modern_transcript")||_.z("enable_timeline_view_modern_transcript_fe"),H))},_.Y("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.Y("div",{class:_.ii("ytwTimelineItemViewModelTimestamp",(T.ytwTimelineItemViewModelTimestampActive=
I,T))},function(){return l().timestamp})),_.Y("div",{class:"ytwTimelineItemViewModelContentItems"},_.Y(_.rw,{data:function(){return l().contentItems}},{transcriptSegmentViewModel:function(x){return _.Y(ET6,{data:x.data,
active:I})},
videoAttributesSectionViewModel:oT6})))},"Xc");var PNb=_.W1(function(V){var l=V.data;V={};return _.Y("timeline-chapter-view-model",{class:_.ii("ytwTimelineChapterViewModelHost")},_.Y("div",{class:_.ii("ytwTimelineChapterViewModelTitle",(V.ytwTimelineChapterViewModelModern=_.z("enable_timeline_view_modern_transcript")||_.z("enable_timeline_view_modern_transcript_fe"),V))},function(){return l().title}),_.Y(_.rw,{data:function(){return l().contents}},{timelineItemViewModel:function(I){return _.Y(htI,{data:I.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(I){return _.Y(oT6,{data:I.data})}}))},"Yc");var Dqu=_.W1(function(V){var l=V.data;var I=_.sZ(),H=_.dw(_.yG1,function(){var x;return(x=l().markersEngagementPanelSyncEntityKey)!=null?x:""}),T=function(){var x;
return((x=H())==null?void 0:x.activeItemIndex)===l().index};
V=_.Bu(function(x){var n,w,N,L,e;return _.d(function(k){if(k.nextAddress==1)return x.stopPropagation(),_.FeN(_.cK(x),I.value,["A".toString(),"BUTTON".toString()])?k.return():(n=_.to(l().onTap))?_.K(k,_.I6(),2):k.return();w=k.yieldResult;L=(N=_.y(n,_.vU))==null?void 0:N.startTimeSeconds;L===void 0||(e=w)!=null&&e.seekTo(L,!0);_.FU(k)})});
return _.Y("macro-markers-panel-item-view-model",{class:_.ii("ytwMacroMarkersPanelItemViewModelHost",{"is-active":T}),el:I,"on:click":V,tabindex:0},_.Y(_.rw,{data:function(){var x;return(x=l())==null?void 0:x.item}},{timelineChapterViewModel:function(x){return _.Y(PNb,{data:x.data,
active:T})},
timelineItemViewModel:function(x){return _.Y(htI,{data:x.data,active:T})},
videoAttributeViewModel:a7Z}))},"Zc");
Dqu.idomCompat=!0;_.MR(Dqu,"macro-markers-panel-item-view-model",{props:{data:_.b9}});_.MR(oT6,"yt-video-attributes-section-view-model",{props:{data:_.b9}});var ZKY=_.W1(function(V){var l=function(){var I,H,T;return(T=(I=V.data().leadingLogoAccessibility)==null?void 0:(H=I.accessibilityData)==null?void 0:H.label)!=null?T:""};
return _.Y("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.Y(_.NS,{cond:function(){return V.data().leadingLogo},
then:function(I){return _.Y(_.cX,{className:"ytwFantasySectionHeaderViewModelLogo",data:I,alt:l})}}),_.Y("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.Y(_.Ni,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return V.data().title}}),_.Y(_.Ni,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return V.data().subtitle}})),_.Y(_.rw,{data:function(){return V.data().trailingButton}},{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"$c");var StB=_.W1(function(V){var l={};l=_.ii("ytwFantasyTeamViewModelHost",(l.ytwFantasyTeamViewModelCompact=function(){var T;return!((T=V.compact)==null||!T.call(V))},l.ytwFantasyTeamViewModelUser=function(){return V.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},l.ytwFantasyTeamViewModelOpponent=function(){return V.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},l));
var I=function(){var T,x,n;return(n=(T=V.data().teamLogoAccessibility)==null?void 0:(x=T.accessibilityData)==null?void 0:x.label)!=null?n:""},H=_.dw(rGT,function(){return V.data().teamEntityKey});
return _.Y("ytw-fantasy-team-view-model",{class:l},_.Y(_.NS,{cond:function(){return V.data().teamLogo},
then:function(T){return _.Y(_.cX,{className:"ytwFantasyTeamViewModelLogo",data:T,alt:I})}}),_.Y("div",{class:"ytwFantasyTeamViewModelMetadata"},_.Y("div",{class:"ytwFantasyTeamViewModelHeader"},_.Y(_.Ni,{className:"ytwFantasyTeamViewModelScore",
text:function(){var T;return(T=H())==null?void 0:T.score}}),_.Y(_.dq,{icon:function(){var T;
return(T=H())==null?void 0:T.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.Y(_.Ni,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var T;return(T=H())==null?void 0:T.projectedScore}})),_.Y(_.Ni,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return V.data().primaryText}}),_.Y(_.Ni,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return V.data().secondaryText}}),_.Y(_.Ni,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return V.data().tertiaryText}})),_.Y(_.Ni,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var T;return(T=H())==null?void 0:T.score}}))},"ad");_.MR(_.W1(function(V){return _.Y("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.Y("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.Y(_.rw,{data:function(){return V.data().summaryHeader}},{fantasySectionHeaderViewModel:ZKY})),_.Y(_.rw,{data:function(){return V.data().userTeam}},{fantasyTeamViewModel:StB}),_.Y(_.rw,{data:function(){return V.data().opponentTeam}},{fantasyTeamViewModel:StB}))},"bd"),"fantasy-league-summary-view-model",{props:{data:_.b9}});var RtE=_.W1(function(V){var l=_.Rj(V,{shape:{},useCustomTabRenderable:!1}),I=l.shape;l=l.useCustomTabRenderable;var H=V.customTabRenderable,T=function(){return I().disabled},x=function(){return I().selected},n=function(){return I().title},w=_.sZ();
V=_.Bu(function(e){var k;if(!T()&&((k=I().aTagConfig)==null?0:k.onclick))I().aTagConfig.onclick(e);return!1});
var N=_.Bu(function(e){if(e.key==="Enter"||e.key==="ArrowUp"||e.key==="ArrowDown")e.preventDefault(),w.value.click();return!1}),L={};
return _.Y("yt-tab-shape",{class:_.ii("yt-tab-shape-wiz",function(){return I().className},(L["yt-tab-shape-wiz__tab--last-tab"]=function(){return I().isLastTab},L["yt-tab-shape-wiz--host-disabled"]=T,L["yt-tab-shape-wiz--host-clickable"]=!H,L)),
role:H?void 0:"tab","aria-selected":x!=null?x:!1,"aria-disabled":T,tabindex:H?void 0:0,"on:click":V,"on:keydown":N,el:w,"tab-identifier":function(){return I().identifier},
"tab-title":n},_.Y(_.NS,{cond:l,then:function(){return H()},
else:function(){var e={},k={};return _.Y(_.CN,null,_.Y("div",{class:_.ii("yt-tab-shape-wiz__tab",(e["yt-tab-shape-wiz__tab--tab-selected"]=x,e))},n),_.Y("div",{class:_.ii("yt-tab-shape-wiz__tab-bar",(k["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=x,k))}))}}))},"cd");
RtE.idomCompat={callbacks:{customTabRenderable:!0}};_.c1u=_.W1(function(V){var l=V.shape;V=_.U(_.xi(48,void 0,"S7XsSd"));var I=V.next().value,H=V.next().value;V=_.U(_.xi(0,void 0,"CzMxb"));var T=V.next().value,x=V.next().value,n=function(){return l().tabs},w=_.sZ(),N=function(){var L,e;
return(e=(L=n())==null?void 0:L.findIndex(function(k){return k.selected}))!=null?e:-1};
_.XW(function(){var L=w.value.querySelectorAll("yt-tab-shape"),e=N()>-1?L[N()]:void 0;requestAnimationFrame(function(){H((e==null?void 0:e.getBoundingClientRect().width)||0)})});
_.t0(function(){var L=N();requestAnimationFrame(function(){var e=w.value.querySelectorAll("yt-tab-shape"),k;H(((k=L>-1?e[L]:void 0)==null?void 0:k.getBoundingClientRect().width)||0);for(var X=k=0;X<L;X++)k+=e[X].offsetWidth+24;_.h6("HTML_DIR")==="rtl"&&(k=-k);x(k)})});
V={};return _.Y("yt-tab-group-shape",{class:_.ii("yt-tab-group-shape-wiz",(V["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return l().isOverflowHidden},V)),
el:w},_.Y(_.NS,{cond:n,then:function(L){return _.Y(_.CN,null,_.Y("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.Y(_.Ks,{each:L},function(e,k){return _.Y(RtE,{shape:function(){return Object.assign({},e,{isLastTab:k()===L().length-1})},
customTabRenderable:e.customTabRenderable,useCustomTabRenderable:!!e.customTabRenderable})})),_.Y(Q1P,{width:I,
sliderOffset:T}))}}))},"dd");
_.c1u.idomCompat=!0;var Q1P=_.W1(function(V){var l=_.S5(V.sliderOffset,0),I=V.width;return _.Y("div",{class:"yt-tab-group-shape-wiz__slider",style:_.na({width:function(){return I()+"px"},
transform:function(){return"translateX("+l()+"px)"}})})},"ed");var W3Y=_.W1(function(V){var l=function(){var x,n,w;return(w=(x=V.data().playerLogoAccessibility)==null?void 0:(n=x.accessibilityData)==null?void 0:n.label)!=null?w:""},I=_.dw(GBw,function(){return V.data().playerEntityKey}),H={};
H=_.ii("ytwFantasyPlayerViewModelHost",(H.ytwFantasyPlayerViewModelPlaying=function(){var x;return!((x=I())==null||!x.isPlayerPlaying)},H.ytwFantasyPlayerViewModelOnField=function(){var x;
return((x=I())==null?void 0:x.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},H.ytwFantasyPlayerViewModelRedZone=function(){var x;
return((x=I())==null?void 0:x.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},H));
var T=function(){var x,n,w,N=((x=_.F().resolve(_.Cs(_.DA)))==null?0:x())?(n=V.data().playerLogoBackgroundColor)==null?void 0:n.darkTheme:(w=V.data().playerLogoBackgroundColor)==null?void 0:w.lightTheme;return N===void 0?"":_.rP(N)};
return _.Y("ytw-fantasy-player-view-model",{class:H},_.Y(_.NS,{cond:function(){return V.data().playerLogo},
then:function(x){return _.Y("div",{class:"ytwFantasyPlayerViewModelLogo"},_.Y("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.Y(_.cX,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.na({"background-color":T}),data:x,alt:l})),_.Y("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.Y(_.dq,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.Y("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.Y("div",{class:"ytwFantasyPlayerViewModelHeader"},_.Y(_.Ni,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var x;return(x=V.data())==null?void 0:x.playerNameText}}),_.Y(_.Ni,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var x;return(x=V.data())==null?void 0:x.playerDescriptionText}})),_.Y("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Y(_.Ni,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var x;return(x=I())==null?void 0:x.gamePeriodText}}),_.Y(_.Ni,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var x;return(x=V.data())==null?void 0:x.opponentTeamText}}),_.Y(_.Ni,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var x;return(x=I())==null?void 0:x.gameStatusText}}),_.Y(_.Ni,{className:_.ii("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var x;return(x=I())==null?void 0:x.playerStatusText}})),_.Y("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Y(_.Ni,{text:function(){var x;
return(x=I())==null?void 0:x.playerStatsText}}))),_.Y(_.Ni,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var x;return(x=I())==null?void 0:x.fantasyScore}}))},"fd");var bKY=_.W1(function(V){return _.Y("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.Y(_.NS,{cond:function(){return V.data().players},
then:function(l){return _.Y(_.rw,{data:l},{fantasyPlayerViewModel:W3Y})}}))},"gd");var qt2=_.W1(function(V){var l=_.U(_.Ux(function(){var T;return(T=V.data().selectedTabIdentifierKey)!=null?T:""})),I=l.next().value,H=l.next().value;
_.kG(function(){var T;(T=V.setSelectedTabSignal)==null||T.call(V,I)});
return _.Y("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.Y("div",{class:"ytTabbedViewModelTabGroup"},_.Y(_.c1u,{shape:function(){var T=V.data(),x=[],n={tabs:x};if(!T.tabs)return n;T=_.U(T.tabs);for(var w=T.next(),N={};!w.done;N={tabViewModel:void 0},w=T.next())if(N.tabViewModel=_.y(w.value,uci),N.tabViewModel){var L=w=void 0;x.push({aTagConfig:{onclick:function(e){return function(){var k;H((k=e.tabViewModel.tabIdentifier)!=null?k:"")}}(N)},
identifier:N.tabViewModel.tabIdentifier,selected:I()===N.tabViewModel.tabIdentifier,title:(L=(w=N.tabViewModel.title)==null?void 0:w.content)!=null?L:""})}return n}})),_.Y(_.rw,{data:function(){var T,x=_.U((T=V.data().tabs)!=null?T:[]);
for(T=x.next();!T.done;T=x.next())if((T=_.y(T.value,uci))&&T.tabIdentifier===I())return T.content}},{fantasyRosterViewModel:bKY}))},"hd");_.MR(_.W1(function(V){var l=_.U(d81()),I=l.next().value,H=l.next().value;return _.Y("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.Y(_.Ni,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return V.data().title}}),_.Y(_.NS,{cond:function(){return V.data().tabbedViewModel},
then:function(T){return _.Y(_.rw,{data:T},{tabbedViewModel:function(x){return _.Y(qt2,{data:x.data,setSelectedTabSignal:H})}})}}),_.Y(_.NS,{cond:function(){var T,x=(T=_.y(V.data().tabbedViewModel,vgN))==null?void 0:T.tabs;
T=_.y(x==null?void 0:x[0],uci);x=_.y(x==null?void 0:x[1],uci);var n=T==null?void 0:T.tabIdentifier;if(I()===n){var w,N;if(!((w=_.y(T==null?void 0:T.content,UOB))==null?0:(N=w.players)==null?0:N.length))return V.data().noUserTeamPlayersText}else{var L,e;if(!((L=_.y(x==null?void 0:x.content,UOB))==null?0:(e=L.players)==null?0:e.length))return V.data().noOpponentTeamPlayersText}},
then:function(T){return _.Y(_.Ni,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:T})}}))},"id"),"ytw-fantasy-matchup-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){return _.Y("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.Y(_.Ni,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return V.data().title}}),_.Y(_.NS,{cond:function(){return V.data().matchupTeamPairs},
then:function(l){return _.Y(_.Ks,{each:l,keyBy:"INDEX"},function(I){return _.Y("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.Y(_.rw,{data:function(){return[I().firstTeam,I().secondTeam]}},{fantasyTeamViewModel:function(H){return _.Y(StB,{data:H.data,
compact:!0})}}))})}}))},"jd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=function(){var T,x,n;return(n=(T=V.data().userLogoAccessibility)==null?void 0:(x=T.accessibilityData)==null?void 0:x.label)!=null?n:""},I=function(){var T,x,n;
return(n=(T=V.data().opponentLogoAccessibility)==null?void 0:(x=T.accessibilityData)==null?void 0:x.label)!=null?n:""},H=_.dw(tZt,function(){return V.data().entityKey});
return _.Y("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.Y("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.Y(_.NS,{cond:function(){return V.data().userLogo},
then:function(T){return _.Y(_.cX,{className:"ytwFantasyWinProbabilityViewModelLogo",data:T,alt:l})}}),_.Y("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.Y(_.Ni,{text:function(){return V.data().title}})),_.Y(_.NS,{cond:function(){return V.data().opponentLogo},
then:function(T){return _.Y(_.cX,{className:"ytwFantasyWinProbabilityViewModelLogo",data:T,alt:I})}})),_.Y("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.Y("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Y(_.Ni,{text:function(){var T;
return(T=H())==null?void 0:T.userWinNumberLabel}})),_.Y("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.Y("div",{class:_.ii("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.na({flex:function(){var T,x;return(x=(T=H())==null?void 0:T.userWinNumber)!=null?x:50}})}),_.Y("div",{class:_.ii("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.na({flex:function(){var T,x;return(x=(T=H())==null?void 0:T.opponentWinNumber)!=null?x:50}})})),_.Y("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Y(_.Ni,{text:function(){var T;
return(T=H())==null?void 0:T.opponentWinNumberLabel}}))))},"kd"),"fantasy-win-probability-view-model",{props:{data:_.b9}});_.yN("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Mcu=function(){var V=_.M.apply(this,arguments)||this;V.darkerPanels=_.z("web_watch_darker_panels");V.commentsHidePanelButton=!1;V.isWatchGrid=!1;V.continuationShowButton=!1;V.isSearch=!1;V.isConstrainedList=!1;V.isWatch=!1;V.eligibleToSwitchToGrid=!1;V.epRestyle=!1;V.isCarouselInFeed=!0;V.topSpacingZero=!1;V.continuationIsInitialLoad=!0;V.enableSqueezebackPanels=_.z("web_shorts_enable_squeezeback_panels");V.enableAnchoredPanel=_.z("desktop_shorts_v2_anchored_panel");V.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};V.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return V};
_.t(Mcu,_.M);_.B=Mcu.prototype;_.B.updateLockupContainerTypes=function(V){if(this.eligibleToSwitchToGrid){var l;(l=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||l.forEach(function(I){I.containerType=V})}};
_.B.getItemsPath=function(){return"data.contents"};
_.B.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.B.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.z("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.z("kevlar_low_priority_continuation")}}};
_.B.created=function(){this.JSC$14368_cachedViewportHeight=_.h6("initialInnerHeight")||window.innerHeight};
_.B.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var V=_.h(this.hostElement).querySelector("ytd-comments-header-renderer");V&&(V.hidePanelButton=this.commentsHidePanelButton)}};
_.B.onRetrieveLocation=function(V,l){this.containsComments()&&(this.firstCommentsLoaded=l.hasComments=!0)};
_.B.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.B.onLoadReloadContinuation=function(V,l){var I=this;V.stopPropagation();this.isReloading=!0;_.B$(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(H){var T=_.F().resolve(_.kV);H=l(H);T.postData(H).then(function(x){I.onReloadContinuationData(x)})}})};
_.B.onReloadContinuationData=function(V){if(V=this.get("response.continuationContents.itemSectionContinuation",V)||this.get("response.contents.itemSectionRenderer",V)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",V)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",V))this.set("data.contents",V.contents||V.results),V.header&&this.set("data.header",V.header),this.set("data.continuations",
V.continuations||[]);this.isReloading=!1};
_.B.computeContentsClass=function(V){return V?"reloading":""};
_.B.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.B.computeSectionIdentifier=function(V){return V==null?void 0:V.sectionIdentifier};
_.B.computeFitContainer=function(V){return(V==null?void 0:V.sectionIdentifier)==="youchat-item-section"};
_.B.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.z("kevlar_disable_comments_auto_load")};
_.B.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.B.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.B.computeHasDestinationShelfRenderer=function(V){var l,I;return!!(V==null?0:(l=V.contents)==null?0:(I=l[0])==null?0:I.destinationShelfRenderer)};
_.B.computeHasSectionGroupViewModel=function(V){var l,I;return!!(V==null?0:(l=V.contents)==null?0:(I=l[0])==null?0:I.sectionGroupViewModel)};
_.B.computeStaticCommentsHeader=function(V){return V&&this.containsComments()};
_.B.computeEpRestyle=function(V){return _.z("web_ep_restyling")&&V&&this.containsComments()};
_.B.computeIsContinuationCommentSection=function(V){return(V==null?void 0:V.targetId)==="shorts-engagement-panel-comments-section"||(V==null?void 0:V.targetId)==="comments-section"};
_.B.computeSuppressPaddingDisclaimer=function(){var V,l,I,H;return!!((V=this.data)==null?0:(l=V.contents)==null?0:(I=l[0])==null?0:(H=I.productListHeaderRenderer)==null?0:H.suppressPaddingDisclaimer)};
_.B.computeHeaderStyle=function(V){switch(V==null?void 0:V.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.B.dataChanged=function(){this.firstCommentsLoaded=!1};
_.B.observeDataContentsLength=function(){var V,l;((V=this.data)==null?0:(l=V.contents)==null?0:l.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.B.onYtDismissibleItemDismissedChange=function(V){this._setItemDismissed(V.type==="yt-dismissible-item-dismissed")};
_.B.triggerContinuations=function(){for(var V=_.h(this.hostElement).querySelector("#continuations").children,l=0;l<V.length;l++)V[l].trigger()};
_.B.triggerInitialContinuations=function(){for(var V=_.h(this.hostElement).querySelector("#continuations").children,l=0;l<V.length;l++)V[l].triggerIfNotPreviouslyTriggered()};
_.B.handleYtItemSectionContinuation=function(V,l){var I;l&&((I=this.data)==null?void 0:I.sectionIdentifier)!==l||(this.set("data.continuations",[V]),this.triggerContinuations())};
_.B.handleYtItemSectionReplace=function(V,l){var I;l&&((I=this.data)==null?void 0:I.sectionIdentifier)!==l||(this.set("data.contents",V),this.set("data.continuations",[]))};
_.B.computeUseHeightHack=function(V){return V&&!_.z("kevlar_disable_height_hack")};
_.B.computeTopSpacingZero=function(V){return V};
_.B.continuationShowButtonChanged=function(){var V=_.h(this.hostElement).querySelector("ytd-continuation-item-renderer");V&&(V.showButton=this.continuationShowButton)};
_.B.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("data-changed",this.data))};
_.vI.Object.defineProperties(Mcu.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.z("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 V,l,I;return!!((V=this.data)==null?0:(l=V.contents)==null?0:(I=l[0])==null?0:I.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H,T,x,n;return!!((V=this.data)==null?0:(l=V.contents)==null?0:(I=l[0])==null?0:(H=I.shelfRenderer)==null?0:(T=H.content)==null?0:(x=T.gridRenderer)==null?0:(n=x.targetId)==null?0:n.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return!!((V=this.data)==null?0:(l=V.contents)==null?0:(I=l[0])==null?0:I.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return!!((V=this.data)==null?0:(l=V.contents)==null?0:(I=l[0])==null?0:I.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.m_("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.z("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.z("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14368_cachedViewportHeight-130)/150)},
set:function(){}}});
var ry=Mcu;ry.prototype.dataChangedForBinding=ry.prototype.dataChangedForBinding;ry.prototype.continuationShowButtonChanged=ry.prototype.continuationShowButtonChanged;ry.prototype.onYtDismissibleItemDismissedChange=ry.prototype.onYtDismissibleItemDismissedChange;ry.prototype.observeDataContentsLength=ry.prototype.observeDataContentsLength;ry.prototype.dataChanged=ry.prototype.dataChanged;ry.prototype.onServiceRequestCompleted=ry.prototype.onServiceRequestCompleted;
ry.prototype.onLoadReloadContinuation=ry.prototype.onLoadReloadContinuation;ry.prototype.onRetrieveLocation=ry.prototype.onRetrieveLocation;ry.prototype.commentsHidePanelButtonChanged=ry.prototype.commentsHidePanelButtonChanged;ry.prototype.updateLockupContainerTypes=ry.prototype.updateLockupContainerTypes;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ry.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.lL.YtLazyListBehavior),_.a("design:type",Object)],ry.prototype,"ytLazyListBehavior",void 0);_.O([_.R(_.Vi.YtNextContinuationBehavior),_.a("design:type",Object)],ry.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.R(_.i6),_.a("design:type",Object)],ry.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ry.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],ry.prototype,"ytdReduxBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ry.prototype,"darkerPanels",void 0);_.O([_.q(),_.a("design:type",Object)],ry.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Boolean)],ry.prototype,"engagementPanel",void 0);_.O([_.q(),_.a("design:type",Object)],ry.prototype,"commentsHidePanelButton",void 0);_.O([_.q(),_.a("design:type",Object)],ry.prototype,"isWatchGrid",void 0);_.O([_.q(),_.a("design:type",Object)],ry.prototype,"continuationShowButton",void 0);_.O([_.q({computed:"computeIsContinuationCommentSection(data)"}),_.a("design:type",Boolean)],ry.prototype,"continuationIsCommentsSection",void 0);
_.O([_.q({value:!0}),_.a("design:type",Boolean)],ry.prototype,"autoFill",void 0);_.O([_.q(),_.a("design:type",Boolean)],ry.prototype,"continuationDisablePrescanVisibility",void 0);_.O([_.q(),_.a("design:type",Boolean)],ry.prototype,"isReloading",void 0);_.O([_.q(),_.a("design:type",Object)],ry.prototype,"isSearch",void 0);_.O([_.q(),_.a("design:type",Object)],ry.prototype,"isConstrainedList",void 0);_.O([_.q(),_.a("design:type",Object)],ry.prototype,"isWatch",void 0);
_.O([_.q(),_.a("design:type",Object)],ry.prototype,"eligibleToSwitchToGrid",void 0);_.O([_.q({selector:_.SM}),_.a("design:type",Object)],ry.prototype,"isGridViewEnabled",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.a("design:type",Object)],ry.prototype,"epRestyle",void 0);_.O([_.Q("isWatch"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ry.prototype,"hideShortsShelfHeader",null);
_.O([_.Q("isSearch","isWatch"),_.a("design:type",String),_.a("design:paramtypes",[])],ry.prototype,"thumbnailWidth",null);_.O([_.Q("isSearch","isWatch"),_.a("design:type",String),_.a("design:paramtypes",[])],ry.prototype,"sizing",null);_.O([_.Q("isWatch","isGridViewEnabled","data"),_.q({reflectToAttribute:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],ry.prototype,"lockupContainerType",null);
_.O([_.b("lockupContainerType","data"),_.a("design:type",Function),_.a("design:paramtypes",[Number]),_.a("design:returntype")],ry.prototype,"updateLockupContainerTypes",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],ry.prototype,"pageSubtype",void 0);_.O([_.q({computed:"computeContainerWidth()"}),_.a("design:type",Number)],ry.prototype,"containerWidth",void 0);_.O([_.q(),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ry.prototype,"isPlaylist",null);
_.O([_.q(),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ry.prototype,"isClipList",null);_.O([_.q(),_.a("design:type",Object)],ry.prototype,"isCarouselInFeed",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ry.prototype,"isPlaylistVideoContainer",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ry.prototype,"isSearchFrictionPage",null);
_.O([_.q({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.a("design:type",Boolean)],ry.prototype,"useHeightHack",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.a("design:type",Object)],ry.prototype,"topSpacingZero",void 0);_.O([_.q({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.a("design:type",Boolean)],ry.prototype,"showButton",void 0);
_.O([_.q(),_.a("design:type",Boolean)],ry.prototype,"firstCommentsLoaded",void 0);_.O([_.q(),_.a("design:type",Object)],ry.prototype,"continuationIsInitialLoad",void 0);_.O([_.q(),_.a("design:type",Boolean)],ry.prototype,"isSearchDova",void 0);_.O([_.q({reflectToAttribute:!0,readOnly:!0}),_.a("design:type",Boolean)],ry.prototype,"itemDismissed",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.a("design:type",String)],ry.prototype,"sectionIdentifier",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.a("design:type",String)],ry.prototype,"fitContainer",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.a("design:type",Boolean)],ry.prototype,"hasDestinationShelfRenderer",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.a("design:type",Boolean)],ry.prototype,"staticCommentsHeader",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ry.prototype,"enableSqueezebackPanels",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ry.prototype,"enableAnchoredPanel",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.a("design:type",Boolean)],ry.prototype,"hasSectionGroupViewModel",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.a("design:type",Boolean)],ry.prototype,"suppressDisclaimerSeparator",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.a("design:type",String)],ry.prototype,"headerStyle",void 0);_.O([_.Q("isSearch"),_.a("design:type",Object),_.a("design:paramtypes",[])],ry.prototype,"lockupExperiments",null);
_.O([_.Q("isSearch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ry.prototype,"typographyBump",null);_.O([_.Ij("#header"),_.a("design:type",HTMLElement)],ry.prototype,"header",void 0);_.O([_.b("commentsHidePanelButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ry.prototype,"commentsHidePanelButtonChanged",null);
_.O([_.W("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],ry.prototype,"onRetrieveLocation",null);_.O([_.W("yt-load-reload-continuation"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Function]),_.a("design:returntype")],ry.prototype,"onLoadReloadContinuation",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ry.prototype,"onServiceRequestCompleted",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ry.prototype,"dataChanged",null);_.O([_.xs("data.contents.length"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ry.prototype,"observeDataContentsLength",null);
_.O([_.W("yt-dismissible-item-dismissed"),_.W("yt-dismissible-item-undismissed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ry.prototype,"onYtDismissibleItemDismissedChange",null);_.O([_.b("continuationShowButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ry.prototype,"continuationShowButtonChanged",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ry.prototype,"dataChangedForBinding",null);ry=_.O([_.A({is:"ytd-item-section-renderer",disableElementRegistration:!0})],ry);
_.u(ry,"ytd-item-section-renderer",function(){if(Bh0!==void 0)return Bh0;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Bh0=V},{mode:1});var s1g;var YvK=_.pW(_.LT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var wr3={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var pyQ={},jdN=(pyQ[0]={title:_.iJ(_.LT("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iJ(_.LT("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:g6("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},pyQ[1]={title:_.iJ(_.LT("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:g6("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},pyQ);_.yN("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Gi=function(){var V=_.M.apply(this,arguments)||this;V.allVideosCount=0;V.allPlaylistCount=0;V.shouldRenderDownloadsBanner=!1;V.hasOptedIntoSmartDownloads=!1;V.areAllSmartDownloadsDeleted=!1;V.smartDownloadsCompleted=!1;return V};
_.t(Gi,_.M);Gi.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Gi.prototype.attached=function(){this.downloadsToRenderChanged()};
Gi.prototype.detached=function(){this.set("renderableData",{})};
Gi.prototype.downloadsToRenderChanged=function(){var V=_.v4().getState().entities,l=_.rJ(V),I=_.z("kevlar_playlist_dl_page_killswitch")?ytJ(V):_.GV(V),H=_.ed3(V),T=_.F3(l);V=_.El(V);this.set("renderableData",e01(I,l,H,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,T,V))};
var EF=Gi;EF.prototype.downloadsToRenderChanged=EF.prototype.downloadsToRenderChanged;_.O([_.R(_.DS),_.a("design:type",Object)],EF.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],EF.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],EF.prototype,"renderableData",void 0);_.O([_.q({selector:_.Q7T}),_.a("design:type",Object)],EF.prototype,"allVideosCount",void 0);_.O([_.q({selector:bfN}),_.a("design:type",Object)],EF.prototype,"allPlaylistCount",void 0);_.O([_.q({selector:_.pVt}),_.a("design:type",Object)],EF.prototype,"shouldRenderDownloadsBanner",void 0);_.O([_.q({selector:_.Att}),_.a("design:type",Object)],EF.prototype,"hasOptedIntoSmartDownloads",void 0);
_.O([_.q({selector:_.uc1}),_.a("design:type",Object)],EF.prototype,"areAllSmartDownloadsDeleted",void 0);_.O([_.q({selector:vgt}),_.a("design:type",Object)],EF.prototype,"smartDownloadsCompleted",void 0);_.O([_.xs("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EF.prototype,"downloadsToRenderChanged",null);
EF=_.O([_.A({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],EF);
_.u(EF,"ytd-offline-item-section-renderer",function(){if(s1g!==void 0)return s1g;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return s1g=V},
{mode:1});var A1r;var uJg;var vTY=function(){return _.M.apply(this,arguments)||this};
_.t(vTY,_.M);
vTY.prototype.onDataChanged=function(){if(this.JSC$14394_lastData){var V=this.getFilterClass(this.JSC$14394_lastData.status);V&&this.hostElement.classList.remove(V)}var l;(V=this.getFilterClass((l=this.data)==null?void 0:l.status))&&this.hostElement.classList.add(V);V==="selected"?_.h(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.h(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");V==="disabled"?_.h(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.h(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14394_lastData=this.data};
vTY.prototype.getFilterClass=function(V){switch(V){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
var J8=vTY;J8.prototype.onDataChanged=J8.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],J8.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],J8.prototype,"onDataChanged",null);J8=_.O([_.A({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],J8);
_.u(J8,"ytd-search-filter-renderer",function(){if(uJg!==void 0)return uJg;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return uJg=V},{mode:_.Cm("kevlar_poly_si_batch_j075")?1:2});var OKQ=function(){return _.M.apply(this,arguments)||this};
_.t(OKQ,_.M);var or=OKQ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],or.prototype,"data",void 0);or=_.O([_.A({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],or);
_.u(or,"ytd-search-filter-group-renderer",function(){if(A1r!==void 0)return A1r;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return A1r=V},{mode:_.Cm("kevlar_poly_si_batch_j075")?1:2});var CNE;var h8=function(){return _.M.apply(this,arguments)||this};
_.t(h8,_.M);h8.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.KD());this.isCollapsed=!this.isCollapsed};
h8.prototype.navigateToAboutTheseResultsPage=function(){var V=DC("https://www.youtube.com/howyoutubeworks/product-features/search/");V?_.uY(window,V,"_blank"):_.Dp(Error("Th"))};
h8.prototype.dataChanged=function(){this.isCollapsed=!0};
h8.prototype.computeShowBottomBorder=function(){var V,l,I;return!!((V=this.data)==null?0:(l=V.button)==null?0:l.toggleButtonRenderer)||!((I=this.data)==null||!I.aboutTheseResultsButton)};
var PC=h8;PC.prototype.dataChanged=PC.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],PC.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.a("design:type",Boolean)],PC.prototype,"showBottomBorder",void 0);_.O([_.q(),_.a("design:type",Boolean)],PC.prototype,"renderCollapsibleMenu",void 0);
_.O([_.q(),_.a("design:type",Boolean)],PC.prototype,"isCollapsed",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PC.prototype,"dataChanged",null);PC=_.O([_.A({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],PC);
_.u(PC,"ytd-search-sub-menu-renderer",function(){if(CNE!==void 0)return CNE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return CNE=V},{mode:1});var agh;var fgY=new _.Vr("SECTION_LIST_RENDERER_TOKEN");var gTu;var mqh=function(){return _.M.apply(this,arguments)||this};
_.t(mqh,_.M);mqh.prototype.computeStyle=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
var Dc=mqh;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Dc.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],Dc.prototype,"headerStyle",void 0);Dc=_.O([_.A({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Dc);
_.u(Dc,"ytd-text-header-renderer",function(){if(gTu!==void 0)return gTu;var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return gTu=V},{mode:1});var iKb;var VoV=function(){return _.M.apply(this,arguments)||this};
_.t(VoV,_.M);var Zc=VoV;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Zc.prototype,"data",void 0);Zc=_.O([_.A({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Zc);
_.u(Zc,"ytd-minor-moment-header-renderer",function(){if(iKb!==void 0)return iKb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return iKb=V},{mode:1});var lvP;var IvE=function(){return _.M.apply(this,arguments)||this};
_.t(IvE,_.M);var Sx=IvE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Sx.prototype,"data",void 0);Sx=_.O([_.A({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Sx);
_.u(Sx,"ytd-minor-moment-setting-alert-renderer",function(){if(lvP!==void 0)return lvP;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return lvP=V},{mode:1});var HZE;var TbE;var BbE=function(){var V=_.M.apply(this,arguments)||this;V.booleanSettingById=!1;V.smartDownloadsEnabledVE=_.eU(128287);V.smartDownloadsDisabledVE=_.eU(128286);V.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return V};
_.t(BbE,_.M);_.B=BbE.prototype;_.B.attachSmartDownloadsSettingVes=function(){var V;this.activeVeForLogging||((V=this.data)==null?void 0:V.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Ug(_.x7(),this.smartDownloadsEnabledVE),_.Ug(_.x7(),this.smartDownloadsDisabledVE))};
_.B.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.B$(this.hostElement,"yt-settings-switch-ready")};
_.B.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.B.onSwitchChange=function(V){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(V=_.qv(V).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.z("kevlar_settings_switch_resolve_command_killswitch")?_.z("web_ytd_settings_switch_renderer_command_resolver_ks")?_.$B(this.hostElement,[V]):_.F().resolve(_.aw).resolveCommand(V,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(V)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.B.handleUpdateSettingsSwitch=function(V){(V=_.y(V,JuZ))&&this.data&&this.data.id===V.id&&this.set("data.enabled",!!V.enabled)};
_.B.onToggleSettingsSwitch=function(V,l){this.data&&this.data.id===V&&this.set("data.enabled",l!=null?l:!this.data.enabled)};
_.B.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.f7.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.B.maybeLogSmartDownloadsSettingVisibility=function(){var V=_.oa(),l;V&&((l=this.data)==null?void 0:l.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.pT(V,[this.smartDownloadsEnabledVE]),_.Ac(V,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.pT(V,[this.smartDownloadsDisabledVE]),_.Ac(V,[this.smartDownloadsEnabledVE])))};
_.B.maybeLogSmartDownloadsSettingClick=function(){var V;((V=this.data)==null?void 0:V.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.$g(_.x7(),this.activeVeForLogging)};
_.B.updateDataEnabledFromBinding=function(V){this.set("data.enabled",V.detail.value)};
_.vI.Object.defineProperties(BbE.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var V=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!V&&(V=this.ytRendererBehavior.getSimpleString(this.data.title));return V}}});
var Rr=BbE;Rr.prototype.dataChanged=Rr.prototype.dataChanged;_.O([_.R(_.DS),_.a("design:type",Object)],Rr.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Rr.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Rr.prototype,"ytComponentBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],Rr.prototype,"data",void 0);_.O([_.q({selector:function(V,l){if(Object.keys(V==null?void 0:V.entities).length)switch(l){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return tlg(V.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.a("design:type",Object)],Rr.prototype,"booleanSettingById",void 0);_.O([_.q(),_.a("design:type",_.EA)],Rr.prototype,"activeVeForLogging",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Rr.prototype,"toggleAriaLabel",null);_.O([_.xs("data"),_.xs("booleanSettingById"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rr.prototype,"dataChanged",null);
Rr=_.O([_.A({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Rr);
_.u(Rr,"ytd-settings-switch-renderer",function(){if(TbE!==void 0)return TbE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return TbE=V},{mode:1});var xNQ=function(){return _.M.apply(this,arguments)||this};
_.t(xNQ,_.M);xNQ.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}}}}};
_.vI.Object.defineProperties(xNQ.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var V=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(V+=" remove-left-margin");this.data.extraBottomSpace&&(V+=" extra-bottom-space");return V}}});
var QY=xNQ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],QY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],QY.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],QY.prototype,"contentsClassName",null);QY=_.O([_.A({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],QY);
_.u(QY,"ytd-minor-moment-setting-section-renderer",function(){if(HZE!==void 0)return HZE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return HZE=V},{mode:1});var UNE;var nJI=function(){return _.M.apply(this,arguments)||this};
_.t(nJI,_.M);var cC=nJI;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],cC.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],cC.prototype,"data",void 0);cC=_.O([_.A({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],cC);
_.u(cC,"ytd-empty-product-details-renderer",function(){if(UNE!==void 0)return UNE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return UNE=V},{mode:1});var $N6;var dNE;var wwV=function(){var V=_.M.apply(this,arguments)||this;V.expanded=!0;return V};
_.t(wwV,_.M);wwV.prototype.getBadgeRowClass=function(V,l,I){for(var H=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),T=H.next();!T.done;T=H.next())T.value.onShow();V=V.selected;return I?V!==-1?V===l?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(V!==void 0?V:0)===l?"badge-line":"badge-hidden"};
var WC=wwV;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],WC.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],WC.prototype,"expanded",void 0);WC=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],WC);
_.u(WC,"ytd-sponsorships-loyalty-badges-renderer",function(){if(dNE!==void 0)return dNE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return dNE=V},{mode:1});var Nb2;var KWb=function(){var V=_.M.apply(this,arguments)||this;V.expanded=!0;return V};
_.t(KWb,_.M);KWb.prototype.getContainerClasses=function(V,l){V=V?"expanded":"collapsed";l&&(V+=" item");return V};
var bh=KWb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],bh.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],bh.prototype,"expanded",void 0);bh=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],bh);
_.u(bh,"ytd-sponsorships-perk-renderer",function(){if(Nb2!==void 0)return Nb2;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Nb2=V},{mode:1});var jib;var YNY=function(){var V=_.M.apply(this,arguments)||this;V.expanded=!0;return V};
_.t(YNY,_.M);var qw=YNY;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],qw.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],qw.prototype,"expanded",void 0);qw=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],qw);
_.u(qw,"ytd-sponsorships-perks-renderer",function(){if(jib!==void 0)return jib;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return jib=V},{mode:1});var Mw=function(){var V=_.M.apply(this,arguments)||this;V.isCollapsed=!1;return V};
_.t(Mw,_.M);Mw.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Mw.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Mw.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var V;this.expandCollapseButton=_.y((V=this.data)==null?void 0:V.expandButton,_.RG)}else{var l;this.expandCollapseButton=_.y((l=this.data)==null?void 0:l.collapseButton,_.RG)}};
var sF=Mw;sF.prototype.updateExpandCollapseButton=sF.prototype.updateExpandCollapseButton;sF.prototype.onDataChanged=sF.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],sF.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],sF.prototype,"isCollapsed",void 0);_.O([_.q(),_.a("design:type",Object)],sF.prototype,"expandCollapseButton",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sF.prototype,"onDataChanged",null);_.O([_.xs("data","isCollapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sF.prototype,"updateExpandCollapseButton",null);sF=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],sF);
_.u(sF,"ytd-sponsorships-expandable-perks-renderer",function(){if($N6!==void 0)return $N6;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return $N6=V},{mode:1});var LWh;var e3g=function(){return _.M.apply(this,arguments)||this};
_.t(e3g,_.M);e3g.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
var px=e3g;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],px.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],px.prototype,"data",void 0);px=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],px);
_.u(px,"ytd-sponsorships-actionable-message-renderer",function(){if(LWh!==void 0)return LWh;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return LWh=V},{mode:1});var kEI;var FWY=function(){return _.M.apply(this,arguments)||this};
_.t(FWY,_.M);_.B=FWY.prototype;_.B.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.B.getExpansionIcon=function(V){return V?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.B.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.B.computeMessageContainerStyle=function(V){var l=V.expandableItems?" style-clickable":"";return V.messageContainerStyle?V.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+l:"style-unspecified"+l};
_.B.isSinglePerk=function(V){return!!V.messageContainerStyle&&(V.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||V.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.B.onExpandedChanged=function(){var V=this;if(this.expanded)for(var l=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),I=l.next();!I.done;I=l.next())I.value.onShow();_.Al(this,function(){_.B$(V.hostElement,"yt-refit")})};
_.B.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
var A8=FWY;A8.prototype.onDataChanged=A8.prototype.onDataChanged;A8.prototype.onExpandedChanged=A8.prototype.onExpandedChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],A8.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],A8.prototype,"expanded",void 0);
_.O([_.b("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],A8.prototype,"onExpandedChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],A8.prototype,"onDataChanged",null);A8=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],A8);
_.u(A8,"ytd-sponsorships-expandable-message-renderer",function(){if(kEI!==void 0)return kEI;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return kEI=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var Xwb;var z3Q=function(){return _.M.apply(this,arguments)||this};
_.t(z3Q,_.M);z3Q.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"}}}}};
z3Q.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.y(this.data.endButton,_.RG).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
var uh=z3Q;uh.prototype.onDataChanged=uh.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],uh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],uh.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uh.prototype,"onDataChanged",null);
uh=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],uh);
_.u(uh,"ytd-sponsorships-heading-renderer",function(){if(Xwb!==void 0)return Xwb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Xwb=V},{mode:1});var yB6;var toY=function(){return _.M.apply(this,arguments)||this};
_.t(toY,_.M);var vC=toY;_.O([_.q(),_.a("design:type",Object)],vC.prototype,"data",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);vC=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],vC);
_.u(vC,"ytd-sponsorships-links-renderer",function(){if(yB6!==void 0)return yB6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return yB6=V},{mode:1});var rBg;var GEh=function(){return _.M.apply(this,arguments)||this};
_.t(GEh,_.M);_.B=GEh.prototype;_.B.onDataChanged=function(){if(this.data&&this.data.expandableItems){var V;(V=_.h(this.hostElement).querySelector("tp-yt-paper-button"))==null||V.setAttribute("role","button")}else{var l;(l=_.h(this.hostElement).querySelector("tp-yt-paper-button"))==null||l.removeAttribute("role")}};
_.B.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.B.getExpansionIcon=function(V){return V?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.B.getTileClasses=function(V){return V?"tile expandable-tile":"tile"};
_.B.getButtonDisabled=function(V){return V?void 0:""};
var OF=GEh;OF.prototype.onDataChanged=OF.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],OF.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],OF.prototype,"expanded",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OF.prototype,"onDataChanged",null);
OF=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],OF);
_.u(OF,"ytd-sponsorships-list-tile-renderer",function(){if(rBg!==void 0)return rBg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return rBg=V},{mode:1});var EJB;var JBQ;var oJb=function(){return _.M.apply(this,arguments)||this};
_.t(oJb,_.M);oJb.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var Cx=oJb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Cx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Cx.prototype,"data",void 0);Cx=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Cx);
_.u(Cx,"ytd-sponsorships-promotion-renderer",function(){if(JBQ!==void 0)return JBQ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return JBQ=V},{mode:1});var h36;var PZE=function(){return _.M.apply(this,arguments)||this};
_.t(PZE,_.M);PZE.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var ar=PZE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ar.prototype,"data",void 0);ar=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],ar);
_.u(ar,"ytd-sponsorships-purchase-option-renderer",function(){if(h36!==void 0)return h36;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return h36=V},{mode:1});var DNr;var ZZg;var SNE=function(){return _.M.apply(this,arguments)||this};
_.t(SNE,_.M);var R32=SNE;_.O([_.q(),_.a("design:type",Object)],R32.prototype,"data",void 0);R32=_.O([_.A({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],R32);
_.u(R32,"ytd-ypc-offer-promo-renderer",function(){if(ZZg!==void 0)return ZZg;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ZZg=V},{mode:1});var Qih=function(){return _.M.apply(this,arguments)||this};
_.t(Qih,_.M);_.B=Qih.prototype;
_.B.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"}}}}};
_.B.expansionCTA=function(V,l){return V&&(l?V.collapseCallToAction:V.expansionCallToAction)};
_.B.getExpansionIcon=function(V){return V?"arrow_drop_up":"arrow_drop_down"};
_.B.expansionCallToActionTap=function(){var V=this;this.expanded=!this.expanded;_.Al(this,function(){_.B$(V.hostElement,"yt-refit")})};
_.B.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var V,l=(V=this.data)==null?void 0:V.onVisible;l&&this.ytComponentBehavior.resolveCommand(l)};
_.B.computeDisplayTitle=function(V){return!(!V||this.titledisplaystatus!=="show")};
_.B.computeDisplaySeparator=function(){return!1};
_.B.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
var fx=Qih;fx.prototype.onDataChanged=fx.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],fx.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],fx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],fx.prototype,"data",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],fx.prototype,"expanded",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],fx.prototype,"purchaseButtonClicked",void 0);_.O([_.q({reflectToAttribute:!0,value:"show"}),_.a("design:type",String)],fx.prototype,"titledisplaystatus",void 0);_.O([_.q({computed:"computeDisplayTitle(data.title)"}),_.a("design:type",Boolean)],fx.prototype,"displayTitle",void 0);
_.O([_.q({computed:"computeDisplaySeparator(data)"}),_.a("design:type",Boolean)],fx.prototype,"displaySeparator",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fx.prototype,"onDataChanged",null);fx=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],fx);
_.u(fx,"ytd-sponsorships-tier-renderer",function(){if(DNr!==void 0)return DNr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return DNr=V},{mode:2});var cBE=function(){return _.M.apply(this,arguments)||this};
_.t(cBE,_.M);
cBE.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
var gy=cBE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],gy.prototype,"data",void 0);gy=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],gy);
_.u(gy,"ytd-sponsorships-management-renderer",function(){if(EJB!==void 0)return EJB;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return EJB=V},{mode:1});var WWg;var bZP=function(){return _.M.apply(this,arguments)||this};
_.t(bZP,_.M);var mo=bZP;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],mo.prototype,"data",void 0);mo=_.O([_.A({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],mo);
_.u(mo,"ytd-open-in-native-app-view-model",function(){if(WWg!==void 0)return WWg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return WWg=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var qNY;var MoB;var sig=_.fl(["top-"]),pwu=_.fl(["bottom-"]),AB2=_.fl(["left-"]),u0Q=_.fl(["right-"]),vJu={},OZ6=function(V,l,I){V.removeAttribute("top-"+I);V.removeAttribute("bottom-"+I);V.removeAttribute("left-"+I);V.removeAttribute("right-"+I);l&&(l.top&&_.VJ([_.Ig(sig)],V,"top-"+I,l.top),l.bottom&&_.VJ([_.Ig(pwu)],V,"bottom-"+I,l.bottom),l.left&&_.VJ([_.Ig(AB2)],V,"left-"+I,l.left),l.right&&_.VJ([_.Ig(u0Q)],V,"right-"+I,l.right))};
vJu.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(V){var l,I=_.h((l=this.hostElement)!=null?l:this),H;l=this.cardItemBoxBehaviorMarginTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(H=this.hostElement)!=null?H:this;OZ6(l,V,"margin")},
cardItemContainerPaddingChanged_:function(V){var l,I=_.h((l=this.hostElement)!=null?l:this),H;l=this.cardItemBoxBehaviorPaddingTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(H=this.hostElement)!=null?H:this;OZ6(l,V,"padding")}}];var ih={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 CZE;var avY;var fvI=function(){return _.M.apply(this,arguments)||this};
_.t(fvI,_.M);fvI.prototype.textColorChanged_=function(){this.hostElement.style.color=ih[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
var VV=fvI;VV.prototype.textColorChanged_=VV.prototype.textColorChanged_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],VV.prototype,"ytRendererBehavior",void 0);_.O([_.R(vJu.YtCardItemBoxBehavior),_.a("design:type",Object)],VV.prototype,"ytCardItemBoxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],VV.prototype,"data",void 0);_.O([_.b("data.textColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VV.prototype,"textColorChanged_",null);
VV=_.O([_.Lm({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],VV);
_.u(VV,"yt-card-item-text-renderer",function(){if(avY===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;CZE===void 0&&(CZE=document.createElement("template"));var H=CZE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);avY=V}V=avY;return V},{mode:2});var gJr;var mNg;var iZE=function(){return _.M.apply(this,arguments)||this};
_.t(iZE,_.M);var lb=iZE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],lb.prototype,"data",void 0);lb=_.O([_.Lm({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],lb);
_.u(lb,"yt-card-item-badge-renderer",function(){if(mNg===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;gJr===void 0&&(gJr=document.createElement("template"));var H=gJr;I.call(l,H.content.cloneNode(!0),V.content.firstChild);mNg=V}V=mNg;return V},{mode:2});var VbE;var lrh;var Ir2=function(){return _.M.apply(this,arguments)||this};
_.t(Ir2,_.M);Ir2.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
var I9=Ir2;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],I9.prototype,"data",void 0);I9=_.O([_.Lm({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],I9);
_.u(I9,"yt-card-item-text-collection-renderer",function(){if(lrh===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;VbE===void 0&&(VbE=document.createElement("template"));var H=VbE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);lrh=V}V=lrh;return V},{mode:2});var HQP;var TgI;var Bgg=function(){return _.M.apply(this,arguments)||this};
_.t(Bgg,_.M);Bgg.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
var Hj=Bgg;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Hj.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Number)],Hj.prototype,"iconSize",void 0);Hj=_.O([_.Lm({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Hj);
_.u(Hj,"yt-card-item-text-with-button-renderer",function(){if(TgI===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;HQP===void 0&&(HQP=document.createElement("template"));var H=HQP;I.call(l,H.content.cloneNode(!0),V.content.firstChild);TgI=V}V=TgI;return V},{mode:2});var xEP=function(){return _.M.apply(this,arguments)||this};
_.t(xEP,_.M);xEP.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
var T3=xEP;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],T3.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],T3.prototype,"data",void 0);T3=_.O([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],T3);
_.u(T3,"ytd-commerce-cart-summary-line-item-renderer",function(){if(MoB!==void 0)return MoB;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return MoB=V},{mode:1});_.yN("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var UEP=function(){var V=_.M.apply(this,arguments)||this;V.hidden=!1;return V};
_.t(UEP,_.M);_.B=UEP.prototype;_.B.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"}}}}};
_.B.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.B.updateSummary=function(){var V=this.commerceCartCheckoutButtonEntity,l;if(((l=this.data)==null?0:l.cartButton)&&V.checkoutSummaryText){var I,H=sJ((I=this.data)==null?void 0:I.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+H+".cardItemTextRenderer.text",pv(V.checkoutSummaryText));if(V.checkoutDetailText){var T;I=sJ((T=this.data)==null?void 0:T.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+I+".cardItemTextRenderer.text",pv(V.checkoutDetailText))}if(V.checkoutAdditionalMetadataText){var x;
T=sJ((x=this.data)==null?void 0:x.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+T+".cardItemTextRenderer.text",pv(V.checkoutAdditionalMetadataText))}}else V.estimatedTotalPrice&&(x=sJ((H=this.data)==null?void 0:H.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+x+".cardItemTextRenderer.text",pv(V.estimatedTotalPrice)))};
_.B.updateIsHidden=function(){var V,l=(V=this.commerceCartCheckoutButtonEntity)==null?void 0:V.isHidden;l!==void 0&&(this.hidden=l)};
_.B.updateCheckoutButton=function(){var V,l=(V=this.commerceCartCheckoutButtonEntity)==null?void 0:V.isDisabled;l!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",l);var I;V=(I=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:I.innertubeCommand;V!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",V);var H;I=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.checkoutButtonText;I!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:I})};
var Bj=UEP;Bj.prototype.entityChanged=Bj.prototype.entityChanged;_.O([_.R(_.DS),_.a("design:type",Object)],Bj.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Bj.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Bj.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Bj.prototype,"fullWidth",void 0);_.O([_.q(),_.a("design:type",Object)],Bj.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Bj.prototype,"compact",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Bj.prototype,"hidden",void 0);
_.O([_.q({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Ja1}),_.a("design:type",Object)],Bj.prototype,"commerceCartCheckoutButtonEntity",void 0);_.O([_.b("commerceCartCheckoutButtonEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bj.prototype,"entityChanged",null);Bj=_.O([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Bj);
_.u(Bj,"ytd-commerce-cart-checkout-button-renderer",function(){if(qNY!==void 0)return qNY;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return qNY=V},{mode:2});var nhb;_.$EQ={};
_.$EQ.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",_.VP(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.VP(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(V){!this.tappableItemBehaviorTapEnabled||V.keyCode!==13&&V.keyCode!==32||V.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var V=this.data.onTap;V.ypcGetCartEndpoint?(_.$B(this.hostElement,[V]),this.tappableItemBehaviorTapEnabled=!1):V.ypcOffersEndpoint?_.$B(this.hostElement,[V]):_.d6(this.hostElement,[V],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(V){this.tappableItemBehaviorTapEnabled=!!V},
tappableItemBehaviorOnTapEnabledChanged_:function(){var V=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(V.setAttribute("tabIndex",0),V.setAttribute("role","button")):(V.removeAttribute("tabIndex"),V.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(V){V.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var dEh;var wYY;var NgP=function(){return _.M.apply(this,arguments)||this};
_.t(NgP,_.M);NgP.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.tU("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.tU("sharingToggleButtonAndDefaultButton")}}};
var xu=NgP;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],xu.prototype,"data",void 0);xu=_.O([_.Lm({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],xu);
_.u(xu,"yt-card-item-actions-renderer",function(){if(wYY===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;dEh===void 0&&(dEh=document.createElement("template"));var H=dEh;I.call(l,H.content.cloneNode(!0),V.content.firstChild);wYY=V}V=wYY;return V},{mode:2});var KV6;var juV;var YPB;var LVE;var eBQ;var k2P;var Uj=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return V};
_.t(Uj,_.M);Uj.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Uj.prototype.handleDarkModeToggledAction_=function(V){this.isDarkTheme_=V};
Uj.prototype.computeThemeImage_=function(V,l){if(!V||!V.imageLight)return!1;this.isCircular_=V.isCircular;V.imageWidth&&(this.hostElement.style.width=V.imageWidth+"px");V.imageHeight&&(this.hostElement.style.height=V.imageHeight+"px");V.borderWidth&&(this.image.style.borderWidth=V.borderWidth+"px",this.image.style.borderStyle="solid");V.borderColor&&(this.image.style.borderColor=_.rP(V.borderColor));return l&&V.imageDark?V.imageDark:V.imageLight};
Uj.prototype.computeThemeIcon_=function(V){var l,I;if(!(V==null?0:(l=V.themedIcon)==null?0:(I=l.icon)==null?0:I.iconType))return!1;this.icon.style.color=ih[V.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(V.imageWidth||18)+"px";this.icon.style.height=(V.imageHeight||18)+"px";return _.mj(V.themedIcon.icon.iconType)};
var nU=Uj;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(vJu.YtCardItemBoxBehavior),_.a("design:type",Object)],nU.prototype,"ytCardItemBoxBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],nU.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],nU.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],nU.prototype,"fit",void 0);_.O([_.q(),_.a("design:type",Boolean)],nU.prototype,"isDarkTheme_",void 0);_.O([_.q({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.a("design:type",Object)],nU.prototype,"themeImage_",void 0);_.O([_.q({computed:"computeThemeIcon_(data)"}),_.a("design:type",Object)],nU.prototype,"themeIcon_",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Object)],nU.prototype,"isCircular_",void 0);_.O([_.Ij("#image"),_.a("design:type",Object)],nU.prototype,"image",void 0);_.O([_.Ij("#icon"),_.a("design:type",Object)],nU.prototype,"icon",void 0);nU=_.O([_.Lm({is:"yt-themed-image-renderer",disableElementRegistration:!0})],nU);
_.u(nU,"yt-themed-image-renderer",function(){if(k2P===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;eBQ===void 0&&(eBQ=document.createElement("template"));var H=eBQ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);k2P=V}V=k2P;return V},{mode:2});var FVb=function(){return _.M.apply(this,arguments)||this};
_.t(FVb,_.M);FVb.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"}}}}};
FVb.prototype.computeImagePlacement_=function(V){return V||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
var $u=FVb;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$u.prototype,"data",void 0);_.O([_.q({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.a("design:type",String)],$u.prototype,"imagePlacement",void 0);
$u=_.O([_.Lm({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],$u);
_.u($u,"yt-card-item-text-with-image-renderer",function(){if(LVE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;YPB===void 0&&(YPB=document.createElement("template"));var H=YPB;I.call(l,H.content.cloneNode(!0),V.content.firstChild);LVE=V}V=LVE;return V},{mode:2});var XYE=function(){return _.M.apply(this,arguments)||this};
_.t(XYE,_.M);XYE.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
var ds=XYE;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ds.prototype,"data",void 0);ds=_.O([_.Lm({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],ds);
_.u(ds,"yt-card-item-error-renderer",function(){if(juV===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;KV6===void 0&&(KV6=document.createElement("template"));var H=KV6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);juV=V}V=juV;return V},{mode:2});var zBQ;var yIg;_.yN("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var tbY=function(){return _.M.apply(this,arguments)||this};
_.t(tbY,_.M);_.B=tbY.prototype;
_.B.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"}}}}};
_.B.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.B.backgroundColorChanged_=function(){var V,l=(V=this.data)==null?void 0:V.backgroundColor;V=ih[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.h(this.hostElement).querySelector("#main-content").style.backgroundColor=V};
_.B.headerPromoBackgroundColorChanged_=function(){var V,l=(V=this.data)==null?void 0:V.headerPromoBackgroundColor;V=ih[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.h(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=V};
_.B.errorRendererVisibilityChanged_=function(){var V=this.isExpanded_,l;this.isErrorRendererVisible_=!((l=this.data)==null||!l.errorRenderer)&&!V};
_.B.onYtToggleButton_=function(V,l){this.isExpanded_=l.toggled};
var ws=tbY;ws.prototype.onYtToggleButton_=ws.prototype.onYtToggleButton_;ws.prototype.errorRendererVisibilityChanged_=ws.prototype.errorRendererVisibilityChanged_;ws.prototype.headerPromoBackgroundColorChanged_=ws.prototype.headerPromoBackgroundColorChanged_;ws.prototype.backgroundColorChanged_=ws.prototype.backgroundColorChanged_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(vJu.YtCardItemBoxBehavior),_.a("design:type",Object)],ws.prototype,"ytCardItemBoxBehavior",void 0);_.O([_.R(_.$EQ.YtTappableItemBehavior),_.a("design:type",Object)],ws.prototype,"ytTappableItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ws.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],ws.prototype,"isExpanded_",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],ws.prototype,"isErrorRendererVisible_",void 0);_.O([_.b("data.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ws.prototype,"backgroundColorChanged_",null);_.O([_.b("data.headerPromoBackgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ws.prototype,"headerPromoBackgroundColorChanged_",null);
_.O([_.b("data.errorRenderer","isExpanded_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ws.prototype,"errorRendererVisibilityChanged_",null);_.O([_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Object]),_.a("design:returntype")],ws.prototype,"onYtToggleButton_",null);ws=_.O([_.Lm({is:"yt-card-item-renderer",disableElementRegistration:!0})],ws);
_.u(ws,"yt-card-item-renderer",function(){if(yIg===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;zBQ===void 0&&(zBQ=document.createElement("template"));var H=zBQ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);yIg=V}V=yIg;return V},{mode:2});_.yN("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var rIr=function(){var V=_.M.apply(this,arguments)||this;V.hidden=!1;return V};
_.t(rIr,_.M);_.B=rIr.prototype;_.B.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.B.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.B.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var V,l=(V=this.commerceCartHeaderEntity)==null?void 0:V.isHidden;l!==void 0&&(this.hidden=l)}};
_.B.updateTitle=function(){var V=this.commerceCartHeaderEntity.isDisabled,l,I,H=(I=_.y((l=this.data)==null?void 0:l.item,k4J))==null?void 0:I.headingRenderer;H&&(l=sJ(H,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+l+".0.cardItemTextRenderer.textColor",V?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.B.updateSummaryText=function(){var V=this.commerceCartHeaderEntity;if(this.compact){var l,I,H=(I=_.y((l=this.data)==null?void 0:l.item,k4J))==null?void 0:I.headingRenderer;H&&(l=sJ(H,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+l+".1.cardItemTextRenderer.text",V.shortHeaderSummaryText?pv(V.shortHeaderSummaryText):V.headerSummaryText?pv(V.headerSummaryText):""))}else{var T;if(l=(T=_.y((H=this.data)==null?void 0:H.item,k4J))==null?void 0:T.additionalInfoRenderer)l=sJ(l,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+l+".text",V.headerSummaryText?pv(V.headerSummaryText):"")}};
_.B.updateCheckoutButton=function(){var V=this.commerceCartHeaderEntity,l,I,H=(I=_.y((l=this.data)==null?void 0:l.item,k4J))==null?void 0:I.additionalInfoRenderer;l=sJ(H,"buttonRenderer");var T;I=(T=this.commerceCartHeaderEntity)==null?void 0:T.isButtonDisabled;var x;T=(x=this.commerceCartHeaderEntity)==null?void 0:x.isButtonHidden;I!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+l+".buttonRenderer.isDisabled",I);T!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
T);var n;V=(n=V.checkoutButtonCommand)==null?void 0:n.innertubeCommand;V!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+l+".buttonRenderer.command",V)};
var NW=rIr;NW.prototype.entityChanged=NW.prototype.entityChanged;_.O([_.R(_.DS),_.a("design:type",Object)],NW.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],NW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],NW.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],NW.prototype,"compact",void 0);_.O([_.q({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(V,l){return _.nW(V.entities,"commerceCartHeaderEntity",l)}}),
_.a("design:type",Object)],NW.prototype,"commerceCartHeaderEntity",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],NW.prototype,"hidden",void 0);_.O([_.b("commerceCartHeaderEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],NW.prototype,"entityChanged",null);NW=_.O([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],NW);
_.u(NW,"ytd-commerce-cart-header-renderer",function(){if(nhb!==void 0)return nhb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return nhb=V},{mode:1});var G2r;var EhB=_.ym(function(V,l){var I;return(I=V.onChangeCallback)==null?void 0:I.call(V,l)},1E3),JI2=_.W1(function(V){var l=V.data;
var I=V.iconMinus;V=V.iconPlus;var H=function(){return!!l().disabled},T=_.U(_.xi(0,void 0,"r56zNb")),x=T.next().value,n=T.next().value;
T={};T=_.ii("yt-spec-quantity-incrementer-shape__icon",(T["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return H()||x()===(l().onRemoveCommand?0:1)},T));
var w={};w=_.ii("yt-spec-quantity-incrementer-shape__icon",(w["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return x()>=l().maxValue||H()},w));
var N={};N=_.ii("yt-spec-quantity-incrementer-shape__text",(N["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return x()>l().maxValue},N["yt-spec-quantity-incrementer-shape__text--text-disabled"]=H,N));
var L=_.Bu(function(){if(x()===1){var k,X;(X=(k=l()).onRemoveCommand)==null||X.call(k)}k=x()>l().maxValue?l().maxValue:x()-1;n(k);EhB(l(),k);return!1}),e=_.Bu(function(){if(x()===l().maxValue)return!1;
var k=x()+1;n(k);EhB(l(),k);return!1});
_.kG(function(){n(l().value)});
return _.Y("quantity-incrementer-shape",null,_.Y("div",{class:"yt-spec-quantity-incrementer-shape"},_.Y("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return x()===(l().onRemoveCommand?0:1)||H()},
"aria-label":function(){return x()!==1?l().minusLabel:l().minimumReachedLabel},
"on:click":L},_.Y(_.Ka,{model:{circular:!0}}),_.Y("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.Y("div",{class:T},I()))),_.Y("div",{class:N},x),_.Y("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return x()>=l().maxValue||H()},
"aria-label":function(){return x()!==l().maxValue?l().plusLabel:l().maximumReachedLabel},
"on:click":e},_.Y(_.Ka,{model:{circular:!0}}),_.Y("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.Y("div",{class:w},V())))))},"ld");_.MR(_.W1(function(V){function l(){I().onRemoveCommand&&_.EI(I().onRemoveCommand)}
var I=V.data;var H=_.dw(mPT,function(){return I().quantityIncrementerEntityKey});
return _.Y("yt-quantity-incrementer-view-model",null,_.Y(JI2,{data:function(){var T=I(),x;var n=H()?!((x=H())==null||!x.disabled):!1;var w;x=H()?(w=H())==null?void 0:w.quantity:I().quantity;return Xr1(T,n,l,x)},
iconMinus:function(){return _.Y(_.dq,{icon:"BAR_HORIZONTAL",className:_.l8("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.Y(_.dq,{icon:"ADD",className:_.l8("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"md"),"yt-quantity-incrementer-view-model",{props:{data:_.b9}});var KU=function(){var V=_.M.apply(this,arguments)||this;V.compact=!1;V.hasQuantityIncrementer=!1;return V};
_.t(KU,_.M);KU.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"}}}};
KU.prototype.computeHasQuantityIncrementer=function(){var V;return!!_.y((V=this.data)==null?void 0:V.picker,yMW)};
KU.prototype.onLabelClick=function(){var V;(V=this.dropdownEl)==null||V.open()};
var j4=KU;_.O([_.Ij("ytd-dropdown-renderer"),_.a("design:type",Object)],j4.prototype,"dropdownEl",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],j4.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],j4.prototype,"quantityColor",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],j4.prototype,"compact",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.a("design:type",Object)],j4.prototype,"hasQuantityIncrementer",void 0);j4=_.O([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],j4);
_.u(j4,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(G2r!==void 0)return G2r;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return G2r=V},{mode:1});var oh2;var hBV;var Yu=function(){return _.M.apply(this,arguments)||this};
_.t(Yu,_.M);Yu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Yu.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Yu.prototype.updateTitle=function(){var V=this.disabledCartItemEntity;V.disableActionName&&this.set("data.title",pv(V.disableActionName))};
Yu.prototype.updateButton=function(){var V,l=(V=this.disabledCartItemEntity.undoCommand)==null?void 0:V.innertubeCommand;l!==void 0&&(this.set("data.actionButton.buttonRenderer.command",l),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
var LU=Yu;LU.prototype.entityChanged=LU.prototype.entityChanged;_.O([_.R(_.DS),_.a("design:type",Object)],LU.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(V,l){return _.nW(V.entities,"disabledCartItemEntity",l)}}),
_.a("design:type",Object)],LU.prototype,"disabledCartItemEntity",void 0);_.O([_.q(),_.a("design:type",Object)],LU.prototype,"data",void 0);_.O([_.b("disabledCartItemEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LU.prototype,"entityChanged",null);LU=_.O([_.A({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],LU);
_.u(LU,"ytd-disabled-cart-item-renderer",function(){if(hBV!==void 0)return hBV;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return hBV=V},{mode:1});_.yN("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var PEQ=function(){var V=_.M.apply(this,arguments)||this;V.compact=!1;V.hidden=!1;V.errorHidden=!1;V.noOnTap=!1;return V};
_.t(PEQ,_.M);_.B=PEQ.prototype;
_.B.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"}}}};
_.B.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.B.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var V=this.firstButtonElement;V.alignByText=!0;V.iconAlignByText=!0}};
_.B.computeNoOnTap=function(V){return!V};
_.B.updateQuantityColor=function(){if(this.pickerElement){var V,l=(V=this.commerceCartItemEntity)==null?void 0:V.quantityColor;this.pickerElement.quantityColor=l}};
_.B.updateTotalPriceColor=function(){var V,l=(V=this.commerceCartItemEntity)==null?void 0:V.totalPriceColor;if(l){var I;V=_.y((I=this.data)==null?void 0:I.quantityPicker,XfW);if(I=_.y(V==null?void 0:V.price,FhN))I.textColor=l}};
_.B.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var V,l=(V=this.commerceCartItemEntity)==null?void 0:V.isHidden;l!==void 0&&(this.hidden=l)}};
_.B.updateHideErrorMessage=function(){var V,l=(V=this.commerceCartItemEntity)==null?void 0:V.hideErrorMessage;l!==void 0&&(this.errorHidden=l)};
_.B.updateQuantity=function(){var V=this,l,I=(l=this.commerceCartItemEntity)==null?void 0:l.quantity,H;l=(H=this.commerceCartItemEntity)==null?void 0:H.totalPrice;if(I){this.updateTotalPriceColor();this.updateQuantityColor();var T;H=_.y((T=this.data)==null?void 0:T.quantityPicker,XfW);if(T=_.y(H==null?void 0:H.price,FhN))T.text=l?{simpleText:l.content}:void 0;if(l=_.y(H==null?void 0:H.picker,yMW))l.quantity=I;var x;if(T=(x=_.y(H==null?void 0:H.picker,sGB))==null?void 0:x.entries){x=!1;l=void 0;T=
_.U(T);for(H=T.next();!H.done;H=T.next())H=H.value,H.dropdownItemRenderer&&(l||(l=H.dropdownItemRenderer),H.dropdownItemRenderer.isSelected=!1,I===H.dropdownItemRenderer.int32Value&&(x=!0,H.dropdownItemRenderer.isSelected=!0));!x&&l&&(l.isSelected=!0)}_.Al(this,function(){var n;V.set("data.quantityPicker",_.EL.unsafeClone((n=V.data)==null?void 0:n.quantityPicker))})}};
var e4=PEQ;e4.prototype.onYtRendererstamperFinished=e4.prototype.onYtRendererstamperFinished;e4.prototype.entityChanged=e4.prototype.entityChanged;_.O([_.q(),_.a("design:type",Object)],e4.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],e4.prototype,"compact",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],e4.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(V,l){return _.nW(V.entities,"commerceCartItemEntity",l)}}),
_.a("design:type",Object)],e4.prototype,"commerceCartItemEntity",void 0);_.O([_.q(),_.a("design:type",Object)],e4.prototype,"quantityPicker",void 0);_.O([_.q(),_.a("design:type",Object)],e4.prototype,"compactQuantityPicker",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],e4.prototype,"hidden",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],e4.prototype,"errorHidden",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.a("design:type",Object)],e4.prototype,"noOnTap",void 0);_.O([_.Ij("ytd-commerce-cart-item-quantity-picker-renderer"),_.a("design:type",Object)],e4.prototype,"pickerElement",void 0);_.O([_.Ij("yt-button-renderer"),_.a("design:type",Element)],e4.prototype,"firstButtonElement",void 0);
_.O([_.b("commerceCartItemEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e4.prototype,"entityChanged",null);_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e4.prototype,"onYtRendererstamperFinished",null);e4=_.O([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],e4);
_.u(e4,"ytd-commerce-cart-item-renderer",function(){if(oh2!==void 0)return oh2;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return oh2=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var DEE;var ZQQ;var ku=function(){return _.M.apply(this,arguments)||this};
_.t(ku,_.M);ku.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}}}}}};
ku.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
ku.prototype.updateCheckoutLineItems=function(){var V,l=(V=this.commerceCartCheckoutButtonEntity)==null?void 0:V.checkoutLineItems;l&&(V=l.map(function(I){a:{var H=I.price;var T=I.description;switch(I.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":I={cardItemTextRenderer:{text:pv(T),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_4"}}};
H={cardItemTextRenderer:{text:pv(H),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"}}};H={commerceCartSummaryLineItemRenderer:{summaryText:I,price:H}};break a;default:I={cardItemTextRenderer:{text:pv(T),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",
bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},H={cardItemTextRenderer:{text:pv(H),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"}}},H={commerceCartSummaryLineItemRenderer:{summaryText:I,price:H}}}}return H}),this.set("data.summaryLineItems",V))};
ku.prototype.updateIsHidden=function(){var V,l=(V=this.commerceCartCheckoutButtonEntity)==null?void 0:V.isHidden;l!==void 0&&(this.hostElement.hidden=l)};
var FT=ku;FT.prototype.entityChanged=FT.prototype.entityChanged;_.O([_.R(_.DS),_.a("design:type",Object)],FT.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],FT.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],FT.prototype,"data",void 0);_.O([_.q({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Ja1}),_.a("design:type",Object)],FT.prototype,"commerceCartCheckoutButtonEntity",void 0);_.O([_.b("commerceCartCheckoutButtonEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FT.prototype,"entityChanged",null);FT=_.O([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],FT);
_.u(FT,"ytd-commerce-cart-summary-renderer",function(){if(ZQQ!==void 0)return ZQQ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return ZQQ=V},{mode:1});var SPB={};SPB.InjectBehavior=[eac.InjectBehavior];var RB2;var Qu6;var XT=function(){return _.M.apply(this,arguments)||this};
_.t(XT,_.M);
XT.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:_.tU("menuRenderer")}}};
XT.prototype.onMenuTap=function(V){V.stopPropagation()};
_.vI.Object.defineProperties(XT.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 V,l;return!(((V=this.data)==null||!V.sectionHeading)&&((l=this.data)==null?void 0:l.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var V,l;return!(((V=this.data)==null||!V.image)&&((l=this.data)==null?void 0:l.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var V,l;return!(((V=this.data)==null||!V.menu)&&((l=this.data)==null?void 0:l.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
var z3=XT;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.$EQ.YtTappableItemBehavior),_.a("design:type",Object)],z3.prototype,"ytTappableItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],z3.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.accessibilityData"),_.a("design:type",String),_.a("design:paramtypes",[])],z3.prototype,"ariaLabel",null);_.O([_.Q("data.sectionHeading","data.layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],z3.prototype,"sectionHeadingVisible",null);_.O([_.Q("data.image","data.layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],z3.prototype,"imageVisible",null);
_.O([_.Q("data.menu","data.layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],z3.prototype,"menuVisible",null);z3=_.O([_.Lm({is:"yt-activity-item-renderer",disableElementRegistration:!0})],z3);
_.u(z3,"yt-activity-item-renderer",function(){if(Qu6===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;RB2===void 0&&(RB2=document.createElement("template"));var H=RB2;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Qu6=V}V=Qu6;return V},{mode:2});var cI6;var WVg;var bQE;var qPE;var Mbb=function(){return _.M.apply(this,arguments)||this};
_.t(Mbb,_.M);
Mbb.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"}}}}};
Mbb.prototype.backgroundColorChanged_=function(){var V,l=(V=this.data)==null?void 0:V.backgroundColor;this.hostElement.style.backgroundColor=ih[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var hQ=Mbb;hQ.prototype.backgroundColorChanged_=hQ.prototype.backgroundColorChanged_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],hQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],hQ.prototype,"data",void 0);
_.O([_.b("data.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hQ.prototype,"backgroundColorChanged_",null);hQ=_.O([_.Lm({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],hQ);
_.u(hQ,"yt-offer-item-upsell-renderer",function(){if(qPE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;bQE===void 0&&(bQE=document.createElement("template"));var H=bQE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);qPE=V}V=qPE;return V},{mode:2});_.yN("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var suu=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};V.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return V};
_.t(suu,_.M);_.B=suu.prototype;
_.B.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:_.tU("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.B.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.B.computeContainerStyle_=function(V){return V};
_.B.computeContainerIsHidden_=function(V){return V&&!!V.isHidden};
_.B.computeShowSpinner_=function(V,l){return V&&l==="in-progress"};
_.B.computeShowMoreContentsButton_=function(V,l,I,H,T){return!(!(H&&H.length||T&&T.length&&I)||!V||l)};
_.B.onToggleButton_=function(V){var l=this;V.stopPropagation();this.isExpanded_=V.detail&&V.detail.toggled;var I,H;this.isExpanded_&&!this.data.continuationSection.length&&((I=this.data)==null?0:(H=I.continuation)==null?0:H.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.B$(this.hostElement,"yt-load-next-continuation",function(T){return l.getContinuationUrl_(l.data.continuation.onClickContinuationData,T)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.$B(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.B.onShowMoreContentsButtonClicked_=function(V){var l=this;V.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.B$(this.hostElement,"yt-load-next-continuation",function(I){return l.getContinuationUrl_(l.data.continuations[0].nextContinuationData,I)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.$B(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.B.getContinuationUrl_=function(V,l){var I=V.continuation;V=V.clickTrackingParams;var H=_.oa();V&&H&&_.uJ(H,_.dj(V));return _.MS(l,{continuation:I})};
_.B.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var V=_.h(this.hostElement).querySelector("#continuation-section");V&&(V=V.querySelectorAll("ytmusic-item-section-renderer"))&&V.forEach(function(l){return l.classList.add("memberships-and-purchases")})};
_.B.dataChanged_=function(){var V;this.isExpanded_=!((V=this.data)==null||!V.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.B.updateCardOnClickCommand_=function(V){V=_.y(V,d9Z);var l,I;this.data&&((l=this.data)==null?0:l.targetId)&&V&&V.targetId===((I=this.data)==null?void 0:I.targetId)&&V.onClickCommand&&(this.data.onClickCommand=V.onClickCommand,this.isOnClickCommand_=!0)};
_.B.backgroundColorChanged_=function(){var V,l=(V=this.data)==null?void 0:V.backgroundColor;this.hostElement.style.backgroundColor=ih[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var Pj=suu;Pj.prototype.backgroundColorChanged_=Pj.prototype.backgroundColorChanged_;Pj.prototype.dataChanged_=Pj.prototype.dataChanged_;Pj.prototype.nextContinuationDataUpdated_=Pj.prototype.nextContinuationDataUpdated_;Pj.prototype.onToggleButton_=Pj.prototype.onToggleButton_;_.O([_.R(_.i6),_.a("design:type",Object)],Pj.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Pj.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.Vi.YtNextContinuationBehavior),_.a("design:type",Object)],Pj.prototype,"ytNextContinuationBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.O([_.R(SPB.InjectBehavior),_.a("design:type",Object)],Pj.prototype,"injectBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Pj.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Pj.prototype,"compact",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Pj.prototype,"isExpanded_",void 0);_.O([_.q({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.a("design:type",String)],Pj.prototype,"containerStyle_",void 0);_.O([_.q({value:"not-started"}),_.a("design:type",String)],Pj.prototype,"continuationStatus_",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.a("design:type",Boolean)],Pj.prototype,"showSpinner_",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Pj.prototype,"isOnClickCommand_",void 0);_.O([_.q({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.a("design:type",Boolean)],Pj.prototype,"showMoreContentsButton_",void 0);
_.O([_.q({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(V,l){return!l||V.entities?null:_.nW(V.entities,"cardItemContainerEntity",l)}}),
_.a("design:type",Object)],Pj.prototype,"cardItemContainerEntity_",void 0);_.O([_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Pj.prototype,"onToggleButton_",null);_.O([_.W("yt-next-continuation-data-updated"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pj.prototype,"nextContinuationDataUpdated_",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pj.prototype,"dataChanged_",null);_.O([_.b("data.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pj.prototype,"backgroundColorChanged_",null);Pj=_.O([_.Lm({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Pj);
_.u(Pj,"yt-card-item-container-renderer",function(){if(WVg===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;cI6===void 0&&(cI6=document.createElement("template"));var H=cI6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);WVg=V}V=WVg;return V},{mode:2});var DZ=function(){return _.M.apply(this,arguments)||this};
_.t(DZ,_.M);DZ.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"}}}};
DZ.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
DZ.prototype.computeLoadingHidden=function(){var V;return!((V=this.commerceCartPageStateEntity)==null?0:V.cartActionInProgress)};
DZ.prototype.updateNotification=function(){var V,l=(V=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:V.summaryText;l&&this.set("data.cartNotification",pv(l))};
var ZZ=DZ;ZZ.prototype.notificationEntityChanged=ZZ.prototype.notificationEntityChanged;_.O([_.R(_.DS),_.a("design:type",Object)],ZZ.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ZZ.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ZZ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],ZZ.prototype,"data",void 0);_.O([_.q({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(V,l){return _.nW(V.entities,"commerceCartExpandableNotificationEntity",l)}}),
_.a("design:type",Object)],ZZ.prototype,"commerceCartExpandableNotificationEntity",void 0);_.O([_.q({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(V,l){return _.nW(V.entities,"commerceCartPageStateEntity",l)}}),
_.a("design:type",Object)],ZZ.prototype,"commerceCartPageStateEntity",void 0);_.O([_.Ij("#spinner"),_.a("design:type",HTMLElement)],ZZ.prototype,"spinner",void 0);_.O([_.b("commerceCartExpandableNotificationEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZZ.prototype,"notificationEntityChanged",null);ZZ=_.O([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],ZZ);
_.u(ZZ,"ytd-commerce-cart-renderer",function(){if(DEE!==void 0)return DEE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return DEE=V},{mode:1});var pYY;var AIB=function(){var V=_.M.apply(this,arguments)||this;V.bigImage=!1;return V};
_.t(AIB,_.M);_.vI.Object.defineProperties(AIB.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.placeholderImageUrl}}});
var S4=AIB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],S4.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],S4.prototype,"bigImage",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],S4.prototype,"placeholderImageUrl",null);S4=_.O([_.A({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],S4);
_.u(S4,"ytd-empty-product-shelf-renderer",function(){if(pYY!==void 0)return pYY;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return pYY=V},{mode:1});var uEP;var vh2=function(){var V=_.M.apply(this,arguments)||this;V.itemStyle="link-item";V.watchMetadataRefresh=!1;V.skinnyMode=!1;V.metaPanel=!1;V.inStructuredDescription=!1;V.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};V.updateOnResizeDebouncer=null;return V};
_.t(vh2,_.M);_.B=vh2.prototype;_.B.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.B.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"}}}}};
_.B.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.B.attachVEs=function(V){V.trackingParams&&_.x7().graftServerVe(V.trackingParams)};
_.B.handleUpdateMerchShelfAction=function(V){var l=this,I=_.y(V.updateMerchandiseShelfAction.merchandiseShelf,_.nYi);I&&(I.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){l.attachVEs(I);l.data=I},Number(I.renderDelayMs))):(this.attachVEs(I),this.data=I))};
_.B.updateOnResize=function(){if(this.JSC$14562_scrollContainer!==void 0&&this.JSC$14562_scrollContainer.clientWidth!==0&&this.items!==void 0){var V=this.JSC$14562_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-V));this.ytdHorizontalListBehavior.reposition_();var l;switch((l=this.data)==null?void 0:l.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var I,
H;((I=this.data)==null?void 0:(H=I.items)==null?void 0:H.length)===1?this.itemStyle="cta-item":this.itemStyle=V>=740?"large-item":"small-item"}}};
_.B.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.nD(this.updateOnResizeDebouncer,_.fh.after(100),this.updateOnResize)};
var R9=vh2;R9.prototype.debouncedUpdateOnResize=R9.prototype.debouncedUpdateOnResize;R9.prototype.dataChanged=R9.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.ID.YtdHorizontalListBehavior),_.a("design:type",Object)],R9.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],R9.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],R9.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],R9.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],R9.prototype,"itemStyle",void 0);_.O([_.q({value:6}),_.a("design:type",Number)],R9.prototype,"initialCount",void 0);
_.O([_.q({value:"data.items"}),_.a("design:type",String)],R9.prototype,"itemsPath",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],R9.prototype,"watchMetadataRefresh",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],R9.prototype,"skinnyMode",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],R9.prototype,"metaPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],R9.prototype,"inStructuredDescription",void 0);
_.O([_.Ij("#items"),_.a("design:type",HTMLDivElement)],R9.prototype,"items",void 0);_.O([_.Ij("#scroll-container"),_.a("design:type",HTMLDivElement)],R9.prototype,"JSC$14562_scrollContainer",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],R9.prototype,"dataChanged",null);_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],R9.prototype,"debouncedUpdateOnResize",null);
R9=_.O([_.A({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],R9);
_.u(R9,"ytd-merch-shelf-renderer",function(){if(uEP!==void 0)return uEP;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return uEP=V},{mode:2});var OQu;var CEB=function(){var V=_.M.apply(this,arguments)||this;V.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 V};
_.t(CEB,_.M);_.B=CEB.prototype;
_.B.addBackstagePostAction=function(V){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(V=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",V))&&(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:V}):this.set("data.contents",[{backstagePostThreadRenderer:V}]))};
_.B.addBackstageCommentAction=function(V){var l=this.get("addBackstageCommentAction.parentId",V);V=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",V);if(l&&V){l=this.postIdToIndices(l);for(var I=0;I<l.length;I++){var H=l[I];if(H<0)break;H="data.contents."+H+".backstagePostThreadRenderer.comments";this.get(H)&&(this.get(H+".backstageCommentsRenderer.contents")&&this.push(H+".backstageCommentsRenderer.contents",{commentThreadRenderer:V}),this.get(H+".backstageCommentsRenderer.teaserContents")?
this.push(H+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:V}):this.set(H+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:V}]))}}};
_.B.addBackstageReplyAction=function(V){var l=this.get("addBackstageReplyAction.parentId",V);V=this.get("addBackstageReplyAction.renderer.commentRenderer",V);l&&V&&this.setCreatorReply(l,V)};
_.B.banAuthorAction=function(V){var l=this.get("banAuthorAction.commentId",V);l&&(V=this.get("banAuthorAction.parentCommentId",V)||this.getParentPostId(l),this.removeFromStream(l,V))};
_.B.hideReportedCommentAction=function(V){var l=this.get("hideReportedCommentAction.commentId",V);l&&((V=this.get("hideReportedCommentAction.parentCommentId",V))||(V=this.getParentPostId(l)),this.removeFromStream(l,V))};
_.B.replaceBackstageCommentAction=function(V){var l=this.get("replaceBackstageCommentAction.commentId",V),I=this.get("replaceBackstageCommentAction.parentId",V);V=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",V);if(l&&I&&V){I=this.postIdToIndices(I);for(var H=0;H<I.length;H++){var T=I[H];if(T<0)break;var x=this.commentIdToIndex(l,T,!1);if(x>=0){var n=this.get("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+x+".commentThreadRenderer.replies.commentRepliesRenderer");
n&&(V.replies={commentRepliesRenderer:n});this.splice("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",x,1,{commentThreadRenderer:V})}x=this.commentIdToIndex(l,T,!0);if(x>=0){if(n=this.get("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(x+".commentThreadRenderer.replies.commentRepliesRenderer")))V.replies={commentRepliesRenderer:n};this.splice("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
x,1,{commentThreadRenderer:V})}}}};
_.B.replaceBackstagePostAction=function(V){var l=this.get("replaceBackstagePostAction.itemId",V);if(l){l=this.postIdToIndices(l);for(var I=0;I<l.length;I++){var H=l[I];if(H<0)break;var T=this.getPostRendererType(H),x=this.get("replaceBackstagePostAction.renderer."+T,V);if(!x&&T!=="sharedPostRenderer")break;var n=!1;x||(n=!0,x=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",V));if(!x)break;var w={};n?(_.k7(w,XHN,x),this.set("data.contents."+H+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
w)):(_.k7(w,new _.f(T),x),this.set("data.contents."+H+".backstagePostThreadRenderer.post",w))}}};
_.B.replaceBackstageReplyAction=function(V){var l=this.get("replaceBackstageReplyAction.replyId",V),I=this.get("replaceBackstageReplyAction.parentId",V);V=this.get("replaceBackstageReplyAction.renderer.commentRenderer",V);l&&V&&I&&this.setCreatorReply(I,V)};
_.B.removeCommentAction=function(V){var l=this.get("removeCommentAction.commentId",V);if(l){var I=this.get("removeCommentAction.parentCommentId",V);I&&this.get("removeCommentAction.isCreatorReply",V)?this.setCreatorReply(I,void 0):(I||(I=this.getParentPostId(l)),this.removeFromStream(l,I))}};
_.B.setCreatorReply=function(V,l){var I=this.getParentPostId(V);if(I){I=this.postIdToIndices(I);for(var H=0;H<I.length;H++){var T=I[H];if(T<0)break;var x=this.commentIdToIndex(V,T,!1);if(x>=0){var n="data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+x;x=n+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";n+=".commentThreadRenderer.replies";l==void 0?(this.set(n,{}),this.set(x,!1)):(this.set(n,{commentRepliesRenderer:{teaserContents:[{commentRenderer:l}]}}),
this.set(n+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(x,!0))}x=this.commentIdToIndex(V,T,!0);x>=0&&(x="data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+x,T=x+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",x+=".commentThreadRenderer.replies",l==void 0?(this.set(x,{}),this.set(T,!1)):(this.set(x,{commentRepliesRenderer:{teaserContents:[{commentRenderer:l}]}}),this.set(T,!0)))}}};
_.B.removeFromStream=function(V,l){if(l){l=this.postIdToIndices(l);for(var I=0;I<l.length;I++){var H=l[I];if(H<0)break;var T=this.commentIdToIndex(V,H,!1);T>=0&&this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",T,1);T=this.commentIdToIndex(V,H,!0);T>=0&&this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",T,1);H="data.contents."+H+".backstagePostThreadRenderer.post.backstagePostRenderer";
T=H+".backstageAttachment.pollRenderer.votedCommentId";this.get(T)===V&&(this.set(T,null),this.set(H+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(l=this.postIdToIndices(V).reverse(),I=0;I<l.length;I++){H=l[I];if(H<0)break;T=this.getPostRendererType(H);var x=this.get("backstagePostThreadRenderer.post."+T,this.data.contents[H]);x.postId===V?this.splice("data.contents",H,1):T==="sharedPostRenderer"&&this.set("data.contents."+H+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);x.scheduledPublishTimeSec&&_.xB(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.B.postIdToIndices=function(V){for(var l=[],I=0;I<this.data.contents.length;I++){var H=this.getPostRendererType(I);this.get("backstagePostThreadRenderer.post."+H+".postId",this.data.contents[I])===V&&l.push(I);if(H==="sharedPostRenderer"){var T=this.get("backstagePostThreadRenderer.post."+H+".originalPost.backstagePostRenderer.postId",this.data.contents[I]);H=this.get("backstagePostThreadRenderer.post."+H+".originalPost.postRenderer.postId",this.data.contents[I]);T!==V&&H!==V||l.push(I)}}return l};
_.B.commentIdToIndex=function(V,l,I){if(l<0)return-1;var H,T,x,n,w=_.y((H=this.data)==null?void 0:(T=H.contents)==null?void 0:(x=T[l])==null?void 0:(n=x.backstagePostThreadRenderer)==null?void 0:n.comments,k1B);return(l=I?w==null?void 0:w.teaserContents:w==null?void 0:w.contents)&&l.length?l.findIndex(function(N){return _.y(N,OgJ).comment.commentRenderer.commentId===V}):-1};
_.B.getParentPostId=function(V){V=V.split(".");if(V[1])return V[0]};
_.B.getPostRendererType=function(V){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[V])?"sharedPostRenderer":"backstagePostRenderer"};
var QV=CEB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],QV.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],QV.prototype,"data",void 0);QV=_.O([_.A({disableElementRegistration:!0,is:"ytd-backstage-items"})],QV);
_.u(QV,"ytd-backstage-items",function(){if(OQu!==void 0)return OQu;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return OQu=
V},{mode:1});var arE;_.Ne({is:"ytd-comments",_template:function(){if(arE!==void 0)return arE;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-spinner-lite active="[[canShowDefaultSpinner_]]" class="style-scope ytd-comments"></tp-yt-paper-spinner-lite>\n<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return arE=V},
behaviors:[_.za1.YtHostElementBehavior,_.AN.YtPlayerListenerBehavior,_.m.YtRendererBehavior,_.aU.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},canShowDefaultSpinner_:{type:Boolean,computed:"computeCanShowDefaultSpinner_(data, canScheduleJobs)"},
engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},
listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)","headerChanged_(data.header)"],created:function(){var V=this;this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_();this.player=
null;this.JSC$14574_PLAYER_EVENTS_=new Map;this.JSC$14574_PLAYER_EVENTS_.set("onVideoProgress",function(){V.onVideoProgress_()})},
attached:function(){this.maybeGetAndSetPlayer_()},
maybeGetAndSetPlayer_:function(){var V=this,l=_.u8(this);l&&l.getPlayerPromise().then(function(I){V.playerApiReady_(I)})},
playerApiReady_:function(V){this.setPlayer_(V)},
setPlayer_:function(V){this.player_&&this.unlistenFromPlayerEvents(this.player_,this.JSC$14574_PLAYER_EVENTS_);(this.player_=V)&&this.listenToPlayerEvents(V,this.JSC$14574_PLAYER_EVENTS_)},
detached:function(){this.setPlayer_(null)},
onVideoProgress_:function(){var V=this,l=_.g7("prefetch_comments_ms_after_video");l>0&&setTimeout(function(){return V.loadComments()},l);
_.z("prefetch_comments_idle_job")&&_.et(_.r0,function(){return V.loadComments()});
this.setPlayer_(null)},
dataChanged_:function(){this.player_||this.maybeGetAndSetPlayer_()},
contentsChanged_:function(V){V&&V.value&&V.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(V){V&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.D8("wn_comments");var V=_.oa();V&&_.P$({clientScreenNonce:V},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(V){V=z0q(V);var l,I,H;if(V=(l=V)==null?void 0:(I=l.createCommentAction)==null?void 0:(H=I.contents)==null?void 0:H.commentThreadRenderer){var T,x,n,w,N,L;!this.isBackstage&&((T=this.data)==null?0:(x=T.header)==null?0:(n=x.commentsHeaderRenderer)==null?0:(w=n.createRenderer)==null?0:(N=w.commentSimpleboxRenderer)==null?0:(L=N.zeroStep)==null?0:L.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var e,k,X,r;this.isBackstage&&((e=this.data)==null?0:(k=e.header)==null?0:(X=k.commentsHeaderRenderer)==null?0:(r=X.zeroStateMessage)==null?0:r.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(V)}},
doReplyInsert_:function(V,l,I,H){H?this.splice(V,H,0,l):this.push(V,l)},
getRepliesPath_:function(V){return"data.contents."+V+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(V,l){V=this.getRepliesPath_(V);return l?V+".commentRepliesRenderer.teaserContents":V+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(V){V=z0q(V);var l,I,H=(l=V)==null?void 0:(I=l.createCommentReplyAction)==null?void 0:I.parentCommentId,T,x;if(l=(T=V)==null?void 0:(x=T.createCommentReplyAction)==null?void 0:x.contents)if(H=this.commentIdToIndex_(H),!(H<0))if(T=this.getRepliesPath_(H),this.get(T)){var n,w;V=(n=V)==null?void 0:(w=n.createCommentReplyAction)==null?void 0:w.replyToCommentId;n=this.getRepliesContentsPath_(H,!1);this.get(n)&&(w=this.get(n).length,T=n+"."+(w-1)+".continuationItemRenderer",
this.get(T+".button")?(T=this.replyIdToIndex_(V,H,!1),this.doReplyInsert_(n,l,T,w-1)):this.get(T)||(w=this.replyIdToIndex_(V,H,!1),this.doReplyInsert_(n,l,w,null)));n=this.getRepliesContentsPath_(H,!0);this.get(n)?(H=this.replyIdToIndex_(V,H,!0),(!V||H>=0)&&this.doReplyInsert_(n,l,H,null)):this.set(n,[l])}else this.set(T,{commentRepliesRenderer:{teaserContents:[l]}})},
hideReportedCommentAction_:function(V){var l,I=V==null?void 0:(l=V.hideReportedCommentAction)==null?void 0:l.commentId;if(I){var H;V=V==null?void 0:(H=V.hideReportedCommentAction)==null?void 0:H.parentCommentId;I=I.replace("#",".");V||(V=this.getParentCommentId_(I));this.remove_(I,V)}},
getParentCommentId_:function(V){V=V.split(".");if(V[1])return V[0]},
removeCommentAction_:function(V){var l,I=V==null?void 0:(l=V.removeCommentAction)==null?void 0:l.commentId;if(I){var H;V=V==null?void 0:(H=V.removeCommentAction)==null?void 0:H.parentCommentId;I=I.replace("#",".");V||(V=this.getParentCommentId_(I));this.remove_(I,V)}},
pinCommentAction_:function(V){V=z0q(V);var l,I,H=(l=V)==null?void 0:(I=l.pinCommentAction)==null?void 0:I.commentId;H&&(V=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",V))&&(this.remove_(H),this.insert_(V,!0))},
unpinCommentAction_:function(V){V=z0q(V);var l,I,H=(l=V)==null?void 0:(I=l.unpinCommentAction)==null?void 0:I.commentId;if(H){var T,x,n;if(V=(T=V.unpinCommentAction)==null?void 0:(x=T.actionResult)==null?void 0:(n=x.update)==null?void 0:n.commentThreadRenderer)this.remove_(H),this.insert_(V)}},
banAuthorAction_:function(V){var l,I=V==null?void 0:(l=V.banAuthorAction)==null?void 0:l.commentId;if(I){var H;V=V==null?void 0:(H=V.banAuthorAction)==null?void 0:H.parentCommentId;I=I.replace("#",".");V||(V=this.getParentCommentId_(I));this.remove_(I,V)}},
commentIdToIndex_:function(V){var l;return V&&(l=this.data)!=null&&l.contents?this.data.contents.findIndex(function(I){var H,T;return V===((I==null?void 0:(H=I.commentThreadRenderer)==null?void 0:H.commentViewModel)&&((T=_.y(I.commentThreadRenderer.commentViewModel,gLw))==null?void 0:T.commentId))}):-1},
insert_:function(V,l){var I,H;if((I=this.data)==null?0:(H=I.contents)==null?0:H.some(function(x){return!(x==null||!x.commentThreadRenderer)}))for(I=0,H=this.data.contents.length;I<H;I++){var T=this.data.contents[I].commentThreadRenderer;
if(this.RenderingPriority[V.renderingPriority]>=this.RenderingPriority[T.renderingPriority]){l&&this.RenderingPriority[V.renderingPriority]==this.RenderingPriority[T.renderingPriority]?this.splice("data.contents",I,1,{commentThreadRenderer:V}):this.splice("data.contents",I,0,{commentThreadRenderer:V});break}}else this.set("data.contents",[{commentThreadRenderer:V}])},
doReplyRemove_:function(V,l,I){V=this.replyIdToIndex_(V,l,I);V<0||(l=this.getRepliesContentsPath_(l,I),this.splice(l,V,1))},
remove_:function(V,l){l=this.commentIdToIndex_(l);l<0?(l=this.commentIdToIndex_(V),l<0||this.splice("data.contents",l,1)):(this.doReplyRemove_(V,l,!1),this.doReplyRemove_(V,l,!0))},
replyIdToIndex_:function(V,l,I){if(l<0)return-1;l=this.getRepliesContentsPath_(l,I);l=this.get(l);if(!l||!l.length)return-1;I=0;for(var H=l.length;I<H;I++){var T=void 0,x=void 0;if(((T=l[I])==null?void 0:(x=T.commentViewModel)==null?void 0:x.commentId)===V)return I}return-1},
computeIsBackstage_:function(V){return!!V},
computeCanShowDefaultSpinner_:function(V,l){return l?(l=_.F().resolve(_.Cs(_.pa)))&&l.isOnWatch&&l.isOnWatch()?!(V&&(V.contents||V.header||V.continuations)):!1:!1},
onRetrieveLocation_:function(V,l){l&&l.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(V){_.S1(V,void 0,"wn_comments")},
reloadComments_:function(V){V&&V.reloadCommentsCommand&&V.reloadCommentsCommand.command&&V.reloadCommentsCommand.command.continuationCommand&&_.$B(this,[V.reloadCommentsCommand.command])},
loadComments:function(){_.g7("prefetch_comments_ms_after_video")||_.z("prefetch_comments_idle_job")?this.$.sections.triggerInitialContinuations():this.$.sections.triggerContinuations()}});var fru=function(){return _.To.apply(this,arguments)||this};
_.t(fru,_.To);_.B=fru.prototype;_.B.bindIf=function(V,l,I){return V?l:I};
_.B.bindIfDefined=function(V,l){return V!==void 0?V:l};
_.B.booleanString=function(V){return(!!V).toString()};
_.B.equals=function(){for(var V=_.Q5.apply(0,arguments),l=V[0],I=1;I<V.length;I++)if(l!=V[I])return!1;return!0};
_.B.isGreaterThan=function(V,l){return V>l};
_.B.isLessThan=function(V,l){return V<l};
_.B.logicalAND=function(){for(var V=_.Q5.apply(0,arguments),l=!!V[0],I=1;I<V.length;I++)l=l&&!!V[I];return l};
_.B.logicalOR=function(){for(var V=_.Q5.apply(0,arguments),l=!!V[0],I=1;I<V.length;I++)l=l||!!V[I];return l};
_.B.toBool=function(V){return!!V};
var cj=fru;cj.prototype.toBool=cj.prototype.toBool;cj.prototype.logicalOR=cj.prototype.logicalOR;cj.prototype.logicalAND=cj.prototype.logicalAND;cj.prototype.isLessThan=cj.prototype.isLessThan;cj.prototype.isGreaterThan=cj.prototype.isGreaterThan;cj.prototype.equals=cj.prototype.equals;cj.prototype.booleanString=cj.prototype.booleanString;cj.prototype.bindIfDefined=cj.prototype.bindIfDefined;cj.prototype.bindIf=cj.prototype.bindIf;cj=_.O([_.B1()],cj);_.ghY=[cj.prototype];var mEP;var iQh;var V6g=function(){return _.M.apply(this,arguments)||this};
_.t(V6g,_.M);V6g.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
V6g.prototype.onBackIconTap_=function(){window.history.back()};
var Wj=V6g;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Wj.prototype,"data",void 0);Wj=_.O([_.Lm({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Wj);
_.u(Wj,"yt-header-with-back-renderer",function(){if(iQh===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;mEP===void 0&&(mEP=document.createElement("template"));var H=mEP;I.call(l,H.content.cloneNode(!0),V.content.firstChild);iQh=V}V=iQh;return V},{mode:2});var lCb;var ICE;var HdE=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(HdE,_.M);_.B=HdE.prototype;_.B.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.B.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&(this.isDarkTheme=V,this.setUrl())};
_.B.dataChanged=function(){var V=this;if(this.data){var l=this.setUrl();l&&_.Ik({destination:window,iframe:this.iframe,origin:_.KVa(l.toString()),channelName:"yt-iframe",onMessage:function(I){(I=V.getCommunicationCommand(I.data))&&V.ytComponentBehavior.resolveCommand(I)},
onEstablished:function(){}})}};
_.B.setUrl=function(){if(this.data&&this.data.iframeUrl){var V=_.GQ(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(V)return _.AV(this.iframe,V),V}};
_.B.getCommunicationCommand=function(V){var l;if((l=this.data)!=null&&l.onCommunicationCommandsMap){l=this.data.onCommunicationCommandsMap.find(function(T){return T.key===V});
if(l==null?0:l.value)return l==null?void 0:l.value;try{var I=IXv(_.TE(V)),H=this.data.onCommunicationCommandsMap.find(function(T){return T.key===(I==null?void 0:_.Rt(I,1))});
if(H==null?0:H.value)return H==null?void 0:H.value}catch(T){}}};
var bb=HdE;bb.prototype.dataChanged=bb.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],bb.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],bb.prototype,"actionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],bb.prototype,"data",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],bb.prototype,"isDarkTheme",void 0);_.O([_.Ij("#iframe"),_.a("design:type",HTMLIFrameElement)],bb.prototype,"iframe",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bb.prototype,"dataChanged",null);bb=_.O([_.Lm({is:"yt-iframe-renderer",disableElementRegistration:!0})],bb);
_.u(bb,"yt-iframe-renderer",function(){if(ICE===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;lCb===void 0&&(lCb=document.createElement("template"));var H=lCb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);ICE=V}V=ICE;return V},{mode:2});_.qW=function(V){_.XG.call(this);this.callback=V;this.bezier=new itZ(0,0,.4,0,.2,1,1,1);this.delay=new _.aX(this.next,window,this);this.JSC$14592_animating=!1;_.$w(this,this.delay)};
_.t(_.qW,_.XG);_.qW.prototype.isAnimating=function(){return this.JSC$14592_animating};
_.qW.prototype.start=function(V,l,I){this.config={from:V,to:l,duration:I,startTime:(0,_.O_)()};this.JSC$14592_animating=!0;this.next()};
_.qW.prototype.stop=function(){this.delay.stop();this.JSC$14592_animating=!1;this.config=void 0};
_.qW.prototype.next=function(){if(this.config){var V=this.config,l=V.from,I=V.to,H=V.duration;V=V.startTime;var T=(0,_.O_)()-V;V=this.bezier;H=ltE(V,T/H);if(H==0)V=V.y0;else if(H==1)V=V.y3;else{T=hP(V.y0,V.y1,H);var x=hP(V.y1,V.y2,H);V=hP(V.y2,V.y3,H);T=hP(T,x,H);x=hP(x,V,H);V=hP(T,x,H)}V=_.cA(V,0,1);this.callback(l+(I-l)*V);V<1?this.delay.start():this.JSC$14592_animating=!1}};_.MW=new _.Vr("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Tp2={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},xVI=function(V,l,I,H){_.XG.call(this);this.JSC$14600_miniAppId=V;this.localReleaseId=l;this.derivedDeviceInterface=I;this.isForeground=H;this.JSC$14600_playNonceResolver=new _.IQ;this.playPingTimerId=NaN;this.playPingIntervalMs=_.g7("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.g7("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.z("enable_displaying_ppn");this.JSC$14600_miniAppClientDataProvider=_.F().resolve(_.MW);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;BpQ(this);var T=setTimeout(function(){_.hF(new _.Yd("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14600_playNonceResolver.promise.then(function(){clearTimeout(T)})};
_.t(xVI,_.XG);var nnr=function(V,l){V.JSC$14600_playNonceResolver.resolve(l!=null?l:Gu(8));V.enableDisplayingPpn&&UVu(V).then(function(I){V.JSC$14600_miniAppClientDataProvider.clientData.set("post_play_nonce",I)})},UVu=function(V){return _.d(function(l){return l.nextAddress==1?_.K(l,V.JSC$14600_playNonceResolver.promise,2):l.return(l.yieldResult)})},BpQ=function(V){var l,I;
_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$14600_playNonceResolver.promise,2);l=H.yieldResult;I={miniAppInfo:{externalPostId:V.JSC$14600_miniAppId,localReleaseId:V.localReleaseId,postPlayNonce:l,derivedDeviceInterface:V.derivedDeviceInterface}};_.P$(I);_.FU(H)})},dVV=function(V){V.state!==0?_.hF(new _.Yd("[MiniAppPlayLogger] recordPlayStart failed with state "+Tp2[V.state])):(V.state=1,sj(V,"ma_cl"),pU(V,"PLAY_EVENT_TYPE_PLAY_START"),$VB(V))},whb=function(V){V.isForeground=!1;
pU(V,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Np6=function(V){V.state!==1&&V.state!==2?_.hF(new _.Yd("[MiniAppPlayLogger] recordPlayEnd failed with state "+Tp2[V.state])):(V.state=3,window.clearInterval(V.playPingTimerId),V.playPingTimerId=NaN,gbc(),pU(V,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Kxb=function(V,l){V.state===2&&V.gameReady&&(V.firstClickRecorded?Date.now()-V.clickRecordedMs<V.playClickIntervalMs||(V.clickRecordedMs=Date.now(),pU(V,"PLAY_EVENT_TYPE_PLAY_CLICK")):l&&(sj(V,"ma_fua"),pU(V,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),V.firstClickRecorded=!0,V.clickRecordedMs=Date.now()))};
xVI.prototype.logError=function(V){var l=this,I;_.d(function(H){if(H.nextAddress==1)return V.metadata.externalPostId=l.JSC$14600_miniAppId,I=V.metadata,_.K(H,Promise.race([l.JSC$14600_playNonceResolver.promise,new Promise(function(T){setTimeout(function(){T("")},3E4)})]),2);
I.postPlayNonce=H.yieldResult;V.metadata.localReleaseId=l.localReleaseId;V.loggingError.level="WARNING";_.Gr(V.loggingError,V.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:V.metadata});_.FU(H)})};
var jOI=function(V,l,I,H){var T,x,n,w,N,L;_.d(function(e){if(e.nextAddress==1)return _.K(e,V.JSC$14600_playNonceResolver.promise,2);T=e.yieldResult;x={externalPostId:V.JSC$14600_miniAppId,localReleaseId:V.localReleaseId,postPlayNonce:T,sdkVersion:I,api:l};H!==void 0&&(x.networkRequestsMeasurement={networkRequests:_.lO(H,1),cachedRequests:_.lO(H,2),transferredBytes:_.lO(H,3)},(n=H)==null?0:_.Xr(n,mk,6))&&(x.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((w=_.fA(H,
mk,6))==null?void 0:cn(w,1))||"0",cacheHits:((N=_.fA(H,mk,6))==null?void 0:cn(N,2))||"0",cachedBytes:((L=_.fA(H,mk,6))==null?void 0:cn(L,3))||"0"});_.tF("miniAppSdkUsage",x);_.FU(e)})},LxE=function(V,l,I){var H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p;
_.d(function(Vf){if(Vf.nextAddress==1)return _.K(Vf,V.JSC$14600_playNonceResolver.promise,2);H=Vf.yieldResult;T={externalPostId:V.JSC$14600_miniAppId,localReleaseId:V.localReleaseId,postPlayNonce:H,sdkVersion:I,measurementWindow:{startTimestampMs:String(ZV(l,1)),endTimestampMs:String(ZV(l,2))},frameRate:{averageFrameTimeDeltaMs:Sa(l,3),averageFrameIdleTimeMs:Sa(l,4)}};_.Xr(l,iW,5)&&(T.networkRequests={networkRequests:(x=xU(l))==null?void 0:_.lO(x,1),cachedRequests:(n=xU(l))==null?void 0:_.lO(n,2),
transferredBytes:(w=xU(l))==null?void 0:_.lO(w,3),sameOriginStatusCodeToCounts:Yq6((N=xU(l))==null?void 0:eBK(N,4)),crossOriginStatusCodeToCounts:Yq6((L=xU(l))==null?void 0:eBK(L,5))},(e=xU(l))==null?0:_.Xr(e,mk,6))&&(T.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((k=xU(l))==null?void 0:(X=_.fA(k,mk,6))==null?void 0:cn(X,1))||"0",cacheHits:((r=xU(l))==null?void 0:(E=_.fA(r,mk,6))==null?void 0:cn(E,2))||"0",cachedBytes:((D=xU(l))==null?void 0:(Z=_.fA(D,mk,6))==null?void 0:
cn(Z,3))||"0"});_.Xr(l,jk0,7)&&(T.gameCapture={averageFrameTimeDeltaMs:(S=_.fA(l,jk0,7))==null?void 0:Sa(S,1),averageFrameIdleTimeMs:(p=_.fA(l,jk0,7))==null?void 0:Sa(p,2)});_.tF("miniAppPerformanceMetrics",T);_.FU(Vf)})},eMg=function(V,l,I){var H,T;
return _.d(function(x){if(x.nextAddress==1)return _.K(x,V.JSC$14600_playNonceResolver.promise,2);H=x.yieldResult;T={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:V.JSC$14600_miniAppId,postPlayNonce:H,miniAppReleaseId:V.localReleaseId},derivedDeviceInterface:V.derivedDeviceInterface,adTriggerType:l};T.rejectedReason=I||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.tF("miniAppAdEvent",T);_.FU(x)})};
xVI.prototype.disposeInternal=function(){_.XG.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var pU=function(V,l,I,H){I=I===void 0?{}:I;H=H===void 0?!1:H;var T,x,n,w;_.d(function(N){if(N.nextAddress==1)return T=V.isForeground,x=V.beforeReady,_.K(N,V.JSC$14600_playNonceResolver.promise,2);n=N.yieldResult;w={externalPostId:V.JSC$14600_miniAppId,localReleaseId:V.localReleaseId,derivedDeviceInterface:V.derivedDeviceInterface,postPlayNonce:n,type:l};I.sequenceGroup=n;w.playState=x?"PLAY_STATE_NOT_READY":T?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.tF("miniAppPlayEvent",w,I);
H&&_.rT();_.FU(N)})},sj=function(V,l){var I;
_.d(function(H){if(H.nextAddress==1)return I=(0,_.O_)(),_.K(H,V.JSC$14600_playNonceResolver.promise,2);_.Z8(l,I);_.FU(H)})},$VB=function(V){isNaN(V.playPingTimerId)&&(V.playPingTimerId=_.Hx(function(){V.state!==1&&V.state!==2?_.hF(new _.Yd("[MiniAppPlayLogger] reportPlayPing failed with state "+Tp2[V.state])):pU(V,"PLAY_EVENT_TYPE_PLAY_PING")},V.playPingIntervalMs))},Yq6=function(V){return Array.from(V.entries()).map(function(l){var I=_.U(l);
l=I.next().value;I=I.next().value;return{key:l,value:I}})};var kfP=_.g7("show_mini_app_ad_frequency_cap_ms",0),Fxr=function(){this.showAdIntervalMs=kfP;this.isRateLimited=!0},XhV=function(V,l){setTimeout(function(){return V.isRateLimited=!1},V.showAdIntervalMs);
V.showMiniAppAdCommand=l.showMiniAppAdCommand;V.isEmbeddedInWebview=l.isEmbeddedInWebview;V.playLogger=l.playLogger},yVQ=function(V,l){var I;
return _.d(function(H){if(H.nextAddress==1){if(!V.showMiniAppAdCommand||!V.isEmbeddedInWebview)return H.return(zMh(V,l,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(V.isRateLimited)return H.return(zMh(V,l,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));V.adResolver=new _.IQ;I=DON(new PDN,l);ue(V.showMiniAppAdCommand,ZhZ(I));V.isRateLimited=!0;setTimeout(function(){return V.isRateLimited=!1},V.showAdIntervalMs);
return _.K(H,V.adResolver.promise,2)}return H.return(H.yieldResult)})};
Fxr.prototype.onAdFinished=function(V){V=OjB(V);var l;(l=this.adResolver)==null||l.resolve(V)};
var zMh=function(V,l,I){var H;return _.d(function(T){if(T.nextAddress==1)T=_.K(T,(H=V.playLogger)==null?void 0:eMg(H,J$c(l),I),2);else{var x=T.return;var n=new vvB;n=_.gm(n,1,2);T=x.call(T,n)}return T})};var t6u=new _.Vr("INNERTUBE_MANAGER_TOKEN");var rVP=function(){this.callbacks={}};
rVP.prototype.initialize=function(V){var l=this;this.callbacks=V;window.youtubewebview?window.youtubewebview.onmessage=function(I){Gfb(l,I)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(I){Gfb(l,I)})};
var Gfb=function(V,l){if(l.data)try{var I=IXv(l.data);if(_.KS(I,1)!=null){var H=GAW(_.Rt(I,2));switch(_.Rt(I,1)){case "yt-mini-app-load-audio-state":var T,x;(x=(T=V.callbacks).onAudioStateLoaded)==null||x.call(T,_.DV(H,KO(H,hr,1)));break;case "yt-mute-mini-app":var n,w;(w=(n=V.callbacks).onMuteMiniApp)==null||w.call(n);break;case "yt-unmute-mini-app":var N,L;(L=(N=V.callbacks).onUnmuteMiniApp)==null||L.call(N);break;case "yt-playable-exit":var e,k;(k=(e=V.callbacks).onExit)==null||k.call(e);break;
case "yt-post-play-nonce":var X,r;(r=(X=V.callbacks).onPostPlayNonceReceived)==null||r.call(X,Wn(H,2,hr));break;case "yt-confirm-exit-mini-app":var E,D;(D=(E=V.callbacks).confirmExitMiniApp)==null||D.call(E);break;case "yt-confirm-exit-mini-app-edu":var Z,S;(S=(Z=V.callbacks).confirmExitMiniAppEdu)==null||S.call(Z);break;case "yt-benchmarking-response":var p,Vf;(Vf=(p=V.callbacks).onNativeBenchmarkingMessageReceived)==null||Vf.call(p,Wn(H,2,hr));break;case "yt-mini-app-load-3p-consent-state":var C,
By;(By=(C=V.callbacks).multiplayer3pAckStateLoaded)==null||By.call(C,_.DV(H,KO(H,hr,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var lN,wW;(wW=(lN=V.callbacks).exitMiniAppSeenStateLoaded)==null||wW.call(lN,_.DV(H,KO(H,hr,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var o1,h1;(h1=(o1=V.callbacks).onNavigateToNewMiniApp)==null||h1.call(o1);break;case "yt-game-data-available":var ec,Zg;(Zg=(ec=V.callbacks).onGameDataAvailable)==null||Zg.call(ec,Wn(H,2,hr));break;case "yt-pause-mini-app":var Va,
wb;(wb=(Va=V.callbacks).onPauseMiniApp)==null||wb.call(Va);break;case "yt-resume-mini-app":var CK,CZ;(CZ=(CK=V.callbacks).onResumeMiniApp)==null||CZ.call(CK);break;case "yt-playable-ad-finished":var ME,Hw;(Hw=(ME=V.callbacks).onAdFinished)==null||Hw.call(ME,Wn(H,2,hr))}}else _.hF(Error("Uh"))}catch(uZ){_.Gr(Error("Vh"))}else _.hF(Error("Wh"))};var h0y=function(V){this.rpcErrorCode=V};var AQ=function(V,l,I){this.intervalMs=V;this.apiFunc=l;this.type=I;this.schedulerReady=!0};
AQ.prototype.call=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1){if(l.type!==1&&V===l.cachedValue)return H.return();l.pendingApiRequestResolver||(l.pendingApiRequestResolver=new _.IQ);I=l.pendingApiRequestResolver.promise;l.cachedValue=V;return _.K(H,Enh(l),2)}return H.return(I)})};
AQ.prototype.flush=function(V){V=V===void 0?!1:V;var l=this;return _.d(function(I){return l.cachedValue===void 0?I.return():_.K(I,l.apiFunc(l.cachedValue,V),0)})};
var Enh=function(V){var l,I,H;return _.d(function(T){switch(T.nextAddress){case 1:if(!V.schedulerReady||!V.pendingApiRequestResolver)return T.return();V.schedulerReady=!1;l=V.pendingApiRequestResolver;V.pendingApiRequestResolver=void 0;_.jd(T,2);if(V.cachedValue===void 0){T.jumpTo(4);break}return _.K(T,V.apiFunc(V.cachedValue),5);case 5:I=T.yieldResult,l.resolve(I);case 4:_.Rv(T,3);break;case 2:H=_.kE(T),l.reject(H);case 3:setTimeout(function(){return _.d(function(x){V.schedulerReady=!0;return _.K(x,
Enh(V),0)})},V.intervalMs),_.FU(T)}})};var Z_1=window.location.origin+"/miniapp_cloudsaves",PVt=[400,401],JVP=_.g7("cloud_save_game_data_rate_limit_ms",3E3),PYb=function(V){var l=this;this.JSC$14644_miniAppId=V;this.loadAttempts=0;this.cloudSaveIntervalMs=JVP;this.initialDownloadDataSucceeded=!1;this.JSC$14644_playNonceResolver=new _.IQ;this.scottyUploadRateLimiter=new AQ(this.cloudSaveIntervalMs,function(I,H){return ong(l,I,H)},2);
this.downloadDataPromise=hME(this);this.downloadDataPromise.then(function(){l.initialDownloadDataSucceeded=!0}).catch(function(){})},DVE=function(V,l){l.then(function(I){return V.JSC$14644_playNonceResolver.resolve(I)})},Zdg=function(V){return _.d(function(l){return V.cachedData===void 0?l.return(V.downloadDataPromise):l.return(V.cachedData)})},SqB=function(V,l){return _.d(function(I){V.cachedData=l;
if(!V.initialDownloadDataSucceeded)throw Error("Xh");return _.K(I,V.scottyUploadRateLimiter.call(l),0)})},RM2=function(){return new Promise(function(V){setTimeout(V,1E3,"")})},QOE=function(V,l){var I,H;
return _.d(function(T){if(T.nextAddress==1)return I=V.JSC$14644_miniAppId,_.K(T,Promise.race([V.JSC$14644_playNonceResolver.promise,RM2()]),2);H={"X-YouTube-MiniAppId":I,"X-YouTube-PostPlayNonce":T.yieldResult};"DELEGATED_SESSION_ID"in _.Eo&&PJt(l,H);return T.return(H)})},ong=function(V,l,I){I=I===void 0?!1:I;
return _.d(function(H){return oHy()?_.z("enable_cloud_save_error_popup_after_retry")?H.return(new Promise(function(T,x){var n,w,N,L,e;return _.d(function(k){switch(k.nextAddress){case 1:n=0,w=!0,L=N=null;case 2:if(!(w&&n++<2)){k.jumpTo(4);break}_.jd(k,5);return _.K(k,cVg(V,l,I),7);case 7:N=k.yieldResult;w=N.ok?!1:!PVt.includes(N.status);_.Rv(k,2);break;case 5:L=e=_.kE(k);w=D8T(L);k.jumpTo(2);break;case 4:N?N.ok?(ub(V,JVP),T()):(ub(V,V.cloudSaveIntervalMs*2),x(Error("Yh`"+String(N.status),{cause:{rpcErrorCode:N.status}}))):
(ub(V,V.cloudSaveIntervalMs*2),x(L||Error("Zh"))),_.FU(k)}})})):H.return(new Promise(function(T,x){var n,w;
return _.d(function(N){if(N.nextAddress==1){if(V.JSC$14644_miniAppId==="")return x(Error("$h")),N.return();_.jd(N,2);return _.K(N,cVg(V,l,I),4)}if(N.nextAddress!=2)return n=N.yieldResult,n.ok?(ub(V,JVP),T()):(ub(V,V.cloudSaveIntervalMs*2),x(Error("Yh`"+String(n.status),{cause:{rpcErrorCode:n.status}}))),_.Rv(N,0);w=_.kE(N);ub(V,V.cloudSaveIntervalMs*2);x(w);_.FU(N)})})):H.return()})},cVg=function(V,l,I){I=I===void 0?!1:I;
var H,T,x;return _.d(function(n){if(n.nextAddress==1)return H=_.rg((new TextEncoder).encode(l)),T=Svy(),_.K(n,QOE(V,T),2);x=n.yieldResult;return n.return(fetch(T,{method:"POST",body:new Blob([H]),headers:x,keepalive:I}))})},hME=function(V){var l,I;
return _.d(function(H){if(H.nextAddress==1){if(!oHy())return H.return("");if(V.JSC$14644_miniAppId==="")throw Error("$h");if(V.loadAttempts>2)return H.return(V.downloadDataPromise);_.jd(H,2);return _.K(H,WxE(V),4)}if(H.nextAddress!=2)return l=H.yieldResult,H.return(l);I=_.kE(H);if(D8T(I)&&++V.loadAttempts<2)return H.return(hME(V));throw I;})},WxE=function(V){var l,I,H,T,x;
return _.d(function(n){switch(n.nextAddress){case 1:return _.jd(n,2),l=Svy(),_.K(n,QOE(V,l),4);case 4:return I=n.yieldResult,_.K(n,fetch(l,{method:"GET",headers:I}),5);case 5:return H=n.yieldResult,H.ok?_.K(n,H.text(),6):n.return(Promise.reject(Error("ai`"+String(H.status),{cause:new h0y(H.status)})));case 6:return T=n.yieldResult,n.return((new TextDecoder).decode(_.TE(T)));case 2:return x=_.kE(n),n.return(Promise.reject(x))}})},ub=function(V,l){V.cloudSaveIntervalMs=l;
V.scottyUploadRateLimiter.intervalMs=V.cloudSaveIntervalMs};
PYb.prototype.flush=function(){var V=this;return _.d(function(l){return V.initialDownloadDataSucceeded?_.K(l,V.scottyUploadRateLimiter.flush(!0),0):l.return()})};var bd6=Tj(Hq(1),lF(1)),qqY=Tj(Hq(1),lF(3)),vj=function(V){this.callbacks=V};
_.B=vj.prototype;_.B.onAudioToggled=function(V,l){(l===void 0||l)&&_.wd("yt-mini-app-is-audio-enabled",V,2592E3)};
_.B.onPause=function(){this.onAudioToggled(!1,!1)};
_.B.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.B.returnNativeBenchmarkingMessage=function(){};
_.B.sendGameData=function(){};
_.B.sendStartGameFrameCapture=function(){};
var R0q=function(V,l,I){this.callbacks=V;var H=this;this.sdkVersion=new _.IQ;this.channel=new bKw(_.Ik({destination:window,iframe:l,origin:(new URL(I.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var T=Oj;var x=Hq(5);var n=new INW;n=_.qU(n,1,1E4);x=_.Yn(x,4,daZ,n);T(H,x);H.onAudioToggled(H.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){H.sdkVersion.resolve("")},1E4)};
_.t(R0q,vj);_.B=R0q.prototype;_.B.onAudioToggled=function(V,l){vj.prototype.onAudioToggled.call(this,V,l===void 0?!0:l);l=Oj;var I=Hq(2),H=new VuE;V=_.Bv(H,1,V);V=_.Yn(I,3,daZ,V);l(this,V)};
_.B.onPause=function(){vj.prototype.onPause.call(this);Oj(this,Hq(3))};
_.B.onResume=function(){vj.prototype.onResume.call(this);Oj(this,Hq(4))};
_.B.returnNativeBenchmarkingMessage=function(V){var l=Oj,I=Hq(6);var H=lF(_.Xr(V,ak,1)?1:2);V=_.Xr(V,ak,1)?V:null;H=_.Yn(H,5,IG,V);l(this,Tj(I,H))};
_.B.sendGameData=function(V){var l=Oj,I=Hq(7);V=_.Yn(I,5,daZ,V);l(this,V)};
_.B.sendStartGameFrameCapture=function(){Oj(this,Hq(9))};
var CU=function(V,l,I){var H,T,x;return _.d(function(n){if(n.nextAddress==1)return H=V.callbacks,T=H.onSdkCalled,x=l,_.K(n,V.sdkVersion.promise,2);T.call(H,x,n.yieldResult,I);_.FU(n)})};
R0q.prototype.onMessage=function(){var V=this;return s1b(Ud,function(l){var I,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C,By,lN,wW,o1,h1,ec,Zg,Va,wb,CK,CZ,ME,Hw,uZ,EN,ya,Dv,Tf,Oq,Ut,BY,ON,vY,LZ,oi;return _.d(function(lZ){switch(lZ.nextAddress){case 1:if(!keZ(l.data))return _.hF(Error("bi")),lZ.return();I=_.Qh(l.data,1);_.z("enable_iframe_message_get_type_via_fields")&&(H=l.data,I=T=_.Qh(H,1));switch(I){case 8:if(l.data.hasMetadata()){var st=V.sdkVersion,jo=st.resolve;var gb=l.data.getMetadata();gb=_.Rt(gb,
1);jo.call(st,gb);clearTimeout(V.sdkVersionTimeoutId)}break;case 6:return lZ.jumpTo(2);case 16:if(!_.zp(l.data,NUo,14,n7))return lZ.return();x=_.bQ(l.data,NUo,14,n7);(w=(n=V.callbacks).onGameFrameReceived)==null||w.call(n,x);return lZ.return();case 1:if(st=_.bQ(l.data,BUb,2,n7))switch(_.Qh(st,1)){case 1:V.callbacks.onFirstFrameReady();if(_.z("enable_network_request_logging_on_game_events")&&_.Xr(st,iW,4)){CU(V,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.fA(st,iW,4));break}CU(V,"MINI_APP_SDK_API_FIRST_FRAME_READY");
break;case 2:(gb=(jo=V.callbacks).onGameReady)==null||gb.call(jo);if(_.z("enable_network_request_logging_on_game_events")&&_.Xr(st,iW,4)){CU(V,"MINI_APP_SDK_API_GAME_READY",_.fA(st,iW,4));break}CU(V,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.zp(st,VX,3,xaB))V.callbacks.onResourceLoaded(_.bQ(st,VX,3,xaB))}return lZ.return();case 3:return lZ.jumpTo(3);case 4:return lZ.jumpTo(4);case 2:return lZ.jumpTo(5);case 9:return lZ.jumpTo(6);case 10:return V.callbacks.onClick(),lZ.return();case 5:return lZ.jumpTo(7);
case 11:if(!_.zp(l.data,fi,9,n7))return lZ.return();N=_.bQ(l.data,fi,9,n7);(e=(L=V.callbacks).onBenchmarkingMessageReceived)==null||e.call(L,N);st=l.reply;jo=Hq(1);gb=lF(1);var Bh=new fi;var Zv=new Uint8Array(wc1(N,KO(N,aV3,6))|0);Bh=nO(Bh,5,aV3,_.hB(Zv,!1));gb=_.Yn(gb,5,IG,Bh);st.call(l,Tj(jo,gb));return lZ.return();case 12:return lZ.jumpTo(8);case 13:return lZ.jumpTo(9);case 15:if(!_.z("enable_open_yt_content"))return l.reply(qqY),lZ.return();if(!_.zp(l.data,wiJ,12,n7))return l.reply(Tj(Hq(1),lF(2))),
lZ.return();st=_.bQ(l.data,wiJ,12,n7);k=_.Rt(st,1);V.callbacks.onOpenYTContent(k);l.reply(bd6);return lZ.return();case 14:return lZ.jumpTo(10);default:return lZ.return()}lZ.jumpTo(0);break;case 2:if(!_.zp(l.data,Bq,5,n7))return lZ.return();jo=l.data;st=KO(jo,n7,5);jo=jo.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(st=yIW(jo,jo[_.NN]|0,Bq,st))||(st=Bq[ZZW])||(st=new Bq,kJ(st.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),st=Bq[ZZW]=st);X=st;st=_.m2(X,gN,1,_.i4());r=_.U(st);E=r.next();
case 12:if(E.done){lZ.jumpTo(14);break}D=E.value;Z=new _.Yd;Z.level=_.Qh(D,2)===1?"WARNING":"ERROR";S=c$K(D.getSource());return _.K(lZ,V.sdkVersion.promise,15);case 15:p={source:S,sdkVersion:lZ.yieldResult};_.V6(_.Fr(D,6))!=null?(Z.message=D.getMessage(),Z.stack=_.Rt(D,5),p.sdkErrorType=WTJ(_.Qh(D,6)),_.V6(_.Fr(D,7))!=null&&(p.sdkApi=b_1(_.Qh(D,7)))):Z.stack=void 0;C=Vf=void 0;(C=(Vf=V.callbacks).onError)==null||C.call(Vf,{loggingError:Z,metadata:p});E=r.next();lZ.jumpTo(12);break;case 14:return lZ.return();
case 3:return _.jd(lZ,16),st=V.callbacks,jo=st.onSave,gb=_.bQ(l.data,lNZ,4,n7),gb=_.Rt(gb,1),_.K(lZ,jo.call(st,gb),18);case 18:l.reply(bd6);_.Rv(lZ,17);break;case 16:return By=_.kE(lZ),lN=vl,wW=By,o1=V.callbacks,h1="MINI_APP_SDK_API_SAVE_DATA",_.K(lZ,V.sdkVersion.promise,19);case 19:lN(wW,o1,h1,lZ.yieldResult),l.reply(qqY);case 17:return _.K(lZ,CU(V,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return lZ.return();case 4:return _.jd(lZ,21),_.K(lZ,V.callbacks.onLoad(),23);case 23:ec=lZ.yieldResult;st=l.reply;
jo=Hq(1);gb=lF(1);Bh=new lNZ;Bh=_.Fm(Bh,1,ec);gb=_.Yn(gb,3,IG,Bh);st.call(l,Tj(jo,gb));_.Rv(lZ,22);break;case 21:return Zg=_.kE(lZ),Va=vl,wb=Zg,CK=V.callbacks,CZ="MINI_APP_SDK_API_LOAD_DATA",_.K(lZ,V.sdkVersion.promise,24);case 24:Va(wb,CK,CZ,lZ.yieldResult),l.reply(qqY);case 22:return _.K(lZ,CU(V,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return lZ.return();case 5:_.jd(lZ,26);V.callbacks.onSendHighScore(hK(_.bQ(l.data,LJ3,3,n7).getValue()));l.reply(Tj(Hq(1),lF(1)));_.Rv(lZ,27);break;case 26:return ME=
_.kE(lZ),Hw=vl,uZ=ME,EN=V.callbacks,ya="MINI_APP_SDK_API_SEND_SCORE",_.K(lZ,V.sdkVersion.promise,28);case 28:Hw(uZ,EN,ya,lZ.yieldResult),l.reply(qqY);case 27:return _.K(lZ,CU(V,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return lZ.return();case 6:if(!_.zp(l.data,eK3,8,n7)){lZ.jumpTo(30);break}st=_.bQ(l.data,eK3,8,n7);st=_.Qh(st,1);return _.K(lZ,CU(V,b_1(st)),30);case 30:return lZ.return();case 7:return st=l.reply,jo=Hq(1),gb=lF(1),Bh=V.callbacks.getLanguage(),gb=nO(gb,4,IG,Yh(Bh)),st.call(l,Tj(jo,
gb)),_.K(lZ,CU(V,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return lZ.return();case 8:if(!_.zp(l.data,YYb,10,n7))return lZ.return();Dv=_.bQ(l.data,YYb,10,n7);Tf=V.callbacks;Oq=Tf.onSdkPerformanceUpdate;return _.K(lZ,V.sdkVersion.promise,33);case 33:return Oq.call(Tf,Dv,lZ.yieldResult),lZ.return();case 9:st=l.data;if(_.KS(st,KO(st,n7,11))==null)return l.reply(Tj(Hq(1),lF(2))),lZ.return();Ut=Wn(l.data,11,n7);V.callbacks.onShareInviteCode(Ut);l.reply(bd6);return _.K(lZ,CU(V,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),
34);case 34:return lZ.return();case 10:if(_.zp(l.data,iji,13,n7)){lZ.jumpTo(35);break}return _.K(lZ,V.callbacks.onShowMiniAppAd(2),36);case 36:return BY=lZ.yieldResult,l.reply(Tj(Hq(1),nDa(BY))),_.K(lZ,CU(V,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return lZ.return();case 35:st=_.bQ(l.data,iji,13,n7);a:switch(_.Qh(st,1)){case 1:st={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:st={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:st={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}ON=
st;vY=ON.adType;LZ=ON.sdkApi;st=V.callbacks;jo=st.onShowMiniAppAd;gb=_.bQ(l.data,iji,13,n7);gb=_.Rt(gb,2);return _.K(lZ,jo.call(st,vY,gb||void 0),38);case 38:return oi=lZ.yieldResult,l.reply(Tj(Hq(1),nDa(oi))),_.K(lZ,CU(V,LZ),39);case 39:return lZ.return()}})})};
var Oj=function(V,l){_.d(function(I){V.channel.send(l);_.FU(I)})},OJ=function(V,l,I){this.callbacks=V;
var H=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;V=DVq(l,(new URL(I.toString())).origin);this.gameSnacks=new lvN(V);this.gameSnacks.page.onReady(function(){H.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){H.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var T,x;(x=(T=H.callbacks).onGameReady)==null||x.call(T)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(T,x){try{H.callbacks.onSendHighScore(x)}catch(n){vl(n,H.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(T,x){var n;return _.d(function(w){if(w.nextAddress==1)return _.jd(w,2),_.K(w,H.callbacks.onSave(H.decoder.decode(x)),4);if(w.nextAddress!=2)return _.Rv(w,0);n=_.kE(w);vl(n,H.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return w.return()})});
this.gameSnacks.storage.onLoad(function(){var T,x;return _.d(function(n){if(n.nextAddress==1)return _.jd(n,2),_.K(n,H.callbacks.onLoad(),4);if(n.nextAddress!=2)return T=n.yieldResult,n.return(H.encoder.encode(T));x=_.kE(n);vl(x,H.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return n.return(H.encoder.encode(""))})});
this.gameSnacks.init()};
_.t(OJ,vj);OJ.prototype.onAudioToggled=function(V,l){vj.prototype.onAudioToggled.call(this,V,l===void 0?!0:l);var I;(I=this.gameSnacks)==null||I.audio.update(V)};
OJ.prototype.onPause=function(){vj.prototype.onPause.call(this);if(_.z("enable_gamesnacks_pause_resume_bugfix")){var V;(V=this.gameSnacks)==null||V.game.pause()}};
OJ.prototype.onResume=function(){vj.prototype.onResume.call(this);if(_.z("enable_gamesnacks_pause_resume_bugfix")){var V;(V=this.gameSnacks)==null||V.game.resume()}};var M6b=qv1,sOB=_.W1(function(V){var l=V.data;var I=V.loadingProgress;V=_.U(_.xi("",void 0,"LYYTdd"));var H=V.next().value,T=V.next().value;V=_.U(_.xi(!1,void 0,"K0waae"));var x=V.next().value,n=V.next().value,w=[],N=function(){return"transform: scaleX("+(_.ES(I)||0)+")"},L=null,e=function(){var E;
return(E=l()&&L)!=null?E:L=l().showAnniversaryAnimation?6:M6b()};
_.t0(function(){var E;if(l().timeOutMessages&&((E=l().timeOutMessages)==null?0:E.length)){L=null;E=_.U(w);for(var D=E.next();!D.done;D=E.next())clearTimeout(D.value);w.length=0;MHy(l().timeOutMessages,w,T,n)}});
var k=function(){return!!l().persistentErrorMessageTitle},X=function(){return I!==void 0},r=function(){return l().title};
return _.Y("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var E,D=(E=l().backgroundImage)==null?void 0:E.sources,Z;return(D==null?0:D.length)?"background-image: url("+((Z=D[0])==null?void 0:Z.url)+")":
""}}),_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.Y(_.NS,{cond:function(){return!k()},
then:function(){var E={};return _.Y("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.Y(_.VN,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+e()},
data:function(){var D="loading_animation_"+e();return{animationConfig:{name:D,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+D+".json",loop:!0,autoplay:!0}}}})),_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.Y(_.NS,{cond:r,
then:function(){return _.Y("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},r)}}),_.Y("p",{class:_.ii("mini-app-splash-screen-view-model-wiz__timeout-message",(E["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return x()},E)),
"aria-live":"polite"},H),_.Y(_.NS,{cond:X,then:function(){return _.Y("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.Y("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:N}))}})))}}),_.Y(_.NS,{cond:k,
then:function(){return _.Y("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.Y("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return l().persistentErrorMessageTitle}),_.Y(_.NS,{cond:function(){return!!l().persistentErrorMessageDescription},
then:function(){return _.Y("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return l().persistentErrorMessageDescription})}}))}})))},"nd");var phQ=new _.Vr("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var AV2=sS;sS=function(V){function l(I){if(I){var H,T;(H=I.__spec)==null||(T=H.didUnmount)==null||T.call(H);for(H=0;H<I.childNodes.length;H++)l(I.childNodes[H])}}
AV2==null||AV2(V);jz(function(){for(var I=0;I<V.length;I++)l(V[I])})};var ujE=_.W1(function(V){var l=V.data;var I=V.score;var H=V.formattedScore;var T=V.onScoreChanged;var x=V.isEmbeddedInWebview;var n=_.pO(),w=function(){var r;return _.y(l==null?void 0:(r=l())==null?void 0:r.buttonViewModel,_.Gb)},N=function(){var r;
return(I==null?void 0:I())||Number(l==null?void 0:(r=l())==null?void 0:r.lastScore)||0},L=function(){var r;
return(H==null?void 0:H())||((r=w())==null?void 0:r.title)||""},e,k=1;
if(V=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))V=Number(V),k=isNaN(V)?1:V/100;_.t0(function(){T==null||T(N());var r;var E=_.to((r=w())==null?void 0:r.onTap);if(E){r=_.y(E,hdv);var D,Z,S;r=_.y(r==null?void 0:(D=r.panelLoadingStrategy)==null?void 0:(Z=D.inlineContent)==null?void 0:(S=Z.dialogViewModel)==null?void 0:S.customContent,Sm3)}else r=void 0;if(D=r)D.score=L()});
V=_.Bu(function(){var r,E,D=l==null?void 0:(r=l())==null?void 0:(E=r.loggingDirectives)==null?void 0:E.trackingParams;D&&_.dF(_.F().resolve(_.ef),D);return!1});
_.XW(function(){if(n.value){var r=n.value.querySelector("button"),E=w();r&&E&&sd1(r,E);aV("yt-share-playable-with-high-score",function(){var D=N().toString(),Z=l==null?void 0:l().onShareHighScoreCommand,S=l==null?void 0:l().highScoreShareClientParamIdentifier,p=x==null?void 0:x();Z&&(p?(S=new ksN,D=_.Fm(S,2,D),ue(Z,D.JSC$10115_serializeBinary())):S&&(_.F().resolve(phQ).clientParams.set(S,{miniAppClientParams:{highScore:D}}),r$N(Z,!1)))})}});
var X=function(){var r=w();r&&(I==null?0:I())&&r.accessibilityText&&(r.accessibilityText=r.accessibilityText.replace(e,L()));e=L();return{numberValue:N(),numberText:L(),heightPx:36,fontSizeMultiplier:k,shouldAnimate:!(I==null||!I())&&!0}};
return _.Y("yt-mini-app-score-button-view-model",{class:function(){var r={};return _.l8("mini-app-score-button-view-model-wiz",(r["mini-app-score-button-view-model-wiz--is-visible"]=N()!==0,r))},
el:n,"on:click":V},_.uO(!1,function(){return _.Y("span",{style:"display:none;"},N)}),_.Y(_.rw,{data:function(){var r;
return l==null?void 0:(r=l())==null?void 0:r.buttonViewModel}},{buttonViewModel:function(r){return _.Y(_.Db,{data:r.data,
animatedTextProps:X})}}))},"od");var fCP=_.W1(function(V){var l,I=(l=_.N9("yt-mini-app-is-theater-mode-enabled"))!=null?l:!1,H=_.z("enable_playable_container_save_button"),T=_.z("enable_play_next_destination_page_in_toolbar");l={};return _.Y("ytm-mini-app-top-bar-view-model",null,_.Y("div",{class:_.ii("yt-mini-app-top-bar-view-model",(l["yt-mini-app-top-bar-view-model--mobile"]=!1,l["yt-mini-app-top-bar-view-model--desktop"]=!0,l))},_.Y("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.Y(_.NS,{cond:function(){var x;
return!!V.data().backButtonEdu&&!((x=V.isExitMiniAppSeen)==null?0:x.call(V))},
then:function(){return _.Y(_.rw,{data:function(){return V.data().backButtonEdu}},{buttonViewModel:_.Db})},
else:function(){return _.Y(_.rw,{data:function(){return V.data().backButton}},{buttonViewModel:_.Db})}}),_.Y(_.NS,{cond:function(){return V.data().viewAllButton&&!0},
then:function(){return _.Y(_.rw,{data:function(){return V.data().viewAllButton}},{buttonViewModel:_.Db})}}),_.Y(_.NS,{cond:function(){return V.data().title&&!0},
then:function(){return _.Y("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return V.data().title})}})),_.Y("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.Y(_.NS,{cond:function(){var x;
return(x=V.isDesktopPlayPage)==null?void 0:x.call(V)},
then:function(){return _.Y(_.CN,null,_.Y(vnB,{highScoreButton:function(){return V.data().highScoreButton},
score:V.score,formattedScore:V.formattedScore,onScoreChanged:V.onScoreChanged,isEmbeddedInWebview:V.isEmbeddedInWebview}),_.Y(Odr,{enableSaveButton:function(){return _.ES(H)},
saveButton:function(){return V.data().saveButton},
isSaved:V.isSaved,onSaveToggled:function(){return V.onSaveToggled}}),_.Y(CYI,{menuButton:function(){return V.data().menuButton}}))},
else:function(){return _.Y(_.NS,{cond:function(){return!1},
then:function(){return _.Y(_.rw,{data:function(){return V.data().playPageButton}},{buttonViewModel:function(x){return _.Y(_.Db,{data:x.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.Y(vnB,{highScoreButton:function(){return V.data().highScoreButton},
score:V.score,formattedScore:V.formattedScore,onScoreChanged:V.onScoreChanged,isEmbeddedInWebview:V.isEmbeddedInWebview})}})}})),_.Y("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.Y(_.rw,{data:function(){return V.data().muteButton}},{toggleButtonViewModel:function(x){var n=x.data;
return _.Y(_.o6,{data:function(){var w,N;return Object.assign({},n(),{isToggled:(N=(w=V.isAudioEnabled)==null?void 0:w.call(V))!=null?N:!0})},
onToggle:V.onAudioToggled,useOutlinedIcon:!0})}}),_.Y(_.rw,{data:function(){return V.data().theatreModeButton}},{toggleButtonViewModel:function(x){var n=x.data;
return _.Y("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.Y(_.o6,{data:function(){return Object.assign({},n(),{isToggled:I})},
useOutlinedIcon:!0}))}}),_.Y(aC6,{fullscreenButton:function(){return V.data().fullscreenButton}}),_.Y(_.NS,{cond:function(){return _.ES(T)&&V.data().viewAllButton&&!1},
then:function(){return _.Y(_.rw,{data:function(){return V.data().viewAllButton}},{buttonViewModel:_.Db})}}),_.Y(_.NS,{cond:function(){var x;
return!((x=V.isDesktopPlayPage)==null?0:x.call(V))},
then:function(){return _.Y(_.CN,null,_.Y(Odr,{enableSaveButton:function(){return _.ES(H)},
saveButton:function(){return V.data().saveButton},
isSaved:V.isSaved,onSaveToggled:function(){return V.onSaveToggled}}),_.Y(CYI,{menuButton:function(){return V.data().menuButton}}))}}))))},"pd");
fCP.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var CYI=_.W1(function(V){return _.Y("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.Y(_.rw,{data:V.menuButton},{buttonViewModel:_.Db}))},"qd"),Odr=_.W1(function(V){var l=V.enableSaveButton;
var I=V.saveButton;var H=V.isSaved;var T=V.onSaveToggled;return _.Y(_.NS,{cond:function(){return l()&&!(I==null||!I())},
then:function(){return _.Y("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.Y(_.rw,{data:function(){var x=_.y(I==null?void 0:I(),_.EB),n;return{toggleButtonViewModel:Object.assign({},x,{isToggled:(n=H==null?void 0:H())!=null?n:!(x==null||!x.isToggled)})}}},{toggleButtonViewModel:function(x){return _.Y(_.o6,{data:x.data,
onToggle:T})}}))}})},"rd"),vnB=_.W1(function(V){var l=V.highScoreButton;
var I=V.score;var H=V.formattedScore;var T=V.onScoreChanged;var x=V.isEmbeddedInWebview;return _.Y(_.rw,{data:l},{miniAppScoreButtonViewModel:function(n){return _.Y("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.Y(ujE,{data:n.data,score:I,formattedScore:H,onScoreChanged:T,isEmbeddedInWebview:x}))}})},"sd"),aC6=_.W1(function(V){V=V.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.Y(_.CN,null):_.Y(_.rw,{data:V},{buttonViewModel:_.Db})},"td");_.gnY=new _.Vr("DESKTOP_CURRENT_PAGE");var Hku=_.W1(function(V){var l=V.data;var I=_.z("force_active_time_logging_webview"),H=_.z("skip_logs_after_end_event"),T=!1,x=new rVP,n=void 0,w=void 0,N=_.F().resolve(t6u),L=new Fxr,e=void 0,k=void 0,X=[],r=void 0,E=void 0,D=!1,Z=!1,S=!1,p=!1,Vf=new _.IQ,C=_.F().resolve(phQ),By=_.F().resolve(_.MW),lN=_.F().resolve(_.Cs(jy)),wW,o1=(wW=_.F().resolve(_.Cs(_.gnY)))==null?void 0:wW.getCurrentPage(),h1=!1,ec=0,Zg=function(pK){pK.preventDefault();return pK.returnValue=""},Va;
V=_.U(_.xi(!((Va=_.N9("yt-mini-app-is-audio-enabled"))!=null&&!Va),void 0,"HKETIe"));var wb=V.next().value,CK=V.next().value,CZ;Va=_.U(_.xi(!((CZ=_.N9("exit-mini-app-seen-state"))==null||!CZ),void 0,"YikM9"));var ME=Va.next().value,Hw=Va.next().value;CZ=_.U(_.xi(!1,void 0,"iTNqCb"));var uZ=CZ.next().value,EN=CZ.next().value;CZ=_.U(_.xi(void 0,void 0,"bU3Vbf"));var ya=CZ.next().value,Dv=CZ.next().value;CZ=_.U(_.xi(void 0,void 0,"qd4Zt"));var Tf=CZ.next().value,Oq=CZ.next().value;CZ=_.U(_.xi(!0,void 0,
"Cqc83e"));var Ut=CZ.next().value,BY=CZ.next().value;CZ=_.U(_.xi(!1,void 0,"oHovIe"));var ON=CZ.next().value,vY=CZ.next().value;CZ=_.U(_.xi(void 0,void 0,"aeN11"));var LZ=CZ.next().value,oi=CZ.next().value;CZ=_.U(_.xi(0,void 0,"AEGRyb"));var lZ=CZ.next().value,st=CZ.next().value,jo=_.sZ(),gb=function(){return l().isEmbeddedInWebview},Bh=function(){return l().hasPlayNextShelf};
aV("yt-page-type-changed",function(pK){if(_.z("enable_is_mini_app_page_active_bugfix"))pK.detail.newPageSubtype!=="mini_app"&&Ut()&&JV();else if(pK=_.gxK()==="mini_app",pK!==Ut())if(BY(pK),pK){var UP;pK=(UP=l().playableId)==null?void 0:UP.toString();pK!==void 0&&window.location.href.includes(pK)&&!Z&&(p=!0,Zv(),g$(zE.value))}else pK||JV()});
aV("yt-action",function(pK){pK.detail.actionName==="yt-engagement-panel-visible-changed"&&pK.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&pK.detail.args[2]==="PAmini_app_panel"&&JV();_.z("enable_is_mini_app_page_active_bugfix")?pK.detail.actionName==="yt-history-load"&&!Ut()&&(o1==null?0:o1.active)?(BY(!0),Zv(),g$(zE.value)):pK.detail.actionName==="yt-history-load"&&Ut()&&!l().isEmbeddedInWebview&&uK():Ut()&&pK.detail.actionName==="yt-history-load"&&(p?p=!1:l().isEmbeddedInWebview||uK())});
_.rx(function(){sP()});
_.t0(function(){Zv()});
var Zv=function(){var pK=l().playableId,UP=l().localReleaseId,Fj=l().derivedDeviceInterface;if(Z)_.hF(new _.Yd("[MiniAppContainerViewModel] onEnter was called more than once"));else{Z=!0;n=new xVI(pK,UP,Fj,document.visibilityState==="visible");dVV(n);w=new PYb(pK);mVV(N,pK);XhV(L,{showMiniAppAdCommand:l().showMiniAppAdCommand,isEmbeddedInWebview:l().isEmbeddedInWebview,playLogger:n});Ylt()&&(E=document.body.style.backgroundColor,_.pu(document.body,"background-color","black"));J9();vw();Vf=new _.IQ;
if(l().isEmbeddedInWebview){if(pK=(new URLSearchParams(window.location.search)).get("postPlayNonce"))nnr(n,pK),h1=!0;x.initialize({onAudioStateLoaded:function(hI){PN(hI)},
onMuteMiniApp:function(){PN(!1)},
onUnmuteMiniApp:function(){PN(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(hI){h1||(nnr(n,hI),h1=!0)},
confirmExitMiniApp:function(){var hI,xp,D3;return _.d(function(Gf){if(Gf.nextAddress==1)return l().confirmExitMiniAppCommand?_.K(Gf,Promise.race([Vf.promise,Promise.resolve(!1)]),2):Gf.return();(hI=Gf.yieldResult)?!l().confirmExitMiniAppCommandEdu||(D3=(xp=ME)==null?void 0:xp())!=null&&D3?BN(l().confirmExitMiniAppCommand):(BN(l().confirmExitMiniAppCommandEdu),_.wd("exit-mini-app-seen-state","true",2592E6)):BN(l().closeMiniAppCommand);_.FU(Gf)})},
onNativeBenchmarkingMessageReceived:function(hI){hI=gvN(_.z4t(hI));if(_.zp(hI,_.Ay,3,CQi)){var xp=_.bQ(hI,_.Ay,3,CQi),D3=GI1();var Gf=hK(D3.getSeconds())-hK(xp.getSeconds());xp=_.lO(D3,2)-_.lO(xp,2);Gf<0&&xp>0?(Gf+=1,xp-=1E9):Gf>0&&xp<0&&(--Gf,xp+=1E9);Gf=(new ak).setSeconds(Gf);Gf=_.AI(Gf,2,_.lE(xp),0);_.j6(hI,1,Gf)}var aJ;(aJ=k)==null||aJ.returnNativeBenchmarkingMessage(hI)},
multiplayer3pAckStateLoaded:function(hI){uK(hI)},
exitMiniAppSeenStateLoaded:function(hI){l().confirmExitMiniAppCommandEdu&&Hw(hI)},
onNavigateToNewMiniApp:function(){BN(l().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(hI){hI=new URLSearchParams(hI);var xp=void 0;hI.has("invite_code")&&(xp=new TUo,hI=hI.get("invite_code"),xp=_.Fm(xp,1,hI));if(hI=xp){var D3;(D3=k)==null||D3.sendGameData(hI)}},
onPauseMiniApp:function(){T=!0;sw()},
onResumeMiniApp:function(){T=!0;dp()},
onAdFinished:function(hI){L.onAdFinished(hI)}});
l().showMultiplayer3pConsentDialogCommand||Vf.resolve(!0);BN(l().onContainerReadyCommand)}else nnr(n),Vf.resolve(!0);DVE(w,UVu(n));UVu(n).then(function(hI){hI={miniAppPlayData:{postPlayNonce:hI}};var xp,D3=(xp=l().loggingDirectives)==null?void 0:xp.trackingParams;D3&&_.x7().stateChanged(D3,hI)});
pK=l().showSignInDialogCommand;!oHy()&&pK&&(_.wd("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),BN(pK));l().confirmExitMiniAppCommand&&lN&&(pK=y$f(l().confirmExitMiniAppCommand))&&(lN.customConfirmationCommand=pK)}},sP=function(){if(!H||Z)E&&_.pu(document.body,"background-color",E),D=!1,r&&r.release(),w.flush().catch(function(pK){_.hF(pK)}),N.flush().catch(function(pK){_.hF(pK)}),Np6(n),mx(),k=void 0,H&&(Z=!1),idQ(C)},JV=function(){BY(!1);
sP();EN(!1);oi(void 0);Dv(void 0);Oq(void 0);ec=0;st(0);H||(Z=!1)},sw=function(){var pK;
(pK=k)==null||pK.onPause();r&&r.release();w.flush().catch(function(UP){_.hF(UP)});
N.flush().catch(function(UP){_.hF(UP)});
whb(n)},dp=function(){var pK;
(pK=k)==null||pK.onResume();vw();pK=n;pK.isForeground=!0;pU(pK,"PLAY_EVENT_TYPE_PLAY_RESUME")},PN=function(pK){var UP;
(UP=k)==null||UP.onAudioToggled(pK);CK(pK)},uK=function(pK){l().showMultiplayer3pConsentDialogCommand&&(l().isEmbeddedInWebview&&pK!==void 0&&Vf.resolve(pK),!pK&&_.gxK()==="mini_app"&&BN(l().showMultiplayer3pConsentDialogCommand))},r$=function(){var pK,UP,Fj,hI;
return _.d(function(xp){if(xp.nextAddress==1){if(H&&!Z)return xp.return();!l().isLivestream||l().disableVideoCapture||(pK=k)!=null&&pK.sendStartGameFrameCapture();UP=(new URL(window.location.href)).searchParams;if(UP.has("invite_code")){var D3=new TUo,Gf=UP.get("invite_code");Fj=_.Fm(D3,1,Gf);(hI=k)==null||hI.sendGameData(Fj)}uZ()||(EN(!0),D3=n,D3.state!==1?_.hF(new _.Yd("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Tp2[D3.state])):(_.V7("mini_app_ids_without_game_ready").includes(D3.JSC$14600_miniAppId)&&
(D3.gameReady=!0),D3.state=2,D3.beforeReady=!1,sj(D3,"ma_ffr"),pU(D3,"PLAY_EVENT_TYPE_PLAY_READY")));return _.K(xp,Vf.promise,2)}BN(l().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();l().isEmbeddedInWebview||uK();_.FU(xp)})},$i=function(){var pK=n;
pK.gameReady=!0;sj(pK,"ma_gr")},r7=function(pK){var UP;
return _.d(function(Fj){if(Fj.nextAddress==1)return _.jd(Fj,2),_.K(Fj,SqB(w,pK),4);if(Fj.nextAddress!=2)return _.Rv(Fj,0);UP=_.kE(Fj);BN(l().showSavingErrorPopupCommand);throw UP;})},zf=function(){var pK,UP;
return _.d(function(Fj){if(Fj.nextAddress==1)return _.jd(Fj,2),_.K(Fj,Zdg(w),4);if(Fj.nextAddress!=2)return pK=Fj.yieldResult,Fj.return(pK);UP=_.kE(Fj);BN(l().showLoadingErrorDialogCommand);throw UP;})},CT=function(pK){n.logError(pK)},s_=function(pK,UP,Fj){jOI(n,pK,UP,Fj)},kl=function(pK,UP){LxE(n,pK,UP)},Oo=function(){!I&&l().isEmbeddedInWebview||_.aS();
Kxb(n,!0);D||(window.addEventListener("beforeunload",Zg,{capture:!0}),D=!0)},vk=function(pK){var UP,Fj,hI,xp,D3,Gf,aJ;
return _.d(function(fv){if(fv.nextAddress==1)return N&&(!e||e<pK)&&pK>0?_.K(fv,VdQ(N,pK),3):fv.jumpTo(0);UP=fv.yieldResult;Fj=_.U(UP);hI=Fj.next().value;xp=Fj.next().value;D3=hI;Gf=xp;((aJ=D3)==null?0:aJ.displayString)&&Gf&&(Dv(Gf),Oq(D3.displayString));_.FU(fv)})},aA=function(pK){var UP=l().onBenchmarkingMessageReceivedCommand;
if(UP){var Fj=GI1();_.Yn(pK,3,CQi,Fj);ue(UP,mUN(pK))}},FJ=function(pK){var UP=l().onGameFrameReceivedCommand;
if(UP){var Fj=new PDN;var hI=new J4b;var xp=ZV(pK,1);hI=_.Yl(hI,1,xp);pK=_.Rt(pK,2);pK=_.Fm(hI,2,pK);Fj=_.j6(Fj,2,pK);ue(UP,ZhZ(Fj))}},Sc=function(){var pK=new URLSearchParams(window.location.search);
if(l().isEmbeddedInWebview&&pK&&pK.get("override_hl")==="true"&&pK.get("hl"))return pK.get("hl");pK=document.documentElement.lang;return pK!==""?pK:_.QH},bN=function(pK){var UP=l().onShareInviteCodeCommand;
if(UP)if(l().isEmbeddedInWebview){var Fj=new ksN;pK=_.Fm(Fj,1,pK);ue(UP,XVv(pK))}else Fj=l().inviteCodeShareClientParamIdentifier,C.clientParams.set(Fj,{miniAppClientParams:{inviteCode:pK}}),BN(UP)},eo=function(pK){var UP,Fj,hI;
return _.d(function(xp){if(xp.nextAddress==1)return UP=l().onMiniAppOpenYtContentRequested,N&&_.z("enable_open_yt_content")&&UP?_.K(xp,lKg(N,pK),3):xp.jumpTo(0);Fj=xp.yieldResult;if(Fj==="OK")if(l().isEmbeddedInWebview){var D3=new tJW;hI=nO(D3,2,hr,Yh(pK));ue(UP,ECZ(hI))}else By.clientData.set("video_id",pK),BN(UP);_.FU(xp)})},xh=function(pK){ec+=_.lO(pK,3);
pK=Math.min(Math.log(1+ec/15E6*9)/Math.log(10),.99);st(pK);xJ(pK)},xJ=_.ym(function(pK){var UP=l().updateLoadingProgressCommand;
if(UP){var Fj=new tJW;pK=nO(Fj,3,hr,_.ai(pK));ue(UP,ECZ(pK))}},100),$J=function(pK){return yVQ(L,pK)},vw=function(){var pK,UP;
((pK=_.g8c())==null?void 0:(UP=pK.wakeLock)==null?void 0:UP.request)!=null&&_.g8c().wakeLock.request("screen").then(function(Fj){r=Fj}).catch(function(){})},zE=_.sZ();
_.t0(function(){l().isSupportedCountry&&(oHy()||_.z("enable_sign_in_promo")||!l().showSignInDialogCommand?g$(zE.value):BN(l().onMiniAppReadyCommand))});
var y5=function(){return _.Y("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return uZ()?0:-1},
el:zE})},g$=function(pK,UP){UP=UP===void 0?!1:UP;
var Fj=JB();Fj&&(UP||Fj.toString()!==pK.getAttribute("src"))&&(k=Qd3(l().source,{isAudioEnabled:wb,onFirstFrameReady:r$,onGameReady:$i,onSave:r7,onLoad:zf,onError:CT,onSdkCalled:s_,onSdkPerformanceUpdate:kl,onClick:Oo,onSendHighScore:vk,onBenchmarkingMessageReceived:aA,getLanguage:Sc,onShareInviteCode:bN,onResourceLoaded:xh,onOpenYTContent:eo,onShowMiniAppAd:$J,onGameFrameReceived:FJ},pK,Fj),nt(pK,"load",function(){sj(n,"ma_il");nt(pK,"load",function(){g$(pK,!0)})}),_.AV(pK,Fj))},JB=function(){var pK=
l().url;
if(pK&&(pK=_.GQ(pK),pK!==null)){if(l().source&&l().source==="MINI_APP_SOURCE_GAMESNACKS")pK=_.UL(pK,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.z("enable_origin_query_parameter_bugfix")){var UP=_.PA(_.nKq(pK.toString()));UP=new URLSearchParams(UP||"");UP.set("origin",window.location.origin);UP=UP.toString();pK=_.tV(pK).toString();pK=_.Xj(WVb.exec(pK)[0]+(UP.trim()?"#"+UP:""))}return pK}},xz=function(){var pK={};
pK=_.ii("yt-mini-app-container-view-model__loading-screen",(pK["yt-mini-app-container-view-model__loading-screen--fade-out"]=uZ,pK));var UP=function(){return uZ()?1:lZ()};
return _.Y("div",{class:pK},_.Y(_.rw,{data:function(){return l().splashScreen}},{miniAppSplashScreenViewModel:function(Fj){return _.Y(sOB,{data:Fj.data,
loadingProgress:UP})}}))},J9=function(){X=[];
X.push(_.NR(window,"visibilitychange",function(){S||T&&gb()||(document.visibilityState==="visible"?dp():sw())}));
X.push(_.NR(window,"pagehide",function(){sP()}));
X.push(_.NR(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&jo.value.dispatchEvent(new Event("tap"))},0)}));
X.push(_.NR(jo.value,"pointerdown",function(){Kxb(n,!1)},!0));
X.push(_.NR(jo.value,"pause",function(){S=!0;sw()}));
X.push(_.NR(jo.value,"play",function(){S=!1;dp()}));
X.push(_.NR(jo.value,"exit",function(){sP()}));
var pK=navigator.keyboard,UP=pK&&pK.lock;X.push(_.NR(window,eei,function(){vY(Fja());Fja()?(l().hasPlayNextShelf&&PX("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),L0("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),UP&&pK.lock(["Escape"])):(l().hasPlayNextShelf&&L0("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),PX("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),UP&&pK.unlock())}));
l().showMultiplayer3pConsentDialogCommand&&X.push(_.NR(window,"yt-playables-ack-3p-data-usage",function(){IKh(N)}));
l().confirmExitMiniAppCommandEdu&&X.push(_.NR(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.wd("exit-mini-app-seen-state","true",2592E6)}))},mx=function(){X.forEach(function(pK){$7(pK)});
window.removeEventListener("beforeunload",Zg,{capture:!0})},BN=function(pK){pK&&r$N(pK,l().isEmbeddedInWebview||!1)},L0=function(pK,UP){pK=_.U(jo.value.getElementsByClassName(pK));
for(var Fj=pK.next();!Fj.done;Fj=pK.next())Fj.value.classList.add(UP)},PX=function(pK,UP){pK=_.U(jo.value.getElementsByClassName(pK));
for(var Fj=pK.next();!Fj.done;Fj=pK.next())Fj.value.classList.remove(UP)};
return function(){var pK={};pK=_.ii("yt-mini-app-container-view-model",(pK["yt-mini-app-container-view-model--desktop"]=!0,pK["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return l().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},pK["yt-mini-app-container-view-model--ios-web-view"]=Ylt(),pK["yt-mini-app-container-view-model--no-top-bar"]=function(){return!l().topBar},pK["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return l().hasPlayNextShelf},pK["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return l().hasPlayNextShelf},pK["yt-mini-app-container-view-model--show-peek-below"]=function(){return!ON()&&l().hasPlayNextShelf},pK));
var UP={};UP=_.ii("yt-mini-app-container-view-model__content",(UP["yt-mini-app-container-view-model__content--desktop-content"]=!0,UP["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return l().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},UP["yt-mini-app-container-view-model--desktop-play-page"]=function(){return l().hasPlayNextShelf},UP));
return _.Y("mini-app-container-view-model",{el:jo},_.Y("div",{class:pK},_.Y(_.NS,{cond:function(){return l().topBar&&!ON()},
then:function(){return _.Y(_.rw,{data:function(){return l().topBar}},{miniAppTopBarViewModel:function(Fj){return _.Y(fCP,{data:Fj.data,
isAudioEnabled:wb,onAudioToggled:function(hI){PN(hI)},
score:ya,formattedScore:Tf,onScoreChanged:function(hI){e=hI},
isEmbeddedInWebview:gb,isSaved:LZ,onSaveToggled:function(hI){oi(hI)},
isExitMiniAppSeen:ME,isDesktopPlayPage:Bh})}})}}),_.Y("div",{class:UP},_.Y(_.NS,{cond:Ut,
then:function(){return y5()}}),_.Y(_.NS,{cond:function(){return!l().isEmbeddedInWebview},
then:function(){return xz()}}))))}()},"ud");
Hku.idomCompat=!0;_.MR(Hku,"mini-app-container-view-model",{props:{data:_.b9}});var T4h=_.W1(function(V){var l=V.data;return _.Y("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.Y("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Bu(function(){var I=l().onTap;I&&_.EI(I)})},_.Y(_.NS,{cond:function(){return l().icon},
then:function(I){return _.Y(_.dq,{icon:function(){return I().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.Y("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return l().title})))},"vd");
T4h.idomCompat=!0;var B4b=_.W1(function(V){var l=_.sZ(),I=_.U(_.xi(void 0,void 0,"kFCJ0c")),H=I.next().value,T=I.next().value;I=_.U(_.xi(void 0,void 0,"PIPgWd"));var x=I.next().value,n=I.next().value;I=_.U(_.xi(void 0,void 0,"rV66ob"));var w=I.next().value,N=I.next().value,L=function(){var S=H();return S!==void 0?Math.abs(S):void 0},e=function(){var S=L();
return S===void 0||S<=3},k=function(){var S=L();
var p=x(),Vf=w();S=S!==void 0&&p!==void 0&&Vf!==void 0?p-Vf-S:void 0;return S===void 0||S<=3},X=function(S){l.value&&l.value.scrollBy({top:0,
left:(_.h6("HTML_DIR")==="rtl"?-1:1)*S*l.value.clientWidth,behavior:"smooth"})},r=function(){var S;
T((S=l.value)==null?void 0:S.scrollLeft);var p;n((p=l.value)==null?void 0:p.scrollWidth);var Vf;N((Vf=l.value)==null?void 0:Vf.clientWidth)},E=function(){X(-.5)},D=function(){X(.5)};
I=_.Bu(function(){r()});
_.kG(function(){r();if(l.value){var S=new ResizeObserver(r);S.observe(l.value);_.rx(function(){S.disconnect()})}});
var Z={};return _.Y("yt-sponsorships-scrollable-shelf",{class:_.ii("ytdSponsorshipsScrollableShelfHost",V.className)},_.Y("div",{class:_.ii("ytdSponsorshipsScrollableShelfContent",(Z.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return!e()&&!k()},Z.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return!e()&&k()},Z.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return e()&&!k()},Z)),
el:l,"on:scroll":I},V.children),_.Y(_.NS,{cond:function(){return!e()},
then:function(){return _.Y(_.rw,{data:function(){return V.data().previousButton}},{buttonViewModel:function(S){return _.Y(_.Db,{data:S.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:E})}})}}),_.Y(_.NS,{cond:function(){return!k()},
then:function(){return _.Y(_.rw,{data:function(){return V.data().nextButton}},{buttonViewModel:function(S){return _.Y(_.Db,{data:S.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:D})}})}}))},"wd");
B4b.idomCompat=!0;var U0Y=_.W1(function(V){var l=V.data;return _.Y("yt-sponsorships-hub",{class:"ytdSponsorshipsHubHost"},_.Y("div",{class:"ytdSponsorshipsHubHeader"},_.Y("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.Y("div",{class:"ytdSponsorshipsHubAvatar"},_.Y(_.rw,{data:function(){return l().avatar}},{avatarViewModel:_.SA})),_.Y(_.NS,{cond:function(){return l().badgeImage},
then:function(I){return _.Y("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.Y("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.Y("div",{class:"ytdSponsorshipsHubBadge"},_.Y(_.cX,{data:I,targetWidth:24,targetHeight:24,alt:""}))))}})),_.Y("div",{class:"ytdSponsorshipsHubDetails"},_.Y("div",{class:"ytdSponsorshipsHubTierName"},function(){return l().tierName}),_.Y("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return l().membershipType}),_.Y("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return l().membershipDurationOrExpiry})),_.Y("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.Y(_.rw,{data:function(){return l().manageButton}},{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.Y(_.rw,{data:function(){return l().actionMenuButton}},{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.Y("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return l().perksTitle}),_.Y(B4b,{data:function(){return{previousButton:l().previousPerkButton,
nextButton:l().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.Y("div",{class:"ytdSponsorshipsHubPerkCards"},_.Y(_.rw,{data:function(){return l().perkCards}},{sponsorshipsHubPerkCardViewModel:T4h}),_.Y(_.NS,{cond:function(){return l().viewAllPerksButton},
then:function(I){return _.Y(x0u,{data:I})}}))))},"xd");
U0Y.idomCompat=!0;var x0u=_.W1(function(V){var l=V.data;return _.Y("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.Y(_.rw,{data:function(){return l().button}},{buttonViewModel:_.Db}),_.Y("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.Y("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return l().title}),_.Y("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return l().subtitle})))},"yd");
x0u.idomCompat=!0;_.MR(U0Y,"yt-sponsorships-hub",{props:{data:_.b9}});_.nEP=_.W1(function(V){var l=V.data;return _.Y("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.na({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var I;return((I=l().badgeCutoutRadius)!=null?I:14)+"px"}})},_.Y("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.Y(_.rw,{data:function(){return l().startAvatar}},{avatarViewModel:_.SA}),_.Y(_.rw,{data:function(){return l().endAvatar}},{avatarViewModel:_.SA})),_.Y(_.rw,{data:function(){return l().badge}},{contentPreviewImageViewModel:function(I){return _.Y("div",
{class:"ytDualAvatarViewModelBadge"},_.Y(_.wn,{data:I.data}))}}))},"zd");
_.nEP.idomCompat=!0;var d02=_.W1(function(V){var l=V.data;var I,H=!((I=_.F().resolve(_.Cs(_.DA)))==null||!I());V=_.Ny(function(){var N,L,e=H?(N=l().header)==null?void 0:N.backgroundColorDarkMode:(L=l().header)==null?void 0:L.backgroundColorLightMode;if(e!==void 0)return _.rP(e)},void 0,"dAycSe");
I=_.Ny(function(){var N,L;return H?(N=l().header)==null?void 0:N.backgroundImagePart1Dark:(L=l().header)==null?void 0:L.backgroundImagePart1Light},void 0,"H8o0qd");
var T=_.Ny(function(){var N,L;return H?(N=l().header)==null?void 0:N.backgroundImagePart2Dark:(L=l().header)==null?void 0:L.backgroundImagePart2Light},void 0,"SsF9Sd"),x=_.sZ(),n=!1,w=function(){var N=x.value;
if(N&&!n){N=N.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk");for(var L=0;L<N.length;++L){var e=N[L];if(e instanceof HTMLElement){e.scrollIntoView({block:"center",inline:"nearest",behavior:"smooth"});n=!0;break}}}};
_.XW(function(){var N=x.value;if(N){var L=new ResizeObserver(w);L.observe(N);_.rx(function(){L.disconnect()})}});
return _.Y("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost",el:x},_.Y("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.Y("div",{class:"ytdSponsorshipsPerksListHeader",style:_.na({"background-color":V})},_.Y("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.Y(_.NS,{cond:I,then:function(N){var L={};return _.Y("div",{class:_.ii((L.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=H,L.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!H,L))},_.Y(_.cX,{data:N,
alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.Y("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.Y(_.NS,{cond:T,
then:function(N){var L={};return _.Y("div",{class:_.ii((L.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=H,L.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!H,L))},_.Y(_.cX,{data:N,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.Y("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.Y(_.rw,{data:function(){var N;
return(N=l().header)==null?void 0:N.dualAvatar}},{dualAvatarViewModel:_.nEP})))),_.Y("div",{class:"ytdSponsorshipsPerksListBody"},_.Y("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return l().title}),_.Y(_.NS,{cond:function(){return l().perks},
then:function(N){return _.Y(_.Ks,{each:N},function(L,e){var k={};return _.Y("div",{class:_.ii("ytdSponsorshipsPerksListPerkContainer",(k.ytdSponsorshipsPerksListSelectedPerk=function(){var X=e(),r=l().selectedPerkIndex;return X===r},k))},_.Y(_.NS,{cond:function(){return e()>0},
then:function(){return _.Y("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.Y("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.Y(_.NS,{cond:function(){return L.icon},
then:function(X){return _.Y(_.dq,{icon:function(){return X().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.Y("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.Y("div",{class:"ytdSponsorshipsPerksListPerkTitle"},L.title),_.Y("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.Y(_.Ni,{text:L.description})),_.Y(_.NS,{cond:function(){return L.instructions},
then:function(){var X,r;return _.Y("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.Y("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(X=L.instructions)==null?void 0:X.title),_.Y("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.Y(_.Ni,{text:(r=L.instructions)==null?void 0:r.text})))}}))),_.Y(_.NS,{cond:function(){return L.emoji},
then:function(X){return _.Y("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.Y(_.Ks,{each:function(){return X()}},function(r){return _.Y(_.cX,{data:r,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.Y($02,{data:L}))})}})))},"Ad");
d02.idomCompat=!0;var $02=_.W1(function(V){var l=V.data;var I=function(n,w){return n===w},H=function(){var n=l();
n=_.y(n==null?void 0:n.badgesShelf,rto);return n!==void 0&&n!==null?n:{previousButton:{},nextButton:{}}},T=_.pO(),x=function(){var n=T.value;
if(n){var w=n.parentElement;if(w){n=n.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var N=0;N<n.length;++N){var L=n[N];if(L instanceof HTMLElement){w.scrollTo({left:L.offsetLeft+L.clientWidth/2-w.clientWidth/2,behavior:"instant"});break}}}}};
_.XW(function(){var n=T.value;if(n){var w=new ResizeObserver(x);w.observe(n);_.rx(function(){w.disconnect()})}});
return _.Y("div",null,_.Y(_.NS,{cond:function(){return l().badges},
then:function(n){return _.Y(B4b,{data:H},_.Y("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:T},_.Y(_.Ks,{each:function(){return n()}},function(w,N){var L={},e={},k={};
return _.Y("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.Y(_.NS,{cond:function(){return N()>0},
then:function(){return _.Y("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.Y("div",{class:_.ii("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(L.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return I(N(),l().currentBadgeIndex)},L.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!I(N(),l().currentBadgeIndex)},L))},_.Y("div",{class:_.ii("ytdSponsorshipsPerksListLoyaltyBadge",(e.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return I(N(),
l().currentBadgeIndex)},e.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!I(N(),l().currentBadgeIndex)},e))},_.Y(_.NS,{cond:function(){return w.image},
then:function(X){var r={};return _.Y("div",{class:_.ii((r.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return I(N(),l().currentBadgeIndex)},r.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!I(N(),l().currentBadgeIndex)},r))},_.Y(_.cX,{data:X,
alt:""}))}})),_.Y("div",{class:_.ii("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(k.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return I(N(),l().currentBadgeIndex)},k))},w.title)))})))}}))},"Bd");
$02.idomCompat=!0;_.MR(d02,"yt-sponsorships-perks-list",{props:{data:_.b9}});_.MR(_.W1(function(V){return _.Y("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.Y(_.NS,{cond:function(){return V.data().image},
then:function(l){return _.Y(_.cX,{className:"ytwFantasyEmptyStateViewModelImage",data:l,ariaHidden:!0,alt:""})}}),_.Y(_.Ni,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return V.data().title}}),_.Y(_.Ni,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return V.data().subtitle}}),_.Y(_.rw,{data:function(){return V.data().primaryButton}},{buttonViewModel:function(l){return _.Y(_.Db,{data:l.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Cd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;var I;V=_.U(_.xi(!((I=_.N9("yt-mini-app-is-theater-mode-enabled"))==null||!I),void 0,"CUtq5"));var H=V.next().value,T=V.next().value,x;I=(x=_.F().resolve(_.Cs(fgY)))!=null?x:function(){return _.Y("div",null)};
_.M4("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){T(!0);_.wd("yt-mini-app-is-theater-mode-enabled",!0)});
_.M4("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){T(!1);_.wd("yt-mini-app-is-theater-mode-enabled",!1)});
x={};V={};var n={};return _.Y("mini-app-play-page-renderer",{class:_.ii("miniAppPlayPageRendererHost",(x.miniAppPlayPageRendererHostDetailsView=function(){return!H()},x))},_.Y("div",{class:_.ii("miniAppPlayPageRendererGameContainer",(V.miniAppPlayPageRendererGameContainerDetailsView=function(){return!H()},V))},_.Y(_.rw,{data:function(){return l().containerViewModel}},{miniAppContainerViewModel:Hku}),_.Y(_.NS,{cond:function(){return!H()&&l().description},
then:function(){return _.Y("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.Y("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return l().description}))}})),_.Y("div",{class:_.ii("miniAppPlayPageRendererPlayNextContainer",(n.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!H()},n))},_.Y(_.rw,{data:function(){return l().sectionList}},{sectionListRenderer:I})))},"Dd"),"mini-app-play-page-renderer",{props:{data:_.b9}});var wkQ=function(){var V=_.M.apply(this,arguments)||this;V.isSearch=!1;V.isConstrainedList=!1;V.hasChipsBar=!1;V.inReplyPanel=!1;V.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"}};V.monitorScroll=!0;V.SCROLL_ANIMATION_DURATION_MS=300;V.nextContinuation={continuationType:"sectionListContinuation"};return V};
_.t(wkQ,_.M);_.B=wkQ.prototype;
_.B.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(V){switch(V.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:_.z("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.z("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.B.created=function(){var V=this;this.JSC$14727_scrollAnimation=new _.qW(function(l){V.hostElement.scrollTop=l})};
_.B.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.B.getItemsPath=function(){return"data.contents"};
_.B.replacePrimaryContent=function(V){this.set("data.contents",V)};
_.B.computeHasSortFilter=function(V){return!!V&&!!V.sortFilterSubMenuRenderer};
_.B.computeShouldScrollInPanel=function(V){var l;return!!(V==null?0:(l=V.scrollPaneStyle)==null?0:l.scrollable)};
_.B.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.fY(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.B.scrollToTop=function(){this.hostElement.scrollTop=0};
_.B.scrollToItemSection=function(V){if(V=this.getItemByIdentifier(V))V=this.getScrollPositionForItem(V),this.hostElement.scrollTop!==V&&this.JSC$14727_scrollAnimation.start(this.hostElement.scrollTop,V,this.SCROLL_ANIMATION_DURATION_MS)};
_.B.getItemByIdentifier=function(V){var l=this.contents.querySelectorAll("ytd-item-section-renderer");if(l&&l.length!==0){var I=Array.from(l).findIndex(function(H){return H.sectionIdentifier===V});
return l[I===-1?0:I]}};
_.B.getScrollPositionForItem=function(V){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===V)return 0;V=_.SP(V).y+this.hostElement.scrollTop-_.SP(this.hostElement).y;return Math.min(V,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.vI.Object.defineProperties(wkQ.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.targetId)==="browse-feedFEclips"}}});
var a9=wkQ;a9.prototype.onScroll=a9.prototype.onScroll;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],a9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.lL.YtLazyListBehavior),_.a("design:type",Object)],a9.prototype,"ytLazyListBehavior",void 0);_.O([_.R(_.Vi.YtNextContinuationBehavior),_.a("design:type",Object)],a9.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.R(_.ghY),_.a("design:type",Object)],a9.prototype,"ytBooleanLogicBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],a9.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],a9.prototype,"data",void 0);_.O([_.q({value:2}),_.a("design:type",Number)],a9.prototype,"initialCount",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],a9.prototype,"autoFill",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.a("design:type",Boolean)],a9.prototype,"hasSortFilter",void 0);_.O([_.q({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.a("design:type",Boolean)],a9.prototype,"hideBottomSeparator",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.a("design:type",Boolean)],a9.prototype,"shouldScrollInPanel",void 0);
_.O([_.q(),_.a("design:type",Object)],a9.prototype,"isSearch",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],a9.prototype,"isConstrainedList",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],a9.prototype,"responsiveSizing",void 0);_.O([_.q(),_.a("design:type",Object)],a9.prototype,"hasChipsBar",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],a9.prototype,"pageSubtype",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],a9.prototype,"engagementPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],a9.prototype,"liveChatEngagementPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],a9.prototype,"inReplyPanel",void 0);_.O([_.Ij("#action-button"),_.a("design:type",HTMLElement)],a9.prototype,"actionButton",void 0);_.O([_.q(),_.a("design:type",Object)],a9.prototype,"scrollUpButtonData",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],a9.prototype,"engagementPanelDropdown",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],a9.prototype,"engagementPanelDialog",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],a9.prototype,"isClipList",null);_.O([_.Ij("#contents"),_.a("design:type",HTMLElement)],a9.prototype,"monitorScrollElement",void 0);_.O([_.Ij("#contents"),_.a("design:type",HTMLElement)],a9.prototype,"contents",void 0);
_.O([_.W("scroll"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],a9.prototype,"onScroll",null);a9=_.O([_.A({is:"ytd-section-list-renderer",disableElementRegistration:!0})],a9);
var N4E=_.O7()(a9,"ytd-section-list-renderer",function(){if(agh===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);agh=V}V=agh;return V},{mode:1});var KYE;var jI6;var Y9V;var LYh;var fU=function(){return _.M.apply(this,arguments)||this};
_.t(fU,_.M);fU.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
fU.prototype.onLikeButtonClick=function(V){V.stopPropagation();V.preventDefault()};
_.vI.Object.defineProperties(fU.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)!=null&&V.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
var gs=fU;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],gs.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],gs.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],gs.prototype,"ytRendererStamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],gs.prototype,"data",void 0);
_.O([_.q({selectorArgs:["data.likeStatusEntityKey"],selector:GS}),_.a("design:type",Object)],gs.prototype,"likeStatusEntity",void 0);_.O([_.Q("data","likeStatusEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gs.prototype,"likeButtonRenderer",null);gs=_.O([_.A({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],gs);
_.u(gs,"ytd-slim-metadata-toggle-button-renderer",function(){if(LYh!==void 0)return LYh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return LYh=V},{mode:1});var e72=function(){var V=_.M.apply(this,arguments)||this;V.minimizePipBreakages=_.z("web_pip_minimize_breakages");V.showEqualizer=_.z("web_enable_playlist_video_lockup_equalizer");V.watchColorUpdate=_.z("kevlar_watch_color_update");V.actionMap={};return V};
_.t(e72,_.M);_.B=e72.prototype;_.B.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"}}}};
_.B.computeEditableClass=function(V){return V&&V.menu?"editable":""};
_.B.computeSelected=function(V){return!(V==null||!V.selected)};
_.B.computeUseColorPalette=function(V){return!!((V==null?0:V.lightColorPalette)&&(V==null?0:V.darkColorPalette))};
_.B.computeLargerPlaylistThumbs=function(V,l){return _.z("web_enable_playlist_bigger_thumbnails")&&!l};
_.B.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.B.onYtServiceRequestSent=function(V,l){l.endpoint&&this.isHideEnclosingAction(l.endpoint)&&!this.selected&&Q_v(_.sg(),this.data.videoId)};
_.B.isHideEnclosingAction=function(V){var l=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",V);V=this.get("likeEndpoint.status",V)==="INDIFFERENT";return l||V};
_.B.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.B.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.vI.Object.defineProperties(e72.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var V;return!!(this.withinMiniplayer&&((V=this.data)==null?0:V.actionButtons))}}});
var mI=e72;mI.prototype.onYtServiceRequestSent=mI.prototype.onYtServiceRequestSent;mI.prototype.canReorderChanged=mI.prototype.canReorderChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],mI.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.sE),_.a("design:type",Object)],mI.prototype,"ytdLockupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],mI.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],mI.prototype,"withinMiniplayer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],mI.prototype,"minimizePipBreakages",void 0);_.O([_.q({computed:"computeSelected(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],mI.prototype,"selected",void 0);
_.O([_.q({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],mI.prototype,"useColorPalette",void 0);_.O([_.q({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.a("design:type",Boolean)],mI.prototype,"largerPlaylistThumbs",void 0);_.O([_.q(),_.a("design:type",Object)],mI.prototype,"showEqualizer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],mI.prototype,"canReorder",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],mI.prototype,"touchPersistentDragHandle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],mI.prototype,"handleIsHovered",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],mI.prototype,"watchColorUpdate",void 0);_.O([_.Q("largerPlaylistThumbs"),_.a("design:type",Number),_.a("design:paramtypes",[])],mI.prototype,"thumbnailWidth",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],mI.prototype,"showActionButtons",null);_.O([_.xs("canReorder"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mI.prototype,"canReorderChanged",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],mI.prototype,"onYtServiceRequestSent",null);
mI=_.O([_.A({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],mI);
_.u(mI,"ytd-playlist-panel-video-renderer",function(){if(Y9V!==void 0)return Y9V;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Y9V=V},{mode:2});var kLu=function(){return _.M.apply(this,arguments)||this};
_.t(kLu,_.M);kLu.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
var ib=kLu;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ib.prototype,"data",void 0);ib=_.O([_.A({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],ib);
_.u(ib,"ytd-playlist-panel-supported-items",function(){if(jI6!==void 0)return jI6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return jI6=
V},{mode:1});kG0=!0;Rgo("\\P{N}");var prc;var FYu=_.LT("END_OF_PLAYLIST",void 0,"End of playlist"),Xk2=_.LT("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),z7b=function(){var V=_.M.apply(this,arguments)||this;V.minimizePipBreakages=_.z("web_pip_minimize_breakages");V.updatedCoursePanel=_.z("move_three_dot_menu_to_playlist_panel_header_for_courses");V.reducedPlaylistHeight=_.z("web_playlist_mini_playlist_height");V.hideHeaderText=!1;V.useColorPalette=!1;V.collapsed=!1;V.collapsedPreServerOverride="not_tracked";
V.isHovered=!1;V.modernPanels=_.z("kevlar_watch_modern_panels");V.expandLabel=_.LT("MINIPLAYER_EXPAND_LABEL");V.collapseLabel=_.LT("MINIPLAYER_COLLAPSE_LABEL");V.isFloating=!1;V.metaPanel=!1;V.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};V.currentIndex=void 0;return V};
_.t(z7b,_.M);_.B=z7b.prototype;
_.B.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"}}}};
_.B.created=function(){this.scrollThrottle=new _.le(this.onThrottledScroll,1E3,this)};
_.B.onMouseEnter=function(){this.isHovered=!0};
_.B.onMouseLeave=function(){this.isHovered=!1};
_.B.computeOverflowMenuData=function(V){return V&&V.menu?V.menu:null};
_.B.computeCollapsible=function(V){return!V};
_.B.computeHasPlaylistButtons=function(V){return!(!V||!V.playlistButtons)};
_.B.computeHasSeparateSaveButton=function(V){return!(!V||!V.saveButton)};
_.B.computeHasToolbarButton=function(V,l){return!(!V||!(l||V.saveButton||V.menu))};
_.B.computePlaylistType=function(V){if(V&&V.playlistId)return V.playlistId.substring(0,4)};
_.B.computeCanReorder=function(V){return V?V.playlistId&&V.playlistId.startsWith("TLPQ")?!0:!!V.isEditable&&!V.isInfinite:!1};
_.B.attached=function(){var V=this;try{_.F().resolve(_.cV).setPlaylistComponent(this.hostElement)}catch(l){if(_.z("kevlar_park_on_playlist_token_killswitch"))throw l;_.b1().parkOrScheduleJob(function(){_.F().resolve(_.cV).setPlaylistComponent(V.hostElement)},2,"ci")}_.lJ(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.B.detached=function(){_.Iz(this.hostElement)};
_.B.computeTrailingIcon=function(V,l,I){return I?l?"yt-icons:collapse":"yt-icons:close":l?"yt-icons:expand":_.z("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.B.computeIndexMessage=function(V,l){return vHw(V+1)+" / "+vHw(l)};
_.B.onRenderStamperFinished=function(){if(this.scrollForStampDom){var V=!0;this.isHovered&&(V=!1);if(this.collapsed||this.hidden)V=!1;V&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.B.collapseChanged=function(){var V=this;this.collapsed||(_.t9(this.ytTaskEmitterBehavior.getTaskManager(),function(){V.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.B.hiddenChanged=function(){var V=this;this.hidden||_.t9(this.ytTaskEmitterBehavior.getTaskManager(),function(){V.scrollToCurrentVideo()})};
_.B.setupReordering=function(){var V=_.h(this.hostElement).querySelector("#items");BVo?_.kWv(this.ytReorderableBehavior,V,V,"playlist-drag-handle"):_.kWv(this.ytReorderableBehavior,V,V)};
_.B.scrollToCurrentVideo=function(){var V=this;_.r0.addJob(function(){var l=_.h(V.hostElement).querySelector("#items");if(l){l.style.setProperty("padding-bottom","");var I=_.h(V.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(I){l=I.parentElement||_.ZN(document);var H=l||_.ZN(document);var T=_.SP(I),x=_.SP(H),n=_.qqw(H);if(H==_.ZN(document)){var w=T.x-H.scrollLeft;T=T.y-H.scrollTop}else w=T.x-x.x-n.left,T=T.y-x.y-n.top;I=QOZ(I);x=H.clientHeight-
I.height;n=H.scrollLeft;var N=H.scrollTop;n+=w-(H.clientWidth-I.width)/2;H=new _.og(n,N+(T-x/2));l.scrollLeft=H.x;l.scrollTop=H.y}}},8)};
_.B.dataChanged=function(){var V=this;_.eYN(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Al(this,function(){_.et(V.ytTaskEmitterBehavior.getTaskManager(),function(){V.ytRendererBehavior.markDirty();V.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.B.updateNowPlayingOverlay=function(){_.z("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.B.onPlaylistLockupNowPlaying=function(V,l){l&&(this.activeNowPlayingRenderer=l);this.updateNowPlayingOverlay()};
_.B.onScroll=function(){this.scrollThrottle.fire()};
_.B.onThrottledScroll=function(){var V=this;_.et(this.ytTaskEmitterBehavior.getTaskManager(),function(){V.ytRendererBehavior.markDirty()})};
_.B.onToggleExpanded=function(V){this.collapsible&&_.qv(V).tagName!=="A"&&!_.qi(_.b3(V),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.B.setCollapsed=function(V){this.collapsible&&(this.collapsed=V,_.U4(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.B.handleCollapsedFromData=function(V){if(V){var l=V.playlistPanelCollapseState;l==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||l==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),l=l==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==l&&this.setCollapsed(l)):this.currentPlaylistId!==V.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(l=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==l&&this.setCollapsed(l),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=V.playlistId}};
_.B.handleDrop=function(V){var l=V.currDragItem;V=l.data.playlistSetVideoId;var I=_.qq(l.parentNode.childNodes,l),H=void 0;I>0&&(H=l.parentNode.childNodes[I-1].data.playlistSetVideoId);l=_.sg();if(l.responsePlaylistData&&l.responsePlaylistData.contents){var T=wQW(V,l.responsePlaylistData);l.responsePlaylistData=(0,_.EL.unsafeClone)(l.responsePlaylistData);ht1(l.responsePlaylistData.contents,T,I);l.queueProxy?NMo(l.queueProxy,T,I,V,H):l.playlistProxy&&NMo(l.playlistProxy,T,I,V,H);_.pn(l,_.At(l,l.response?
l.response.autoplayRenderer:void 0))}};
_.B.handleDarkModeChange=function(V){V!==this.isDarkTheme&&(this.isDarkTheme=V)};
_.B.colorPaletteChanged=function(){var V,l=((V=this.data)==null?void 0:V.contents)||[],I;V=_.U(l);for(l=V.next();!l.done;l=V.next()){l=l.value;var H=void 0;if((H=l.playlistPanelVideoRenderer)==null?0:H.selected){V=l.playlistPanelVideoRenderer;H=l=void 0;(I=this.isDarkTheme?(l=V)==null?void 0:l.darkColorPalette:(H=V)==null?void 0:H.lightColorPalette)&&_.Xp(this.hostElement,I);break}}this.useColorPalette=!!I};
_.vI.Object.defineProperties(z7b.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var V,l;return!((V=this.data)==null||!V.playlistId)&&!((l=this.data)==null||!l.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var V=_.F().resolve(_.Cs(_.cV)),l;if(((l=this.data)==null?0:l.contents)&&(V==null?0:V.hasAutoplayData())){var I;if(((I=this.playlistLoopStateEntity)==null?void 0:I.state)==="PLAYLIST_LOOP_STATE_ONE"){if(V=this.data.currentIndex,V!==void 0){var H,T;var x=(H=this.data.contents[V])==null?void 0:(T=H.playlistPanelVideoRenderer)==null?void 0:T.title}}else{var n,w=(n=_.y(V.getAutoplayEndpoint(),_.vU))==null?void 0:n.videoId,N,L;x=(N=this.data.contents.find(function(e){var k;
return((k=e.playlistPanelVideoRenderer)==null?void 0:k.videoId)===w}))==null?void 0:(L=N.playlistPanelVideoRenderer)==null?void 0:L.title}return x}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)!=null&&V.nextVideoLabel?this.nextVideoTitle?_.A5(this.data.nextVideoLabel)+":":FYu:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var V;if(((V=this.data)==null?0:V.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.pW(Xk2);var l;return(l=this.data)==null?void 0:l.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H=(V=this.data)==null?void 0:(l=V.playlistButtons)==null?void 0:(I=l.menuRenderer)==null?void 0:I.topLevelButtons;if(H)for(V=_.U(H),l=V.next();!l.done;l=V.next())if(l=l.value,l.playlistLoopButtonRenderer)return l.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var V;return!!(this.collapsed&&((V=this.data)==null?0:V.nextVideoLabel))}}});
var VR=z7b;VR.prototype.colorPaletteChanged=VR.prototype.colorPaletteChanged;VR.prototype.onPlaylistLockupNowPlaying=VR.prototype.onPlaylistLockupNowPlaying;VR.prototype.updateNowPlayingOverlay=VR.prototype.updateNowPlayingOverlay;VR.prototype.dataChanged=VR.prototype.dataChanged;VR.prototype.hiddenChanged=VR.prototype.hiddenChanged;VR.prototype.collapseChanged=VR.prototype.collapseChanged;VR.prototype.onRenderStamperFinished=VR.prototype.onRenderStamperFinished;VR.prototype.onMouseLeave=VR.prototype.onMouseLeave;
VR.prototype.onMouseEnter=VR.prototype.onMouseEnter;_.O([_.R(_.Da),_.a("design:type",Object)],VR.prototype,"ironResizableBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(Yao.YtPlaylistPanelBehavior),_.a("design:type",Object)],VR.prototype,"ytPlaylistPanelBehavior",void 0);
_.O([_.R(_.AM.YtTaskEmitterBehavior),_.a("design:type",Object)],VR.prototype,"ytTaskEmitterBehavior",void 0);_.O([_.R(_.XGo),_.a("design:type",Object)],VR.prototype,"ytReorderableBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],VR.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],VR.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],VR.prototype,"actionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],VR.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],VR.prototype,"autoplayData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],VR.prototype,"withinMiniplayer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VR.prototype,"minimizePipBreakages",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VR.prototype,"updatedCoursePanel",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VR.prototype,"reducedPlaylistHeight",void 0);_.O([_.q({computed:"setMenuData_(data)"}),_.a("design:type",Object)],VR.prototype,"menuRendererData",void 0);_.O([_.q({computed:"computeOverflowMenuData(data)"}),_.a("design:type",Object)],VR.prototype,"overflowMenuDataTopRow",void 0);_.O([_.q({computed:"computeOverflowMenuData(data)"}),_.a("design:type",Object)],VR.prototype,"overflowMenuData",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VR.prototype,"hideHeaderText",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VR.prototype,"useColorPalette",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.a("design:type",Boolean)],VR.prototype,"collapsible",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VR.prototype,"collapsed",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],VR.prototype,"hidden",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.a("design:type",Boolean)],VR.prototype,"hasPlaylistButtons",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.a("design:type",Boolean)],VR.prototype,"hasSeparateSaveButton",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.a("design:type",Boolean)],VR.prototype,"hasToolbar",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.a("design:type",String)],VR.prototype,"playlistType",void 0);_.O([_.q(),_.a("design:type",Object)],VR.prototype,"isHovered",void 0);_.O([_.q({selectorArgs:["playlistLoopStateEntityKey"],selector:_.oKq}),_.a("design:type",Object)],VR.prototype,"playlistLoopStateEntity",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VR.prototype,"modernPanels",void 0);_.O([_.q({value:56}),_.a("design:type",Number)],VR.prototype,"scrollMargin",void 0);_.O([_.q({computed:"computeCanReorder(data)"}),_.a("design:type",Boolean)],VR.prototype,"canReorder",void 0);_.O([_.q(),_.a("design:type",Object)],VR.prototype,"expandLabel",void 0);_.O([_.q(),_.a("design:type",Object)],VR.prototype,"collapseLabel",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VR.prototype,"isFloating",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VR.prototype,"metaPanel",void 0);_.O([_.q({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.a("design:type",String)],VR.prototype,"trailingIcon",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],VR.prototype,"isDarkTheme",void 0);
_.O([_.q({selector:_.h5}),_.a("design:type",Boolean)],VR.prototype,"miniplayerIsActive",void 0);_.O([_.q({selector:function(V){return V.watch.playerState}}),
_.a("design:type",Number)],VR.prototype,"playerState",void 0);_.O([_.q(),_.a("design:type",Object)],VR.prototype,"activeNowPlayingRenderer",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VR.prototype,"moveThreeDotMenuToTopRow",null);_.O([_.Q("data","autoplayData","playlistLoopStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],VR.prototype,"nextVideoTitle",null);
_.O([_.Q("data","nextVideoTitle"),_.a("design:type",String),_.a("design:paramtypes",[])],VR.prototype,"nextVideoLabel",null);_.O([_.Q("collapsed"),_.a("design:type",String),_.a("design:paramtypes",[])],VR.prototype,"buttonAriaLabel",null);_.O([_.Q("data","playlistId","longBylineText"),_.a("design:type",Object),_.a("design:paramtypes",[])],VR.prototype,"mixLongByLine",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],VR.prototype,"playlistLoopStateEntityKey",null);
_.O([_.W("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VR.prototype,"onMouseEnter",null);_.O([_.W("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VR.prototype,"onMouseLeave",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data","collapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VR.prototype,"showNextVideoHeader",null);
_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VR.prototype,"onRenderStamperFinished",null);_.O([_.b("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VR.prototype,"collapseChanged",null);_.O([_.b("hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VR.prototype,"hiddenChanged",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VR.prototype,"dataChanged",null);_.O([_.b("playerState","miniplayerIsActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VR.prototype,"updateNowPlayingOverlay",null);_.O([_.W("yt-playlist-lockup-now-playing-active"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],VR.prototype,"onPlaylistLockupNowPlaying",null);
_.O([_.b("data","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VR.prototype,"colorPaletteChanged",null);VR=_.O([_.A({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],VR);
_.yeI=_.O7()(VR,"ytd-playlist-panel-renderer",function(){if(KYE===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);KYE=V}V=KYE;return V},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var td6;var lz=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("web_button_rework");return V};
_.t(lz,_.M);lz.prototype.computeShouldButtonBeVertical=function(V,l){return V||l};
lz.prototype.onYtServiceRequestSent=function(V,l){(V=_.y(l.endpoint,_.Cv))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.K6("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:V.status})):this.handleLikeEndpoint(V))};
lz.prototype.computelikeStatusEntityKey=function(V){return V==null?void 0:V.likeStatusEntityKey};
lz.prototype.handleLikeEndpoint=function(V){V.status==="LIKE"?this.JSC$14752_ytdDislikeToggleButtonRenderer.toggle(!1):V.status==="DISLIKE"?this.JSC$14752_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14752_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14752_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.vI.Object.defineProperties(lz.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var V;return f91(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(V=this.likeStatusEntity)==null?void 0:V.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var V;return f91(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(V=this.likeStatusEntity)==null?void 0:V.likeStatus)}}});
var Is=lz;Is.prototype.onYtServiceRequestSent=Is.prototype.onYtServiceRequestSent;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Is.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Is.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Is.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Is.prototype,"vertical",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],Is.prototype,"textTransform",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Is.prototype,"useShortsIcon",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Is.prototype,"underIconLabel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Is.prototype,"modern",void 0);_.O([_.q({value:"left"}),_.a("design:type",String)],Is.prototype,"buttonTooltipPosition",void 0);
_.O([_.q(),_.a("design:type",Object)],Is.prototype,"overrides",void 0);_.O([_.Ij("#like-button"),_.a("design:type",Object)],Is.prototype,"JSC$14752_ytdLikeToggleButtonRenderer",void 0);_.O([_.Ij("#dislike-button"),_.a("design:type",Object)],Is.prototype,"JSC$14752_ytdDislikeToggleButtonRenderer",void 0);_.O([_.Q("data","likeStatusEntity.likeStatus"),_.a("design:type",Object),_.a("design:paramtypes",[])],Is.prototype,"likeButton",null);
_.O([_.Q("data","likeStatusEntity.likeStatus"),_.a("design:type",Object),_.a("design:paramtypes",[])],Is.prototype,"dislikeButton",null);_.O([_.q({computed:"computelikeStatusEntityKey(data)"}),_.a("design:type",String)],Is.prototype,"likeStatusEntityKey",void 0);_.O([_.q({selectorArgs:["likeStatusEntityKey"],selector:GS}),_.a("design:type",Object)],Is.prototype,"likeStatusEntity",void 0);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],Is.prototype,"onYtServiceRequestSent",null);Is=_.O([_.A({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Is);
var reV=_.O7()(Is,"ytd-like-button-renderer",function(){if(td6===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);td6=V}V=td6;return V},{mode:1});_.GLQ={};
_.GLQ.YtConditionalRendererBehavior=[_.m.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(V,l){var I=this,H,T;return _.d(function(x){switch(x.nextAddress){case 1:if(!l)return I.hidden=!0,I.showSpinner=!1,x.return();if((H=V)==null?0:(T=H.visibilityCondition)==null?0:T.mode)switch(V.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return x.jumpTo(5);default:return x.jumpTo(6)}I.showSpinner=
!1;I.hidden=!0;return _.K(x,I.shouldShow_(V),4);case 4:I.hidden=!x.yieldResult;x.jumpTo(0);break;case 5:return _.K(x,I.shouldShow_(V),8);case 8:I.showSpinner=x.yieldResult;I.hidden=!1;x.jumpTo(0);break;case 6:return I.showSpinner=!1,_.K(x,I.shouldShow_(V),9);case 9:I.hidden=!x.yieldResult,_.FU(x)}})},
shouldShow_:function(V){return V&&V.supportedDatas&&V.supportedDatas.rendererVisibilityConditionData&&V.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(V.supportedDatas.rendererVisibilityConditionData.showIf):V&&V.visibilityCondition&&V.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(V.visibilityCondition.showIf):V&&V.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(V.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(V){switch(V){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(V){switch(V){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var V=_.xB(this.hostElement,"yt-get-mdx-status");return V.length==1&&V[0].connected},
isLocationPermissionGranted_:function(){var V;return _.d(function(l){return l.nextAddress==1?navigator.permissions?_.K(l,navigator.permissions.query({name:"geolocation"}),3):l.jumpTo(2):l.nextAddress!=2?(V=l.yieldResult,l.return(Promise.resolve(V.state==="granted"))):l.return(Promise.resolve(!1))})}}];var EEY=function(V,l){l=l===void 0?{}:l;return function(I){var H=document.createElement(V),T;var x=(T=H.polymerController)!=null?T:H;WUy(H,x,I,l);return H}}("yt-icon");var Jer=function(V){var l=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];WcW();_.Aq("ytglobal.ytUtilActivityCallback_",function(){_.U4(V,"yt-user-activity")});
new C0(function(){return l.JSC$14764_onMouseMove});
document.addEventListener("scroll",function(){return l.onScroll});
window.addEventListener("resize",function(){return l.onResize})},oEI=function(V,l,I){l in V.eventJobIds||(I=_.Dk().addLowPriorityJob(function(){_.aS();
delete V.eventJobIds[l]},I),V.eventJobIds[l]=I)};
Jer.prototype.onScroll=function(V){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):V.target===document&&oEI(this,"scroll",200)};
Jer.prototype.onResize=function(){oEI(this,"resize",200)};
Jer.prototype.JSC$14764_onMouseMove=function(){oEI(this,"mousemove",100)};
_.jEZ=function(V){V.scrollEventsToIgnore+=1;V.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){V.scrollEventsToIgnore--},500))};var h7h=function(V){this.element=V;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
h7h.prototype.showFeedbackDialog=function(V,l,I,H){var T=PwE();if(!T)return!1;var x=nmJ();x.productId=T;l&&(x.flow="submit",x.report={description:l});I&&(PwE()==="59"?x.callback=_.Zp(function(){_.tF("userFeedbackEvent",{});I()}):x.callback=_.Zp(I));
x.bucket=H||_.h6("GOOGLE_FEEDBACK_BUCKET","Other");D0g(x);V=Zk2(this,"GFEEDBACK",V);try{_.Oub(x,V)}catch(n){return _.Dp(n),!1}return!0};
h7h.prototype.showHelpDialog=function(V,l,I){var H=this,T=PwE();if(!T)return!1;var x={helpCenterPath:"/youtube",productData:Zk2(this,"GUIDED_HELP",I)};D0g(x);var n=nmJ();n.context=V||x.productData.context||"default";n.defaultHelpArticleId=l;n.enableSendFeedback=!0;(_.SN("gapi.load")||function(w,N){return N()})("client",function(){try{var w=Qx3(T,x);
if(_.z("web_always_load_chat_support")&&!H.chatSupportLoaded)try{w.JSC$7838_loadChatSupport(n),H.chatSupportLoaded=!0}catch(N){}w.startHelp(n)}catch(N){_.Dp(N)}})};
var PwE=function(){var V=_.h6("GOOGLE_FEEDBACK_PRODUCT_ID");V||_.Dp(Error("fi"));return V},D0g=function(V){V&&(V.locale=_.z("kevlar_help_use_locale")?_.h6("INNERTUBE_CONTEXT_HL","en"):_.h6("HTML_LANG","en"))},Zk2=function(V,l,I){var H=V.productData;
delete H.origin;H.device=_.zw();var T;a:{if(T=document.createElement("canvas")){var x=T.getContext("experimental-webgl",{stencil:!0});if(x){var n=x.getExtension("WEBGL_debug_renderer_info");if(n){T=x.getParameter(n.UNMASKED_RENDERER_WEBGL);break a}}if(x=T.getContext("webgl")){T=x.getParameter(x.RENDERER);break a}}T=null}H.gpu=T;H.isSDC=!!_.h6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(T=_.h6("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.EL.extend(H,T);_.xuq(l,H);_.UuJ(H);(V=_.U4(V.element,"yt-get-autonav-pause-debug-state"))&&
V.length&&(H.autonav_pause_state=V[0]);V=_.LG();H.browser_resolution=V.width+"\u00d7"+V.height+"@"+(window.devicePixelRatio||1)+"x";I&&_.EL.extend(H,I);return H};
h7h.prototype.resetProductData=function(){this.productData={}};var S92=function(V){this.feedbackManager=new h7h(V)};
S92.prototype.showFeedbackDialog=function(V,l,I,H){return this.feedbackManager.showFeedbackDialog(V,l,I,H)};
S92.prototype.showHelpDialog=function(V,l,I){return this.feedbackManager.showHelpDialog(V,l,I)};var R7b=function(){this.baseUrl="";this.aTag=document.createElement("a")},JQv=function(V,l,I){I=I===void 0?{}:I;
I.pbj||(I.pbj=1);I=_.r93(l,I);V.baseUrl&&I&&!_.so(I)[1]&&!_.ps(I)&&(l=V.baseUrl,KK(l,"/")&&(l=l.slice(0,-1)),_.Nq(I,"/")&&(I=I.slice(1)),I=l+"/"+I);bY(V.aTag,DC(I||""));return V.aTag.href};
R7b.prototype.fetchData=function(V){return _.VmK(V)};
R7b.prototype.postData=function(V,l){var I={method:"POST"};if(l){for(var H=_.U(Object.keys(l)),T=H.next();!T.done;T=H.next()){T=T.value;var x=l[T];_.m3(x)&&(l[T]=JSON.stringify(x))}I.postParams=l}return _.VmK(V,I)};
_.ouJ=function(V,l,I,H,T){V=JQv(V,l,I);if(!V)throw H=Error("gi"),Object.assign(H,{params:l}),H;return _.VmK(V,T,H)};
R7b.prototype.requestDataForServiceEndpoint=function(V,l){if(_.y(V,_.FyJ))return this.fetchData("/getAccountSwitcherEndpoint");l=l||{};var I=_.y(V,Vlo);I?l.se=I.base64EncodedServiceEndpoint:l.sej=JSON.stringify(V);(I=_.oa())&&_.z("enable_service_ajax_csn")&&(l.csn=I);l.theme=_.Pb();_.y(V,e$N)&&_.h6("DELEGATION_CONTEXT")&&(l.delegation_context=JSON.stringify(_.h6("DELEGATION_CONTEXT")));I=null;for(var H in V)if(KK(H,"Endpoint")||KK(H,"Command")){I=H;break}if(!I){var T=Error("hi");Object.assign(T,{params:V});
_.zJw(T,"WARNING");return new _.UZ(function(n,w){w(T)})}H={name:I};
var x;(I=(x=_.y(V,_.j1))==null?void 0:x.signal)&&(H.signal=I);(x=_.bt(window.location.href))&&x.internalcountrycode&&(H.internalcountrycode=x.internalcountrycode);x="/service_ajax";_.z("debug_forward_web_query_parameters")&&(x=_.R81(x,window.location.search));x=_.MS(x,H);V.clickTrackingParams&&_.f8(x,{itct:V.clickTrackingParams});return this.postData(x,l)};_.QIV=new _.Vr("GFEEDBACK_TOKEN");var ce2;var WYE;var bkI;var q9r;var HE=function(){var V=_.M.apply(this,arguments)||this;V.compact=!1;return V};
_.t(HE,_.M);HE.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
HE.prototype.computeHasIcon_=function(V){return!!V};
HE.prototype.isSignInIcon_=function(V){return V=="yt-icons:prompted_sign_in"};
var TB=HE;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],TB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.GLQ.YtConditionalRendererBehavior),_.a("design:type",Object)],TB.prototype,"ytConditionalRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],TB.prototype,"data",void 0);
_.O([_.q({computed:"computeIcon_(data.icon)"}),_.a("design:type",Object)],TB.prototype,"icon_",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.a("design:type",Boolean)],TB.prototype,"hasIcon_",void 0);_.O([_.q({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.a("design:type",Boolean)],TB.prototype,"signInIcon_",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],TB.prototype,"compact",void 0);
TB=_.O([_.Lm({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],TB);
_.u(TB,"yt-player-error-message-renderer",function(){if(q9r===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;bkI===void 0&&(bkI=document.createElement("template"));var H=bkI;I.call(l,H.content.cloneNode(!0),V.content.firstChild);q9r=V}V=q9r;return V},{mode:2});var Md6;var sIB;var pkE=function(){return _.M.apply(this,arguments)||this};
_.t(pkE,_.M);pkE.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
pkE.prototype.computeIcon_=function(V){return V?"yt-icons:"+V.iconType.toLowerCase():"error_outline"};
var BE=pkE;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],BE.prototype,"data",void 0);_.O([_.q({computed:"computeIcon_(data.icon)"}),_.a("design:type",Object)],BE.prototype,"icon_",void 0);BE=_.O([_.Lm({is:"yt-player-kav-renderer",disableElementRegistration:!0})],BE);
_.u(BE,"yt-player-kav-renderer",function(){if(sIB===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;Md6===void 0&&(Md6=document.createElement("template"));var H=Md6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);sIB=V}V=sIB;return V},{mode:2});_.MR(_.W1(function(V){var l=_.sZ(),I=_.U(_.xi(0,void 0,"gCmSbf")),H=I.next().value,T=I.next().value;I=_.U(_.xi(null,void 0,"Rj9zMe"));var x=I.next().value,n=I.next().value;_.XW(function(){wPg(l.value,T,n);l.value.scrollIntoView()});
I=NGt.bind(null,V.data,H);aV("resize",function(){var w=x();if(H()===1&&w!==null){var N;(N=window.grecaptcha)==null||N.reset(w)}});
return _.Y("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.Y("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.Y("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var w,N;return(w=V.data().accessibility)==null?void 0:(N=w.accessibilityData)==null?void 0:N.label}),_.Y(_.Ni,{text:I,
className:_.ii("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.Y("div",{el:l,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Ed"),"yt-player-captcha-view-model",{props:{data:_.qR}});var KNK=!1;_.AeQ=_.W1(function(V){var l=V.data;return _.Y("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.Y(_.NS,{cond:function(){return l().icon},
then:function(I){return _.Y("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.Y(_.cX,{data:I,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.Y(_.NS,{cond:function(){return l().title},
then:function(I){return _.Y("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.Y(_.Ni,{text:I}))}}),_.Y(_.NS,{cond:function(){return l().description},
then:function(I){return _.Y("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.Y(_.Ni,{text:I}))}}),_.Y(_.rw,{data:function(){return l().primaryButton}},{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.Y(_.rw,{data:function(){return l().secondaryButton}},{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Fd");
_.AeQ.idomCompat=!0;var uUE=_.W1(function(V){var l=V.data;_.ie();return _.Y("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.Y("div",{class:"player-interstitial-renderer-wiz__scrim"},_.Y(_.rw,{data:function(){return l().content}},{interstitialViewModel:_.AeQ})))},"Gd");
uUE.idomCompat=!0;_.MR(uUE,"yt-player-interstitial-renderer",{props:{data:_.b9}});var vEE=function(){var V=_.M.apply(this,arguments)||this;V.noBackground=!1;V.compact=!1;V.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return V};
_.t(vEE,_.M);vEE.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"}}}};
vEE.prototype.onUpdatePlayerErrorMessageCommand_=function(V){if(_.y(V,jGw)){var l;if(V=(l=_.y(V,jGw))==null?void 0:l.newPlayerErrorMessageRenderer)this.data=V}};
var xq=vEE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],xq.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],xq.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],xq.prototype,"status",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xq.prototype,"noBackground",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xq.prototype,"compact",void 0);xq=_.O([_.Lm({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],xq);
var Okb=_.O7()(xq,"yt-playability-error-supported-renderers",function(){if(WYE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;ce2===void 0&&(ce2=document.createElement("template"));var H=ce2;I.call(l,H.content.cloneNode(!0),V.content.firstChild);WYE=V}V=WYE;return V},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var jW3=void 0,LN1=void 0;var FNN=new zsv;var Kl=new _.Vr("ENTITY_STATE_TOKEN"),U2=new _.Vr("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Cwb=function(V){this.store=V;this.tUG=new _.t_0},FtJ=function(V,l,I){var H,T;
if(!(T=((H=l.playabilityStatus)==null?void 0:H.status)!=="OK")){V=V.store;var x;T=l.offlineState&&((x=l.videoDetails)==null?0:x.videoId)?_.z("enable_pl_r_c_cd")?MKf(V.getState().entities,l.videoDetails.videoId):!!j7f(V.getState().entities,l.videoDetails.videoId):!1}if(T)return!0;T=rAw(l);if(T===1){if(_.z("ab_v_vid_sig")){var n,w=(n=l.videoDetails)==null?void 0:n.videoId;if(!w||!I||w!==I){var N;l=new _.Yd("282054944_vid",{fiS:I,slO:(N=l.videoDetails)==null?void 0:N.videoId});_.Gr(l)}}return!0}Af3=
0;var L,e;N=(w=l.auxiliaryUi)==null?void 0:(L=w.messageRenderers)==null?void 0:(e=L.bkaEnforcementMessageViewModel)==null?void 0:e.displayType;if(T!==3&&(N==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||N==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;N={reason:_.iJ(_.LT("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.z("ks_something_wrong_learn_more")?rpK("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.iJ(_.LT("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:_.iJ("282054944")};aKb(l,{playerErrorMessageRenderer:N});return!1},XWf=function(V,l){if(Uoq(l)){_.nY(1,!0);
var I=(I=Uoq(l))&&_.Y8T()?I:void 0;I?(aKb(l,{enforcementMessageViewModel:I}),V.tUG.increment("IN_PLAYER"),_.nY(5)):(V.tUG.increment("SKIP_DISPLAY"),_.nY(2))}},aKb=function(V,l){V.playabilityStatus=Object.assign({},V.playabilityStatus,{status:"ERROR",
errorScreen:l});V.videoDetails=void 0};
Cwb.prototype.handleResponse=function(V,l){if(V.playabilityStatus){var I,H,T,x=(l==null?void 0:(I=l.innerTubeRequest)==null?void 0:I.videoId)||(l==null?void 0:(H=l.innerTubeRequest)==null?void 0:(T=H.playerRequest)==null?void 0:T.videoId);FtJ(this,V,x)&&XWf(this,V)}};
Cwb[mR]=[Kl];var eCc=new _.Vr("ADBLOCK_DETECTION_SERVICE_TOKEN");var HA=function(V){this.hKG=V};
HA.prototype.bindInnertubeChallengeFetcher=function(V){this.hKG.bicf(V)};
HA.prototype.registerChallengeFetchedCallback=function(V){this.hKG.bcr(V)};
HA.prototype.getLatestChallengeResponse=function(){return this.hKG.blc()};var ikY;_.nq=function(V,l,I){var H=this;this.network=V;this.options=l;this.networkStatusManager=I;this.nh=null;if(l.useBotguardEverywhere){var T=new _.IQ;this.nh=T.promise;_.nK.ytAtRC&&_.L6(_.r0,function(){var x,n;return _.d(function(w){if(w.nextAddress==1){if(!_.nK.ytAtRC)return w.return();x=fKE(null);return _.K(w,H.bx(x),2)}n=w.yieldResult;_.nK.ytAtRC&&_.nK.ytAtRC(JSON.stringify(n));_.FU(w)})});
h4f().then(function(x){var n,w,N,L;return _.d(function(e){if(e.nextAddress==1)return x.bindInnertubeChallengeFetcher(function(k){return H.bx(fKE(k))}),_.K(e,F_c(),2);
n=e.yieldResult;w=x.getLatestChallengeResponse();N=w.challenge;if(!N)throw Error("ii");L={challenge:N,mV:IK(N),wl:n,bgChallenge:new V3};T.resolve(L);x.registerChallengeFetchedCallback(function(k){k=k.challenge;if(!k)throw Error("ji");k={challenge:k,mV:IK(k),wl:n,bgChallenge:new V3};H.nh=Promise.resolve(k)});
_.FU(e)})})}else l.preload&&gEP(this,new Promise(function(x){_.et(_.r0,function(){x(m0B(H))},0)}))};
ikY=function(V){var l={preload:!0,useBotguardEverywhere:_.z("attmusi")},I=!1;if(typeof l==="boolean")var H={preload:l};else typeof l==="undefined"?H={preload:!0}:(H=l,I=!!l.zAO);l=I?void 0:new _.ca;_.nq.instance=new _.nq(V,H,l);return _.nq.instance};
_.nq.prototype.lWJ=function(){var V=this;return _.d(function(l){return l.nextAddress==1?_.K(l,Promise.race([V.nh,null]),2):l.return(!!l.yieldResult)})};
_.nq.prototype.eFB=function(V,l,I){var H=this,T,x,n;return _.d(function(w){H.nh===null&&gEP(H,m0B(H));T=!1;x={};n=function(){var N,L,e;return _.d(function(k){switch(k.nextAddress){case 1:return _.K(k,H.nh,2);case 2:N=k.yieldResult;x.challenge=N.challenge;if(!N.wl){"c1a"in N.mV&&(x.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");k.jumpTo(3);break}L=Object.assign({},{c:N.challenge,e:V},l);_.jd(k,4);T=!0;if(_.z("attbs")&&!_.z("attmusi")){e=_.tkv(N.wl,{vo:L});k.jumpTo(6);break}return _.K(k,N.wl.snapshot({vo:L}),
7);case 7:e=k.yieldResult;case 6:e?x.webResponse=e:x.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Rv(k,3);break;case 4:_.kE(k),x.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(V==="ENGAGEMENT_TYPE_PLAYBACK"){var X=N.mV,r={};if(X.c6a){var E=Number(_.h6("DCLKSTAT",0));r.reportingStatus=String(Number(X.c)^(isNaN(E)?0:E))}X.c6b&&(r.broadSpectrumDetectionResult=String(Number(X.c)^Number(_.h6("CATSTAT",0))));x.adblockReporting=r}return k.return(x)}})};
return w.return(Promise.race([n(),VPb(I,function(){var N=Object.assign({},x);T&&(N.error="ATTESTATION_ERROR_VM_TIMEOUT");return N})]))})};
var fKE=function(V){var l={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};V&&(l.interpreterHash=V);return l},m0B=function(V,l){l=l===void 0?0:l;
var I,H,T,x,n,w,N,L,e,k,X,r;return _.d(function(E){switch(E.nextAddress){case 1:I=fKE(GN0().pfN);if(_.z("att_fet_ks"))return _.jd(E,7),_.K(E,V.bx(I),9);_.jd(E,4);return _.K(E,l3h(V,I),6);case 6:n=E.yieldResult;T=n.uXl;x=n.tsg;H=n;_.Rv(E,3);break;case 4:return _.kE(E),_.hF(Error("ki`"+l)),I3g(V,864E5),E.return({challenge:"",mV:{},wl:void 0,bgChallenge:void 0});case 9:H=E.yieldResult;if(!H)throw Error("li");if(!H.challenge)throw Error("mi");T=H.challenge;x=IK(T);if("c1a"in x&&(!H.bgChallenge||!H.bgChallenge.program))throw Error("ni");
_.Rv(E,3);break;case 7:w=_.kE(E);_.hF(w);l++;if(l>=5)return _.hF(Error("ki`"+l)),I3g(V,864E5),E.return({challenge:"",mV:{},wl:void 0,bgChallenge:void 0});N=1E3*Math.pow(2,l-1)+Math.random()*1E3;return E.return(new Promise(function(D){_.et(_.r0,function(){D(m0B(V,l))},N)}));
case 3:L=omt(x);I3g(V,L*1E3);e=void 0;if(!("c1a"in x&&H.bgChallenge)){E.jumpTo(10);break}k=JAt(H.bgChallenge);_.jd(E,11);return _.K(E,JKa(GN0(),k),13);case 13:_.Rv(E,12);break;case 11:return X=_.kE(E),_.hF(X),E.return({challenge:T,mV:x,wl:e,bgChallenge:k});case 12:return _.jd(E,14),e=new _.Q$({challenge:k,nx:{k6:"aGIf"}}),_.K(E,e.uGF,16);case 16:_.Rv(E,10);break;case 14:r=_.kE(E),_.hF(r),e=void 0;case 10:return E.return({challenge:T,mV:x,wl:e,bgChallenge:k})}})};
_.nq.prototype.bx=function(V){var l=this,I;return _.d(function(H){I=l.networkStatusManager;if(!I||I.isNetworkAvailable())return H.return(l.network.bx(V));_.Rz("att_pna",void 0,"attestation_challenge_fetch");return H.return(new Promise(function(T){I.listenOnce("publicytnetworkstatus-online",function(){l.network.bx(V).then(T)})}))})};
var HGQ=function(V){if(!V)throw Error("li");if(!V.challenge)throw Error("mi");var l=V.challenge,I=IK(l);if("c1a"in I&&(!V.bgChallenge||!V.bgChallenge.program))throw Error("ni");return Object.assign({},V,{uXl:l,tsg:I})},l3h=function(V,l){var I,H,T,x,n;
return _.d(function(w){switch(w.nextAddress){case 1:I=void 0,H=0,T={};case 2:if(!(H<5)){w.jumpTo(4);break}if(!(H>0)){w.jumpTo(5);break}T.oCL=1E3*Math.pow(2,H-1)+Math.random()*1E3;return _.K(w,new Promise(function(N){return function(L){_.et(_.r0,function(){L(void 0)},N.oCL)}}(T)),5);
case 5:return _.jd(w,7),_.K(w,V.bx(l),9);case 9:return x=w.yieldResult,w.return(HGQ(x));case 7:I=n=_.kE(w),n instanceof Error&&_.hF(n);case 8:H++;T={oCL:void 0};w.jumpTo(2);break;case 4:throw I;}})},gEP=function(V,l){V.nh=l},T$2=function(V){var l,I,H;
return _.d(function(T){if(T.nextAddress==1)return _.K(T,Promise.race([V.nh,null]),2);l=T.yieldResult;var x=m0B(V);V.nh=x;(I=l)==null||(H=I.wl)==null||H.dispose();_.FU(T)})},I3g=function(V,l){var I=Date.now()+l,H=function(){var T;
return _.d(function(x){T=I-Date.now();return T<1E3?_.K(x,T$2(V),0):(_.et(_.r0,H,Math.min(T,6E4)),x.jumpTo(0))})};
H()},VPb=function(V,l){return new Promise(function(I){_.et(_.r0,function(){I(l())},V)})};var B$E=function(){};
B$E.prototype.processContext=function(V){var l=_.nq.instance;if(!l)return _.Ar();var I=R4q(V);return I?new p7(l.eFB(I,Z1f(V),500).then(function(H){var T;(V==null?0:(T=V.innerTubeRequest)==null?0:T.context)||(V.innerTubeRequest.context={});T=V.innerTubeRequest.context;T.request||(T.request={});T.request.attestationResponseData=H})):_.Ar()};var x32=function(V){this.innertubeTransportService=V};
x32.prototype.bx=function(V){_.Rz("att_fsr",void 0,"attestation_challenge_fetch");return _.R7(this.innertubeTransportService,V,_.Ol(_.m9Z)).then(function(l){_.Rz("att_frr",void 0,"attestation_challenge_fetch");return l})};_.U3Q=function(V){this.innertubeTransportService=V};var nph=new _.Vr("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var $3E=function(){},wNh=function(V,l,I,H,T){var x=_.h6("YPC_MB_URL");
_.jP1(x).then(function(){d36(x,V,l,I,H,T)})},d36=function(V,l,I,H,T,x){try{var n=payments.business.integration,w=payments.business.integration.Style.create().withMaterialDesignStyle(),N=n.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.z("enable_window_constrained_buy_flow_dialog")&&(N=N.usingPopupStyle("windowConstrained"));x&&(N=N.usingCloseCallback(x));var L=I?I:_.h6("YPC_GB_LANGUAGE"),e=_.h6("SESSION_INDEX");n.bootstrap.fromPaymentsUrl(V);n.bootstrap.asMashupMode(N).usingGaiaIndex(e).usingLocale(L).usingStyle(w).usingDefaultActivityStatusChangeHandler().inStandaloneContext(n.standaloneContextAuthId.forGaia()).purchaseManager(l,function(k){H&&H(k)}).load(void 0,T)}catch(k){throw T&&T(k),_.Gr(k),k;
}};var N$P=new _.Vr("PURCHASE_MANAGER_TOKEN");var K2b=function(){var V=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return V.videos},
getContinuationsPresent:function(){return V.continuationsPresent},
setVideos:function(l){V.videos=l},
getRecommendedVideos:function(){return V.recommendedVideos},
setRecommendedVideos:function(l){V.recommendedVideos=l}}};
K2b.prototype.addVideos=function(V){V&&(this.videos=V.filter(function(l){return!!_.cAc(l)}).map(function(l){var I=_.cAc(l);
a:{var H;if(l.playlistVideoRenderer&&((H=l.playlistVideoRenderer)==null?0:H.voteSortTiebreaker))var T=l.playlistVideoRenderer.voteSortTiebreaker;else{if(_.y(l,BA)){var x;if(H=(T=_.y(l,BA))==null?void 0:(x=T.playlistItemData)==null?void 0:x.voteSortTiebreaker){T=H;break a}}T=""}}return{itemId:I,videoId:_.q81(l),voteCount:_.Mm1(l),voteSortTiebreaker:T}}),this.continuationsPresent=!!_.y(V[V.length-1],_.nl))};
var jgE=function(V,l){return V.videos.findIndex(function(I){return I.itemId===l})},YL6=function(V,l){return V.recommendedVideos.findIndex(function(I){return I.itemId===l})},L2B=function(V){V={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:V}}}}};_.F().resolve(_.aw).resolveCommand(V)};var ePE=function(){K2b.apply(this,arguments)};
_.t(ePE,K2b);
var $cZ=function(V,l,I,H){if(!V.parentElem)throw Error("si");var T=jgE(V,l);T===-1&&(T=YL6(V,l),T=T!==-1?T+V.videos.length:-1);if(T===-1)throw Error("ti");var x=T>=V.videos.length?V.recommendedVideos[T-V.videos.length]:V.videos[T];x.voteCount=I;x.voteSortTiebreaker=Date.now().toString();T>=V.videos.length?V.recommendedVideos.splice(T-V.videos.length,1):V.videos.splice(T,1);var n=V.videos;for(var w=0,N=n.length-1;w<=N;){var L=Math.floor((w+N)/2);if(n[L].voteCount<x.voteCount)N=L-1;else if(n[L].voteCount>x.voteCount)w=
L+1;else{a:{var e=x.voteSortTiebreaker;var k=n[L].voteSortTiebreaker;if(e.length!==k.length)e=e.length>k.length;else{for(var X=0;X<e.length;X++){var r=e.charCodeAt(X),E=k.charCodeAt(X);if(r>E){e=!0;break a}if(r<E)break}e=!1}}e?N=L-1:w=L+1}}n=w;if(n===-1)throw Error("ui");V.videos.splice(n,0,x);T!==n&&kPg(V,T,n,l,I,H)},kPg=function(V,l,I,H,T,x){var n,w=(n=V.parentElem)==null?void 0:n.children,N=Math.min(l,I),L=Math.max(l,I);
if(w)for(n=N;n<=L;n++)w[n].style.viewTransitionName="item-"+String(n);document.startViewTransition(function(){if(V.parentElem){var e=V.parentElem.children;if(!(!e||l<0||l>=e.length||I<0||I>=e.length)){var k=e[l];if(k){k.remove();V.showRefreshPill=I>=V.videos.length-1&&V.continuationsPresent;if(!V.showRefreshPill){e=e[I]||null;var X;(X=V.parentElem)==null||X.insertBefore(k,e)}_.B$(V.parentElem,"yt-update-video-data-voting-animation",{toIdx:I,itemId:H,newVoteCount:T,voteStatus:x,hideItem:V.showRefreshPill})}}}}).finished.then(function(){if(w)for(var e=
N;e<=L;e++)w[e].style.viewTransitionName="";
if(V.showRefreshPill)L2B(_.LT("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var k;if(k=e=(k=V.parentElem)==null?void 0:k.children[I])k=e.getBoundingClientRect(),e=k.bottom,k=!(k.top>=0&&e<=V.clientHeight);k&&(k=_.e1(l>I?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(l-I)),L2B(k))}})};var F2Y=_.g7("innertube_request_limit_ms",3E3),yHg=function(V,l){var I=this;V?this.innertubeTransportServicePromise=Promise.resolve(V):l&&(this.innertubeTransportServicePromise=l(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new AQ(F2Y,function(H){return XNI(I,H)},0);
this.validateMiniAppVideoIdRateLimiter=new AQ(F2Y,function(H){return zPb(I,H)},1)},mVV=function(V,l){V.JSC$14878_miniAppId=l;
V.reportMiniAppValueRateLimiter=new AQ(F2Y,function(I){return XNI(V,I)},0);
V.validateMiniAppVideoIdRateLimiter=new AQ(F2Y,function(I){return zPb(V,I)},1)},VdQ=function(V,l){var I;
return _.d(function(H){if(H.nextAddress==1)return _.K(H,V.reportMiniAppValueRateLimiter.call(l),2);I=H.yieldResult;return H.return([I,l])})},XNI=function(V,l){var I,H,T,x,n,w,N;
return _.d(function(L){switch(L.nextAddress){case 1:return _.K(L,V.innertubeTransportServicePromise,2);case 2:return I=L.yieldResult,H=_.Ol(B9E),T=Date.now(),x={externalPostId:V.JSC$14878_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(T/1E3),nanos:Math.round(T%1E3*1E6)},intValue:""+l}},_.jd(L,3),_.K(L,_.R7(I,x,H),5);case 5:n=L.yieldResult;_.Rv(L,4);break;case 3:throw w=_.kE(L),w;case 4:if(n){if("error"in n&&n.error)throw n.error;if(n.errorMetadata)throw Error("vi`"+
n.errorMetadata.status);if(N=n.userStatResult)return L.return(N);throw Error("wi");}throw Error("xi");}})},IKh=function(V){var l,I,H,T,x;
_.d(function(n){switch(n.nextAddress){case 1:return _.K(n,V.innertubeTransportServicePromise,2);case 2:return l=n.yieldResult,I=_.Ol(B9E),H={externalPostId:V.JSC$14878_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.jd(n,3),_.K(n,_.R7(l,H,I),5);case 5:T=n.yieldResult;_.Rv(n,4);break;case 3:throw x=_.kE(n),x;case 4:if(T==null)throw Error("xi");if("error"in T&&T.error)throw T.error;if(T.errorMetadata)throw Error("vi`"+T.errorMetadata.status);_.FU(n)}})};
yHg.prototype.flush=function(){var V=this;return _.d(function(l){return l.nextAddress==1?_.K(l,V.reportMiniAppValueRateLimiter.flush(),2):_.K(l,V.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var lKg=function(V,l){return _.d(function(I){return I.nextAddress==1?_.K(I,V.validateMiniAppVideoIdRateLimiter.call(l),2):I.return(I.yieldResult)})},zPb=function(V,l){var I,H,T,x,n,w;
return _.d(function(N){switch(N.nextAddress){case 1:return _.K(N,V.innertubeTransportServicePromise,2);case 2:return I=N.yieldResult,H=_.Ol(g4a),T={videoId:l},_.jd(N,3),_.K(N,_.R7(I,T,H),5);case 5:x=N.yieldResult;_.Rv(N,4);break;case 3:throw n=_.kE(N),n;case 4:if(x){if("error"in x&&x.error)throw x.error;if(x.errorMetadata)throw Error("vi`"+x.errorMetadata.status);if(w=x.playabilityStatus)return N.return(w.status);throw Error("yi");}throw Error("xi");}})};
yHg[mR]=[_.Cs(_.FM),_.Cs(EQ3)];var tPb=function(){this.clientData=new Map};
tPb.prototype.getData=function(V){return this.clientData.get(V)};var rHI=function(V){this.store=V};
rHI.prototype.handleResponse=function(V){(V=_.y(V.frameworkUpdates,Wu))&&_.js(V,this.store)};
rHI[mR]=[_.oU];var GPB=new _.Vr("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var EpB={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 JHg=new _.Vr("ICON_SET_TOKEN"),opb=new _.Vr("ICON_URL_PROVIDER_TOKEN"),hP6=new _.Vr("PREFETCH_ICONS_TOKEN"),P4B=new _.Vr("ICON_MAP_FN_TOKEN");var $q={},D3r=($q.ACCESS_TIME="clock",$q.ACCOUNT_BOX="person_account",$q.ACCOUNT_BOX_CAIRO="person_account_cairo",$q.ACCOUNT_CIRCLE="person_circle",$q.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",$q.ACCOUNT_LINKED="account_link_success",$q.ACCOUNT_UNLINKED="account_link",$q.ADD_FRIEND="people",$q.ADD_TO_LIBRARY=UH("add"),$q.ADD_TO_PLAYLIST="add",$q.ADD_TO_QUEUE_TAIL="list_queue",$q.ADD_TO_REMOTE_QUEUE="list_music",$q.ADD_TO_WATCH_LATER="clock",$q.ADD_VIDEO_LINK="film_strip_add",$q.ALERT_WARN_RED="alert_triangle",
$q.ARROW_BACK="arrow_left",$q.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",$q.ARROW_DROP_DOWN="chevron_down",$q.ARROW_DROP_UP="chevron_up",$q.ARROW_FORWARD="arrow_right",$q.AUDIOTRACK="audio",$q.AUTO_AWESOME="sparkle",$q.AVATAR_ANONYMOUS="person_circle",$q.AVATAR_LOGGED_OUT="person_circle",$q.BACK="arrow_left",$q.BAR_CHART="bar_graph",$q.BLOCK="slash_circle_left",$q.BLOCK_USER="slash_circle_left",$q.BOOKMARK_BORDER="bookmark",$q.BREAKING_NEWS_ALT_1="article_alert",$q.BROADCAST_CAIRO="podcast_cairo",
$q.BUG_REPORT="bug",$q.CAMERA_ALT="camera",$q.CAMPAIGN="megaphone",$q.CANCEL="x_circle",$q.CAPTIONS="closed_caption",$q.CAST_OUTLINE="chromecast",$q.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",$q.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",$q.CHAT="message_bubble_left",$q.CHAT_BUBBLE="message_bubble_empty",$q.CHECK_BOX_OUTLINE_BLANK="box_empty",$q.CHECK_CIRCLE_OUTLINE="check_circle",$q.CHECK_CIRCLE_THICK="check_circle",$q.CLARIFY="article_clarify",$q.CLOSED_CAPTION_SELECTED="closed_caption",$q.CLOSE=
"x_mark",$q.CLOUD_UPLOAD="cloud_arrow_up",$q.COLLAPSE="chevron_up",$q.COLLAPSE_CAIRO="chevron_up_cairo",$q.COLLECTION="layers",$q.COLOR_LENS="palette",$q.COMMENT="message_bubble_right",$q.CONSENT_SHIELD="person_shield",$q.CONTENT_CUT="scissors",$q.CONTENT_CUT_CAIRO="scissors_cairo",$q.COURSE=_.z("web_enable_course_icon_update")?"creator_academy":"lightbulb",$q.COURSE_CAIRO=_.z("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",$q.CREATION_LIVE="radar_live",$q.CREATION_UPLOAD=
"my_videos",$q.CREATION_UPLOAD_RED="upload",$q.CREATOR_STUDIO="youtube_studio",$q.DELETE="trash_can",$q.DELETE_SWEEP="trash_can",$q.DESKTOP="laptop",$q.DISLIKE="thumb_down",$q.DISLIKE_SELECTED="thumb_down",$q.DISMISSAL="x_mark",$q.DISMISS_QUEUE="list_remove",$q.DOWN_ARROW="arrow_down",$q.DO_NOT_DISTURB="slash_circle_left",$q.DRAFT="paper_corner_folded",$q.DRAG_HANDLE="bars_2",$q.EDIT="pencil",$q.EMOJI="face_very_happy",$q.EMOJI_FLAGS="flag",$q.EMOJI_OBJECTS="lightbulb",$q.EMOJI_PEOPLE="face_very_happy",
$q.EMOJI_RECENT="clock",$q.EMPTY_HEART="heart",$q.EMPTY_LIKE="thumb_up",$q.ERROR_BLACK="alert_circle",$q.ERROR_OUTLINE="alert_circle",$q.EXIT_APP="arrow_in",$q.EXIT_TO_APP="arrow_in",$q.EXPAND="chevron_down",$q.EXPAND_ALL="chevron_expand",$q.EXPAND_CAIRO="chevron_down_cairo",$q.EXPAND_LESS="chevron_up",$q.EXPAND_MORE="chevron_down",$q.EXPLORE="compass",$q.EXPLORE_DESTINATION="compass",$q.EXTERNAL_LINK="open_new",$q.FAB_UPLOAD="upload",$q.FACE_HAPPY_OUTLINE="face_happy",$q.FACT_CHECK="article_check",
$q.FASHION_LOGO="fashion",$q.FASHION_LOGO_CAIRO="fashion_cairo",$q.FAVORITE="heart",$q.FEEDBACK="message_bubble_alert",$q.FEEDBACK_CAIRO="message_bubble_alert_cairo",$q.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",$q.FILL_ARROW_SOLID_UP_16="arrow_solid_up",$q.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",$q.FLAG="flag",$q.FULL_HEART="heart",$q.GAME_CONSOLE_DPAD="game_console_dpad",$q.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",$q.GAMING_LOGO="gaming",$q.GAMING_LOGO_CAIRO="gaming_cairo",$q.GO_TO_PAGE=
"arrow_right",$q.GROUPS="people_group",$q.HAPPY="face_happy",$q.HEALTH_AND_SAFETY="shield_plus",$q.HELP="question_circle",$q.HELP_CAIRO="question_circle_cairo",$q.HELP_OUTLINE="question_circle",$q.HIDE="slash_circle_left",$q.IMAGE="image",$q.INFINITY_ICON="infinity",$q.INFO="info_circle",$q.INFO_OUTLINE="info_circle",$q.INSERT_CHART_OUTLINED="bar_graph_box_vertical",$q.INSERT_PHOTO="image",$q.KEEP="pin",$q.KEEP_OFF="pin_off",$q.KEYBOARD="keyboard",$q.KEYBOARD_ARROW_DOWN="chevron_down",$q.KEYBOARD_ARROW_UP=
"chevron_up",$q.KIDS_BLOCK="slash_circle_left",$q.LANGUAGE="globe",$q.LAUNCH="open_new",$q.LEARNING="lightbulb",$q.LEARNING_CAIRO="lightbulb_cairo",$q.LIBRARY_ADD=UH("library_add"),$q.LIBRARY_OUTLINE="library",$q.LIBRARY_REMOVE=UH(),$q.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",$q.LIKES_PLAYLIST="thumb_up",$q.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",$q.LIKE="thumb_up",$q.LIKE_SELECTED="thumb_up",$q.LIVE="radar_live",$q.LIVE_CAIRO="radar_live_cairo",$q.LIVE_UNLISTED="link",$q.LOCATION_ON="location_point",
$q.LOCATION_PIN="location_point",$q.LOOP="arrow_repeat",$q.LOOP_ACTIVE="arrow_repeat",$q.LOOP_ONE="arrow_repeat_1",$q.LOOP_ONE_ACTIVE="arrow_repeat_1",$q.MEH="face_meh",$q.MEMBERS_ONLY_MODE_OFF="message_bubble_left",$q.MESSAGE="message_bubble_left",$q.MICROPHONE_ON="mic",$q.MIX="youtube_mix",$q.MONETIZATION_ON="dollar_sign_circle",$q.MONEY_FILL="dollar_sign_container",$q.MONEY_FILL_JPY="yen_sign_container",$q.MONEY_HEART="dollar_sign_heart",$q.MORE_HORIZ="overflow_horizontal",$q.MORE_VERT="overflow_vertical",
$q.MUSIC="audio",$q.MUSIC_CAIRO="audio_cairo",$q.MUSIC_NOTE_SYMBOL="music",$q.MUSIC_SHUFFLE="arrow_shuffle",$q.MY_CHANNEL="person_circle",$q.MY_LOCATION="location_point",$q.NEWS_STORY="news",$q.NEXT="chevron_right",$q.NOTIFICATIONS="bell",$q.NOTIFICATIONS_ACTIVE="bell_on",$q.NOTIFICATIONS_CAIRO="bell_cairo",$q.NOTIFICATIONS_DONE_CHECKMARK="check",$q.NOTIFICATIONS_INBOX="bell",$q.NOTIFICATIONS_NONE="bell",$q.NOTIFICATIONS_OFF="bell_off",$q.NOT_INTERESTED="slash_circle_left",$q.OFFICIAL_ARTIST_BADGE=
"audio",$q.OFFLINE_CLOUD="cloud_off",$q.OFFLINE_DOWNLOAD="download",$q.OFFLINE_DOWNLOAD_CAIRO="download_cairo",$q.OFFLINE_PAUSE="pause",$q.OPEN_IN_NEW="open_new",$q.OUTLINE_ADJUST="adjust",$q.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",$q.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",$q.OUTLINE_BAG="bag",$q.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",$q.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",$q.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",$q.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
$q.PAID="dollar_sign",$q.PAUSE_OUTLINED="pause",$q.PAYMENT="credit_card",$q.PERSON_RADAR_FILLED="person_radar",$q.PHONE_DOWNLOAD="mobile_download",$q.PLAYABLES_LOGO="tic_tac_toe",$q.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",$q.PLAYLISTS="list_play_arrow",$q.PLAYLISTS_CAIRO="list_play_arrow_cairo",$q.PLAYLIST_ADD=UH("list_add"),$q.PLAYLIST_ADD_CHECK=UH("list_check"),$q.PLAY_ALL="play_arrow",$q.PLAY_CIRCLE="play_arrow_circle",$q.PLAY_OUTLINED="play_arrow_circle",$q.PRIVACY_INFO="shield",$q.PRIVACY_PRIVATE=
"lock",$q.PRIVACY_PUBLIC="earth",$q.PRIVACY_UNLISTED="link",$q.PROMOTE="megaphone",$q.PURCHASES="price_tag",$q.PURCHASE_SUPER_CHAT="super_chat",$q.PURCHASE_SUPER_STICKER="super_sticker",$q.QUESTION_ANSWER="message_bubble_question",$q.QUEUE_PLAY_LAST="list_queue_last",$q.QUEUE_PLAY_NEXT="list_play_arrow",$q.REMIX_FILLED="youtube_shorts_remix",$q.REMOVE="bar_circle",$q.REMOVE_CIRCLE="bar_circle",$q.REMOVE_CIRCLE_OUTLINE="bar_circle",$q.REMOVE_FROM_HISTORY="bar_circle",$q.REMOVE_FROM_PLAYLIST="bar_circle",
$q.REPLAY="arrow_circle",$q.REPORT_PROBLEM="alert_triangle",$q.SAD="face_sad",$q.SAVE_PLAYLIST=UH("library_add"),$q.SCHEDULE="clock",$q.SCHOOL="creator_academy",$q.SCREEN_FULLSCREEN="screen_full",$q.SEARCH_HISTORY="arrow_time",$q.SELL="price_tag",$q.SETTINGS="gear",$q.SETTINGS_CAIRO="gear_cairo",$q.SETTINGS_LIGHT="gear",$q.SETTINGS_MATERIAL="gear",$q.SHARE_ARROW="share",$q.SHIELD_WITH_AVATAR="person_shield",$q.SHOPPING_BAG="bag",$q.SHOPPING_BAG_CAIRO="bag_cairo",$q.SHOPPING_CART="cart",$q.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",$q.SHORTS_DISLIKE="youtube_shorts_thumb_down",$q.SHORTS_LIKE="youtube_shorts_thumb_up",$q.SHORTS_SHARE="youtube_shorts_share",$q.SHUFFLE="arrow_shuffle",$q.SLOW_MODE_OFF="message_bubble_left",$q.SOCIAL="people",$q.SORT="menu_sort",$q.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",$q.SPEED_1X="1x",$q.SPEED_1_POINT_2X="1_point_2x",$q.SPEED_1_POINT_5X="1_point_5x",$q.SPEED_1_POINT_8X="1_point_8x",$q.SPEED_2X="2x",$q.SPEED_POINT_2X="point_2x",$q.SPEED_POINT_8X="point_8x",
$q.SPONSORSHIP_STAR=_.z("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",$q.STAFF_PICK="spotlight",$q.START_DVR="add",$q.STAR_BORDER="star",$q.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",$q.STICKER_EMOTICON="face_happy",$q.STOP_DVR="stop",$q.SUBSCRIBE="youtube_logo_icon",$q.SUBSCRIBE_PLUS="add_cairo",$q.SUBSCRIPTION_MANAGER="gear",$q.SUPERVISOR_ACCOUNT="people",$q.SWAP_HORIZ="arrow_swap_horizontal",$q.SWITCH_ACCOUNTS="person_account",$q.TAB_ACCOUNT="person",$q.TAB_ACTIVITY=
"bell",$q.TAB_EXPLORE="compass",$q.TAB_HOME="home",$q.TAB_HOME_CAIRO="home_cairo",$q.TAB_INBOX="mail",$q.TAB_LIKED="thumb_up",$q.TAB_MUSIC_PREMIUM="youtube_music",$q.TAB_SHORTS="youtube_shorts",$q.TAB_SHORTS_CAIRO="youtube_shorts_cairo",$q.TAB_SUBSCRIPTIONS="subscriptions",$q.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",$q.TAB_TRENDING="fire",$q.TIMER="stopwatch",$q.TRENDING="fire",$q.TRENDING_CAIRO="fire_cairo",$q.TRENDING_UP="rating_up",$q.TROPHY="trophy",$q.TROPHY_CELEBRATIONS="fireworks",$q.TUNE=
"adjust",$q.UNBLOCK_USER="bar_circle",$q.UNLIMITED="youtube_logo_icon",$q.UNPLUGGED_LIVE_GUIDE="radar_live",$q.UNPLUGGED_SPORTS="eye_off",$q.UPLOADS="library",$q.UP_ARROW="arrow_up",$q.VERTICAL_ALIGN_BOTTOM="download",$q.VERY_HAPPY="face_very_happy",$q.VERY_SAD="face_very_sad",$q.VIDEOS="play_arrow_circle",$q.VIDEO_CALL="video_camera_add",$q.VIDEO_LIBRARY_WHITE="library",$q.VIDEO_YOUTUBE="youtube_logo_icon",$q.VIEW_LIST="list_view",$q.VIEW_LIST_CAIRO="list_view_cairo",$q.VISIBILITY="eye",$q.VISIBILITY_OFF=
"eye_off",$q.VOLUME_MUTE="volume_off",$q.VOLUME_UP="volume_on",$q.WALLPAPER="image",$q.WARNING="alert_triangle",$q.WATCH_HISTORY="arrow_time",$q.WATCH_HISTORY_CAIRO="arrow_time_cairo",$q.WATCH_LATER="clock",$q.WATCH_LATER_CAIRO="clock_cairo",$q.WATCH_RELATED_MIX="youtube_mix",$q.WHAT_TO_WATCH="home",$q.YOUTUBE_MUSIC_MONOCHROME="youtube_music",$q.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",$q.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",$q.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",$q.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",$q.YT_OUTLINE_MUSIC_24="music",$q);var ZGY={},SL6=(ZGY.TAB_SHORTS="youtube_shorts",ZGY.TAB_SHORTS_CAIRO="youtube_shorts",ZGY.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",ZGY);var RPI={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,2,24]],arrow_merge:[[1,
1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],
[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,3,24],[1,3,24]],bag:[[0,5,12],
[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,
2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,
1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,
2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,
7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,
1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,
1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,
8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,
6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],
face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],
flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,
24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,
15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],key:[[1,4,24]],keyboard:[[0,
2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],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]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,
1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,
1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],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_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]]};var QgE={youtube_shorts:[[0,10,24],[1,10,24]]};var dL=function(V){this.iconUrlProvider=V};
dL.prototype.resolveIcon=function(V,l){var I=V.iconName;I=I.replace(/-/g,"_");V=Object.assign({},V,{iconName:this.mapIconTypeToStandardName(I)||I.toLowerCase()});if(_.z("enable_web_delhi_icons")){var H;return pPf(QgE,V,((H=this.iconUrlProvider)==null?void 0:H.getYtStandardUrl)||vm1,l)}var T;return pPf(RPI,V,((T=this.iconUrlProvider)==null?void 0:T.getYtStandardUrl)||uDN,l)};
dL.prototype.mapIconTypeToStandardName=function(V){return _.z("enable_web_delhi_icons")?SL6[V.toUpperCase()]:D3r[V.toUpperCase()]};
dL[mR]=[_.Cs(opb)];var cH6=function(V){this.urlProvider=this.iconUrlProvider=V};
_.t(cH6,dL);
cH6.prototype.resolveIcon=function(V,l){V.iconName==="youtube_logo"&&(V.iconName="yt-logo-updated");if(V.iconName==="youtube_premium_logo"||V.iconName==="youtube_red_logo")V.iconName="yt-logo-red-updated";var I=Object.assign({},V);V.iconName==="menu"&&(I.iconName="bars_3",I.iconStyle="youtube_outline");V.iconName==="youtube_music"&&(I.iconStyle="youtube_fill");V.iconName==="mail"&&V.iconSetName==="socialNetworksRound"&&(I.iconName="email");V.iconName==="more"&&(I.iconName="overflow_horizontal");V.iconName===
"fullscreen"&&(I.iconName="screen_full");if(V.iconName==="play_all"||V.iconName==="play_arrow")I.iconStyle="youtube_fill";V.iconName==="premium_standalone"&&(I.iconName="premium_standalone_cairo");_.z("enable_connect_icon_update_web")&&V.iconName==="account_linked"&&(I.iconName="circles_overlap_check",I.iconStyle="youtube_fill");_.z("enable_connect_icon_update_web")&&V.iconName==="account_unlinked"&&(I.iconName="circles_overlap",I.iconStyle="youtube_outline");V=Object.assign({},I,{iconName:(dL.prototype.mapIconTypeToStandardName.call(this,
I.iconName)||I.iconName).toLowerCase()});var H;return(V=pPf(EpB,V,((H=this.urlProvider)==null?void 0:H.getUrl)||O11,l))?V:dL.prototype.resolveIcon.call(this,I,l)};
cH6[mR]=[_.Cs(opb)];_.W2P=1;var wL=function(){};
_.t(wL,a5);wL.prototype.resolveCommand=function(V){var l,I;return _.d(function(H){l=_.y(V,xIw);if(!l)return H.return();I=Number(l.enableDelayedPacfLoggingTvMs);if(isNaN(I)){var T=op();VHZ(T,l,0)}else VHZ(op(),l,I);_.FU(H)})};_.NL=function(){};
_.t(_.NL,a5);
_.NL.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L;return _.d(function(e){H=_.y(V,UIw);x=(T=l.form)==null?void 0:T.element;w=(n=x)==null?void 0:n.closest("ytd-enforcement-message-view-model");if(!H||!w)return e.return();I.allowAdsAction||(N=H.fundingChoiceInstructionPageUrl,I.allowAdsAction=new qoJ(window,_.GQ(N)));var k=I.allowAdsAction;k.wallElement=w;k.allowAdsPopup.style.setProperty("display","flex","important");var X=k.scrollManager;X.originalBodyOverflow=X.JSC$7864_domHelper.JSC$7235_document_.body.style.overflow;X.JSC$7864_domHelper.JSC$7235_document_.body.style.overflow=
"hidden";k.wallElement.style.setProperty("display","none","important");fna(k.accessibilityManager,k.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((L=I.allowAdsAction.allowAdsPopup)&&L instanceof HTMLElement)for(k=_.U(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),X=k.next();!X.done;X=k.next()){var r=_.U(X.value);X=r.next().value;r=r.next().value;L.style.setProperty(X,r)}_.FU(e)})};
_.NL.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Kq=function(){};
_.t(Kq,a5);Kq.prototype.resolveCommand=function(V){var l;return _.d(function(I){l=_.y(V,ng0);if(!l)return I.return();txf(V);_.FU(I)})};var jZ=function(V){this.JSC$14917_commandHandler=V};
_.t(jZ,a5);
jZ.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n,w,N,L;return _.d(function(e){if(e.nextAddress==1){I=_.y(V,bio);if((H=I)==null||!H.text||!navigator.clipboard)return e.return();_.jd(e,2);return _.K(e,navigator.clipboard.writeText(I.text),4)}if(e.nextAddress!=2){if(!I.successActions||I.successActions.length===0)return e.return();T=_.U(I.successActions);for(x=T.next();!x.done;x=T.next())n=x.value,l.JSC$14917_commandHandler.resolveCommand(n);return _.Rv(e,0)}_.kE(e);if(!I.failureActions||I.failureActions.length===
0)return e.return();w=_.U(I.failureActions);for(N=w.next();!N.done;N=w.next())L=N.value,l.JSC$14917_commandHandler.resolveCommand(L);_.FU(e)})};
jZ[mR]=[_.aw];var Yq=function(V){this.JSC$14921_commandHandler=V};
_.t(Yq,a5);
Yq.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L,e,k,X;return _.d(function(r){switch(r.nextAddress){case 1:H=_.y(V,Yga);if(!H)return r.return();_.jd(r,2);if(!H.imageBytes&&!H.imageUrl)throw Error("zi");if(!H.imageUrl){if(H.imageBytes){x=H.imageBytes;n=x.replace(/-/g,"+").replace(/_/g,"/");var E=aTT(n);T=RO(E)}r.jumpTo(4);break}return _.K(r,fetch(H.imageUrl),5);case 5:return w=r.yieldResult,_.K(r,w.blob(),6);case 6:N=r.yieldResult,T=RO(N);case 4:k=(L=l)==null?void 0:(e=L.form)==null?
void 0:e.element;X=document.createElement("a");bY(X,T);k.appendChild(X);X.download="";X.click();k.removeChild(X);URL.revokeObjectURL(_.hV(T));H.successCommand&&I.JSC$14921_commandHandler.resolveCommand(H.successCommand);_.Rv(r,0);break;case 2:_.kE(r),H.errorCommand&&I.JSC$14921_commandHandler.resolveCommand(H.errorCommand),_.FU(r)}})};
Yq[mR]=[_.aw];var Lq=function(V){this.store=V};
_.t(Lq,a5);Lq.prototype.resolveCommand=function(V){var l=this,I,H,T;return _.d(function(x){H=(I=_.y(V,_.VJN))==null?void 0:I.entityBatchUpdate;if(!H)return x.jumpTo(0);T=Object.assign({},H,{mutations:[].concat(_.oI(H.mutations||[]))});return _.K(x,_.js(T,l.store),0)})};var bGu=function(V){this.JSC$14928_commandHandler=V;this.feedbackDialogMap=new Map};
bGu.prototype.openDialog=function(V,l){(V=this.feedbackDialogMap.get(V))&&this.JSC$14928_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:V}},l)};
bGu[mR]=[_.aw];var eZ=new _.Vr("FEEDBACK_CONTROLLER_TOKEN");var kq=new _.Vr("APP_STORE_TOKEN");var FN=function(V,l){this.store=V;this.controller=l};
_.t(FN,a5);FN.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf;return _.d(function(C){if(C.nextAddress==1){H=_.y(V,_.Q3);if(x=(T=H)==null?void 0:T.contentId)for(w=_.U(((n=H)==null?void 0:n.actions)||[]),N=w.next();!N.done;N=w.next())L=N.value,qLP(I,L,x);X=(e=l)==null?void 0:(k=e.form)==null?void 0:k.element;return _.K(C,_.$B(X,[V]).catch(function(){}),2)}r=C.yieldResult;
((E=r)==null?0:(D=E.data)==null?0:(Z=D.feedbackResponses)==null?0:Z.length)&&(p=(S=r.data.feedbackResponses[0])==null?void 0:S.followUpDialog)&&x&&(Vf=I.controller)!=null&&Vf.feedbackDialogMap.set(x,p);_.FU(C)})};
var qLP=function(V,l,I){var H=_.y(l,_.NJ);if(H){H=_.U(H.commands||[]);for(var T=H.next();!T.done;T=H.next())qLP(V,T.value,I)}_.y(l,_.zj)&&V.store.dispatch(_.K6("commandEntity",rht(I),{key:I,command:l}));_.y(l,TRZ)&&V.store.dispatch(_.K6("commandEntity",rht(I),{key:I,command:l}))};
FN[mR]=[kq,eZ];var XN=function(V){this.controller=V};
_.t(XN,a5);XN.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n;return _.d(function(w){H=_.y(V,_.RV);x=(T=H)==null?void 0:T.targetId;if(((n=H)==null?void 0:n.signal)!=="TELL_US_WHY"||!x)return w.return();I.controller.openDialog(x,l);_.FU(w)})};
XN[mR]=[eZ];var zB=function(V){this.store=V};
_.t(zB,a5);zB.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L;return _.d(function(e){H=_.y(V,lFf);x=(T=H)==null?void 0:T.contentId;N=(n=l)==null?void 0:(w=n.form)==null?void 0:w.element;L=_.$B(N,[V]);x&&I.undo(x);return _.K(e,L,0)})};
zB.prototype.undo=function(V){this.store.dispatch(_.K6("commandEntity",rht(V),{key:V,command:void 0}))};
zB[mR]=[kq];var yR=function(V){this.JSC$14943_commandHandler=V};
_.t(yR,a5);yR.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n,w,N,L;return _.d(function(e){I=_.y(V,Lqi);H=I.flowStateKey;T=I.validationFailureCommand;x=I.submitValidFormCommand;n=DR(_.x_,[H||""]);w=_.y(n,kAb);((N=w)==null?0:N.isValid)&&x&&l.JSC$14943_commandHandler.resolveCommand(x);((L=w)==null?0:L.isValid)||!T||l.JSC$14943_commandHandler.resolveCommand(T);_.FU(e)})};
yR[mR]=[_.aw];var tG=function(V){this.innertubeTransportService=V};
_.t(tG,a5);tG.prototype.resolveCommand=function(V,l){var I=this,H;return _.d(function(T){return _.K(T,_.R2(I.innertubeTransportService,V,(H=l)==null?void 0:H.form).then(function(x){var n,w;l==null||(n=l.commandController)==null||(w=n.onSuccess)==null||w.call(n,V,x)},function(x){var n,w;
l==null||(n=l.commandController)==null||(w=n.onServerError)==null||w.call(n,V,x)}),0)})};
tG[mR]=[_.FM];var rL=function(){};
_.t(rL,a5);rL.prototype.resolveCommand=function(V){var l,I,H,T;return _.d(function(x){if(l=_.y(V,_.$9a)){if(I=l.gtmId)H=_.h6("GL",""),_.k6(I,H);(T=l.gtmData)&&_.FB(T)}_.FU(x)})};var GB=function(V,l){this.innertubeTransportService=V;this.JSC$14954_actionRouter=l};
_.t(GB,a5);GB.prototype.resolveCommand=function(V){var l=this,I,H;return _.d(function(T){I=_.y(V,JmZ);if(!I)return T.return();H=I.command;if(!H)return T.return();l.JSC$14954_actionRouter.triggerAction("yt-insert-rich-section-action",I);return _.K(T,_.R2(l.innertubeTransportService,H,{disableCache:!0}),0)})};
GB[mR]=[_.FM,aG];gmT.bind(null,fP);var MPP=gmT.bind(null,B5W);i11.bind(null,fP);var sgP=i11.bind(null,B5W);IMT.bind(null,fP);var pNQ=IMT.bind(null,B5W);var E2=function(){};
_.t(E2,a5);
E2.prototype.resolveCommand=function(V){var l,I,H,T,x,n,w,N,L,e;return _.d(function(k){l=_.y(V,TYB);if(!l)return k.return();H=((I=l.operations)==null?void 0:I.operations)||[];T=_.U(H);for(x=T.next();!x.done;x=T.next())if(n=x.value,n.insertItemSectionContent){var X=n.insertItemSectionContent,r=X.contents||[];X.insertByPositionInSection?MPP(X.insertByPositionInSection.sectionTargetId,r,X.insertByPositionInSection.position):X.insertByRelativePositionInSection&&X.insertByRelativePositionInSection.sectionTargetId&&X.insertByRelativePositionInSection.itemTargetId&&
sgP(X.insertByRelativePositionInSection.sectionTargetId,X.insertByRelativePositionInSection.itemTargetId,r,X.insertByRelativePositionInSection.relativePosition)}else n.replaceSection?(X=n.replaceSection,r={},X.replaceByTargetId?r=X.replaceByTargetId:X.replaceByGroupId&&(r={targetId:X.replaceByGroupId.groupId,newContent:X.replaceByGroupId.newContent,undoKey:""}),r.newContent&&n0Z(r.targetId,{continuationItems:[r.newContent]})):n.removeItem?(X=n.removeItem,X.removeByTargetId&&X.sectionTargetId&&pNQ(X.sectionTargetId,
X.removeByTargetId.targetIds||[])):n.removeSection&&(n.removeSection.removeByTargetId?(w=void 0,AHV(((w=n.removeSection)==null?void 0:w.removeByTargetId.targetIds)||[])):n.removeSection.removeByGroupId&&(N=void 0,AHV(((N=n.removeSection)==null?void 0:N.removeByGroupId.groupIds)||[])));e=((L=l.operations)==null?void 0:L.scrollConfig)||{};umQ(e);_.FU(k)})};
var AHV=function(V){V=_.U(V);for(var l=V.next();!l.done;l=V.next())n0Z(l.value,{continuationItems:[]})},umQ=function(V){if(V.scrollToItem){var l=V.scrollToItem.item||{},I=l.itemTargetId;
l=l.sectionTargetId;if(I&&l){var H=document.querySelector("[data-target-id="+l+"]"),T=H==null?void 0:H.querySelector("[data-target-id="+I+"]");H&&T&&setTimeout(function(){var x=T.offsetTop-H.offsetTop,n;if(((n=V.scrollToItem)==null?void 0:n.scrollPosition)==="SCROLL_POSITION_CENTER")x-=H.offsetHeight/2,x+=T.offsetHeight/2;else{var w;((w=V.scrollToItem)==null?void 0:w.scrollPosition)==="SCROLL_POSITION_END"&&(x-=H.offsetHeight,x+=T.offsetHeight)}H.scroll({top:x,behavior:"smooth"})},100)}}};var JG=new _.Vr("CLIENT_NAME_TOKEN");var vp6=new _.Vr("DEFAULT_STORE_EXPIRATION_TOKEN");var kyc=new _.Vr("CLIENT_LOCATION_SERVICE_TOKEN");var os=function(V,l,I){this.clientName=V||_.h6("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=l||_.SD.getInstance();this.JSC$14982_commandHandler=I||_.li.instance};
_.t(os,a5);os.prototype.resolveCommand=function(V){var l=this,I,H;return _.d(function(T){H=(I=_.y(V,$AZ))==null?void 0:I.onComplete;l.clientLocationService.clearLocationPlayabilityToken(l.clientName);H&&l.JSC$14982_commandHandler.resolveCommand(H);_.FU(T)})};
os[mR]=[JG,kyc,_.aw];var hG=function(V){this.innertubeTransportService=V};
_.t(hG,a5);hG.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n;return _.d(function(w){x=(H=l)==null?void 0:(T=H.form)==null?void 0:T.element;return _.K(w,_.R2(I.innertubeTransportService,V,(n=l)==null?void 0:n.form).then(function(N){QMc(x,new CustomEvent("yt-service-request-completed"),{data:N},_.h6("openPopupConfig"))}),0)})};
hG[mR]=[_.FM];var PE=function(){};
_.t(PE,a5);PE.prototype.resolveCommand=function(V){var l,I;return _.d(function(H){l=_.y(V,y4J);I=document.querySelector("mini-app-container-view-model");if(!l||!I)return H.return();l.isPlaying?I.dispatchEvent(new Event("play")):I.dispatchEvent(new Event("pause"));_.FU(H)})};var OGE=function(){this.dropdownMap=new Map};_.C4P=new _.Vr("DROPDOWN_CONTROLLER_TOKEN");var Du=function(V){this.controller=V};
_.t(Du,a5);Du.prototype.resolveCommand=function(V){var l=this,I,H,T,x;return _.d(function(n){I=_.y(V,W8b);if(!I)return n.return();H=I;T=H.dropdownId;x=H.selectedOptionIndex;if(T===void 0||x===void 0)return n.return();var w=l.controller.dropdownMap.get(T);w&&w(x);_.FU(n)})};
Du[mR]=[_.C4P];var Zu=function(V){this.controller=V};
_.t(Zu,a5);Zu.prototype.resolveCommand=function(V){var l=this,I;return _.d(function(H){return(I=_.y(V,eDE))?_.K(H,l.controller.closeDialog(),0):H.return()})};
Zu[mR]=[_.oD];var SZ=function(V){this.controller=V};
_.t(SZ,a5);SZ.prototype.resolveCommand=function(V){var l=this,I,H;return _.d(function(T){I=_.y(V,gbo);if(!I)return T.return();var x,n=I.panelIdentifier||((x=I.identifier)==null?void 0:x.tag);if(!n)throw Error("Ai");return(H=n)?_.K(T,l.controller.hidePanel(H),0):T.jumpTo(0)})};
SZ[mR]=[_.Eu];var Rs=function(V,l){this.innertubeTransportService=V;this.controller=l};
_.t(Rs,a5);Rs.prototype.resolveCommand=function(V){var l=this,I,H,T,x;return _.d(function(n){if(n.nextAddress==1)return I=_.y(V,mAW),(H=I)!=null&&H.panelId?_.K(n,l.controller.getReloadContinuation(I.panelId),2):n.return();if(n.nextAddress!=3)return(T=n.yieldResult)?_.K(n,_.R2(l.innertubeTransportService,V,{continuation:T}),3):n.return();x=n.yieldResult;return _.K(n,l.controller.updatePanel(I.panelId,x.content,!1),0)})};
Rs[mR]=[_.FM,_.Eu];var QR=function(V,l,I){this.innertubeTransportService=V;this.JSC$15015_screenManager=l;this.JSC$15015_commandHandler=I};
_.t(QR,a5);
QR.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n,w;return _.d(function(N){if(N.nextAddress==1){I=_.y(V,_.sRo);if(!I)return N.return();if(I.commands)for(H=_.U(I.commands),T=H.next();!T.done;T=H.next())x=T.value,l.JSC$15015_commandHandler.resolveCommand(x,{disableClickTracking:!0});n=_.dj(V.clickTrackingParams);_.xg(l.JSC$15015_screenManager,21760,n,{layer:7,parentLayer:0});return _.K(N,_.R2(l.innertubeTransportService,V),2)}w=N.yieldResult;if(!w)return N.return();l.JSC$15015_screenManager.graftServerVe(w.trackingParams,n,
7);_.FU(N)})};
QR[mR]=[_.FM,_.ef,_.aw];var cE=new _.Vr("PANEL_LOADING_STRATEGY_TOKEN");var WE=function(V,l){this.controller=V;this.panelLoadingStrategy=l};
_.t(WE,a5);
WE.prototype.resolveCommand=function(V,l){var I=this,H,T,x;return _.d(function(n){H=_.y(V,hdv);if((T=H)==null||!T.panelLoadingStrategy)return n.return();x=function(w){var N,L,e,k,X,r,E,D,Z;return _.d(function(S){L=_.y((N=w.dialogViewModel)==null?void 0:N.header,bnJ);e={viewModel:w.dialogViewModel};k={};if(E=_.z("web_enable_dialog_header_label")?(X=L)==null?void 0:(r=X.headline)==null?void 0:r.content:void 0)k.ariaLabel=E;H.dismissOnBackgroundTap===!1&&(k.isModal=!0);return w.dialogViewModel?_.K(S,
I.controller.openDialog(e,(D=l)==null?void 0:(Z=D.form)==null?void 0:Z.element,k),0):S.return()})};
return _.K(n,I.panelLoadingStrategy.execute({command:V,data:H.panelLoadingStrategy,renderFn:x,createScreenConfig:{layer:4}}),0)})};
WE[mR]=[_.oD,cE];var bz=function(V,l,I){this.innertubeTransportService=V;this.controller=l;this.JSC$15035_screenManager=I};
_.t(bz,a5);
bz.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L,e,k,X,r,E;return _.d(function(D){switch(D.nextAddress){case 1:H=_.y(V,_.RK);if(!H)return D.return();var Z,S=H.panelIdentifier||((Z=H.identifier)==null?void 0:Z.tag);if(!S)throw Error("Ai");T=S;return _.K(D,I.controller.isVisible(T,!0),2);case 2:if((x=D.yieldResult)&&H.blockIfPanelOpen)return D.return();N=(w=(n=I.controller).getPanelContent)==null?void 0:w.call(n,T);if(!(Z=N))if(H){var p;Z=((p=H.globalConfiguration)==null?void 0:p.initialState)||
H.engagementPanel;if(p=!Z)p=!!(H==null?0:(S=H.engagementPanelPresentationConfigs)==null?0:S.engagementPanelPopupPresentationConfig);p&&(Z=_.Hyc(H.panelIdentifier,H.identifier))}else Z=void 0;L=Z;e=H.engagementPanelPresentationConfigs;k=H.engagementPanelExtras;return _.K(D,I.controller.showPanel(T,L,e,k,(X=l)==null?void 0:(r=X.form)==null?void 0:r.element),3);case 3:if(!H.globalConfiguration){D.jumpTo(0);break}_.xg(I.JSC$15035_screenManager,32633);return _.K(D,_.R2(I.innertubeTransportService,V),5);
case 5:return E=D.yieldResult,I.JSC$15035_screenManager.graftServerVe(E.trackingParams),_.K(D,I.controller.updatePanel(T,E.content,!0,k,void 0,E.updatePanelContinuationData),0)}})};
bz[mR]=[_.FM,_.Eu,_.ef];var qL=function(V,l){this.controller=V;this.panelLoadingStrategy=l};
_.t(qL,a5);qL.prototype.resolveCommand=function(V,l){var I=this,H,T,x;return _.d(function(n){H=_.y(V,_.jM);if((T=H)==null||!T.panelLoadingStrategy)return n.return();x=function(w){var N,L;return _.d(function(e){return w.sheetViewModel?_.K(e,I.controller.openSheet({viewModel:w.sheetViewModel},(N=l)==null?void 0:(L=N.form)==null?void 0:L.element),0):e.return()})};
return _.K(n,I.panelLoadingStrategy.execute({command:V,data:H.panelLoadingStrategy,renderFn:x,createScreenConfig:{layer:0}}),0)})};
qL[mR]=[_.J7,cE];var ML=function(V,l){this.controller=V;this.JSC$15043_commandHandler=l};
_.t(ML,a5);ML.prototype.resolveCommand=function(V,l){var I=this,H,T,x;return _.d(function(n){if(n.nextAddress==1){H=_.y(V,IaJ);var w=_.y(H.showCommand,_.RK),N,L,e=(L=w==null?void 0:w.panelIdentifier)!=null?L:w==null?void 0:(N=w.identifier)==null?void 0:N.tag;if(!e)throw Error("Bi");T=e;return _.K(n,I.controller.isVisible(T),2)}return(x=n.yieldResult)?_.K(n,I.controller.hidePanel(T),0):_.K(n,I.JSC$15043_commandHandler.resolveCommand(H.showCommand,l),0)})};
ML[mR]=[_.Eu,_.aw];var s2=function(V,l,I){this.innertubeTransportService=V;this.controller=l;this.JSC$15046_screenManager=I};
_.t(s2,a5);
s2.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C,By,lN,wW;return _.d(function(o1){switch(o1.nextAddress){case 1:return H=I=_.y(V,H7a),T=H.targetPanelIdentifier,x=H.contentSourcePanelIdentifier,n=H.globalConfiguration,((w=T)==null?0:w.tag)&&((N=x)==null?0:N.tag)?n?_.K(o1,l.controller.showPanel(T.tag,_.Hyc(T.tag,T),void 0,void 0,void 0),5):_.K(o1,(X=(k=l.controller).getPanel)==null?void 0:X.call(k,x.tag),4):o1.return();case 4:r=o1.yieldResult;L=(E=r)==null?void 0:
(Z=(D=E).getPanelContent)==null?void 0:Z.call(D);o1.jumpTo(3);break;case 5:return _.K(o1,_.R2(l.innertubeTransportService,V),6);case 6:S=o1.yieldResult,((p=S)==null?0:p.trackingParams)&&l.JSC$15046_screenManager.graftServerVe(S.trackingParams),L=(Vf=S)==null?void 0:Vf.content,e=(C=S)==null?void 0:C.updatePanelContinuationData;case 3:if(lN=(By=L)==null?void 0:By.engagementPanelSectionListRenderer)return _.K(o1,l.controller.showPanel(T.tag,void 0,void 0,void 0,void 0,{content:lN.content,secondaryHeaderContent:(wW=
lN.header)!=null?wW:{},targetId:lN.targetId},e),0);o1.jumpTo(0)}})};
s2[mR]=[_.FM,_.Eu,_.ef];var pq=function(V,l){this.JSC$15054_commandHandler=V;this.store=l};
_.t(pq,a5);pq.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n;return _.d(function(w){if(w.nextAddress==1)return(I=_.y(V,Yn3))?_.K(w,_.I6(),2):w.return();H=w.yieldResult;if(!H)return w.return();x1c(H,l.store,(T=I)==null?void 0:T.languageCode);x=H.isSubtitlesOn()?_.LT("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.LT("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");n=_.fW(x);l.JSC$15054_commandHandler.resolveCommand(n);_.FU(w)})};
pq[mR]=[_.aw,Kl];var AG=function(V,l){this.shortsPlayerPromise=V;this.JSC$15058_commandHandler=l};
_.t(AG,a5);
AG.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n,w,N,L;return _.d(function(e){if(e.nextAddress==1)return(I=_.y(V,hib))?_.K(e,l.shortsPlayerPromise,2):e.return();H=e.yieldResult;var k=U1q(H);k!=null&&k.length||(H.loadModule("captions"),k=U1q(H));T=k;if((x=T)==null||!x.length)return n=_.LT("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),w=_.fW(n),l.JSC$15058_commandHandler.resolveCommand(w),e.return();H.toggleSubtitles();N=H.isSubtitlesOn()?_.LT("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.LT("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");L=_.fW(N);l.JSC$15058_commandHandler.resolveCommand(L);_.FU(e)})};
AG[mR]=[_.m6N,_.aw];var uz=function(V){this.JSC$15061_playerPromise=V};
_.t(uz,a5);uz.prototype.resolveCommand=function(V){var l=this,I,H,T,x;return _.d(function(n){if(n.nextAddress==1)return(I=_.y(V,Vq3))?_.K(n,l.JSC$15061_playerPromise,2):n.return();H=n.yieldResult;T=H.getVideoData().video_id;I.videoId===T&&(x=Number(I.offsetFromVideoStartMilliseconds),x>=0&&H.seekTo(x/1E3));_.FU(n)})};
uz[mR]=[_.fa];var a3P=_.Ul("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),vE=function(V){this.store=V};
_.t(vE,a5);
var f3P=function(V){var l,I,H,T;return _.d(function(x){if(x.nextAddress==1)return l=_.h6("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,I=_.h6("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,H=l||I,V.mainAppPlayer=new v0(H),_.K(x,V.mainAppPlayer.api,2);T=x.yieldResult;T.addEventListener("onStateChange",V.JSC$15065_playerStateChangeListener.bind(V));document.addEventListener("yt-page-data-updated",V.pauseOnNavigation.bind(V));window.addEventListener("state-navigatestart",
V.pauseOnNavigation.bind(V));_.FU(x)})};
vE.prototype.JSC$15065_playerStateChangeListener=function(V){switch(V){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"}gpP(this)};
var gpP=function(V){V.store.dispatch(_.K6("sfvAudioItemCurrentlyPlayingEntity",a3P,{key:a3P,externalVideoId:V.externalVideoId,sfvAudioItemPlaybackState:V.playbackState,nowPlayingEntityValue:V.nowPlayingEntityValue}))};
vE.prototype.pauseOnNavigation=function(){var V=this,l,I,H,T;return _.d(function(x){if(x.nextAddress==1){if(!V.mainAppPlayer){var n=new _.Yd("Error: mainAppPlayer is unavailable",V.mainAppPlayer);_.Gr(n);return x.return()}return _.K(x,V.mainAppPlayer.api,2)}l=x.yieldResult;H=(I=l)==null?void 0:I.getPlayerState();H!==1||(T=l)!=null&&T.pauseVideo();_.FU(x)})};
vE.prototype.playVideo=function(V,l,I){var H=this,T,x;return _.d(function(n){if(n.nextAddress==1)return _.K(n,(T=H.mainAppPlayer)==null?void 0:T.api,2);x=n.yieldResult;if(!H.mainAppPlayer||!x){var w=new _.Yd("Error: mainAppPlayer is unavailable",H.mainAppPlayer);_.Gr(w);return n.return()}return _.K(n,H.mainAppPlayer.loadVideoWithPlayerVars({videoId:H.externalVideoId,audio_only:"1",start:V/1E3,end:V/1E3+l,player_params:I}),0)})};
vE.prototype.pauseVideo=function(){var V=this,l,I;return _.d(function(H){if(H.nextAddress==1){if(!V.mainAppPlayer){var T=new _.Yd("Error: mainAppPlayer is unavailable",V.mainAppPlayer);_.Gr(T);return H.return()}return _.K(H,V.mainAppPlayer.api,2)}l=H.yieldResult;(I=l)==null||I.pauseVideo();_.FU(H)})};
vE.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C;return _.d(function(By){if(By.nextAddress==1)return I=_.y(V,Gjv),T=(H=I)==null?void 0:H.nowPlayingEntityValue,n=(x=I)==null?void 0:x.externalVideoId,k=Number((e=(w=I)==null?void 0:(N=w.defaultStartPoints)==null?void 0:(L=N[0])==null?void 0:L.offsetMs)!=null?e:"0"),S=Number((Z=(X=I)==null?void 0:(r=X.defaultStartPoints)==null?void 0:(E=r[0])==null?void 0:(D=E.duration)==null?void 0:D.seconds)!=null?Z:"15"),C=
(Vf=(p=I)==null?void 0:p.playerParams)!=null?Vf:"",T&&n?l.mainAppPlayer?By.jumpTo(2):_.K(By,f3P(l),2):By.return();if(By.nextAddress!=6){if(l.nowPlayingEntityValue&&T===l.nowPlayingEntityValue)return l.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.K(By,l.pauseVideo(),0):_.K(By,l.playVideo(k,S,C),0);l.externalVideoId=n;l.nowPlayingEntityValue=T;l.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.K(By,l.playVideo(k,S,C),6)}gpP(l);return By.jumpTo(0)})};
vE[mR]=[Kl];var O2=function(V){this.JSC$15082_commandHandler=V};
_.t(O2,a5);O2.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w;return _.d(function(N){if(N.nextAddress==1)return(H=_.y(V,LfZ))?_.K(N,_.I6(),2):N.return();T=N.yieldResult;if(!T)return N.return();(x=wtw(T))?I.JSC$15082_commandHandler.resolveCommand(x,l):(n=_.LT("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),w=_.fW(n),I.JSC$15082_commandHandler.resolveCommand(w));_.FU(N)})};
O2[mR]=[_.aw];var Cq=function(V){this.JSC$15085_playerPromise=V};
_.t(Cq,a5);Cq.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n;return _.d(function(w){if(w.nextAddress==1){I=_.y(V,laW);if(!I)return w.return();H=I.overlayRenderer;return H?(T=_.y(H,inN))?_.K(w,l.JSC$15085_playerPromise,3):w.jumpTo(0):w.return()}x=w.yieldResult;x.renderChapterSeekingAnimation(1,_.A5(T.text),(n=T.icon)==null?void 0:n.iconType);_.FU(w)})};
Cq[mR]=[_.fa];var as=function(V){this.store=V};
_.t(as,a5);as.prototype.resolveCommand=function(V){var l=this,I,H,T;return _.d(function(x){if(x.nextAddress==1){I=_.y(V,kdo);if(!I)return x.return();H="";(T=l.store.getState().collabInviteLink)&&I.id===T.playlistId?H=T.inviteLinkURL:I.shortUrl&&(H=I.shortUrl);return H?_.K(x,navigator.clipboard.writeText(H),3):x.jumpTo(0)}var n={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.LT("COPY_LINK_SUCCESS_TOAST")}}}}};_.F().resolve(_.aw).resolveCommand(n);_.FU(x)})};
as[mR]=[kq];var fq=function(V,l){this.innertubeTransportService=V;this.JSC$15095_commandHandler=l};
_.t(fq,a5);fq.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L,e,k,X;return _.d(function(r){if(r.nextAddress==1)return(H=_.y(V,_.Wq))?_.K(r,_.R2(I.innertubeTransportService,V,(T=l)==null?void 0:T.form),2):r.return();(x=r.yieldResult)&&x.errorMetadata&&(n=x,w=_.fW(n.error.message),I.JSC$15095_commandHandler.resolveCommand(w));N=x;if((L=N)==null?0:L.actions)for(e=_.U(N.actions),k=e.next();!k.done;k=e.next())X=k.value,I.JSC$15095_commandHandler.resolveCommand(X);_.FU(r)})};
fq[mR]=[_.FM,_.aw];var gL=function(){};
_.t(gL,a5);gL.prototype.resolveCommand=function(V){var l;return _.d(function(I){l=_.y(V,NYJ);if(!l)return I.return();(new p2a(l)).show();_.FU(I)})};_.m$=new _.Vr("PLAYLIST_EDIT_CONTROLLER_TOKEN");var iz=function(V,l,I,H){this.store=V;this.innertubeTransportService=l;this.controller=I;this.JSC$15103_commandHandler=H};
_.t(iz,a5);
iz.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C,By,lN,wW,o1,h1,ec,Zg,Va;return _.d(function(wb){if(wb.nextAddress==1){H=_.y(V,_.D0);if(!H)return wb.return();if(H.clientActions){T=_.U(H.clientActions);for(x=T.next();!x.done;x=T.next())n=x.value,I.JSC$15103_commandHandler.resolveCommand(n);var CK,CZ=l==null?void 0:(CK=l.form)==null?void 0:CK.element;CZ&&_.B$(CZ,"yt-dismissible-item-action",H.clientActions)}return _.K(wb,_.R2(I.innertubeTransportService,V,(w=
l)==null?void 0:w.form),2)}if(N=wb.yieldResult)N.errorMetadata?(L=N,e=_.fW(L.error.message),I.JSC$15103_commandHandler.resolveCommand(e),"error"in N&&((k=l)==null?0:(X=k.commandController)==null?0:X.onServerError)&&((r=l)==null||(E=r.commandController)==null||E.onServerError(V,N))):(D=l)==null||(Z=D.commandController)==null||(p=(S=Z).onSuccess)==null||p.call(S,V,N);Vf=N;((C=Vf)==null?0:C.collaborationInviteLink)&&H.playlistId&&(_.z("web_enable_invite_collaborators_link")||_.z("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
I.store.dispatch(_.IA({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:H.playlistId,inviteLinkUrl:Vf.collaborationInviteLink}}));((By=Vf)==null?0:By.redirectEndpoint)&&I.JSC$15103_commandHandler.resolveCommand(Vf.redirectEndpoint);((lN=Vf)==null?0:(wW=lN.newHeader)==null?0:wW.playlistHeaderRenderer)?m3P(I.controller,Vf.newHeader.playlistHeaderRenderer):((o1=Vf)==null?0:(h1=o1.newHeader)==null?0:h1.musicEditablePlaylistDetailHeaderRenderer)&&m3P(I.controller,Vf.newHeader.musicEditablePlaylistDetailHeaderRenderer);
I.controller.playlistVideoListElement&&((ec=Vf)==null?0:(Zg=ec.playlistEditResults)==null?0:(Va=Zg[0])==null?0:Va.playlistEditVideoAddedResultData)&&((CZ=I.controller.playlistVideoListElement)==null||CZ.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:Vf.playlistEditResults[0].playlistEditVideoAddedResultData})));_.FU(wb)})};
iz[mR]=[kq,_.FM,_.m$,_.aw];var Vj=function(V,l){this.controller=V;this.JSC$15113_commandHandler=l};
_.t(Vj,a5);Vj.prototype.resolveCommand=function(V,l){var I=this,H,T,x;return _.d(function(n){H=_.y(V,FRN);I.controller.showRefreshPill&&((T=H)==null?0:T.command)&&(I.JSC$15113_commandHandler.resolveCommand((x=H)==null?void 0:x.command,l),I.controller.showRefreshPill=!1);_.FU(n)})};
Vj[mR]=[_.uj,_.aw];var lv=function(V,l){this.store=V;this.JSC$15117_commandHandler=l||_.li.instance};
_.t(lv,a5);lv.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L,e,k,X;return _.d(function(r){H=_.y(V,ZHE);T=I.store.getState().radioButtonGroup;if((x=H)==null?0:x.command)I.JSC$15117_commandHandler.resolveCommand((n=H)==null?void 0:n.command,l);else if(((w=H)==null?void 0:w.formId)===T.currentFormId)for(N=Object.values(T.commandsMap),L=_.U(N),e=L.next();!e.done;e=L.next()){k=e.value;X=_.to(k);if(!X)return r.return();I.JSC$15117_commandHandler.resolveCommand(X,l)}_.FU(r)})};
lv[mR]=[kq];var iG6=new _.Vr("USER_PREFS");var IM=function(V){this.JSC$15121_prefCookie=V};
_.t(IM,a5);IM.prototype.resolveCommand=function(V){var l=this,I,H;return _.d(function(T){I=_.y(V,zX0);if(!I)return T.return();H=!1;I.flagNum&&typeof I.value==="boolean"?(_.Xu(0,I.flagNum,I.value),H=!0):I.key&&typeof I.stringValue==="string"&&(l.JSC$15121_prefCookie.set(I.key,I.stringValue),H=!0);H&&l.JSC$15121_prefCookie.save();_.FU(T)})};
IM[mR]=[iG6];var Hz=new _.Vr("PREF_STORAGE_PROMISE_TOKEN");var TD=function(V){this.JSC$15125_prefStoragePromise=V};
_.t(TD,a5);TD.prototype.resolveCommand=function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1)return(I=_.y(V,tTN))?_.K(T,l.JSC$15125_prefStoragePromise,2):T.return();H=T.yieldResult;return H===void 0||I.key===void 0||I.value===void 0?T.return():_.K(T,H.set(I.key,I.value),0)})};
TD[mR]=[Hz];var VkP=function(V){this.innertubeTransportService=V};
_.t(VkP,a5);VkP.prototype.resolveCommand=function(V,l){var I=this,H,T;return _.d(function(x){(H=_.y(V,_.a0N))&&H&&H.isFirstRequest&&(_.D8("search_overview_answer"),_.Z8("so_rq",void 0,"search_overview_answer"));return _.K(x,_.R2(I.innertubeTransportService,V,(T=l)==null?void 0:T.form),0)})};
VkP[mR]=[_.FM];var llg=function(){};
_.t(llg,a5);
llg.prototype.resolveCommand=function(V){var l,I,H,T,x,n,w,N,L;return _.d(function(e){l=_.y(V,iDW);if((I=l)==null?0:I.sectionIdentifier){if(l.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(T=(H=document.getElementsByTagName(l.sectionIdentifier))==null?void 0:H.item(0))T.scrollIntoView({behavior:"smooth"}),(x=hnc(T))&&x.focus({preventScroll:!0});return e.return()}n=document.querySelector("[section-identifier="+l.sectionIdentifier+"]");w=document.querySelector("[section-identifier="+l.referenceSectionIdentifier+
"]");if(!n)return e.return();N=l.verticalScrollOffsetDp?l.verticalScrollOffsetDp:0;w&&(N-=w.offsetTop);window.scrollTo({top:n.offsetTop+N,behavior:"smooth"});(L=hnc(n))&&L.focus({preventScroll:!0})}_.FU(e)})};var Bz=function(){};
_.t(Bz,a5);
Bz.prototype.resolveCommand=function(V){var l,I,H,T,x,n,w;return _.d(function(N){if(N.nextAddress==1){l=_.y(V,L8J);if(!l||!l.imageBytes||!navigator.clipboard)return N.return();if(l.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Gr(Error("Ci")),N.return();_.jd(N,2);H=(I=l)==null?void 0:I.imageBytes;T=H.replace(/-/g,"+").replace(/_/g,"/");x=aTT(T);n={};w=[new ClipboardItem((n[x.type]=x,n))];return _.K(N,navigator.clipboard.write(w),4)}if(N.nextAddress!=2)return _.Rv(N,0);
_.kE(N);_.FU(N)})};var xI=function(V,l){this.innertubeTransportService=V;this.JSC$15140_commandHandler=l};
_.t(xI,a5);xI.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w;return _.d(function(N){if(N.nextAddress==1)return(H=_.y(V,edW))?_.K(N,_.R2(I.innertubeTransportService,V,(T=l)==null?void 0:T.form),2):N.return();(x=N.yieldResult)&&x.errorMetadata&&H.onFailureCommand&&I.JSC$15140_commandHandler.resolveCommand(H.onFailureCommand);n=x;((w=n)==null?0:w.shareCommand)&&I.JSC$15140_commandHandler.resolveCommand(n.shareCommand,l);_.FU(N)})};
xI[mR]=[_.FM,_.aw];var U$=function(){};
_.t(U$,a5);U$.prototype.resolveCommand=function(){return _.d(function(V){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.FU(V)})};var n2=function(V){this.JSC$15147_navigationConfirmationService=V};
_.t(n2,a5);n2.prototype.resolveCommand=function(){var V=this;return _.d(function(l){V.JSC$15147_navigationConfirmationService.cancelPendingNavigation();_.FU(l)})};
n2[mR]=[jy];var $I=function(V){this.JSC$15150_screenManager=V};
_.t($I,a5);$I.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L;return _.d(function(e){T=(H=l.form)==null?void 0:H.event;n=(x=l.form)==null?void 0:x.element;if(!T)throw new _.Yd("Event not passed in when resolving command");w=_.U(T.composedPath());for(N=w.next();!N.done;N=w.next())if(L=N.value,L.tagName==="YT-COPY-LINK-RENDERER")return L.copyUrlToClipboard(),n&&_.Dt(I.JSC$15150_screenManager,n),e.return();_.FU(e)})};
$I[mR]=[_.ef];var dO=function(){this.JSC$15154_miniAppClientDataProvider=_.F().resolve(_.MW)};
_.t(dO,a5);dO.prototype.resolveCommand=function(){var V=this,l,I;return _.d(function(H){if(V.JSC$15154_miniAppClientDataProvider.clientData.has("video_id")){var T=V.JSC$15154_miniAppClientDataProvider,x=T.clientData.get("video_id");x&&T.clientData.delete("video_id");l="https://youtube.com/watch?v="+x;I=DC(l);if(I===void 0)throw Error("Di`"+l);_.uY(window,I)}_.FU(H)})};var wO=function(){};
_.t(wO,a5);wO.prototype.resolveCommand=function(){return _.d(function(V){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.FU(V)})};var Nn=function(){};
_.t(Nn,a5);Nn.prototype.resolveCommand=function(){var V;return _.d(function(l){if(l.nextAddress==1)return _.K(l,_.IEt(window.document.documentElement),2);(V=document.querySelector("mini-app-container-view-model iframe"))&&V.focus();_.FU(l)})};var K2=function(V){this.JSC$15161_navigationConfirmationService=V};
_.t(K2,a5);
K2.prototype.resolveCommand=function(){var V=this;return _.d(function(l){var I=V.JSC$15161_navigationConfirmationService,H=_.F().resolve(_.nb),T;if(((T=I.navigateParams)==null?void 0:T.data)!==void 0){var x;_.KZN(H,I.navigateParams.endpoint,I.navigateParams.data,(x=I.navigateParams.navigationType)!=null?x:1,I.navigateParams.tempData,I.navigateParams.isMiniplayer,void 0,!0);I.navigateParams=void 0;I.customConfirmationCommand=void 0}else I.navigateParams&&(H.navigate(I.navigateParams.endpoint,I.navigateParams.reload,
I.navigateParams.params,I.navigateParams.tempData,I.navigateParams.requestType,I.navigateParams.createScreenConfig,!0),I.navigateParams=void 0,I.customConfirmationCommand=void 0);_.FU(l)})};
K2[mR]=[jy];var j2=function(){};
_.t(j2,a5);j2.prototype.resolveCommand=function(){return _.d(function(V){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.FU(V)})};var YI=function(V){this.JSC$15166_prefStorage=V};
_.t(YI,a5);YI.prototype.resolveCommand=function(){var V=this,l,I;return _.d(function(H){switch(H.nextAddress){case 1:return _.K(H,V.JSC$15166_prefStorage,2);case 2:return(l=H.yieldResult)?_.K(H,l.set("sfvle",!1),3):H.return();case 3:return _.K(H,l.set("sfvles",!0),4);case 4:I=_.Fu(),_.Xu(0,203,!1),_.Xu(0,204,!0),I.save(),_.FU(H)}})};
YI[mR]=[Hz];var L2=function(V){this.JSC$15169_prefStorage=V};
_.t(L2,a5);L2.prototype.resolveCommand=function(){var V=this,l,I;return _.d(function(H){switch(H.nextAddress){case 1:return _.K(H,V.JSC$15169_prefStorage,2);case 2:return(l=H.yieldResult)?_.K(H,l.set("sfvle",!0),3):H.return();case 3:return _.K(H,l.set("sfvles",!0),4);case 4:I=_.Fu(),_.Xu(0,203,!0),_.Xu(0,204,!0),I.save(),_.FU(H)}})};
L2[mR]=[Hz];var e2=function(){};
_.t(e2,a5);e2.prototype.resolveCommand=function(V){var l;return _.d(function(I){l=_.y(V,yuB);if(!l||typeof l.key!=="string"||typeof l.value!=="string")return I.return();window.localStorage.setItem(l.key,l.value);_.FU(I)})};var kI=function(V){this.store=V};
_.t(kI,a5);kI.prototype.resolveCommand=function(V){var l=this,I;return _.d(function(H){I=_.y(V,Vet);if(!I||!I.stepId||!I.token)return H.return();l.store.dispatch(VAW({stepId:I.stepId,token:I.token,isSelected:!1}));_.FU(H)})};
kI[mR]=[kq];var F$=function(V,l,I){this.innertubeTransportService=V;this.store=l;this.JSC$15180_screenManager=I};
_.t(F$,a5);
F$.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C,By,lN,wW,o1;return _.d(function(h1){I=_.y(V,oLi);if(!I||(H=I.stepIds)==null||!H.length)return h1.return();T=l.store.getState().talkToRecs;x=[];n=[];w=_.U(I.stepIds);for(N=w.next();!N.done;N=w.next())for(L=N.value,e=void 0,(k=(e=T.stepStates[L])==null?void 0:e.userQuery)&&n.push({userQuery:k.userQuery,userQueryToken:k.token}),X=void 0,r=(X=T.stepStates[L])==null?void 0:X.selectionStates,E=_.U(Object.entries(r)),D=
E.next();!D.done;D=E.next())Z=D.value,S=_.U(Z),p=S.next().value,Vf=S.next().value,C=p,By=Vf,By.isSelected&&x.push(C);lN={selectedChipTokens:x,userQueries:n,submittedStepIds:I.stepIds};wW={browseTalk2recsFormData:lN};I.browseEndpoint?(o1=V,_.k7(o1,_.$V,I.browseEndpoint)):I.command&&(o1=I.command);return o1?_.K(h1,_.R2(l.innertubeTransportService,o1,{formData:wW,disableCache:!0}).then(function(ec){(ec==null?0:ec.trackingParams)&&l.JSC$15180_screenManager.graftServerVe(ec==null?void 0:ec.trackingParams)}),
0):h1.return()})};
F$[mR]=[_.FM,kq,_.ef];var X$=function(V){this.store=V};
_.t(X$,a5);X$.prototype.resolveCommand=function(V){var l=this,I;return _.d(function(H){I=_.y(V,icW);if(!I||!I.stepId||!I.token)return H.return();l.store.dispatch(VAW({stepId:I.stepId,token:I.token,isSelected:!0}));_.FU(H)})};
X$[mR]=[kq];var zD=function(V){this.store=V};
_.t(zD,a5);zD.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w;return _.d(function(N){H=_.y(V,hq0);if(!H||!H.stepId||!H.userQueryToken)return N.return();w=(n=(T=l)==null?void 0:(x=T.form)==null?void 0:x.userQuery)!=null?n:"";I.store.dispatch(_.IA({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:H.stepId,userQueryToken:H.userQueryToken,userQuery:w}}));_.FU(N)})};
zD[mR]=[kq];_.Il6=new _.Vr("TIMELY_ACTIONS_CONTROLLER_TOKEN");var yj=function(V){this.controller=V};
_.t(yj,a5);yj.prototype.resolveCommand=function(V){var l=this,I,H,T,x;return _.d(function(n){I=_.y(V,fEW);if(!I)return n.return();H=I;T=H.id;x=H.isVisible;if(T===void 0||x===void 0)return n.return();var w;(w=l.controller.timelyActionsMap.get(T))==null||w(T,x);_.FU(n)})};
yj[mR]=[_.Il6];var HSu=function(){this.timelyActionsMap=new Map};var tn=function(V){this.JSC$15207_commandHandler=V};
_.t(tn,a5);tn.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n;return _.d(function(w){I=_.y(V,_.Hgw);if(!I)return w.return();x=(H=I.item)==null?void 0:(T=H.notificationTextRenderer)==null?void 0:T.successResponseText;if(!x)return w.return();n=_.CW(x);l.JSC$15207_commandHandler.resolveCommand(n);_.FU(w)})};
tn[mR]=[_.aw];var rO=function(V,l){this.innertubeTransportService=V;this.JSC$15212_playerApiPromise=l};
_.t(rO,a5);
rO.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n,w,N,L,e;return _.d(function(k){if(k.nextAddress==1)return _.K(k,l.JSC$15212_playerApiPromise,2);I=k.yieldResult;H=I.getOption("captions","track");T=Object.assign({},_.y(V,_.AuW));(n=(x=I.getVideoData())==null?void 0:x.video_id)?T.externalVideoId=n:_.Rw(Error("Ei"));if((w=H)==null?0:w.languageCode)T.languageCode=H.languageCode;if((N=H)==null?0:N.kind)T.kind=H.kind;if((L=H)==null?0:L.name)T.name=H.name;e=Object.assign({},V,{getTranscriptEndpoint:T});return _.K(k,
_.R2(l.innertubeTransportService,e),0)})};
rO[mR]=[_.FM,_.fa];var GD=function(){};
_.t(GD,a5);GD.prototype.resolveCommand=function(V){var l,I,H,T,x,n,w,N;return _.d(function(L){l=_.y(V,D_N);if((I=l)==null||!I.paramKeyValuePairs)return L.return();H=window.location.href;T=_.U(l.paramKeyValuePairs);for(x=T.next();!x.done;x=T.next())n=x.value,n.key&&n.value&&(w={},H=_.qS(H,(w[n.key]=n.value,w)));N=_.F().resolve(_.Mg3);N.replaceUrl(H);_.FU(L)})};var E$=function(V,l){this.JSC$15219_commandHandler=V;this.innertubeTransportService=l};
_.t(E$,a5);
E$.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf;return _.d(function(C){switch(C.nextAddress){case 1:return(x=(H=l)==null?void 0:(T=H.form)==null?void 0:T.element)&&_.gv(x),n=_.Fu().get("hl"),w="",_.jd(C,2),_.K(C,YQf(n),4);case 4:w=C.yieldResult;_.Rv(C,3);break;case 2:return _.kE(C),x&&_.ml(x),_.Gr(Error("Gi"),"ERROR"),C.return();case 3:N=_.y(V,x9a);if(!N)return x&&_.ml(x),C.return();(k=(L=N.commerceActionConfig)==null?void 0:(e=L.commandLifeCycleConfig)==null?
void 0:e.onStartCommand)&&I.JSC$15219_commandHandler.resolveCommand(k);return _.K(C,_.R2(I.innertubeTransportService,V,{client_data:{paymentsClientToken:{token:w}}}),5);case 5:(X=C.yieldResult)?(x&&_.ml(x),((Z=X)==null?0:Z.command)&&I.JSC$15219_commandHandler.resolveCommand(X.command),(Vf=(S=N.commerceActionConfig)==null?void 0:(p=S.commandLifeCycleConfig)==null?void 0:p.onSuccessCommand)&&I.JSC$15219_commandHandler.resolveCommand(Vf)):(x&&_.ml(x),_.Gr(Error("Hi")),(D=(r=N.commerceActionConfig)==
null?void 0:(E=r.commandLifeCycleConfig)==null?void 0:E.onFailureCommand)&&I.JSC$15219_commandHandler.resolveCommand(D)),_.FU(C)}})};
E$[mR]=[_.aw,_.FM];var Jn=function(V,l,I){this.store=V;this.JSC$15235_commandHandler=l;this.innertubeTransportService=I};
_.t(Jn,a5);
Jn.prototype.resolveCommand=function(V,l){var I=this,H,T,x,n,w,N,L,e,k;return _.d(function(X){H=_.y(V,U9W);T=H.googlePaymentPayload;H.onStartCommand&&I.JSC$15235_commandHandler.resolveCommand(H.onStartCommand);x=T.encryptedPurchaseParams;n=T.ypcLogWalletAnalyticDataEndpoint;w=H.serializedTransactionFlowLoggingParams;N=T.serializedPaymentsClientParams;L=H.ypcCujContext;k=kJq(I.innertubeTransportService,(e=l)==null?void 0:e.form,x,n,w,N,L);return X.return(k.then(function(r){LDy(l==null?void 0:l.form,
!1);var E=I.store,D=I.JSC$15235_commandHandler,Z=r.integratorData;Z==null||Z===""||r.error!=null?(String(r.error)==="-1"&&H.onDismissCommand?D.resolveCommand(H.onDismissCommand):String(r.error)!=="-1"&&H.onFailureCommand&&D.resolveCommand(H.onFailureCommand),String(r.error)!=="-1"&&String(r.error)!=="132"&&_.Gr(Error("Ii"),"ERROR")):(H.googlePaymentEntityKey&&E.dispatch(_.K6("commerceAcquisitionClientPayloadEntity",H.googlePaymentEntityKey,{key:H.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:Z,
fundsGuaranteeCallbackClientData:r.integratorClientCallbackData}}})),H.onSuccessCommand&&D.resolveCommand(H.onSuccessCommand));_.w6()},function(r){LDy(l==null?void 0:l.form,!1);
_.Gr(r,"ERROR");H.onFailureCommand&&I.JSC$15235_commandHandler.resolveCommand(H.onFailureCommand)}))})};
Jn[mR]=[Kl,_.aw,_.FM];var oM=function(V,l){this.JSC$15239_commandHandler=V;this.purchaseManager=l};
_.t(oM,a5);
oM.prototype.resolveCommand=function(V){var l=this,I,H,T,x,n,w,N,L,e;return _.d(function(k){I=_.y(V,n60);((H=I)==null?0:(T=H.commandLifeCycleConfig)==null?0:T.onStartCommand)&&l.JSC$15239_commandHandler.resolveCommand(I.commandLifeCycleConfig.onStartCommand);if(!((x=I)==null?0:(n=x.googlePaymentPurchaseManagerPayload)==null?0:n.securePayloadBytes))return _.Gr(Error("Ji"),"ERROR"),k.return();w=vVJ(_.TE(I.googlePaymentPurchaseManagerPayload.securePayloadBytes));N=_.Fu().get("hl");L=_.QN();wNh(w.serialize(),
N,function(X){L.resolve(X)},function(X){L.reject(X)},L.resolve);
e=L.promise;return k.return(e.then(function(X){if(X)if(X==null?0:X.errorCode){_.Gr(Error("Ki`"+X.errorCode),"ERROR");var r,E;((r=I)==null?0:(E=r.commandLifeCycleConfig)==null?0:E.onFailureCommand)&&l.JSC$15239_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}else if(X==null?0:X.isCancelled){var D,Z;((D=I)==null?0:(Z=D.commandLifeCycleConfig)==null?0:Z.onCancelCommand)&&l.JSC$15239_commandHandler.resolveCommand(I.commandLifeCycleConfig.onCancelCommand)}else{var S,p;((S=I)==
null?0:(p=S.commandLifeCycleConfig)==null?0:p.onSuccessCommand)&&l.JSC$15239_commandHandler.resolveCommand(I.commandLifeCycleConfig.onSuccessCommand)}},function(X){_.Gr(X,"ERROR");
var r,E;((r=I)==null?0:(E=r.commandLifeCycleConfig)==null?0:E.onFailureCommand)&&l.JSC$15239_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}))})};
oM[mR]=[_.aw,N$P];var ToI=function(V,l){this.JSC$15247_commandHandler=V;this.commandAllowlistOverride=l;var I;this.commandAllowlist=(I=this.commandAllowlistOverride)!=null?I:cu};
ToI.prototype.handleResponse=function(V,l,I){var H,T=l==null?void 0:(H=l.config)==null?void 0:H.command;if(!T||this.commandAllowlist.some(function(x){return!!_.y(T,x)})){l=void 0;
I!==void 0&&(l={form:{element:I}});V.onResponseReceivedCommand&&this.JSC$15247_commandHandler.resolveCommand(V.onResponseReceivedCommand,l);V.onResponseReceivedAction&&this.JSC$15247_commandHandler.resolveCommand(V.onResponseReceivedAction,l);V.onResponseReceivedEndpoint&&this.JSC$15247_commandHandler.resolveCommand(V.onResponseReceivedEndpoint,l);V.command&&this.JSC$15247_commandHandler.resolveCommand(V.command,l);if(V.onResponseReceivedCommands)for(I=_.U(V.onResponseReceivedCommands),H=I.next();!H.done;H=
I.next())this.JSC$15247_commandHandler.resolveCommand(H.value,l);if(V.onResponseReceivedActions)for(I=_.U(V.onResponseReceivedActions),H=I.next();!H.done;H=I.next())this.JSC$15247_commandHandler.resolveCommand(H.value,l);if(V.onResponseReceivedEndpoints)for(I=_.U(V.onResponseReceivedEndpoints),H=I.next();!H.done;H=I.next())this.JSC$15247_commandHandler.resolveCommand(H.value,l);if(V.actions)for(V=_.U(V.actions),I=V.next();!I.done;I=V.next())this.JSC$15247_commandHandler.resolveCommand(I.value,l)}};
ToI[mR]=[_.aw,_.Cs(t$w)];var BoQ=new _.Vr("INNERTUBE_TOKEN_SERVICE");var xx6=new _.Vr("SCHEDULER_TOKEN");var Ux6=function(V){this.scheduler=V;V={};this.tokenMap=(V.app={},V.user={},V)};
Ux6.prototype.handleResponse=function(V,l){if(!l)throw Error("Li");var I;if(V=(I=V.responseContext)==null?void 0:I.innertubeTokenJar){if(V.appTokens){var H,T,x;I=(H=l.innerTubeRequest.context)==null?void 0:(T=H.request)==null?void 0:(x=T.innertubeTokenJar)==null?void 0:x.appTokens;nwg(this,V.appTokens,this.tokenMap.app,I)}if(V.userTokens){var n,w,N;l=(n=l.innerTubeRequest.context)==null?void 0:(w=n.request)==null?void 0:(N=w.innertubeTokenJar)==null?void 0:N.userTokens;nwg(this,V.userTokens,this.tokenMap.user,
l)}}};
Ux6.prototype.processContext=function(V){V.request||(V.request={});var l=Object.keys(this.tokenMap.app).length,I=Object.keys(this.tokenMap.user).length;if(l||I)V.request.innertubeTokenJar={},l&&(V.request.innertubeTokenJar.appTokens=[].concat(_.oI(Object.values(this.tokenMap.app).flat()))),I&&(V.request.innertubeTokenJar.userTokens=[].concat(_.oI(Object.values(this.tokenMap.user).flat())))};
var nwg=function(V,l,I,H){l=_.U(l);for(var T=l.next(),x={};!T.done;x={token$jscomp$137:void 0},T=l.next()){x.token$jscomp$137=T.value;if(x.token$jscomp$137.type===void 0)throw new _.Yd("InnerTube token has no type",x.token$jscomp$137);if(x.token$jscomp$137.clearTokens)I[x.token$jscomp$137.type]=[];else if(x.token$jscomp$137.value!==void 0){I[x.token$jscomp$137.type]||(I[x.token$jscomp$137.type]=[]);if(H!==void 0&&H.length){T=_.U(H);for(var n=T.next(),w={};!n.done;w={requestToken:void 0},n=T.next())w.requestToken=
n.value,n=I[x.token$jscomp$137.type].findIndex(function(N){return function(L){return L===N.requestToken||(0,_.EL.equals)(L,N.requestToken)}}(w)),n>-1&&I[x.token$jscomp$137.type].splice(n,1)}I[x.token$jscomp$137.type].push(x.token$jscomp$137);
x.token$jscomp$137.maxAgeSeconds&&Number(x.token$jscomp$137.maxAgeSeconds)>0&&V.scheduler.addLowPriorityJob(function(N){return function(){var L=I[N.token$jscomp$137.type].indexOf(N.token$jscomp$137);L>-1&&I[N.token$jscomp$137.type].splice(L,1)}}(x),Number(x.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.Yd("InnerTube token has no value",x.token$jscomp$137);
}};
Ux6[mR]=[xx6];var $xE=new _.Vr("LOCAL_INNERTUBE_ROUTER_TOKEN"),dxE=new _.Vr("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var hn=function(V){this.serviceMap=V};
hn.prototype.shouldPreferLocalResponse=function(V,l){return(V=wvE(this,V))?V.shouldPreferLocalResponse(l):!1};
hn.prototype.localInnertubeResponse=function(V,l){var I=this,H;return _.d(function(T){return(H=wvE(I,V))?T.return(H.localInnertubeResponse(l)):T.return(Promise.reject(Error("Mi")))})};
hn.prototype.canProvideFallbackResponse=function(V,l){return(V=wvE(this,V))?V.canProvideFallbackResponse(l):!1};
hn.prototype.localFallbackInnertubeResponse=function(V,l){var I=this,H;return _.d(function(T){return(H=wvE(I,V))?T.return(H.localFallbackInnertubeResponse(l)):T.return(Promise.reject(Error("Mi")))})};
var wvE=function(V,l){l=_.Bx(l);return l?(V=V.serviceMap[l])?V:null:null};
hn[mR]=[dxE];var EH=function(){};
EH.prototype.shouldPreferLocalResponse=function(){return!1};
EH.prototype.localInnertubeResponse=function(){return _.d(function(V){return V.return(Promise.reject(Error("Ni")))})};
EH.prototype.canProvideFallbackResponse=function(){return!0};
EH.prototype.localFallbackInnertubeResponse=function(){var V,l,I;return _.d(function(H){V=Jy("CLOSE_POPUP");l={openPopupAction:Xtc()};I={actions:[V,l]};return H.return(I)})};var AJ1=function(V,l){this.JSC$15297_upliftPromise=V;this.store=l};
_.B=AJ1.prototype;_.B.shouldPreferLocalResponse=function(V){var l=V.videoId,I;if(I=l)I=MKf(this.store.getState().entities,V.videoId);return I&&sG1(this.store.getState().entities,l)?yRg(this.store.getState().entities,V.playlistId):!1};
_.B.localInnertubeResponse=function(V){var l=this,I;return _.d(function(H){return(I=l.getPlayerResponse(V))?H.return(Promise.resolve(I)):H.return(Promise.reject(Error("Oi")))})};
_.B.canProvideFallbackResponse=function(V){return!!V.videoId};
_.B.localFallbackInnertubeResponse=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,l.JSC$15297_upliftPromise,2);I=l.getPlayerResponse(V);var T;I?T=H.return(Promise.resolve(I)):T=zV(l.store.getState().entities,V.videoId)?H.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.iJ(_.LT("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:Gvc()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
H.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.iJ(_.LT("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:rpK()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return T})};
_.B.getPlayerResponse=function(V){return j7f(this.store.getState().entities,V.videoId)};var Ga=function(V,l){this.localPlayerService=V;this.localWatchNextService=l};
Ga.prototype.shouldPreferLocalResponse=function(V){var l=V.playerRequest;V=V.watchNextRequest;return!!(l&&this.localPlayerService.shouldPreferLocalResponse(l)&&V&&this.localWatchNextService.shouldPreferLocalResponse(V))};
Ga.prototype.localInnertubeResponse=function(V){var l=this,I,H,T,x;return _.d(function(n){if(n.nextAddress==1){I=V.playerRequest;H=V.watchNextRequest;if(!I||!H)throw new _.Yd("Missing streaming request",V);return _.K(n,l.localPlayerService.localInnertubeResponse(I),2)}if(n.nextAddress!=3)return T=n.yieldResult,_.K(n,l.localWatchNextService.localInnertubeResponse(H),3);x=n.yieldResult;return n.return({playerResponse:T,watchNextResponse:x})})};
Ga.prototype.canProvideFallbackResponse=function(V){var l=V.playerRequest;V=V.watchNextRequest;return!!(l&&this.localPlayerService.canProvideFallbackResponse(l)&&V&&this.localWatchNextService.canProvideFallbackResponse(V))};
Ga.prototype.localFallbackInnertubeResponse=function(V){var l=this,I,H,T,x;return _.d(function(n){if(n.nextAddress==1)return I=V.playerRequest,H=V.watchNextRequest,I&&H?_.K(n,l.localPlayerService.localFallbackInnertubeResponse(I),2):n.return(Promise.reject(new _.Yd("Missing streaming request",V)));if(n.nextAddress!=3)return T=n.yieldResult,_.K(n,l.localWatchNextService.localFallbackInnertubeResponse(H),3);x=n.yieldResult;return n.return({playerResponse:T,watchNextResponse:x})})};var y3=function(V){this.JSC$15307_persistentStorePromiseAccessor=V};
y3.prototype.shouldPreferLocalResponse=function(){return!1};
y3.prototype.localInnertubeResponse=function(){return _.d(function(V){return V.return(Promise.reject(Error("Pi")))})};
y3.prototype.canProvideFallbackResponse=function(){return!0};
y3.prototype.localFallbackInnertubeResponse=function(){var V=this,l,I;return _.d(function(H){return H.nextAddress==1?_.K(H,V.JSC$15307_persistentStorePromiseAccessor(),2):H.nextAddress!=3?(l=H.yieldResult)?_.K(H,l.get("service:guide:fallback"),3):H.return(Promise.reject(Error("Qi"))):(I=H.yieldResult)&&_.wE(I)?H.return(tVt(_.wE(I))):H.return(Promise.reject(Error("Ri")))})};var Ji=function(){};
Ji.prototype.shouldPreferLocalResponse=function(){return!1};
Ji.prototype.localInnertubeResponse=function(){return _.d(function(V){return V.return(Promise.reject(Error("Si")))})};
Ji.prototype.canProvideFallbackResponse=function(){return!0};
Ji.prototype.localFallbackInnertubeResponse=function(){var V,l,I;return _.d(function(H){V=Jy("CLOSE_POPUP");l={openPopupAction:Xtc()};I={actions:[V,l]};return H.return(I)})};var za=function(){this.urlMap=Nou;this.fallbackCommand=_.Yg};
za.prototype.shouldPreferLocalResponse=function(V){return(V=V.url)?!!KFg(this,V):!1};
za.prototype.localInnertubeResponse=function(V){var l=this,I;return _.d(function(H){return(I=V.url)?H.return(j8h(V,KFg(l,I))):H.return(Promise.reject(Error("Ti")))})};
za.prototype.canProvideFallbackResponse=function(){return!0};
za.prototype.localFallbackInnertubeResponse=function(V){var l=this,I,H,T,x,n,w,N;return _.d(function(L){I=V.url;if(!I)return L.return(j8h(V,l.fallbackCommand));if(H=KFg(l,I))return L.return(j8h(V,H));T=void 0;x=_.Bx(I);x==="/watch"&&(n=_.Qo(I,"v"))&&(N=(w=_.Qo(I,"list"))!=null?w:void 0,T=_.mp(n,N));T||(T=l.fallbackCommand);return L.return(j8h(V,T))})};
var KFg=function(V,l){if(l)return V.urlMap[_.qz(l)]},j8h=function(V,l){l&&V.parentTrackingParams&&(l.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:V.parentTrackingParams}},l.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:l})};var ti=function(V,l,I){this.JSC$15317_upliftPromise=V;this.store=l;this.JSC$15317_persistentStorePromiseAccessor=I};
ti.prototype.shouldPreferLocalResponse=function(){return!1};
ti.prototype.localInnertubeResponse=function(){return _.d(function(V){return V.return(Promise.reject(Error("Ui")))})};
ti.prototype.canProvideFallbackResponse=function(){return!0};
ti.prototype.localFallbackInnertubeResponse=function(){var V=this;return _.d(function(l){return l.return(YXB(V))})};
var YXB=function(V){var l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,dE(V.JSC$15317_upliftPromise,V.store),2);l=H.yieldResult;I={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[z_K(l)]}}}};return H.return(LFE(V,I))})},LFE=function(V,l){var I,H;
return _.d(function(T){if(T.nextAddress==1)return _.K(T,V.JSC$15317_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3)return I=T.yieldResult,_.K(T,NY(I),3);H=T.yieldResult;return T.return({responseContext:{},contents:l,topbar:H})})};var Fz=function(V,l,I){this.JSC$15324_upliftPromise=V;this.store=l;this.JSC$15324_persistentStorePromiseAccessor=I};
Fz.prototype.shouldPreferLocalResponse=function(V){var l=V.videoId;return l&&MKf(this.store.getState().entities,l)&&sG1(this.store.getState().entities,l)?yRg(this.store.getState().entities,V.playlistId):!1};
Fz.prototype.localInnertubeResponse=function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1)return(I=V.videoId)?_.K(T,l.JSC$15324_upliftPromise,2):T.return(Promise.reject(Error("Vi")));if(T.nextAddress!=3)return _.K(T,eTE(l,V,I),3);H=T.yieldResult;return T.return(kN6(l,H,I))})};
Fz.prototype.canProvideFallbackResponse=function(V){return V.videoId?!0:!1};
Fz.prototype.localFallbackInnertubeResponse=function(V){var l=this,I,H,T,x;return _.d(function(n){switch(n.nextAddress){case 1:return(I=V.videoId)?_.K(n,l.JSC$15324_upliftPromise,2):n.return(Promise.reject(Error("Vi")));case 2:return _.K(n,eTE(l,V,I),3);case 3:H=n.yieldResult;if(zV(l.store.getState().entities,I)){n.jumpTo(4);break}return _.K(n,dE(l.JSC$15324_upliftPromise,l.store),5);case 5:return T=n.yieldResult,n.return(FFE(H,T));case 4:return MKf(l.store.getState().entities,I)&&sG1(l.store.getState().entities,
I)?n.return(kN6(l,H,I)):(x={title:_.iJ(_.LT("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Gvc()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},n.return(FFE(H,x)))}})};
var eTE=function(V,l,I){var H,T,x,n,w;return _.d(function(N){if(N.nextAddress==1)return H=l.playlistId,T=_.mp(I,H),_.K(N,V.JSC$15324_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return x=N.yieldResult,_.K(N,NY(x),3);n=N.yieldResult;w={responseContext:{},currentVideoEndpoint:T,topbar:n};return N.return(w)})},kN6=function(V,l,I){if(V=zV(V.store.getState().entities,I)){var H;
I=V.videoEntity;var T,x={title:VH(I.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.lB((H=I.localizedStrings)==null?void 0:H.viewCount),viewCount:_.lB((T=I.localizedStrings)==null?void 0:T.viewCount)}}};I.publishedTimestampMillis&&(x.dateText=_.lB(Hb3(new Date(Number(I.publishedTimestampMillis)))));H={videoPrimaryInfoRenderer:x};T=V.videoEntity;V=V.channelEntity;V={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:VH(_.LT("SHOW_MORE",void 0,"Show more")),
showLessText:VH(_.LT("SHOW_LESS",void 0,"Show less")),description:T.formattedDescription,owner:{videoOwnerRenderer:{title:VH(V.title),thumbnail:V.avatar}}}};l.contents={twoColumnWatchNextResults:{results:{results:{contents:[H,V]}}}}}return l},FFE=function(V,l){V.contents={singleColumnWatchNextResults:{results:{results:{contents:[z_K(l)]}}}};
return V};var rE=function(V,l,I){this.JSC$15330_upliftPromise=V;this.store=l;this.JSC$15330_persistentStorePromiseAccessor=I};
rE.prototype.shouldPreferLocalResponse=function(){return!1};
rE.prototype.localInnertubeResponse=function(){return _.d(function(V){return V.return(Promise.reject(Error("Wi")))})};
rE.prototype.canProvideFallbackResponse=function(){return!0};
rE.prototype.localFallbackInnertubeResponse=function(){var V=this,l,I,H,T;return _.d(function(x){switch(x.nextAddress){case 1:return _.K(x,V.JSC$15330_persistentStorePromiseAccessor(),2);case 2:return l=x.yieldResult,_.K(x,NY(l),3);case 3:return I=x.yieldResult,H={responseContext:{},topbar:I},_.K(x,V.JSC$15330_upliftPromise,4);case 4:return _.K(x,dE(V.JSC$15330_upliftPromise,V.store),5);case 5:return T=x.yieldResult,H.watchStatus={backgroundPromoRenderer:T},x.return(H)}})};var XvB=new _.Vr("ENDPOINT_MAP");var zT6=function(){var V=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return V.sequenceMap}}},KIv=function(V,l,I){var H,T=(H=l.config)==null?void 0:H.sequenceStrategy;
if(!T)return I();V.sequenceMap.has(T.sequenceKey)||V.sequenceMap.set(T.sequenceKey,[]);V=V.sequenceMap.get(T.sequenceKey);switch(T.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return yKu(V,l,I);case "REQUEST_SEQUENCE_TYPE_REPLACE":return tkr(V,l,I);default:throw new _.Yd("Request could not be sequenced",l);}},yKu=function(V,l,I){var H,T,x;
return _.d(function(n){V.length>0?(T=V[V.length-1],H=T.responsePromise.then(function(){return I()})):H=I();
x={request:l,responsePromise:H};V.push(x);rKg(V,x);return n.return(x.responsePromise)})},tkr=function(V,l,I){I=I();
if(V.length>0)for(var H=_.U(V),T=H.next();!T.done;T=H.next())T.value.responsePromise=I;var x={request:l,responsePromise:I};V.push(x);rKg(V,x);return Promise.resolve().then(function(){return V.indexOf(x)>0?x.responsePromise.then(function(n){return Object.assign({},n,{sequenceMetaData:{skipProcessing:!0}})}):x.responsePromise})},rKg=function(V,l){l.responsePromise.then(function(){var I=V.indexOf(l);
I>-1&&V.splice(I,1)})};var GNE=new _.Vr("REQUEST_SEQUENCING");var Pz=function(){};
_.t(Pz,hf);Pz.prototype.getApiPaths=function(){return[]};
Pz.prototype.getExtension=function(V){return _.y(V,aNw)};
Pz.prototype.JSC$11765_buildRequest=function(V,l){V.recaptchaToken=l.recaptchaToken};
Pz.prototype.getApiUrl=function(){return"/das_captcha"};var Dz=function(){};
_.t(Dz,hf);Dz.prototype.getApiPaths=function(){return BeW};
Dz.prototype.getExtension=function(V){return _.y(V,t3i)};
Dz.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.createBackstagePostParams&&(V.createBackstagePostParams=l.createBackstagePostParams);I.comment_text&&(V.commentText=I.comment_text);if(I.attached_video_id)V.videoAttachment={videoId:I.attached_video_id};else if(I.image_poll_options)V.pollAttachmentData={options:I.image_poll_options};else if(I.poll_options)V.pollAttachment={choices:I.poll_options};else if(I.quiz_options)V.quizAttachmentData={options:I.quiz_options};else if(I.image_blob_id)V.imageAttachment=
{encryptedBlobId:I.image_blob_id},I.source_video_id&&(V.imageAttachment.sourceExternalVideoId=I.source_video_id),I.image_preview_coordinates&&(V.imageAttachment.previewCoordinates=JSON.parse(I.image_preview_coordinates));else if(I.images_data)V.imagesAttachment={imagesData:I.images_data};else if(I.clip_external_video_id!==void 0||I.clip_offset_ms!==void 0||I.clip_duration_ms!==void 0){var H,T,x,n,w;V.clipAttachment={externalVideoId:(x=I.clip_external_video_id)!=null?x:"",offsetMs:(n=(H=I.clip_offset_ms)==
null?void 0:H.toString())!=null?n:"",durationMs:(w=(T=I.clip_duration_ms)==null?void 0:T.toString())!=null?w:""}}else I.shared_post_id&&(V.sharedPostAttachment={postId:I.shared_post_id});I.tagged_video_id&&(V.postCreationData={taggedVideoId:I.tagged_video_id});I.access_restrictions&&(typeof I.access_restrictions==="number"&&(l=I.access_restrictions,V.accessRestrictions={restriction:l!==1&&l===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof I.access_restrictions==="string"&&
(V.accessRestrictionsParams=I.access_restrictions));I.scheduled_publish_time_sec&&(V.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString())};var Zz=function(){};
_.t(Zz,hf);Zz.prototype.getApiPaths=function(){return NeJ};
Zz.prototype.getExtension=function(V){return _.y(V,tK3)};
Zz.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.decorateMessageParams&&(V.params=l.decorateMessageParams);I.text&&(V.text=I.text)};var S2=function(){};
_.t(S2,hf);S2.prototype.getApiPaths=function(){return ZRZ};
S2.prototype.getExtension=function(V){return _.y(V,rm3)};
S2.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;I.video_id&&(V.videoId=I.video_id)};var RM=function(){};
_.t(RM,hf);RM.prototype.getApiPaths=function(){return bRN};
RM.prototype.getExtension=function(V){return _.y(V,_.j1)};
RM.prototype.JSC$11765_buildRequest=function(V,l,I){I.suggestions_query&&(V.input=I.suggestions_query)};var Qj=function(){};
_.t(Qj,hf);Qj.prototype.getApiPaths=function(){return eH0};
Qj.prototype.getExtension=function(V){return _.y(V,G1W)};
Qj.prototype.JSC$11765_buildRequest=function(V,l,I){I.comment_text!==void 0&&(V.commentText=I.comment_text);I.scheduled_publish_time_sec&&(V.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString());V.updateBackstagePostParams=l.updateBackstagePostParams};var cz=function(){};
_.t(cz,hf);cz.prototype.getApiPaths=function(){return Ta};
cz.prototype.getExtension=function(V){return _.y(V,_.Ex)};
cz.prototype.JSC$11765_buildRequest=function(V,l,I){I.formData&&(V.formData=I.formData);l.token?V.continuation=l.token:l.continuationTokenKey&&(I=_.v4().getState(),l=_.nW(I.entities,"continuationTokenEntity",l.continuationTokenKey))&&(V.continuation=String(l.continuationToken))};
var Ew2=function(){};
_.t(Ew2,hf);_.B=Ew2.prototype;_.B.getApiPaths=function(){return Ta};
_.B.getExtension=function(V){return _.y(V,_.$V)};
_.B.isNavigationCommand=function(){return!0};
_.B.JSC$11772_getStoreKey=function(V){if((V=this.getExtension(V))&&V.browseId){var l={browseId:V.browseId};V.browseEndpointContextSupportedConfigs&&(l.browseEndpointContextSupportedConfigs=JSON.stringify(V.browseEndpointContextSupportedConfigs));V.params&&(l.params=V.params);V.query&&(l.query=V.query);return _.AO("browse",l)}};
_.B.JSC$11765_buildRequest=function(V,l,I){l.browseId&&(V.browseId=l.browseId);l.params&&(V.params=l.params);l.query&&(V.query=l.query);I.formData?V.formData=I.formData:l.formData&&(V.formData=l.formData);l.browseId==="FEsubscriptions"&&_.Fu().getFlag(155)&&(V.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");l.browseId==="SPaccount_playback"&&(I=_.Fu(),V.formData||(V.formData={}),V.formData.accountSettingsFormData={flagCaptionsDefaultOff:I.getFlag(65),flagAutoCaptionsDefaultOn:I.getFlag(66),
flagDisableInlinePreview:I.getFlag(186),flagAudioDescriptionDefaultOn:I.getFlag(198)});if(l.browseId==="FEwhat_to_watch"){I=_.Fu();var H=I.getFlag(196);I.getFlag(197)&&(V.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:H}}})}l.browseId==="FEwhat_to_watch"&&(l=_.Fu().getFlag(186),V.inlineSettingStatus=l?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.B.getRequestConfig=function(V,l){l=l===void 0?{}:l;var I={};if(V=this.JSC$11772_getStoreKey(V,l))I.storeStrategy={storeKey:V,disableCache:l.disableCache};_.z("web_log_browse_ticks_ks")||(I.requestTick="br_s",I.responseTick="br_r");return I};var Wz=function(){};
_.t(Wz,hf);Wz.prototype.getApiPaths=function(){return ibo};
Wz.prototype.getExtension=function(V){return _.y(V,MTZ)};
Wz.prototype.JSC$11765_buildRequest=function(V,l,I){V.legacyYoutubeChannelUsername=I.legacyYouTubeChannelUsername||"";V.legacyYoutubeChannelPassword=I.legacyYouTubeChannelPassword||""};var bv=function(){};
_.t(bv,hf);bv.prototype.getApiPaths=function(){return UoN};
bv.prototype.getExtension=function(V){return _.y(V,SRZ)};
bv.prototype.JSC$11765_buildRequest=function(V,l,I){I.recaptcha_response_token&&(V.recaptchaResponseToken=I.recaptcha_response_token);I.channel_id&&(V.channelId=I.channel_id)};var qn=function(){};
_.t(qn,hf);qn.prototype.getApiPaths=function(){return k8N};
qn.prototype.getExtension=function(V){return _.y(V,qRb)};
qn.prototype.JSC$11765_buildRequest=function(V,l,I){l.externalChannelId&&(V.externalChannelId=l.externalChannelId);I.handle&&(V.handleUpdate={handle:I.handle},l.handleEditSource&&(V.handleUpdate.handleEditSource=l.handleEditSource))};var Mn=function(){};
_.t(Mn,hf);Mn.prototype.getApiPaths=function(){return yNo};
Mn.prototype.getExtension=function(V){return _.y(V,VTi)};
Mn.prototype.JSC$11765_buildRequest=function(V,l,I){l.request&&(V.channelId=l.request.channelId);var H;if(I==null?0:(H=I.uploadDefaults)==null?0:H.emojiReactionSet)V.uploadDefaultsRequest||(V.uploadDefaultsRequest={}),V.uploadDefaultsRequest.emojiReactionSet=I.uploadDefaults.emojiReactionSet};var s$=function(){};
_.t(s$,hf);s$.prototype.getApiPaths=function(){return G80};
s$.prototype.getExtension=function(V){return _.y(V,RqJ)};
s$.prototype.JSC$11765_buildRequest=function(V,l,I){l.externalChannelId&&(V.externalChannelId=l.externalChannelId);l.channelHandleEntityKey&&(V.channelHandleEntityKey=l.channelHandleEntityKey);l.handleEditSource&&(V.handleEditSource=l.handleEditSource);I.handle?V.handle=I.handle:I.name&&(V.name=I.name)};var p2=function(){};
_.t(p2,hf);p2.prototype.getApiPaths=function(){return I6w};
p2.prototype.getExtension=function(V){return _.y(V,cq)};
p2.prototype.JSC$11765_buildRequest=function(V,l){l.actions?V.actions=l.actions:l.action&&(V.actions=[l.action])};var An=function(){};
_.t(An,hf);An.prototype.getApiPaths=function(){return HRb};
An.prototype.getExtension=function(V){return _.y(V,_.Ex)};
An.prototype.JSC$11765_buildRequest=function(V,l){l.token&&(V.continuation=l.token)};var uv=function(){};
_.t(uv,hf);uv.prototype.getApiPaths=function(){return P5Z};
uv.prototype.getExtension=function(V){return _.y(V,_.Ex)};
uv.prototype.JSC$11765_buildRequest=function(V,l){V.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";l.token&&(V.fetchCommentsParams={continuation:l.token})};var vz=function(){};
_.t(vz,hf);vz.prototype.getApiPaths=function(){return n4Z};
vz.prototype.getExtension=function(V){return _.y(V,I$N)};
vz.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.createReplyParams&&(V.createReplyParams=l.createReplyParams);l.commentText&&(V.commentText=_.A5(l.commentText));I.comment_text&&(V.commentText=I.comment_text);I.image_blob_id&&(V.imageAttachment={encryptedBlobId:I.image_blob_id});I.botguard_response&&(V.botguardResponse=I.botguard_response)};
_.vI.Object.defineProperties(vz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var O$=function(){};
_.t(O$,hf);O$.prototype.getApiPaths=function(){return $Xv};
O$.prototype.getExtension=function(V){return _.y(V,_.l$o)};
O$.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.createCommentParams&&(V.createCommentParams=l.createCommentParams);l.commentText&&(V.commentText=_.A5(l.commentText));l.videoPositionMention&&(V.videoPositionMention=l.videoPositionMention);l.sources&&(V.sources=l.sources);I.comment_text&&(V.commentText=I.comment_text);I.attached_video_id?V.videoAttachment={videoId:I.attached_video_id}:I.poll_options?V.pollAttachment={choices:I.poll_options}:I.image_blob_id?V.imageAttachment=
{encryptedBlobId:I.image_blob_id}:I.shared_post_id&&(V.sharedPostAttachment={postId:I.shared_post_id});I.access_restrictions&&typeof I.access_restrictions==="number"&&(l=I.access_restrictions,V.accessRestrictions={restriction:l!==1&&l===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});I.botguard_response&&(V.botguardResponse=I.botguard_response)};
_.vI.Object.defineProperties(O$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var C2=function(){};
_.t(C2,hf);C2.prototype.getApiPaths=function(){return FGZ};
C2.prototype.getExtension=function(V){return _.y(V,TFb)};
C2.prototype.JSC$11765_buildRequest=function(V,l,I){l.commentText&&(V.replyText=_.A5(l.commentText));I.comment_text&&(V.replyText=I.comment_text);V.updateReplyParams=l.updateReplyParams};
_.vI.Object.defineProperties(C2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aM=function(){};
_.t(aM,hf);aM.prototype.getApiPaths=function(){return X0Z};
aM.prototype.getExtension=function(V){return _.y(V,Hnb)};
aM.prototype.JSC$11765_buildRequest=function(V,l,I){l.commentText&&(V.commentText=_.A5(l.commentText));I.comment_text&&(V.commentText=I.comment_text);V.updateCommentParams=l.updateCommentParams};
_.vI.Object.defineProperties(aM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var f2=function(){};
_.t(f2,hf);f2.prototype.getApiPaths=function(){return zHB};
f2.prototype.getExtension=function(V){return _.y(V,fx0)};
f2.prototype.JSC$11765_buildRequest=function(V,l){l.settings&&(V.settings=l.settings)};var gO=function(){};
_.t(gO,hf);gO.prototype.getApiPaths=function(){return tfN};
gO.prototype.getExtension=function(V){return _.y(V,Qm3)};
gO.prototype.JSC$11765_buildRequest=function(V,l){l.channelCreationToken&&(V.channelCreationToken=l.channelCreationToken);l.source&&(V.source=l.source)};var mE=function(){};
_.t(mE,hf);mE.prototype.getApiPaths=function(){return UXw};
mE.prototype.getExtension=function(V){return _.y(V,bgN)};
mE.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;if(I.name&&(I.given_name||I.family_name))V=new _.Yd("channel creation cannot set both GAIA and YouTube names",l),_.Gr(V);else{if(l.zeroStepChannelCreationParams){if(!I.comment_text){V=new _.Yd("zero_step_create_comment_params but no zero_step_texts",l);_.Gr(V);return}V.zeroStepChannelCreationParams=l.zeroStepChannelCreationParams;V.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(V.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
I.comment_text,I.botguard_response&&(V.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=I.botguard_response))}V.channelCreationToken=l.channelCreationToken;I.given_name&&(V.givenName=I.given_name);I.family_name&&(V.familyName=I.family_name);l.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(V.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(I.name||I.handle||I.avatar_url||I.encryptedBlobId||I.isNameChanged!==void 0||I.isHandleChanged!==void 0||I.isDefaultProfilePhoto!==
void 0||I.obakeImageSource)V.overrideChannelCreationParams={},I.name&&(V.overrideChannelCreationParams.name=I.name),I.handle&&(V.overrideChannelCreationParams.handle=I.handle),I.avatar_url&&(V.overrideChannelCreationParams.avatarUrl=I.avatar_url),I.encryptedBlobId&&(V.overrideChannelCreationParams.blobEncryptionId=I.encryptedBlobId),I.enableIdentityForAllChannelCreationDialog&&(I.encryptedBlobId?V.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
I.isDefaultProfilePhoto!==void 0&&(V.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=I.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),I.isNameChanged!==void 0&&(V.overrideChannelCreationParams.identityForAllChannelCreationNameTag=I.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),I.isHandleChanged!==
void 0&&(V.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=I.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),I.obakeImageSource&&(V.overrideChannelCreationParams.obakeImageSourceType=I.obakeImageSource))}};var iv=function(){};
_.t(iv,hf);iv.prototype.getApiPaths=function(V){return(V=this.getExtension(V))&&V.status==="DISLIKE"?LbN:V&&V.status==="INDIFFERENT"?ISJ:AfW};
iv.prototype.getExtension=function(V){return _.y(V,_.Cv)};
iv.prototype.JSC$11765_buildRequest=function(V,l){l.target&&(V.target=l.target);if(l=this.getParams(l))V.params=l};
iv.prototype.getParams=function(V){switch(V==null?void 0:V.status){case "DISLIKE":return V.dislikeParams;case "INDIFFERENT":return V.removeLikeParams;default:return V==null?void 0:V.likeParams}};var VT=function(){};
_.t(VT,hf);VT.prototype.getApiPaths=function(){return N9i};
VT.prototype.getExtension=function(V){return _.y(V,dB0)};
VT.prototype.JSC$11765_buildRequest=function(V,l){l.settingItemId&&(V.settingItemId=l.settingItemId);l.stringValue!=null&&l.stringValue!==void 0?V.newValue={stringValue:l.stringValue}:l.intValue?V.newValue={intValue:l.intValue}:l.boolValue!==null&&l.boolValue!==void 0?V.newValue={boolValue:l.boolValue}:(V=new _.Yd("Unknown value type for SetSettingEndpoint.",l),_.Gr(V))};var ll=function(){};
_.t(ll,hf);ll.prototype.getApiPaths=function(){return jHB};
ll.prototype.getExtension=function(V){return _.y(V,Jta)||void 0};
ll.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.channelIds&&(V.channelIds=l.channelIds);l.siloName&&(V.siloName=l.siloName);l.params&&(V.params=l.params);I.botguardResponse&&(V.botguardResponse=I.botguardResponse);I.feature&&(V.clientFeature=I.feature)};
_.vI.Object.defineProperties(ll.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Iq=function(){};
_.t(Iq,hf);Iq.prototype.getApiPaths=function(){return LGv};
Iq.prototype.getExtension=function(V){return _.y(V,wVw)||void 0};
Iq.prototype.JSC$11765_buildRequest=function(V,l){l.channelIds&&(V.channelIds=l.channelIds);l.siloName&&(V.siloName=l.siloName);l.params&&(V.params=l.params)};
_.vI.Object.defineProperties(Iq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Hm=function(V){this.shareClientParamsProvider=V};
_.t(Hm,hf);Hm.prototype.getApiPaths=function(){return RGo};
Hm.prototype.getExtension=function(V){return _.y(V,Mq3)||_.y(V,_.sRo)||_.y(V,qM3)};
Hm.prototype.JSC$11765_buildRequest=function(V,l){l.serializedShareEntity&&(V.serializedSharedEntity=l.serializedShareEntity);if(l.clientParamIdentifier){var I;if((I=this.shareClientParamsProvider)==null?0:I.clientParams.has(l.clientParamIdentifier)){I=this.shareClientParamsProvider;l=l.clientParamIdentifier;var H=I.clientParams.get(l);H&&I.clientParams.delete(l);V.clientParams=H}}};
Hm[mR]=[phQ];var Tn=function(){};
_.t(Tn,hf);Tn.prototype.getApiPaths=function(){return fXJ};
Tn.prototype.getExtension=function(V){return _.y(V,gNb)};
Tn.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var Bm=function(){};
_.t(Bm,hf);Bm.prototype.getApiPaths=function(){return eGZ};
Bm.prototype.getExtension=function(V){return _.y(V,CnN)};
Bm.prototype.JSC$11765_buildRequest=function(V,l){l.dismissal&&(V.items=[l.dismissal])};
_.vI.Object.defineProperties(Bm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xo=function(){};
_.t(xo,hf);xo.prototype.getApiPaths=function(){return sev};
xo.prototype.getExtension=function(V){return _.y(V,_.Q3)||void 0};
xo.prototype.JSC$11765_buildRequest=function(V,l,I){V.feedbackTokens=[];l.feedbackToken&&V.feedbackTokens.push(l.feedbackToken);if(l=l.cpn||I.cpn)V.feedbackContext={cpn:l};V.isFeedbackTokenUnencrypted=!!I.is_feedback_token_unencrypted;V.shouldMerge=!1;I.extra_feedback_tokens&&(V.shouldMerge=!0,V.feedbackTokens=V.feedbackTokens.concat(I.extra_feedback_tokens))};
_.vI.Object.defineProperties(xo.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UC=function(){};
_.t(UC,hf);UC.prototype.getApiPaths=function(){return sev};
UC.prototype.getExtension=function(V){return _.y(V,_.j1)};
UC.prototype.JSC$11765_buildRequest=function(V,l,I){I.feedback_tokens&&(V.feedbackTokens=I.feedback_tokens,V.shouldMerge=!0)};
_.vI.Object.defineProperties(UC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nB=function(){};
_.t(nB,hf);nB.prototype.getApiPaths=function(){return sev};
nB.prototype.getExtension=function(V){return _.y(V,lFf)};
nB.prototype.JSC$11765_buildRequest=function(V,l){l.undoToken&&(V.feedbackTokens=[l.undoToken]);l.isUndoTokenUnencrypted&&(V.isFeedbackTokenUnencrypted=l.isUndoTokenUnencrypted)};
_.vI.Object.defineProperties(nB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $o=function(){};
_.t($o,hf);$o.prototype.getApiPaths=function(){return EkZ};
$o.prototype.getExtension=function(V){return _.y(V,uFJ)};
$o.prototype.JSC$11765_buildRequest=function(V,l){l.nextEndpoint&&_.y(l.nextEndpoint,_.cF)?V.nextEndpoint={urlEndpoint:_.y(l.nextEndpoint,_.cF)}:l.nextEndpoint&&_.y(l.nextEndpoint,_.vU)&&(V.nextEndpoint={watchEndpoint:_.y(l.nextEndpoint,_.vU)});l.setRacy&&(V.setRacy=l.setRacy);l.setControvercy&&(V.setControvercy=l.setControvercy)};var dX=function(V){this.JSC$15512_storeWithEntities=V};
_.t(dX,hf);dX.prototype.getApiPaths=function(){return FbE};
dX.prototype.getExtension=function(V){return _.y(V,Ymi)};
dX.prototype.JSC$11765_buildRequest=function(V,l){l.flowId&&(V.flowId=l.flowId);l.targetId&&(V.targetId=l.targetId);l.continuation&&(V.continuation=l.continuation);var I=l.flowStateEntityKey;if(l.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&I&&this.JSC$15512_storeWithEntities){var H;if(l=(H=this.JSC$15512_storeWithEntities.getState())==null?void 0:H.entities)if(H=_.TV(I).entityType,H=_.nW(l,H,I))V.flowState=H,V.flowStateEntityKey=I}};
_.vI.Object.defineProperties(dX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
dX[mR]=[Kl];var JK6=function(){};
_.t(JK6,hf);_.B=JK6.prototype;_.B.getApiPaths=function(){return MfN};
_.B.JSC$11772_getStoreKey=function(){return _.AO("guide")};
_.B.getRequestConfig=function(){var V=this.JSC$11772_getStoreKey(),l;V&&(l={storeStrategy:{storeKey:V}});return l};
_.B.isNavigationCommand=function(){return!0};
_.B.getExtension=function(V){return _.y(V,_.j1)};
_.B.JSC$11765_buildRequest=function(V){V.fetchLiveState=!0};var wX=function(){};
_.t(wX,hf);wX.prototype.getApiPaths=function(){return VfB};
wX.prototype.getExtension=function(V){return _.y(V,m$W)};
wX.prototype.JSC$11765_buildRequest=function(){};var Nf=function(){};
_.t(Nf,hf);Nf.prototype.getApiPaths=function(){return l6i};
Nf.prototype.getExtension=function(V){return _.y(V,i7i)};
Nf.prototype.JSC$11765_buildRequest=function(){};var KB=function(){};
_.t(KB,hf);KB.prototype.getApiPaths=function(){return aXi};
KB.prototype.getExtension=function(V){return _.y(V,_.Ex)};
KB.prototype.JSC$11765_buildRequest=function(V,l){l.token&&(V.continuation=l.token);var I,H;V==null||(I=V.context)==null||(H=I.user)==null||delete H.onBehalfOfUser};
KB.prototype.getRequestConfig=function(V){var l={},I;if(((I=this.getExtension(V))==null?void 0:I.sessionIndex)!==void 0){var H;l={authStrategy:{sessionIndex:(H=this.getExtension(V))==null?void 0:H.sessionIndex}}}return l};var j$=function(){};
_.t(j$,hf);j$.prototype.JSC$11765_getRequest=function(V){var l=this.getExtension(V),I=V="";if(l==null?0:l.popup)V="true";if(l==null?0:l.disableSignout)I="true";l={};return{input:"/getAccountSwitcherEndpoint",requestShell:p8("/getAccountSwitcherEndpoint","GET",(l["X-YouTube-Delegation-Context"]=_.h6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),l["X-YouTube-Account-Switcher-Popup"]=V,l["X-YouTube-Account-Switcher-Disable-Signout"]=I,l)),innerTubeRequest:{}}};
j$.prototype.getApiPaths=function(){return[]};
j$.prototype.getExtension=function(V){return _.y(V,_.FyJ)};
j$.prototype.JSC$11765_buildRequest=function(){};var Yo=function(){};
_.t(Yo,hf);Yo.prototype.JSC$11765_getRequest=function(V){var l="/cross_account_channel_transfer";(V=this.getExtension(V))&&(l=N6t(l,{target_session:V.targetSessionIndex,source_rapt:V.sourceRapt,rapt:V.targetRapt}));return{input:l,requestShell:p8(l,"GET"),innerTubeRequest:{}}};
Yo.prototype.getApiPaths=function(){return[]};
Yo.prototype.getExtension=function(V){return _.y(V,lxa)};
Yo.prototype.JSC$11765_buildRequest=function(){};var LB=function(){};
_.t(LB,hf);LB.prototype.getApiPaths=function(){return XQZ};
LB.prototype.isNavigationCommand=function(){return!0};
LB.prototype.getExtension=function(V){return _.y(V,_.j1)};
LB.prototype.JSC$11765_buildRequest=function(V){var l=_.Fu().get("gsml","");l&&(V.safetyModeLockerObfuscatedGaiaId=l);V.userInterfaceTheme=_.Pb(!0);_.Df()?V.deviceTheme="DEVICE_THEME_SELECTED":_.Er1()?V.deviceTheme="DEVICE_THEME_SUPPORTED":V.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var e$=function(){};
_.t(e$,hf);e$.prototype.getApiPaths=function(){return aXi};
e$.prototype.getExtension=function(V){return _.y(V,IxJ)};
e$.prototype.JSC$11765_buildRequest=function(V,l){if(l&&l.requestType&&(V.requestType=l.requestType,l.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||l.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var I=l.nextUrl;I&&(_.jzy(I)||ut(I))&&(V.nextNavendpoint={urlEndpoint:{url:I}})}l&&l.channelSwitcherQuery&&(V.channelSwitcherQuery=l.channelSwitcherQuery);l&&l.triggerChannelCreation&&(V.triggerChannelCreation=l.triggerChannelCreation);var H;if(l==null?0:(H=l.contentOwnerConfig)==
null?0:H.externalContentOwnerId)V.contentOwnerConfig=l.contentOwnerConfig;V.callCircumstance=l&&l.requestType&&l.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var T,x;l=V==null?void 0:(T=V.context)==null?void 0:(x=T.user)==null?void 0:x.onBehalfOfUser;if(l!==void 0){V.obfuscatedSelectedGaiaId=l;var n,w;V==null||(n=V.context)==null||(w=n.user)==null||delete w.onBehalfOfUser}var N,L;if(T=V==null?void 0:(N=V.context)==null?void 0:(L=N.user)==null?
void 0:L.serializedDelegationContext)V.selectedSerializedDelegationContext=T};var ko=function(){};
_.t(ko,hf);ko.prototype.getApiPaths=function(){return Sfa};
ko.prototype.getExtension=function(V){return _.y(V,gDZ)};
ko.prototype.JSC$11765_buildRequest=function(V,l){l.profileOwnerExternalChannelId&&(V.profileOwnerExternalChannelId=l.profileOwnerExternalChannelId);l.profileCardContext&&(V.profileCardContext=l.profileCardContext)};var Fy=function(){};
_.t(Fy,hf);Fy.prototype.getApiPaths=function(){return g6o};
Fy.prototype.getExtension=function(V){return _.y(V,pdN)};
Fy.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var Xy=function(){};
_.t(Xy,hf);Xy.prototype.getApiPaths=function(){return xXi};
Xy.prototype.getExtension=function(V){return _.y(V,_.HiN)};
Xy.prototype.JSC$11765_buildRequest=function(V,l){if(l=l.createBroadcastRequest)V.useMasks=l.useMasks,V.broadcastType=l.broadcastType,V.broadcastSource=l.broadcastSource,V.broadcastMetadata=l.broadcastMetadata,V.broadcastMetadataMask=l.broadcastMetadataMask,V.videoMetadata=l.videoMetadata,V.videoMetadataMask=l.videoMetadataMask,V.liveChatSettingsUpdate=l.liveChatSettingsUpdate,V.liveChatSettingsUpdateMask=l.liveChatSettingsUpdateMask,V.cloneVideoId=l.cloneVideoId,V.cloneWithOverrides=l.cloneWithOverrides,
V.targetEntity=l.targetEntity,V.scheduledRedirectMetadata=l.scheduledRedirectMetadata};var zn=function(){};
_.t(zn,hf);zn.prototype.getApiPaths=function(){return dX3};
zn.prototype.getExtension=function(V){return _.y(V,TQ3)};
zn.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.params&&(V.params=l.params);I.questionText&&(V.questionText=I.questionText);I.optionText&&I.optionText.length>0&&(V.optionText=I.optionText)};var yT=function(){};
_.t(yT,hf);yT.prototype.getApiPaths=function(){return KbN};
yT.prototype.getExtension=function(V){return _.y(V,IE3)};
yT.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var tZ=function(){};
_.t(tZ,hf);tZ.prototype.getApiPaths=function(){return GFi};
tZ.prototype.getExtension=function(V){return _.y(V,mOZ)};
tZ.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var rX=function(){};
_.t(rX,hf);rX.prototype.getApiPaths=function(){return JfE};
rX.prototype.getExtension=function(V){return _.y(V,ihi)};
rX.prototype.JSC$11765_buildRequest=function(V,l,I){l.params&&(V.params=l.params);l.continuation&&(V.continuation=l.continuation);I.currentPlayerState&&I.currentPlayerState.playerOffsetMs&&(V.currentPlayerState={playerOffsetMs:I.currentPlayerState.playerOffsetMs.toString()})};var Gn=function(){};
_.t(Gn,hf);Gn.prototype.getApiPaths=function(){return o4W};
Gn.prototype.getExtension=function(V){return _.y(V,gCB)};
Gn.prototype.JSC$11765_buildRequest=function(V,l,I){l.params&&(V.params=l.params);I.continuation&&(V.continuation=I.continuation);"hidden"in I&&(V.webClientInfo={isDocumentHidden:I.hidden});I.isInvalidationTimeoutRequest&&(V.isInvalidationTimeoutRequest=I.isInvalidationTimeoutRequest);I.invalidationPayload&&(l=fj0(_.TE(vO(I.invalidationPayload))),V.invalidationPayloadLastPublishAtUsec=cn(l,2));I.reloadActionPanel&&(V.reloadActionPanel=I.reloadActionPanel);I.fullReload&&(V.fullReload=I.fullReload);
I.currentPlayerState&&(V.currentPlayerState=I.currentPlayerState)};var EC=function(){};
_.t(EC,hf);EC.prototype.getApiPaths=function(){return uI0};
EC.prototype.getExtension=function(V){return _.y(V,HD0)};
EC.prototype.JSC$11765_buildRequest=function(V,l){V.params=l.params};var JZ=function(){};
_.t(JZ,hf);JZ.prototype.getApiPaths=function(){return E4E};
JZ.prototype.getExtension=function(V){return _.y(V,BtN)};
JZ.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var oq=function(){};
_.t(oq,hf);oq.prototype.getApiPaths=function(){return hGN};
oq.prototype.getExtension=function(V){return _.y(V,x$w)};
oq.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var hZ=function(){};
_.t(hZ,hf);hZ.prototype.getApiPaths=function(){return v4Z};
hZ.prototype.getExtension=function(V){return _.y(V,BQN)};
hZ.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var Pm=function(){};
_.t(Pm,hf);Pm.prototype.getApiPaths=function(){return C5b};
Pm.prototype.getExtension=function(V){return _.y(V,xAB)};
Pm.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var De=function(){};
_.t(De,hf);De.prototype.getApiPaths=function(){return HMZ};
De.prototype.getExtension=function(V){return _.y(V,vYa)};
De.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var Ze=function(){};
_.t(Ze,hf);Ze.prototype.getApiPaths=function(){return doE};
Ze.prototype.getExtension=function(V){return _.y(V,_.UA0)};
Ze.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.params&&(V.params=l.params);I.client_message_id&&(V.clientMessageId=I.client_message_id);I.recaptcha_token&&(V.recaptchaToken=I.recaptcha_token);I.rich_message&&I.rich_message.text_segments?(l=I.rich_message.text_segments.map(function(H){var T={};H.text&&(T.text=H.text);H.emoji_id&&(T.emojiId=H.emoji_id);return T}),V.richMessage={textSegments:l}):I.message&&(V.message=I.message);
I.currentPlayerState&&(V.currentPlayerState=I.currentPlayerState)};var S$=function(){};
_.t(S$,hf);S$.prototype.getApiPaths=function(){return w0E};
S$.prototype.getExtension=function(V){return _.y(V,nbZ)};
S$.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var Rq=function(){};
_.t(Rq,hf);Rq.prototype.getApiPaths=function(){return YEa};
Rq.prototype.getExtension=function(V){return _.y(V,dA0)};
Rq.prototype.JSC$11765_buildRequest=function(V,l,I){l.isUserInitiated&&(V.isUserInitiated=l.isUserInitiated);l.initiationSource&&(V.initiationSource=l.initiationSource);I.locationInfo&&(V.context.client.locationInfo=I.locationInfo)};var QT=function(){};
_.t(QT,hf);QT.prototype.getApiPaths=function(){return ORo};
QT.prototype.getExtension=function(V){return _.y(V,TNi)};
QT.prototype.JSC$11765_buildRequest=function(V,l,I){l.metadataUpdateRequest&&(l=l.metadataUpdateRequest,V.encryptedVideoId=l.encryptedVideoId,l.liveChat&&(l=l.liveChat,V.liveChat||(V.liveChat={}),l.performAsExternalChannelId&&(V.liveChat.performAsExternalChannelId=l.performAsExternalChannelId),l.source&&(V.liveChat.source=l.source)));var H;if(I==null?0:(H=I.liveChat)==null?0:H.liveChatSettings)V.liveChat||(V.liveChat={}),I=I.liveChat.liveChatSettings,V.liveChat.newLiveChatSettings=I,V.liveChat.newLiveChatSettingsMask||
(V.liveChat.newLiveChatSettingsMask={}),I.emojiReactionSet&&(V.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var cm=function(){};
_.t(cm,hf);cm.prototype.getApiPaths=function(){return rNZ};
cm.prototype.getExtension=function(V){return _.y(V,_.NFo)};
cm.prototype.JSC$11765_buildRequest=function(V,l,I){I.continuation?V.continuation=I.continuation:l.videoId&&(V.videoId=l.videoId);I.clientParams&&(V.clientParams=I.clientParams)};var Wm=function(){};
_.t(Wm,hf);Wm.prototype.getApiPaths=function(){return P5Z};
Wm.prototype.getExtension=function(V){return _.y(V,_.Pq)};
Wm.prototype.JSC$11765_buildRequest=function(V,l){V.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";V.fetchCommentsParams={};l.videoId&&(V.fetchCommentsParams.encryptedVideoId=l.videoId);l.postId&&(V.fetchCommentsParams.postId=l.postId);l.externalChannelId&&(V.fetchCommentsParams.externalChannelId=l.externalChannelId);l.linkedCommentId&&(V.fetchCommentsParams.linkedCommentId=l.linkedCommentId);(0,_.EL.isEmpty)(V.fetchCommentsParams)&&delete V.fetchCommentsParams};var bl=function(){};
_.t(bl,hf);bl.prototype.getApiPaths=function(){return Ta};
bl.prototype.JSC$11765_buildRequest=function(V){V.browseId="FEnotifications_inbox"};
bl.prototype.getExtension=function(V){return _.y(V,_.j1)};var qf=function(){};
_.t(qf,hf);qf.prototype.getApiPaths=function(){return P5Z};
qf.prototype.JSC$11765_buildRequest=function(V,l){l.signal==="GET_NOTIFICATIONS_MENU"&&(V.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");l.ctoken&&(V.ctoken=l.ctoken)};
var ow6=function(){};
_.t(ow6,qf);ow6.prototype.getExtension=function(V){return _.y(V,_.j1)};
var hTV=function(){};
_.t(hTV,qf);hTV.prototype.getExtension=function(V){return _.y(V,sBZ)};var Mf=function(){};
_.t(Mf,hf);Mf.prototype.getApiPaths=function(){return Wb3};
Mf.prototype.getExtension=function(V){return _.y(V,_.j1)};
Mf.prototype.JSC$11765_buildRequest=function(){};var sC=function(){};
_.t(sC,hf);sC.prototype.getApiPaths=function(){return a6N};
sC.prototype.getExtension=function(V){return _.y(V,UBE)||void 0};
sC.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params);l.secondaryParams&&(V.secondaryParams=l.secondaryParams)};var pB=function(){};
_.t(pB,hf);pB.prototype.getApiPaths=function(){return f60};
pB.prototype.getExtension=function(V){return _.y(V,Awo)};
pB.prototype.JSC$11765_buildRequest=function(V,l){l.undo&&(V.undo=l.undo);l.serializedOptOut&&(V.serializedOptOut=l.serializedOptOut);l.serializedRecordInteractionsRequest&&(V.serializedRecordInteractionsRequest=l.serializedRecordInteractionsRequest)};var AZ=function(){};
_.t(AZ,hf);AZ.prototype.getApiPaths=function(){return iRw};
AZ.prototype.getExtension=function(V){return _.y(V,uao)};
AZ.prototype.JSC$11765_buildRequest=function(V,l){l.serializedInteractionsRequest&&(V.serializedRecordNotificationInteractionsRequest=l.serializedInteractionsRequest)};var ul=function(){};
_.t(ul,hf);ul.prototype.getApiPaths=function(){return S8q};
ul.prototype.getExtension=function(V){return _.y(V,JZW)};
ul.prototype.JSC$11765_buildRequest=function(V,l,I){l=l===void 0?{}:l;I=I===void 0?{}:I;l.videoId?V.videoId=l.videoId:l.playlistId&&(V.playlistId=l.playlistId);var H,T=(H=l.offlineWebClientEligibility)!=null?H:I.offlineWebClientEligibility;T&&(V.offlineWebClientEligibility=T);var x;if(H=(x=l.preferredFormatType)!=null?x:I.preferredFormatType)V.preferredFormatType=H;var n;if(x=(n=l.lastOfflineQualitySettingsSavedMs)!=null?n:I.lastOfflineQualitySettingsSavedMs)V.lastOfflineQualitySettingsSavedMs=x;
l.params&&(V.params=l.params)};var vm=function(){};
_.t(vm,hf);vm.prototype.getApiPaths=function(){return C7};
vm.prototype.getExtension=function(V){return _.y(V,_.Ex)};
vm.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.token&&(V.continuation=l.token);I.formData&&(V.formData=I.formData)};var OC=function(){};
_.t(OC,hf);OC.prototype.getApiPaths=function(){return C7};
OC.prototype.getExtension=function(V){return _.y(V,mAW)};
OC.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;V.continuation=I.continuation};var CB=function(){};
_.t(CB,hf);CB.prototype.getApiPaths=function(){return C7};
CB.prototype.getExtension=function(V){return _.y(V,_.RK)};
CB.prototype.JSC$11765_buildRequest=function(V,l){var I,H=l.panelIdentifier||((I=l.identifier)==null?void 0:I.tag);H&&(V.panelId=H);var T;if((T=l.globalConfiguration)==null?0:T.params){var x;V.params=(x=l.globalConfiguration)==null?void 0:x.params}};
_.vI.Object.defineProperties(CB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aq=function(){};
_.t(aq,hf);aq.prototype.getApiPaths=function(){return C7};
aq.prototype.getExtension=function(V){return _.y(V,hdv)};
aq.prototype.JSC$11765_buildRequest=function(V,l){l.panelLoadingStrategy&&JRg(V,l.panelLoadingStrategy)};var fB=function(){};
_.t(fB,hf);fB.prototype.getApiPaths=function(){return C7};
fB.prototype.getExtension=function(V){return _.y(V,I0o)};
fB.prototype.JSC$11765_buildRequest=function(V,l){l.loadingStrategy&&JRg(V,l.loadingStrategy)};var gX=function(){};
_.t(gX,hf);gX.prototype.getApiPaths=function(){return C7};
gX.prototype.getExtension=function(V){return _.y(V,_.jM)};
gX.prototype.JSC$11765_buildRequest=function(V,l){l.panelLoadingStrategy&&JRg(V,l.panelLoadingStrategy)};var my=function(){};
_.t(my,hf);my.prototype.getApiPaths=function(){return C7};
my.prototype.getExtension=function(V){return _.y(V,H7a)};
my.prototype.JSC$11765_buildRequest=function(V,l){var I,H=(I=l.contentSourcePanelIdentifier)==null?void 0:I.tag;H&&(V.panelId=H);var T;if((T=l.globalConfiguration)==null?0:T.params){var x;V.params=(x=l.globalConfiguration)==null?void 0:x.params}};var il=function(){};
_.t(il,hf);il.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
il.prototype.getExtension=function(V){return _.y(V,TtB)};
il.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var V4=function(){};
_.t(V4,hf);V4.prototype.getApiPaths=function(){return tEZ};
V4.prototype.getExtension=function(V){return _.y(V,U$o)};
V4.prototype.JSC$11765_buildRequest=function(V,l){l.externalChannelId&&(V.externalChannelId=l.externalChannelId);l.superChatAction&&(V.superChatAction=l.superChatAction);l.superStickersAction&&(V.superStickersAction=l.superStickersAction)};var lA=function(){};
_.t(lA,hf);lA.prototype.getApiPaths=function(){return zGw};
lA.prototype.getExtension=function(V){return _.y(V,gUb)||_.y(V,h$3)};
lA.prototype.JSC$11765_buildRequest=function(V,l){l.videoIds?V.videoIds=l.videoIds:l.videoId&&(V.videoIds=[l.videoId]);l.playlistId&&(V.playlistId=l.playlistId);l.params&&(V.params=l.params);V.excludeWatchLater=!1};var Il=function(){};
_.t(Il,hf);Il.prototype.getApiPaths=function(){return wQb};
Il.prototype.getExtension=function(V){return _.y(V,_.Wq)};
Il.prototype.JSC$11765_buildRequest=function(V,l,I){I.create_playlist_title?V.title=I.create_playlist_title:l.title&&(V.title=l.title);if(I.create_playlist_privacy_status&&typeof I.create_playlist_privacy_status==="number"){a:{var H=I.create_playlist_privacy_status;if(H!==0){if(H===1){H="PUBLIC";break a}if(H===2){H="UNLISTED";break a}}H="PRIVATE"}V.privacyStatus=H}else l.privacyStatus&&(V.privacyStatus=l.privacyStatus);I.create_playlist_description&&(V.description=I.create_playlist_description);l.videoIds&&
(V.videoIds=l.videoIds);l.params&&(V.params=l.params);l.sourcePlaylistId&&(V.sourcePlaylistId=l.sourcePlaylistId)};var HZ=function(){};
_.t(HZ,hf);HZ.prototype.getApiPaths=function(){return jeZ};
HZ.prototype.getExtension=function(V){return _.y(V,BFZ)};
HZ.prototype.JSC$11765_buildRequest=function(V,l){V.playlistId=l.playlistId};var TC=function(){};
_.t(TC,hf);TC.prototype.getApiPaths=function(){return DXJ};
TC.prototype.getExtension=function(V){return _.y(V,WkZ)};
TC.prototype.JSC$11765_buildRequest=function(V,l){l.playlistId&&(V.playlistId=l.playlistId);l.params&&(V.params=l.params)};var BZ=function(){};
_.t(BZ,hf);BZ.prototype.getApiPaths=function(){return mXE};
BZ.prototype.getExtension=function(V){return _.y(V,_.D0)||void 0};
BZ.prototype.JSC$11765_buildRequest=function(V,l){l.actions&&(V.actions=l.actions);l.params&&(V.params=l.params);l.playlistId&&(V.playlistId=l.playlistId)};var xK=function(){};
_.t(xK,hf);_.B=xK.prototype;_.B.getApiPaths=function(){return VEJ};
_.B.getExtension=function(V){return _.y(V,_.YV)};
_.B.JSC$11765_buildRequest=function(V,l){l.videoId&&(V.playerRequest={videoId:l.videoId},l.playerParams&&(V.playerRequest.params=l.playerParams),l.racyCheckOk&&(V.playerRequest.racyCheckOk=!!l.racyCheckOk),l.contentCheckOk&&(V.playerRequest.contentCheckOk=!!l.contentCheckOk));l.params&&(V.params=l.params);l.inputType&&(V.inputType=l.inputType);V.disablePlayerResponse=!0};
_.B.getRequestConfig=function(V){var l;(V=this.JSC$11772_getStoreKey(V))&&(l={storeStrategy:{storeKey:V}});_.z("web_log_reels_ticks")&&(l=l||{},l.requestTick="r_wrs",l.responseTick="r_wrr");return l};
_.B.JSC$11772_getStoreKey=function(V){V=this.getExtension(V);if(_.z("shorts_controller_retrieve_seedless_sequence_v2")){if((V==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.AO("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.z("web_prefetch_riw_for_next_video")||_.z("web_shorts_prefetch_service_enabled"))&&V!=null&&V.videoId){var l={videoId:V.videoId};V.params&&(l.params=V.params);return _.AO("reel_item_watch",l)}};var Uc=function(){};
_.t(Uc,hf);_.B=Uc.prototype;_.B.getApiPaths=function(){return lSB};
_.B.getExtension=function(V){return _.y(V,_.YV)};
_.B.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;V.sequenceParams=l.sequenceParams;var H;((H=I)==null?0:H.contentPlaybackContext)&&_.z("web_shorts_prefetch_service_enabled")&&(V.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
_.B.JSC$11772_getStoreKey=function(V){if(_.z("shorts_controller_retrieve_seedless_sequence_v2")&&(V=this.getExtension(V),V==null?0:V.sequenceParams))return _.AO("reel_watch_sequence",{sequenceParams:V.sequenceParams})};
_.B.getRequestConfig=function(V){V=this.JSC$11772_getStoreKey(V);var l;V&&(l={storeStrategy:{storeKey:V}});_.z("reel_watch_sequence_request_log_ticks")&&(l=l||{},l.requestTick="r_wsrs",l.responseTick="r_wsrr",l.processorTick="r_wsrp");return l};
var nE=function(){};
_.t(nE,hf);nE.prototype.getApiPaths=function(){return lSB};
nE.prototype.getExtension=function(V){return _.y(V,_.Ex)};
nE.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.token&&(V.continuation=l.token);var H;((H=I)==null?0:H.contentPlaybackContext)&&_.z("web_shorts_prefetch_service_enabled")&&(V.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
nE.prototype.getRequestConfig=function(V){V=this.JSC$11772_getStoreKey(V);var l;V&&(l={storeStrategy:{storeKey:V}});_.z("reel_watch_sequence_request_log_ticks")&&(l=l||{},l.requestTick="r_wsrs",l.responseTick="r_wsrr",l.processorTick="r_wsrp");return l};var $K=function(){};
_.t($K,hf);$K.prototype.getApiPaths=function(){return kFN};
$K.prototype.getExtension=function(V){return _.y(V,_.jC0)};
$K.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.flagAction&&(V.action=l.flagAction);l.flagRequestType&&(V.flagRequestType=l.flagRequestType);l.additionalDetailCheckboxChecked&&(V.additionalDetailCheckboxChecked=l.additionalDetailCheckboxChecked);l.legalCheckboxChecked&&(V.legalCheckboxChecked=l.legalCheckboxChecked);l={};I.flag_issue_type!==void 0&&(l.issue=I.flag_issue_type);I.flag_affiliation!==void 0&&(l.affiliation=I.flag_affiliation);I.flag_full_name&&(l.fullName=I.flag_full_name);
Object.keys(l).length&&(V.legalReportDetails=l);if(I.flag_description||I.text)V.userComments=I.flag_description||I.text;l={};I.minutes!==void 0&&I.seconds!==void 0&&(l.minutes=I.minutes,l.seconds=I.seconds);I.vss_id&&(l.vssId=I.vss_id);Object.keys(l).length&&(V.videoReportDetails=l);l={};I.video_ids&&(l.videoIds=I.video_ids);I.impersonated_channel_url&&(l.impersonatedChannelUrl=I.impersonated_channel_url);Object.keys(l).length&&(V.channelAbuseReportDetails=l)};
_.vI.Object.defineProperties($K.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var d1=function(){};
_.t(d1,hf);d1.prototype.getApiPaths=function(){return rfZ};
d1.prototype.getExtension=function(V){return _.y(V,sC0)};
d1.prototype.JSC$11765_buildRequest=function(V,l){l.blockedForKidsContent&&(V.blockedForKidsContent=l.blockedForKidsContent)};var w1=function(){};
_.t(w1,hf);w1.prototype.getApiPaths=function(){return T9N};
w1.prototype.getExtension=function(V){return _.y(V,ooN)};
w1.prototype.JSC$11765_buildRequest=function(V,l,I){V.params=l.params;I.impersonated_channel_url&&(V.impersonatedChannelUrl=I.impersonated_channel_url)};var Nb=function(){};
_.t(Nb,hf);Nb.prototype.getApiPaths=function(){return pQa};
Nb.prototype.getExtension=function(V){return _.y(V,_.p63)};
Nb.prototype.JSC$11765_buildRequest=function(V,l){l.items&&(V.items=l.items);l.kidGaiaId&&(V.kidGaiaId=l.kidGaiaId)};var KE=function(){};
_.t(KE,hf);KE.prototype.getApiPaths=function(){return yfZ};
KE.prototype.getExtension=function(V){return _.y(V,_.a0N)};
KE.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params);l.targetId&&(V.targetId=l.targetId)};var jv=function(){};
_.t(jv,hf);jv.prototype.getApiPaths=function(){return nkb};
jv.prototype.getExtension=function(V){return _.y(V,p_b)};
jv.prototype.JSC$11765_buildRequest=function(V,l){l.externalVideoId&&(V.externalVideoId=l.externalVideoId);l.query&&(V.query=l.query);l.sourceTimelines&&(V.sourceTimelines=l.sourceTimelines)};var YK=function(){};
_.t(YK,hf);YK.prototype.getApiPaths=function(){return $oZ};
YK.prototype.getExtension=function(V){return _.y(V,_.Ex)||void 0};
YK.prototype.JSC$11765_buildRequest=function(V,l){l.token&&(V.continuation=l.token)};
_.POQ=function(){};
_.t(_.POQ,hf);_.B=_.POQ.prototype;_.B.getApiPaths=function(){return $oZ};
_.B.getExtension=function(V){return _.y(V,_.Nv)||void 0};
_.B.isNavigationCommand=function(){return!0};
_.B.JSC$11772_getStoreKey=function(V,l){l=l===void 0?{}:l;if(!l.disableCache&&(V=this.getExtension(V))&&V.query)return l={query:V.query},V.params&&(l.params=V.params),_.AO("search",l)};
_.B.JSC$11765_buildRequest=function(V,l,I){l.query&&(V.query=l.query);l.params&&(V.params=l.params);if(!_.z("web_forward_suggest_stats_killswitch")){var H=_.y(l,PWv);H&&(V.suggestStats=H)}var T;!_.z("kevlar_searchbox_stats_killswitch")&&((T=I.tempData)==null?0:T.gs_l)&&!_.y(l,PWv)&&(V.webSearchboxStatsUrl="/search?oq="+(I.tempData.oq||"")+"&gs_l="+I.tempData.gs_l)};
_.B.getRequestConfig=function(V,l){l=l===void 0?{}:l;V=this.JSC$11772_getStoreKey(V,l);var I;V&&(I={storeStrategy:{storeKey:V}});_.z("web_log_search_ticks_ks")||(I=I||{},I.requestTick="sr_s",I.responseTick="sr_r");return I};var LE=function(){};
_.t(LE,hf);LE.prototype.getApiPaths=function(){return QeN};
LE.prototype.getExtension=function(V){return _.y(V,edW)};
LE.prototype.JSC$11765_buildRequest=function(V,l){l.serializedGetSharingProviderDataParams&&(V.serializedGetSharingProviderDataParams=l.serializedGetSharingProviderDataParams)};var ev=function(){};
_.t(ev,hf);ev.prototype.getApiPaths=function(){return cfi};
ev.prototype.getExtension=function(V){return _.y(V,$Ow)};
ev.prototype.JSC$11765_buildRequest=function(V,l){l.endpoint&&(V.endpoint=l.endpoint);l.action&&(V.action=l.action)};var kK=function(){};
_.t(kK,hf);kK.prototype.getApiPaths=function(){return YfB};
kK.prototype.getExtension=function(V){return _.y(V,xB0)};
kK.prototype.JSC$11765_buildRequest=function(V,l){V.videoId=l.videoId;l.scheduledRedirectMetadataSourceVideoId&&(V.scheduledRedirectMetadata={sourceVideoId:l.scheduledRedirectMetadataSourceVideoId})};var DxV=XMLHttpRequest.prototype.fetch,ZS2=DxV&&DxV.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!_.Ml?!0:!1;var FK=function(V){this.JSC$15779_storeWithEntities=V};
_.t(FK,hf);_.B=FK.prototype;_.B.getApiPaths=function(){return g4a};
_.B.getExtension=function(V){return _.y(V,_.vU)||_.y(V,_.YV)||_.y(V,K1o)};
_.B.isNavigationCommand=function(){return!0};
_.B.JSC$11772_getStoreKey=function(V){if((_.z("kevlar_cache_on_ttl_player")||_.z("mweb_enable_shorts_innertube_player_prefetch")||_.z("mweb_use_new_history_manager")||_.z("web_shorts_prefetch_service_enabled"))&&(V=this.getExtension(V))&&V.videoId){var l={videoId:V.videoId};V.playlistId&&(l.playlistId=V.playlistId);V.playerParams&&(l.params=V.playerParams);return _.AO("player",l)}};
_.B.JSC$11765_getClientScreen=function(V){var l;return((l=V.contentPlaybackContext)==null?void 0:l.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.B.JSC$11765_buildRequest=function(V,l,I){if(_.z("enable_interstitial_entity_check")){var H=this.JSC$15779_storeWithEntities;if(l.videoId)for(var T=_.U(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),x=T.next();!x.done;x=T.next()){x=x.value;var n;var w=void 0,N=void 0,L=l.videoId,e=x;(n=H)?(L=_.Ul(L+e,"interstitialInteractionStateEntity"),n=(w=(N=_.nW(n.getState().entities,"interstitialInteractionStateEntity",L))==null?void 0:N.primaryButtonClicked)!=null?w:!1):n=!1;if(n)switch(x){case "CONTENT_CHECK_REQUIRED":l.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":l.racyCheckOk=!0}}}l.videoId&&(V.videoId=l.videoId);l.playlistId&&(V.playlistId=l.playlistId);l.index!==void 0&&(V.playlistIndex=l.index+1);l.playerParams&&(V.params=l.playerParams);"startTimeSeconds"in l&&l.startTimeSeconds&&(_.z("enable_player_request_builder_start_time_floor")?V.startTimeSecs=Math.floor(l.startTimeSeconds):V.startTimeSecs=l.startTimeSeconds);I.contentPlaybackContext&&(V.playbackContext={contentPlaybackContext:I.contentPlaybackContext});I.prefetchPlaybackContext&&
(V.playbackContext=Object.assign({},V.playbackContext,{prefetchPlaybackContext:I.prefetchPlaybackContext}),V.context.request||(V.context.request={}),V.context.request.isPrefetch=!0);V.playbackContext||(V.playbackContext={});H=X2b();V.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!H,supportXhr:ZS2};I.overrideMutedAtStart&&(V.overrideMutedAtStart=I.overrideMutedAtStart);V.racyCheckOk=!!l.racyCheckOk;V.contentCheckOk=!!l.contentCheckOk;!_.z("captions_prefs_killswitch")&&(I=(I=_.N9("yt-player-caption-language-preferences"))?
I:[],I==null?0:I.length)&&(V.captionParams={viewerSelectedCaptionLangs:I})};
_.B.getRequestConfig=function(V){V=this.JSC$11772_getStoreKey(V);var l;V&&(l={storeStrategy:{storeKey:V}});_.z("web_log_player_watch_next_ticks")&&(l=l||{},l.requestTick="ps_s",l.responseTick="ps_r");return l};
FK[mR]=[Kl];var XK=function(){};
_.t(XK,hf);XK.prototype.getApiPaths=function(){return KGZ};
XK.prototype.getExtension=function(V){return _.y(V,_.pV3)};
XK.prototype.JSC$11765_buildRequest=function(V,l){V.params=l.params;V.correctionText=l.correctionText};var zC=function(){};
_.t(zC,hf);zC.prototype.getApiPaths=function(){return DuJ};
zC.prototype.getExtension=function(V){return _.y(V,_.AuW)};
zC.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params);V.searchQuery=l.searchQuery;V.languageCode=l.languageCode;V.kind=l.kind;V.name=l.name;V.externalVideoId=l.externalVideoId};var y4=function(){};
_.t(y4,hf);_.B=y4.prototype;_.B.getApiPaths=function(){return JNZ};
_.B.getExtension=function(V){return _.y(V,_.vU)};
_.B.isNavigationCommand=function(){return!0};
_.B.JSC$11772_getStoreKey=function(V){if((V=this.getExtension(V))&&V.videoId){var l={videoId:V.videoId};V.playlistId&&(l.playlistId=V.playlistId);V.index&&(l.index=V.index);V.params&&(l.params=V.params);return _.AO("next",l)}};
_.B.JSC$11765_getClientScreen=function(V){var l;return((l=V.contentPlaybackContext)==null?void 0:l.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.B.JSC$11765_buildRequest=function(V,l,I){l.videoId&&(V.videoId=l.videoId);l.playlistId&&(V.playlistId=l.playlistId);l.params&&(V.params=l.params);l.index!==void 0&&(V.playlistIndex=l.index);V.racyCheckOk=!(!I.racyCheckOk&&!l.racyCheckOk);V.contentCheckOk=!!l.contentCheckOk;I.contentPlaybackContext&&(V.autonavState=I.contentPlaybackContext.autonavState,V.playbackContext={vis:I.contentPlaybackContext.vis,lactMilliseconds:I.contentPlaybackContext.lactMilliseconds});I.prefetchPlaybackContext&&(V.context.request||
(V.context.request={}),V.context.request.isPrefetch=!0);_.z("captions_hats_killswitch")||(l=_.Fu().getFlag(65),l=l!=null?!l:!1,I=!!_.N9("yt-player-sticky-caption"),V.captionsRequested=l&&I)};
_.B.getRequestConfig=function(V){V=this.JSC$11772_getStoreKey(V);var l;V&&(l={storeStrategy:{storeKey:V}});_.z("web_log_player_watch_next_ticks")&&(l=l||{},l.requestTick="wn_s",l.responseTick="wn_r");return l};
var ta=function(){};
_.t(ta,hf);ta.prototype.getApiPaths=function(){return JNZ};
ta.prototype.getExtension=function(V){return _.y(V,_.Ex)};
ta.prototype.JSC$11765_buildRequest=function(V,l){l.token&&(V.continuation=l.token)};var r1=function(V,l){this.playerRequestBuilder=V;this.watchNextRequestBuilder=l};
_.t(r1,HUB);r1.prototype.getApiPaths=function(){return qfW};
r1.prototype.getExtension=function(V){return _.y(V,_.vU)};
r1.prototype.isNavigationCommand=function(){return!0};
r1.prototype.JSC$11765_buildRequest=function(V,l,I){V.playerRequest={};V.watchNextRequest={};this.playerRequestBuilder.JSC$11765_buildRequest(V.playerRequest,l,I);this.watchNextRequestBuilder.JSC$11765_buildRequest(V.watchNextRequest,l,I)};
r1[mR]=[FK,y4];var GC=function(){};
_.t(GC,hf);GC.prototype.getApiPaths=function(){return okJ};
GC.prototype.getExtension=function(V){return _.y(V,HbW)};
GC.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.params=l.params)};var Ec=function(V){this.JSC$15806_storeWithEntities=V};
_.t(Ec,hf);Ec.prototype.getApiPaths=function(){return TeE};
Ec.prototype.getExtension=function(V){return _.y(V,Tda)||_.y(V,x9a)};
Ec.prototype.JSC$11765_buildRequest=function(V,l,I){I.client_data&&(V.clientData=I.client_data);if(l.commerceActionConfig){var H=l.commerceActionConfig;l=H.actionId;H=H.commerceActionParams;l&&(V.actionId=l);H&&(V.commerceActionParams=H)}else{var T=l.actionId,x=l.commerceActionParams;I=l.entityKeys;T&&(V.actionId=T);x&&(V.commerceActionParams=x);var n;l=(H=this.JSC$15806_storeWithEntities)==null?void 0:(n=H.getState())==null?void 0:n.entities;if(I&&l){H=[];n=_.U(I);for(I=n.next();!I.done;I=n.next())if(T=
I.value,I=_.TV(T).entityType,T=_.nW(l,I,T))x={},H.push((x[I]=T,x));V.entityMutationPayloads=H}}};
Ec.prototype.getRequestConfig=function(V){var l,I=(l=_.y(V,Tda))==null?void 0:l.requestSequenceType;if(I&&V.clickTrackingParams&&I!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:V.clickTrackingParams,sequenceType:I}}};
Ec[mR]=[Kl];var Ja=function(){};
_.t(Ja,hf);Ja.prototype.getApiPaths=function(){return hHW};
Ja.prototype.getExtension=function(V){return _.y(V,_.rMv)};
Ja.prototype.JSC$11765_buildRequest=function(V,l){l.feedbackData&&(V.feedbackData=l.feedbackData);l.params&&(V.itemParams=l.params)};
_.vI.Object.defineProperties(Ja.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ol=function(){};
_.t(ol,hf);ol.prototype.getApiPaths=function(){return PMa};
ol.prototype.getExtension=function(V){return _.y(V,G4W)};
ol.prototype.JSC$11765_buildRequest=function(V,l,I){I.payments_payload&&(V.paymentsPayload=I.payments_payload);I.offer_params&&(V.offerParams=I.offer_params);l.transactionParams&&(V.transactionParams=l.transactionParams)};var ha=function(){};
_.t(ha,hf);ha.prototype.getApiPaths=function(){return DoJ};
ha.prototype.getExtension=function(V){return _.y(V,_.E6B)};
ha.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.buybucketParams&&(V.buybucketData={params:l.buybucketParams},l.stickerParams?V.buybucketData.stickerParams=l.stickerParams:(I.rich_chat_message?V.buybucketData.richChatMessage=I.rich_chat_message:I.chat_message_text&&(V.buybucketData.chatMessageText=I.chat_message_text),I.purchase_price_micros&&(V.buybucketData.purchasePriceMicros=I.purchase_price_micros.toString())));l.donationAmountMicros&&(V.tipAmountMicros=l.donationAmountMicros,
l.tipParams&&(V.tipParams=l.tipParams));l.offerParams&&(V.offerParams=l.offerParams);l.productData&&(V.productData=l.productData);l.transactionParams&&(V.transactionParams=l.transactionParams)};var PZ=function(){};
_.t(PZ,hf);PZ.prototype.getApiPaths=function(){return ZMa};
PZ.prototype.getExtension=function(V){return _.y(V,hlB)};
PZ.prototype.JSC$11765_buildRequest=function(V,l){l.updateFopParams&&(V.updateFopParams=l.updateFopParams)};var Do=function(){};
_.t(Do,hf);Do.prototype.getApiPaths=function(){return SEN};
Do.prototype.getExtension=function(V){return _.y(V,_.x9)};
Do.prototype.JSC$11765_buildRequest=function(V,l){l.couponCode&&(V.couponCode=l.couponCode);l.params&&(V.itemParams=l.params)};var Zo=function(){};
_.t(Zo,hf);Zo.prototype.getApiPaths=function(){return RHB};
Zo.prototype.getExtension=function(V){return _.y(V,_.BdZ)};
Zo.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;l.params&&(V.params=l.params);I.ctk&&(V.clientToken=I.ctk)};var Sv=function(V){this.JSC$15841_storeWithEntities=V};
_.t(Sv,hf);Sv.prototype.getApiPaths=function(){return QH0};
Sv.prototype.getExtension=function(V){return _.y(V,_.q$)};
Sv.prototype.JSC$11765_buildRequest=function(V,l,I){I.purchase_price_micros&&(V.productData={pdgData:{purchasePriceMicros:I.purchase_price_micros.toString()}},I.rich_chat_message&&(V.productData.pdgData.richChatMessage=I.rich_chat_message),I.currency_code&&(V.productData.pdgData.currencyCode=I.currency_code));l.transactionParams&&(V.transactionParams=l.transactionParams);l.clientLocationContext&&(V.clientLocationContext=l.clientLocationContext);I.payments_payload&&(V.paymentsPayload=I.payments_payload);
I.funds_guarantee_callback_client_data&&(V.fundsGuaranteeCallbackClientData=I.funds_guarantee_callback_client_data);var H,T;I=(H=this.JSC$15841_storeWithEntities)==null?void 0:(T=H.getState())==null?void 0:T.entities;if(l.entityKeys&&I){H=[];l=_.U(l.entityKeys);for(T=l.next();!T.done;T=l.next()){var x=T.value;T=_.TV(x).entityType;if(x=_.nW(I,T,x)){var n={};H.push((n[T]=x,n))}}V.entityMutationPayloads=H}};
Sv[mR]=[Kl];var Rl=function(){};
_.t(Rl,hf);Rl.prototype.getApiPaths=function(){return cNE};
Rl.prototype.getExtension=function(V){return _.y(V,JMJ)};
Rl.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;I.backend_analytics&&(V.serializedBackendAnalyticsEvent=I.backend_analytics);l.offerParams&&(V.offerParams=l.offerParams)};var Q4=function(){};
_.t(Q4,hf);Q4.prototype.getApiPaths=function(){return SEN};
Q4.prototype.getExtension=function(V){return _.y(V,fOT)};
Q4.prototype.JSC$11765_buildRequest=function(V,l){l.params&&(V.itemParams=l.params)};var cZ=function(){};
_.t(cZ,hf);cZ.prototype.getApiPaths=function(){return WGB};
cZ.prototype.getExtension=function(V){return _.y(V,_.wfJ)};
cZ.prototype.JSC$11765_buildRequest=function(V,l,I){I.resume_time_ms&&(V.resumeTimeMs=I.resume_time_ms);l.pauseParams&&(V.pauseParams=l.pauseParams)};var WZ=function(){};
_.t(WZ,hf);WZ.prototype.getApiPaths=function(){return bMb};
WZ.prototype.getExtension=function(V){return _.y(V,_.o6N)};
WZ.prototype.JSC$11765_buildRequest=function(V,l,I){I=I===void 0?{}:I;I.c&&(V.redeemCode=I.c);I.rd&&(V.riskData=I.rd);I.ctk&&(V.clientToken=I.ctk)};var bA=function(){};
_.t(bA,hf);bA.prototype.getApiPaths=function(){return qEZ};
bA.prototype.getExtension=function(V){return _.y(V,_.NdW)};
bA.prototype.JSC$11765_buildRequest=function(V,l){l.resumeParams&&(V.resumeParams=l.resumeParams)};var qb=function(V,l){this.clientName=V;this.defaultExpirationDelayMs=l};
qb.prototype.put=function(V,l){var I=this,H;return _.d(function(T){H=Object.assign({},l.data);H.key=V;H.clientName=I.clientName;H.expireTimestampMs===void 0&&(H.expireTimestampMs=(Math.round((0,_.O_)())+I.defaultExpirationDelayMs).toString());return T.return(I.putInternal(V,H))})};
qb[mR]=[JG,vp6];var SXP=function(){qb.apply(this,arguments);this.JSC$15871_responseStore=new Map};
_.t(SXP,qb);_.B=SXP.prototype;_.B.get=function(V){var l=this;return _.d(function(I){return I.return(dc(l,V))})};
_.B.putInternal=function(V,l){var I=this,H,T,x;return _.d(function(n){H=I.defaultExpirationDelayMs;l.expireTimestampMs&&(H=Number(l.expireTimestampMs)-Math.round((0,_.O_)()),T=_.g7("mweb_override_response_store_expiration_ms"),T>0&&T<H&&(H=T));x=setTimeout(function(){I.remove(V)},H);
I.JSC$15871_responseStore.set(V,{entryData:l,timer:x});_.FU(n)})};
_.B.remove=function(V){var l=this;return _.d(function(I){RTE(l,V);_.FU(I)})};
_.B.removeAll=function(){var V=this;return _.d(function(l){V.JSC$15871_responseStore.forEach(function(I){clearTimeout(I.timer)});
V.JSC$15871_responseStore.clear();_.FU(l)})};
_.B.has=function(V){return!!this.JSC$15871_responseStore.get(V)};
_.B.getKeys=function(){return this.JSC$15871_responseStore.keys()};
var dc=function(V,l){if(V=V.JSC$15871_responseStore.get(l))return new _.$r(V.entryData)},RTE=function(V,l){var I=V.JSC$15871_responseStore.get(l);
I&&(clearTimeout(I.timer),V.JSC$15871_responseStore.delete(l))};var o8N;var D1K=function(V,l,I){qb.call(this,V,l);this.token=I};
_.t(D1K,qb);_.B=D1K.prototype;_.B.get=function(V){var l=this,I,H;return _.d(function(T){return T.nextAddress==1?_.K(T,Pst(l.token),2):T.nextAddress!=3?(I=T.yieldResult,_.K(T,I.get("ResponseStore",[V,l.clientName]),3)):(H=T.yieldResult)?T.return(new _.$r(H)):T.return(void 0)})};
_.B.putInternal=function(V,l){var I=this,H;return _.d(function(T){if(T.nextAddress==1)return _.K(T,Pst(I.token),2);H=T.yieldResult;return _.K(T,H.put("ResponseStore",l),0)})};
_.B.remove=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,Pst(l.token),2);I=H.yieldResult;return H.return(I.delete("ResponseStore",[V,l.clientName]))})};
_.B.removeAll=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,Pst(V.token),2);l=I.yieldResult;return _.K(I,aU3(l,IDBKeyRange.only(V.clientName)),0)})};
_.B.has=function(){throw Error("Xi");};_.Mb=new _.Vr("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Q8E=function(V){var l;this.stateTagsData=(l=V.responseContext)==null?void 0:l.stateTags},cKB=function(V){var l;
return((l=V.stateTagsData)==null?void 0:l.stateTagsModified)||[]};var WFV;WFV=function(V){this.JSC$15884_responseStore=V};
_.vA=function(V,l,I){if(!_.z("state_tags_killswitch")){var H=new Q8E(l);if(cKB(H).length>0){var T=V.JSC$15884_responseStore.getKeys();T=_.U(T);for(var x=T.next();!x.done;x=T.next()){x=x.value;var n=dc(V.JSC$15884_responseStore,x);if(n){var w=_.wE(n);a:{var N=void 0;n=cKB(H);w=((N=(new Q8E(w)).stateTagsData)==null?void 0:N.relevantStateTags)||[];N=_.U(w);for(w=N.next();!w.done;w=N.next())if(w=w.value,w.stateTag!=null&&n.includes(w.stateTag)&&w.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){n=
!0;break a}n=!1}n&&RTE(V.JSC$15884_responseStore,x)}}}}var L;H=(L=l.responseContext)==null?void 0:L.maxAgeSeconds;_.z("web_prefetch_riw_for_next_video")&&!H&&l.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(H=3600);I&&H&&Number(H)>0&&(l=ms(l,H),V.JSC$15884_responseStore.put(I,new _.$r(l)))};
WFV.prototype.handleResponse=function(V,l){if(!l)throw Error("Yi");var I,H;l=(I=l.config)==null?void 0:(H=I.storeStrategy)==null?void 0:H.storeKey;_.vA(this,V,l)};
WFV[mR]=[_.nz];_.j4y=new _.Vr("STORE_RESPONSE_PROCESSOR_TOKEN");var bSV=function(V){this.JSC$15887_responseStore=V};
bSV.prototype.handleResponse=function(V,l){if(l.input.match(_.Ol(lSB))){var I;if(V==null?0:(I=V.entries)==null?0:I.length)for(V=_.U(V.entries),l=V.next();!l.done;l=V.next()){I=l.value.command;var H=void 0;l=(H=_.y(I,_.YV))==null?void 0:H.unserializedPrefetchData;if(!I||!l)break;H=(new xK).JSC$11772_getStoreKey(I);var T=_.y(l,Z7o),x=void 0,n=void 0,w=void 0,N=_.g7("web_shorts_prefetch_service_ttl_seconds")>0?_.g7("web_shorts_prefetch_service_ttl_seconds"):Number((w=(x=T)==null?void 0:(n=x.responseContext)==
null?void 0:n.maxAgeSeconds)!=null?w:3600);H&&N>0&&(T=ms(T,N),this.JSC$15887_responseStore.put(H,new _.$r(T)));I=(new FK).JSC$11772_getStoreKey(I);l=_.y(l,L1E);x=T=H=void 0;n=_.g7("web_shorts_prefetch_service_ttl_seconds")>0?_.g7("web_shorts_prefetch_service_ttl_seconds"):Number((x=(H=l)==null?void 0:(T=H.responseContext)==null?void 0:T.maxAgeSeconds)!=null?x:3600);I&&n>0&&(l=ms(l,n),this.JSC$15887_responseStore.put(I,new _.$r(l)))}}};
bSV[mR]=[_.nz];var sc=function(){this.scheduler=_.Dk()},qXV;
sc.prototype.pause=function(){throw Error("Zi");};
sc.prototype.resume=function(){throw Error("Zi");};
sc.prototype.queue=function(V){var l=this,I=_.QN(),H=_.et(this.scheduler,function(){try{var T;if(_.li.instance)var x=_.li.instance;else{var n=new _.Yd("Error: Unexpected uninitialized CommandHandler.");_.Gr(n);x=void 0}(T=x)==null||T.resolveCommand(V.command);I.resolve()}catch(w){I.reject(w)}});
I.promise.thenCatch(function(T){T instanceof _.WU&&l.scheduler.cancelJob(H)});
return I.promise};
sc.prototype.queueAll=function(V){var l=new Map;V=_.U(V);for(var I=V.next();!I.done;I=V.next())I=I.value,l.set(I.id,this.queue(I));return l};var s8g=function(V,l){var I=this;this.taskModel=V;this.onTaskCancelledCallback=l;this.resolver=_.QN();V=V.proto.prefetchConfig;if(!V)throw Error("$i");if(!V.prefetchAction)throw Error("aj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(H){H instanceof _.WU&&(MkB(I,I.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),I.onTaskCancelledCallback(I.taskModel.id,I.jobId),I.tick("pcc"));
throw H;});
this.timerName=this.taskModel.id;_.D8(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},pvE=function(V){switch(V.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},MkB=function(V,l){_.P$({prefetchInfo:{cancellationReason:l}},V.timerName)};
s8g.prototype.tick=function(V){_.Z8(V,void 0,this.timerName)};var Aa=function(){var V=this;this.scheduler=_.Dk();this.maxInflightTasks=_.g7("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.g7("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Yxb;this.onTaskCancelled=function(l,I){I&&V.scheduler.cancelJob(I);AKg(V,l);pE(V,3)}},uG2=function(){Aa.instance||(Aa.instance=new Aa);
return Aa.instance};
Aa.prototype.pause=function(){this.prefetchCoordinatorState=0};
Aa.prototype.resume=function(){pE(this,0)};
Aa.prototype.queue=function(V){V=vwB(this,V);pE(this,1);return V};
Aa.prototype.queueAll=function(V){var l=new Map;V=_.U(V);for(var I=V.next();!I.done;I=V.next())I=I.value,l.set(I.id,vwB(this,I));pE(this,1);return l};
var vwB=function(V,l){var I=V.allPrefetchTasks.get(l.id);if(I)return I.cancellablePromise;try{var H=new s8g(l,V.onTaskCancelled)}catch(x){return _.bK(x)}I=H;I.tick("pcq");var T={prefetchInfo:{taskId:I.taskModel.id,isPrefetch:!0,fetchAction:I.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:I.taskModel.command.clickTrackingParams}};I.taskModel.csn&&(T.clientScreenNonce=I.taskModel.csn);_.P$(T,I.timerName);V.allPrefetchTasks.set(l.id,H);V.drainingHeap.insert(-pvE(H),H);return H.cancellablePromise},
pE=function(V,l){V.prefetchCoordinatorState===l&&(V.prefetchCoordinatorState=2,OSP(V))},OSP=function(V){for(var l={};V.prefetchCoordinatorState!==0;l={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(V.inflightPrefetchTasks.size>=V.maxInflightTasks){V.prefetchCoordinatorState=3;break}l.prefetchTask$jscomp$1=V.drainingHeap.remove();if(!l.prefetchTask$jscomp$1){V.prefetchCoordinatorState=1;break}l.taskId$jscomp$3=l.prefetchTask$jscomp$1.taskModel.id;if(V.allPrefetchTasks.has(l.taskId$jscomp$3)){var I=-1;V.coordinatorTimeoutMs>0&&(I=_.et(V.scheduler,function(H){return function(){uA(V,H.taskId$jscomp$3,Error("bj"))}}(l),V.coordinatorTimeoutMs));
V.inflightPrefetchTasks.set(l.taskId$jscomp$3,I);if(!V.JSC$15903_commandHandler){if(!_.li.instance){uA(V,l.taskId$jscomp$3,Error("cj"));continue}V.JSC$15903_commandHandler=_.li.instance}a:switch(l.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":I=1;break a;default:I=0}l.prefetchTask$jscomp$1.jobId=V.scheduler.addJob(function(H){return function(){H.prefetchTask$jscomp$1.tick("pcr");try{V.JSC$15903_commandHandler.resolveCommand(H.prefetchTask$jscomp$1.taskModel.command)||
uA(V,H.taskId$jscomp$3,Error("dj"))}catch(T){uA(V,H.taskId$jscomp$3,T)}}}(l),I,0)}}},CO6=function(V,l){(l=AKg(V,l))!=null&&(l.resolver.resolve(),l.tick("pce"));
pE(V,3)},uA=function(V,l,I){(l=AKg(V,l,I))!=null&&(l.resolver.reject(I),l.tick("pcc"),MkB(l,"CANCELLATION_REASON_ERROR"),Math.random()<=_.g7("prefetch_coordinator_error_logging_sampling_rate")&&(I=new _.Yd("Prefetch Command failed.",l.taskModel.id,I.message),_.Gr(I)));
pE(V,3)},AKg=function(V,l,I){var H=V.allPrefetchTasks.get(l);
H?((I=V.inflightPrefetchTasks.get(l))&&I!==-1&&V.scheduler.cancelJob(I),V.inflightPrefetchTasks.delete(l),V.allPrefetchTasks.delete(l)):_.hF(new _.Yd("Unexpected missing prefetch task when deleting task.",l,I==null?void 0:I.message));return H};var alE=function(V,l,I,H,T){this.id=V;this.triggerOn=l;this.cancelOn=I;this.command=H;this.proto=T};
_.vI.Object.defineProperties(alE.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var fl6=function(){this.JSC$15908_prefetchCoordinator=uG2();qXV||(qXV=new sc);this.defaultCoordinator=qXV},gwb;
fl6.getInstance=function(){gwb||(gwb=new fl6);return gwb};
fl6.prototype.get=function(V){switch(V){case 0:return this.JSC$15908_prefetchCoordinator;default:return this.defaultCoordinator}};var vZ=function(){this.coordinatorSupplier=fl6.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},V_h=function(V){var l=_.oa()||void 0,I=Object.keys(mx6)[0];
if(I){var H=V.taskIdByTriggerId.get(I);if(H!=null){V.taskIdByTriggerId.delete(I);I=[];H=_.U(H);for(var T=H.next();!T.done;T=H.next())if(T=V.tasks.get(T.value))l!=="UNDEFINED_CSN"&&(T.csn=l),I.push(T);I=R_t(I);l=[];I=_.U(I);for(H=I.next();!H.done;H=I.next()){T=_.U(H.value);H=T.next().value;T=T.next().value;H=V.coordinatorSupplier.get(H).queueAll(T);H=_.U(H);var x=H.next();for(T={};!x.done;T={taskId$jscomp$9:void 0},x=H.next()){var n=_.U(x.value);x=n.next().value;n=n.next().value;T.taskId$jscomp$9=
x;x=n;l.push(T.taskId$jscomp$9);V.queuedPromisesByTask.set(T.taskId$jscomp$9,_.Jm(x,function(w){return function(){iSI(V,w.taskId$jscomp$9)}}(T)))}}}}else _.hF(new _.Yd("Unexpected malformed TriggerEvent."))};
vZ.prototype.trigger=function(V,l){var I=this,H=this.tasks.get(V);if(!H||this.queuedPromisesByTask.has(V))return!1;lnQ(this,V,H.triggerOn);l!=="UNDEFINED_CSN"&&(H.csn=l);l=this.coordinatorSupplier.get(H.taskType).queue(H);this.queuedPromisesByTask.set(V,_.Jm(l,function(){iSI(I,V)}));
return!0};
vZ.prototype.cancel=function(V){var l=this.queuedPromisesByTask.get(V);if(l)l.cancel();else return iSI(this,V)};
var iSI=function(V,l){V.queuedPromisesByTask.delete(l);var I=V.tasks.get(l);if(!I)return!1;V.tasks.delete(l);lnQ(V,l,I.triggerOn);(I=SQt(I.cancelOn))&&(V=V.taskIdByCancelId.get(I))&&V.delete(l);return!0},lnQ=function(V,l,I){(I=Object.keys(I)[0])&&(V=V.taskIdByTriggerId.get(I))&&V.delete(l)};var mx6={taskRegistered:{}},Oc=function(){vZ.instance||(vZ.instance=new vZ);this.JSC$15917_taskManager=vZ.instance};
_.t(Oc,a5);
Oc.prototype.resolveCommand=function(V){var l=this,I,H;return _.d(function(T){I=_.y(V,ogJ);if((H=I)==null||!H.tasks){var x=new _.Yd("RegisterTasksCommand is missing tasks.");_.Gr(x);return T.return()}x=l.JSC$15917_taskManager;for(var n=_.U(I.tasks),w=n.next();!w.done;w=n.next())if(w=w.value,w=w.id&&w.triggerOn&&w.cancelOn&&w.command?new alE(w.id,w.triggerOn,w.cancelOn,w.command,w):void 0,w){var N=Object.keys(w.triggerOn)[0];if(N){var L=SQt(w.cancelOn);L?(x.tasks.set(w.id,w),x.taskIdByTriggerId.has(N)||x.taskIdByTriggerId.set(N,
new Set),x.taskIdByTriggerId.get(N).add(w.id),x.taskIdByCancelId.has(L)||x.taskIdByCancelId.set(L,new Set),x.taskIdByCancelId.get(L).add(w.id)):_.hF(new _.Yd("Unexpected malformed cancelOn field."))}else _.hF(new _.Yd("Unexpected malformed triggerOn field."))}else _.hF(new _.Yd("Unexpected malformed Task proto."));V_h(l.JSC$15917_taskManager);_.FU(T)})};var Inu={},HNY=(Inu.rendered={priority:0,callback:function(){var V={};V.numCpu=navigator.hardwareConcurrency;var l={};l.ramGb=_.nK.navigator.deviceMemory;var I={staticContext:{}};l.ramGb&&QP3(l.ramGb)&&(I.staticContext.memoryTotalKbytes=(l.ramGb*1048576).toString());V.numCpu&&QP3(V.numCpu)&&(I.staticContext.cpuCores=V.numCpu);if(_.z("web_enable_adaptive_appl_signal")){V={};l=_.Qg("rses_dpj");var H=_.Qg("rsef_dpj");l&&l>0&&H&&H>0&&(l=Math.ceil(H-l),l>0&&(V.loadLatency=l));V.loadLatency&&QP3(V.loadLatency)&&
(I.appL=V.loadLatency.toString())}_.tF("applicationStarted",I)}},Inu);var TxQ=new _.Vr("WINDOW_ON_ERROR"),Bxb=new _.Vr("ERROR_WEIGHT_MAPS"),xyu=new _.Vr("INIT_ERROR");var Uy2={},niQ=(Uy2.initialized={priority:10,callback:function(V){V.injector.resolve(xyu)()}},Uy2);var $yV=function(){},dyE=function(){var V=_.SN("meta_logger_impl");
V||(V=new $yV,_.Aq("meta_logger_impl",V));return V},wTE=function(){dyE().csiSubscriptionKey=xeW("meta_logging_csi_event",function(V){var l=V.timerName;
if(V=V.timelineData){_.D8(l,{startTime:V.startTime},l);V.infos&&_.P$(V.infos,l);for(var I=_.U(Object.keys(V.ticks)),H=I.next();!H.done;H=I.next())H=H.value,_.Z8(H,V.ticks[H],l)}})};
$yV.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&$ec(this.csiSubscriptionKey)};var NxE={},Kmr=(NxE.initialized={priority:10,callback:function(){wTE()}},NxE);var jxV=function(V,l){this.innertubeClientName=V;this.JSC$15933_prefCookie=l};
jxV.prototype.record=function(){if(_.z("web_li_record_binary_eval_tick")){var V=_.Qg("rsef_dpj");var l=_.Qg("rses_dpj");V=V!==void 0&&l!==void 0?Math.round(V-l):void 0;if(V!==void 0&&V>0){l=_.N9(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var I=this.poolSize;if(!(l.valuesSeen>=1E9)){if(l.valuesSample.length<I)l.valuesSample.push(V);else{var H=Math.floor(Math.random()*(l.valuesSeen+1));H<I&&(l.valuesSample[H]=V)}l.valuesSeen+=1}_.wd(this.storagePrefix+"-"+this.innertubeClientName,
l,2592E3);V=l.valuesSample;l=cRw(V);V=V.length<5?void 0:l<400?1:l<1700?2:3;V!==void 0&&(this.JSC$15933_prefCookie.set(this.cookiePrefix+this.innertubeClientName,V),this.JSC$15933_prefCookie.save())}}else _.Kb(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15933_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15933_prefCookie.save()};
jxV[mR]=[JG,iG6];var YS2=function(){jxV.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.t(YS2,jxV);var WD1=!1;var LmB=new _.Vr("PAGE_LOAD_TIME_TOKEN");var es6=new _.Vr("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var CE=function(V,l){this.JSC$15956_storeWithEntities=V;this.JSC$15956_commandHandler=l;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
CE.prototype.start=function(){this.JSC$15956_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
CE.prototype.observeDownloadingEntities=function(){var V=_.QGy(this.JSC$15956_storeWithEntities.getState().entities).map(function(H){return crJ(H)});
if(V.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var l=_.IV({openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:EMt()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.iJ(_.LT("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}});this.JSC$15956_commandHandler.resolveCommand(l)}this.downloadingEntities=V}else if(this.downloadingEntities.length){var I=Rpc(this.JSC$15956_storeWithEntities.getState().entities).map(function(H){return crJ(H)});
this.downloadingEntities.filter(function(H){return I.includes(H)}).length&&(V=_.IV({openPopupAction:FDw()}),this.JSC$15956_commandHandler.resolveCommand(V));
this.downloadingEntities=[]}};
CE[mR]=[Kl,_.aw];var k06;_.al=function(V,l,I,H,T,x,n,w){this.JSC$15959_playerApiPromise=V;this.JSC$15959_commandHandler=l;this.JSC$15959_screenManager=I;this.offlineWebClientEligibility=H;this.JSC$15959_prefStorage=T;this.JSC$15959_actionRouter=x;this.entityTypeMap=n;this.JSC$15959_persistentStorePromiseAccessor=w;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
k06=function(){var V=_.F().resolve(_.al),l;_.d(function(I){if(I.nextAddress==1)return V.downloadFailureListenerBound?I.return():_.K(I,V.JSC$15959_playerApiPromise,2);l=I.yieldResult;l.addEventListener("onOfflineOperationFailure",function(H){if(H.failureReason&&H.entityKey&&H.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(H.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var T=_.TV(H.entityKey).entityId;T&&V.JSC$15959_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
T)}else if(_.z("kevlar_woffle")){T=V.JSC$15959_commandHandler;var x=T.resolveCommand;H=H.failureReason;var n=_.LT("TRANSFER_FAILED",void 0,"Download failed");H==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(n=_.LT("STORAGE_FULL",void 0,"Storage full"));x.call(T,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iJ(n),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
V.downloadFailureListenerBound=!0;_.FU(I)})};
_.al.prototype.deleteVideo=function(V,l){var I=this,H,T,x;return _.d(function(n){if(n.nextAddress==1)return _.K(n,I.JSC$15959_playerApiPromise,2);H=n.yieldResult;x={offlineLoggingData:{offlineDeleteReason:(T=l)!=null?T:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.K(n,H.queueOfflineAction(V,I.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",x),0)})};
_.al.prototype.pauseVideoDownload=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,l.JSC$15959_playerApiPromise,2);I=H.yieldResult;I.pauseVideoDownload(V);_.FU(H)})};
_.al.prototype.resumeVideoDownload=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,l.JSC$15959_playerApiPromise,2);I=H.yieldResult;return _.K(H,I.resumeVideoDownload(V),0)})};
_.al[mR]=[_.fa,_.aw,_.ef,es6,Hz,aG,p7J,U2];var FmV=new _.Vr("DOWNLOAD_STATE_STORE_TOKEN");var XTh=function(V,l){this.JSC$15978_persistentStorePromiseAccessor=V;this.store=l;this.upliftCompletionResolver=new _.IQ},t_E=function(){var V=_.F().resolve(zsr),l;
_.d(function(I){switch(I.nextAddress){case 1:if(V.upliftImplPromise)return I.return(V.upliftImplPromise);_.jd(I,2);V.upliftImplPromise=y0E(V);return _.K(I,V.upliftImplPromise,4);case 4:V.upliftCompletionResolver.resolve();_.Rv(I,3);break;case 2:throw l=_.kE(I),V.upliftCompletionResolver.reject(l),l;case 3:return I.return(V.upliftImplPromise)}})},y0E=function(V){var l,I,H;
return _.d(function(T){switch(T.nextAddress){case 1:return _.PO("LOGGED_IN")?_.K(T,V.JSC$15978_persistentStorePromiseAccessor(),2):T.return();case 2:l=T.yieldResult;if(!l)return _.Z8("vdeur"),T.return();_.Z8("vdeus");_.jd(T,3);return _.K(T,r0h(l),5);case 5:I=T.yieldResult;V.store.dispatch(XqT(I));l.observe(function(x){zp1(V.store,x)});
_.Rv(T,4);break;case 3:throw H=_.kE(T),_.Z8("vdeur"),H;case 4:_.Z8("vdeuc"),_.FU(T)}})},r0h=function(V){var l;
return _.d(function(I){if(I.nextAddress==1)return _.K(I,v8y(V),2);l=I.yieldResult;return I.return(l.reduce(function(H,T){if(!T.data||!T.key||!T.entityType)return H;H[T.entityType]||(H[T.entityType]={});H[T.entityType][T.key]=T.data;return H},{}))})};
XTh[mR]=[U2,_.oU];var zsr;zsr=new _.Vr("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.fE=new _.Vr("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var g1=function(V,l){this.JSC$15981_persistentStorePromiseAccessor=V;this.transportService=l};
g1.prototype.refresh=function(){var V=this,l,I,H,T;return _.d(function(x){if(x.nextAddress==1)return _.PO("LOGGED_IN")?_.K(x,V.JSC$15981_persistentStorePromiseAccessor(),2):x.return();if(x.nextAddress!=3)return(l=x.yieldResult)?_.K(x,GJq(l),3):x.return();if((I=x.yieldResult)&&!(Number(I.data.refreshTimestampMs||0)<(0,_.O_)()))return x.return();H={browseId:"SPaccount_downloads"};T=_.Ol(Ta);_.R7(V.transportService,H,T).then(function(n){var w;if(l&&(n==null?void 0:(w=n.responseContext)==null?void 0:
w.maxAgeSeconds)!==0){var N;w=(n==null?void 0:(N=n.responseContext)==null?void 0:N.maxAgeSeconds)||604800;N=String(Math.floor((0,_.O_)())+w*1E3);l.put("service:downloads_settings:fallback",new _.$r({innertubeResponse:n,refreshTimestampMs:N}))}});
_.FU(x)})};
g1[mR]=[_.Mb,_.FM];var m0=function(V,l){this.JSC$15985_playerPromise=V;this.store=l;this.started=!1};
m0.prototype.start=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return V.started?I.return():_.K(I,V.JSC$15985_playerPromise,2);l=I.yieldResult;l.addEventListener("onOrchestrationBecameLeader",V.updateIsLeader.bind(V,!0));l.addEventListener("onOrchestrationLostLeader",V.updateIsLeader.bind(V,!1));if(l.isOrchestrationLeader)V.updateIsLeader(l.isOrchestrationLeader());else{var H=new _.Yd("Function isOrchestrationLeader is undefined",{"player.isReady":l.isReady(),"player.playVideo":l.playVideo?
"defined":"undefined"});_.Gr(H);V.updateIsLeader(!1)}V.started=!0;_.FU(I)})};
m0.prototype.updateIsLeader=function(V){this.store.dispatch(_.IA({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:V}}))};
m0[mR]=[_.fa,_.oU];var G06=function(V,l){this.networkStatusManager=V;this.JSC$15988_prefStoragePromise=l;this.redirectsToPreload=["https://youtube.com"]},EiY=function(){var V=_.F().resolve(G06),l,I,H,T,x,n;
_.d(function(w){switch(w.nextAddress){case 1:return _.K(w,V.JSC$15988_prefStoragePromise,2);case 2:l=w.yieldResult;if(!(I=l)){w.jumpTo(3);break}return _.K(w,l.get("yt-redirect-prefetch-id"),4);case 4:I=w.yieldResult;case 3:if(I||!V.networkStatusManager.isNetworkAvailable())return w.return();H={cache:"reload",redirect:"manual"};T=_.U(V.redirectsToPreload);x=T.next();case 5:if(x.done){if(!l){w.jumpTo(0);break}return _.K(w,l.set("yt-redirect-prefetch-id",!0,86400),0)}n=x.value;_.jd(w,8);return _.K(w,
_.nK.fetch(n,H),10);case 10:_.Rv(w,6);break;case 8:_.kE(w);case 6:x=T.next(),w.jumpTo(5)}})};var iA=function(V){V?(this.container=V,this.containerWasInjected=!0):this.containerWasInjected=!1};
iA.prototype.openDialog=function(V,l,I){var H=this,T;return _.d(function(x){(T=H.container)==null||T.openDialog(V,l,I);_.FU(x)})};
iA.prototype.closeDialog=function(){var V=this,l;return _.d(function(I){(l=V.container)==null||l.closeDialog();_.FU(I)})};
iA.prototype.isDialogOpen=function(){var V=this,l,I;return _.d(function(H){return H.return((I=(l=V.container)==null?void 0:l.isDialogOpen())!=null?I:!1)})};
iA[mR]=[_.Cs(MBN)];_.J0u=new _.Vr("POPUP_CONTROLLER_TOKEN");var oiE=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
oiE.prototype.registerPanel=function(V,l){if(V){this.panelMap.set(V,l);var I=this.pendingPanelResolvers.get(V);I&&(I.resolve(l),this.pendingPanelResolvers.delete(V))}};
oiE.prototype.getPanel=function(V){var l=this,I;return _.d(function(H){return(I=l.panelMap.get(V))?H.return(I):H.return(hsP(l,V))})};
var hsP=function(V,l){var I,H;return _.d(function(T){if(I=V.pendingPanelResolvers.get(l))return T.return(I.promise);H=new _.IQ;V.pendingPanelResolvers.set(l,H);return T.return(H.promise)})},P$u=function(V){oiE.call(this);
var l=this;this.popupController=V;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return l.panelMap.size}}};
_.t(P$u,oiE);_.B=P$u.prototype;_.B.getReloadContinuation=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,l.getPanel(V),2);I=H.yieldResult;return H.return(I.getReloadContinuation())})};
_.B.showPanel=function(V,l,I,H,T,x,n){var w=this,N,L,e,k;return _.d(function(X){if(X.nextAddress==1){n&&w.updatePanelContinuationDatas.set(V,n);if((N=I)==null?0:(L=N.engagementPanelPopupPresentationConfig)==null?0:L.popupType){e=I.engagementPanelPopupPresentationConfig.popupType;T===void 0&&(T=document.body);var r=X.return,E=w.popupController,D=E.openPopup;a:switch(e){case "PANEL_POPUP_TYPE_DIALOG":var Z="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":Z="DROPDOWN";break a;default:throw Error("fj`"+
e);}return r.call(X,D.call(E,V,l,Z,T))}return _.K(X,w.getPanel(V),2)}k=X.yieldResult;(l||x)&&k.updatePanel(l,!1,H,x);k.showPanel(H);_.FU(X)})};
_.B.hidePanel=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,l.getPanel(V),2);I=H.yieldResult;I.hidePanel();l.popupController.closePopup(V);_.FU(H)})};
_.B.isVisible=function(V,l){var I=this,H;return _.d(function(T){if(T.nextAddress==1)return l&&!I.panelMap.has(V)?T.return(!1):_.K(T,I.getPanel(V),2);H=T.yieldResult;return T.return(H.isVisible())})};
_.B.updatePanel=function(V,l,I,H,T,x){I=I===void 0?!1:I;var n=this,w;return _.d(function(N){if(N.nextAddress==1){if(!l&&!T)return N.return();x&&n.updatePanelContinuationDatas.set(V,x);return _.K(N,n.getPanel(V),2)}w=N.yieldResult;w.updatePanel(l,I,H,T);_.FU(N)})};
_.B.registerPanelContent=function(V,l){V&&this.panelContentMap.set(V,l)};
_.B.getPanelContent=function(V){return this.panelContentMap.get(V)};
_.B.getUpdatePanelContinuationData=function(V){return this.updatePanelContinuationDatas.get(V)};
P$u[mR]=[_.J0u];var VQ=function(V,l){this.innertubeTransportService=V;this.JSC$16004_screenManager=l},DyI=function(V){var l;
return!((l=V.panelLoadingStrategy)==null||!l.requestTemplate)};
VQ.prototype.makeRequest=function(V){var l=this,I,H;return _.d(function(T){switch(T.nextAddress){case 1:if(!DyI(l)){T.jumpTo(2);break}_.jd(T,3);return _.K(T,_.R2(l.innertubeTransportService,V),5);case 5:return I=T.yieldResult,I?T.return(I.content):(_.Gr(Error("gj")),T.return(void 0));case 3:H=_.kE(T),_.Gr(H);case 2:return T.return(void 0)}})};
VQ.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
VQ.prototype.execute=function(V){var l=this,I,H,T,x,n,w,N,L,e,k;return _.d(function(X){if(X.nextAddress==1){I=V;H=I.data;T=I.fallbackVe;x=I.parentVe;n=I.createScreenConfig;w=I.renderFn;N=I.command;l.panelLoadingStrategy=H;var r,E,D=((r=l.panelLoadingStrategy)==null?0:r.screenVe)?(E=l.panelLoadingStrategy)==null?void 0:E.screenVe:T;D&&_.xg(l.JSC$16004_screenManager,D,x,n);return(L=l.getContent())?_.K(X,w(L),2):X.jumpTo(2)}return X.nextAddress!=4?DyI(l)?_.K(X,l.makeRequest(N),4):X.return():(k=e=X.yieldResult)?
_.K(X,w(k),0):X.return()})};
VQ[mR]=[_.FM,_.ef];var l7=function(){};
l7.prototype.getContainer=function(){return _.iK()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
l7.prototype.openSheet=function(V,l){var I=this,H,T,x,n,w,N;return _.d(function(L){switch(L.nextAddress){case 1:return H={stack:[],error:void 0,hasError:!1},_.jd(L,2,3),T=_.vv,_.K(L,I.isSheetOpen(),5);case 5:x=L.yieldResult;_.QP(H,_.a8(T));if(x&&!_.z("delay_sheet_open_killswitch")){if(l&&I.currentTarget===l)return(n=I.getContainer())==null||n.closeSheet(),L.return();I.pendingData={data:V,target:l};return L.return()}V.viewModel&&(V={viewModel:V.viewModel});(w=I.getContainer())==null||w.openSheet(V,
l);I.currentTarget=l;case 3:_.YE(L);_.c1(H);_.ed(L,0);break;case 2:N=_.kE(L),H.error=N,H.hasError=!0,L.jumpTo(3)}})};
l7.prototype.closeSheet=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,(l=V.getContainer())==null?void 0:l.closeSheet(),2);if(I.nextAddress!=4)return V.currentTarget=void 0,!V.pendingData||_.z("delay_sheet_open_killswitch")?I.jumpTo(0):_.K(I,V.openSheet(V.pendingData.data,V.pendingData.target),4);V.pendingData=void 0;_.FU(I)})};
l7.prototype.isSheetOpen=function(){var V=this,l,I;return _.d(function(H){return H.return((I=(l=V.getContainer())==null?void 0:l.isSheetOpen())!=null?I:!1)})};var Y_=window.documentPictureInPicture;var ZNb=new _.Vr("APP_ROOT");var T8J=_.fl(["dark"]),B8q=_.fl(["system-icons"]),xmT=_.fl(["typography"]),UmN=_.fl(["lang"]),nyt=_.fl(["style"]),VRf=_.fl(["dir"]),lGt=_.fl(["rounded-container"]),IGt=_.fl(["style"]),dmJ=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],IE=function(V){this.JSC$16016_clientRoot=V;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
IE.prototype.openWindow=function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1)return window.documentPictureInPicture&&_.Py()&&!l.currentPipWindow?_.K(T,(I=Y_?Y_:null)==null?void 0:I.requestWindow(V),2):T.return(!1);if(T.nextAddress!=3){H=T.yieldResult;if(!H)return T.return(!1);H.addEventListener("pagehide",function(){SSE(l)});
H.addEventListener("resize",l.handlePipWindowResize);l.pipWindowResizeDelay=new _.aX(function(){l.currentPipWindow&&_.xB(l.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Yp(l.currentPipWindow.innerWidth,l.currentPipWindow.innerHeight)])},H);
$mg(H);N8y(H);return _.K(T,iyq(H),3)}if(!fMg())return T.return(!1);l.currentPipWindow=H;l.JSC$16016_eventForwarder=wRt(H,l.JSC$16016_clientRoot);l.pipWindowResizeDelay.start();return T.return(!0)})};
IE.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var SSE=function(V){if(V.currentPipWindow){var l,I;(l=Y_?Y_:null)==null||(I=l.window)==null||I.close();V.currentPipWindow.removeEventListener("resize",V.handlePipWindowResize);var H;(H=V.pipWindowResizeDelay)==null||H.dispose();V.pipWindowResizeDelay=void 0;var T;(T=V.JSC$16016_eventForwarder)==null||T.stop();V.JSC$16016_eventForwarder=void 0;l=_.U(V.onCloseCallbacks);for(I=l.next();!I.done;I=l.next())I=I.value,I();V.onCloseCallbacks=[];V.currentPipWindow=null}};
IE.prototype.getWindow=function(){return this.currentPipWindow};
var RsE=function(V,l){var I;(I=V.onCloseCallbacks)==null||I.push(l)};
_.vI.Object.defineProperties(IE.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
IE[mR]=[ZNb];var QxB=new _.Vr("PICTURE_IN_PICTURE_CONTROLLER");var KH3=function(V,l){this.lengthY=this.lengthX=0;this.lengthX=l.x-V.x;this.lengthY=l.y-V.y};var c02=function(){},m3P=function(V,l){var I;
(I=V.headerElement)==null||I.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:l}))};var WmV=function(){};
WmV.prototype.openPopup=function(V,l,I,H){var T=this,x;return _.d(function(n){if(!T.container)return n.return();x={openPopupAction:{popup:l,popupType:I,uniqueId:V}};return n.return(T.container.handleOpenPopupAction(x,H))})};
WmV.prototype.closePopup=function(V){this.container&&this.container.closePopup(V)};var bNb=function(){this.openTunnels=new Map},jlK=function(V,l,I){if(eWt(I)){I={handleEvent:function(n){l&&!l.closed&&typeof l.postMessage==="function"&&n&&n.origin&&n.source===l&&n.data&&n.data.action==="gcl_setup"&&l.postMessage({action:"gcl_transfer",
gadSource:2},n.origin)}};
for(var H=_.U(V.openTunnels),T=H.next();!T.done;T=H.next()){var x=_.U(T.value);T=x.next().value;x=x.next().value;if(T.closed)try{window.removeEventListener("message",x),V.openTunnels.delete(T)}catch(n){_.Gr(n)}}l&&V.openTunnels.size<15&&(V.openTunnels.set(l,I),window.addEventListener("message",I))}};var qSP=function(){this.clientParams=new Map},idQ=function(V){for(var l=_.U(V.clientParams.keys()),I=l.next();!I.done;I=l.next())I=I.value,I.startsWith("yt-mini-app-share")&&V.clientParams.delete(I)};var M_P=function(V,l){_.XG.call(this);var I=this;this.shortsController=V;this.storeWithShorts=l;V=_.Ln(this.storeWithShorts,_.rSJ,function(H){if(H){var T,x=(T=I.shortsController.getRoot())==null?void 0:T.getPlayer(),n;(T=(n=I.shortsController.alternativePlayerContainerElement)==null?void 0:n.getPlayerContainer())&&(x==null||x.appendTo(T))}else{var w;n=(w=I.shortsController.alternativePlayerContainerElement)==null?void 0:w.getPlayerContainer().querySelector("#player");T=I.shortsController.activeIndex;
(w=(x=I.shortsController.getRoot())==null?void 0:x.querySelector('ytd-reel-video-renderer[id="'+T+'"] #player-container'))&&(n==null||n.appendTo(w,void 0,!0))}});
this.addOnDisposeCallback(V)};
_.t(M_P,_.XG);var HG=function(V,l,I,H,T){var x=this;this.storeWithShorts=V;this.ephemeralResponseStore=l;this.store=I;this.innertubeTransportService=H;this.innertubeTransportLoader=T;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.rq(_.Lv);this.isShortsPipActive=_.rq(_.en);this.nextReelVe=_.eU(56921);this.prevReelVe=_.eU(56922);this.backButtonVe=_.eU(22156);this.TEST_ONLY={getActiveModules:function(){return x.activeModules}}},bPW,q6Z,sxg;
HG.prototype.initOrDisposeActiveModules=function(V){V?this.activeModules.push(new M_P(this,this.storeWithShorts)):(_.e11(this.activeModules),this.activeModules.length=0)};
HG.prototype.getRoot=function(){return this.rootElement};
HG.prototype.setActiveIndex=function(V){this.activeIndex=V};
_.ZPa=function(V,l){var I,H,T,x,n,w;return _.d(function(N){switch(N.nextAddress){case 1:return I=new xK,(H=I.JSC$11772_getStoreKey(l))&&V.ephemeralResponseStore.has(H)?_.K(N,V.ephemeralResponseStore.get(H),7):_.K(N,sxg(V,l),4);case 4:T=N.yieldResult;if(!H){N.jumpTo(3);break}x=ms(T,3600);return _.K(N,V.ephemeralResponseStore.put(H,new _.$r(x)),3);case 7:T=(n=N.yieldResult)==null?void 0:_.wE(n);case 3:return T.replacementEndpoint&&(w=_.y(T.replacementEndpoint,_.YV))&&T.sequenceContinuation&&(w.sequenceParams=
T.sequenceContinuation),N.return(T)}})};
bPW=function(V,l){l=(new Uc).JSC$11772_getStoreKey(l);return!!l&&V.ephemeralResponseStore.has(l)};
q6Z=function(V,l,I){var H,T,x,n,w;_.d(function(N){if(N.nextAddress==1){H=new Uc;T=H.JSC$11772_getStoreKey(l);if(!T)return N.return();if(I.reelWatchSequenceResponse)return x=ms(I.reelWatchSequenceResponse,3600),V.ephemeralResponseStore.put(T,new _.$r(x)),N.jumpTo(0);if(!V.ephemeralResponseStore.has(T))return N.jumpTo(0);w=I;return _.K(N,V.ephemeralResponseStore.get(T),4)}w.reelWatchSequenceResponse=(n=N.yieldResult)==null?void 0:_.wE(n);_.FU(N)})};
sxg=function(V,l){var I=I===void 0?{}:I;var H,T,x;return _.d(function(n){switch(n.nextAddress){case 1:if(V.innertubeTransportService){H=V.innertubeTransportService;n.jumpTo(2);break}if(!V.innertubeTransportLoader){_.Dp(Error("ij"));n.jumpTo(2);break}return _.K(n,V.innertubeTransportLoader(),4);case 4:H=n.yieldResult;case 2:return _.K(n,(T=H)==null?void 0:_.R2(T,l,I),5);case 5:return x=n.yieldResult,n.return(x)}})};
_.vI.Object.defineProperties(HG.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
HG[mR]=[zaB,_.nz,Kl,_.Cs(_.FM),_.Cs(EQ3)];_.pTE=new _.Vr("STORAGE_MANAGER_TOKEN");var A06=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},ukE;
A06.prototype.enqueue=function(V,l){l===1?this.currentPersistentToast=V:this.queue.push(V);this.openToast()};
A06.prototype.openToast=function(){var V;(V=this.currentToast)!=null&&V.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.vig=new _.Vr("TOAST_MANAGER_TOKEN");var ONb;_.C$P=_.W1(function(V){return _.Y("basic-content-view-model",{class:_.ii("ytBasicContentViewModelHost",_.S5(V.className))},_.Y(_.NS,{cond:function(){return V.data().headline},
then:function(l){return _.Y("div",{class:"ytBasicContentViewModelHeadline"},_.Y(_.Ni,{text:l}))}}),_.Y(_.Ks,{each:function(){return V.data().paragraphs||[]},
keyBy:"INDEX"},function(l){return _.Y("div",{class:"ytBasicContentViewModelParagraph"},_.Y(_.NS,{cond:function(){var I=l();return!!(I.header||I.customHeader||I.headline)},
then:function(){return _.Y(ONb,{paragraph:l})}}),_.Y(_.NS,{cond:function(){return l().asset||l().text},
then:function(){return _.Y("div",{class:"ytBasicContentViewModelParagraphContent"},_.Y(_.NS,{cond:function(){return l().asset},
then:function(I){return _.Y("div",{class:"ytBasicContentViewModelParagraphAsset"},_.Y(_.rw,{data:I},{contentPreviewImageViewModel:_.wn}))}}),_.Y(_.NS,{cond:function(){return l().text},
then:function(I){return _.Y("div",{class:"ytBasicContentViewModelParagraphText"},_.Y(_.Ni,{text:I}))}}))}}))}))},"Hd");
ONb=_.W1(function(V){var l=V.paragraph;return _.Y(_.CN,null,_.Y(_.NS,{cond:function(){return l().headline},
then:function(I){return _.Y(_.Ni,{text:I,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.Y(_.rw,{data:function(){return l().header||l().customHeader}},{sectionHeaderViewModel:function(I){return _.Y(_.a$,{data:I.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Id");var fn6=_.W1(function(V){return _.Y("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.Y(_.NS,{cond:function(){return V.expanded()},
then:function(){return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.Y("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.Y(_.NS,{cond:function(){return V.data().expandedTitleImage},
then:function(l){return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.Y(_.cX,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:l}))}}),_.Y("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.Y("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.Y(_.Ni,{text:function(){return V.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.Y(_.Ni,{text:function(){return V.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.Y(_.Ni,{text:function(){return V.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.Y("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Y(_.rw,{data:function(){return V.data().infoButton}},{buttonViewModel:_.Db}),_.Y(_.rw,{data:function(){return V.data().collapseButton}},{buttonViewModel:function(l){return _.Y(_.Db,{data:l.data,
onClick:function(){var I;(I=V.expandedCallback)==null||I.call(V,!1)}})}})))},
else:function(){return _.Y(anE,Object.assign({},V))}}))},"Jd"),giQ=_.W1(function(V){return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.Y(_.NS,{cond:function(){return V.data().collapsedLabelImage},
then:function(l){return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.Y(_.cX,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:l,alt:""}))}}),_.Y(_.Ni,{text:function(){return V.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Kd"),anE=_.W1(function(V){var l=_.Bu(function(){var I;
return void((I=V.expandedCallback)==null?void 0:I.call(V,!0))});
return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":l},_.Y("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.Y(_.NS,{cond:function(){return V.data().collapsedImage},
then:function(I){return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.Y(_.cX,{width:16,height:16,data:I,alt:""}))}}),_.Y(_.NS,{cond:function(){return V.data().showLeadingCollapsedLabel},
then:function(){return _.Y(giQ,Object.assign({},V))}}),_.Y("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.Y(_.Ni,{text:function(){return V.data().collapsedTitle}}))),_.Y("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Y(_.NS,{cond:function(){return!V.data().showLeadingCollapsedLabel},
then:function(){return _.Y(giQ,Object.assign({},V))}}),_.Y(_.rw,{data:function(){return V.data().infoButton}},{buttonViewModel:_.Db}),_.Y(_.rw,{data:function(){return V.data().expandButton}},{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
onClick:function(){var H;(H=V.expandedCallback)==null||H.call(V,!0)}})}})))},"Ld");var myB=_.W1(function(V){var l=_.U(_.Ux(function(){return V.data().initiallyExpanded})),I=l.next().value,H=l.next().value,T,x=(T=_.F().resolve(_.Cs(_.DA)))==null?void 0:T(),n=function(){var w=V.data().colorData;
if(w)return x?w==null?void 0:w.darkColorPalette:w==null?void 0:w.lightColorPalette};
return _.Y("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.na({"background-color":function(){var w=n();return(w==null?0:w.section2Color)?_.rP(w.section2Color):""}})},_.Y(_.rw,{data:function(){return V.data().header}},{expandableMetadataHeaderViewModel:function(w){return _.Y(fn6,{data:w.data,
expanded:function(){return!!I()},
expandedCallback:function(N){H(N)}})}}),_.Y(_.NS,{cond:function(){return I()},
then:function(){return _.Y("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.Y(_.rw,{data:function(){return V.data().expandedContent}},{horizontalShelfViewModel:function(w){return _.Y(_.zi,{data:w.data,
includeMargin:!0,forceNarrowLayout:!0,palette:n})},
videoSummaryContentViewModel:function(w){return _.Y(gaJ,{data:w.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(w){return _.Y(jG,{data:w.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(w){return _.Y(_.C$P,{data:w.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.Y(_.rw,{data:function(){return V.data().expandedBottomButtons}},{buttonViewModel:function(w){return _.Y("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.Y(_.Db,{data:w.data}))}}))}}))},"Md");var iNE=_.W1(function(V){var l=V.text;var I=V.marqueeSpacing;var H=V.scrollDelay;var T=V.scrollDuration;var x=V.enableMarqueeScroll;V=V.large;var n=_.U(_.xi(!1,void 0,"kfNqfd")),w=n.next().value,N=n.next().value,L=_.U(_.xi(0,void 0,"bYgZbf"));n=L.next().value;var e=L.next().value,k=_.sZ();L=_.sZ();var X=_.sZ(),r=_.F().resolve(_.Sz);_.t0(function(){if(x()){var Z=X.value.getBoundingClientRect().width,S=k.value.getBoundingClientRect().width;if(Z>S){var p=(r==="ltr"?-1:1)*(Z+(I?I():16));Promise.resolve().then(function(){N(!0);
e(p)})}}});
var E={},D={};return _.Y("marquee-scroll",{class:_.ii("ytMarqueeScrollHost",(E.ytMarqueeScrollHostLarge=V,E)),el:k},_.Y("div",{id:"marquee-scroll-inner-container",class:_.ii("ytMarqueeScrollInnerContainer",(D.ytMarqueeScrollAnimationEnabled=function(){return w()},D)),
el:L,style:_.na({gap:I?(0,_.kR)(I):"16px","animation-duration":T?RI3(T):"16s","animation-delay":H?RI3(H):"3s","--marquee-translate":(0,_.kR)(n)})},_.Y("span",{el:X,dir:"auto"},_.Y(_.Ni,{text:l,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.Y(_.NS,{cond:w,then:function(){return _.Y("span",{"aria-hidden":"true",dir:"auto"},_.Y(_.Ni,{text:l,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Nd");_.VNY=_.W1(function(V){var l=V.data;var I=V.overlayDensity;V=_.Bu(function(){l().onTapCommand&&_.EI(l().onTapCommand);return!1});
var H=_.Q1(),T={};return _.Y("reel-sound-metadata-view-model",{class:_.ii("ytReelSoundMetadataViewModelHost",(T.ytReelSoundMetadataViewModelHostLarge=function(){return(I==null?void 0:I())===1},T)),
"on:click":V,tabindex:0,role:"button","on:keydown":H},_.Y("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.Y(_.NS,{cond:function(){return l().musicIcon},
then:function(x){return _.Y(_.cX,{data:x,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.Y("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.Y(iNE,{text:function(){return l().soundMetadata},
enableMarqueeScroll:function(){return!!l().enableMarqueeScroll},
large:function(){return(I==null?void 0:I())===1}}))))},"Od");var lph,Ipu,TW,xSb,nGV,B72,wOY,dSQ;lph=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Ipu=_.g7("wil_icon_max_concurrent_fetches",Infinity);
TW=function(V,l,I){var H=this;this.iconSet=V;this.appDirection=l;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.nK.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.z("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.z("wil_icon_network_first");this.renderWhenIdle=_.z("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.z("wil_icon_load_immediately");this.isPurging=!1;V=function(){H.cacheStorageAvailable&&(H.cacheStorageAsync=_.nK.caches.open("yt-icons").then(function(x){return H.cacheStorageSync=x}).catch(function(){H.cacheStorageAvailable=!1}))};
I=(I==null?void 0:I())||{};I=_.U(Object.entries(I));for(l=I.next();!l.done;l=I.next()){var T=_.U(l.value);l=T.next().value;T=T.next().value;T=TY(T);HsE(T);this.iconCache[l]=T.cloneNode(!0)}this.isPurging=T72(this);this.isPurging instanceof Promise?this.isPurging.then(V):V()};
_.MZg=function(V,l){var I=V.resolveIcon(l);return I?V.renderingMode===1?B72(V,I,V.renderingMode):(l=V.iconCache[I.url])?(l=l.cloneNode(!0),xSb(V,l),B72(V,I,V.renderingMode,l)):_.USE(V,I).then(function(H){var T=H?0:1;xSb(V,H);return B72(V,I,T,H)}):(_.oV(new _.Yd("Icon not found",{iconShape:l})),function(){})};
xSb=function(V,l){if(l){V.counter+=1;V="_yt"+V.counter;l=[l].concat(_.oI(l.getElementsByTagName("*")));l=_.U(l);for(var I=l.next();!I.done;I=l.next())if(I=I.value,I.tagName==="style"&&I.textContent)I.textContent=nGV(I.textContent,V,!0);else for(var H=_.U(I.attributes),T=H.next();!T.done;T=H.next()){T=T.value;T.name==="id"&&(T.value+=V);["mask","fill","clip-path"].includes(T.name)&&(T.value=nGV(T.value,V));if(T.name==="style"){var x=I.style;try{x.cssText=nGV(x.cssText,V,!0)}catch(e){var n=void 0,w=
void 0,N=void 0,L=void 0;BG({error:((n=e)==null?void 0:(N=(w=n).toString)==null?void 0:N.call(w))||"",el:I.outerHTML,style:!!x,cssText:(L=x)==null?void 0:L.cssText})}}T.name==="xlink:href"&&(T.value=T.value.replace(/#(.*)/,"#$1"+V))}}};
nGV=function(V,l,I){var H=/url\(["']?#(.*?)["']?\)/;(I===void 0?0:I)&&(H=/url\(["']?#(.*?)["']?\)/g);return V.replace(H,"url(#$1"+l+")")};
B72=function(V,l,I,H){return function(T,x){var n=Object.assign({},{iconColor:"currentcolor",iconWidth:l.size+"px",iconHeight:l.size+"px",iconDisplay:"block"},x);x=_.jk("DIV");var w=n.iconColor,N=n.iconFilter;n="width: "+n.iconWidth+"; height: "+n.iconHeight+"; display: "+n.iconDisplay+";";N&&(n+=" filter: "+N+";");I===0&&(n+=" fill: "+w+";");I===1&&(N=l.url,n+=" -webkit-mask: url("+N+") no-repeat center / cover; mask: url("+(N+") no-repeat center / cover; background-color: ")+w);l.allowMirroring&&
V.appDirection==="rtl"&&(n+=" transform: scale(-1, 1); transform-origin: center center;");x.setAttribute("style",n);I===0&&H&&x.appendChild(H);T.appendChild(x)}};
_.USE=function(V,l){var I,H,T;return _.d(function(x){I=function(n){return sq(n)};
H=l.url;if(!$Su(H))throw Error("jj");T=dSQ(V,H);return x.return(T.then(function(n){return n.clone().text()}).then(function(n){var w=I(n);
n=l.size;var N=_.jk("DIV");_.iY(N,w);w=_.Yw(N.firstElementChild!==void 0?N.firstElementChild:_.Npa(N.firstChild,!0));n=HsE(w,n);V.iconCache[H]=n.cloneNode(!0);delete V.responsePromises[H];return n}).catch(function(){}))})};
wOY=function(V){var l,I=(l=V.requestAninmationFrameResolver)==null?void 0:l.promise;I||(V.requestAninmationFrameResolver=new _.IQ,I=V.requestAninmationFrameResolver.promise,_.nK.requestAnimationFrame(function(){var H;(H=V.requestAninmationFrameResolver)==null||H.resolve();V.requestAninmationFrameResolver=null}));
return I};
dSQ=function(V,l){var I,H;return _.d(function(T){if(T.nextAddress==1)return V.waitForAnimationFrame?_.K(T,wOY(V),2):T.jumpTo(2);I=V.responsePromises[l];I||(H=function(){var x,n,w;return _.d(function(N){switch(N.nextAddress){case 1:if(!V.cacheStorageAvailable){x=void 0;N.jumpTo(2);break}if(n=V.cacheStorageSync){N.jumpTo(3);break}return _.K(N,V.cacheStorageAsync,4);case 4:n=N.yieldResult;case 3:x=n;case 2:return w=x,V.isNetworkFirstStrategy?N.return(V.fetchAndUpdateCache(l,w).catch(V.getCacheStorageResponse.bind(V,
l,w))):N.return(V.getCacheStorageResponse(l,w).catch(V.fetchAndUpdateCache.bind(V,l,w)))}})},I=V.renderWhenIdle?new Promise(function(x,n){_.et(_.r0,function(){H().then(x).catch(n)},10)}):H(),V.responsePromises[l]=I);
return T.return(I.catch(function(x){delete V.responsePromises[l];BG({error:(x==null?0:x.toString)?x.toString():"",url:l});throw x;}))})};
TW.prototype.fetchAndUpdateCache=function(V,l){var I=this;return _.d(function(H){return H.return(N7V(I,V).then(function(T){K_h(I,V,T,l);return T}))})};
var N7V=function(V,l){var I;return _.d(function(H){if(V.numFetches<Ipu)return V.numFetches+=1,H.return(jw6(V,l).finally(function(){--V.numFetches;if(Object.keys(V.queuedResponseResolvers).length){var T=Object.keys(V.queuedResponseResolvers)[0],x=V.queuedResponseResolvers[T];delete V.queuedResponseResolvers[T];x.resolve(N7V(V,T))}}));
I=new _.IQ;V.queuedResponseResolvers[l]=I;return H.return(I.promise)})},jw6=function(V,l,I){I=I===void 0?2:I;
var H;return _.d(function(T){H={credentials:"same-origin",priority:"low"};return T.return(_.nK.fetch(l,H).then(function(x){return x.ok?x:Promise.reject(Error("kj`"+x.status+"`"+x.statusText))}).catch(function(x){if(I>0)return jw6(V,l,I-1);
throw x;}))})},K_h=function(V,l,I,H){_.d(function(T){return H?T.return(new Promise(function(x){_.et(_.r0,function(){var n,w;
return _.d(function(N){switch(N.nextAddress){case 1:if(!V.isNetworkFirstStrategy){n=void 0;N.jumpTo(2);break}return _.K(N,H.match(l).catch(function(){}),3);
case 3:n=N.yieldResult;case 2:if(w=n){N.jumpTo(4);break}return _.K(N,H.put(l,I.clone()).catch(function(L){BG({error:(L==null?0:L.toString)?L.toString():"",url:l})}),4);
case 4:x(),_.FU(N)}})},50)})):T.return()})};
TW.prototype.getCacheStorageResponse=function(V,l){return _.d(function(I){return l?I.return(l.match(V).then(function(H){return H&&H.ok?H:Promise.reject()})):I.return(Promise.reject())})};
var HsE=function(V,l){l===void 0||V.getAttribute("viewBox")||V.setAttribute("viewBox","0 0 "+l+" "+l);V.setAttribute("focusable","false");V.setAttribute("aria-hidden","true");try{V.style.pointerEvents="none",V.style.display="inherit",V.style.width="100%",V.style.height="100%"}catch(T){var I;BG({error:((I=T)==null?0:I.toString)?T.toString():""});try{V.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(x){var H;BG({error:((H=x)==null?0:H.toString)?x.toString():
""})}}return V},$Su=function(V){for(var l=_.U(lph),I=l.next();!I.done;I=l.next())if(V.startsWith(I.value)&&V.endsWith(".svg"))return!0;
return!1};
TW.prototype.resolveIcon=function(V){return this.iconSet.resolveIcon(V)};
var BG=function(V){_.hF(new _.Yd("Error in IconManager",V))},T72=function(V){if(_.z("wil_icons_cache_purge_killswitch"))return!1;
try{var l=_.nK.localStorage}catch(x){return!1}if(!l||!V.cacheStorageAvailable)return!1;var I=function(x){try{var n;(n=l)==null||n.setItem("yt-icons-last-purged",x.toString())}catch(N){var w;BG({error:((w=N)==null?0:w.toString)?N.toString():""})}},H=Number(l.getItem("yt-icons-last-purged"));
if(!H)return H=new Date,H=H.setDate(H.getDate()-Math.floor(Math.random()*90+1)),I(H),!1;if(function(x,n){x=new Date(x);n=new Date(n);return n.getMonth()-x.getMonth()+12*(n.getFullYear()-x.getFullYear())}(H,Date.now())<3)return!1;
try{return _.nK.caches.delete("yt-icons").then(function(x){x&&I(Date.now());return x}).catch(function(){return!1}).finally(function(){V.isPurging=!1})}catch(x){var T;
BG({error:((T=x)==null?0:T.toString)?x.toString():""});return!1}};
TW[mR]=[JHg,_.Sz,_.Cs(P4B)];_.xS=function(V,l){this.iconManager=V;this.iconsToFetch=l};
_.xS[mR]=[_.VI,_.Cs(hP6)];var You=function(V,l,I){this.requestKey=V;this.mmC=l;this.yij=I;this.aRJ=function(){return new XMLHttpRequest};
this.hkL=void 0;this.rkT=[]};
You.prototype.getLatestChallengeResponse=function(){return this.yij};
var Mk3=function(V,l,I){var H,T,x,n;return _.d(function(w){if(w.nextAddress==1){_.D8("attestation_challenge_fetch");_.Z8("att_fs",void 0,"attestation_challenge_fetch");if(!V.hkL)throw new _.hm(9,"Missing fetcher");return _.K(w,V.hkL(l,I),2)}H=w.yieldResult;x=(T=H)==null?void 0:T.bgChallenge;if(!x)throw new _.hm(15,"Missing field");V.yij=H;V.rkT.forEach(function(N){N(H)});
n=JAt(x);_.Z8("att_fc",void 0,"attestation_challenge_fetch");fE3("attestation_challenge_fetch");return w.return(n)})},dyN=function(V,l){var I,H,T,x,n;
return _.d(function(w){switch(w.nextAddress){case 1:I=new xw(100,3E5,.25,2),H=void 0;case 2:if(!(I.currBackoffCount_<10)){w.jumpTo(4);break}_.jd(w,5);if(!(I.currBackoffCount_>0)){w.jumpTo(7);break}return _.K(w,kXy(I.getValue()),7);case 7:return _.K(w,L_E(V,l),9);case 9:return T=w.yieldResult,w.return(T);case 5:x=_.kE(w);x instanceof _.hm?H=x:(n=x instanceof Error?x.message:"Unknown",H=new _.hm(9,n));gEN(I);w.jumpTo(2);break;case 4:if(H)throw H;throw new _.hm(9,"Unknown error");}})},L_E=function(V,
l){l=hTW(POZ(new owa,l),V.requestKey);
var I=new _.IQ,H=V.aRJ();H.open("POST",V.mmC);H.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");H.setRequestHeader("Content-Type","application/json+protobuf");H.onload=function(){if(EB1(H)){var T=WmW(H.responseText);I.resolve(T)}else I.reject(new _.hm(_.qoT(l2(H)),H.statusText))};
H.onerror=function(){I.reject(new _.hm(_.qoT(l2(H)),H.statusText))};
H.send(l.serialize());return I.promise};var kY6=function(V){this.networkStatusManager=V;this.isDownloaded=E8w===void 0?function(){return!1}:E8w;
this.isReady=!1;this.izJ=e1u(this)},e1u=function(V){var l;
return _.d(function(I){if(I.nextAddress==1)return _.K(I,F_c(),2);if(I.nextAddress!=3)return l=I.yieldResult,_.K(I,N40(l),3);V.vd=I.yieldResult;XR3(V.vd).then(function(){V.isReady=!0});
return I.return(V.vd)})},F_b=function(V,l,I){V.vd?(V=V.vd.zq({vo:I,
iBW:!0,xHk:!0}),l.serviceIntegrityDimensions={poToken:V}):_.Gr(Error("lj"))};
kY6.prototype.processContext=function(V){var l=this;if(!V.input.match(_.Ol(g4a)))return _.Ar();var I=V.innerTubeRequest,H=I.videoId;return!H||this.isDownloaded(I)||this.networkStatusManager&&!this.vd&&!this.networkStatusManager.isNetworkAvailable()?_.Ar():this.vd?this.isReady?(F_b(this,I,H),_.Ar()):new p7(XR3(this.vd).then(function(){F_b(l,I,H)})):new p7(this.izJ.then(function(T){return _.d(function(x){if(x.nextAddress==1)return _.K(x,XR3(T),2);
F_b(l,I,H);_.FU(x)})}))};var XO2=new _.Vr("WEB_PO_CONTEXT_PROCESSOR");var z1Q=function(V,l){var I=this;this.jMG=0;var H;this.gfN=(H=l==null?void 0:l.gfN)!=null?H:window;this.networkStatusManagerPromise=l==null?void 0:l.networkStatusManagerPromise;var T;this.requestKey=(T=l==null?void 0:l.requestKey)!=null?T:_.m_("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var x;this.z4u=(x=l==null?void 0:l.z4u)!=null?x:function(N){return new cH(N)};
var n;H=(n=l==null?void 0:l.xOW)!=null?n:function(N,L,e){return new You(N,L,e)};
this.bgChallenge=JAt(V.bgChallenge);this.ttlSeconds=omt(IK(V.challenge||""));this.mY=H(this.requestKey,_.z("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.nK.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",V);FHt(this.mY);var w;this.tzj=(w=l==null?void 0:l.tzj)!=null?w:function(N){_.NR(I.gfN.document,"visibilitychange",function(){I.gfN.document.visibilityState===
"visible"&&N()})}},tN6=function(V){if(!V.wl){var l={maxAttempts:5,
bxW:V.ttlSeconds*1E3};zWg(V.gfN);V.wl=V.z4u({mY:V.mY,nx:{disable:_.z("html5_web_po_disable_remote_logging"),k6:"aGIf",y5J:z8T("html5_web_po_experiment_ids"),g2F:_.z("wpo_dis_lfdms")?0:1E3},gFv:l,sH2:V.bgChallenge,jk2:yJ3});V.jMG=Date.now();Q8Z(V.wl,function(){V.jMG=Date.now()});
tNf(V.wl,function(){return _.d(function(H){return H.return(y6Y(V))})});
var I=V.jiC.bind(V);V.networkStatusManagerPromise&&V.ttlSeconds>0&&V.networkStatusManagerPromise.then(function(H){H.listen("publicytnetworkstatus-online",I)});
V.tzj(I)}};
z1Q.prototype.jiC=function(){if(Date.now()>this.jMG+this.ttlSeconds*1E3){var V;(V=this.wl)==null||RT0(V)}};
var y6Y=function(V){if(V.bq8)return V.bq8;if(!V.wl)throw Error("mj");V.bq8=new MI({wl:V.wl,mY:V.mY,mZp:!0,onError:yJ3});return V.bq8},rJw=function(V,l){V=new z1Q(V,l);
tN6(V);y6Y(V)};var Ua=function(V,l){this.store=V;this.queue=[];this.supportsFocus=_.z("web_ephemeral_actions_focus");l==null||l.addEventListener("yt-navigate-start",this.reset.bind(this))};
Ua.prototype.enqueue=function(V){var l=V.command,I=V.durationMs,H=V.elementToFocus;var T=V.label;var x=V.elementToFocus;V.command?T=_.LT("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:T,shortcut:_.LT("SHIFT_PLUS_ENTER")}):x&&this.supportsFocus&&(V=T+". "+_.LT("SHIFT_PLUS_ENTER")+" to move focus.",T=_.LT("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:T,shortcut:_.LT("SHIFT_PLUS_ENTER")},V));I={announcement:T,durationMs:I!=null?I:this.supportsFocus?8E3:void 0};l?I.command=l:H&&this.supportsFocus&&(H.classList.add("ephemeral-action-focusable-element"),
I.selector=H.tagName+".ephemeral-action-focusable-element");this.queue.push(I);r6P(this)};
Ua.prototype.activate=function(V){var l=_.ptT(this.store.getState());if(l){if(l==null?0:l.command)_.rj(l.command),this.store.dispatch(uAZ(null));(l==null?0:l.selector)&&this.supportsFocus&&(l=document.querySelector(l.selector),_.hm3(l));V.preventDefault()}};
var r6P=function(V){if(!_.ptT(V.store.getState())&&V.queue.length){var l=V.queue.shift();l&&(V.previousAnnouncement===l.announcement&&(l.announcement+="\u00a0"),V.store.dispatch(uAZ(l)),V.previousAnnouncement=l.announcement,V.timeoutId=setTimeout(function(){if(l.selector&&V.supportsFocus){var I;(I=document.querySelector(l.selector))==null||I.classList.remove("ephemeral-action-focusable-element")}V.store.dispatch(uAZ(null));r6P(V)},l.durationMs))}};
Ua.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(uAZ(null));this.queue.length=0;this.timeoutId=void 0};
Ua[mR]=[_.oU,_.nb];_.n$=new _.Vr("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var GYr=new _.Vr("AUTH_SERVICE_TOKEN");var JJg=_.fl(["about:blank"]),EyT;var EGu=new _.Vr("API_IFRAME_TOKEN"),J6g=new _.Vr("FETCH_FN_TOKEN"),oGP=new _.Vr("PARSE_FN_TOKEN"),h1E=new _.Vr("WINDOW_REQUEST_TOKEN");var qSN;qSN=new _.Vr("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.PtV=new _.Vr("MISC_UI_SHARED_FLAGS_TOKEN");var DSE=function(){};
DSE.prototype.getFlag=function(V){if(V.configType!==2)throw Error("nj");return Zsg(V)};
var Zsg=function(V){switch(V.flagType){case "bool":return _.z(V.flagName);case "int":return _.cw(_.g7(V.flagName));case "double":return _.g7(V.flagName);case "string":return _.m_(V.flagName);case "int32_list":return z8T(V.flagName);case "int64_list":return z8T(V.flagName).map(function(l){return _.cw(l)});
case "string_list":return _.V7(V.flagName);default:throw Error("oj");}};var $S=function(V,l,I){l=l===void 0?{}:l;Zj.call(this,I===void 0?"uninitialized":I);this.env=V;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}];l.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=l.shouldWaitOnAsyncImmediate)};
_.t($S,Zj);$S.prototype.init=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return l.processPluginOptions.shouldWaitOnAsyncImmediate?_.K(H,V(l.env),2):(V(l.env),H.jumpTo(2));if(H.nextAddress!=4)return l.jobSet?_.K(H,l.jobSet.completedResolver.promise,4):H.jumpTo(4);I=_.b1();I.parkOrScheduleJob(function(){l.transition("rendering")},10,"ci");
_.FU(H)})};
$S.prototype.initialRender=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return l.processPluginOptions.shouldWaitOnAsyncImmediate?_.K(H,V(l.env),2):(V(l.env),H.jumpTo(2));if(H.nextAddress!=4)return l.jobSet?_.K(H,l.jobSet.completedResolver.promise,4):H.jumpTo(4);I=_.b1();I.parkOrScheduleJob(function(){l.transition("rendered")},10,"cr");
_.FU(H)})};
$S.prototype.afterRenderImmediate=function(V){var l=this,I;return _.d(function(H){if(H.nextAddress==1)return l.processPluginOptions.shouldWaitOnAsyncImmediate?_.K(H,V(l.env),2):(V(l.env),H.jumpTo(2));if(H.nextAddress!=4)return l.jobSet?_.K(H,l.jobSet.completedResolver.promise,4):H.jumpTo(4);I=_.b1();I.parkOrScheduleJob(function(){l.transition("after-render-deferred")},10,"carml");
_.FU(H)})};
$S.prototype.afterRenderDeferred=function(V){var l=this;return _.d(function(I){V(l.env);_.FU(I)})};var SoV={},R1Y=(SoV.rendered={priority:0,callback:function(V){YAv(V.injector.resolve(Fv))}},SoV);var QwE=!1,cJy=0,ZcW=null,Qbt=null;var c6Y=new _.Vr("NETWORK_SLI_TOKEN");var W_u=function(V,l,I,H){this.networkSli=V;this.fetchFn=l;this.parseFn=I;this.requestFn=H};
W_u.prototype.fetch=function(V,l,I){var H=this,T,x,n;return _.d(function(w){T=bsQ(H,V,l);n=(x=H.fetchFn)!=null?x:fetch;return w.return(n(T).then(function(N){return H.handleResponse(N,I)}).catch(function(N){_.hF(N);
if((I==null?0:I.expectJsonStrict)&&N instanceof Bf&&N.errorType===1)return Promise.reject(N)}))})};
var NsE=function(V,l,I,H){var T,x,n,w,N,L;return _.d(function(e){switch(e.nextAddress){case 1:return T=bsQ(V,l,I),_.jd(e,2),_.K(e,fetch(T),4);case 4:x=e.yieldResult;_.Rv(e,3);break;case 2:throw _.kE(e),new Bf(2,"Failed to parse streaming response",T.url);case 3:if(!x.redirected&&!x.ok)throw(n=V.networkSli)==null||n.failure(),new _.Yd("Streaming fetch request not ok",T.url);if(!x.body)throw new _.Yd("No response body in streaming response",T.url);w=x.body.pipeThrough(new TextDecoderStream).getReader();
N=new _.xY;L={};return e.return(qoh(V,w,N,noW,L,H))}})},bsQ=function(V,l,I){if(V.networkSli){var H=_.Bx(_.gS(l,"key"))||"/UNKNOWN_PATH";
V.networkSli.start(H)}H=I;_.z("wug_networking_gzip_request")&&(H=S7f(I));var T;return new ((T=V.requestFn)!=null?T:window.Request)(l,H)},qoh=function(V,l,I,H,T,x){var n,w,N,L,e,k,X,r,E;
return _.d(function(D){if(D.nextAddress==1)return _.K(D,l.read(),2);n=D.yieldResult;w=n.value;if(N=n.done)return(L=V.networkSli)==null||L.success(),D.return(T);try{e=I.parse(w)}catch(Z){throw new Bf(1,"Failed to parse streaming response",w);}if(e!=null)for(k=_.U(e),X=k.next();!X.done;X=k.next())r=X.value,H(T,r),E=void 0,(E=x)==null||E(T,r);return D.return(qoh(V,l,I,H,T,x))})};
W_u.prototype.handleResponse=function(V,l){var I,H=(I=this.parseFn)!=null?I:JSON.parse;I=V.text().then(function(T){if((l==null?0:l.jspbResponseCtor)&&V.ok)return JVt(l.jspbResponseCtor,T);T=T.replace(")]}'","");if((l==null?0:l.expectJsonStrict)&&T)try{var x=H(T)}catch(w){throw new Bf(1,"JSON parsing failed after fetch");}var n;return(n=x)!=null?n:H(T)});
V.redirected||V.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),I=I.then(function(T){_.hF(new _.Yd("Error: API fetch failed",V.status,V.url,T));return Object.assign({},T,{errorMetadata:{status:V.status}})}));
return I};
W_u[mR]=[_.Cs(c6Y),_.Cs(J6g),_.Cs(oGP),_.Cs(h1E)];var MNE=new _.Vr("NETWORK_MANAGER_TOKEN");var swE=[1,2,4,8,16,30],A66=function(V){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=V.maxTimeMs;this.maxFrameCount=V.maxFrameCount===void 0?Math.ceil(60*V.maxTimeMs/1E3):V.maxFrameCount;V=_.U(swE);for(var l=V.next();!l.done;l=V.next())this.brokenFrameSummarizers.push(new pOE(l.value/60*1E3))},uWg=function(V){var l=V.frameCountInternal>=V.maxFrameCount;
return V.elapsedTimeMs>=V.maxTimeMs||l},vGb=function(V){for(var l=[],I=_.U(V.brokenFrameSummarizers),H=I.next();!H.done;H=I.next())H=H.value,H=H.brokenFrameCount!==0?{severityMs:Math.round(H.targetFrameTimeMs),
eventCount:H.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(H.averageDurationBetweenEventsMs)}:void 0,H&&l.push(H);return{summaries:l,monitoringDurationMs:Math.round(V.elapsedTimeMs)}};
_.vI.Object.defineProperties(A66.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 pOE=function(V){this.targetFrameTimeMs=V;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.vI.Object.defineProperties(pOE.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var OsI=function(){};
OsI.prototype.start=function(V,l){var I=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var H=new A66({maxTimeMs:V});this.monitor=H;this.lastSummaryInternal=void 0;this.metadataToLog=l;return new Promise(function(T){var x=function(n){if(n===void 0)I.stop(),T(void 0);else if(I.monitor!==H)n=Object.assign({},vGb(H),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),T(n);else{var w=I.monitor;if(!uWg(w)){w.frameCountInternal++;if(w.prevTime===void 0)w.startTime=
n;else for(var N=n-w.prevTime,L=_.U(w.brokenFrameSummarizers),e=L.next();!e.done;e=L.next()){e=e.value;var k=e.currTimeMs;e.currTimeMs+=N;N>e.targetFrameTimeMs+2&&(e.brokenFrameCount++,e.timeOfFirstBrokenFrameMs===void 0&&(e.timeOfFirstBrokenFrameMs=k),e.timeOfLastBrokenFrameMs=k)}w.prevTime=n}uWg(I.monitor)?T(I.stop()):_.r0.addJob(x,5,0)}};
_.r0.addJob(x,5,0)})};
OsI.prototype.stop=function(V){if(!this.monitor)return this.lastSummaryInternal;var l=Object.assign({},vGb(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(l.monitoringDurationMs){V=V!=null?V:this.metadataToLog;var I={droppedFramesSummary:l,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};V&&(I[V.type]=V.data);_.tF("manualSmoothnessMeasurement",I)}this.monitor=void 0;this.lastSummaryInternal=l;this.metadataToLog=void 0;return l};_.Ct6=new _.Vr("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var apE;apE=function(V){this.JSC$16132_expiringStorage=new eO(V)};
_.fpI=function(V){if(_.WH3()&&(V=_.$rt(_.KA()+"::"+V)))return new apE(V)};
apE.prototype.set=function(V,l,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$16132_expiringStorage.set(V,l,I)};
apE.prototype.get=function(V){return this.JSC$16132_expiringStorage.get(V)};
apE.prototype.remove=function(V){this.JSC$16132_expiringStorage.remove(V)};var gGg=new _.Vr("SESSION_STORAGE");_.dz=function(){};
_.dz.getInstance=function(){var V=_.SN("ytglobal.storage_");V||(V=new _.dz,_.Aq("ytglobal.storage_",V));return V};
_.dz.prototype.estimate=function(){var V,l,I;return _.d(function(H){V=navigator;return((l=V.storage)==null?0:l.estimate)?H.return(V.storage.estimate()):((I=V.webkitTemporaryStorage)==null?0:I.queryUsageAndQuota)?H.return(bc3()):H.return()})};
_.Aq("ytglobal.storageClass_",_.dz);var mSE=_.fl(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),isY=_.fl(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Nou={"/":_.Yg,"/?feature=ytca":_.Yg,"/feed/downloads":_.ypw};var Xz=function(V,l,I){this.JSC$16143_upliftPromise=V;this.store=l;this.JSC$16143_persistentStorePromiseAccessor=I};
Xz.prototype.shouldPreferLocalResponse=function(V){return V.browseId==="FEdownloads"||V.browseId==="FEsmart_downloads"&&_.z("kevlar_modern_downloads_page")?!0:!1};
Xz.prototype.localInnertubeResponse=function(V){var l=this;return _.d(function(I){return V.browseId==="FEdownloads"?_.z("kevlar_modern_downloads_page")?I.return(VOg(l)):I.return(lYE(l)):V.browseId==="FEsmart_downloads"&&_.z("kevlar_modern_downloads_page")?I.return(IYI(l)):I.return(Promise.reject(Error("qj")))})};
Xz.prototype.canProvideFallbackResponse=function(){return!0};
Xz.prototype.localFallbackInnertubeResponse=function(V){var l=this,I,H,T;return _.d(function(x){switch(x.nextAddress){case 1:return _.K(x,l.JSC$16143_persistentStorePromiseAccessor(),2);case 2:I=x.yieldResult;if(V.browseId!=="SPaccount_downloads"||!I){x.jumpTo(3);break}return _.K(x,GJq(I),4);case 4:if(H=x.yieldResult)return x.return(_.wE(H));case 3:return V.browseId==="FEwhat_to_watch"?x.return(HAQ(l)):(T=_.z("web_offline_continuation_automatic_retry")||_.z("web_offline_continuation_retry_button"))&&
V.continuation?x.return(Tmg(l)):x.return(Bm6(l))}})};
var HAQ=function(V){var l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,V.JSC$16143_upliftPromise,2);l=_.K8t(V.store.getState().entities);return l.length?I.return(xlB(V,l)):I.return(Bm6(V))})},lYE=function(V){var l,I;
return _.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$16143_upliftPromise,2);if(H.nextAddress!=3)return l=Ulu([{offlineItemSectionRenderer:{}}]),_.K(H,ndB(V,l),3);I=H.yieldResult;I.onResponseReceivedActions=[Jy("REFRESH_DOWNLOADS")];return H.return(I)})},VOg=function(V){var l,I,H,T,x,n,w,N,L,e,k,X,r;
return _.d(function(E){if(E.nextAddress==1)return _.K(E,V.JSC$16143_upliftPromise,2);if(E.nextAddress!=3)return l=V.store.getState(),I=l.entities,H=_.rJ(I),T=_.GV(I),x=_.Att(l),n=_.pVt(l),w=_.uc1(l),N=_.ed3(I),L=_.F3(H),e=_.El(I),k={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Zft(H,T,N,x,n,L,e,w),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},X=_.LT("DOWNLOADS",void 0,"Downloads"),_.K(E,$l6(V,k,X),3);r=E.yieldResult;
r.onResponseReceivedActions=[Jy("REFRESH_DOWNLOADS")];return E.return(r)})},IYI=function(V){var l,I,H,T,x,n,w,N,L;
return _.d(function(e){if(e.nextAddress==1)return _.K(e,V.JSC$16143_upliftPromise,2);if(e.nextAddress!=3)return l=V.store.getState(),I=l.entities,H=_.rJ(I),T=_.F3(H),x=_.El(I),n={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.RFt(H),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},w=_.LT("SMART_DOWNLOADS",void 0,"Smart downloads"),N=PHf(T,x),_.K(e,$l6(V,n,w,N),3);L=e.yieldResult;L.onResponseReceivedActions=[Jy("REFRESH_DOWNLOADS")];
return e.return(L)})},Bm6=function(V){var l,I;
return _.d(function(H){if(H.nextAddress==1)return _.K(H,dE(V.JSC$16143_upliftPromise,V.store),2);l=H.yieldResult;I=Ulu([z_K(l)]);return H.return(ndB(V,I))})},Tmg=function(V){var l,I,H,T;
return _.d(function(x){if(x.nextAddress==1)return l={},I=V.store.getState().continuation.continuationCommand,_.k7(l,_.Ex,I),_.K(x,dE(V.JSC$16143_upliftPromise,V.store,l,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);H=x.yieldResult;T={};_.k7(T,_.l4a,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:H}}}],targetId:"browse-feedFEwhat_to_watch"});return x.return({responseContext:{},onResponseReceivedActions:[T]})})},Ulu=function(V){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:V}}}}]}}},xlB=function(V,l){var I,H;
return _.d(function(T){var x={contents:oJ(l)};I=x&&x.contents?x:{};_.z("kevlar_modern_downloads_page")&&(I=Object.assign({},_.Q3g(l),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));H={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:I}}}]}};return T.return(ndB(V,H))})},ndB=function(V,l){var I,H;
return _.d(function(T){if(T.nextAddress==1)return _.K(T,V.JSC$16143_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3)return I=T.yieldResult,_.K(T,NY(I),3);H=T.yieldResult;return T.return({responseContext:{},contents:l,topbar:H})})},$l6=function(V,l,I,H){var T,x;
return _.d(function(n){if(n.nextAddress==1)return _.K(n,V.JSC$16143_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return T=n.yieldResult,_.K(n,NY(T),3);x=n.yieldResult;var w=n.return,N=H;N=N===void 0?"":N;var L={dynamicTextViewModel:{text:{content:I}}};var e={flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.LT("SETTINGS",void 0,"Settings"),accessibilityText:_.LT("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:g6("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}};return w.call(n,{responseContext:{},contents:l,topbar:x,header:{pageHeaderRenderer:{content:{pageHeaderViewModel:{title:L,actions:e,metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:N}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},
pageTitle:I}}})})};var dlY=function(){this.moduleRegistry={};this.fetchCount=0};
dlY.prototype.isFetching=function(){return this.fetchCount>0};
var pl=function(V,l){V.moduleRegistry[l.toString()]={asyncId:l,isFetching:!1};return V};
dlY.prototype.JSC$16154_loadModules=function(){for(var V=this,l=new Map,I=[],H=_.U(_.Q5.apply(0,arguments)),T=H.next();!T.done;T=H.next()){T=T.value;var x=this.moduleRegistry[T];x?x.resolver?l.set(T,x.resolver):(x.resolver=new _.IQ,l.set(T,x.resolver),I.push(x.asyncId),x.isFetching=!0):(x=new _.IQ,l.set(T,x),x.resolve(void 0))}I.length&&(this.fetchCount+=1,_.Jm(_.oe.getMultipleAsync.apply(_.oe,_.oI(I)).then(function(n){for(var w=0;w<I.length;w++){var N=n[w],L=V.moduleRegistry[I[w].toString()];L.isFetching=
!1;L.resolver.resolve(N)}}).catch(function(n){for(var w=_.U(I),N=w.next();!N.done;N=w.next()){N=N.value;
var L=V.moduleRegistry[N.toString()];L.resolver=void 0;L.isFetching=!1;l.get(N.toString()).reject(n)}}),function(){--V.fetchCount}));
return Promise.all([].concat(_.oI(l.values())).map(function(n){return n.promise}))};_.Ai=new _.Vr("MODULE_REGISTRY_TOKEN");var wxY={},NmQ=(wxY.rendered={priority:0,callback:function(V){a:{var l=void 0;try{var I;b:{if(_.nr1()){var H=_.nfN(_.KA()+"::pom");if(H){var T=new jW(H);break b}}T=void 0}var x=(I=T)==null?void 0:I.get("role_text");if(!x)break a;l={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:x}]}}}}}}catch(N){}l&&V.injector.resolve(_.aw).resolveCommand(l)}try{var n=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(n){var w=JSON.parse(n);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
w&&V.injector.resolve(_.aw).resolveCommand(w)}}catch(N){}}},wxY);var K6E,jvB={},Y_g=(jvB.initialized={priority:10,callback:function(){K6E=hi()}},jvB.rendering={callback:function(V){var l;
return _.d(function(I){if(I.nextAddress==1)return _.K(I,K6E,2);l=I.yieldResult;if(!l.endpoint)throw Error("sj`"+_.nK.location.href);S7(V,l);_.FU(I)})}},jvB);var L6B={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(_.oI(_.z("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(V){var l=V.stack;if(l.includes("chrome://")||l.includes("chrome-extension://")||V.message.includes("chrome-extension://")||l.includes("moz-extension://")||l.includes("local.adguard.org")||l.includes("auctioneer3.50million.club")||l.includes("youtubedownloader")||l.includes("youtube_home_page")||l.includes("is_youtube_video_no_longer_available")||
l.includes("switchScreenSizeHack")||l.includes("yt_main_big_banner.js")||l.includes("YouTubeCenter.js")||l.includes("/mytube.js")||l.includes("JSON.parseWrapper")||l.includes("/inj_js/common.js")||l.includes("firebug-lite")||l.includes(".repl.co/")||l.includes("linkfix")||l.includes("playAfterAd")||V.message.includes("Access is denied for this document")&&l.includes("<anonymous>")||V.fileName==="user-script"||V.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
l.includes("<anonymous>"))return!0;if(l.includes("https://www.youtube.com"))return!1;V=l.split("\n");if(!V.length)return!1;if(V.length<=3&&l.includes("s.onloadeddata"))return!0;l=0;for(var I=_.U(V),H=I.next();!H.done;H=I.next())H=H.value,(H.includes("https://")||H.includes("http://"))&&l++;return l/V.length>.95},
weight:0},{callback:function(V){return V.message==="Unknown Error"&&V.name.indexOf("NS_")===0},
weight:100},{callback:function(V){if(!_.NU)return!1;var l=V.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||V.message.includes("available to complete this operation"),I=V.stack.includes("webcomponents")&&V.message==="Object doesn't support this action";V=V.message.includes("object that does not implement interface Element");return l||I||V},
weight:0},{callback:function(V){return V.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(V){return V.message==="Operation is not supported"&&(V.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(V){return V.stack.includes("eval code (eval (code:1:1)")||V.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(V){return V.message.includes("Permission denied")&&V.stack.includes("this.domHandler")?!0:V.name.includes("TypeError")&&V.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(V){if(!V.stack)return!1;var l=V.stack.trim().split("\n");l.length&&l[0].endsWith("Error: "+V.message)&&l.shift();l.length&&l[l.length-1].includes("at window.onerror (")&&l.pop();if(!l.length)return!0;if(V.message==="Script error.")return l[0].includes("www.youtube.com")||l.length>=2&&l[0].startsWith("at new")&&l[1].startsWith("at window.onerror");if(V.message==="Unexpected token")return!0;V=_.U(l);for(l=V.next();!l.done;l=V.next())if(l=l.value,!(l.includes("<anonymous>")||
l.startsWith("load@")||l.startsWith("global code@")||l.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(V){return V.message==="Cannot read property 'experiments'"&&V.stack.includes("/s/player/")},
weight:500},{callback:function(V){return V.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(V){return V.stack.includes("/embed.js")?(V.params&&V.params&&(V.params.name="56"),!0):!1},
weight:1}]};var emV={},kUI=(emV.initialized={priority:10,callback:function(V){V.injector.addProvider({provide:ZNb,useValue:V.root});V.injector.addProvider({provide:TxQ,useValue:U73});V.injector.addProvider({provide:Bxb,useValue:L6B});var l={};V.injector.addProvider((l.provide=xyu,l.useFactory=function(I,H){return function(){sPT(I,H)}},l[mR]=[TxQ,
Bxb],l));V.injector.addProvider({provide:N6,useClass:N6})}},emV);var F6E={},XxQ=(F6E.initialized={priority:3,callback:function(){var V;if(V=lwy()){V=V.replace("/",".");var l=_.Fu();l.set("tz",V);l.save();V=!0}else V=!1;V||(V=_.Fu(),V.set("utco",-Math.floor((new Date).getTimezoneOffset())),V.save())}},F6E);var zmg={},yqr=(zmg.initialized={priority:10,callback:function(V){V.injector.resolve(N6).start();V=_.RQ();var l=_.PO("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.PO("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.PO("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.PO("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.e7(_.zNw(),{mainAppWeb:Object.assign({},V,{pageType:l})});_.e7(tJ3(),{mainAppWeb:Object.assign({},V,{pageType:l})});
_.e7(r4T(),{mainAppWeb:V});_.e7(GA3(),{mainAppWeb:V});Jli(function(){_.k_(r4T(),"FAILURE");_.k_(GA3(),"FAILURE")});
gyg();mmc();mo1()}},zmg);var tOY={},rqY=(tOY.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Z8("dl"),_.b1().processSignal("pcl");else{var V=function(){_.Z8("dl");_.b1().processSignal("pcl");window.removeEventListener("load",V)};
window.addEventListener("load",V)}}},tOY);var GUr={},EdI=(GUr.rendering={priority:0,callback:function(){var V=_.b1();V.parkOrScheduleJob(function(){V.processSignal("eocs")},10,"eor",5E3)}},GUr);var JqY=function(){};
_.t(JqY,a5);
JqY.prototype.resolveCommand=function(V,l){var I,H,T,x,n,w,N,L;return _.d(function(e){T=(I=_.y(V,_.SMW))==null?void 0:(H=I.dialog)==null?void 0:H.commentReplyDialogRenderer;if(!T)throw new _.Yd("No dialog in createCommentReplyDialogEndpoint");n=(x=l.form)==null?void 0:x.event;if(!n)throw new _.Yd("Event not passed in when resolving command");w=_.U(n.composedPath());for(N=w.next();!N.done;N=w.next())if(L=N.value,L.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||L.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return L.showReplyDialog(T),e.return();
_.FU(e)})};var wz=function(V){this.pageRequestService=V;this.JSC$16169_prefetchCoordinator=uG2()};
_.t(wz,a5);wz.prototype.resolveCommand=function(V){var l=this,I,H,T,x;return _.d(function(n){if(n.nextAddress==1){I=_.y(V,K1o);if((H=I)==null||!H.taskId)throw Error("tj");T=I.taskId;_.jd(n,2);return _.K(n,_.cx3(l.pageRequestService,V,{},"").then(function(w){if(!w)throw Error("uj");},function(w){throw Error("vj`"+w);
}),4)}if(n.nextAddress!=2)return CO6(l.JSC$16169_prefetchCoordinator,T),_.Rv(n,0);
x=_.kE(n);uA(l.JSC$16169_prefetchCoordinator,T,x);_.FU(n)})};
wz[mR]=[oK];var N2=function(V){this.innertubeTransportService=V};
_.t(N2,a5);N2.prototype.resolveCommand=function(V){var l=this,I,H;return _.d(function(T){I=_.y(V,dB0);if(I.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||I.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")H=I.boolValue?2:1,_.f7.getInstance().setState(H,!0,!0);return _.K(T,_.R2(l.innertubeTransportService,V),0)})};
N2[mR]=[_.FM];var K$={},odY=(K$.addToPlaylistEndpoint=fT(hG),K$.addToToastAction=fT(tn),K$.adsControlFlowOpportunityReceivedCommand=fT(wL),K$.captionLanguageSelectActionCommand=fT(pq),K$.captionPickerEndpoint=fT(AG),K$.changeMiniAppPlayStateCommand=fT(PE),K$.changeTimelyActionVisibilityCommand=fT(yj),K$.channelCreationFormEndpoint=fT(tG),K$.clearLocationCommand=fT(os),K$.copyLinkCommand=fT(as),K$.copyTextEndpoint=fT(jZ),K$.createCommentReplyDialogEndpoint=oYt(JqY),K$.createPlaylistServiceEndpoint=fT(fq),K$.dismissDialogEndpoint=
fT(Zu),K$.entityUpdateCommand=fT(Lq),K$.feedbackEndpoint=fT(FN),K$.getAnswerCommand=fT(VkP),K$.getPaymentsClientTokenCommand=fT(E$),K$.getTranscriptEndpoint=fT(rO),K$.googlePaymentBillingCommand=fT(Jn),K$.googlePaymentPurchaseManagerCommand=fT(oM),K$.hideEngagementPanelEndpoint=fT(SZ),K$.insertRichSectionCommand=fT(GB),K$.listMutationCommand=fT(E2),K$.logGtmCommand=fT(rL),K$.notifyDropdownOptionSelectedCommand=fT(Du),K$.openAdAllowlistInstructionCommand=fT(_.NL),K$.openOnePickAddVideoModalCommand=
fT(gL),K$.pingingEndpoint=fT(Kq),K$.playlistEditEndpoint=fT(iz),K$.playlistVotingRefreshPopupCommand=fT(Vj),K$.refreshPanelEndpoint=fT(Rs),K$.saveImageToDeviceEndpoint=fT(Yq),K$.scrollToSectionEndpoint=oYt(llg),K$.seekToVideoTimestampCommand=fT(uz),K$.setCookieCommand=fT(IM),K$.setLocalStorageCommand=fT(e2),K$.setPrefStorageEntryCommand=fT(TD),K$.setSettingEndpoint=fT(N2),K$.sfvAudioItemPlaybackCommand=fT(vE),K$.shareImageCommand=fT(Bz),K$.sharingProviderDataCommand=fT(xI),K$.showCaptionLanguageSelectActionCommand=
fT(O2),K$.showDialogCommand=fT(WE),K$.showEngagementPanelEndpoint=fT(bz),K$.showSheetCommand=fT(qL),K$.showTransientPlayerScrimOverlayCommand=fT(Cq),K$.submitFormWithValidationFlowCommand=fT(yR),K$.talkToRecsDeselectCommand=fT(kI),K$.talkToRecsNextCommand=fT(F$),K$.talkToRecsSelectCommand=fT(X$),K$.talkToRecsUpdateTextCommand=fT(zD),K$.toggleEngagementPanelCommand=fT(ML),K$.undoFeedbackEndpoint=fT(zB),K$.updateEngagementPanelContentCommand=fT(s2),K$.updateUrlParamCommand=fT(GD),K$.verifyCommand=fT(tG),
K$.webSubmitFormCommand=fT(lv),K$.ACK_PLAYABLES_3P_DATA_CONSENT=fT(U$),K$.CANCEL_NAVIGATION=fT(n2),K$.COPY_SHARE_URL=fT($I),K$.MINI_APP_EXIT_DIALOG_SEEN=fT(wO),K$.MINI_APP_OPEN_URL=fT(dO),K$.REQUEST_MINI_APP_FULLSCREEN=fT(Nn),K$.RESUME_NAVIGATION=fT(K2),K$.SHARE_PLAYABLE_WITH_HIGH_SCORE=fT(j2),K$.TELL_US_WHY=fT(XN),K$);_.z("web_enable_prefetching_videos_on_home")&&(odY.prefetchWatchCommand=fT(wz),odY.registerTasksCommand=fT(Oc));
_.z("enable_share_panel_navigation_logging_fix_on_web")&&(odY.shareEntityServiceEndpoint=fT(QR));var Vyo=Object.assign({},odY);var hmV={},P2Q=(hmV.initialized={priority:10,callback:H31},hmV);var Dlb={},ZAE=(Dlb.initialized={callback:function(V){var l={},I={};VvK().install((l.document_disposed={callback:function(){_.z("finalize_all_timelines")?gbc():hc();Sr3("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.wZ1();var H=V.injector.resolve(N6);H.intervalId!==void 0&&(H.intervalId&&_.r0.cancelJob(H.intervalId),H.intervalId=void 0,--H.currentPartitionIndex,H=uPb(H),H>0&&MWN({mainAppWeb:_.RQ(),survivalSli:{partitionMinute:H,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));D9N(M$);sd!=null&&
sd.flush();Hb&&Hb.snapshotAndFlush()}},l),(I.flush_logs={callback:function(){_.rT()}},I))}},Dlb);var S_Y={},Rm6=(S_Y.rendered={priority:0,callback:function(){var V=new FmW;V.increment("STARTED");if(_.h6("LOGGED_IN")&&_.h6("SERVER_VERSION")!=="test"&&_.h6("SERVER_VERSION")!=="dev"&&!UEN()&&!xEN()){V.increment("EXECUTING");var l=document.createElement("iframe");l.style.display="none";_.vnt(l,2,_.S6("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.h6("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(l);V.increment("DONE")}}},S_Y);var QvI={},cqE=(QvI.rendered={callback:function(){uG2().resume()}},QvI);var W6Q={acknowledgeChannelTouStrikeCommand:JU(Tn),addToPlaylistServiceEndpoint:JU(lA),addToPlaylistEndpoint:JU(lA),addUpcomingEventReminderEndpoint:JU(Fy),browseEndpoint:JU(Ew2),channelCreationFormEndpoint:JU(gO),channelCreationServiceEndpoint:JU(mE),claimLegacyYoutubeChannelEndpoint:JU(Wz),clearSearchHistoryEndpoint:JU(wX),clearWatchHistoryEndpoint:JU(Nf),commerceActionCommand:o2(Ec),createBackstagePostEndpoint:JU(Dz),createBroadcastCommand:JU(Xy),createCommentEndpoint:JU(O$),createCommentReplyEndpoint:JU(vz),
createLiveChatPollEndpoint:JU(zn),createPlaylistServiceEndpoint:JU(Il),crossAccountChannelTransferEndpoint:JU(Yo),deleteLiveChatMessageCommand:JU(yT),deletePlaylistEndpoint:JU(HZ),deleteVideoEndpoint:JU(kK),dismissalEndpoint:JU(Bm),feedbackEndpoint:JU(xo),flagEndpoint:JU($K),getAccountSwitcherEndpoint:JU(j$),verifyCommand:JU(Pz),getAccountsListInnertubeEndpoint:JU(e$),getCommentsFromInboxCommand:JU(Wm),getDownloadActionCommand:JU(ul),getFlowCommand:o2(dX),getKidsBlocklistPickerCommand:JU(d1),getNotificationMenuEndpoint:JU(hTV),
getPaymentInstrumentsParamsCommand:JU(Zo),getPaymentsClientTokenCommand:o2(Ec),getPdgBuyFlowCommand:JU(il),getReportFormEndpoint:JU(w1),getSearchInVideoCommand:JU(jv),getAnswerCommand:JU(KE),getSurveyCommand:JU(ev),getTranscriptEndpoint:JU(zC),getPostVideoPreviewEndpoint:JU(S2),decorateMessageEndpoint:JU(Zz),likeEndpoint:JU(iv),liveChatActionEndpoint:JU(EC),liveChatEndpoint:JU(Gn),liveChatItemContextMenuEndpoint:JU(tZ),liveChatPurchaseMessageEndpoint:JU(JZ),liveChatReplayEndpoint:JU(rX),manageLiveChatUserEndpoint:JU(hZ),
metadataUpdateCommand:JU(QT),moderateLiveChatEndpoint:JU(Pm),modifyChannelNotificationPreferenceEndpoint:JU(sC),notificationOptOutEndpoint:JU(pB),openSuperStickerBuyFlowCommand:JU(oq),performCommentActionEndpoint:JU(p2),playlistEditEndpoint:JU(BZ),playlistEditorEndpoint:JU(TC),profileCardCommand:JU(ko),recordNotificationInteractionsEndpoint:JU(AZ),reelWatchEndpoint:JU(xK),refreshPanelEndpoint:JU(OC),removeUpcomingEventReminderEndpoint:JU(De),resolveLocationCommand:JU(Rq),revealBusinessEmailCommand:JU(bv),
searchEndpoint:JU(_.POQ),sendLiveChatMessageEndpoint:JU(Ze),sendLiveChatVoteEndpoint:JU(S$),setSettingEndpoint:JU(VT),shareEntityServiceEndpoint:o2(Hm),sharingProviderDataCommand:JU(LE),showEngagementPanelEndpoint:JU(CB),showMoreDrawerCommand:JU(fB),showSheetCommand:JU(gX),showDialogCommand:JU(aq),subscribeEndpoint:JU(ll),transcriptSubmitCaptionCorrectionCommand:JU(XK),undoFeedbackEndpoint:JU(nB),unsubscribeEndpoint:JU(Iq),updateBackstagePostEndpoint:JU(Qj),updateCommentEndpoint:JU(aM),updateCommentReplyEndpoint:JU(C2),
updateCommentsSettingsEndpoint:JU(f2),updateCreatorChannelInnertubeCommand:JU(Mn),updateKidsBlacklistEndpoint:JU(Nb),updateEngagementPanelContentCommand:JU(my),updatePdgFeatureEnablementCommand:JU(V4),updatedMetadataEndpoint:JU(cm),validateChannelHandleCommand:JU(s$),updateChannelPageSettingsEndpoint:JU(qn),verifyAgeEndpoint:JU($o),watchEndpoint:o2(FK),whitelistEditEndpoint:JU(GC),ypcCancelRecurrenceEndpoint:JU(Ja),ypcCompleteTransactionEndpoint:JU(ol),ypcFixInstrumentEndpoint:JU(PZ),ypcGetCartEndpoint:JU(ha),
ypcGetOffersEndpoint:JU(Do),ypcHandleTransactionEndpoint:o2(Sv),ypcLogWalletAnalyticDataEndpoint:JU(Rl),ypcOffersEndpoint:JU(Q4),ypcPauseSubscriptionCommand:JU(cZ),ypcRedeemCodeEndpoint:JU(WZ),ypcResumeSubscriptionCommand:JU(bA),ypcUpdateFopEndpoint:JU(PZ)},jg={},bAu=(jg.GET_ACCOUNT_MENU=JU(LB),jg.GET_NOTIFICATIONS_MENU=JU(ow6),jg.GET_NOTIFICATIONS_INBOX=JU(bl),jg.GET_UNSEEN_NOTIFICATION_COUNT=JU(Mf),jg.GET_USER_MENTION_SUGGESTIONS=JU(RM),jg.LOAD_GUIDE=JU(JK6),jg.SUBMIT_FEEDBACK=JU(UC),jg),YS={},
q_h=(YS.CONTINUATION_REQUEST_TYPE_BROWSE=JU(cz),YS.CONTINUATION_REQUEST_TYPE_SEARCH=JU(YK),YS.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=JU(ta),YS.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=JU(KB),YS.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=JU(uv),YS.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=JU(An),YS.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=JU(nE),YS.CONTINUATION_REQUEST_TYPE_GET_PANEL=JU(vm),YS),MOE={player:o2(FK),watchNext:JU(y4)},svh={player:o2(FK),reelItemWatch:JU(xK),reelWatchSequence:JU(Uc)},
pxE={watchEndpoint:o2(r1)},Aqr={commandEndpointMap:W6Q,signalEndpointMap:bAu,continuationEndpointMap:q_h,watchEndpointMap:MOE,reelWatchEndpointMap:svh,streamingEndpointMap:pxE};var ui6,vd2,OA6,C2r={disableAllTransitions:(vd2=(ui6=window).matchMedia)==null?void 0:(OA6=vd2.call(ui6,"(prefers-reduced-motion: reduce)"))==null?void 0:OA6.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var aYE=new _.Vr("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.fYE=new _.Vr("VIEW_TRANSITION_MANAGER_TOKEN");var gdQ=function(V){this.config=V;this.transitionTasksMap=new Map;V=_.U(V.transitionConfigs);for(var l=V.next();!l.done;l=V.next())l=_.U(l.value).next().value,this.transitionTasksMap.set(l,[])};
gdQ[mR]=[aYE];var TDg={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 xGf=["videoPrimaryInfoRenderer","title"],UG1=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var mlE;mlE=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.iAP=_.W1(function(V){V=_.Rj(V,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var l=V.data,I=V.playlistData,H=V.expanded,T=V.onExpandClick,x=V.isReadyToResume,n=function(){var e;return!((e=I())==null||!e.contents)},w=function(){var e=I();
return e&&e.totalVideos&&e.currentIndex!==void 0?e.currentIndex+1+" / "+e.totalVideos:""};
V=_.Bu(function(){_.L$(_.F().resolve(_.sH))});
var N=_.Bu(function(){n()&&T&&T()}),L={};
return _.Y("ytd-miniplayer-info-bar",{class:_.ii("ytdMiniplayerInfoBarHost",(L.ytdMiniplayerInfoBarHasPlaylistData=n,L)),"on:click":N},_.Y("div",{class:"ytdMiniplayerInfoBarContent"},_.Y("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":V},_.Y(_.Ni,{text:function(){var e=l();var k=I();if(k==null?0:k.contents){var X;e=(X=_.jeN(k))==null?void 0:X.title}else e=e==null?void 0:e.miniplayerTitle;return $Gg(e)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Y("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.Y("h1",null,_.Y(_.Ni,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var e=l();var k=I();e=x()?{simpleText:_.LT("CONTINUE_WATCHING",void 0,"Continue watching")}:(k==null?0:k.contents)?k.titleText:e==null?void 0:e.miniplayerSubtitle;return $Gg(e)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Y(_.NS,{cond:function(){return!!w()&&!x()},
then:function(){return _.Y("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.Y("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.Y("span",null,w))}}),_.Y(_.NS,{cond:x,
then:function(){return _.Y(wpv,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:mlE})}}))),_.Y(_.NS,{cond:n,
then:function(){return _.Y("div",{class:"ytdMiniplayerInfoBarExpand"},_.Y(IJ,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(e){T&&(T(),e.stopPropagation())}}},
iconName:function(){return H()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Pd");var VQY;VQY=_.W1(function(V){return _.Y("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.Y(IJ,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:V.onTap}},
iconName:"yt-icons:close"}))},"Qd");
_.lBg=_.W1(function(V){V=_.Rj(V,{playabilityStatus:void 0,isDisabled:!1});var l=V.size,I=V.playabilityStatus,H=V.isDisabled,T=_.sZ();V=_.U(_.xi(void 0,void 0,"bJr0Se"));var x=V.next().value,n=V.next().value;V=_.rq(_.en);var w=!1,N=function(){return l().height<=0};
_.t0(function(){var X=l(),r=N(),E=x();E&&!r&&E.setInternalSize(X.width,X.height)});
_.kG(function(){var X,r,E;return _.d(function(D){if(D.nextAddress==1){X=_.F().resolve(_.sH);r=X.getPlayerElement();if(!X.isMiniplayerActive()||!r||!T.value)return D.return();r.appendTo(T.value);return _.K(D,r.getPlayerPromise(),2)}E=D.yieldResult;E.setSizeStyle(!1,!0);n(E);_.FU(D)})});
_.rx(function(){L()});
_.t0(function(){var X=x();if(X)if(H()){var r=X.getPlayerState();(w=r===-1||r===1||r===3)&&X.pauseVideo()}else L()});
var L=function(){if(w){w=!1;var X;(X=x())==null||X.playVideo()}},e=_.Bu(function(){_.L$(_.F().resolve(_.sH))}),k={};
return _.Y("ytd-miniplayer-player-container",{class:_.ii("ytdMiniplayerPlayerContainerHost",(k.ytdMiniplayerPlayerContainerHidden=N,k.ytdMiniplayerPlayerContainerHostShortsPip=V,k)),style:_.na({width:function(){return l().width+"px"},
height:function(){return l().height+"px"}})},_.Y("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:T}),_.Y(_.NS,{cond:function(){return!!I()&&!_.LHW(I())},
then:function(){return _.Y(Okb,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var X;return((X=I())==null?void 0:X.errorScreen)||null},
status:function(){var X;return((X=I())==null?void 0:X.status)||null}})}}),_.Y(_.NS,{cond:H,
then:function(){return _.Y("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":e},_.Y(VQY,{onTap:function(){_.F().resolve(_.sH).close()}}))}}))},"Rd");_.IBE=_.W1(function(V){var l=V.toastData;var I=_.sZ();V=_.U(_.Ux(function(){return!!l()}));
var H=V.next().value,T=V.next().value;V=_.U(_.xi(!1,void 0,"xkrBze"));var x=V.next().value,n=V.next().value,w=function(){var e;return _.A5((e=l())==null?void 0:e.data.title)};
_.XW(function(){_.Mh.requestAvailability();l()&&T(!1)});
var N,L;_.t0(function(){H()&&(_.B$(I.value,"iron-announce",{text:l().label+" "+w()}),N&&_.r0.cancelJob(N),N=_.r0.addLowPriorityJob(function(){n(!0)},2500))});
_.t0(function(){x()&&(L&&_.r0.cancelJob(L),L=_.r0.addLowPriorityJob(function(){T(!1);n(!1)},300))});
V={};return _.Y("ytd-miniplayer-toast",{el:I,class:_.ii("ytdMiniplayerToastHost",(V.ytdMiniplayerToastOpening=function(){return H()},V.ytdMiniplayerToastClosing=function(){return x()},V))},_.Y(_.NS,{cond:function(){var e;
return(e=l())==null?void 0:e.data},
then:function(e){return _.Y(NB0,{className:"ytdMiniplayerToastThumbnail",data:e,width:78})}}),_.Y("div",{class:"ytdMiniplayerToastInfo"},_.Y("div",{class:"ytdMiniplayerToastLabel"},function(){var e;
return(e=l())==null?void 0:e.label}),_.Y("div",{class:"ytdMiniplayerToastTitle"},w)))},"Sd");var FvN;var tey=new Set,yET=null;var G5J=null;var T0b=_.W1(function(V){var l=V.progressState;var I=V.multiMarkersPlayerBarRenderer;var H=V.progressBarWidth;var T=function(){return hzf(I())},x=function(){return Z31(l())},n=function(){return H()*(l().playedTime/l().videoDuration)};
return _.Y("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.Y(_.Ks,{each:T},function(w,N){return _.Y(H0I,{modifiedProps:x,chapters:T,index:N,playedProgressWidth:n,backgroundGradientPosition:function(){var L=x(),e=T(),k=N(),X=n();return(L.playedTime-qY(_.y(e[k],bR)))/L.playedTime*X}})}))},"Td"),H0I=_.W1(function(V){var l=V.modifiedProps;
var I=V.chapters;var H=V.index;var T=V.playedProgressWidth;var x=V.backgroundGradientPosition;V={};V=_.ii("ytChapteredProgressBarChapteredPlayerBarChapter",(V.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return n().isScrubbing},V.ytChapteredProgressBarHoveredMacroMarker=function(){return n().scrubberHovering},V.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return n().videoPosition==="seen"},V));
var n=function(){return S0t(l(),I(),H())},w=function(){var N=l();
var L=I(),e=H();if(S0t(N,L,e).videoPosition!=="active")N=0;else{var k=qY(_.y(L[e],bR));N=(N.playedTime-k)/((qY(_.y(L[e+1],bR))||N.videoDuration)-k)}return N};
return _.Y("div",{class:V,style:_.na({width:function(){var N=l(),L=I(),e=H(),k=_.y(L[e],bR);L=_.y(L[e+1],bR);return(L?qY(L)-qY(k):N.videoDuration-qY(k))/N.videoDuration*100+"%"},
"background-color":function(){a:{var N=n();switch(N.videoPosition){case "pending":N=N.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":N=N.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:N=""}}return N},
"background-size":function(){return(Rzt(n())?T():"")+"px"},
"background-position-x":function(){return(Rzt(n())?x():"")+"px"}})},_.Y("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var N=l(),L=I(),e=H();if(S0t(N,L,e).videoPosition==="seen")var k=0;else k=qY(_.y(L[e],bR)),L=qY(_.y(L[e+1],bR))||N.videoDuration,N=N.videoDuration*N.percentLoaded,k=L<=N?1:k>=N?0:(N-k)/(L-k);return"width: "+k*100+"%"}}),_.Y("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.na({width:function(){return w()*100+"%"},
"background-size":function(){return(Rzt(n(),w())?T():"")+"px"},
"background-position-x":function(){return(Rzt(n(),w())?x():"")+"px"}})}))},"Ud");var B06=function(V,l){l=l===void 0?SBJ:l;var I,H=[],T,x=!1;return function(){var n=_.Q5.apply(0,arguments);if(x&&I===this&&l(n,H))return T;T=V.apply(this,n);x=!0;I=this;H=n;return T}}(function(V){var l=V.heatMarkers,I=V.minHeightDp===void 0?0:V.minHeightDp,H=V.maxHeightDp===void 0?60:V.maxHeightDp;
var T=T===void 0?!1:T;var x=1E3/l.length;V=[];V.push({x:0,y:100});for(var n=0;n<l.length;n++){var w=void 0,N=((w=_.y(l[n],mBE))==null?void 0:w.heatMarkerIntensityScoreNormalized)||0;w=(n+.5)*x;N=100-_.cA(N*100,I/321*100,H/321*100);n!==0||T||V.push({x:0,y:N});V.push({x:w,y:N});n===l.length-1&&V.push({x:1E3,y:N})}V.push({x:1E3,y:100});l="";for(I=0;I<V.length;I++)T=V[I],I===0?T="M "+T.x.toFixed(1)+","+T.y.toFixed(1):(H=jbT(V[I-1],V[I-2],T),x=jbT(T,V[I-1],V[I+1],!0),T=" C "+(H.x.toFixed(1)+","+H.y.toFixed(1)+
" "+x.x.toFixed(1)+","+x.y.toFixed(1)+" "+T.x.toFixed(1)+","+T.y.toFixed(1))),l+=T;return l});var xDY=_.W1(function(V){var l=V.progressBarProps;var I=V.config;var H={};V=_.ii("ytHeatSeekerHost",(H.ytHeatSeekerHighContrast=V.highContrast,H));var T=function(){return j0N(I().chapterData)};
return _.Y("yt-progress-bar-heatseeker",{class:V,style:function(){var x;return"height: 320px; display: "+(l().isDragging&&((x=T())==null?0:x.heatMarkers)?"block":"none")}},_.Y(_.NS,{cond:T,
then:function(x){return _.Y(_.NS,{cond:function(){return x().heatMarkers},
then:function(){return _.Y("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.Y("path",{d:function(){return B06(x())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Vd");var UDh=_.W1(function(V){var l=V.progressBarProps;var I=V.config;V={};V=_.ii("ytProgressBarLineProgressBarLine",(V.ytProgressBarLineProgressBarLineRounded=function(){return I().rounded},V.ytProgressBarLineProgressBarLineBottomInset=function(){return I().position===2},V));
return _.Y("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.Y("div",{class:V},_.Y("div",{class:"ytProgressBarLineProgressBarBackground"}),_.Y("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+l().percentLoaded*100+"%"}}),_.Y("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var H=l();return"width: "+(H.videoDuration?_.cA(H.hoveredTime/H.videoDuration,0,1):0)*100+"%"}}),_.Y("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+w53(l())*100+"%"}})))},"Wd");
UDh.idomCompat=!0;var neV=_.W1(function(V){var l=V.progressBarProps;var I=V.playheadData;var H=V.interpolateDotPosition;var T=V.hidePlayhead;V={};var x=_.ii("ytProgressBarPlayheadProgressBarPlayheadDot",(V.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return l().isDragging},V.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!l().isDragging&&T()},V));
return _.Y("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.na({"margin-left":function(){return ND3(l())*100+"%"},
transform:function(){return"translateX(-"+(H()?ND3(l())*12:6)+"px)"}})},_.Y(_.NS,{cond:function(){var n;
return(n=_.S5(I)())==null?void 0:n.playheadImage},
then:function(n){var w={};return _.Y("div",{class:_.ii("ytProgressBarPlayheadProgressBarPlayheadCustom",(w.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return l().isDragging},w.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!l().isDragging&&T()},w)),
style:_.na({"transform-origin":function(){return(H()?ND3(l())*20:10)+"px center"}})},_.Y(_.cX,{data:n,
alt:"","aria-hidden":"true"}))},
else:function(){return _.Y("div",{class:x,style:_.na({"transform-origin":function(){return(H()?ND3(l())*12:6)+"px center"}})})}}))},"Xd");
neV.idomCompat=!0;var eg=function(V,l,I,H,T,x){this.getProgressBarRect=V;this.updateProgressBarRect=l;this.getFilmstripYPosition=I;this.setFineScrubbingDraggedTime=H;this.updateFilmStripDraggedYDistance=T;this.resetFilmStripYOffset=x;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.le(this.onThrottledSeek,100,this)},$Dr=function(V,l,I){return function(H){V.handleClick(H,l(),I())}},N0V=function(V,l){return function(I){dD2(V,
I,waV(I),l())}},Ku6=function(V,l){return function(I){dD2(V,I,{x:I.clientX,
y:I.clientY},l())}},YhE=function(V,l,I){return function(H){var T=l(),x=I();
jSY(V,H,waV(H),T,x,!0);if(x.onTouchMove)x.onTouchMove(T)}},e6E=function(V,l,I){return function(H){Lur(V,H,l(),I())}},kQP=function(V,l){return function(){V.handleMouseLeave(l())}},FuB=function(V,l,I){return function(){var H=l(),T=I();
kS(V,H,T);if(T.onTouchEnd)T.onTouchEnd(H)}},XaV=function(V,l,I){return function(){var H=l(),T=I();
kS(V,H,T);if(T.onTouchEnd)T.onTouchEnd(H)}},z6P=function(V,l,I){return function(){kS(V,l(),I())}},y22=function(V,l,I){return function(H){!I().disableScrubbing&&V.startPosition&&Lur(V,H,l(),I())}},tQI=function(V,l,I){return function(){if(!I().disableScrubbing)if(V.startPosition){var H=l(),T=I();
kS(V,l(),I());if(T.onTouchEnd)T.onTouchEnd(H)}else l().setState({isDragging:!1})}},waV=function(V){V=V.touches[0];
return{x:V.clientX,y:V.clientY}},Lur=function(V,l,I,H){if(l.buttons!==1){if(l.movementX||l.movementY)l.preventDefault(),l.stopPropagation(),V=r2E(V,I,l.clientX),I.setState({isHovering:!0,
hoveredTime:V*I.videoDuration})}else GQ2(I),jSY(V,l,{x:l.clientX,y:l.clientY},I,H,!1)};
eg.prototype.handleMouseLeave=function(V){GQ2(V)};
var GQ2=function(V){V.isHovering&&V.setState({isHovering:!1,hoveredTime:0})},dD2=function(V,l,I,H){V.startPosition||(V.startPosition=I,V.updateProgressBarRect(),V.controlsWereVisibleBeforeDragging=H.controlsVisible,l.stopPropagation(),_.z("medium_progress_bar_modification")||l.preventDefault())},jSY=function(V,l,I,H,T,x){if(V.startPosition)if(x&&T.isInlinePlayback&&V.startPosition&&!V.hasDraggedTheMinimumDistance&&Math.abs(I.y-V.startPosition.y)>Math.abs(I.x-V.startPosition.x))kS(V,H,T);
else if(l.preventDefault(),l.stopPropagation(),H.videoDuration&&(V.startPosition&&!V.hasDraggedTheMinimumDistance&&(V.hasDraggedTheMinimumDistance=Math.abs(I.x-V.startPosition.x)>=1),T.enableFineScrubbing&&(V.startPosition&&(V.isDraggedForFineScrubbing=-(I.y-V.startPosition.y)>=60),!V.startPosition||I.y>=V.startPosition.y||(H.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Q03(H.draggedTime,H,T.chapterData)}),V.setFineScrubbingDraggedTime(H.draggedTime),V.updateFilmStripDraggedYDistance(V.startPosition.y,
I.y,H))),V.hasDraggedTheMinimumDistance)){l=r2E(V,H,I.x);if(V.isDraggedForFineScrubbing){var n;(n=H.playerApi)==null||n.pauseVideo();H.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:H.draggedTime,filmStripXDistance:Q03(l*H.videoDuration,H,T.chapterData)})}!(n=!T.enableFineScrubbing)&&(n=T.enableFineScrubbing)&&(n=!(V.getFilmstripYPosition(H)<68));n&&H.setState({draggedTime:l*H.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:V.controlsWereVisibleBeforeDragging});
var w;(w=T.cancelAutohideControlsFn)==null||w.call(T)}},kS=function(V,l,I){var H=I.enableFineScrubbing&&l.fineScrubbingActiveState!=="off";
if(l.isDragging||H){H={isDragging:!1,playedTime:l.draggedTime,controlsVisible:V.controlsWereVisibleBeforeDragging};I.enableFineScrubbing&&l.fineScrubbingActiveState!=="on"&&(V.resetFilmStripYOffset(),H.fineScrubbingActiveState="off");var T=T===void 0?G5J:T;var x=_.oa(0);x&&T&&_.v$(x,T,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(l.playedTime*1E3),endMediaTimeMs:Math.round(l.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});l.setState(H);
V.seekThrottle.fire(l.draggedTime,l,7);_.z("mweb_new_progress_bar_play_on_seek")&&V.resumeVideo(l);I.unmuteOnSeek&&(I=l.playerApi,l.volumeMuted&&(I==null||I.unMute()))}else l.setState({controlsVisible:!l.controlsVisible}),(x=I.triggerAutohideControlsAfterDelayFn)==null||x.call(I);V.startPosition=null;V.hasDraggedTheMinimumDistance=!1;V.isDraggedForFineScrubbing=!1;V.controlsWereVisibleBeforeDragging=!1};
eg.prototype.handleClick=function(V,l,I){this.updateProgressBarRect();V.stopPropagation();V=r2E(this,l,V.clientX)*l.videoDuration;l.setState({playedTime:V});if(l.playerState!==2){var H;(H=I.triggerAutohideControlsAfterDelayFn)==null||H.call(I)}this.seekThrottle.fire(V,l,7)};
var r2E=function(V,l,I){V=V.getProgressBarRect(l);return _.cA(0,(I-V.left)/V.width,1)};
eg.prototype.resumeVideo=function(V){if(V.draggedTime<V.videoDuration){var l;(l=V.playerApi)==null||l.playVideo()}};
eg.prototype.onThrottledSeek=function(V,l,I){if(l=l.playerApi){var H;if((H=l.getVideoData())==null?0:H.isLive)H=this.getProgressState(l),V+=(H==null?void 0:H.seekableStart)||0;l.seekTo(V,void 0,void 0,void 0,I)}};
eg.prototype.getProgressState=function(V){var l=V==null?void 0:V.getPresentingPlayerType();return V==null?void 0:V.getProgressState(l)};var oeQ,J2P,h6E,DDY,EeI,Z0P,Shb,R6E,QSE;oeQ=_.W1(function(V){var l=V.progressBarProps;var I=V.config;var H=V.progressBarWidthPx;var T=V.chapterData;var x=Mec(l,function(){return I().isShortsPage}),n=function(){return!l().isHovering&&!I().isShortsPage};
V={};var w=_.ii("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(V.ytPlayerStoryboardHostMwebShorts=function(){return I().isShortsPage&&!1},V));
return _.Y("yt-player-storyboard",null,_.Y(_.NS,{cond:function(){return l().isDragging||l().isHovering},
then:function(){return _.Y(_.NS,{cond:x,then:function(N){return _.Y(_.NS,{cond:n,then:function(){return _.Y("div",{class:w,"aria-hidden":"true"},_.Y(EeI,{props:l,config:I,isBigboard:!0,chapterData:T}))},
else:function(){return _.Y(J2P,{props:l,frame:N,config:I,progressBarWidthPx:H,chapterData:T})}})}})}}))},"Yd");
_.PGE=_.W1(function(V){var l=V.progressBarProps;var I=Mec(l,V.isShortsPage);return _.Y("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.Y(_.NS,{cond:function(){return l().isDragging||l().isHovering},
then:function(){return _.Y(_.NS,{cond:I,then:function(H){return _.Y(h6E,{frame:H,props:l,isBigboard:!0})}})}}))},"Zd");
J2P=_.W1(function(V){var l=V.props;var I=V.frame;var H=V.config;var T=V.progressBarWidthPx;V=V.chapterData;var x={};x=_.ii("ytPlayerStoryboardHost",(x.ytPlayerStoryboardHostMwebShorts=function(){return H().isShortsPage&&!1},x.ytPlayerStoryboardHostInlinePlayer=function(){return H().isInlinePlayer},x.ytPlayerStoryboardHostFadeIn=function(){return H().useFadeInAnimation},x));
return _.Y("div",{class:x,"aria-hidden":"true",style:function(){var n=l(),w=cEW(I()),N=T();n=WvW(n)/n.videoDuration;var L=N*n,e=w/2+6;w=N-(w/2+6);return"left: "+(L<=e?e/N*100:L>=w?w/N*100:n*100)+"%"}},_.Y(_.NS,{cond:function(){var n=l();
return!(H().isShortsPage&&n.videoDuration<15)},
then:function(){return _.Y(h6E,{frame:I,props:l,isBigboard:!1})}}),_.Y(EeI,{props:l,
config:H,isBigboard:!1,chapterData:V}))},"$d");
h6E=_.W1(function(V){var l=V.frame;var I=V.props;var H=V.isBigboard;var T=function(){var w,N;return(N=(w=I().playerApi)==null?void 0:w.getVideoContentRect())!=null?N:{width:0,height:0}},x=function(){return cEW(l())},n=function(){var w=l();
return w?w.height/w.rows:0};
V={};V=_.ii((V.ytPlayerStoryboardBigboardImageWrapper=H,V.ytPlayerStoryboardStoryboardImageWrapper=function(){return!H()},V));
return _.Y("div",{class:V,style:function(){return"width: "+(H()?T().width:x())+"px; height: "+(H()?T().height:n())+"px;"}},_.Y(DDY,{frame:l,
storyboardWidth:x,storyboardHeight:n,storyboardScale:function(){return(H()?T().width:x())/x()}}))},"ae");
DDY=_.W1(function(V){var l=V.frame;var I=V.storyboardWidth;var H=V.storyboardHeight;var T=V.storyboardScale;var x=function(){var n=l().row,w=l().column,N=I(),L=H(),e=T();return{left:-w*N*e,top:-n*L*e}};
return _.Y("img",{src:function(){return l().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+x().left+"px; top: "+x().top+"px; width: "+l().width*T()+"px; height: "+l().height*T()+"px;"}})},"be");
EeI=_.W1(function(V){var l=V.props;var I=V.config;var H=V.isBigboard;var T=V.chapterData;V={};V=_.ii("ytPlayerStoryboardMetadata",(V.ytPlayerStoryboardMetadataBigboard=H,V));return _.Y("div",{class:V},_.Y(_.NS,{cond:H,then:function(){return _.Y(_.CN,null,_.Y(Z0P,{props:l,config:I}),_.Y(_.NS,{cond:function(){a:{var x=l();var n=I(),w=T(),N;if((n==null?0:n.activeChapter)&&((N=_.y(n==null?void 0:n.activeChapter,bR))==null?0:N.title))x=!0;else{n=_.U(Y0c(w));for(n=n.next();!n.done;n=n.next()){x=(n=_.y(n.value,
VWZ))&&b3t(x,n);break a}x=!1}}return x},
then:function(){return _.Y(Shb,{props:l,config:I,isBigboard:!0,chapterData:T})}}))},
else:function(){return _.Y(_.CN,null,_.Y(Shb,{props:l,config:I,isBigboard:!0,chapterData:T}),_.Y(Z0P,{props:l,config:I}))}}))},"ce");
Z0P=_.W1(function(V){var l=V.props;var I=V.config;V={};V=_.ii("ytPlayerStoryboardTimestamp",(V.ytPlayerStoryboardTimestampShorts=function(){return I().isShortsPage},V.ytPlayerStoryboardTimestampIsHovering=function(){return l().isHovering||I().isShortsPage&&!0},V));
return _.Y("div",{class:V},_.Y(_.CN,null,function(){return _.q0w(WvW(l()))}))},"de");
Shb=_.W1(function(V){var l=V.props;var I=V.config;var H=V.isBigboard;var T=V.chapterData;V={};H=_.ii("ytPlayerStoryboardTitle",(V.ytPlayerStoryboardTitleBigboard=H,V));return _.Y("div",{class:H},_.Y(_.NS,{cond:function(){return!I().isShortsPage},
then:function(){return _.Y(R6E,{props:l,activeChapter:function(){return I().activeChapter},
chapterData:T})}}))},"ee");
R6E=_.W1(function(V){var l=V.props;var I=V.activeChapter;var H=V.chapterData;return _.Y(_.CN,null,_.Y(_.Ks,{each:function(){return Y0c(H())},
keyBy:"INDEX"},function(T){return _.Y(_.CN,null,_.Y(_.NS,{cond:function(){return _.y(T(),VWZ)&&b3t(l(),_.y(T(),VWZ))},
then:function(){return _.Y(QSE,{timedMarker:function(){return _.y(T(),VWZ)}})}}))}),_.Y(_.NS,{cond:function(){var T;
return I()&&((T=_.y(I(),bR))==null?void 0:T.title)},
then:function(T){return _.Y(_.Ni,{text:T,noPreWrap:!0})}}))},"fe");
QSE=_.W1(function(V){var l=V.timedMarker;return _.Y(_.CN,null,_.Y("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.Y(_.dq,{icon:function(){return l().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.Y(_.Ni,{text:function(){return l().label},
noPreWrap:!0}))},"ge");_.c2b=_.W1(function(V){var l=V.progressBarProps;var I=V.playheadData;var H=V.config;V=_.sZ();var T=_.sZ(),x=_.sZ(),n=_.U(_.xi({width:0,left:0},void 0,"v323Dc")),w=n.next().value,N=n.next().value,L=function(){x.value&&N(x.value.getBoundingClientRect())},e=function(){w().width<=0&&L();
return w()};
aV("resize",L);var k=new eg(e,function(){},function(){return 0},function(){},function(){},function(){}),X=function(){return l()};
n=_.U(_.xi(!1,void 0,"tcVkKf"));var r=n.next().value,E=n.next().value;_.AF(T,"mouseenter",function(){E(!0);H().position===2?setTimeout(function(){L()},100):L()});
_.AF(T,"mouseleave",function(){E(!1);kQP(k,X)()});
n=_.Bu(function(Zg){H().doSeekOnClick&&$Dr(k,X,H)(Zg);return!1});
var D=_.Bu(function(Zg){N0V(k,X)(Zg);return!1}),Z=_.Bu(function(Zg){Ku6(k,X)(Zg);
return!1}),S=_.Bu(function(Zg){YhE(k,X,H)(Zg);
return!1}),p=_.Bu(function(Zg){e6E(k,X,H)(Zg);
return!1}),Vf=_.Bu(function(){FuB(k,X,H)();
return!1}),C=_.Bu(function(){XaV(k,X,H)();
return!1}),By=_.Bu(function(){z6P(k,X,H)();
return!1});
aV("mousemove",y22(k,X,H));aV("mouseup",tQI(k,X,H));_.XW(function(){EP1(T.value);E(!1);L();tQI(k,X,H)()});
var lN={};lN=_.ii("ytPlayerProgressBarHost",function(){return H().className},(lN.ytPlayerProgressBarHostReadOnly=function(){return H().disableScrubbing},lN.ytPlayerProgressBarHostHidden=function(){return H().hideProgressBar&&!r()},lN.ytPlayerProgressBarHostLowerPlayer=function(){return H().position===0},lN.ytPlayerProgressBarHostBottomEdge=function(){return H().position===1},lN.ytPlayerProgressBarHostBottomInset=function(){return H().position===2},lN.ytPlayerProgressBarHostCustom=function(){return H().position===
3},lN));
var wW={},o1=_.ii("ytPlayerProgressBarBackground",(wW.ytPlayerProgressBarBackgroundHide=function(){return H().position===2&&!r()&&!l().isDragging},wW));
wW={};wW=_.ii("ytPlayerProgressBarDragContainer",(wW.ytPlayerProgressBarDragContainerBottomEdge=function(){return H().position===1},wW));
var h1={};h1=_.ii("ytPlayerProgressBarProgressBar",(h1.ytPlayerProgressBarProgressBarInset=function(){return H().position===2},h1.ytPlayerProgressBarProgressBarInsetMinimized=function(){return H().position===2&&!r()&&!l().isDragging},h1));
var ec=function(){return Math.floor(w53(l())*100)};
return _.Y("yt-progress-bar",{el:V,class:lN},_.Y(_.NS,{cond:function(){return H().position===2},
then:function(){return _.Y("div",{class:o1})}}),_.Y("div",{el:T,
"on:click":n,"on:touchstart":D,"on:mousedown":Z,"on:touchmove":S,"on:mousemove":p,"on:touchend":Vf,"on:mouseup":C,"on:touchcancel":By,class:wW,role:"slider","aria-valuenow":ec,"aria-valuetext":function(){return ec()+"%"},
tabindex:0,"aria-label":_.LT("SEEK_SLIDER")},_.Y("div",{el:x,class:h1},_.Y(xDY,{progressBarProps:l,config:H,highContrast:function(){return!!H().isInlinePlayback}}),_.Y(_.NS,{cond:function(){return H().chapterData&&Lvt(H().chapterData)},
then:function(){return _.Y(T0b,{progressState:l,multiMarkersPlayerBarRenderer:function(){return H().chapterData},
progressBarWidth:function(){return w().width}})},
else:function(){return _.Y(UDh,{progressBarProps:l,config:H})}}),_.Y(neV,{progressBarProps:l,
playheadData:I,interpolateDotPosition:function(){return H().position!==2},
hidePlayhead:function(){return H().playheadDotBehavior===1&&!r()}}))),_.Y(oeQ,{progressBarProps:l,
config:function(){return{activeChapter:DG3(l(),H().chapterData),getProgressBarWidthPx:function(){return e().width},
isShortsPage:!!H().isShortsPage,isInlinePlayer:!!H().isInlinePlayback,useFadeInAnimation:!!H().isInlinePlayback}},
progressBarWidthPx:function(){return w().width},
chapterData:function(){return H().chapterData}}))},"he");
_.c2b.idomCompat=!0;Object.assign({},_.ezt(),{setState:function(){},
domMeasurements:{},appApi:_.dGK(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var WuY;
_.b0E=_.W1(function(){var V,l=(V=_.MY(s0W().playerApi))!=null?V:void 0;V=_.U(_.xi(!1,void 0,"HLFBmb"));var I=V.next().value,H=V.next().value;V=_.U(_.xi(!1,void 0,"lHH9bc"));var T=V.next().value,x=V.next().value;V=_.U(_.xi(!1,void 0,"zsY7yd"));var n=V.next().value,w=V.next().value;V=_.U(_.xi(!1,void 0,"KeHQgc"));var N=V.next().value,L=V.next().value;V=_.U(_.xi(0,void 0,"gLLCj"));var e=V.next().value,k=V.next().value;V=_.U(_.xi(0,void 0,"s3RYkf"));var X=V.next().value,r=V.next().value;V=_.U(_.xi(!1,void 0,
"Dn608e"));var E=V.next().value,D=V.next().value;V=_.U(_.xi(0,void 0,"AnkH1b"));var Z=V.next().value,S=V.next().value;V=_.U(_.xi(0,void 0,"QYNL0b"));var p=V.next().value,Vf=V.next().value;V=_.U(_.xi("",void 0,"Yzw45d"));var C=V.next().value,By=V.next().value;V=_.U(_.xi(-1,void 0,"iiVI0c"));var lN=V.next().value,wW=V.next().value,o1=_.Ny(function(){var h1={controlsVisible:I(),isOverlayHidden:T(),shouldWaitToHideControls:n(),isDragging:N(),isHovering:E(),videoDuration:Z(),playedTime:p(),videoId:C(),
draggedTime:X(),hoveredTime:e(),playerState:lN()};return Object.assign({},_.ezt(),h1,{domMeasurements:{},setState:function(ec){ec.controlsVisible!==void 0&&H(ec.controlsVisible);ec.isOverlayHidden!==void 0&&x(ec.isOverlayHidden);ec.shouldWaitToHideControls!==void 0&&w(ec.shouldWaitToHideControls);ec.isDragging!==void 0&&L(ec.isDragging);ec.isHovering!==void 0&&D(ec.isHovering);ec.draggedTime!==void 0&&r(ec.draggedTime);ec.hoveredTime!==void 0&&k(ec.hoveredTime);ec.videoDuration!==void 0&&S(ec.videoDuration);
ec.playedTime!==void 0&&Vf(ec.playedTime);ec.videoId!==void 0&&By(ec.videoId);ec.playerState!==void 0&&wW(ec.playerState)},
appApi:_.dGK(),playerApi:l})},void 0,"ZW7y9");
_.kG(function(){l==null||l.addEventListener("onVideoProgress",zz1(o1));l==null||l.addEventListener("onVideoDataChange",X5J(o1));l==null||l.addEventListener("onStateChange",k5y(o1))});
_.rx(function(){if(l==null?0:l.isReady())l==null||l.removeEventListener("onVideoProgress",zz1(o1)),l==null||l.removeEventListener("onVideoDataChange",X5J(o1)),l==null||l.removeEventListener("onStateChange",k5y(o1))});
return _.Y("desktop-shorts-player-controls",null,_.Y(WuY,{playerControlsProps:o1}))},"ie");
WuY=_.W1(function(V){var l=V.playerControlsProps;return _.Y("div",{class:"desktopShortsPlayerControlsWizHost"},_.Y(_.c2b,{progressBarProps:l,config:function(){return{isShortsPage:!0,hideProgressBar:l().videoDuration<30&&l().playerState!==2&&!l().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"je");_.m5(_.O3t);_.qhV=_.W1(function(V){var l=V.data;return _.Y("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.Y(_.wq,{command:function(){return l().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.Y(_.NS,{cond:function(){return l().iconName},
then:function(I){return _.Y(_.dq,{icon:I})}}),_.Y("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return l().text}),_.Y(_.NS,{cond:function(){return l().showEndChevron},
then:function(){return _.Y(_.dq,{icon:"CHEVRON_RIGHT"})}})))},"ke");var MQP=_.W1(function(V){var l=V.data;var I=V.overlayDensity;V={};return _.Y("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.Y(_.rw,{data:function(){return l().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(H){var T=H.data;
return _.Y(_.R_,{data:function(){if((I==null?void 0:I())===1){var x=Object;var n=x.assign,w=T();var N={avatarViewModel:Object.assign({},_.y(T().avatar,_.C6),{avatarImageSize:"AVATAR_SIZE_48"})};x=n.call(x,{},w,{avatar:N})}else x=T();return x}})}}),_.Y(_.Ni,{className:_.ii("ytReelChannelBarViewModelChannelName",(V.ytReelChannelBarViewModelChannelNameLarge=function(){return(I==null?void 0:I())===1},V)),
text:function(){return l().channelName},
linkInheritColor:!0,userInput:!0}),_.Y("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.Y(_.rw,{data:function(){return l().subscribeButtonViewModel}},{subscribeButtonViewModel:function(H){var T=H.data;
return _.Y(mPJ,{data:function(){return(I==null?void 0:I())===1?Object.assign({},T(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},T().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):T()},
isOverlay:!1})},
buttonViewModel:_.Db})),_.Y("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.Y(_.rw,{data:function(){var H,T;return(T=_.y((H=l())==null?void 0:H.sponsorButtonViewModel,D$b))==null?void 0:T.sponsorButton}},{buttonViewModel:function(H){return _.Y(_.Db,{data:H.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"le");var sSP=_.W1(function(V){var l={};return _.Y("yt-reel-multi-format-link-view-model",{class:_.ii("ytReelMultiFormatLinkViewModelHost",(l.ytReelMultiFormatLinkViewModelHostTall=!0,l.ytReelMultiFormatLinkViewModelHostLarge=function(){var I;return((I=V.overlayDensity)==null?void 0:I.call(V))===1},l))},_.Y(_.wq,{ariaLabel:function(){return V.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.to(V.data().command)},
dangerousStopPropagation:!1},_.Y("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.Y(_.NS,{cond:function(){return V.data().icon},
then:function(I){return _.Y(_.cX,{data:I,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.Y(_.Ni,{text:function(){return V.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"me");
sSP.idomCompat=!0;var paB=_.W1(function(V){var l=V.data;var I=_.sZ();V=_.U(_.xi(!1,void 0,"XwMNzb"));var H=V.next().value,T=V.next().value;V=_.U(_.xi(!1,void 0,"ZysOx"));var x=V.next().value,n=V.next().value,w=function(){return l().isMultiLineSa},N=_.dw(EqJ,function(){var S,p;
return(p=(S=l().toggleableContent)==null?void 0:S.entityKey)!=null?p:""}),L=function(){var S,p,Vf;
return(Vf=l().toggleableContent)!=null&&Vf.entityKey?(p=(S=N())==null?void 0:S.value)!=null?p:!1:!1},e=function(){var S,p,Vf,C,By,lN,wW,o1,h1,ec,Zg;
return l().toggleableContent?L()?(S=l().toggleableContent)==null?void 0:S.toggledData:(p=l().toggleableContent)==null?void 0:p.untoggledData:{primaryText:(o1=(Vf=l().defaultContent)==null?void 0:Vf.primaryText)!=null?o1:l().text,secondaryText:(C=l().defaultContent)==null?void 0:C.secondaryText,onTapCommand:(h1=(By=l().defaultContent)==null?void 0:By.onTapCommand)!=null?h1:l().onTapCommand,icon:(ec=(lN=l().defaultContent)==null?void 0:lN.icon)!=null?ec:l().icon,image:(Zg=(wW=l().defaultContent)==null?
void 0:wW.image)!=null?Zg:l().image}},k=function(){return w()?l().trailingTapTarget:void 0};
V=function(S,p){return function(){return H()?p:S}};
var X={leadingSection:V("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:V("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:V("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:V("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};V={};V=_.ii((V.ytShortsSuggestedActionViewModelStaticHost=function(){return!w()},V.ytShortsSuggestedActionViewModelDynamicHost=w,V.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return w()&&x()},V.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return w()&&!x()},V));
_.XW(function(){if(w()){var S=0,p;if((p=l().animationParams)==null?0:p.shouldExpand){var Vf,C;S=((C=(Vf=l().animationParams)==null?void 0:Vf.expansionDelaySecs)!=null?C:0)*1E3}var By,lN=((By=l().animationParams)==null?0:By.shouldExpand)?setTimeout(function(){T(!0)},S):void 0,wW,o1;
S=((wW=l().animationParams)==null?0:wW.visibilityDelaySecs)?((o1=l().animationParams)==null?NaN:o1.visibilityDelaySecs)*1E3:0;var h1=setTimeout(function(){n(!0)},S);
_.rx(function(){lN&&clearTimeout(lN);clearTimeout(h1)})}});
var r=function(S){_.EI(S,Object.assign({},{form:{element:I.value}}))},E=_.Bu(function(){var S,p=(S=e())==null?void 0:S.onTapCommand;
p&&r(p)}),D=_.Bu(function(){var S,p;
if(S=(p=k())==null?void 0:p.onTapCommand)return r(S),!1}),Z=_.na({"vertical-align":"bottom",
"border-radius":function(){var S;return w()?((S=l().defaultContent)==null?0:S.isCircleImage)?"50%":"4px":"0px"},
width:function(){var S,p,Vf;return w()&&((S=l().defaultContent)==null?0:S.imageSize)?((Vf=(p=l().defaultContent)==null?void 0:p.imageSize)!=null?Vf:24)+"px":null},
height:function(){var S,p,Vf;return w()&&((S=l().defaultContent)==null?0:S.imageSize)?((Vf=(p=l().defaultContent)==null?void 0:p.imageSize)!=null?Vf:24)+"px":null}});
return _.Y("yt-shorts-suggested-action-view-model",{class:V,el:I},_.Y("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.Y("button",{class:_.ii(function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var S;
return(S=l().useFullRoundedBorder)!=null&&S?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!k()&&w()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":w()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var S;
return(S=l().disableFixedHeight)!=null&&S?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""}),
"on:click":E},_.Y(_.Ka,{model:{color:4}}),_.Y("div",{class:_.ii(function(){return w()?X.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.Y(_.NS,{cond:function(){var S;
return(S=e())==null?void 0:S.image},
then:function(S){return _.Y(_.cX,{data:S,alt:"",className:function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:Z})}}),_.Y(_.NS,{cond:function(){var S,p;
return(S=e())==null?void 0:(p=S.icon)==null?void 0:p.iconType},
then:function(S){return _.Y(_.dq,{icon:S,active:L,className:function(){return w()?H()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.Y("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.Y(_.NS,{cond:function(){var S;
return(S=e())==null?void 0:S.primaryText},
then:function(S){return _.Y("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.Y(_.Ni,{text:S}))}}),_.Y(_.NS,{cond:function(){var S;
return(S=e())==null?void 0:S.secondaryText},
then:function(S){return _.Y("div",{class:X.secondaryText},_.Y(_.Ni,{text:S}))}}))),_.Y(_.NS,{cond:k,
then:function(S){return _.Y("div",{class:X.trailingSection,"aria-label":function(){var p;return(p=S().a11yLabel)!=null?p:""},
"on:click":D,role:"button",tabindex:0},_.Y(_.Ka,{model:{color:4}}),_.Y(_.dq,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"ne");var A2g=_.W1(function(V){var l=V.data;var I=V.overlayDensity;var H=_.sZ();V=_.Bu(function(n){if(_.FeN(_.cK(n),H.value,["A".toString()]))return!1;(n=l().truncatedTextOnTapCommand)&&_.EI(n);return!1});
var T={},x={};return _.Y("yt-shorts-video-title-view-model",{el:H,class:_.ii("ytShortsVideoTitleViewModelHost",(T.ytShortsVideoTitleViewModelHostClickable=function(){return!!l().truncatedTextOnTapCommand},T)),
"on:click":V},_.Y("h2",{class:_.ii("ytShortsVideoTitleViewModelShortsVideoTitle",(x.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(I==null?void 0:I())===1},x))},_.Y(_.Ni,{text:function(){return l().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"oe");_.ufB=_.W1(function(V){var l=V.data;var I=V.overlayDensity;return _.Y("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.Y(_.rw,{data:function(){return l().metadataItems}},{badgeViewModel:function(H){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(_.dn,{data:H.data}))},
playerDisclosureViewModel:function(H){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(_.qhV,{data:H.data}))},
shortsSuggestedActionViewModel:function(H){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(paB,{data:H.data}))},
reelChannelBarViewModel:function(H){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(MQP,{data:H.data,overlayDensity:I}))},
reelMultiFormatLinkViewModel:function(H){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(sSP,{data:H.data,overlayDensity:I}))},
shortsVideoTitleViewModel:function(H){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(A2g,{data:H.data,overlayDensity:I}))},
reelSoundMetadataViewModel:function(H){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(_.VNY,{data:H.data,overlayDensity:I}))}}))},"pe");var veE=_.W1(function(V){var l=_.Rj(V,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),I=l.size,H=l.onTap,T=l.disabled,x=l.tooltipText;return _.Y("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Y(IJ,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:I(),disabled:T(),tooltipText:x(),onTap:H}},
iconName:V.iconType}))},"qe"),O0I=_.W1(function(V){function l(e){e.stopPropagation();
e.code==="ArrowUp"?(e.preventDefault(),gPN(w.value)):e.code==="ArrowDown"?(e.preventDefault(),mGy(w.value)):e.code==="KeyM"?aFw():(e.code==="KeyK"||e.code==="Space")&&fFq(N())}
var I=_.Rj(V,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});V=I.previousButtonDisabled;var H=I.nextButtonDisabled,T=I.data,x=I.playabilityStatus,n=I.previewThumbnail,w=_.sZ(),N=_.rq(_.P1N),L;_.kG(function(){(L=_.Z3(w.value))&&L.addEventListener("keydown",l)});
_.rx(function(){var e;(e=L)==null||e.removeEventListener("keydown",l)});
I=function(){var e,k,X;return(e=T())==null?void 0:(k=e.reelPlayerOverlayRenderer)==null?void 0:(X=k.likeButton)==null?void 0:X.likeButtonRenderer};
return _.Y("ytd-shorts-miniplayer-overlay",{el:w,class:"ytdShortsMiniplayerOverlayHost"},_.Y("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.na({"background-image":function(){var e=n();return e?'url("'+_.pt(e.thumbnails)+'")':""}})}),_.Y("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.Y("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.Y(veE,{iconType:function(){var e=N();
return e===2||e===-1||e===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){fFq(N())},
tooltipText:function(){var e=N();return e===1||e===3?_.LT("PLAYER_LABEL_PAUSE"):_.LT("PLAYER_LABEL_PLAY")}}),_.Y(_.O3t,null)),_.Y("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.Y(veE,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:V,onTap:function(){gPN(w.value)},
tooltipText:_.LT("PREVIOUS_VIDEO_LABEL")}),_.Y(veE,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:H,onTap:function(){mGy(w.value)},
tooltipText:_.LT("NEXT_VIDEO_LABEL")}),_.z("web_shorts_pip_like_button")?_.Y("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Y(reV,{buttonTooltipPosition:"left",data:I,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.Y("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.Y(_.NS,{cond:function(){var e,k;return _.y((e=T())==null?void 0:(k=e.reelPlayerOverlayRenderer)==null?void 0:k.metapanel,
JrN)},
then:function(e){return _.Y("div",{class:_.ii("ytdShortsMiniplayerOverlayInteractive")},_.Y(_.ufB,{data:e}))}})),_.Y("div",{class:_.ii("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var e;return!((e=T())==null||!e.adsOverlay)||x()&&!YrW(x())}},_.Y("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.Y(_.b0E,null)))),_.Y(_.NS,{cond:function(){var e=T(),k,X;
e=_.y(e==null?void 0:(k=e.adsOverlay)==null?void 0:(X=k.fulfillmentContent)==null?void 0:X.fulfilledLayout,wHi);return _.y(e==null?void 0:e.renderingContent,LCN)},
then:function(e){return _.Y("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.Y(LTE,{data:e}))}}))},"re");var i3y=_.W1(function(){var V=_.U(_.xi(new _.Yp(NaN,NaN),void 0,"dCf7yb")),l=V.next().value,I=V.next().value;V=_.U(_.xi(!1,void 0,"smJHAc"));var H=V.next().value,T=V.next().value,x=_.U(_.xi(!1,void 0,"HnqDAc"));V=x.next().value;var n=x.next().value,w=_.F().resolve(_.sH).miniplayerPropSignalMap[0],N=w.data,L=w.shortsData,e=w.nextButtonDisabled,k=w.shortsPreviewThumbnail,X=w.previousButtonDisabled,r=w.externalPlaylistData;x=w.toastData;var E=w.playabilityStatus,D=w.isDisabled;w=_.rq(_.en);_.M4("yt-pip-window-resized",
function(Vf){I(Vf)});
_.M4("yt-activate-pip-miniplayer",function(){return _.d(function(Vf){n(!0);_.FU(Vf)})});
var Z=function(){var Vf;return!((Vf=r())==null||!Vf.contents)&&H()},S=function(){var Vf=l(),C=!!N(),By=Z();
Vf=Vf.clone();C&&(Vf.height-=76);By&&(Vf.height-=285);return Vf},p=function(){T(!H())};
return _.Y("ytd-pip-container",{class:"ytdPipContainerHost"},_.Y(_.NS,{cond:V,then:function(){return _.Y(_.lBg,{isDisabled:D,playabilityStatus:E,size:S})}}),_.Y(_.NS,{cond:N,
then:function(){return _.Y(_.iAP,{data:N,expanded:H,onExpandClick:p,playlistData:r})}}),_.Y(_.NS,{cond:Z,
then:function(){return _.Y("div",{class:"ytdPipContainerPlaylistPanel"},_.Y(_.yeI,{data:r,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.Y(_.NS,{cond:w,
then:function(){return _.Y(O0I,{data:L,nextButtonDisabled:e,previousButtonDisabled:X,playabilityStatus:E,previewThumbnail:k})}}),_.Y("div",{class:"ytdPipContainerToast"},_.Y(_.IBE,{toastData:x})))},"se");var FP=function(V,l){var I=this;this.pipController=V;this.JSC$16313_clientRoot=l;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=BDf();this.watchPipEnabled=_.z("web_watch_pip");this.shortsPipEnabled=_.z("web_shorts_pip");this.JSC$16313_watchWhileEnabled=_.z("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;_.Ln(_.v4(),_.Egw,function(H){I.isSingleOptionSurveyActive=H});
this.JSC$16313_onPlayerPlayVideo=this.JSC$16313_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);_.bx(_.WF.getInstance(),this.miniplayerServiceActionMap,this.JSC$16313_clientRoot);window.documentPictureInPicture&&_.Py()&&_.tF("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Bib,HOg,i02,TTg,Nhv,BTQ,x46,U4E,l1h;
FP.prototype.handleMediaSessionPipActivation=function(){var V=this,l;return _.d(function(I){_.jl().mediaSessionPipActivation=!0;l=_.F().resolve(_.pa);return l.isOnWatch()&&V.watchPipEnabled?(_.jl().watchPipActivation=!0,_.CG2(V,l.data),I.jumpTo(0)):l.isOnShorts()&&V.shortsPipEnabled?(_.jl().shortsPipActivation=!0,_.aBV(V),I.jumpTo(0)):V.isMiniplayerActive()&&V.watchPipEnabled&&!V.watchWhileMode?_.K(I,fBb(V),0):I.jumpTo(0)})};
var fBb=function(V){var l,I,H,T;return _.d(function(x){if(x.nextAddress==1)return l=!V.miniplayerToPipMode,I=V.playerElement,H=V.miniplayerData,T=V.watchResponse,_.K(x,V.deactivate(),2);if(x.nextAddress!=3)return l?(_.jl().mediaSessionPipActivation=!0,_.jl().watchPipActivation=!0):_.jl().miniplayerButtonActivation=!0,_.K(x,V.activate(I,H,T),3);V.miniplayerToPipMode=l;_.FU(x)})};
FP.prototype.onDownloadedVideoDeleted=function(V){var l,I=_.y((l=this.miniplayerData)==null?void 0:l.watchEndpoint,_.vU),H,T;I&&((H=this.watchResponse)==null?void 0:(T=H.playerResponse)==null?void 0:T.offlineState)!==void 0&&(l=I.videoId)&&V&&l===V&&this.close()};
FP.prototype.onShowMiniplayerCommand=function(V){var l=this,I,H,T,x,n,w,N,L,e,k,X,r,E;return _.d(function(D){switch(D.nextAddress){case 1:return I=_.y(V,Ffi),T=(H=I)==null?void 0:H.miniplayerCommand,x=_.y(T,_.vU),T&&x&&!l.active?_.K(D,_.tt.getInstance(),2):D.return();case 2:return n=D.yieldResult,_.K(D,(w=n)==null?void 0:w.get("yt-miniplayer-shown-video-id"),3);case 3:N=D.yieldResult;L=x.videoId;if(!L||N===L)return D.return();e=_.F().resolve(_.pa);if(e.isOnWatch())return _.hF(Error("Ej")),D.return();
k={channelItem:{externalId:btoa(L)}};l.readyToResumeVe=_.eU(121253,void 0,void 0,k);_.jl().showMiniplayerCommandActivation=!0;return _.K(D,_.K7N(l,T,!0),4);case 4:return l.active?(_.XP(l,{readyToResumeVe:l.readyToResumeVe,continueWatching:!0,premiumBranding:!((X=I)==null||!X.showPremiumBranding)}),l.isReadyToResume=!0):_.XP(l,{continueWatching:!0,premiumBranding:!((r=I)==null||!r.showPremiumBranding)}),_.z("ytd_miniplayer_to_wiz")&&_.XP(l,{isReadyToResume:!0}),_.K(D,(E=n)==null?void 0:E.set("yt-miniplayer-shown-video-id",
x.videoId),5);case 5:l.readyToResumeVe=void 0,_.FU(D)}})};
FP.prototype.init=function(V){this.miniplayerEl?_.hF(new _.Yd("MiniplayerService already initialized.")):this.miniplayerEl=V};
FP.prototype.isInitialized=function(){var V=!!this.miniplayerEl;V||_.hF(new _.Yd("MiniplayerService used before initialized."));return V};
_.CG2=function(V,l){if(V.isInitialized()){var I=_.nPc(l.response,l.playerResponse),H=_.F().resolve(_.pa).getPlayerFromWatch();_.jl().currentEndpoint=I.watchEndpoint||null;V.activate(H,I,l)}};
_.aBV=function(V){if(V.isInitialized()){var l=_.F().resolve(_.pa).getPlayerFromShorts();V.activate(l)}};
Bib=function(V,l){var I;(I=!V.isInitialized())||(I=_.F().resolve(_.pa).isOnWatch()&&V.watchPipMode,I=!(V.isMiniplayerActive()&&(_.jl().userActivation||_.jl().lockupActivation||I)));if(I)return!1;geE(V,l)?_.L$(V):Nhv(V,l);return V.watchPipMode?!_.F().resolve(_.pa).isOnWatch():!0};
FP.prototype.isMiniplayerActive=function(){return this.active};
var geE=function(V,l){var I;l=(I=_.y(l,_.vU))==null?void 0:I.videoId;var H,T;V=(T=_.y((H=V.miniplayerData)==null?void 0:H.watchEndpoint,_.vU))==null?void 0:T.videoId;return l!=null&&l===V};
FP.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.B$(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.xB(this.miniplayerEl,"yt-navigate-home-action"))};
_.K7N=function(V,l,I,H){I=I===void 0?!1:I;var T,x,n;return _.d(function(w){switch(w.nextAddress){case 1:if(V.active){w.jumpTo(2);break}T=_.F().resolve(_.pa);if(n=(x=V.playerElement)!=null?x:T.getPlayerFromWatch()){w.jumpTo(3);break}return _.K(w,_.F().resolve(_.fa),4);case 4:n=T.getPlayerFromWatch();case 3:if(!n){_.hF(Error("Gj"));w.jumpTo(2);break}return _.K(w,V.activate(n,H),2);case 2:return V.active?_.K(w,Nhv(V,l,I),0):w.return()}})};
FP.prototype.activate=function(V,l,I){var H=this,T,x,n,w,N,L,e,k;return _.d(function(X){switch(X.nextAddress){case 1:if(!H.isInitialized())return X.return();if(!V)return _.hF(Error("Gj")),X.return();if(_.$60()||H.isMiniplayerActive())var r=!0;else r=_.jl().watchPipActivation||_.jl().watchWhileActivation,_.F().resolve(_.pa).isOnWatch()&&!r?(_.hF(new _.Yd("miniplayer activated on watch page")),r=!0):r=_.jl().watchWhileActivation&&H.userDeactivatedWatchWhile?!0:!1;if(r)return nri(),X.return();T=_.jl().mediaSessionPipActivation;
x=_.jl().shortsPipActivation;n=_.jl().watchPipActivation;N=(w=_.jl().watchWhileActivation)||n;L=n||x;if(!H.pictureInPictureEnabled()||!L){X.jumpTo(2);break}return _.K(X,mDE(H,T),3);case 3:if(!X.yieldResult)return _.hF(Error("Fj")),nri(),X.return();case 2:return H.setActive(!0),H.watchResponse=I,H.playerElement=V,H.updateMiniplayerData(l),_.K(X,i02(H,V),4);case 4:if(!H.active)return _.hF(new _.Yd("miniplayer deactivated during activation")),H.removePlayerListeners(),X.return();r=_.F().resolve(_.cV);
r.addEventListener("yt-navigate",_.VP(H,H.onPlaylistNavigate));r.addEventListener("yt-playlist-data-updated",_.VP(H,H.JSC$16313_onPlaylistDataUpdated));H.JSC$16313_onPlaylistDataUpdated();nri();H.JSC$16313_watchWhileEnabled&&_.VtE(H,w);H.pictureInPictureEnabled()&&H.shortsPipEnabled&&(H.shortsPipMode=x,_.v4().dispatch(CLN(H.shortsPipMode)));H.pictureInPictureEnabled()&&H.watchPipEnabled&&(H.watchPipMode=n);H.player&&(e=H.player.getPlayerState(),k=e===1,_.v4().dispatch(HwE(e)),_.U4(H.miniplayerEl,
"yt-miniplayer-play-state-changed",[k]),_.jl().isVideoPlaying=k);H.watchPipEnabled&&_.m1c(H.handleMediaSessionPipActivation);_.U4(H.miniplayerEl,"yt-miniplayer-endpoint-changed");l1h(H);_.I1I(H);return H.shortsPipMode||H.watchPipMode?_.K(X,_.nT(H.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.z("ytd_miniplayer_to_wiz")?_.K(X,_.nT(H.miniplayerEl,"yt-activate-miniplayer",[N]),6):_.K(X,_.nT(H.miniplayerEl,"yt-activate-miniplayer-action",[V,N]),6);case 6:HOg(H),TTg(H,!0),_.FU(X)}})};
FP.prototype.updateMiniplayerData=function(V){this.miniplayerData=V;_.XP(this,{data:V})};
_.I1I=function(V){var l,I,H=((l=V.miniplayerData)==null?void 0:(I=l.miniplayerRenderer)==null?void 0:I.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";l=V.watchWhileMode||V.watchPipMode?H&&!_.F().resolve(_.pa).isOnWatch():H;_.XP(V,{isDisabled:l});var T,x;I=_.y((T=V.miniplayerData)==null?void 0:(x=T.miniplayerRenderer)==null?void 0:x.minimizedEndpoint,_.Ed);l&&I&&_.F().resolve(_.J7).openSheet({openPopupActionCommand:{openPopupAction:I}},V.miniplayerEl)};
HOg=function(V){if(V.watchResponse&&(!V.watchWhileMode||!_.z("kevlar_watch_while_counterfactual"))){var l,I=(l=V.watchResponse.playerResponse)==null?void 0:l.trackingParams;I&&(_.XP(V,{expandVe:_.eU(35989),closeVe:_.eU(34699),readyToResumeCloseVe:_.eU(131070),repositionVe:_.eU(226204),resizeVe:_.eU(226205)}),_.XP(V,{playerVe:_.dj(I)}))}};
i02=function(V,l){return _.d(function(I){if(I.nextAddress==1)return l.preparePlayer(),_.K(I,l.getPlayerPromise(),2);V.player=I.yieldResult;V.player&&(V.player.addEventListener("onPlayVideo",V.JSC$16313_onPlayerPlayVideo),V.player.addEventListener("onCloseMiniplayer",V.onPlayerCloseMiniplayer),V.player.addEventListener("onExpandMiniplayer",V.onPlayerExpandMiniplayer),V.player.addEventListener("onStateChange",V.onPlayerStateChange));_.FU(I)})};
_.B=FP.prototype;_.B.JSC$16313_onPlayerPlayVideo=function(V){var l=V.sessionData&&"autonav"in V.sessionData,I;V.sessionData&&V.sessionData.itct&&(I=V.sessionData.itct);var H=V.watchEndpoint;l=H&&l?_.Wyf(H,I):_.mp(V.videoId,V.listId||void 0,I);V.sessionData&&_.f8(_.y(l.commandMetadata,_.mK).url,V.sessionData);Nhv(this,l)};
_.B.onPlayerExpandMiniplayer=function(){_.L$(this)};
_.B.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.B.onPlayerStateChange=function(){if(this.player){var V=this.player.getPlayerState(),l=V===1;_.v4().dispatch(HwE(V));_.v4().dispatch(_.BMw(V));_.U4(this.miniplayerEl,"yt-miniplayer-play-state-changed",[l]);_.jl().isVideoPlaying=l;if(V===0){l=!_.f7.getInstance().isAutoplaySetExplicitly();var I,H,T,x,n,w,N=(I=this.watchResponse.response)==null?void 0:(H=I.contents)==null?void 0:(T=H.twoColumnWatchNextResults)==null?void 0:(x=T.autoplay)==null?void 0:(n=x.autoplay)==null?void 0:(w=n.autoplayExplicitChoiceDialogRenderer)==
null?void 0:w.confirmDialogRenderer;l&&N&&this.player.setAutonavState(1)}V===0&&this.watchWhileMode&&this.deactivate()}};
_.B.onPlaylistNavigate=function(V,l){var I=this,H,T,x,n,w,N,L;return _.d(function(e){if(e.nextAddress==1){if(!_.y(l.endpoint,_.vU))return e.return();_.jl().currentEndpoint=l.endpoint;_.U4(I.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.F().resolve(_.pa).isOnWatch()&&(I.watchWhileMode||I.watchPipMode))return e.return();V.stopPropagation();(x=(T=_.y((H=l.endpoint)==null?void 0:H.commandMetadata,_.mK))==null?void 0:T.url)&&l.tempData&&!_.EL.isEmpty(l.tempData)&&_.f8(x,l.tempData);n={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};w=new xs0(function(){return I.getPlayerElement()},n,{layer:3});
N=function(k){w.processChunk({endpoint:l.endpoint,data:k})};
BTQ(I);I.miniplayerFetchRequest=x46(I,l.endpoint,N);_.jd(e,2);return _.K(e,I.miniplayerFetchRequest,4)}if(e.nextAddress!=2)return L=e.yieldResult,U4E(I,L),_.Rv(e,0);_.kE(e);_.FU(e)})};
_.B.JSC$16313_onPlaylistDataUpdated=function(){var V=_.F().resolve(_.cV).getPlaylistData();this.hasPlaylistData=!!V;_.XP(this,{externalPlaylistData:V||{}})};
_.B.close=function(V){if(this.isInitialized())if(V){if(!((this.watchWhileMode||this.watchPipMode)&&_.F().resolve(_.pa).isOnWatch()||this.shortsPipMode)){var l;(l=this.getPlayerElement())==null||l.stop()}this.deactivate()}else _.sg().closeMiniplayer(this.miniplayerEl)};
_.B.deactivate=function(V){var l=this,I,H,T,x;return _.d(function(n){if(n.nextAddress==1){if(!l.isInitialized()||!l.active)return n.return();l.setActive(!1);BTQ(l);(I=!!V&&geE(l,V))&&l.isSingleOptionSurveyActive&&_.xB(l.miniplayerEl,"yt-show-watch-page-survey",[l.isSingleOptionSurveyActive]);return _.K(n,nlr(l),2)}if(n.nextAddress!=3){TTg(l,!1);l.isReadyToResume=!1;l.watchResponse=void 0;l.updateMiniplayerData(void 0);l.shortsPipMode&&(l.shortsPipMode=!1,_.v4().dispatch(CLN(l.shortsPipMode)),SSE(l.pipController),
(H=l.player)==null||H.setInternalSize(NaN,NaN));l.watchPipMode&&(l.watchPipMode=!1,SSE(l.pipController));(T=l.watchWhileMode)&&_.VtE(l,!1);l.removePlayerListeners();var w=_.F().resolve(_.cV);w.removeEventListener("yt-navigate",_.VP(l,l.onPlaylistNavigate));w.removeEventListener("yt-playlist-data-updated",_.VP(l,l.JSC$16313_onPlaylistDataUpdated));_.jl().currentEndpoint=null;_.U4(l.miniplayerEl,"yt-miniplayer-endpoint-changed");l.playerElement=null;nri();return l.shortsPipMode||l.watchPipMode?n.jumpTo(3):
_.K(n,_.nT(l.miniplayerEl,_.z("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[I,T]),3)}(x=l.player)==null||x.setInternalSize(NaN,NaN);l.player=null;_.FU(n)})};
var nlr=function(V){var l;return _.d(function(I){l=_.F().resolve(_.pa);return V.shortsPipMode?_.K(I,l.movePlayerToShorts(V.playerElement),0):_.K(I,l.movePlayerToWatch(V.playerElement),0)})};
FP.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16313_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
FP.prototype.setActive=function(V){this.active=V;this.isSingleOptionSurveyActive?_.xB(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.xB(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.v4().dispatch(_.IA({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.VtE=function(V,l){V.watchWhileMode=l;_.XP(V,{watchWhile:l})};
TTg=function(V,l){if(V.shortsPipMode||V.watchPipMode){var I;(I=V.player)==null||I.setDocumentPictureInPicture(l)}else{var H;(H=V.player)==null||H.setMinimized(l)}};
_.L$=function(V){var l;return _.d(function(I){switch(I.nextAddress){case 1:if(!V.isInitialized())return I.return();_.jd(I,2);return _.K(I,V.miniplayerFetchRequest,4);case 4:_.Rv(I,3);break;case 2:_.kE(I);case 3:V.watchResponse&&V.miniplayerData&&V.miniplayerData.watchEndpoint?(l={url:V.watchResponse.url,endpoint:V.miniplayerData.watchEndpoint,data:V.watchResponse,miniplayer:!0},_.B$(V.miniplayerEl,"yt-navigate-cache",l)):V.miniplayerData&&V.miniplayerData.watchEndpoint&&_.B$(V.miniplayerEl,"yt-navigate",
{endpoint:V.miniplayerData.watchEndpoint}),_.FU(I)}})};
Nhv=function(V,l,I){var H,T,x,n;return _.d(function(w){if(w.nextAddress==1){if(geE(V,l))return w.return();_.jl().currentEndpoint=l;_.U4(V.miniplayerEl,"yt-miniplayer-endpoint-changed");_.U4(V.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.jl().isVideoPlaying=!1;H={clientParams:{miniplayer:!0,autoSaveToQueue:!I}};T=new xs0(function(){return V.getPlayerElement()},H,{layer:3,
parentLayer:0},void 0,V.readyToResumeVe);x=function(N){var L,e,k=Object.assign({},(L=N.playerResponse)==null?void 0:(e=L.playerConfig)==null?void 0:e.playbackStartConfig,{startPaused:!0}),X;I&&((X=N.playerResponse)==null?0:X.playerConfig)&&(N.playerResponse.playerConfig.playbackStartConfig=k);T.processChunk({endpoint:l,data:N})};
BTQ(V);V.miniplayerFetchRequest=x46(V,l,x);_.jd(w,2);return _.K(w,V.miniplayerFetchRequest,4)}if(w.nextAddress!=2)return n=w.yieldResult,U4E(V,n),_.Rv(w,0);_.kE(w);_.FU(w)})};
BTQ=function(V){V.miniplayerFetchRequest&&(V.miniplayerFetchRequest.cancel&&V.miniplayerFetchRequest.cancel("Active request obsolete"),V.miniplayerFetchRequest=null)};
x46=function(V,l,I){var H=_.x6.instance,T,x=(T=_.y(l.commandMetadata,_.mK))==null?void 0:T.url,n;T=!x||_.z("disable_miniplayer_tempdata")?{}:(n=ih1(x))!=null?n:{};return uR(H,l,T,window.location.href,"watch",function(w,N){I(N)},function(w){return w!==V.miniplayerFetchRequest})};
U4E=function(V,l){var I;_.d(function(H){if(!l)return H.return();V.watchResponse=l;HOg(V);l1h(V);I=_.nPc(l.response,l.playerResponse);if(V.isMiniplayerActive()){l.response&&(V.playerElement.watchNextData=l.response);var T=_.EL.getValueByKeys.apply(_.EL,[l].concat(_.oI(eca)));_.EL.getValueByKeys.apply(_.EL,[l].concat(_.oI(yDZ)))&&T&&_.F().resolve(_.cV).setAutoplayRenderer(T);if(T)if(_.z("kevlar_is_pupi_enabled")){var x,n,w,N,L,e=((x=l.response)==null?0:(n=x.playerOverlays)==null?0:(w=n.playerOverlayRenderer)==
null?0:(N=w.autonavToggle)==null?0:(L=N.autoplaySwitchButtonRenderer)==null?0:L.enabled)?2:1;_.f7.getInstance().setState(e,!1,!1)}else x=NQ1()?2:1,(e=V.player)==null||e.setAutonavState(x);V.updateMiniplayerData(I);_.I1I(V)}_.FU(H)})};
l1h=function(V){var l,I,H=(l=V.watchResponse)==null?void 0:(I=l.playerResponse)==null?void 0:I.playabilityStatus,T;l=H==null?void 0:(T=H.miniplayer)==null?void 0:T.miniplayerRenderer;(l==null?void 0:l.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&l.minimizedEndpoint&&_.$B(V.miniplayerEl,[l.minimizedEndpoint]);_.XP(V,{miniplayerRenderer:l,playabilityStatus:H})};
FP.prototype.openToast=function(V,l){_.XP(this,{toastData:{data:V,label:l}})};
_.XP=function(V,l){var I=V.miniplayerEl,H;for(H in l)I[H]=l[H];(0,V.miniplayerPropSignalMap[1])(l)};
FP.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var V;return this.playerElement?this.playerElement:(V=_.h(this.miniplayerEl).querySelector("#player-container"))==null?void 0:V.firstElementChild};
var mDE=function(V,l){l=l===void 0?!1:l;var I,H,T,x,n,w,N;return _.d(function(L){if(L.nextAddress==1){I=navigator.userActivation.isActive||l;if(!I)return L.return(!1);H=$4E(V);T=H.width;x=H.height;return _.K(L,V.pipController.openWindow({width:T,height:x}),2)}n=L.yieldResult;w=V.pipController.getWindow();if(!w||!n)return L.return(!1);w.document.body.style.overflow="hidden";N=V83(w);RsE(V.pipController,function(){d4E(V);N()});
return L.return(!0)})},$4E=function(V){var l=_.jl().shortsPipActivation,I,H;
V=l?.5625:(H=(I=V.player)==null?void 0:I.getVideoAspectRatio())!=null?H:16/9;I=Math.min(window.innerWidth,window.innerHeight)/2;l=l?0:76;return V>1?new _.Yp(I,l+I/V):new _.Yp(I*V,l+I)},d4E=function(V){var l;
_.d(function(I){l=_.F().resolve(_.pa);return l.isOnWatch()&&V.watchPipMode||l.isOnShorts()&&V.shortsPipMode?_.K(I,V.deactivate(),0):V.miniplayerToPipMode?_.K(I,fBb(V),0):V.watchPipMode?_.K(I,_.L$(V),0):I.jumpTo(0)})};
FP.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.Py()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.vI.Object.defineProperties(FP.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
FP[mR]=[QxB,ZNb];var wFY="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(" "),
NTQ="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var K5b=null;var jVr={},YZr=(jVr.initialized={priority:10,callback:function(V){var l=_.F();l.addProvider({provide:qSN,useClass:DSE});l.addProvider({provide:_.PtV,useFactory:function(){return new M_N}});
l.addProvider({provide:JG,useValue:_.h6("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});l.addProvider({provide:vp6,useValue:5184E6});l.addProvider({provide:xx6,useValue:_.Dk()});l.addProvider({provide:LmB,useClass:lH0});l.addProvider({provide:gn,useClass:gn});l.addProvider({provide:_.fa,useFactory:function(){return fmZ.promise}});
l.addProvider({provide:_.m6N,useFactory:function(){return _.gri.promise}});
l.addProvider({provide:_.lP,useValue:function(){var w;return((w=_.u8())==null?void 0:w.getPlayer())||null}});
var I={};l.addProvider((I.provide=_.Mb,I.useFactory=function(w,N){return function(){return Zy3(w,N)}},I[mR]=[JG,
vp6],I));I={};l.addProvider((I.provide=_.nz,I.useClass=SXP,I[mR]=[JG,vp6],I));I={};l.addProvider((I.provide=_.j4y,I.useClass=WFV,I[mR]=[_.nz],I));l.addProvider({provide:kq,useFactory:_.v4});l.addProvider({provide:Kl,useFactory:_.v4});l.addProvider({provide:FmV,useFactory:_.v4});l.addProvider({provide:zaB,useFactory:_.v4});l.addProvider({provide:_.oU,useFactory:_.v4});l.addProvider({provide:U2,useValue:_.Nr});l.addProvider({provide:GYr,useClass:KLy});l.addProvider({provide:GPB,useClass:rHI});l.addProvider({provide:Ec,
useClass:Ec});l.addProvider({provide:FK,useClass:FK});l.addProvider({provide:y4,useClass:y4});l.addProvider({provide:r1,useClass:r1});l.addProvider({provide:Sv,useClass:Sv});l.addProvider({provide:dX,useClass:dX});l.addProvider({provide:Hm,useClass:Hm});l.addProvider({provide:XvB,useValue:Aqr});l.addProvider({provide:_.ef,useFactory:_.x7});l.addProvider({provide:iG6,useFactory:_.Fu});I={};l.addProvider((I.provide=CIy,I.useFactory=function(w){return function(N){var L=L===void 0?{}:L;var e,k,X=(k=_.y((e=
N.endpoint)==null?void 0:e.commandMetadata,_.mK))==null?void 0:k.rootVe;if(X){var r,E;if(e=N.previousCsn||((E=_.y((r=N.endpoint)==null?void 0:r.commandMetadata,O7v))==null?void 0:E.parentCsn)){var D=D===void 0?{}:D;if(e!==_.oa(D.layer)||X!==xO1(D.layer))w6K(e,D.cttAuthInfo,D.layer||0),T3J(e,D.layer||0),r=D.layer||0,_.ow(B3N(r===void 0?0:r),X);L.parentCsn=e}N.endpoint&&e?CMZ(w,N.endpoint,L):_.xg(w,X,void 0,L);var Z;((Z=N.response)==null?0:Z.trackingParams)&&w.graftServerVe(N.response.trackingParams);
var S;((S=N.playerResponse)==null?0:S.trackingParams)&&w.graftServerVe(N.playerResponse.trackingParams);var p;((p=N.reelWatchSequenceResponse)==null?0:p.trackingParams)&&w.graftServerVe(N.reelWatchSequenceResponse.trackingParams)}}},I[mR]=[_.ef],I));
I={};l.addProvider((I.provide=zsr,I.useClass=XTh,I[mR]=[U2,_.oU],I));I={};l.addProvider((I.provide=m0,I.useClass=m0,I[mR]=[_.fa,_.oU],I));I={};l.addProvider((I.provide=CE,I.useClass=CE,I[mR]=[Kl,_.aw],I));l.addProvider({provide:_.J0u,useClass:WmV});I={};l.addProvider((I.provide=_.Eu,I.useClass=P$u,I[mR]=[_.J0u],I));l.addProvider({provide:_.J7,useClass:l7});l.addProvider({provide:_.oD,useClass:iA});I={};l.addProvider((I.provide=_.m$,I.useClass=c02,I[mR]=[_.m$],I));_.z("web_enable_voting_animation")&&
l.addProvider({provide:_.uj,useClass:ePE});l.addProvider({provide:tG,useClass:tG});l.addProvider({provide:hG,useClass:hG});l.addProvider({provide:cE,useClass:VQ});I={};l.addProvider((I.provide=qL,I.useClass=qL,I[mR]=[_.J7,cE],I));_.z("web_enable_feedback_endpoint_resolver")&&(I={},l.addProvider((I.provide=FN,I.useClass=FN,I[mR]=[kq,eZ],I)),l.addProvider({provide:eZ,useClass:bGu}));_.z("web_enable_feedback_endpoint_resolver_batch_2")&&(I={},l.addProvider((I.provide=zB,I.useClass=zB,I[mR]=[kq],I)),
I={},l.addProvider((I.provide=XN,I.useClass=XN,I[mR]=[eZ],I)));I={};l.addProvider((I.provide=WE,I.useClass=WE,I[mR]=[_.oD,cE],I));I={};l.addProvider((I.provide=Zu,I.useClass=Zu,I[mR]=[_.oD],I));I={};l.addProvider((I.provide=bz,I.useClass=bz,I[mR]=[_.FM,_.Eu],I));I={};l.addProvider((I.provide=QR,I.useClass=QR,I[mR]=[_.FM,_.ef],I));l.addProvider({provide:Bz,useClass:Bz});I={};l.addProvider((I.provide=lv,I.useClass=lv,I[mR]=[kq],I));I={};l.addProvider((I.provide=kI,I.useClass=kI,I[mR]=[kq],I));I={};
l.addProvider((I.provide=F$,I.useClass=F$,I[mR]=[_.FM,kq],I));I={};l.addProvider((I.provide=X$,I.useClass=X$,I[mR]=[kq],I));I={};l.addProvider((I.provide=zD,I.useClass=zD,I[mR]=[kq],I));I={};l.addProvider((I.provide=SZ,I.useClass=SZ,I[mR]=[_.Eu],I));I={};l.addProvider((I.provide=$I,I.useClass=$I,I[mR]=[_.ef],I));I={};l.addProvider((I.provide=YI,I.useClass=YI,I[mR]=[Hz],I));I={};l.addProvider((I.provide=L2,I.useClass=L2,I[mR]=[Hz],I));l.addProvider({provide:Nn,useClass:Nn});l.addProvider({provide:K2,
useClass:K2});l.addProvider({provide:n2,useClass:n2});I={};l.addProvider((I.provide=ML,I.useClass=ML,I[mR]=[_.Eu,_.aw],I));l.addProvider({provide:E2,useClass:E2});I={};l.addProvider((I.provide=Rs,I.useClass=Rs,I[mR]=[_.FM,_.Eu],I));l.addProvider({provide:PE,useClass:PE});I={};l.addProvider((I.provide=iz,I.useClass=iz,I[mR]=[kq,_.FM,_.m$],I));I={};l.addProvider((I.provide=fq,I.useClass=fq,I[mR]=[_.FM,_.aw],I));l.addProvider({provide:naa,useValue:Cut});l.addProvider({provide:LXW,useValue:Iu1});l.addProvider({provide:gL,
useClass:gL});I={};l.addProvider((I.provide=as,I.useClass=as,I[mR]=[kq],I));I={};l.addProvider((I.provide=Vj,I.useClass=Vj,I[mR]=[_.uj,_.aw],I));I={};l.addProvider((I.provide=yR,I.useClass=yR,I[mR]=[_.aw],I));l.addProvider({provide:Lq,useFactory:function(){return new Lq(_.v4())}});
l.addProvider({provide:kyc,useFactory:_.SD.getInstance});I={};l.addProvider((I.provide=os,I.useClass=os,I[mR]=[JG,kyc,_.aw],I));l.addProvider({provide:rL,useClass:rL});l.addProvider({provide:wL,useClass:wL});l.addProvider({provide:Kq,useClass:Kq});l.addProvider({provide:_.NL,useClass:_.NL});l.addProvider({provide:rO,useClass:rO});I={};l.addProvider((I.provide=vE,I.useClass=vE,I[mR]=[Kl],I));I={};l.addProvider((I.provide=O2,I.useClass=O2,I[mR]=[_.aw],I));_.z("web_enable_prefetching_videos_on_home")&&
(l.addProvider({provide:Oc,useClass:Oc}),l.addProvider({provide:wz,useClass:wz}));I={};l.addProvider((I.provide=tn,I.useClass=tn,I[mR]=[_.aw],I));l.addProvider({provide:jZ,useClass:jZ});I={};l.addProvider((I.provide=xI,I.useClass=xI,I[mR]=[_.FM,_.aw],I));I={};l.addProvider((I.provide=Yq,I.useClass=Yq,I[mR]=[_.aw],I));l.addProvider({provide:N2,useClass:N2});l.addProvider({provide:AG,useClass:AG});I={};l.addProvider((I.provide=pq,I.useClass=pq,I[mR]=[Kl,_.aw],I));I={};l.addProvider((I.provide=Jn,I.useClass=
Jn,I[mR]=[Kl,_.aw,_.FM],I));I={};l.addProvider((I.provide=oM,I.useClass=oM,I[mR]=[_.aw],I));I={};l.addProvider((I.provide=E$,I.useClass=E$,I[mR]=[_.aw,_.FM],I));I={};l.addProvider((I.provide=Cq,I.useClass=Cq,I[mR]=[_.fa],I));I={};l.addProvider((I.provide=uz,I.useClass=uz,I[mR]=[_.fa],I));l.addProvider({provide:IM,useClass:IM});l.addProvider({provide:TD,useClass:TD});l.addProvider({provide:e2,useClass:e2});_.z("kevlar_enable_mss_lazy_load")&&l.addProvider({provide:_.Ai,useClass:dlY});l.addProvider({provide:_.T4,
useClass:HG});l.addProvider({provide:aG,useFactory:function(){return _.WF.getInstance()}});
l.addProvider({provide:es6,useFactory:aMc});l.addProvider({provide:Hz,useFactory:function(){return _.tt.getInstance()}});
l.addProvider({provide:p7J,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});I={};l.addProvider((I.provide=_.al,I.useClass=_.al,I[mR]=[_.fa,_.aw,_.ef,es6,Hz,aG,p7J,U2],I));l.addProvider({provide:_.Mg3,useClass:qao});l.addProvider({provide:_.C4P,useClass:OGE});I={};l.addProvider((I.provide=Du,I.useClass=Du,I[mR]=[_.C4P],I));I={};l.addProvider((I.provide=_.fE,I.useFactory=function(w){return w.upliftCompletionResolver.promise},I[mR]=[zsr],I));
I=_.PO("IS_SHELL_LOAD")?"aa":"eocs";var H=_.PO("IS_SHELL_LOAD")?3:2;_.b1().parkOrScheduleJob(function(){t_E()},H,I);
_.b1().parkOrScheduleJob(function(){_.F().resolve(m0).start()},2,"eocs");
_.b1().parkOrScheduleJob(function(){k06()},2,"eocs");
_.b1().parkOrScheduleJob(function(){_.F().resolve(CE).start()},2,"eocs");
_.z("kevlar_debug_data_app_registration_ks")||xbf();l.addProvider({provide:_.Fp,useValue:new Jer(V.root)});l.addProvider({provide:QC,useValue:new SBT});l.addProvider({provide:_.QIV,useValue:new S92(V.root)});l.addProvider({provide:_.kV,useValue:new R7b});l.addProvider({provide:_.nb,useValue:new Yr(V.root)});l.addProvider({provide:QxB,useClass:IE});_.z("kevlar_network_sli_killswitch")||l.addProvider({provide:c6Y,useValue:JdE});l.addProvider({provide:EGu,useFactory:oyJ});_.z("web_bind_fetch")&&(I={},
l.addProvider((I.provide=J6g,I.useFactory=hWw,I[mR]=[_.Cs(EGu)],I)));_.z("web_bind_parse")&&(I={},l.addProvider((I.provide=oGP,I.useFactory=PI1,I[mR]=[_.Cs(EGu)],I)));_.z("web_bind_window_request")&&(I={},l.addProvider((I.provide=h1E,I.useFactory=Dm1,I[mR]=[_.Cs(EGu)],I)));I={};l.addProvider((I.provide=dxE,I.useFactory=u7K,I[mR]=[_.fE,kq,_.Mb],I));I={};l.addProvider((I.provide=$xE,I.useClass=hn,I[mR]=[dxE],I));l.addProvider({provide:GNE,useClass:zT6});l.addProvider({provide:BoQ,useClass:Ux6});I=[].concat(_.oI(cu));
_.z("web_continuation_response_processing")&&I.push(_.Ex);I.push(Tda);_.z("enable_share_panel_navigation_logging_fix_on_web")&&I.push(_.sRo);l.addProvider({provide:t$w,useValue:I});l.addProvider({provide:zCt,useClass:ToI});l.addProvider({provide:MNE,useClass:W_u});I={};l.addProvider((I.provide=eCc,I.useClass=Cwb,I[mR]=[Kl],I));_.r0.addLowPriorityJob(function(){ktc()});
I={};l.addProvider((I.provide=E3Z,I.useFactory=function(w){return function(N){var L,e=(L=_.y(N.commandMetadata,_.mK))==null?void 0:L.url;if(!e)throw new _.Yd("No URL for PBJ Command",N);e=N6t(e,{pbj:"1"});L=PJt(e,{})||{};L=Object.assign({},L,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.h6("STS").toString()});N=_.U_({command:JSON.stringify(N),session_token:_.h6("XSRF_TOKEN")});return w.fetch(e,{method:"POST",headers:L,body:N})}},I[mR]=[MNE],I));
I=[];I.push(l.resolve(BoQ));H={};H=(H.client_location=_.SD.getInstance(),H.consistency=_.PLW(),H.entities=l.resolve(GPB),H.response_received_commands=l.resolve(zCt),H.store=l.resolve(_.j4y),H.tokens=l.resolve(BoQ),H);if(_.z("web_shorts_prefetch_service_enabled")){var T=new bSV(l.resolve(_.nz));H.shorts_prefetch=T}H.adblock_detection=l.resolve(eCc);l.addProvider({provide:_.ca,useClass:_.ca});T=l.resolve(XvB);var x=[];_.z("PremiumClientSharedConfig__enable_att_context_processor")&&(l.addProvider({provide:nph,
useClass:B$E}),x.push(l.resolve(nph)));if(_.z("owl_pl_await")){var n={};l.addProvider((n.provide=XO2,n.useFactory=function(w){return new kY6(w)},n[mR]=[_.ca],n));
x.push(l.resolve(XO2))}nuv(T,l.resolve(MNE),l.resolve(GYr),H,l.resolve(_.nz),I,x,l.resolve($xE),l.resolve(GNE));l.addProvider({provide:_.FM,useValue:_.Zt.instance});_.z("start_client_gcf")&&l.addProvider({provide:Fv,useValue:NS3()});l.addProvider({provide:G06,useFactory:function(){return new G06(_.F().resolve(_.ca),_.tt.getInstance())}});
_.b1().parkOrScheduleJob(function(){EiY()},1,"eocs");
I={};l.addProvider((I.provide=g1,I.useClass=g1,I[mR]=[_.Mb,_.FM],I));l.addProvider({provide:_.pTE,useFactory:_.dz.getInstance});_.b1().parkOrScheduleJob(function(){_.F().resolve(g1).refresh()},0,"eocs");
JxE(Aqr.watchEndpointMap||{},T.reelWatchEndpointMap||{},V.injector.resolve(_.FM));l.addProvider({provide:oK,useValue:_.x6.instance});_.z("web_prs_testing_mode_killswitch")||(I=new _.OA(window.location.href),I.JSC$7896_queryData_.toString()!==""&&I.JSC$7896_queryData_.get("force_ad_encrypted")&&(_.x6.instance.forceWebFEForAdsTesting=!0));_.z("kevlar_signal_collection_killswitch")||(I={},l.addProvider((I.provide=YS2,I.useClass=YS2,I[mR]=[JG,iG6],I)),_.b1().parkOrScheduleJob(function(){_.F().resolve(YS2).record()},
1,"eocs"));
_.z("web_debug_handler_registration_killswitch")||_.b1().parkOrScheduleJob(function(){T1y("DOWNLOAD_PES",Cs1);_.z("offline_client_state_export_ks")||T1y("OFFLINE_CLIENT_STATE",uZw)},0,"eocs");
_.z("kevlar_prevent_polymer_dynamic_font_load")&&_.b1().parkOrScheduleJob(function(){var w=[_.TP(mSE),_.TP(isY)];w=_.U(w);for(var N=w.next();!N.done;N=w.next()){N=N.value;var L=document.createElement("link");_.lw(L,N,"stylesheet");document.head.appendChild(L)}},1,"eocs");
I=V.injector.resolve(_.FM);_.U3Q.instance=new _.U3Q(I);Pu1(ikY(new x32(I)));I={};V.injector.addProvider((I.provide=fO,I.useFactory=function(w){(w=w==null?void 0:w.getCurrentPage())?w=w.visibilityObserver:(K5b||(K5b=DoT()),w=K5b);return w},I[mR]=[_.Cs(_.pa)],I.skipCache=!0,I));
l.addProvider({provide:_.sH,useClass:FP});l.addProvider({provide:jy,useClass:C73});l.addProvider({provide:vSK,useValue:gHK});V.injector.addProvider({provide:q1o,useValue:EEY});l.addProvider({provide:bo0,useValue:O_W});l.addProvider({provide:_.DA,useValue:BGt});V=l.addProvider;ukE||(ukE=new A06);V.call(l,{provide:_.vig,useValue:ukE});l.addProvider({provide:_.Sz,useValue:_.h6("HTML_DIR")==="rtl"?"rtl":"ltr"});l.addProvider({provide:JHg,useClass:cH6});l.addProvider({provide:_.VI,useClass:TW});_.F().addProvider({provide:hP6,
useValue:wFY.concat(NTQ)});l.addProvider({provide:_.xS,useClass:_.xS});l.addProvider({provide:_.Ct6,useValue:new OsI});l.addProvider({provide:t6u,useClass:yHg});l.addProvider({provide:U$,useClass:U$});l.addProvider({provide:dO,useClass:dO});V={};l.addProvider((V.provide=s2,V.useClass=s2,V[mR]=[_.FM,_.Eu],V));l.addProvider({provide:GD,useClass:GD});l.addProvider({provide:phQ,useClass:qSP});l.addProvider({provide:j2,useClass:j2});l.addProvider({provide:H9i,useValue:DGW});l.addProvider({provide:_.MW,
useClass:tPb});_.z("enable_payments_purchase_manager")&&l.addProvider({provide:N$P,useClass:$3E});l.addProvider({provide:gGg,useFactory:function(){return function(w){return _.fpI(w)}}});
l.addProvider({provide:_.Il6,useClass:HSu});V={};l.addProvider((V.provide=yj,V.useClass=yj,V[mR]=[_.Il6],V));l.addProvider({provide:wO,useClass:wO});l.addProvider({provide:fgY,useValue:N4E});l.addProvider({provide:zAJ,useValue:myB});l.addProvider({provide:Ycg,useClass:bNb});l.addProvider({provide:aYE,useValue:C2r});V={};l.addProvider((V.provide=_.fYE,V.useClass=gdQ,V[mR]=[aYE],V));_.z("web_ephemeral_actions")&&(V={},l.addProvider((V.provide=_.n$,V.useClass=Ua,V[mR]=[_.oU,_.nb],V)));if(_.z("web_explore_hub_on_hover")||
_.z("web_client_explore_hub_on_hover"))V={},l.addProvider((V.provide=GB,V.useClass=GB,V[mR]=[_.FM,aG],V));l.addProvider({provide:bqc,useValue:Pz3})}},jVr);var L5V={},exE=(L5V.initialized={priority:10,callback:function(){if(!QwE){WcW();Sr3("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Hx(_.kB(Sr3,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.z("log_heartbeat_with_lifecycles")){var V={};g9.instance||(g9.instance=new g9);g9.instance.install((V.document_visible={callback:RWW,priority:10},V.document_hidden={callback:RWW,priority:10},V))}else _.Oh(document,"visibilitychange",RWW);QwE=!0}(V=_.oa())&&V!=="UNDEFINED_CSN"&&Ij1(V)}},L5V);var krY={},F5I=(krY.initialized={callback:function(V){var l=_.eU(232091),I=V.injector.resolve(_.ef);_.Ug(I,l);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?lyT()&&_.$g(I,l):(V=V.injector.resolve(gGg)("refresh_detector"))&&(V.get("first_tab_load")?_.$g(I,l):V.set("first_tab_load","1"))}},krY);var XFQ={},zxV=(XFQ.initialized={priority:10,callback:$g1},XFQ);var yFY={},ttP=(yFY.rendering={priority:8,callback:dgt},yFY);var rFQ={},Grr=(rFQ.rendering={priority:10,callback:t8J},rFQ.rendered={callback:yWt},rFQ),ElI={},JFY=(ElI.rendering={callback:t8J},ElI.rendered={callback:yWt},ElI);var olP=!1,hxP={},PxV=(hxP.initialized={priority:10,callback:function(){olP||(wUt({didPatch:function(V){V.el&&qKt(V.el,V.props)},
didUnmount:function(V){WZt(V.el)}}),olP=!0)}},hxP);var D4I=/^\/shorts\/?$/;_.ow("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(_.z("kevlar_enable_mss")){_.ZAJ(new a8J);var ZOr=!0,SZP,zW;ZOr=ZOr===void 0?!1:ZOr;SZP=SZP===void 0?!1:SZP;zW=zW===void 0?{}:zW;var Rx6=zW.cssRowKey||"",QVE=zW.combinedSignature||"";!Rx6&&window&&window._F_cssRowKey&&(Rx6=window._F_cssRowKey,!QVE&&window._F_combinedSignature&&(QVE=window._F_combinedSignature));if(Rx6&&typeof window._F_installCss!=="function")throw Error("xd");var cFY=zW.loaderClass||_.qO,W5r,bOu=Lug("base-js");W5r=_.Xj(bOu);var yQ=new cFY(W5r,Rx6,QVE,ZOr,SZP);zW.useCors&&(yQ.useCors_=
zW.useCors);zW.corsMode&&(yQ.corsMode_=zW.corsMode);zW.urlMaxLength&&(yQ.urlMaxLength=zW.urlMaxLength);zW.fetchPriority&&(yQ.fetchPriority=zW.fetchPriority);var qZQ=EX();qZQ.JSC$7918_loader_=yQ;qZQ.setBatchModeEnabled(!0)}
(function(){var V=document.querySelector("ytd-app");if(!V)throw Error("Hj");V=new $S({root:V,injector:_.F()});V.install(exE);var l={};V.install((l.initialized={priority:10,callback:y71},l));_.z("wp_lat_b")&&(l={},V.install((l.initialized={priority:10,callback:function(){GXc()}},l)));
l={};V.install((l.rendered={priority:0,callback:Fat},l));l={};V.install((l.rendered={priority:0,callback:function(){_.r0.addLowPriorityJob(function(){_.W2P>1&&(Nct(),eSf())},4E4)}},l));
V.install(rqY);V.install(F5I);V.install(PxV);XU3=dJo;$zT=qrt;Guy=Cdf;yOy=asy;_.z("ytwiz_enable_debug_component_props")&&Dzg();V.install(ZAE);V.install(kUI);V.install(yqr);V.install(niQ);V.install(Kmr);V.install(P2Q);V.install(YZr);_.z("kevlar_enable_mss_lazy_load")&&V.install(zxV);V.install(XxQ);if(!_.PO("IS_SHELL_LOAD")||_.z("kevlar_fetch_initial_data_promise_client")||_.z("sw_nav_preload_pbj")){var I=_.Bx(window.location.href);l=I&&I==="/watch";I=I&&I.match(D4I);l?V.install(JFY):I?V.install(ttP):
V.install(Grr)}else V.install(Y_g);V.install(EdI);_.z("web_enable_prefetching_videos_on_home")&&V.install(cqE);_.z("start_client_gcf")&&V.install(R1Y);V.install(HNY);(new FmW).increment("INSTALLED");V.install(Rm6);V.install(NmQ);V.transition("initialized")})();
_._ModuleManager_initialize=function(V,l){if(!_.ro){if(!_.GN)return;_.ZAJ(_.GN())}_.ro.setAllModuleInfoString(V,l)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/nmfa2d:h,n,o/syl:7,o/sym:g,h,q/CF909:n,r/Tm0L3c:r/L3n37:g,h,n,q/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','syl','syg','syf','syj','sym','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Jk=function(V,l,I,H,T){var x={};l&&(x[l]=I);H?x.errorType=H:T&&(x.errorReason=T);_.tF(V,x);_.rT()};
_.oE=function(V,l){_.Ahf(V,_.pW(l))};
_.hk=function(V){var l=_.b1();return _.oQJ(l,V,1)};
_.Ne({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 V=this.query;V&&(this.full||V[0]==="("||(V="("+V+")"),this._mq=window.matchMedia(V),this._add(),this.queryHandler(this._mq))},
queryHandler:function(V){this._setQueryMatches(V.matches)}});var iOr;var Vhb;var lUg=function(){};
_.B=lUg.prototype;_.B.addOwnKeyBinding=function(){};
_.B.removeOwnKeyBindings=function(){};
_.B.keyboardEventMatchesKeys=function(){};
_.B._collectKeyBindings=function(){};
_.B._prepKeyBindings=function(){};
_.B._addKeyBinding=function(){};
_.B._resetKeyEventListeners=function(){};
_.B._listenKeyEventListeners=function(){};
_.B._unlistenKeyEventListeners=function(){};
_.B._onKeyBindingEvent=function(){};
_.B._triggerKeyHandler=function(){};
_.B._tapHandler=function(){};
_.B._focusChanged=function(){};
_.B._detectKeyboardFocus=function(){};
_.B._userActivate=function(){};
_.B._upHandler=function(){};
_.B._spaceKeyDownHandler=function(){};
_.B._spaceKeyUpHandler=function(){};
_.B._asyncClick=function(){};
_.B._pressedChanged=function(){};
_.B._ariaActiveAttributeChanged=function(){};
_.B._activeChanged=function(){};
_.B._controlStateChanged=function(){};
_.B._changedButtonState=function(){};
_.B._focusBlurHandler=function(){};
_.B._disabledChanged=function(){};
_.B._changedControlState=function(){};
_.B._downHandler=function(){};
_.B.ensureRipple=function(){};
_.B.getRipple=function(){};
_.B.hasRipple=function(){};
_.B._noinkChanged=function(){};
_.B._focusedChanged=function(){};
_.B._createRipple=function(){};
_.B.registered=function(){};
_.B._invalidChanged=function(){};
_.B.hasValidator=function(){};
_.B.validate=function(){};
_.B._getValidity=function(){};
_.B._requiredChanged=function(){};
_.B._valueChanged=function(){};
_.B._checkedChanged=function(){};
_.B._buttonStateChanged=function(){};
_.B._setPressed=function(){};
_.B._setPointerDown=function(){};
_.B._setReceivedFocusFromKeyboard=function(){};
_.B._setFocused=function(){};
lUg=_.Ne({is:"tp-yt-paper-radio-button",_template:function(){if(Vhb!==void 0)return Vhb;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;iOr===void 0&&(iOr=document.createElement("template"));var H=iOr;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return Vhb=V},
behaviors:[_.QKZ],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(){_.Al(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var V=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),l=Math.floor(3*V);l%2!==V%2&&l++;this.updateStyles({"--paper-radio-button-ink-size":l+"px"})}})}});var IUP;var HCh;_.Ne({_template:function(){if(HCh!==void 0)return HCh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;IUP===void 0&&(IUP=document.createElement("template"));var H=IUP;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return HCh=V},
is:"tp-yt-paper-radio-group",behaviors:[_.CPN],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(V){var l=this._valueToItem(V);if(!l||!l.hasAttribute("disabled")){if(this.selected){l=this._valueToItem(this.selected);if(this.selected==V)if(this.allowEmptySelection)V="";else{l&&(l.checked=!0);return}l&&
(l.checked=!1)}_.JT.select.apply(this,[V]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(V){this._focusPrevious();V.preventDefault();this._activateFocusedItem()},
_onDownKey:function(V){this._focusNext();V.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(V){_.O6Z._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(V){_.O6Z._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.JT._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Pd._resetTabindices.apply(this,arguments);this.items.forEach(function(V){V.removeAttribute("aria-selected")},this)}});var Tur;_.yN("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Bu6=function(){return _.M.apply(this,arguments)||this};
_.t(Bu6,_.M);_.B=Bu6.prototype;_.B.computeHasPrimaryIcon=function(V){return!(!V.icon&&!V.thumbnail)};
_.B.computeHasSecondary=function(V){return!(!V.secondaryIcon&&!V.secondaryNotificationText)};
_.B.computeHideSecondaryString=function(V){return!_.z("disable_hide_empty_secondary_string")&&!V.secondaryNotificationText};
_.B.computeCompactLinkStyle=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.B.computeHasFitHeight=function(V){return V==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.B.isActiveEndpoint=function(V){return(V=this.get("commandMetadata.webCommandMetadata.url",V))?_.Bx(window.location.href)!=="/account_transfer_channel"&&_.Bx(window.location.href)!=="/gaia_link"&&_.Bx(window.location.href)!=="/channel_switcher"||V!=="/account"?_.Bx(window.location.href)===V:!0:!1};
_.B.onTap=function(){var V;((V=this.data)==null?0:V.serviceEndpoint)&&_.$B(this.hostElement,[this.data.serviceEndpoint])};
var PG=Bu6;PG.prototype.onTap=PG.prototype.onTap;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],PG.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.a("design:type",Boolean)],PG.prototype,"active",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.a("design:type",String)],PG.prototype,"compactLinkStyle",void 0);_.O([_.q({computed:"computeIcon_(data.icon)"}),_.a("design:type",Object)],PG.prototype,"icon",void 0);_.O([_.q({computed:"computeIcon_(data.secondaryIcon)"}),_.a("design:type",Object)],PG.prototype,"secondaryIcon",void 0);_.O([_.q({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],PG.prototype,"hasSecondary",void 0);
_.O([_.q({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],PG.prototype,"hideSecondaryString",void 0);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PG.prototype,"onTap",null);PG=_.O([_.A({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],PG);
_.u(PG,"ytd-compact-link-renderer",function(){if(Tur!==void 0)return Tur;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Tur=V},{mode:1});var xKr;_.yN("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var UKE=function(){var V=_.M.apply(this,arguments)||this;V.role="link";V.tabindex="0";V.actionMap=_.z("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 V};
_.t(UKE,_.M);_.B=UKE.prototype;_.B.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Pb()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.B.getCurrentTheme=function(){return _.Df()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Pb()};
_.B.onThemeSelected=function(V,l){var I=V||l?V:_.hv(),H=(I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.J7q(_.Bx(window.location.href));_.Xu(0,165,V);_.Xu(0,174,l);this.prefs.save();H&&_.xB(this.hostElement,"yt-dark-mode-toggled-action",[I]);_.xB(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.B.onTap=function(){this.data.serviceEndpoint&&_.$B(this.hostElement,[this.data.serviceEndpoint])};
_.B.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.B.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.B.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
var Dd=UKE;Dd.prototype.onTap=Dd.prototype.onTap;Dd.prototype.dataChanged=Dd.prototype.dataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Dd.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aR),_.a("design:type",Object)],Dd.prototype,"paperItemBehaviors",void 0);_.O([_.q(),_.a("design:type",Object)],Dd.prototype,"data",void 0);_.O([_.q({value:function(){return _.Fu()}}),
_.a("design:type",_.IC)],Dd.prototype,"prefs",void 0);_.O([_.q(),_.a("design:type",Object)],Dd.prototype,"label",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Dd.prototype,"role",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Dd.prototype,"tabindex",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dd.prototype,"dataChanged",null);
_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dd.prototype,"onTap",null);Dd=_.O([_.A({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Dd);
_.u(Dd,"ytd-toggle-theme-compact-link-renderer",function(){if(xKr!==void 0)return xKr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return xKr=V},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.ah=function(V,l,I){_.Zp(_.dhy)(void 0,V,l,I)};
_.f4=function(V){return function(l,I){var H=V||I.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(l,I,{get:function(){var T;return this.$?this.$[H]:(T=_.lf(this))==null?void 0:T.querySelector("#"+H)},
enumerable:!0,configurable:!0})}};_.gi=function(V){V=V===void 0?!1:V;_.XG.call(this);this.pubSub_=new _.nA(V);_.$w(this,this.pubSub_)};
_.Uk(_.gi,_.XG);_.gi.prototype.subscribe=function(V,l,I){return this.isDisposed()?0:this.pubSub_.subscribe(V,l,I)};
_.gi.prototype.unsubscribe=function(V,l,I){return this.isDisposed()?!1:this.pubSub_.unsubscribe(V,l,I)};
_.gi.prototype.unsubscribeByKey=function(V){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(V)};
_.gi.prototype.publish=function(V,l){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var a9g=function(){_.Jk("ypcRedeemFlowStarted")},f9I=function(V){_.Jk("ypcRedeemFlowFailed",void 0,void 0,void 0,V)},gHQ=function(V,l,I){l&&I&&(V.videos.forEach(function(H){H.videoId===l&&(H.itemId=I)}),V.recommendedVideos.forEach(function(H){H.videoId===l&&(H.itemId=I)}))};var m8Q;var i_2;/*

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
*/
_.Ne({_template:function(){if(i_2!==void 0)return i_2;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;m8Q===void 0&&(m8Q=document.createElement("template"));var H=m8Q;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return i_2=V},
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(V,l){var I=this._resolveSrc(V);I!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",V===""||l?this._setLoading(!1):(this._resolvedSrc=I,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 V=this.$.sizedImgDiv.style,l=this.$.placeholder.style;V.backgroundSize=l.backgroundSize=this.sizing;V.backgroundPosition=l.backgroundPosition=this.sizing?this.position:"";V.backgroundRepeat=l.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(V){V=_.VW(V,this.$.baseURIAnchor.href);V.length>=2&&V[0]==="/"&&V[1]!=="/"&&(V=(location.origin||location.protocol+"//"+location.host)+V);return V}});var VmQ;var lT6;_.Ne({_template:function(){if(lT6!==void 0)return lT6;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;VmQ===void 0&&(VmQ=document.createElement("template"));var H=VmQ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return lT6=V},
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(V){return V?"false":"true"},
_headingChanged:function(V){var l=this.getAttribute("heading"),I=this.getAttribute("aria-label");typeof I==="string"&&I!==l||this.setAttribute("aria-label",V)},
_computeHeadingClass:function(V){return V?" over-image":""},
_computeAnimated:function(V){return V}});var ITQ=new _.f("addRendererToItemSectionAction");var H1u;var TGE=function(){return _.M.apply(this,arguments)||this};
_.t(TGE,_.M);TGE.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var DM=TGE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],DM.prototype,"rendererBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],DM.prototype,"dismissibleItemBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],DM.prototype,"rendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],DM.prototype,"data",void 0);DM=_.O([_.A({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],DM);
_.u(DM,"ytd-comment-history-entry-renderer",function(){if(H1u!==void 0)return H1u;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return H1u=V},{mode:1});var BGB;_.yN("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.yN("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var xuE=function(){return _.M.apply(this,arguments)||this};
_.t(xuE,_.M);_.B=xuE.prototype;_.B.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B.onKeyUp=function(V){if(V.keyCode===13)this.onTap()};
_.B.onTap=function(){this.data.recordClickEndpoint&&_.F().resolve(_.aw).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var V=this.data.navigationEndpoint;V&&_.y(V,_.Pq)&&_.F().resolve(_.aw).resolveCommand(V,{form:{element:this.hostElement}})};
_.B.readChanged=function(){var V;_.fY(this.hostElement,"unread",!((V=this.data)==null?0:V.read))};
_.B.dataChanged=function(){this.data&&_.fY(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.B.computeThumbnailSize=function(){var V;return((V=this.data)==null?0:V.highPriorityNotification)?32:48};
_.B.getEndpointURL=function(V){return V&&!_.y(V,_.Pq)?this.componentBehavior.computeHref_(V):null};
_.B.getEndpointData=function(V){return V&&!_.y(V,_.Pq)?V:null};
var ZM=xuE;ZM.prototype.computeThumbnailSize=ZM.prototype.computeThumbnailSize;ZM.prototype.dataChanged=ZM.prototype.dataChanged;ZM.prototype.readChanged=ZM.prototype.readChanged;ZM.prototype.onKeyUp=ZM.prototype.onKeyUp;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ZM.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ZM.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ZM.prototype,"data",void 0);_.O([_.q({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.a("design:type",Number)],ZM.prototype,"thumbnailSize",void 0);_.O([_.W("keyup"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],ZM.prototype,"onKeyUp",null);
_.O([_.b("data.read"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZM.prototype,"readChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZM.prototype,"dataChanged",null);_.O([_.b("data.highPriorityNotification"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZM.prototype,"computeThumbnailSize",null);
ZM=_.O([_.A({is:"ytd-notification-renderer",disableElementRegistration:!0})],ZM);
_.u(ZM,"ytd-notification-renderer",function(){if(BGB!==void 0)return BGB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return BGB=V},{mode:1});var UuE;var nmE=function(){return _.M.apply(this,arguments)||this};
_.t(nmE,_.M);nmE.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"}}}};
nmE.prototype.computeActionButtonClass=function(V){return!V.actionButtons||V.actionButtons.length<=1?"single-button":V.description?"vertical-buttons":"horizontal-buttons"};
var SV=nmE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],SV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],SV.prototype,"data",void 0);SV=_.O([_.A({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],SV);
_.u(SV,"ytd-playlist-show-metadata-renderer",function(){if(UuE!==void 0)return UuE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return UuE=V},{mode:1});var $uE;_.yN("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var duE=function(){return _.M.apply(this,arguments)||this};
_.t(duE,_.M);var RP=duE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],RP.prototype,"data",void 0);RP=_.O([_.A({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],RP);
_.u(RP,"ytd-purchase-item-renderer",function(){if($uE!==void 0)return $uE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return $uE=V},{mode:1});var wPr;var NGP={};NGP.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(V){if(V)return V.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(V){if(V==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.yN("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var KNQ=function(){return _.M.apply(this,arguments)||this};
_.t(KNQ,_.M);KNQ.prototype.onYtNavigate=function(V){var l=this.openPopupBehavior.getNavigationEndpointPopupAction(V.detail.endpoint);l&&(V.stopPropagation(),this.openPopupBehavior.openPopup(l))};
var QF=KNQ;QF.prototype.onYtNavigate=QF.prototype.onYtNavigate;_.O([_.R(NGP.YtSimpleTextSectionBehavior),_.a("design:type",Object)],QF.prototype,"ytSimpleTextSectionBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],QF.prototype,"openPopupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],QF.prototype,"data",void 0);
_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],QF.prototype,"onYtNavigate",null);QF=_.O([_.A({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],QF);
_.u(QF,"ytd-simple-text-section-renderer",function(){if(wPr!==void 0)return wPr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return wPr=V},{mode:1});var jWV;_.yN("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Y8h=function(){return _.M.apply(this,arguments)||this};
_.t(Y8h,_.M);var LNu=Y8h;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],LNu.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],LNu.prototype,"data",void 0);LNu=_.O([_.A({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],LNu);
_.u(LNu,"ytd-unlimited-page-feature-info-renderer",function(){if(jWV!==void 0)return jWV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return jWV=V},{mode:1});var e4P;var ktb;var FNE=function(){return _.M.apply(this,arguments)||this};
_.t(FNE,_.M);FNE.prototype.dataChanged=function(){if(this.data){var V=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);V&&(V=_.sI(V,screen.width),this.hostElement.style.backgroundImage="url("+V+")")}};
var ct=FNE;ct.prototype.dataChanged=ct.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ct.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ct.prototype,"dataChanged",null);ct=_.O([_.A({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],ct);
_.u(ct,"ytd-post-redemption-section-renderer",function(){if(ktb!==void 0)return ktb;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return ktb=V},{mode:1});var XPI;var z4P=function(){return _.M.apply(this,arguments)||this};
_.t(z4P,_.M);z4P.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
var Wt=z4P;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Wt.prototype,"data",void 0);Wt=_.O([_.A({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Wt);
_.u(Wt,"ytd-ypc-post-redemption-renderer",function(){if(XPI!==void 0)return XPI;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return XPI=V},{mode:1});_.yN("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var yAr=function(){var V=_.M.apply(this,arguments)||this;V.MIN_CODE_LENGTH=12;V.MAX_CODE_LENGTH=24;return V};
_.t(yAr,_.M);_.B=yAr.prototype;_.B.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.B.created=function(){this.riskService=new _.Nf1;this.loadPaymentThenable=_.jP1(_.h6("YPC_MB_URL"))};
_.B.ready=function(){var V=this;this.code.addEventListener("keypress",function(l){V.onCodeInputKeypress(l)})};
_.B.dataChanged=function(){var V=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(l){l=_.U(l);for(var I=l.next();!I.done;I=l.next())I=I.value,I.type==="attributes"&&I.attributeName==="dark"&&V.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.B.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var V=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+V+")")}};
_.B.computeRedeemButton=function(V){(V=this.get("redeemButton.buttonRenderer",V))&&(V=Object.assign({},V,{serviceEndpoint:void 0}));return V};
_.B.onRedeemButtonTap=function(V){V.stopPropagation();a9g();this.redeemCode()};
_.B.redeemCode=function(){var V=this;this.isLoading=!0;var l=this.riskService.init();_.ER([l,this.loadPaymentThenable]).then(function(){var I=V.data.redeemButton.buttonRenderer.serviceEndpoint,H=_.KDg(),T=payments.business.integration.ClientTokenFactory.createClientToken(_.y(I,_.o6N).countryCode,H);H={c:V.code.value.trim(),rd:window.btoa(H),ctk:T};_.$B(V.hostElement,[I,H])},function(){V.showGenericError();
f9I("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Dp(Error("Ul"))})};
_.B.onYtServiceRequestCompleted=function(V){V.stopPropagation();this.isLoading=!1;var l,I;this.errorMessage=(l=V.detail)==null?void 0:(I=l.data)==null?void 0:I.errorMessage;var H,T;this.postRedemptionRenderer=(H=V.detail)==null?void 0:(T=H.data)==null?void 0:T.renderer;var x,n;if(V=(x=V.detail)==null?void 0:(n=x.data)==null?void 0:n.redirectEndpoint)this.isLoading=!0,_.B$(this.hostElement,"yt-navigate",{endpoint:V});this.errorMessage?f9I("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
V)&&_.Jk("ypcRedeemFlowSucceeded")};
_.B.onYtServiceRequestError=function(V){V.stopPropagation();this.isLoading=!1;if(V=this.get("detail.error.message",V))this.errorMessage=_.pW(V);f9I("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.B.onInvokeInstrumentManagerActionCompleted=function(V){V.stopPropagation();this.redeemCode()};
_.B.onInvokeInstrumentManagerActionError=function(V){V.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",V)){case "instrumentManagerLoadError":this.showGenericError();f9I("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();f9I("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Jk("ypcRedeemFlowCancelled")}};
_.B.onInput=function(){var V=this;_.Go(this,"onInput",function(){var l=V.code.value.trim();V.redeemButtonDisabled=l.length<V.MIN_CODE_LENGTH||l.length>V.MAX_CODE_LENGTH},200)};
_.B.onCodeInputKeypress=function(V){V.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(a9g(),this.redeemCode())};
_.B.computeImageUrl=function(V){return V?_.sI(V.thumbnails,600):null};
_.B.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
var bs=yAr;bs.prototype.onInvokeInstrumentManagerActionError=bs.prototype.onInvokeInstrumentManagerActionError;bs.prototype.onInvokeInstrumentManagerActionCompleted=bs.prototype.onInvokeInstrumentManagerActionCompleted;bs.prototype.onYtServiceRequestError=bs.prototype.onYtServiceRequestError;bs.prototype.onYtServiceRequestCompleted=bs.prototype.onYtServiceRequestCompleted;bs.prototype.dataChanged=bs.prototype.dataChanged;
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],bs.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],bs.prototype,"isLoading",void 0);_.O([_.q(),_.a("design:type",Boolean)],bs.prototype,"redeemButtonDisabled",void 0);
_.O([_.q(),_.a("design:type",Object)],bs.prototype,"errorMessage",void 0);_.O([_.q(),_.a("design:type",Object)],bs.prototype,"postRedemptionRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],bs.prototype,"observer",void 0);_.O([_.Ij("#code"),_.a("design:type",HTMLInputElement)],bs.prototype,"code",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bs.prototype,"dataChanged",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],bs.prototype,"onYtServiceRequestCompleted",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],bs.prototype,"onYtServiceRequestError",null);
_.O([_.W("yt-invoke-instrument-manager-action-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],bs.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.O([_.W("yt-invoke-instrument-manager-action-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],bs.prototype,"onInvokeInstrumentManagerActionError",null);bs=_.O([_.A({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],bs);
_.u(bs,"ytd-redeem-code-renderer",function(){if(e4P!==void 0)return e4P;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return e4P=V},{mode:1});var tmB;_.yN("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var rA2=function(){var V=_.M.apply(this,arguments)||this;V.businessEmailDisplayState="HIDE_SECTION";return V};
_.t(rA2,_.M);_.B=rA2.prototype;_.B.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}}}}}};
_.B.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"};
_.B.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.B.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Ra("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.B.onYtServiceRequestCompleted=function(V){var l;if((l=V.detail.data)==null?0:l.businessEmail)this.businessEmail=V.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=V.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=V.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.B.computeEmailHref=function(V){return"mailto:"+V};
_.B.computeSafeUrl=function(V){if(V)return _.S6(V)};
_.B.onBusinessEmailCaptchaSubmit=function(){var V;(V=this.data)!=null&&V.onBusinessEmailRevealClickCommand&&(V=this.JSC$18878_captchaTextarea.value)&&(V={recaptcha_response_token:V,channel_id:this.data.channelId},_.z("web_ytd_channel_about_metadata_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.onBusinessEmailRevealClickCommand,V]):_.F().resolve(_.aw).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},V,{element:this.hostElement})}))};
_.B.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.vI.Object.defineProperties(rA2.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 V,l;return!((V=this.data)==null||!V.primaryLinks)&&!((l=this.data)==null?0:l.links)&&this.data.primaryLinks.every(function(I){return I.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var V,l;return!((V=this.data)==null||!V.primaryLinks)&&!((l=this.data)==null?0:l.links)&&!this.shouldShowNewLinks}}});
var q1=rA2;q1.prototype.onYtServiceRequestCompleted=q1.prototype.onYtServiceRequestCompleted;q1.prototype.dataChanged=q1.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],q1.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],q1.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.Ij("#g-recaptcha-response"),_.a("design:type",HTMLTextAreaElement)],q1.prototype,"JSC$18878_captchaTextarea",void 0);_.O([_.q(),_.a("design:type",Object)],q1.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],q1.prototype,"businessEmailDisplayState",void 0);_.O([_.q(),_.a("design:type",String)],q1.prototype,"businessEmail",void 0);_.O([_.q(),_.a("design:type",String)],q1.prototype,"businessEmailErrorMessage",void 0);
_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],q1.prototype,"hideDetailsSection",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],q1.prototype,"dataChanged",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],q1.prototype,"shouldShowNewLinks",null);_.O([_.Q("data","shouldShowLinks"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],q1.prototype,"shouldShowLegacyLinks",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],q1.prototype,"onYtServiceRequestCompleted",null);q1=_.O([_.A({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],q1);
_.u(q1,"ytd-channel-about-metadata-renderer",function(){if(tmB!==void 0)return tmB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return tmB=V},{mode:1});var GtE;_.yN("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var EmE=function(){return _.M.apply(this,arguments)||this};
_.t(EmE,_.M);EmE.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
var M1=EmE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],M1.prototype,"data",void 0);M1=_.O([_.A({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],M1);
_.u(M1,"ytd-channel-featured-content-renderer",function(){if(GtE!==void 0)return GtE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return GtE=V},{mode:1});var JAP;_.yN("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var omB=function(){var V=_.M.apply(this,arguments)||this;V.roundContainer=!0;V.amsterdamEnabled=_.z("enable_desktop_amsterdam_info_panels");return V};
_.t(omB,_.M);_.B=omB.prototype;_.B.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.B.dataChanged=function(){this.imageWidth=this.imageHeight=24;var V=this.data;V.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!V.style&&V.image&&V.image.thumbnails.length&&(V=V.image.thumbnails[0],this.imageWidth=V.width||0,this.imageHeight=V.height||0)};
_.B.computeSource=function(V){return V.secondarySource?_.A5(V.secondarySource):_.A5(V.source)};
_.B.computeClarifyStyle=function(V){return V?V.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.B.isLargeStyle=function(V){return V==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.B.computeBackgroundStyle=function(V){return V?V.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.B.computeHasActionButton=function(V){return!!V.actionButton};
_.B.computeHasBottomSection=function(V){return!!V.ctaHasBottomSection};
_.B.computeIsSourceMissing=function(V){return V.ctaHasBottomSection===!1?!0:V&&this.computeSource(V)?!1:!0};
_.B.computeSecondaryEndpoint=function(V){return V.secondaryEndpoint||V.endpoint};
var sQ=omB;sQ.prototype.dataChanged=sQ.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],sQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],sQ.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Number)],sQ.prototype,"imageWidth",void 0);_.O([_.q(),_.a("design:type",Number)],sQ.prototype,"imageHeight",void 0);
_.O([_.q({computed:"computeSecondaryEndpoint(data)"}),_.a("design:type",Object)],sQ.prototype,"secondaryEndpoint",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.a("design:type",Boolean)],sQ.prototype,"hasActionButton",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.a("design:type",Boolean)],sQ.prototype,"hasBottomSection",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.a("design:type",Boolean)],sQ.prototype,"missingSource",void 0);_.O([_.q({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],sQ.prototype,"icon",void 0);_.O([_.q({computed:"computeIcon_(data.secondaryIcon)"}),_.a("design:type",String)],sQ.prototype,"secondaryIcon",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.a("design:type",String)],sQ.prototype,"clarifyStyle",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.a("design:type",String)],sQ.prototype,"backgroundStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],sQ.prototype,"roundContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],sQ.prototype,"amsterdamEnabled",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sQ.prototype,"dataChanged",null);
sQ=_.O([_.A({is:"ytd-clarification-renderer",disableElementRegistration:!0})],sQ);
_.u(sQ,"ytd-clarification-renderer",function(){if(JAP!==void 0)return JAP;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return JAP=V},{mode:1});var h46;var Puu;var DuE=function(){var V=_.M.apply(this,arguments)||this;V.amsterdamEnabled=_.z("enable_desktop_amsterdam_info_panels");return V};
_.t(DuE,_.M);_.B=DuE.prototype;_.B.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.B.computeIcon=function(V){return V?"yt-icons:"+V.toLowerCase():null};
_.B.computeUseContacts=function(V){return!!V.contacts&&V.contacts.length>0};
_.B.computePhoneContact=function(V){var l,I;return(l=V.contacts)==null?void 0:(I=l.find(function(H){var T;return(H==null?void 0:(T=H.icon)==null?void 0:T.iconType)==="PHONE"}))==null?void 0:I.actionText};
_.B.computeSmsContact=function(V){var l,I;return(l=V.contacts)==null?void 0:(I=l.find(function(H){var T;return(H==null?void 0:(T=H.icon)==null?void 0:T.iconType)==="SMS"}))==null?void 0:I.actionText};
var py=DuE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],py.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],py.prototype,"amsterdamEnabled",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.a("design:type",Boolean)],py.prototype,"useContacts",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.a("design:type",String)],py.prototype,"phoneContact",void 0);py=_.O([_.A({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],py);
_.u(py,"ytd-single-action-emergency-support-renderer",function(){if(Puu!==void 0)return Puu;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Puu=V},{mode:1});_.yN("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Z16=function(){var V=_.M.apply(this,arguments)||this;V.roundedContainer=!0;V.amsterdamEnabled=_.z("enable_desktop_amsterdam_info_panels");return V};
_.t(Z16,_.M);Z16.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
var AR=Z16;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],AR.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],AR.prototype,"roundedContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],AR.prototype,"amsterdamEnabled",void 0);
AR=_.O([_.A({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],AR);
_.u(AR,"ytd-emergency-onebox-renderer",function(){if(h46!==void 0)return h46;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return h46=V},{mode:1});var S8E;_.yN("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var R4E=function(){return _.M.apply(this,arguments)||this};
_.t(R4E,_.M);R4E.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
var us=R4E;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],us.prototype,"data",void 0);us=_.O([_.A({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],us);
_.u(us,"ytd-exploratory-results-renderer",function(){if(S8E!==void 0)return S8E;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return S8E=V},{mode:1});var QWB;_.yN("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var cAb=function(){var V=_.M.apply(this,arguments)||this;V.messageData=null;return V};
_.t(cAb,_.M);_.B=cAb.prototype;_.B.onServiceRequestCompleted=function(V,l){V=l.actions||[];l=0;for(var I=V.length;l<I;l++){var H=V[l],T=void 0,x=void 0;if((T=_.y(H,_.zj))==null?0:(x=T.item)==null?0:x.messageRenderer)this.messageData=_.y(H,_.zj).item.messageRenderer}};
_.B.dataChanged=function(){var V=this.data;this.hostElement.hidden=!1;_.fY(this.hostElement,"is-channel",V&&!V.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.B.computeThumbnailWidth=function(V){return V?126:56};
_.B.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.B.onSubmitTap=function(){var V=this.data,l=this.selectedResponseIndex;V!==void 0&&l!==void 0&&_.$B(this.hostElement,[V.responses[l].responseData])};
_.B.onDismissTap=function(){this.hostElement.hidden=!0;var V=this.data;V!==void 0&&_.$B(this.hostElement,[V.dismissalEndpoint])};
_.B.updateSelectedResponseIndexFromBinding=function(V){this.selectedResponseIndex=V.detail.value};
var vt=cAb;vt.prototype.onSelectedResponseIndexChange=vt.prototype.onSelectedResponseIndexChange;vt.prototype.dataChanged=vt.prototype.dataChanged;vt.prototype.onServiceRequestCompleted=vt.prototype.onServiceRequestCompleted;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],vt.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],vt.prototype,"messageData",void 0);
_.O([_.q(),_.a("design:type",Number)],vt.prototype,"selectedResponseIndex",void 0);_.O([_.Ij("#submit-button"),_.a("design:type",HTMLButtonElement)],vt.prototype,"submitButton",void 0);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],vt.prototype,"onServiceRequestCompleted",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vt.prototype,"dataChanged",null);
_.O([_.b("selectedResponseIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vt.prototype,"onSelectedResponseIndexChange",null);vt=_.O([_.A({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],vt);
_.u(vt,"ytd-feedback-elicitation-single-question-renderer",function(){if(QWB!==void 0)return QWB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return QWB=V},{mode:1});var WNb;var b12=function(){return _.M.apply(this,arguments)||this};
_.t(b12,_.M);b12.prototype.computeThumbnailWidth=function(V){return V?602:428};
b12.prototype.updateWideFromBinding=function(V){this.wide=V.detail.value};
var OQ=b12;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],OQ.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],OQ.prototype,"wide",void 0);OQ=_.O([_.A({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],OQ);
_.u(OQ,"ytd-newspaper-hero-video-renderer",function(){if(WNb!==void 0)return WNb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return WNb=V},{mode:1});var q8u;var Mmu=function(){return _.M.apply(this,arguments)||this};
_.t(Mmu,_.M);var sW2=Mmu;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],sW2.prototype,"rendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],sW2.prototype,"data",void 0);sW2=_.O([_.A({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],sW2);
_.u(sW2,"ytd-newspaper-mini-video-renderer",function(){if(q8u!==void 0)return q8u;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return q8u=V},{mode:1});var pP6;_.yN("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var AAV=function(){return _.M.apply(this,arguments)||this};
_.t(AAV,_.M);AAV.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
var Cy=AAV;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Cy.prototype,"data",void 0);Cy=_.O([_.A({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Cy);
_.u(Cy,"ytd-newspaper-renderer",function(){if(pP6!==void 0)return pP6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return pP6=V},{mode:1});var uDE;_.yN("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var vmI=function(){var V=_.M.apply(this,arguments)||this;V.isSegment=!1;V.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};V.nextContinuation={continuationType:"playlistVideoListContinuation"};return V};
_.t(vmI,_.M);_.B=vmI.prototype;_.B.attached=function(){_.F();var V;(V=_.F().resolve(_.Cs(_.m$)))!=null&&(V.playlistVideoListElement=this.hostElement)};
_.B.detached=function(){var V;(V=_.F().resolve(_.Cs(_.m$)))!=null&&(V.playlistVideoListElement=void 0);V=_.F().resolve(_.Cs(_.uj));_.z("web_enable_voting_animation")&&V&&(V.parentElem=void 0,V.videos=[],V.continuationsPresent=!1,V.showRefreshPill=!1)};
_.B.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"}}}}}};
_.B.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.B.dataChanged=function(){var V=_.F().resolve(_.Cs(_.uj));if(_.z("web_enable_voting_animation")&&this.data&&V){var l=_.h(this.hostElement).querySelector("#contents");l&&(V.parentElem=l);V.addVideos(this.data.contents)}_.eYN(this.ytReorderableBehavior)};
_.B.onRendererstamperFinished=function(){this.canReorder&&_.kWv(this.ytReorderableBehavior,_.h(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.B.onPlaylistReloading=function(){this.isReloading=!0};
_.B.onUpdateSetVideoId=function(V){if(V.detail&&this.data&&this.data.contents){var l=V.detail;V=this.data.contents.findIndex(function(T){var x;return((x=T.playlistVideoRenderer)==null?void 0:x.videoId)===l.videoId});
if(!(V<0)&&l.setVideoId&&(this.set("data.contents."+V+".playlistVideoRenderer.setVideoId",l.setVideoId),_.z("web_enable_voting_animation"))){var I;if(V=_.y((I=this.data.contents[V].playlistVideoRenderer)==null?void 0:I.engagementBar,_.WNc)){var H;(H=V.actions)==null||H.forEach(function(T){if(T=_.y(T,_.b1w))T.itemId=l.setVideoId})}(I=_.F().resolve(_.Cs(_.uj)))&&gHQ(I,l.videoId,l.setVideoId)}}};
_.B.computeContentsClass=function(V){return V?"reloading":""};
_.B.computeIsSortable=function(V,l){return V&&l>0&&!this.isSegment&&!_.z("shorts_in_playlists_web")};
_.B.computeIsEditable=function(V){return V};
_.B.computeCanReorder=function(V){return V};
_.B.handlePlaylistRemoveVideosAction=function(V){if(this.get("playlistRemoveVideosAction.setVideoIds",V)&&this.data&&this.data.contents){V=_.y(V,_.BYN).setVideoIds;for(var l=this.data.contents.length-1;l>=0;){var I=this.data.contents[l].playlistVideoRenderer;I&&I.setVideoId&&V.includes(I.setVideoId)&&this.splice("data.contents",l,1);l--}_.xB(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.B.updateIndices=function(){if(this.data&&this.data.contents)for(var V=0;V<this.data.contents.length;V++)this.set("data.contents."+V+".playlistVideoRenderer.index",_.pW(String(V+1)))};
_.B.handleDrop=function(V){V=V.currDragItem;var l=_.qq(V.parentNode.childNodes,V),I=this.data.contents.splice(Number(_.A5(V.data.index))-1,1)[0];this.data.contents.splice(l,0,I);l=l?this.get("contents."+(l-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();V=this.buildReorderServiceEndpoint(V.data.setVideoId,l);this.ytComponentBehavior.resolveCommand(V)};
_.B.buildReorderServiceEndpoint=function(V,l){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",V),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",l),this.data.onReorderEndpoint):null};
_.B.handleUpdatePlaylistAction=function(V){var l;(V=_.y((l=_.y(V,_.x_i))==null?void 0:l.updatedRenderer,_.kj3))&&this.canReorder!==V.canReorder&&this.set("data.canReorder",V.canReorder);V&&V.contents&&(this.set("data.contents",V.contents),this.isReloading=!1);V&&V.continuations&&this.set("data.continuations",V.continuations)};
_.B.handleAddRendererToItemSectionAction=function(V){var l,I=(l=_.y(V,ITQ))==null?void 0:l.renderer,H;I&&((H=_.y(V,ITQ))==null?void 0:H.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,I),V=_.F().resolve(_.Cs(_.uj)),_.z("web_enable_voting_animation")&&V&&(I&&(l=_.cAc(I))&&V.recommendedVideos.push({itemId:l,videoId:_.q81(I),voteCount:_.Mm1(I),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.B.isVotingEnabledOnPlaylist=function(V){if(!V)return!1;V=_.U(V);for(V=V.next();!V.done;V=V.next()){var l=void 0;return!!_.y((l=V.value.playlistVideoRenderer)==null?void 0:l.engagementBar,_.WNc)}return!1};
_.B.onAppendContinuationItemsActionFinished=function(){var V;this.isVotingEnabledOnPlaylist((V=this.data)==null?void 0:V.contents)&&(this.updateIndices(),V=_.F().resolve(_.Cs(_.uj)),_.z("web_enable_voting_animation")&&V&&this.data&&V.addVideos(this.data.contents))};
_.B.updateVideoData=function(V){if(V.detail&&this.data&&this.data.contents){var l=V.detail;V=l.toIdx;var I=l.itemId,H=l.newVoteCount,T=l.voteStatus;l=l.hideItem;var x,n,w=(x=this.data)==null?void 0:(n=x.contents)==null?void 0:n.findIndex(function(k){return _.cAc(k)===I});
if(!(w<0)){x=this.data.contents[w];var N;if((N=x.playlistVideoRenderer)==null?0:N.voteCount)x.playlistVideoRenderer.voteCount=H;var L;if(N=_.y((L=x.playlistVideoRenderer)==null?void 0:L.engagementBar,_.WNc)){var e;(e=N.actions)==null||e.forEach(function(k){(k=_.y(k,_.b1w))&&k.initialState&&(k.initialState.votes=H,k.initialState.status=T)})}this.data.contents.splice(w,1);
l||this.data.contents.splice(V,0,x);this.updateIndices()}}};
var aP=vmI;aP.prototype.updateVideoData=aP.prototype.updateVideoData;aP.prototype.onAppendContinuationItemsActionFinished=aP.prototype.onAppendContinuationItemsActionFinished;aP.prototype.onUpdateSetVideoId=aP.prototype.onUpdateSetVideoId;aP.prototype.onPlaylistReloading=aP.prototype.onPlaylistReloading;aP.prototype.onRendererstamperFinished=aP.prototype.onRendererstamperFinished;aP.prototype.dataChanged=aP.prototype.dataChanged;
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],aP.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Vi.YtNextContinuationBehavior),_.a("design:type",Object)],aP.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.R(_.XGo),_.a("design:type",Object)],aP.prototype,"ytReorderableBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],aP.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],aP.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],aP.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],aP.prototype,"isReloading",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],aP.prototype,"isSegment",void 0);_.O([_.q({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.a("design:type",Boolean)],aP.prototype,"isSortable",void 0);_.O([_.q({computed:"computeIsEditable(data.isEditable)"}),_.a("design:type",Boolean)],aP.prototype,"isEditable",void 0);_.O([_.q({computed:"computeCanReorder(data.canReorder)"}),_.a("design:type",Boolean)],aP.prototype,"canReorder",void 0);
_.O([_.q({value:101}),_.a("design:type",Number)],aP.prototype,"scrollMargin",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aP.prototype,"dataChanged",null);_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aP.prototype,"onRendererstamperFinished",null);
_.O([_.W("yt-playlist-reloading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aP.prototype,"onPlaylistReloading",null);_.O([_.W("yt-update-set-video-id"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],aP.prototype,"onUpdateSetVideoId",null);
_.O([_.W("yt-append-continuation-items-action-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aP.prototype,"onAppendContinuationItemsActionFinished",null);_.O([_.W("yt-update-video-data-voting-animation"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],aP.prototype,"updateVideoData",null);aP=_.O([_.A({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],aP);
_.u(aP,"ytd-playlist-video-list-renderer",function(){if(uDE!==void 0)return uDE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return uDE=V},{mode:_.Cm("kevlar_poly_si_batch_j047")?1:2});var O1I;var CuP=function(){return _.M.apply(this,arguments)||this};
_.t(CuP,_.M);CuP.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"}}}}};
CuP.prototype.onTextWrapperTap=function(V){var l=this.data&&this.data.navigationEndpoint;l&&!_.qi(_.b3(V),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.B$(this.hostElement,"yt-navigate",{endpoint:l})};
CuP.prototype.dataChanged=function(){var V=this.get("data.offerButton.buttonRenderer.serviceEndpoint");V&&V.commandMetadata&&_.y(V.commandMetadata,_.Jr)&&_.y(V.commandMetadata,_.Jr).fireAutomatically&&(_.z("web_ytd_movie_renderer_command_resolver_ks")?_.$B(this.hostElement,[V]):_.F().resolve(_.aw).resolveCommand(V,{form:{element:this.hostElement}}))};
var fy=CuP;fy.prototype.dataChanged=fy.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],fy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.sE),_.a("design:type",Object)],fy.prototype,"ytdLockupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],fy.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],fy.prototype,"useBiggerThumbs",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.m_("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],fy.prototype,"biggerThumbsStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],fy.prototype,"leftAligned",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fy.prototype,"dataChanged",null);fy=_.O([_.A({disableElementRegistration:!0,is:"ytd-movie-renderer"})],fy);
_.u(fy,"ytd-movie-renderer",function(){if(O1I!==void 0)return O1I;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return O1I=V},{mode:1});var aTh;var gf=function(){var V=_.M.apply(this,arguments)||this;V.rounded=!0;V.pageAttachedTo=void 0;V.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return V};
_.t(gf,_.M);gf.prototype.attached=function(){this.pageAttachedTo=_.F().resolve(_.pa).getCurrentPage();_.B$(this.hostElement,"yt-player-attached",this.player)};
gf.prototype.detached=function(){var V;if((V=this.pageAttachedTo)==null?0:V.hostElement)_.B$(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
gf.prototype.dataChanged=function(){var V;if((V=this.data)==null?0:V.videoId)V={video_id:this.data.videoId,autoplay:!0},!_.z("miniplayer_stop_channel_video_autoplay_killswitch")&&_.F().resolve(_.sH).isMiniplayerActive()&&(V.pause_at_start=!0,V.autoplay=!1),this.player.loadVideoWithPlayerVars(V)};
gf.prototype.handleSignalActionPausePlayer=function(){_.vu().pause()};
var mD=gf;mD.prototype.dataChanged=mD.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],mD.prototype,"data",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],mD.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],mD.prototype,"rounded",void 0);
_.O([_.Ij("#player"),_.a("design:type",Object)],mD.prototype,"player",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mD.prototype,"dataChanged",null);mD=_.O([_.A({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],mD);
_.u(mD,"ytd-channel-video-player-renderer",function(){if(aTh!==void 0)return aTh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return aTh=V},{mode:1});var fTQ;var gmh;var muu;var i1I=function(){var V=_.M.apply(this,arguments)||this;V.playing=!1;V.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.iN(V);V.active=!1;return V};
_.t(i1I,_.M);_.B=i1I.prototype;_.B.detached=function(){this.stop()};
_.B.play=function(){var V=this,l,I,H,T,x;return _.d(function(n){if(n.nextAddress==1)return V.active=!0,l=V.get("data.inlinePlaybackEndpoint.watchEndpoint"),I=l.videoId||V.data.videoId,H=l.startTimeSeconds||0,T=l.playerParams||null,_.z("kevlar_player_update_killswitch")?_.K(n,V.playerEl.update({args:{video_id:I,startSeconds:H,player_params:T}}),2):(V.playerEl.loadVideoWithPlayerVars({video_id:I,startSeconds:H,player_params:T,autoplay:!0}),n.jumpTo(2));if(n.nextAddress!=4)return _.K(n,V.playerEl.getPlayerPromise(),
4);x=n.yieldResult;x.unloadModule("annotations_module");x.addEventListener("onStateChange",function(w){V.onPlayerStateChange(w)});
_.FU(n)})};
_.B.onPlayerStateChange=function(V){if(this.active)switch(this.playing=V===1,V){case 1:_.B$(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.B$(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.B.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.B.resize=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,V.playerEl.getPlayerPromise(),2);l=I.yieldResult;l.setSize(NaN,NaN);_.FU(I)})};
var is=i1I;_.O([_.q(),_.a("design:type",Object)],is.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],is.prototype,"playing",void 0);_.O([_.q(),_.a("design:type",Object)],is.prototype,"playerId",void 0);_.O([_.Ij("#player"),_.a("design:type",Object)],is.prototype,"playerEl",void 0);is=_.O([_.A({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],is);
_.u(is,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(muu!==void 0)return muu;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return muu=V},{mode:1});var VVE;var lMb;var IMh=function(){var V=_.M.apply(this,arguments)||this;V.width=0;return V};
_.t(IMh,_.M);_.B=IMh.prototype;_.B.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.VP(this,this.onEnded));this.mp4El.addEventListener("error",_.VP(this,this.onError))};
_.B.detached=function(){this.videoEl.removeEventListener("ended",_.VP(this,this.onEnded));this.mp4El.removeEventListener("error",_.VP(this,this.onError))};
_.B.play=function(){var V=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var l=this.videoEl.play();l?l.then(function(){V.handleVideoStartPlaying()}).catch(function(){_.B$(V.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.B$(this.hostElement,"yt-video-thumbnail-not-playing")};
_.B.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.B.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.B.dataChanged=function(){var V;if((V=this.data)==null?0:V.thumbnailPlaceholder)V=_.sI(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+V+")";this.stop();this.autoplay&&this.play()};
_.B.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.B.onEnded=function(){this.stop();_.B$(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.B.onError=function(){_.B$(this.hostElement,"yt-video-thumbnail-error")};
_.B.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.B.getVideoThumbnail=function(V){if(V&&V.length)return V[0]};
var VU=IMh;VU.prototype.dataChanged=VU.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],VU.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],VU.prototype,"animatePlaceholderOnEntrance",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],VU.prototype,"autoplay",void 0);_.O([_.q({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.a("design:type",Object)],VU.prototype,"videoThumbnail",void 0);
_.O([_.q(),_.a("design:type",Boolean)],VU.prototype,"loop",void 0);_.O([_.q(),_.a("design:type",Boolean)],VU.prototype,"isVideoPlaying",void 0);_.O([_.q(),_.a("design:type",Object)],VU.prototype,"width",void 0);_.O([_.Ij("#mp4"),_.a("design:type",HTMLElement)],VU.prototype,"mp4El",void 0);_.O([_.Ij("#placeholder"),_.a("design:type",HTMLElement)],VU.prototype,"placeholderEl",void 0);_.O([_.Ij("#video"),_.a("design:type",HTMLVideoElement)],VU.prototype,"videoEl",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VU.prototype,"dataChanged",null);VU=_.O([_.Lm({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],VU);
_.u(VU,"yt-video-as-thumbnail-details",function(){if(lMb===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;VVE===void 0&&(VVE=document.createElement("template"));var H=VVE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);lMb=V}V=lMb;return V},{mode:2});var lI,Hyb=function(){var V=_.M.apply(this,arguments)||this;V.disableGridStateAware=!1;V.animationEnabled=_.z("enable_web_ketchup_hero_animation");V.transitioningOut=!1;V.narrow=!1;V.narrower=!1;V.isCarouselInFeed=!1;V.videoTimeoutJobId=0;V.panelTimeoutJobId=0;V.panelTimeoutJobStartMs=0;V.actionMap={"yt-window-resized":"onWindowResized"};return V};
_.t(Hyb,_.M);_.B=Hyb.prototype;_.B.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.B.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var V;this.player&&((V=this.data)==null?0:V.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.B.attached=function(){this.onWindowResized()};
_.B.detached=function(){this.clearTimeouts()};
_.B.onWindowResized=function(){this.updateSize()};
_.B.computePanelLayout=function(V){return V&&V.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.B.playVideo=function(){var V;this.video&&((V=this.data)==null?0:V.videoThumbnail)&&this.video.play();var l;this.player&&((l=this.data)==null?0:l.inlinePlaybackRenderer)&&this.player.play()};
_.B.stopVideo=function(){var V;this.video&&((V=this.data)==null?0:V.videoThumbnail)&&this.video.stop();var l;this.player&&((l=this.data)==null?0:l.inlinePlaybackRenderer)&&this.player.stop()};
_.B.transitionOut=function(){var V=this;this.transitioningOut=!0;return new Promise(function(l){var I=function(){_.h(V.hostElement).querySelector("#action-button").removeEventListener("animationend",I);_.r0.cancelJob(H);l();V.transitioningOut=!1};
var H=_.et(_.r0,I,1E3);_.h(V.hostElement).querySelector("#action-button").addEventListener("animationend",I);V.player&&(V.player.playing=!1)})};
_.B.computeMetadataOrder=function(V){return V&&V.metadataOrder&&V.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?V.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.B.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.B.computeAvatarSize=function(V){return V&&V.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.B.onContentClick=function(V){if(!_.qi(_.b3(V),this.hostElement,["A".toString(),"BUTTON".toString()])){var l;if((l=this.data)==null?0:l.navigationEndpoint){var I;this.componentBehavior.resolveCommand((I=this.data)==null?void 0:I.navigationEndpoint)}}};
_.B.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.B.setBackgroundImage=function(V){if(V=this.getBackgroundImageUrl(V))_.h(this.hostElement).querySelector("#hero").style.backgroundImage="url("+V+")"};
_.B.setScrimLayer=function(V){var l=this.getScrimLayerColorStops(V);V=((V==null?void 0:V.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(V=180);_.h6("HTML_DIR")==="rtl"&&(V=-V);l&&(_.h(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+V+"deg, "+l+")")};
_.B.isNarrower=function(){return this.hostElement.clientWidth<lI.NARROW_VERSION_SIZE};
_.B.getScrimLayerColorStops=function(){var V,l=(V=this.data)==null?void 0:V.scrimColorValues;if(!l)return null;if(l.length===1)return V=_.rP(l[0]),V+" 0%, "+V+" 100%";if(l.length===3){var I=[0,72,98];return l.map(function(H,T){return _.rP(H)+" "+I[T]+"%"}).join(",")}return null};
_.B.getBackgroundImageUrl=function(V){return V&&V.largeFormFactorBackgroundThumbnail?_.sI((V.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||V.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.B.onPlaying=function(){this.startVideoTimeout()};
_.B.onEnded=function(){this.rotate()};
_.B.startPanelTimeout=function(){var V=this;if(!this.panelTimeoutJobId){var l=this.get("data.minPanelDisplayDurationMs");l&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.et(_.r0,function(){V.rotate()},l))}};
_.B.startVideoTimeout=function(){var V=this;if(!this.videoTimeoutJobId){_.r0.cancelJob(this.panelTimeoutJobId);var l=Date.now()-this.panelTimeoutJobStartMs;l=Math.max(0,this.get("data.minPanelDisplayDurationMs")-l);l=Math.max(this.get("data.minVideoPlayDurationMs")||0,l);this.videoTimeoutJobId=_.et(_.r0,function(){V.rotate()},l)}};
_.B.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.r0.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.r0.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.B.rotate=function(){this.clearTimeouts();_.B$(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.vI.Object.defineProperties(Hyb.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.h(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.h(this.hostElement).querySelector("#video")}}});
_.vI.Object.defineProperties(Hyb,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
var Ib=lI=Hyb;lI.prototype.onEnded=lI.prototype.onEnded;lI.prototype.onPlaying=lI.prototype.onPlaying;lI.prototype.dataChanged=lI.prototype.dataChanged;_.O([_.R(_.c0),_.a("design:type",Object)],Ib.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Ib.prototype,"componentBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],Ib.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.R(_.ghY),_.a("design:type",Object)],Ib.prototype,"ytBooleanLogicBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Ib.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ib.prototype,"disableGridStateAware",void 0);_.O([_.q(),_.a("design:type",Object)],Ib.prototype,"data",void 0);_.O([_.q({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.a("design:type",String)],Ib.prototype,"panelLayout",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ib.prototype,"animationEnabled",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ib.prototype,"transitioningOut",void 0);
_.O([_.q({computed:"computeMetadataOrder(data)"}),_.a("design:type",Boolean)],Ib.prototype,"metadataOrder",void 0);_.O([_.q({computed:"computeByline(data)"}),_.a("design:type",Object)],Ib.prototype,"byline",void 0);_.O([_.q({computed:"computeAvatarSize(data)"}),_.a("design:type",Number)],Ib.prototype,"avatarSize",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ib.prototype,"narrow",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ib.prototype,"narrower",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ib.prototype,"layoutStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ib.prototype,"isCarouselInFeed",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ib.prototype,"dataChanged",null);_.O([_.W("yt-default-promo-panel-renderer-playing"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ib.prototype,"onPlaying",null);
_.O([_.W("yt-default-promo-panel-renderer-ended"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ib.prototype,"onEnded",null);Ib=lI=_.O([_.A({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Ib);
_.u(Ib,"ytd-default-promo-panel-renderer",function(){if(gmh!==void 0)return gmh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return gmh=V},{mode:1});_.yN("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Tfu=function(){var V=_.M.apply(this,arguments)||this;V.narrower=!1;V.dotMenuVisible=!1;V.paginationThumbnailsVisible=!1;V.active=!0;V.disableGridStateAware=!1;V.actionMap={"yt-window-resized":"onWindowResized"};return V};
_.t(Tfu,_.M);_.B=Tfu.prototype;_.B.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]]"}}}}}};
_.B.attached=function(){this.onWindowResized()};
_.B.detached=function(){this.jobId&&_.r0.cancelJob(this.jobId);this.updateSizeJobId&&_.r0.cancelJob(this.updateSizeJobId)};
_.B.onWindowResized=function(){this.updateSize()};
_.B.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.B.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.B.setCarouselItem=function(V){V>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.r0.cancelJob(this.jobId);var l=this.getCurrentPanelElement();l&&l.stopVideo();this.currentItemIndex=V%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(l||(l=this.getCurrentPanelElement()),l.playVideo()):this.startRotationJob()};
_.B.scrollThumbnails=function(V){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var l=this.getCurrentPaginationElement();if(l){var I=_.h(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?I.style.transform="translateX(0)":(l=l.offsetWidth+8,I.style.transform="translateX(-"+l*(V-Math.ceil(Math.floor(this.overlay.offsetWidth/l)/2)+1)+"px)")}}};
_.B.onDataChanged=function(){var V=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.t9(_.r0,function(){V.getCurrentPanelElement().updateSize();V.updateSize()}))};
_.B.getCurrentPanelElement=function(){return _.h(_.h(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.B.getCurrentPaginationElement=function(){return _.h(_.h(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.B.getNavigationClass=function(V,l){return V===l?"selected":""};
_.B.getNavigationDurationStyle=function(V){return"animation-duration:"+(this.get("data.carouselItems."+V+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.B.onNavigationTap=function(V){var l=this,I=V.model.index;I!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){l.setCarouselItem(I)}),this.autorotateActive=!1)};
_.B.onVideoThumbnailEnded=function(){var V=this;if(this.shouldRotate()){var l=this.getCurrentPaginationElement();l&&(l.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){l.classList.remove("finished");V.setNextCarouselItem()}))}};
_.B.onVideoThumbnailError=function(){this.startRotationJob()};
_.B.onVideoNotPlaying=function(){this.startRotationJob()};
_.B.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.B.startRotationJob=function(){var V=this;_.r0.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.r0.addLowPriorityJob(function(){V.getCurrentPanelElement().transitionOut().then(function(){V.setNextCarouselItem()})},this.rotationTimeout))};
_.B.computeDotMenuVisible=function(V,l){return!!V&&!!V.carouselItems&&V.carouselItems.length>1&&!V.paginationThumbnails||!!l};
_.B.computePaginationThumbnailsVisible=function(V,l){var I,H;return((H=V==null?void 0:(I=V.paginationThumbnails)==null?void 0:I.length)!=null?H:0)>1&&!l};
_.B.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.B.computePaginatorAlignment=function(V){return(V==null?void 0:V.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.B.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.B.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.B.isNarrower=function(V){return(V!=null?V:0)<Ib.NARROW_VERSION_SIZE};
var HR=Tfu;HR.prototype.activeChanged=HR.prototype.activeChanged;HR.prototype.onVideoNotPlaying=HR.prototype.onVideoNotPlaying;HR.prototype.onVideoThumbnailError=HR.prototype.onVideoThumbnailError;HR.prototype.onVideoThumbnailEnded=HR.prototype.onVideoThumbnailEnded;HR.prototype.onDataChanged=HR.prototype.onDataChanged;_.O([_.R(_.c0),_.a("design:type",Object)],HR.prototype,"ytdGridStateAwareBehavior",void 0);
_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],HR.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],HR.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],HR.prototype,"currentItem",void 0);
_.O([_.q(),_.a("design:type",Number)],HR.prototype,"currentItemIndex",void 0);_.O([_.q(),_.a("design:type",Number)],HR.prototype,"rotationTimeout",void 0);_.O([_.q(),_.a("design:type",Number)],HR.prototype,"loopCount",void 0);_.O([_.q({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.a("design:type",String)],HR.prototype,"paginatorAlignment",void 0);_.O([_.q(),_.a("design:type",Number)],HR.prototype,"jobId",void 0);
_.O([_.q(),_.a("design:type",Number)],HR.prototype,"updateSizeJobId",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],HR.prototype,"isCarouselInFeed",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],HR.prototype,"narrower",void 0);_.O([_.q({computed:"computeDotMenuVisible(data, narrower)"}),_.a("design:type",Object)],HR.prototype,"dotMenuVisible",void 0);
_.O([_.q({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.a("design:type",Object)],HR.prototype,"paginationThumbnailsVisible",void 0);_.O([_.q({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.a("design:type",String)],HR.prototype,"layoutType",void 0);_.O([_.q({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],HR.prototype,"autorotateActive",void 0);_.O([_.q(),_.a("design:type",Object)],HR.prototype,"active",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],HR.prototype,"disableGridStateAware",void 0);_.O([_.Ij("#overlay"),_.a("design:type",HTMLElement)],HR.prototype,"overlay",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HR.prototype,"onDataChanged",null);
_.O([_.W("yt-video-thumbnail-ended"),_.W("yt-default-promo-panel-renderer-rotate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HR.prototype,"onVideoThumbnailEnded",null);_.O([_.W("yt-video-thumbnail-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HR.prototype,"onVideoThumbnailError",null);
_.O([_.W("yt-video-thumbnail-not-playing"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HR.prototype,"onVideoNotPlaying",null);_.O([_.xs("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HR.prototype,"activeChanged",null);HR=_.O([_.A({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],HR);
_.u(HR,"ytd-carousel-item-renderer",function(){if(fTQ!==void 0)return fTQ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return fTQ=V},{mode:2});var Bfh;var x1b;var U1E;var n8h;var $1u=function(){var V=_.M.apply(this,arguments)||this;V.originalQuery=null;V.originalEndpoint=null;return V};
_.t($1u,_.M);$1u.prototype.computeShowOriginalQueryWithoutEndpoint_=function(V,l){return!(!V||l)};
var TX=$1u;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],TX.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],TX.prototype,"correctedText",void 0);_.O([_.q(),_.a("design:type",Object)],TX.prototype,"correctedQuery",void 0);_.O([_.q(),_.a("design:type",Object)],TX.prototype,"correctedEndpoint",void 0);_.O([_.q(),_.a("design:type",Object)],TX.prototype,"originalText",void 0);_.O([_.q(),_.a("design:type",Object)],TX.prototype,"originalQuery",void 0);
_.O([_.q(),_.a("design:type",Object)],TX.prototype,"originalEndpoint",void 0);_.O([_.q({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.a("design:type",Boolean)],TX.prototype,"showOriginalQueryWithoutEndpoint",void 0);TX=_.O([_.Lm({is:"yt-search-query-correction",disableElementRegistration:!0})],TX);
_.u(TX,"yt-search-query-correction",function(){if(n8h===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;U1E===void 0&&(U1E=document.createElement("template"));var H=U1E;I.call(l,H.content.cloneNode(!0),V.content.firstChild);n8h=V}V=n8h;return V},{mode:2});_.yN("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var d1h=function(){return _.M.apply(this,arguments)||this};
_.t(d1h,_.M);var wt2=d1h;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],wt2.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],wt2.prototype,"data",void 0);wt2=_.O([_.Lm({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],wt2);
_.u(wt2,"yt-did-you-mean-renderer",function(){if(x1b===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Bfh===void 0&&(Bfh=document.createElement("template"));var H=Bfh;I.call(l,H.content.cloneNode(!0),V.content.firstChild);x1b=V}V=x1b;return V},{mode:2});var NfI;var KDr;_.yN("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var jPu=function(){return _.M.apply(this,arguments)||this};
_.t(jPu,_.M);var YQ6=jPu;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],YQ6.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],YQ6.prototype,"data",void 0);YQ6=_.O([_.Lm({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],YQ6);
_.u(YQ6,"yt-including-results-for-renderer",function(){if(KDr===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;NfI===void 0&&(NfI=document.createElement("template"));var H=NfI;I.call(l,H.content.cloneNode(!0),V.content.firstChild);KDr=V}V=KDr;return V},{mode:2});var LDY;var e_P;_.yN("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var kJE=function(){return _.M.apply(this,arguments)||this};
_.t(kJE,_.M);kJE.prototype.computeExtraClasses_=function(V,l){var I="";V&&(I+=" "+V.toLowerCase().replace(/_/g,"-"));l&&(I+=" "+l.toLowerCase().replace(/_/g,"-"));return I};
kJE.prototype.computeUrlImg_=function(){var V=this.data;V.image&&(_.h(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.sI(V.image.thumbnails,Number.MAX_VALUE)+")")};
var BR=kJE;BR.prototype.computeUrlImg_=BR.prototype.computeUrlImg_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],BR.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BR.prototype,"computeUrlImg_",null);BR=_.O([_.Lm({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],BR);
_.u(BR,"yt-music-pass-feature-info-renderer",function(){if(e_P===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;LDY===void 0&&(LDY=document.createElement("template"));var H=LDY;I.call(l,H.content.cloneNode(!0),V.content.firstChild);e_P=V}V=e_P;return V},{mode:2});var FD2;var Xtb;_.yN("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var z_Q=function(){return _.M.apply(this,arguments)||this};
_.t(z_Q,_.M);var yRr=z_Q;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yRr.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yRr.prototype,"data",void 0);yRr=_.O([_.Lm({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],yRr);
_.u(yRr,"yt-no-results-found-showing-results-for-renderer",function(){if(Xtb===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;FD2===void 0&&(FD2=document.createElement("template"));var H=FD2;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Xtb=V}V=Xtb;return V},{mode:2});var tVB;var rRI;_.yN("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var GJE=function(){return _.M.apply(this,arguments)||this};
_.t(GJE,_.M);var E82=GJE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],E82.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],E82.prototype,"data",void 0);E82=_.O([_.Lm({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],E82);
_.u(E82,"yt-results-without-quotes-renderer",function(){if(rRI===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;tVB===void 0&&(tVB=document.createElement("template"));var H=tVB;I.call(l,H.content.cloneNode(!0),V.content.firstChild);rRI=V}V=rRI;return V},{mode:2});var JRr;var o8E;_.yN("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var h_E=function(){return _.M.apply(this,arguments)||this};
_.t(h_E,_.M);var PsB=h_E;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],PsB.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],PsB.prototype,"data",void 0);PsB=_.O([_.Lm({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],PsB);
_.u(PsB,"yt-search-no-results-renderer",function(){if(o8E===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;JRr===void 0&&(JRr=document.createElement("template"));var H=JRr;I.call(l,H.content.cloneNode(!0),V.content.firstChild);o8E=V}V=o8E;return V},{mode:2});var D1Q;var ZyV;_.yN("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var SQB=function(){return _.M.apply(this,arguments)||this};
_.t(SQB,_.M);var R_B=SQB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],R_B.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],R_B.prototype,"data",void 0);R_B=_.O([_.Lm({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],R_B);
_.u(R_B,"yt-showing-results-for-renderer",function(){if(ZyV===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;D1Q===void 0&&(D1Q=document.createElement("template"));var H=D1Q;I.call(l,H.content.cloneNode(!0),V.content.firstChild);ZyV=V}V=ZyV;return V},{mode:2});var QPV;var cR2;var WDu;var byY;var qQ6=function(){var V=_.M.apply(this,arguments)||this;V.answerExpanded=!1;return V};
_.t(qQ6,_.M);qQ6.prototype.toggleAnswer_=function(V){var l=_.qv(V);l&&l.classList.contains("yt-simple-endpoint")||(V.preventDefault(),V.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
var xy=qQ6;xy.prototype.toggleAnswer_=xy.prototype.toggleAnswer_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],xy.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xy.prototype,"answerExpanded",void 0);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],xy.prototype,"toggleAnswer_",null);
xy=_.O([_.Lm({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],xy);
_.u(xy,"yt-generic-faq-question-renderer",function(){if(byY===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;WDu===void 0&&(WDu=document.createElement("template"));var H=WDu;I.call(l,H.content.cloneNode(!0),V.content.firstChild);byY=V}V=byY;return V},{mode:2});_.yN("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var MVE=function(){return _.M.apply(this,arguments)||this};
_.t(MVE,_.M);MVE.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
var Ur=MVE;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ur.prototype,"data",void 0);Ur=_.O([_.Lm({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Ur);
_.u(Ur,"yt-faq-section-renderer",function(){if(cR2===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;QPV===void 0&&(QPV=document.createElement("template"));var H=QPV;I.call(l,H.content.cloneNode(!0),V.content.firstChild);cR2=V}V=cR2;return V},{mode:2});var sPh;var pth;_.yN("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var ARB=function(){return _.M.apply(this,arguments)||this};
_.t(ARB,_.M);
ARB.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
var nc=ARB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],nc.prototype,"data",void 0);nc=_.O([_.Lm({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],nc);
_.u(nc,"yt-offer-item-expanded-renderer",function(){if(pth===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;sPh===void 0&&(sPh=document.createElement("template"));var H=sPh;I.call(l,H.content.cloneNode(!0),V.content.firstChild);pth=V}V=pth;return V},{mode:2});var uZ2;var v8Y;_.yN("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var OyY=function(){return _.M.apply(this,arguments)||this};
_.t(OyY,_.M);
OyY.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"}}}}};
OyY.prototype.computeFullWidthMode=function(V){return!(!V||!V.fullWidthMode)};
OyY.prototype.computeBorderlessMode=function(V){return!(!V||!V.borderlessMode)};
var $y=OyY;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$y.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.a("design:type",Boolean)],$y.prototype,"fullWidthMode",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.a("design:type",Boolean)],$y.prototype,"borderlessMode",void 0);$y=_.O([_.Lm({is:"yt-offer-item-renderer",disableElementRegistration:!0})],$y);
_.u($y,"yt-offer-item-renderer",function(){if(v8Y===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;uZ2===void 0&&(uZ2=document.createElement("template"));var H=uZ2;I.call(l,H.content.cloneNode(!0),V.content.firstChild);v8Y=V}V=v8Y;return V},{mode:2});var Csu;var aMb;_.yN("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var fMr=function(){return _.M.apply(this,arguments)||this};
_.t(fMr,_.M);fMr.prototype.computeAriaLevel_=function(V){return this.getLevelID_(V)};
fMr.prototype.getLevelID_=function(V){return(V=V.match(/[0-9]+$/))&&V.length==1?V[0]:"1"};
var d8=fMr;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],d8.prototype,"data",void 0);_.O([_.q({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.a("design:type",String)],d8.prototype,"ariaLevel",void 0);_.O([_.q({value:"heading",reflectToAttribute:!0}),_.a("design:type",String)],d8.prototype,"role",void 0);
_.O([_.q({value:-1,reflectToAttribute:!0}),_.a("design:type",Number)],d8.prototype,"tabindex",void 0);d8=_.O([_.Lm({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],d8);
_.u(d8,"yt-subscription-product-header-renderer",function(){if(aMb===void 0){var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Csu===void 0&&(Csu=document.createElement("template"));var H=Csu;I.call(l,H.content.cloneNode(!0),V.content.firstChild);aMb=V}V=aMb;return V},{mode:2});var g8b;var m1b;_.yN("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var iyE=function(){return _.M.apply(this,arguments)||this};
_.t(iyE,_.M);iyE.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:_.tU("menuRenderer"),events:!0}}};
iyE.prototype.onStampFinished_=function(){_.h(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
var w8=iyE;w8.prototype.onStampFinished_=w8.prototype.onStampFinished_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],w8.prototype,"data",void 0);
_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],w8.prototype,"onStampFinished_",null);w8=_.O([_.Lm({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],w8);
_.u(w8,"yt-subscription-product-renderer",function(){if(m1b===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;g8b===void 0&&(g8b=document.createElement("template"));var H=g8b;I.call(l,H.content.cloneNode(!0),V.content.firstChild);m1b=V}V=m1b;return V},{mode:2});var VR6;var lGP;_.yN("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var IGP=function(){return _.M.apply(this,arguments)||this};
_.t(IGP,_.M);IGP.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
IGP.prototype.imageScrimColorValuesChanged_=function(){var V,l=(V=this.data)==null?void 0:V.imageScrimColorValues;_.h(this.hostElement).querySelector("#scrim").style.backgroundColor=l?_.rP(l[0]):"transparent"};
var Nm=IGP;Nm.prototype.imageScrimColorValuesChanged_=Nm.prototype.imageScrimColorValuesChanged_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Nm.prototype,"data",void 0);
_.O([_.b("data.imageScrimColorValues"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nm.prototype,"imageScrimColorValuesChanged_",null);Nm=_.O([_.Lm({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Nm);
_.u(Nm,"yt-subscription-product-upsell-offer-renderer",function(){if(lGP===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;VR6===void 0&&(VR6=document.createElement("template"));var H=VR6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);lGP=V}V=lGP;return V},{mode:2});var HcQ;var T8E;var B8E;var xmh;var UmE;var nyP;var $mr=function(){return _.M.apply(this,arguments)||this};
_.t($mr,_.M);$mr.prototype.onYtServiceRequestError_=function(V){_.oE(this.hostElement,V.detail.error.message)};
var Kc=$mr;Kc.prototype.onYtServiceRequestError_=Kc.prototype.onYtServiceRequestError_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Kc.prototype,"data",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Kc.prototype,"collapsible",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Kc.prototype,"isManageRed",void 0);
_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Kc.prototype,"onYtServiceRequestError_",null);Kc=_.O([_.Lm({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Kc);
_.u(Kc,"yt-single-ypc-offer-renderer",function(){if(nyP===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;UmE===void 0&&(UmE=document.createElement("template"));var H=UmE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);nyP=V}V=nyP;return V},{mode:2});var dmE=function(){return _.M.apply(this,arguments)||this};
_.t(dmE,_.M);dmE.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var jR=dmE;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],jR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],jR.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],jR.prototype,"isManageRed",void 0);jR=_.O([_.Lm({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],jR);
_.u(jR,"yt-single-ypc-offer-list-renderer",function(){if(xmh===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;B8E===void 0&&(B8E=document.createElement("template"));var H=B8E;I.call(l,H.content.cloneNode(!0),V.content.firstChild);xmh=V}V=xmh;return V},{mode:2});var wRB;var N8Y;_.yN("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var KHV=function(){return _.M.apply(this,arguments)||this};
_.t(KHV,_.M);KHV.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var Yy=KHV;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Yy.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Yy.prototype,"isManageRed",void 0);Yy=_.O([_.Lm({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Yy);
_.u(Yy,"yt-ypc-offers-list-renderer",function(){if(N8Y===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;wRB===void 0&&(wRB=document.createElement("template"));var H=wRB;I.call(l,H.content.cloneNode(!0),V.content.firstChild);N8Y=V}V=N8Y;return V},{mode:2});_.yN("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var jbh=function(){return _.M.apply(this,arguments)||this};
_.t(jbh,_.M);
jbh.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
var Lc=jbh;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Lc.prototype,"data",void 0);Lc=_.O([_.Lm({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Lc);
_.u(Lc,"yt-unlimited-manage-subscription-page-renderer",function(){if(T8E===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;HcQ===void 0&&(HcQ=document.createElement("template"));var H=HcQ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);T8E=V}V=T8E;return V},{mode:2});var Yrg;var LHg;var eWP=function(){return _.M.apply(this,arguments)||this};
_.t(eWP,_.M);_.B=eWP.prototype;_.B.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.B.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.B.onKeypress_=function(V){V.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.B.handleHeaderTap_=function(V){V.preventDefault();V.stopPropagation();this.expandOffers_()};
_.B.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.B.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
var eR=eWP;eR.prototype.dataChanged_=eR.prototype.dataChanged_;_.O([_.R(_.yn),_.a("design:type",Object)],eR.prototype,"ironA11yKeysBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],eR.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],eR.prototype,"offersVisible_",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eR.prototype,"dataChanged_",null);eR=_.O([_.Lm({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],eR);
_.u(eR,"yt-collapsible-ypc-offer-renderer",function(){if(LHg===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Yrg===void 0&&(Yrg=document.createElement("template"));var H=Yrg;I.call(l,H.content.cloneNode(!0),V.content.firstChild);LHg=V}V=LHg;return V},{mode:2});var kXY;var FHP;_.yN("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var XRV=function(){return _.M.apply(this,arguments)||this};
_.t(XRV,_.M);_.B=XRV.prototype;_.B.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.B.dataChanged_=function(){if(this.data.backgroundImage){var V=_.sI(this.data.backgroundImage.thumbnails,screen.width),l=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=l?"linear-gradient(180deg, "+l+"), url("+V+")":"url("+V+")";this.data.gtmId&&_.k6(this.data.gtmId,_.h6("GL",""))}};
_.B.onYtServiceRequestError_=function(V){_.oE(this.hostElement,V.detail.error.message)};
_.B.getScrimLayerColorStops_=function(){var V,l,I=(V=this.data.unlimitedHeaderV2Data)==null?void 0:(l=V.unlimitedHeaderV2Data)==null?void 0:l.scrimLayerColors;if(!I)return null;var H=100/I.length;return I.map(function(T,x){x*=H;return _.rP(T)+" "+x+"%"}).join(",")};
_.B.computeLogoWithPadding=function(V){var l,I,H;return(V=(l=V.unlimitedLogoImage)==null?void 0:(I=l.thumbnails)==null?void 0:(H=I[0])==null?void 0:H.height)&&V%31===0?!0:!1};
var ky=XRV;ky.prototype.onYtServiceRequestError_=ky.prototype.onYtServiceRequestError_;ky.prototype.dataChanged_=ky.prototype.dataChanged_;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.O([_.q({computed:"computeLogoWithPadding(data)"}),_.a("design:type",Boolean)],ky.prototype,"logoWithPadding",void 0);
_.O([_.q(),_.a("design:type",Object)],ky.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ky.prototype,"dataChanged_",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ky.prototype,"onYtServiceRequestError_",null);ky=_.O([_.Lm({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],ky);
_.u(ky,"yt-unlimited-page-header-renderer",function(){if(FHP===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;kXY===void 0&&(kXY=document.createElement("template"));var H=kXY;I.call(l,H.content.cloneNode(!0),V.content.firstChild);FHP=V}V=FHP;return V},{mode:2});var zWr;var yJV;_.yN("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var tR2=function(){return _.M.apply(this,arguments)||this};
_.t(tR2,_.M);tR2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
var F7=tR2;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],F7.prototype,"data",void 0);F7=_.O([_.Lm({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],F7);
_.u(F7,"yt-unlimited-user-notification-renderer",function(){if(yJV===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;zWr===void 0&&(zWr=document.createElement("template"));var H=zWr;I.call(l,H.content.cloneNode(!0),V.content.firstChild);yJV=V}V=yJV;return V},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.KcE=_.W1(function(V){var l=_.Rj(V,{numberOfChips:5}).numberOfChips;return _.Y("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.Y(_.Ks,{each:function(){return Array(l==null?void 0:l())}},function(){return _.Y("div",{class:"ytGhostChipShelfChip"})}))},"Gf");
}catch(e){_._DumpException(e)}
try{
var IhV,H8g,TSP,BSr,xzg,UzE,nAE,VG,lo,dzI,wUB,NSB,jar,yOY,Ih,zRh,eRY,XUV,FKu,kuE,LKb,tXb,rOE,GuY,EAu,HM,JOP,oAQ,hR6,RRg,SAr,Z8r,PKh,Dzr,cOP,WKP,b82,qAQ,MXV,saI,vA6,ahh,fhY,gAE,i8b,l8Q,HTY,T6r,B6E,xJ2,nBu,$JI,dJb,w$2,N6P,KpI,jzY,Lp6,X$h,FpE,e8P,z8h,kqB,ych,EBu,GqB,t1b,rch,x5,Jc2,PJB,ccY,WpE,bTP,q4g,M12,szV,p$b,AcY,uu2,vBh,CJI,a8h,f8u,QaE,$zh,S4u;
_.mi=function(V){var l=new _.Yd("Error accessing DB");return _.cNw().then(function(I){return new Promise(function(H,T){try{var x=I.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(V);x.onsuccess=function(){var n=x.result;H(n?n.value:null)};
x.onerror=function(){l.params={key:V,source:"onerror"};T(l)}}catch(n){l.params={key:V,
thrownError:String(n)},T(l)}})},function(){return null})};
_.lhg=function(V,l){var I=_.sOt(l);I!=="javascript:"&&I!=="data:"&&V.setAttribute("href",l)};
IhV=function(V,l){return _.nW(V.entities,"flowStateEntity",l)};
H8g=function(V){return(V=V.getOption("captions","track"))?!!V.displayName:!1};
TSP=function(V,l){l=l.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(l==null||!l.length)return V;var I=l.filter(function(n){return n});
l=V.filter(function(n){return n.languageCode.startsWith("en")});
I=_.U(I);for(var H=I.next();!H.done;H=I.next())if(H=H.value,l.length){var T=l[0],x=Object.assign({},T);T.languageCode!==H.languageCode&&(x.displayName=T.languageName+" >> "+H.languageName,x.translationLanguage=H,V.push(x))}return V};
BSr=function(V){var l,I=(l=V.getOption("captions","tracklist",{includeAsr:!0}))!=null?l:[];_.z("mweb_watch_captions_enable_auto_translate")&&(I=TSP(I,V));return I};
xzg=function(V){return _.cy(V,function(l){return l.languageCode==="en"})};
UzE=function(V){var l=i7;if(H8g(V))V.setOption("captions","stickyLoading",{}),V.setOption("captions","track",{});else{var I=_.cy(BSr(V),function(H){return H.displayName===l});
V.setOption("captions","track",I)}};
nAE=function(V){if(!V)return 0;var l=V.getPresentingPlayerType(),I=V.getVideoData();return I&&I.isLive?(V=V.getProgressState(l),V.seekableEnd-V.seekableStart):V.getDuration(l)};
VG=function(V,l){_.WA(l,V,function(){return $zh[l]},function(I){$zh[l]=I;
if(!_.z("mweb_player_ve_show_ks")){var H=_.oa(0);H&&I&&_.s4(H,I)}})};
lo=function(V){(V=$zh[V])&&_.$g(_.x7(),V)};
dzI=function(V,l){for(var I=_.U(Object.keys(V)),H=I.next();!H.done;H=I.next())if(H=H.value,V[H]!==l[H])return!1;return!0};
wUB=function(){return document.getElementById("player-control-overlay")};
NSB=function(V){V!==-1&&!_.z("player_controls_log_creation_killswitch")&&wUB()&&(_.Z8("pcu_cs",V),_.Z8("pcu_ce"))};
jar=function(V){return _.Y("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(V.subscribeButton?[V.subscribeButton,V.channelAccess]:[V.channelAccess]).map(function(l){return _.Y("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.Y("div",{class:"yt-profile-identity-info-view-model-wiz--button"},KKQ(l)))}))};
_.YAr=function(V){var l=V.data;V=V.hideDivider;var I={};I=(I["yt-profile-identity-info-view-model-wiz__frame"]=!0,I["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!l.channelBanner,I);I={class:_.l8(I)};var H,T={imageBannerViewModel:{image:(H=l.channelBanner)==null?void 0:H.image,style:"IMAGE_BANNER_STYLE_INSET"}};H=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},l.channelBanner?_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
KKQ(T,{imageBannerViewModel:{isPositionRelative:!0}})):null);T=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},KKQ(l.avatar));var x;var n=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},l.channelDisplayName),l.verifiedOrOacBadge?_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.Y(_.cX,{data:{thumbnails:[{url:(x=l.verifiedOrOacBadge)==null?void 0:x.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);x=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},n,KKQ(l.threeDotMenu));n=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.Y("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},l.channelHandle),l.channelPronouns&&l.channelHandle?_.Y("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.Y("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},l.channelPronouns)),_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},l.leftOfBulletInfo),l.leftOfBulletInfo&&l.rightOfBulletInfo?_.Y("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},l.rightOfBulletInfo)));x=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},x,n);return _.Y("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.Y("div",I,H,_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},T,x),l.channelDescription?_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},l.channelDescription):
null,jar(l),V?null:_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
yOY=function(V,l){var I=_.S5(V,{}),H=LKb("top",l),T=LKb("bottom",l),x=LKb("left",l),n=LKb("right",l);return _.na({top:function(){return Ih(I().position,H)},
bottom:function(){return Ih(I().position,T)},
left:function(){return Ih(I().position,x)},
right:function(){return Ih(I().position,n)},
position:function(){return Ih(I().positionType,eRY)},
height:function(){return Ih(I().height,HM)},
width:function(){return Ih(I().width,HM)},
"min-width":function(){return Ih(I().minWidth,HM)},
"min-height":function(){return Ih(I().minHeight,HM)},
"max-width":function(){return Ih(I().maxWidth,HM)},
"max-height":function(){return Ih(I().maxHeight,HM)},
"aspect-ratio":function(){return Ih(I().aspectRatio,String)},
"margin-top":function(){return Ih(I().margin,H)},
"margin-bottom":function(){return Ih(I().margin,T)},
"margin-left":function(){return Ih(I().margin,x)},
"margin-right":function(){return Ih(I().margin,n)},
"padding-top":function(){return Ih(I().padding,H)},
"padding-bottom":function(){return Ih(I().padding,T)},
"padding-left":function(){return Ih(I().padding,x)},
"padding-right":function(){return Ih(I().padding,n)},
"flex-direction":function(){return Ih(I().flexDirection,kuE)},
"justify-content":function(){return Ih(I().justifyContent,FKu)},
"align-items":function(){return Ih(I().alignItems,XUV)},
"flex-grow":function(){return Ih(I().flexGrow,String)},
"flex-shrink":function(){return Ih(I().flexShrink,String)},
"flex-basis":function(){return Ih(I().flexBasis,HM)},
"align-self":function(){return Ih(I().alignSelf,XUV)},
"flex-wrap":function(){return Ih(I().flexWrap,zRh)},
"align-content":function(){return Ih(I().alignContent,XUV)}})};
Ih=function(V,l){return V!==void 0?l(V):void 0};
zRh=function(V){switch(V){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
eRY=function(V){switch(V){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
XUV=function(V){switch(V){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"}};
FKu=function(V){switch(V){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"}};
kuE=function(V){switch(V){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"}};
LKb=function(V,l){var I=l==="rtl";switch(V){case "top":var H=tXb;break;case "bottom":H=rOE;break;case "left":H=GuY;break;default:H=EAu}return function(T){return Ih(H(T,I),HM)}};
tXb=function(V){var l=V.top;var I=V.vertical;V=V.all;var H;return(H=l!=null?l:I)!=null?H:V};
rOE=function(V){var l=V.bottom;var I=V.vertical;V=V.all;var H;return(H=l!=null?l:I)!=null?H:V};
GuY=function(V,l){var I=V.left;var H=V.end;var T=V.start;var x=V.horizontal;V=V.all;var n,w;return(w=(n=I!=null?I:l?H:T)!=null?n:x)!=null?w:V};
EAu=function(V,l){var I=V.right;var H=V.end;var T=V.start;var x=V.horizontal;V=V.all;var n,w;return(w=(n=I!=null?I:l?T:H)!=null?n:x)!=null?w:V};
HM=function(V){var l=V.value;switch(V.unit){case "YPC_DIMENSION_UNIT_POINT":return l+"px";case "YPC_DIMENSION_UNIT_FRACTION":return l+"%";default:return""+l}};
JOP=function(V){switch(V){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"}};
oAQ=function(V){var l=V!=null?V:{};V=l.fontRole;var I=l.fontSize;l=l.fontWeight;if(V!==null&&I!==null)switch(V){case "YPC_FONT_ROLE_DISPLAY":switch(I){case "YPC_FONT_SIZE_L":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(I){case "YPC_FONT_SIZE_L":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return l===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(I){case "YPC_FONT_SIZE_XL":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
hR6=function(V,l){return _.nW(V.entities,"pdpStateEntity",l)};
RRg=function(V,l,I){function H(L){return Object.values(L).map(function(e){var k=e.productId;e=e.pricingOptionIndex;return PKh(T(k).pricingOptions,e).pricingOptionId})}
function T(L){return w().get(L)}
function x(L){L=H(L);I(L)}
var n=Dzr([V,l],function(L,e){var k=L==null?void 0:L.selectedPricingOptions;L={};var X=!0;if(k&&e.length)for(var r=_.U(e),E=r.next();!E.done;E=r.next()){E=E.value;var D=Z8r(E.pricingOptions,function(Z){a:{Z=Z.pricingOptionId;for(var S=_.U(k),p=S.next();!p.done;p=S.next())if(p.value===Z){Z=!0;break a}Z=!1}return Z});
D>=0&&(X=!1,L[E.groupId]={productId:E.productId,pricingOptionIndex:D})}X&&e.length&&(L[e[0].groupId]={productId:e[0].productId,pricingOptionIndex:0});return L}),w=Dzr([l],function(L){return new Map(L.map(function(e){return[e.productId,
e]}))}),N=Dzr([l],function(L){var e=new Map;
L=_.U(L);for(var k=L.next();!k.done;k=L.next()){var X=k.value;k=X.groupId;var r=X.productId;X=_.U(SAr(X.pricingOptions));for(var E=X.next();!E.done;E=X.next()){var D=_.U(E.value);E=D.next().value;D=D.next().value;e.set(D.pricingOptionId,{groupId:k,productId:r,index:E,pricingOption:D})}}return e});
return{getProductById:T,isProductSelected:function(L){var e=T(L);if(!e)return!1;var k;return((k=n()[e.groupId])==null?void 0:k.productId)===L},
getSelectedPricingOptions:function(){return Object.values(n()).map(function(L){var e=L.productId;L=L.pricingOptionIndex;return PKh(T(e).pricingOptions,L)})},
getSelectedProductByGroupId:function(L){var e;return(L=(e=n()[L])==null?void 0:e.productId)?T(L):void 0},
onProductSelected:function(L){var e=T(L);if(e){var k=n(),X;if(((X=k[e.groupId])==null?void 0:X.productId)!==L){var r,E;X=(E=(r=k[e.groupId])==null?void 0:r.pricingOptionIndex)!=null?E:0;r=0;for(E=e.pricingOptions[Symbol.iterator]();!E.next().done;)++r;r<=X&&(X=0);r={};x(Object.assign({},k,(r[e.groupId]={productId:L,pricingOptionIndex:X},r)))}}},
onPricingOptionSelected:function(L){var e=N().get(L);if(e){L=e.groupId;var k=e.productId;e=e.index;var X=n(),r,E;if(((r=X[L])==null?void 0:r.productId)!==k||((E=X[L])==null?void 0:E.pricingOptionIndex)!==e)r={},x(Object.assign({},X,(r[L]={productId:k,pricingOptionIndex:e},r)))}},
onClearGroupSelected:function(L){var e=n();e[L]&&(e=Object.fromEntries(Object.entries(e).filter(function(k){return _.U(k).next().value!==L})),x(e))}}};
SAr=function(V){return function I(){var H,T,x,n;return QaE(I,function(w){switch(w.nextAddress){case 1:_.Lk(w,2),H=0,T=_.U(V),x=T.next();case 4:if(x.done){w.jumpTo(2);break}n=x.value;var N=[H++,n];return _.K(w,N,7);case 7:x=T.next();w.jumpTo(4);break;case 2:_.YE(w),_.ed(w,0)}})}()};
Z8r=function(V,l){V=_.U(SAr(V));for(var I=V.next();!I.done;I=V.next()){var H=_.U(I.value);I=H.next().value;H=H.next().value;if(l(H))return I}return-1};
PKh=function(V,l){V=_.U(SAr(V));for(var I=V.next();!I.done;I=V.next()){var H=_.U(I.value);I=H.next().value;H=H.next().value;if(I===l)return H}};
Dzr=function(V,l){var I,H;return function(){for(var T=V.map(function(n){return n()}),x=0;x<T.length;x++)if(!I||T[x]!==I[x]){I=T;
H=l.apply(null,_.oI(T));break}return H}};
cOP=function(V){var l;return!!(V.productId&&V.groupId&&((l=V.pricingOptions)==null?0:l.length)&&V.pricingOptions.every(function(I){return I.pricingOptionId}))};
WKP=function(V,l,I){return RRg(V,Dzr([l],function(H){return H.filter(cOP)}),I)};
b82=function(V){switch(V){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""}};
qAQ=function(V,l){return l.length===0?[V]:[V.slice(0,l[0]),V.slice(l[0])].filter(function(I){return I.length>0})};
MXV=function(V){switch(V){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""}};
saI=function(V,l,I,H){H=Object.assign({},H);_.k7(H,Tk,{selectedOptionId:V,primaryButtonOverride:I});_.P1().dispatch(_.K6("flowStateEntity",l,H))};
_.ubI=function(){if(!pU6){var V=_.U(_.xi(new Map,void 0,"UJImUe"));pU6=V.next().value;AOB=V.next().value}return pU6};
vA6=function(V){if(V)return _.ubI()().get(V)};
_.O8B=function(V,l){if(V&&l){var I=_.ubI();I().set(V,l);V=I();AOB(new Map(V))}};
_.CKb=function(V){return{onSubmit:function(){var l;(l=vA6(V()))==null||l.onSubmit()},
isValid:function(){var l=vA6(V());return l?l.isValid():!0},
isSubmitting:function(){var l,I;return!!((l=vA6(V()))==null?0:(I=l.isSubmitting)==null?0:I.call(l))}}};
ahh=function(V,l){return _.nW(V.entities,"contextNoteFeedEntityPayload",l)};
fhY=function(V){V.style.height="auto";V.style.height=V.scrollHeight+"px"};
gAE=function(V){return[V.syncStep,V.asyncStep].filter(function(l){return l!==void 0})};
i8b=function(V){var l,I,H;if(V=(l=V.structuredContextNoteFormSchema)==null?void 0:(I=l.fieldSchemas)==null?void 0:(H=I.noteBody)==null?void 0:H.validationSchema)for(l=_.U(gAE(V)),I=l.next();!I.done;I=l.next()){I=I.value.rules;if(!I)break;I=_.U(I);for(I=I.next();!I.done;I=I.next())return _.y(I.value,_.mz2)}};
l8Q=function(V){if(V){V=_.U(gAE(V));for(var l=V.next();!l.done;l=V.next()){l=l.value.rules;if(!l)break;l=_.U(l);for(l=l.next();!l.done;l=l.next())return _.y(l.value,V1b)}}};
HTY=function(V){if(V){V=_.U(gAE(V));for(var l=V.next();!l.done;l=V.next()){l=l.value.rules;if(!l)break;l=_.U(l);for(l=l.next();!l.done;l=l.next())return _.y(l.value,I86)}}};
T6r=function(V){V=/^https?:\/\//.test(V)?V:"http://"+V;try{var l=_.Wv(V)}catch(I){return!1}if(l.toString()!==V)return!1;V=l.JSC$7896_domain_.split(".");return V.length>1&&V.every(function(I){return!!I})};
B6E=function(V,l,I,H){var T;H=(T=H.structuredContextNoteData)==null?void 0:T.createCommentEndpoint;if(T=_.y(H,_.l$o))return T.commentText=_.pW(V),T.videoPositionMention=l,T.sources=I,H};
xJ2=function(V){return V==null?void 0:V.stringValue};
nBu=function(V,l,I){V=V.map(function(H,T){return{listItemViewModel:{title:H.title,subtitle:H.subtitle,leadingImage:H.leadingImage,trailingImage:T===l?UJE:void 0,rendererContext:{commandContext:{onTap:H.onTap}}}}});
return Object.assign({},I&&{header:{panelHeaderViewModel:{title:I}}},{content:{listViewModel:{listItems:V}}})};
$JI=function(V,l){if(V&&l)switch(l){case "SELECTION_TYPE_BOOL":return V.boolValue;case "SELECTION_TYPE_INT":return V.intValue;case "SELECTION_TYPE_STRING":return V.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return V.privacyStatusValue}};
dJb=function(V){var l;V=(l=V.options)==null?void 0:l.findIndex(function(I){return I.isSelected});
return V===void 0?-1:V};
w$2=function(V,l,I){var H=function(){return V().label},T={},x=_.ii("ytDropdownViewModelLabel",(T.ytDropdownViewModelLabelError=l,T));
return _.Y(_.NS,{cond:function(){var n;if(n=V().label)n=!(I()===-1&&V().label&&!V().placeholderText);return n},
then:function(){return _.Y("div",{class:x},_.Y(_.Ni,{text:H}))}})};
N6P=function(V,l){var I={};I=_.ii("ytDropdownViewModelTitle",(I.ytDropdownViewModelTitlePlaceholder=function(){return l()===-1},I));
return _.Y("div",{class:I},_.Y(_.Ni,{text:function(){var H=V();var T=l();if(T===-1)H=H.placeholderText?H.placeholderText:H.label;else{var x,n;H=(x=H.options)==null?void 0:(n=x[T])==null?void 0:n.title}return H}}))};
KpI=function(V,l){var I=function(){return V().hint};
return _.Y(_.CN,null,_.Y(_.NS,{cond:function(){return I()&&!l()},
then:function(){return _.Y("div",{class:_.ii("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.Y(_.Ni,{text:I,className:"ytDropdownViewModelSupportText"}))}}),_.Y(_.NS,{cond:l,
then:function(){return _.Y("div",{id:"dropdown-view-model-error",role:"alert",class:_.ii("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.Y(_.dq,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.Y(_.Ni,{text:l,className:"ytDropdownViewModelSupportText"}))}}))};
jzY=function(V,l){var I=_.F().resolve(_.C4P);_.XW(function(){var H=V().id;H&&I!=null&&I.dropdownMap.set(H,l)})};
Lp6=function(V){V=_.y(V.scheduleButton,Y4u);V=_.y(V==null?void 0:V.primaryButton,_.Gb);V=_.y(V==null?void 0:V.onTap,_.yI);var l,I,H=((I=_.y(V,_.NJ))==null?void 0:I.commands)||[V];I=_.U(H);for(V=I.next();!V.done&&!(l=_.y(V.value,_.HiN));V=I.next());var T;l=(T=l)==null?void 0:T.createBroadcastRequest;if(!l)throw Error("Jj");return l};
X$h=function(V,l,I){I=I===void 0?{}:I;var H,T;return _.d(function(x){if(H=e8P(l))return x.return(H);(T=kqB(V,l,I))&&FpE(l,T);return x.return(T)})};
FpE=function(V,l){var I=z8h(V);I&&l.then(function(H){_.F().resolve(_.nz).put(I,new _.$r({innertubeResponse:H}))})};
e8P=function(V){if(V=z8h(V)){var l=_.F().resolve(_.nz);if(l.has(V))return l.get(V).then(function(I){return I==null?void 0:_.wE(I)})}return null};
z8h=function(V){var l=_.y(V.endpoint,_.vU);if(l!=null&&l.videoId)return l={videoId:l.videoId},_.z("web_imp_player_mute_params")&&(l.mutedAtStart=V.startPlaybackInMutedState),_.AO("inline_playback",l)};
kqB=function(V,l,I){V=_.R2(V,l.endpoint,ych(l,I)).then(function(H){return H});
return Promise.resolve(V)};
ych=function(V,l){l=_.z("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!V.startPlaybackInMutedState},l):Object.assign({},{vis:5,autonav:"1"},l);var I;l={contentPlaybackContext:_.LY(l,(I=_.y(V.endpoint.commandMetadata,_.mK))==null?void 0:I.url,window.location.href)};_.z("web_imp_player_mute_params")&&(l.overrideMutedAtStart=!V.startPlaybackInMutedState);return l};
EBu=function(V,l){var I=window.MutationObserver;I&&(BM=new I(function(H,T){H=_.U(H);for(var x=H.next();!x.done;x=H.next()){x=x.value;var n;if(n=x.type==="childList"&&x.target)a:{n=V;x=t1b(x.target);n=t1b(n);for(var w=null,N=0;N<x.length;N++)if(n.includes(x[N])){if(N===0){n=!1;break a}w=x[N];break}w?(x=rch(x,w),n=rch(n,w),n=x<n):n=!1}if(n){l();T.disconnect();break}}}),(I=GqB())&&BM.observe(I,{childList:!0,
subtree:!0}))};
GqB=function(){var V=document.getElementsByTagName("ytd-rich-grid-renderer");if(V.length>0)return V[0];V=document.getElementsByTagName("ytd-section-list-renderer");return V.length>0?V[0]:null};
t1b=function(V){for(var l=[];V;)l.push(V),V=V.parentElement;return l};
rch=function(V,l){var I=Array.from(l.children);l=V.indexOf(l);return l>0?I.indexOf(V[l-1]):-1};
x5=function(V,l,I){I=I===void 0?{}:I;return _.LT(V,I,l)};
Jc2=function(V){return V==null?void 0:V.filter(function(l){return l.premiereTrailerBadgeRenderer})};
PJB=function(V,l){var I="",H="";switch(V){case -1:case 0:I=l?"VOLUME_OFF":"VOLUME_OFF_FILLED";H=oBg;break;case 1:I=l?"VOLUME_UP_OUTLINE":"VOLUME_UP";H=h8B;break;default:_.AB(V)}return{iconName:I,ariaLabel:H}};
ccY=function(V,l){var I=DJP,H=_.U(_.xi(ZTb(new S4u(function(){},I,l)),void 0,"PAnyd")),T=H.next().value,x=H.next().value,n=new S4u(function(w){x(w)},I,l);
_.t0(function(){Promise.resolve().then(function(){var w,N=(w=V())!=null?w:{};n.playerControlsData=N;_.z("player_controls_skip_double_signal_old")&&(n.lastSeenPlayerApi=_.MY(N.playerApi));_.z("player_controls_skip_double_signal_old")||(n.lastSeenPlayerApi=_.MY(N.playerApi));R8u(n)});
_.rx(function(){Qzr(n)})});
_.rx(function(){Qzr(n)});
return function(){return T()}};
WpE=function(V){return function(l){var I=V(),H={playerState:l};if(l===1){var T;(T=I.playerApi)==null||T.loadModule("captions")}if(l===0){var x;(x=I.playerApi)==null||x.unloadModule("captions")}(l!==-1||_.z("web_imp_controls_set_player_state_killswitch"))&&I.setState(H)}};
bTP=function(V){return function(l){V().setState({playbackRate:l})}};
q4g=function(V){return function(l){var I=V(),H=I.playerApi,T=H==null?void 0:H.getVideoData(),x=(T==null?void 0:T.isLive)||!1;T=T==null?void 0:T.video_id;x={videoDuration:nAE(H||void 0),isLive:x,videoId:T};x.videoId!==I.videoId&&(x=Object.assign({},_.ezt(H),x));if(l==null?0:l.playertype)x.playerType=l.playertype;if(H){x.captionsAvailable=!!H.getOptions("captions");l=x;var n;T=(n=H.getStoryboardLevel(H.getNumberOfStoryboardLevels()-1))==null?void 0:n.intervalMs;l.storyboardInterval=T?T/1E3:void 0;x.captionsAvailable&&
(x.captionsEnabled=H8g(H))}x.volumeMuted=!(H==null||!H.isMuted());I.setState(x)}};
M12=function(V){return function(l){var I=V(),H=I.playerApi;if(H){var T=H.getPresentingPlayerType();l={playedTime:l||0,percentLoaded:H.getVideoLoadedFraction(),playerType:T};I.playerState===0&&(l.playedTime=I.videoDuration);I.isLive&&(T=H.getProgressState(T),l.playedTime-=T.seekableStart,l.videoDuration=nAE(H));I.playerType!==1&&delete l.playedTime;I.setState(l)}}};
szV=function(V){return function(){var l=V(),I,H,T,x={volume:(T=(I=l.playerApi)==null?void 0:I.getVolume())!=null?T:0,volumeMuted:!((H=l.playerApi)==null||!H.isMuted())};l.setState(x)}};
p$b=function(V){return function(){var l=V(),I=l.playerApi;if(I){var H={captionsAvailable:!!I.getOptions("captions")};H.captionsAvailable&&(H.captionsEnabled=H8g(I));l.setState(H)}}};
AcY=function(V){return function(){var l=V();if(l.playerApi&&!(l.volumeMuted||l.controlsVisible&&l.isProbablyAScreenreaderUser)){l.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var I;(I=document.querySelector(".player-control-play-pause-icon"))==null||I.focus()}}};
uu2=function(V){return{appApi:Object.assign({},_.dGK(),{showCaptionsToggleToast:function(l){var I,H;(H=(I=V()).showCaptionsToggleToast)==null||H.call(I,l)},
openInMiniplayer:function(){var l,I;(I=(l=V()).openInMiniplayer)==null||I.call(l)}})}};
vBh=function(V,l){var I,H,T;return!!(V==null?0:(I=V.playerResponse)==null?0:(H=I.playerConfig)==null?0:(T=H.inlinePlaybackConfig)==null?0:T.showScrubbingControls)&&!(l==null?0:l.hideScrubbingControls)};
_.OT2=function(V){var l=!V.miniplayerIsActive;return[5,2,0].includes(V.miniplayerPlaybackState)||l};
CJI={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};a8h=function(V,l){var I,H,T,x,n;_.d(function(w){if(!l.length)return w.return([]);I=[];H=_.U(l);for(T=H.next();!T.done;T=H.next())x=T.value,(n=V.resolveIcon(x))&&!V.iconCache[n.url]&&I.push(_.USE(V,n).then(function(){}).catch(function(){}));
return w.return(Promise.all(I))})};
f8u=function(V,l){var I=[];l=(new Set(l)).values();l=_.U(l);for(var H=l.next();!H.done;H=l.next()){H=H.value;for(var T=_.U(Object.values(CJI)),x=T.next();!x.done;x=T.next())I.push({iconName:H,iconStyle:x.value})}a8h(V.iconManager,I)};
_.gBg=function(V,l,I){var H=I!=null?I:V.iconsToFetch;H!=null&&H.length?l!==void 0&&l>=0?_.et(_.r0,function(){f8u(V,H)},l):f8u(V,H):Promise.resolve()};
QaE=function(V,l){l=new _.pWt(new _.qGc(l));_.aK&&V.prototype&&(0,_.aK)(l,V.prototype);return l};
$zh={};
S4u=function(V,l,I){var H=this;this.renderFn=V;this.listeners=l;this.context=I;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var T;this.lastSeenPlayerApi=_.MY((T=this.playerControlsData)==null?void 0:T.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.ezt(),void 0);_.z("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){ZTb(H).setState({playerState:-1});H.resetRecentlyNavigatedJobId&&_.r0.cancelJob(H.resetRecentlyNavigatedJobId);H.recentlyNavigated=
!0;H.resetRecentlyNavigatedJobId=_.r0.addJob(function(){H.recentlyNavigated=!1},8,1E4)})};
S4u.prototype.setState=function(V){if(!_.z("mweb_player_skip_no_op_state_changes")||!dzI(V,this.state))if(this.state=Object.assign({},this.state,V),!_.z("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)V=-1,_.z("player_controls_log_creation_killswitch")||wUB()||(V=(0,_.O_)()),_.Z8("pcu_s"),_.Z8("pcu_se"),_.Z8("pcu_rs"),this.renderFn(ZTb(this)),_.Z8("pcu_re"),NSB(V),_.r0.addJob(function(){_.Z8("pcu_ap")},8)};
var ZTb=function(V){var l;var I=_.MY((l=V.playerControlsData)==null?void 0:l.playerApi);return Object.assign({},V.state,{setState:V.boundSetState,domMeasurements:{progressBarLineRect:V.progressBarLineRect},playerApi:I,appApi:V.context.appApi,playerContainer:V.context.playerContainer,playerControlContainer:V.context.playerControlContainer,uxConfig:V.context.uxConfig})},R8u=function(V){V.listeners.forEach(function(l){V.eventListenerCleanupFunctions.push(l.register(function(){return ZTb(V)},function(){return V.getData()}))})},
Qzr=function(V){V.eventListenerCleanupFunctions.forEach(function(l){l()});
V.eventListenerCleanupFunctions.length=0};
S4u.prototype.getData=function(){return this.playerControlsData};
var UK=new _.f("abuseReportFlowState");var mJ2=new _.f("feedbackFormFlowState");var iTE=new _.f("inputBoxViewModel");var Vsu=new _.f("flowNextStepCommand");var lwY=new _.f("flowPrevStepCommand");var IwE=new _.f("updateFlowCommand");_.HWQ=new _.f("flowStepRenderer");_.mz2=new _.f("lengthValidationRule");var V1b=new _.f("regexValidationRule");var I86=new _.f("selectedValidationRule");var TJ2=new _.f("talkToRecsViewModel");var BJQ=new _.f("creatorGoalSetUpFlowDropdownItemViewModel");var xrQ=new _.f("creatorGoalSetUpFlowDropdownViewModel");_.UrP=new _.f("radioButtonGroupViewModel");var Y4u=new _.f("panelFooterViewModel");var nfE=new _.f("ypcCancelRecurrenceCommand");var $rB=new _.f("cancellationFlowState");var Tk=new _.f("premiumPurchaseFlowState");var drB=new _.f("surveyAnswerCardRenderer");var w4g=new _.f("showMoreButtonRenderer");var NJI;var Kdh,jAV=function(){if(Kdh!==void 0)return Kdh;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;NJI===void 0&&(NJI=document.createElement("template"));var H=NJI;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return Kdh=V};var YlP=function(){var V=_.M.apply(this,arguments)||this;V.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";V.goalDescription="";V.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";V.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";V.startButtonId="start-button";V.exampleButtonId="example-button";return V};
_.t(YlP,_.M);_.B=YlP.prototype;_.B.getGoalDropdownItems=function(){var V,l;return(l=_.y((V=this.data)==null?void 0:V.purchaseTargetDropdown,xrQ))==null?void 0:l.dropdownItems};
_.B.getTimerDropdownItems=function(){var V,l;return(l=_.y((V=this.data)==null?void 0:V.timerDropdown,xrQ))==null?void 0:l.dropdownItems};
_.B.getColorDropdownItems=function(){var V,l;return(l=_.y((V=this.data)==null?void 0:V.colorDropdown,xrQ))==null?void 0:l.dropdownItems};
_.B.getDropdownItemText=function(V){var l;return(l=_.y(V,BJQ))==null?void 0:l.itemLabel};
_.B.getDropdownItemValue=function(V){V=_.y(V,BJQ);return(V==null?void 0:V.timeLimit)||(V==null?void 0:V.purchaseTarget)||(V==null?void 0:V.eligiblePurchaseType)};
_.B.updateFlowState=function(V){_.xB(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:V}])};
_.B.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.B.updateGoalValue=function(V){this.goal=V.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.B.onTextValueChanged=function(V){this.goalDescription=V.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.B.updateTimerValue=function(V){this.timer=V.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.B.updateTierValue=function(V){this.tier=V.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.B.getButtonViewModel=function(V){V=(V==null?void 0:V.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var l,I=_.y((l=this.data)==null?void 0:l.startGoalButton,_.Gb);return Object.assign({},I,{state:V})};
_.vI.Object.defineProperties(YlP,{template:{configurable:!0,enumerable:!0,get:function(){return jAV()}}});
var n4=YlP;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],n4.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],n4.prototype,"goal",void 0);_.O([_.q(),_.a("design:type",Object)],n4.prototype,"goalDescription",void 0);_.O([_.q(),_.a("design:type",Object)],n4.prototype,"timer",void 0);_.O([_.q(),_.a("design:type",Object)],n4.prototype,"tier",void 0);
_.O([_.q(),_.a("design:type",Object)],n4.prototype,"startButtonId",void 0);_.O([_.q(),_.a("design:type",Object)],n4.prototype,"exampleButtonId",void 0);n4=_.O([_.Lm({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],n4);_.u(n4,"yt-creator-goal-set-up-flow-view-model",function(){return jAV()},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var LdE;var eZQ;var kVE;var FdY=function(){return _.M.apply(this,arguments)||this};
_.t(FdY,_.M);var X4Y=FdY;_.O([_.q(),_.a("design:type",Object)],X4Y.prototype,"data",void 0);X4Y=_.O([_.Lm({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],X4Y);
_.u(X4Y,"yt-survey-answer-card-renderer",function(){if(kVE===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;eZQ===void 0&&(eZQ=document.createElement("template"));var H=eZQ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);kVE=V}V=kVE;return V},{mode:2});var zZ6;var y5Q;var tsB=function(){return _.M.apply(this,arguments)||this};
_.t(tsB,_.M);_.B=tsB.prototype;_.B.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.B.selectedItemChanged=function(V){_.xB(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[V.feedbackToken||""]}])};
_.B.surveyAnswerCardRendererClicked=function(V){if(V.target&&_.y(V.model.item,drB)){var l=V.target;V=_.y(V.model.item,drB);V.onTapCommand?_.d6(l,[V.onTapCommand],l):this.data.onTapCommand&&_.d6(l,[this.data.onTapCommand],l);this.selectedItemChanged(V)}};
_.B.checkIsCancellationStyle=function(V){return V==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.B.updateSelectedItemFromBinding=function(V){this.selectedItem=V.detail.value};
var $5=tsB;$5.prototype.onSelectedItemChanged=$5.prototype.onSelectedItemChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$5.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],$5.prototype,"selectedItem",void 0);_.O([_.q({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.a("design:type",Boolean)],$5.prototype,"isCancellationStyle",void 0);
_.O([_.b("selectedItem"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$5.prototype,"onSelectedItemChanged",null);$5=_.O([_.Lm({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],$5);
_.u($5,"yt-survey-flow-step-renderer",function(){if(y5Q===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;zZ6===void 0&&(zZ6=document.createElement("template"));var H=zZ6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);y5Q=V}V=y5Q;return V},{mode:2});var r5E=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return V};
_.t(r5E,_.M);r5E.prototype.handleSurveyFlowStepOptionChanged=function(V){this.ytdReduxBehavior.dispatch(_.IA({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:V}));_.xB(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:V}}])};
var di=r5E;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],di.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],di.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],di.prototype,"data",void 0);di=_.O([_.A({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],di);
_.u(di,"ytd-survey-flow-step-renderer",function(){if(LdE!==void 0)return LdE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return LdE=V},{mode:1});var KKQ;KKQ=_.FR({avatarViewModel:_.hy,buttonViewModel:_.Db,subscribeButtonViewModel:_.g50,imageBannerViewModel:_.F32});_.GVE=_.I2(_.YAr);_.m5(_.YAr);var EfP;var J52=function(){return _.M.apply(this,arguments)||this};
_.t(J52,_.M);var wi=J52;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],wi.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],wi.prototype,"data",void 0);wi=_.O([_.A({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],wi);
_.u(wi,"ytd-channel-history-renderer",function(){if(EfP!==void 0)return EfP;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return EfP=V},{mode:1});var ofV;var hZg=function(){return _.M.apply(this,arguments)||this};
_.t(hZg,_.M);var PBV=hZg;_.O([_.q(),_.a("design:type",Object)],PBV.prototype,"data",void 0);PBV=_.O([_.A({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],PBV);
_.u(PBV,"ytd-feature-enablement-info-renderer",function(){if(ofV!==void 0)return ofV;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ofV=V},{mode:1});var DrY;var ZWV;var SlB=function(){var V=_.M.apply(this,arguments)||this;V.textBoxMaxLength=_.z("enable_tvod_campaign_code_integration")?15:12;return V};
_.t(SlB,_.M);_.B=SlB.prototype;_.B.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.B.onSubmit=function(){var V=this.data.serviceEndpoint,l=_.y(V,_.x9);l&&(l.couponCode=this.userInput,_.$B(this.hostElement,[V]))};
_.B.validate=function(){var V=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=V&&!this.data.errorMessage;this.showErrorMessage=V&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.z("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.B.computeStyle=function(V){return V};
_.B.computeShowValidationBelowInput=function(V){return V!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.B.updateUserInputFromBinding=function(V){this.userInput=V.currentTarget.value};
_.B.updateShowErrorMessageFromBinding=function(V){this.showErrorMessage=V.detail.value};
_.vI.Object.defineProperties(SlB.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
var NP=SlB;NP.prototype.dataChanged=NP.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],NP.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],NP.prototype,"userInput",void 0);_.O([_.q(),_.a("design:type",Boolean)],NP.prototype,"disableApplyButton",void 0);_.O([_.q(),_.a("design:type",Boolean)],NP.prototype,"hideApplyButton",void 0);
_.O([_.q(),_.a("design:type",Boolean)],NP.prototype,"hideErrorMessage",void 0);_.O([_.q(),_.a("design:type",Boolean)],NP.prototype,"showTick",void 0);_.O([_.q(),_.a("design:type",Boolean)],NP.prototype,"showErrorMessage",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],NP.prototype,"couponStyle",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.a("design:type",Boolean)],NP.prototype,"showValidationBelowInput",void 0);_.O([_.q(),_.a("design:type",Object)],NP.prototype,"textBoxMaxLength",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],NP.prototype,"dataChanged",null);
_.O([_.Q("showTick","showErrorMessage","userInput"),_.a("design:type",String),_.a("design:paramtypes",[])],NP.prototype,"validationState",null);NP=_.O([_.A({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],NP);
_.u(NP,"ytd-ypc-coupon-renderer",function(){if(ZWV!==void 0)return ZWV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ZWV=V},{mode:1});var RZE=function(){return _.M.apply(this,arguments)||this};
_.t(RZE,_.M);RZE.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"}}}};
RZE.prototype.computeStyle=function(V){return V};
var K4=RZE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],K4.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],K4.prototype,"buttonStyle",void 0);
K4=_.O([_.A({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],K4);
_.u(K4,"ytd-flow-bottom-bar-renderer",function(){if(DrY!==void 0)return DrY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return DrY=V},{mode:1});var QAb;var c5Y;var WdI;var bWY=function(){return _.M.apply(this,arguments)||this};
_.t(bWY,_.M);bWY.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
bWY.prototype.focus=function(V){this.title&&_.qD(this.title,V)};
var jB=bWY;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],jB.prototype,"data",void 0);_.O([_.Ij("#title"),_.a("design:type",HTMLElement)],jB.prototype,"title",void 0);jB=_.O([_.A({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],jB);
_.u(jB,"ytd-flow-top-bar-renderer",function(){if(WdI!==void 0)return WdI;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return WdI=V},{mode:1});var qlE;var Msu;var sAr;var Y5=function(){return _.M.apply(this,arguments)||this};
_.t(Y5,_.M);Y5.prototype.freeTextValueChanged=function(){_.xB(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Y5.prototype.updateFreeTextValueFromBinding=function(V){this.freeTextValue=V.detail.value};
_.vI.Object.defineProperties(Y5.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(l=(V=this.data)==null?void 0:V.responseMaxLength)!=null?l:500,H;return((H=this.freeTextValue)!=null?H:"").length>=I?"maxed-out":""}}});
var L4=Y5;L4.prototype.freeTextValueChanged=L4.prototype.freeTextValueChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],L4.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],L4.prototype,"freeTextValue",void 0);_.O([_.Ij("#user-input"),_.a("design:type",HTMLTextAreaElement)],L4.prototype,"input",void 0);
_.O([_.Q("freeTextValue"),_.a("design:type",Object),_.a("design:paramtypes",[])],L4.prototype,"characterLimitClass",null);_.O([_.b("freeTextValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L4.prototype,"freeTextValueChanged",null);L4=_.O([_.Lm({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],L4);
_.u(L4,"yt-free-text-input-flow-step-renderer",function(){if(sAr===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Msu===void 0&&(Msu=document.createElement("template"));var H=Msu;I.call(l,H.content.cloneNode(!0),V.content.firstChild);sAr=V}V=sAr;return V},{mode:2});var p4I=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return V};
_.t(p4I,_.M);p4I.prototype.handleFreeTextFlowStepInputChanged=function(V){_.xB(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:V}}])};
var eB=p4I;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],eB.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],eB.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],eB.prototype,"data",void 0);eB=_.O([_.A({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],eB);
_.u(eB,"ytd-free-text-input-flow-step-renderer",function(){if(qlE!==void 0)return qlE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return qlE=V},{mode:1});var A5E;var u3E;var vfQ=function(){return _.M.apply(this,arguments)||this};
_.t(vfQ,_.M);var OWQ=vfQ;_.O([_.q(),_.a("design:type",Object)],OWQ.prototype,"data",void 0);OWQ=_.O([_.A({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],OWQ);
_.u(OWQ,"ytd-metadata-line-renderer",function(){if(u3E!==void 0)return u3E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return u3E=V},{mode:1});var CBV=function(){return _.M.apply(this,arguments)||this};
_.t(CBV,_.M);CBV.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
var k5=CBV;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],k5.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],k5.prototype,"isMasthead",void 0);k5=_.O([_.A({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],k5);
_.u(k5,"ytd-media-product-renderer",function(){if(A5E!==void 0)return A5E;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return A5E=V},{mode:1});var awV;var fw6=function(){return _.M.apply(this,arguments)||this};
_.t(fw6,_.M);fw6.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
fw6.prototype.onBillboardImageLoaded=function(){_.B$(this.hostElement,"yt-refit")};
var Fh=fw6;Fh.prototype.onBillboardImageLoaded=Fh.prototype.onBillboardImageLoaded;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Fh.prototype,"data",void 0);_.O([_.Ij("#billboardImage"),_.a("design:type",Object)],Fh.prototype,"billboardImage",void 0);_.O([_.W("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fh.prototype,"onBillboardImageLoaded",null);
Fh=_.O([_.A({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Fh);
_.u(Fh,"ytd-billboard-masthead-renderer",function(){if(awV!==void 0)return awV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return awV=V},{mode:1});var gfY;var mr6=function(){var V=_.M.apply(this,arguments)||this;V.smallSize=!1;return V};
_.t(mr6,_.M);var Xh=mr6;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Xh.prototype,"ytComponentBehaviorType",void 0);_.O([_.q(),_.a("design:type",Object)],Xh.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Xh.prototype,"smallSize",void 0);Xh=_.O([_.A({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Xh);
_.u(Xh,"ytd-bullet-formatted-string",function(){if(gfY!==void 0)return gfY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return gfY=V},{mode:1});var iWV;var VDB=function(){return _.M.apply(this,arguments)||this};
_.t(VDB,_.M);VDB.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
var zk=VDB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],zk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zk.prototype,"data",void 0);zk=_.O([_.A({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],zk);
_.u(zk,"ytd-offer-detail-renderer",function(){if(iWV!==void 0)return iWV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return iWV=V},{mode:1});var lfh;var Ifb=function(){return _.M.apply(this,arguments)||this};
_.t(Ifb,_.M);Ifb.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
var yG=Ifb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yG.prototype,"data",void 0);yG=_.O([_.A({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],yG);
_.u(yG,"ytd-offer-detail-step-renderer",function(){if(lfh!==void 0)return lfh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return lfh=V},{mode:1});var HYE;var TPb=function(){var V=_.M.apply(this,arguments)||this;V.isInOfferModule=!1;return V};
_.t(TPb,_.M);_.B=TPb.prototype;_.B.computeHasEndpoint=function(){var V;return!((V=this.data)==null||!V.onClickCommand)};
_.B.dataChanged=function(){var V;if((V=this.data)==null?0:V.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")};
_.B.detached=function(){var V;if((V=this.data)==null?0:V.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.B.handleClickEvent=function(){var V;if((V=this.data)==null?0:V.onClickCommand){var l;this.componentBehavior.resolveCommand((l=this.data)==null?void 0:l.onClickCommand)}};
_.B.onContentKeyDown=function(V){V.key==="Enter"?this.handleClickEvent(V):V.key===" "&&V.preventDefault()};
_.B.onContentKeyUp=function(V){V.key===" "&&this.handleClickEvent(V)};
var t_=TPb;t_.prototype.dataChanged=t_.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],t_.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],t_.prototype,"data",void 0);_.O([_.q({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],t_.prototype,"hasEndpoint",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],t_.prototype,"isInOfferModule",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],t_.prototype,"dataChanged",null);t_=_.O([_.A({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],t_);
_.u(t_,"ytd-channel-masthead-renderer",function(){if(HYE!==void 0)return HYE;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return HYE=V},{mode:1});var BPV;var xvb=function(){var V=_.M.apply(this,arguments)||this;V.thumbnailObjectFit="CONTAIN";V.thumbnailObjectPosition="LEFT";V.isExpanded=!1;return V};
_.t(xvb,_.M);_.B=xvb.prototype;_.B.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.B.dataChanged=function(){this.resetStates()};
_.B.computeisTapOnOfferInfoContainerEnabled=function(){var V;return((V=this.data)==null?void 0:V.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.B.onExpandBtnClick=function(){var V,l=_.y((V=this.data)==null?void 0:V.showMoreButtonRenderer,w4g);l&&_.dF(_.x7(),l.trackingParams);this.isExpanded=!this.isExpanded};
_.B.onOfferInfoClick=function(V){this.isTapOnOfferInfoContainerEnabled&&(_.qi(_.b3(V)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Mi(_.b3(V)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.B.onBottomBarClick=function(){this.executeTapCommand()};
_.B.executeTapCommand=function(){var V,l=(V=this.data)==null?void 0:V.tapCommand;l&&this.ytComponentBehavior.resolveCommand(l)};
_.B.resetStates=function(){this.isExpanded=!1};
_.vI.Object.defineProperties(xvb.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var V=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),l,I,H;return((l=this.data)==null?void 0:l.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&V&&!!((I=this.data)==null?0:(H=I.benefits)==null?0:H.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((l=_.y((V=this.data)==null?void 0:V.showMoreButtonRenderer,w4g))==null?void 0:l.showMoreButtonTitle)||((I=this.data)==null?void 0:I.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((l=_.y((V=this.data)==null?void 0:V.showMoreButtonRenderer,w4g))==null?void 0:l.showLessButtonTitle)||((I=this.data)==null?void 0:I.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var V;return(V=this.showLessButtonTitle)!=null?V:""}var l;return(l=this.showMoreButtonTitle)!=null?l:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((V=this.data)==null?void 0:V.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((l=this.data)==null?0:l.footerTitle)||((I=this.data)==null?0:I.footerSubtitle))}}});
var ri=xvb;ri.prototype.dataChanged=ri.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ri.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",String)],ri.prototype,"thumbnailObjectFit",void 0);
_.O([_.q(),_.a("design:type",String)],ri.prototype,"thumbnailObjectPosition",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.a("design:type",Boolean)],ri.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.O([_.q(),_.a("design:type",Object)],ri.prototype,"isExpanded",void 0);_.O([_.q(),_.a("design:type",Object)],ri.prototype,"data",void 0);_.O([_.q({computed:"computeIcon_(data.footerIcon)"}),_.a("design:type",String)],ri.prototype,"icon",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ri.prototype,"dataChanged",null);_.O([_.Q("data.thumbnail"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ri.prototype,"hasThumbnail",null);_.O([_.Q("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ri.prototype,"enableExpandButton",null);
_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ri.prototype,"enableOfferContentIcon",null);_.O([_.Q("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.a("design:type",Object),_.a("design:paramtypes",[])],ri.prototype,"showMoreButtonTitle",null);_.O([_.Q("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.a("design:type",Object),_.a("design:paramtypes",[])],ri.prototype,"showLessButtonTitle",null);
_.O([_.Q("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.a("design:type",String),_.a("design:paramtypes",[])],ri.prototype,"expandedBtnText",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ri.prototype,"enableBottomBar",null);ri=_.O([_.A({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],ri);
_.u(ri,"ytd-offer-card-renderer",function(){if(BPV!==void 0)return BPV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return BPV=V},{mode:1});var Uvh;var nVg=function(){return _.M.apply(this,arguments)||this};
_.t(nVg,_.M);nVg.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"}}}};
nVg.prototype.onClick=function(V){if(!_.qi(V.composedPath()||[],this.hostElement,["A".toString()])){var l,I;if((V=(I=_.y((l=this.data)==null?void 0:l.actionButton,_.RG))==null?void 0:I.command)&&!this.ytComponentBehavior.resolveCommand(V)){var H;(H=_.x7())==null||H.clickCommand(V);_.$B(this.hostElement,[V])}}};
var Gk=nVg;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Gk.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Gk.prototype,"data",void 0);Gk=_.O([_.A({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Gk);
_.u(Gk,"ytd-offer-content-renderer",function(){if(Uvh!==void 0)return Uvh;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Uvh=V},{mode:1});var $vr;var dvE=function(){return _.M.apply(this,arguments)||this};
_.t(dvE,_.M);dvE.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.vI.Object.defineProperties(dvE.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var V,l;return!((V=this.data)==null||!V.title)||!((l=this.data)==null||!l.description)}}});
var EK=dvE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],EK.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],EK.prototype,"hasHeaderData",null);EK=_.O([_.A({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],EK);
_.u(EK,"ytd-offer-section-renderer",function(){if($vr!==void 0)return $vr;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return $vr=V},{mode:1});var wbV;var NPh=function(){return _.M.apply(this,arguments)||this};
_.t(NPh,_.M);
NPh.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
var J_=NPh;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],J_.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],J_.prototype,"data",void 0);J_=_.O([_.A({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],J_);
_.u(J_,"ytd-offer-selection-step-renderer",function(){if(wbV!==void 0)return wbV;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return wbV=V},{mode:1});var KLY;var jQ2=function(){return _.M.apply(this,arguments)||this};
_.t(jQ2,_.M);jQ2.prototype.computeStyle=function(V){return V};
jQ2.prototype.computeImageWidth=function(V){return V==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
var oh=jQ2;_.O([_.q({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.a("design:type",String)],oh.prototype,"containerStyle",void 0);_.O([_.q({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.a("design:type",String)],oh.prototype,"imageWidth",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],oh.prototype,"data",void 0);oh=_.O([_.A({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],oh);
_.u(oh,"ytd-confirmation-masthead-renderer",function(){if(KLY!==void 0)return KLY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return KLY=V},{mode:1});var YzE;var LLh=function(){return _.M.apply(this,arguments)||this};
_.t(LLh,_.M);LLh.prototype.computeStyle=function(V){return V};
var h_=LLh;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],h_.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.a("design:type",String)],h_.prototype,"containerStyle",void 0);h_=_.O([_.A({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],h_);
_.u(h_,"ytd-purchase-complete-detail-renderer",function(){if(YzE!==void 0)return YzE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return YzE=V},{mode:1});var err;var PM=function(){var V=_.M.apply(this,arguments)||this;V.scriptsAppended=!1;return V};
_.t(PM,_.M);PM.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"}}}};
PM.prototype.onDataChanged=function(){var V=this.get("data.gtmId");V&&(_.k6(V,_.h6("GL","")),this.setupConversionTracking())};
PM.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var V=document.createElement("noscript");V.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(V);this.scriptsAppended=!0}};
var D2=PM;D2.prototype.onDataChanged=D2.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],D2.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],D2.prototype,"scriptsAppended",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],D2.prototype,"onDataChanged",null);D2=_.O([_.A({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],D2);
_.u(D2,"ytd-purchase-complete-step-renderer",function(){if(err!==void 0)return err;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return err=V},{mode:1});var kRV;var FLb=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(FLb,_.M);FLb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var Z2=FLb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Z2.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Z2.prototype,"darkerDarkTheme",void 0);Z2=_.O([_.A({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Z2);
_.u(Z2,"ytd-ypc-transaction-error-message-renderer",function(){if(kRV!==void 0)return kRV;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return kRV=V},{mode:1});var XbE;var zrE;var SB=function(){var V=_.M.apply(this,arguments)||this;V.handlePhoneVerificationSuccess=function(l){if(V.isValidPhoneVerificationCompletionMessageEvent(l)){var I;((I=V.data)==null?0:I.nextStepCommand)&&V.ytComponentBehavior.resolveCommand(V.data.nextStepCommand)}};
return V};
_.t(SB,_.M);SB.prototype.isValidPhoneVerificationCompletionMessageEvent=function(V){if(V.data!=="yt-phone-verification-complete")return!1;V=_.ps(V.origin);return V!==null&&V.includes("youtube.com")};
SB.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
SB.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
var Rh=SB;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Rh.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Rh.prototype,"data",void 0);Rh=_.O([_.Lm({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Rh);
_.u(Rh,"yt-feature-enablement-soft-entry-renderer",function(){if(zrE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;XbE===void 0&&(XbE=document.createElement("template"));var H=XbE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);zrE=V}V=zrE;return V},{mode:1});var yvV;var tDB;var rvE;var GRu;var EV2=function(){return _.M.apply(this,arguments)||this};
_.t(EV2,_.M);var JvY=EV2;_.O([_.q(),_.a("design:type",Object)],JvY.prototype,"data",void 0);JvY=_.O([_.Lm({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],JvY);
_.u(JvY,"yt-benefits-item-renderer",function(){if(GRu===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;rvE===void 0&&(rvE=document.createElement("template"));var H=rvE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);GRu=V}V=GRu;return V},{mode:2});var oVh;var hrh;var P3r=function(){return _.M.apply(this,arguments)||this};
_.t(P3r,_.M);P3r.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
P3r.prototype.computeisWithoutPadding=function(){var V;return((V=this.data)==null?void 0:V.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
var QG=P3r;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],QG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],QG.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.a("design:type",Boolean)],QG.prototype,"isWithoutPadding",void 0);QG=_.O([_.Lm({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],QG);
_.u(QG,"yt-benefits-section-renderer",function(){if(hrh===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;oVh===void 0&&(oVh=document.createElement("template"));var H=oVh;I.call(l,H.content.cloneNode(!0),V.content.firstChild);hrh=V}V=hrh;return V},{mode:2});var DvI=function(){return _.M.apply(this,arguments)||this};
_.t(DvI,_.M);DvI.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
DvI.prototype.computeisUsingLargeWidth=function(){var V;return((V=this.data)==null?void 0:V.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var cM=DvI;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],cM.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.a("design:type",Boolean)],cM.prototype,"isUsingLargeWidth",void 0);cM=_.O([_.Lm({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],cM);
_.u(cM,"yt-benefits-flow-step-renderer",function(){if(tDB===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;yvV===void 0&&(yvV=document.createElement("template"));var H=yvV;I.call(l,H.content.cloneNode(!0),V.content.firstChild);tDB=V}V=tDB;return V},{mode:2});var ZYu;var SzB;var RrI=function(){return _.M.apply(this,arguments)||this};
_.t(RrI,_.M);RrI.prototype.checkIsUsingLargeWidth=function(){var V;return((V=this.data)==null?void 0:V.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var WM=RrI;_.O([_.q(),_.a("design:type",Object)],WM.prototype,"data",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.O([_.q({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.a("design:type",Boolean)],WM.prototype,"isUsingLargeWidth",void 0);WM=_.O([_.Lm({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],WM);
_.u(WM,"yt-confirmation-flow-step-renderer",function(){if(SzB===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;ZYu===void 0&&(ZYu=document.createElement("template"));var H=ZYu;I.call(l,H.content.cloneNode(!0),V.content.firstChild);SzB=V}V=SzB;return V},{mode:2});var QQI;var cvE;var WLg=function(){return _.M.apply(this,arguments)||this};
_.t(WLg,_.M);var bYg=WLg;_.O([_.q(),_.a("design:type",Object)],bYg.prototype,"data",void 0);bYg=_.O([_.Lm({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],bYg);
_.u(bYg,"yt-info-flow-step-renderer",function(){if(cvE===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;QQI===void 0&&(QQI=document.createElement("template"));var H=QQI;I.call(l,H.content.cloneNode(!0),V.content.firstChild);cvE=V}V=cvE;return V},{mode:2});var qzE;var MD6;var sQB=function(){return _.M.apply(this,arguments)||this};
_.t(sQB,_.M);var pbB=sQB;_.O([_.q(),_.a("design:type",Object)],pbB.prototype,"data",void 0);pbB=_.O([_.Lm({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],pbB);
_.u(pbB,"yt-info-list-flow-step-renderer",function(){if(MD6===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;qzE===void 0&&(qzE=document.createElement("template"));var H=qzE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);MD6=V}V=MD6;return V},{mode:2});var Av6=_.W1(function(V){var l=V.data;return _.Y("styled-text-view-model",{class:_.ii("ytStyledTextViewModelHost",function(){return oAQ(l().fontAttributes)},function(){return JOP(l().color)})},_.Y(_.Ni,{text:function(){return l().text},
ariaLabel:function(){var I,H,T;return(T=(I=l().accessibility)==null?void 0:(H=I.accessibilityData)==null?void 0:H.label)!=null?T:""}}))},"te");
Av6.idomCompat=!0;var uMY=_.W1(function(V){var l=function(){var T,x,n,w;return(w=(n=(T=V.alt)==null?void 0:T.call(V))!=null?n:(x=V.data().accessibilityData)==null?void 0:x.label)!=null?w:""},I=function(){return V.data().imageWidth},H=function(){return V.data().imageHeight};
return _.Y("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.Y(_.NS,{cond:function(){var T=V.data();if(T){var x,n,w;var N=((x=_.F().resolve(_.Cs(_.DA)))==null?0:x())?(n=T.imageDark)!=null?n:T.imageLight:(w=T.imageLight)!=null?w:T.imageDark}else N=void 0;return N},
then:function(T){return _.Y(_.cX,Object.assign({},V,{data:T,alt:l,targetWidth:I,targetHeight:H,preserveHeight:!0,preserveWidth:!0}))}}))},"ue");
uMY.idomCompat=!0;var bo=_.W1(function(V){var l=V.data;V=_.S5(function(){return l().slots},[]);
var I=_.S5(function(){return l().layoutProperties},{}),H=_.F().resolve(_.Sz);
return _.Y("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:yOY(I,H)},_.Y(_.Ks,{each:V,keyBy:"INDEX"},function(T){return _.Y("div",{class:"ytContainerLayoutViewModelSlot",style:yOY(function(){return T().layoutProperties},H)},_.Y(_.rw,{data:function(){return T().contents}},{containerLayoutViewModel:bo,
badgeViewModel:_.dn,buttonViewModel:_.Db,styledTextViewModel:Av6,contentPreviewImageViewModel:function(x){return _.Y(_.wn,{data:x.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(x){return _.Y(uMY,{data:x.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"ve");
bo.idomCompat=!0;var vVh=_.W1(function(V){var l=V.data;var I=V.stateFns;var H=function(){var L=l(),e=L.productId;return!(!L.clearGroupId&&!e)},T=function(){var L=l(),e=L.clearGroupId;
return(L=L.productId)?I().isProductSelected(L):e?I().getSelectedProductByGroupId(e)==null:!1},x=function(){var L=l(),e=L.clearGroupId;
if(L=L.productId)I().onProductSelected(L);else if(e)I().onClearGroupSelected(e)},n=function(){var L=l(),e=L.clearGroupId;
if(L=L.productId){var k;return"group:"+(((k=I().getProductById(L))==null?void 0:k.groupId)||"")}return e?"group:"+e:""},w=_.S5(function(){return l().header},[]),N=_.S5(function(){return l().body},[]);
return _.Y("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.Y(_.NS,{cond:function(){return w().length>0||H()},
then:function(){return _.Y("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.Y("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.Y(_.rw,{data:w},{containerLayoutViewModel:function(L){return _.Y("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Y(bo,{data:L.data}))},
styledTextViewModel:function(L){return _.Y("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Y(Av6,{data:L.data}))}})),_.Y(_.NS,{cond:H,
then:function(){return _.Y("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.Y(_.sni,{checked:T,name:n,onChange:x}))}}))}}),_.Y(_.NS,{cond:function(){return N().length>0},
then:function(){return _.Y("div",null,_.Y(_.rw,{data:N},{containerLayoutViewModel:function(L){return _.Y("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Y(bo,{data:L.data}))}}))}}))},"we");
vVh.idomCompat=!0;var OY6=_.W1(function(V){var l=V.data;var I=V.stateFns;return _.Y("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.Y(_.NS,{cond:function(){return l().banner},
then:function(H){return _.Y("div",{class:"ytPdpCardViewModelBanner"},_.Y(_.Ni,{text:H}))}}),_.Y(_.rw,{data:function(){return l().sections}},{pdpCardSectionViewModel:function(H){H=H.data;
var T={};return _.Y("div",{class:_.ii("ytPdpCardViewModelSectionContainer",(T.ytPdpCardViewModelShowDividers=function(){return l().showDividers},T))},_.Y(vVh,{data:H,
stateFns:I}))}}))},"xe");
OY6.idomCompat=!0;var C3g=_.W1(function(V){var l=V.data;var I=V.isOverlay;V={};return _.Y("pdp-masthead-view-model",{class:_.ii("ytPdpMastheadViewModelHost",(V.ytPdpMastheadViewModelIsOverlay=I,V))},_.Y(_.rw,{data:function(){return l().image}},{contentPreviewImageViewModel:_.wn,
themedImageViewModel:function(H){return _.Y(uMY,{data:H.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.Y(_.NS,{cond:function(){return l().title},
then:function(H){return _.Y("h1",{class:"ytPdpMastheadViewModelHeading"},_.Y(_.Ni,{text:H,isOverlay:I}))}}),_.Y(_.Ks,{each:function(){var H;
return(H=l().finePrint)!=null?H:[]}},function(H){return _.Y("div",{class:"ytPdpMastheadViewModelFinePrint"},_.Y(_.Ni,{text:H,
isOverlay:I}))}))},"ye");
C3g.idomCompat=!0;var afQ=_.W1(function(V){var l=V.data;var I=V.stateFns;return _.Y("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.Y(_.Ks,{each:function(){var H=I().getSelectedPricingOptions().map(function(x){return x.pricingOptionId}),T=I().getSelectedProductByGroupId(_.Ri(l().groupId));
return T?T.pricingOptions.map(function(x){return{pricingOption:x,isSelected:H.includes(x.pricingOptionId)}}):(_.oV(Error("Ij`"+_.Ri(l().groupId))),[])},
keyBy:"INDEX"},function(H){return _.Y("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.Y("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.Y(_.rw,{data:function(){return H().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:bo})),_.Y("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.Y(_.sni,{checked:function(){return H().isSelected},
onClick:function(){I().onPricingOptionSelected(H().pricingOption.pricingOptionId)}})))}))},"ze");
afQ.idomCompat=!0;var ffb=_.W1(function(V){var l=V.data;var I=V.stateFns;return _.Y("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.Y(_.rw,{data:function(){var H,T;return(T=(H=I().getSelectedPricingOptions()[0])==null?void 0:H.primaryButton)!=null?T:l().emptyStateButton}},{buttonViewModel:_.Db}))},"Ae");
ffb.idomCompat=!0;var gVE=_.W1(function(V){var l=V.stateFns;return _.Y("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.Y(_.rw,{data:function(){return l().getSelectedPricingOptions().flatMap(function(I){return I.summaryLines}).filter(function(I){return!!I})}},{containerLayoutViewModel:function(I){return _.Y("div",{class:"ytPdpSummaryViewModelLineItem"},_.Y(bo,{data:I.data}))}}))},"Be");
gVE.idomCompat=!0;var mv6=_.W1(function(V){var l=V.data;V={};return _.Y("divider-view-model",{class:_.ii("divider-view-model-wiz",(V["divider-view-model-wiz__inset-thin-padding"]=function(){return l().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},V))},_.Y("div",{class:_.ii("divider-view-model-wiz__base-divider",function(){return b82(l().dividerStyle)}),
style:_.na({"background-color":function(){return l().backgroundColor?_.tv(l().backgroundColor):void 0}})}))},"Ce");
mv6.idomCompat=!0;var iYY=_.W1(function(V){function l(Z){var S=n();_.ZR(_.h9("pdpStateEntity",S,{key:S,selectedPricingOptions:Z}))}
var I=V.data;var H=V.internalScrolling;var T=V.stateFnsForTesting;var x=_.S5(function(){return I().allProducts},[]),n=_.S5(function(){return I().pdpStateEntityKey},""),w=_.dw(hR6,n),N=_.Ny(function(){_.ES(!0);
var Z;return(Z=T==null?void 0:T())!=null?Z:WKP(w,x,l)},void 0,"POBqwe"),L=_.S5(function(){return I().body},[]),e=_.S5(function(){return I().columnBreakHints},[]),k=function(){return I().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},X=function(){return k()||I().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},r=_.Ny(function(){var Z=_.iP(I().background),S;
if(Z==null?0:(S=Z.sources)==null?0:S.length){var p=p===void 0?!0:p;Z=_.Nsw(void 0,Z.sources,void 0,p,p?1E3:void 0,p?void 0:1E3)}else Z=null;return Z},void 0,"BkCmEd");
V=_.na({"--pdp-view-model-background":function(){return r()?"url("+r()+")":void 0}});
var E={};H=_.ii("ytPdpViewModelHost",(E.ytPdpViewModelHasBackground=function(){return X()||!!r()},E.ytPdpViewModelHasDarkBackground=X,E.ytPdpViewModelHasScrim=k,E.ytPdpViewModelInternalScrolling=_.S5(H,!1),E));
var D=function(Z){var S={};return _.ii("ytPdpViewModelItem",(S.ytPdpViewModelFullBleed=function(){return _.dPN(Z())==="dividerViewModel"||_.dPN(Z())==="sectionHeaderViewModel"},S.ytPdpViewModelNoVerticalPadding=function(){return _.dPN(Z())==="sectionHeaderViewModel"},S))};
_.XW(function(){var Z=I().onStartCommand;if(Z&&(Z=_.to(Z))){var S;(S=_.F().resolve(_.aw))==null||S.resolveCommand(Z)}});
return _.Y("pdp-view-model",{class:H,style:V},_.Y("div",{class:"ytPdpViewModelColumnContainer"},_.Y(_.Ks,{each:function(){return qAQ(L(),e())},
keyBy:"INDEX"},function(Z){return _.Y("div",{class:"ytPdpViewModelColumn"},_.Y(_.rw,{data:Z},{containerLayoutViewModel:function(S,p){S=S.data;return _.Y("div",{class:D(function(){return Z()[p()]})},_.Y(bo,{data:S}))},
dividerViewModel:function(S,p){S=S.data;return _.Y("div",{class:D(function(){return Z()[p()]})},_.Y(mv6,{data:S}))},
pdpCardViewModel:function(S,p){S=S.data;return _.Y("div",{class:D(function(){return Z()[p()]})},_.Y(OY6,{data:S,
stateFns:N}))},
pdpMastheadViewModel:function(S,p){S=S.data;return _.Y("div",{class:D(function(){return Z()[p()]})},_.Y(C3g,{data:S,
isOverlay:X}))},
pdpPricingOptionSelectorViewModel:function(S,p){S=S.data;return _.Y("div",{class:D(function(){return Z()[p()]})},_.Y(afQ,{data:S,
stateFns:N}))},
pdpPrimaryButtonViewModel:function(S,p){S=S.data;return _.Y("div",{class:D(function(){return Z()[p()]})},_.Y(ffb,{data:S,
stateFns:N}))},
pdpSummaryViewModel:function(S,p){S=S.data;return _.Y("div",{class:D(function(){return Z()[p()]})},_.Y(gVE,{data:S,
stateFns:N}))},
sectionHeaderViewModel:function(S,p){S=S.data;return _.Y("div",{class:D(function(){return Z()[p()]})},_.Y(_.a$,{data:S}))}}))})))},"De");
iYY.idomCompat=!0;_.MR(iYY,"pdp-view-model",{props:{data:_.b9,stateFnsForTesting:_.qR,internalScrolling:_.qR}});var V5E=_.W1(function(V){var l=V.data;var I=V.className;var H=_.dw(_.x_,function(){return l().flowStateEntityKey});
return _.Y("ytm-premium-purchase-button-renderer",{class:_.ii("yt-premium-purchase-button-renderer",I)},_.Y(_.rw,{data:function(){var T;return(T=_.y(H(),Tk))==null?void 0:T.primaryButtonOverride}},{buttonRenderer:function(T){return _.Y(_.iS,{data:T.data,
className:I})},
buttonViewModel:function(T){return _.Y(_.Db,{data:T.data,className:I})}}))},"Ee");
V5E.idomCompat=!0;var lRu=_.W1(function(V){var l=V.data;var I=function(){return MXV(l().style)},H=_.ii("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I),T=_.ii("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I);
return _.Y("yt-flow-bottom-bar-renderer",{class:_.ii("yt-flow-bottom-bar-renderer",V.className,I)},_.Y(_.rw,{data:function(){return l().secondaryButton}},{buttonRenderer:function(x){return _.Y(_.iS,{data:x.data,
className:T})},
buttonViewModel:function(x){return _.Y(_.Db,{data:x.data,className:T})},
premiumPurchaseButtonRenderer:function(x){return _.Y(V5E,{data:x.data,className:T})}}),_.Y(_.rw,{data:function(){return l().primaryButton}},{buttonRenderer:function(x){return _.Y(_.iS,{data:x.data,
className:H})},
buttonViewModel:function(x){return _.Y(_.Db,{data:x.data,className:H})},
premiumPurchaseButtonRenderer:function(x){return _.Y(V5E,{data:x.data,className:H})}}))},"Fe");
lRu.idomCompat=!0;_.MR(lRu,"yt-flow-bottom-bar-renderer",{props:{data:_.b9,className:_.b9}});var IRr=_.W1(function(V){return _.Y("yt-offer-summary-renderer",{class:_.ii(V.className,"ytOfferSummaryRendererHost")},_.Y("div",{class:"ytOfferSummaryRendererTextContainer"},_.Y("div",{class:"ytOfferSummaryRendererEyebrowText"},_.Y(_.Ni,{text:function(){return V.data().eyebrowText}})),_.Y("div",{class:"ytOfferSummaryRendererTitle"},_.Y(_.Ni,{text:function(){return V.data().title}})),_.Y("div",{class:"ytOfferSummaryRendererSubtitle"},_.Y(_.Ni,{text:function(){return V.data().subtitle}})),_.Y("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.Y(_.Ks,{each:function(){var l;
return(l=V.data().featureListData)!=null?l:[]}},function(l){var I;
return _.Y("div",{class:"ytOfferSummaryRendererFeatureList"},_.Y(_.dq,{icon:(I=l.icon)==null?void 0:I.iconType,className:l.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.Y("div",{class:"ytOfferSummaryRendererFeatureListText"},_.Y(_.Ni,{text:l.text})))})),_.Y("div",{class:"ytOfferSummaryRendererDescription"},_.Y(_.Ni,{text:function(){return V.data().description}}))))},"Ge");_.MR(_.W1(function(V){var l={};l=_.ii("ytOfferSummaryFlowStepRendererHost",(l.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=V.shouldDisableHeaderTopMargin,l));return _.Y("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:l},_.Y("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.Y("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.Y(_.Ni,{text:function(){return V.data().header}})),_.Y("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.Y(_.Ni,{text:function(){return V.data().subtitle}}))),_.Y("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.Y(_.rw,{data:function(){return V.data().offerSummary}},{offerSummaryRenderer:function(I){return _.Y(IRr,{data:I.data,
className:V.flowClassName})}})))},"He"),"yt-offer-summary-flow-step-renderer",{props:{data:_.qR,
flowClassName:_.qR,flowStateEntityKey:_.qR,shouldDisableHeaderTopMargin:_.qR}});var HmV=_.W1(function(V){var l=V.data;var I=V.className;var H=V.flowStateEntityKey;var T=V.selectionStepStyle;V=_.Bu(function(N){var L=l(),e=H==null?void 0:H();N.target&&(N.stopPropagation(),N=e||"",e=_.x_(_.P1().getState(),N),L=Object.assign({},e,{premiumPurchaseFlowState:{selectedOptionId:L.optionId,primaryButtonOverride:L.primaryButtonOverride}}),_.P1().dispatch(_.K6("flowStateEntity",N,L)));return!1});
var x=function(){return(H==null?void 0:H())||""},n=_.dw(_.x_,x);
_.XW(function(){var N=l(),L=x(),e=n();!_.y(e,Tk)&&N.defaultSelected&&L!==""&&N.primaryButtonOverride&&saI(N.optionId||"",L,N.primaryButtonOverride,e)});
var w={};return _.Y("ytm-option-item-renderer",{"on:click":V,class:_.ii(I,"ytm-option-item-renderer",(w["ytm-option-item-renderer--lp2-style"]=function(){return(T==null?void 0:T())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},w))},_.Y("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.Y("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var N=l(),L=x(),e=n();e=_.y(e,Tk);return(e?(e==null?void 0:e.selectedOptionId)||"":N.defaultSelected&&L!==""?(N==null?void 0:N.optionId)||"":"")===l().optionId},
name:("input"+_.Sn(_.RJ)).toString()})),_.Y("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.Y(_.NS,{cond:function(){return l().eyebrowText},
then:function(){return _.Y("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.Y(_.Ni,{text:function(){return l().eyebrowText}}))}}),_.Y("div",{class:"ytm-option-item-renderer__option-item-title"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.Y(_.Ni,{text:function(){return l().subtitle}})),_.Y("div",{class:"ytm-option-item-renderer__option-item-description"},_.Y(_.Ni,{text:function(){return l().description}}))))},
"Ie");var T_u=_.W1(function(V){var l=V.data;var I=V.flowClassName;var H=V.flowStateEntityKey;var T=V.selectionStepStyle;return _.Y("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.Y("div",{class:"yt-option-section-renderer__option-section-header-section"},_.Y("div",{class:"yt-option-section-renderer__option-section-header"},_.Y(_.Ni,{text:function(){return l().title}}),_.Y(_.rw,{data:function(){return l().titleBadge}},{badgeViewModel:function(x){return _.Y(_.dn,
{data:x.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.Y(_.NS,{cond:function(){return l().subtitle},
then:function(){return _.Y("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.Y(_.Ni,{text:function(){return l().subtitle}}))}}),_.Y(_.NS,{cond:function(){return l().featureListData},
then:function(x){return _.Y("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.Y(_.Ks,{each:x},function(n){var w;return _.Y("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.Y(_.dq,{icon:(w=n.icon)==null?void 0:w.iconType,className:n.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"}),_.Y("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.Y(_.Ni,{text:n.text})))}))}}),_.Y(_.Ks,{each:function(){return l().sectionDisclaimers||[]}},function(x){return _.Y("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.Y(_.Ni,{text:x}))})),_.Y(_.rw,{data:function(){return l().optionItems}},{optionItemRenderer:function(x){return _.Y("div",{class:"yt-option-section-renderer__option-item"},_.Y(HmV,{data:x.data,
className:I,flowStateEntityKey:H,selectionStepStyle:T}))}}),_.Y(_.NS,{cond:function(){return l().offerText},
then:function(){return _.Y("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.Y(_.Ni,{text:function(){return l().offerText}}))}}))},"Je");
T_u.idomCompat=!0;var B_u=_.W1(function(V){var l=V.data;var I=V.flowClassName;var H=V.flowStateEntityKey;V=V.isDesktop;var T=function(){var L;return(L=l().flowStateEntityKey)!=null?L:H==null?void 0:H()},x=function(){return(T==null?void 0:T())||""},n=function(){return l().style},w=_.dw(_.x_,x);
_.XW(function(){var L=l(),e=x(),k=w();!_.y(k,Tk)&&L.noPreselect&&e!==""&&L.defaultButtonOverride&&saI("default",e,L.defaultButtonOverride,k)});
var N={};return _.Y("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.ii("ytm-option-selection-flow-step-renderer",(N["ytm-option-selection-flow-step-renderer--desktop"]=V,N["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return l().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},N))},_.Y("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"},
_.Y("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.Y(_.Ni,{text:function(){return l().header}})),_.Y("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.Y(_.Ni,{text:function(){return l().subtitle}}))),_.Y(_.rw,{data:function(){return l().optionItems||[]}},{optionItemRenderer:function(L){return _.Y("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Y(HmV,{data:L.data,
className:I,flowStateEntityKey:T,selectionStepStyle:n}))},
optionSectionRenderer:function(L){return _.Y("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Y(T_u,{data:L.data,flowClassName:I,flowStateEntityKey:T,selectionStepStyle:n}))}}))},"Ke");
B_u.idomCompat=!0;_.MR(B_u,"yt-option-selection-flow-step-renderer",{props:{data:_.b9,flowClassName:_.b9,flowStateEntityKey:_.b9,isDesktop:_.b9}});var pU6,AOB;_.qP=_.W1(function(V){var l=_.Rj(V,{type:1,disablePadding:!1,disablePrimaryButton:!1}),I=l.data,H=l.type;V=l.disablePadding;var T=l.disablePrimaryButton,x=l.onClickPrimaryButton,n=function(){return I().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},w=function(){return{disabled:T(),
state:T()?"disabled":"active"}},N=function(){return I().leadingLabel||I().trailingLabel};
l={};return _.Y("yt-panel-footer-view-model",{class:_.ii("yt-panel-footer-view-model-wiz",(l["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return I().shouldHideDivider},l["yt-panel-footer-view-model-wiz--disable-padding"]=V,l))},_.Y(_.NS,{cond:N,
then:function(){var L={},e={};return _.Y("div",{class:_.ii("yt-panel-footer-view-model-wiz__text-row",(L["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var k=I();return!(!k.leadingLabel&&!k.trailingLabel||!k.primaryButton&&!k.secondaryButton)},L))},_.Y(_.Ni,{text:function(){return I().leadingLabel},
className:_.ii((e["yt-panel-footer-view-model-wiz--text-padding"]=N,e))}),_.Y(_.Ni,{text:function(){return I().trailingLabel}}))}}),_.Y(_.NS,{cond:n,
then:function(){var L={};return _.Y("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.Y("div",{class:_.ii("yt-panel-footer-view-model-wiz__primary-button",(L["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return I().secondaryButton},L))},_.Y(_.rw,{data:function(){return I().primaryButton}},{buttonViewModel:function(e){return _.Y(_.Db,{data:e.data,
buttonOverrides:w,onClick:x})}})),_.Y(_.rw,{data:function(){return I().secondaryButton}},{buttonViewModel:_.Db}))}}),_.Y(_.NS,{cond:function(){return!n()},
then:function(){var L={},e={},k={};return _.Y("div",{class:_.ii("yt-panel-footer-view-model-wiz__button-row",(L["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===H()},L))},_.Y("div",{class:_.ii("yt-panel-footer-view-model-wiz__button-row--left-button",(e["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===H()},e["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!I().secondaryButton||0===H()},e["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===H()},e))},_.Y(_.rw,{data:function(){return I().secondaryButton}},{buttonViewModel:_.Db})),_.Y("div",{class:_.ii("yt-panel-footer-view-model-wiz__primary-button",(k["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===H()||1===H()},k["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===H()},k))},_.Y(_.rw,{data:function(){return I().primaryButton}},{buttonViewModel:function(X){return _.Y(_.Db,{data:X.data,
buttonOverrides:w,onClick:x})}})))}}))},"Le");
_.qP.idomCompat=!0;_.xeg=_.W1(function(V){V=_.Rj(V,{disablePadding:!1});var l=V.data,I=V.disablePadding;V=_.CKb(function(){return l().formId});
var H=V.onSubmit,T=V.isValid,x=V.isSubmitting;return _.Y("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.Y(_.rw,{data:function(){return l().panelFooter}},{panelFooterViewModel:function(n){return _.Y(_.qP,{data:n.data,
onClickPrimaryButton:function(){H()},
disablePrimaryButton:function(){return!T()||x()},
disablePadding:I})}}))},"Me");_.MR(_.xeg,"yt-form-footer-view-model",{props:{data:_.b9,disablePadding:_.b9}});_.MR(_.W1(function(V){return _.Y("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.Y("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.Y(_.NS,{cond:function(){var l;return(l=V.data())==null?void 0:l.image},
then:function(l){return _.Y(_.cX,{data:l,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.Y("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.Y(_.Ni,{text:function(){var l;
return(l=V.data())==null?void 0:l.title}})),_.Y("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.Y(_.Ni,{text:function(){var l;
return(l=V.data())==null?void 0:l.subtitle}})),_.Y("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.Y(_.rw,{data:function(){var l;
return(l=V.data())==null?void 0:l.viewTipsButton}},{buttonViewModel:_.Db}))))},"Ne"),"yt-contributor-zero-state-view-model",{props:{data:_.b9}});var Ue6=_.W1(function(V){var l=_.dw(ahh,_.S5(function(){var I;return(I=V.data())==null?void 0:I.noteFeedEntityKey},""));
return _.Y("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.Y("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.Y("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.Y(_.NS,{cond:function(){var I,H;return(I=V.data())==null?void 0:(H=I.noteData)==null?void 0:H.isPinned},
then:function(){return _.Y(_.dq,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.Y(_.Ni,{text:function(){var I,H;
return(I=V.data())==null?void 0:(H=I.noteData)==null?void 0:H.headerText}}),_.Y("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.Y(_.Ni,{text:function(){var I,H;
return(I=V.data())==null?void 0:(H=I.noteData)==null?void 0:H.delimiter}})),_.Y(_.Ni,{text:function(){var I,H;
return(I=l())==null?void 0:(H=I.contributorNote)==null?void 0:H.publishedTimeText}})),_.Y(_.rw,{data:function(){var I,H,T,x=(I=V.data())==null?void 0:I.noteData;
I=(H=l())==null?void 0:(T=H.contributorNote)==null?void 0:T.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:x.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:x.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:x.deleteDialogTitle}]},dialogMessages:[{runs:[{text:x.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:x.deleteActionText}]},command:{performCommentActionEndpoint:{action:I}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:x.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.Y("div",{class:"ytNoteViewModelNoteContent"},_.Y(_.Ni,{text:function(){var I,H;
return(I=l())==null?void 0:(H=I.contributorNote)==null?void 0:H.text}})))},"Oe");
Ue6.idomCompat=!0;_.MR(Ue6,"yt-note-view-model",{props:{data:_.b9}});var MP=_.W1(function(V){var l=_.Rj(V,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),I=l.label,H=l.text,T=l.placeholder,x=l.hint;V=l.rows;var n=l.overflowStyle,w=l.outline,N=l.disabled,L=l.disableNewLines,e=l.characterLimit,k=l.validation,X=l.onInput,r=_.sZ();l=_.U(_.Ux(function(){return H()}));
var E=l.next().value,D=l.next().value;l=_.U(_.xi(!1,void 0,"fXvinf"));var Z=l.next().value,S=l.next().value,p=function(){S(!0)},Vf=function(){S(!1)};
_.XW(function(){var wb=r.value,CK=n(),CZ=E();CK==="expand-vertically"&&CZ&&fhY(wb);r.value.addEventListener("focusin",p);r.value.addEventListener("focusout",Vf)});
_.rx(function(){r.value.removeEventListener("focusin",p);r.value.removeEventListener("focusout",Vf)});
var C=function(){var wb;return(wb=k())==null?void 0:wb.validate(E())},By=function(){return e()&&!C()&&E().length>e().maxChars},lN=function(){return!!C()||By()};
l=_.Bu(function(wb){if(!wb.currentTarget)return!1;wb=wb.currentTarget;D(wb.value);n()==="expand-vertically"&&fhY(wb);X==null||X(wb.value);return!0});
var wW=_.Bu(function(wb){L()&&wb.key==="Enter"&&wb.preventDefault();return!1}),o1=_.Bu(function(){r.value.focus()}),h1=function(){return T()||I()},ec={},Zg={},Va={};
return _.Y("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.Y("div",{class:_.ii("ytStandardsTextareaShapeTextareaContainer",(ec.ytStandardsTextareaShapeTextareaContainerOutline=w,ec.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=N,ec.ytStandardsTextareaShapeTextareaContainerOutlineError=lN,ec)),"on:click":o1},_.Y("label",{class:_.ii("ytStandardsTextareaShapeLabel",(Zg.ytStandardsTextareaShapeLabelFocused=Z,Zg.ytStandardsTextareaShapeLabelDisabled=N,Zg.ytStandardsTextareaShapeLabelError=
function(){return lN()&&!N()},Zg.ytStandardsTextareaShapeLabelHidden=function(){return!Z()&&!E()&&!!h1()},Zg))},I),_.Y("div",{class:_.ii("ytStandardsTextareaShapePlaceholder",(Va.ytStandardsTextareaShapePlaceholderVisible=function(){return!Z()&&!E()},Va)),
"aria-hidden":"true"},h1),_.Y("textarea",{el:r,class:"ytStandardsTextareaShapeTextarea",rows:V,disabled:N,placeholder:h1,"on:input":l,"on:keydown":wW},E)),_.Y(_.NS,{cond:function(){return x()&&!lN()},
then:function(){var wb={};return _.Y("div",{class:_.ii("ytStandardsTextareaShapeHint",(wb.ytStandardsTextareaShapeHintDisabled=N,wb))},_.Y("div",{class:"ytStandardsTextareaShapeHintHintMessage"},x))}}),_.Y(_.NS,{cond:C,
then:function(){return _.Y(ns2,{disabled:N},_.Y("div",{class:"ytStandardsTextareaShapeErrorMessage"},C))}}),_.Y(_.NS,{cond:e,
then:function(wb){return _.Y(_.NS,{cond:By,then:function(){return _.Y(ns2,{disabled:N},_.Y("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return wb().errorMessage}),_.Y("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return E().length+"/"+wb().maxChars}))}})}}))},"Pe");
MP.idomCompat={callbacks:{onInput:!0}};var ns2=_.W1(function(V){var l={};return _.Y("div",{class:_.ii("ytStandardsTextareaShapeError",(l.ytStandardsTextareaShapeErrorDisabled=V.disabled,l)),role:"alert"},_.Y(_.dq,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),V.children)},"Qe");_.$eb=_.W1(function(V){var l=V.data;return _.Y("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.Y(MP,{text:V.text,label:function(){var I;return(I=l().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=l().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=l().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=l().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=l().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:V.disabled,disableNewLines:function(){var I;return(I=l().displayProperties)==null?void 0:I.disableNewLines},
onInput:V.onInput,characterLimit:V.characterLimit,validation:V.validation,rows:function(){var I;return(I=l().displayProperties)==null?void 0:I.rows}}))},"Re");_.deE=_.W1(function(V){var l=V.data;return _.Y("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.Y(MP,{text:V.text,label:function(){var I;return(I=l().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=l().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=l().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=l().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=l().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var I;return(I=l().displayProperties)==null?void 0:I.disableNewLines},
onInput:V.onInput,characterLimit:V.characterLimit,validation:V.validation,rows:function(){var I;return(I=l().displayProperties)==null?void 0:I.rows}}))},"Se");var w1V=_.W1(function(V){var l=_.U(_.Ux(function(){var h1,ec;return((h1=V.data().structuredContextNoteFormSchema)==null?0:(ec=h1.initialValues)==null?0:ec.noteBody)?V.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),I=l.next().value,H=l.next().value;
l=_.U(_.Ux(function(){V.data();return!1}));
var T=l.next().value,x=l.next().value;l=_.U(_.Ux(function(){V.data();return!1}));
var n=l.next().value,w=l.next().value;l=_.U(_.Ux(function(){var h1,ec;return((h1=V.data().structuredContextNoteFormSchema)==null?0:(ec=h1.initialValues)==null?0:ec.timestamp)?V.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var N=l.next().value,L=l.next().value;l=_.U(_.Ux(function(){V.data();return!1}));
var e=l.next().value,k=l.next().value;l=_.U(_.Ux(function(){var h1,ec;return((h1=V.data().structuredContextNoteFormSchema)==null?0:(ec=h1.initialValues)==null?0:ec.sources)?[V.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var X=l.next().value,r=l.next().value;l=_.U(_.Ux(function(){V.data();return!1}));
var E=l.next().value,D=l.next().value;l=_.U(_.Ux(function(){return!1}));
var Z=l.next().value,S=l.next().value;_.XW(function(){var h1;_.O8B((h1=V.data().structuredContextNoteFormSchema)==null?void 0:h1.id,{isSubmitting:Z,onSubmit:function(){S(!0);var ec=B6E(I(),N(),X(),V.data()),Zg=_.F().resolve(_.aw);ec&&Zg&&Zg.resolveCommand(ec,{commandController:{onSuccess:function(){S(!1)}}})},
isValid:function(){return T()&&!n()&&!e()&&!E()}})});
var p=function(h1){if(h1!==void 0&&(H(h1),!T()&&h1.length>0&&x(!0),T())){var ec=i8b(V.data());if(ec){var Zg=ec.minLength;ec=ec.maxLength;Zg&&h1.length<Zg?w(!0):ec&&h1.length>ec?w(!0):w(!1)}}},Vf=function(h1){if(h1!==void 0){L(h1);
if(h1.length>0){var ec,Zg,Va,wb,CK=l8Q((ec=V.data())==null?void 0:(Zg=ec.structuredContextNoteFormSchema)==null?void 0:(Va=Zg.fieldSchemas)==null?void 0:(wb=Va.timestamp)==null?void 0:wb.validationSchema);if(CK&&(ec=CK.regex)&&!(new RegExp(ec)).test(h1)){k(!0);return}}k(!1)}},C=function(h1){if(h1!==void 0){var ec=h1.split(/[ \n]/).map(function(Zg){return Zg.trim()});
r(ec);if(h1.length>0)for(h1=_.U(ec),ec=h1.next();!ec.done;ec=h1.next())if(!T6r(ec.value)){D(!0);return}D(!1)}},By=function(){return{validate:function(h1){if(T()){var ec=i8b(V.data());
if(ec){var Zg=ec.minLength;ec=ec.translations;if(Zg&&h1.length<Zg)return ec==null?void 0:ec.minLengthErrorMessage}}}}},lN=function(){var h1=i8b(V.data()),ec=h1==null?void 0:h1.maxLength,Zg;
h1=h1==null?void 0:(Zg=h1.translations)==null?void 0:Zg.maxLengthErrorMessage;if(ec&&h1)return{maxChars:ec,errorMessage:h1}},wW=function(){return{validate:function(h1){if(h1){var ec,Zg,Va,wb,CK=l8Q((ec=V.data())==null?void 0:(Zg=ec.structuredContextNoteFormSchema)==null?void 0:(Va=Zg.fieldSchemas)==null?void 0:(wb=Va.timestamp)==null?void 0:wb.validationSchema);
if(CK&&(ec=CK.regex,CK=CK.translations,ec&&!(new RegExp(ec)).test(h1)))return CK==null?void 0:CK.regexErrorMessage}}}},o1=function(){return{validate:function(h1){if(h1){var ec,Zg,Va,wb,CK=HTY((ec=V.data())==null?void 0:(Zg=ec.structuredContextNoteFormSchema)==null?void 0:(Va=Zg.fieldSchemas)==null?void 0:(wb=Va.sources)==null?void 0:wb.validationSchema);
if(CK&&(ec=CK.translations,ec==null?0:ec.selectedErrorMessage))for(h1=h1.split(/[ \n]/).map(function(CZ){return CZ.trim()}),h1=_.U(h1),Zg=h1.next();!Zg.done;Zg=h1.next())if(!T6r(Zg.value))return h1=void 0,(h1=ec)==null?void 0:h1.selectedErrorMessage}}}};
return _.Y("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.Y("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Y(_.rw,{data:function(){var h1;return(h1=V.data())==null?void 0:h1.noteContents}},{textFormFieldViewModel:function(h1){return _.Y(_.deE,{data:h1.data,
onInput:p,validation:By,characterLimit:lN})},
textFieldViewModel:function(h1){return _.Y(_.$eb,{data:h1.data,onInput:p,validation:By,characterLimit:lN})}})),_.Y("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Y(_.rw,{data:function(){var h1;
return(h1=V.data())==null?void 0:h1.noteTimestamp}},{textFormFieldViewModel:function(h1){return _.Y(_.deE,{data:h1.data,
onInput:Vf,validation:wW})},
textFieldViewModel:function(h1){return _.Y(_.$eb,{data:h1.data,onInput:Vf,validation:wW})}})),_.Y("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Y(_.rw,{data:function(){var h1;
return(h1=V.data())==null?void 0:h1.noteSources}},{textFormFieldViewModel:function(h1){return _.Y(_.deE,{data:h1.data,
onInput:C,validation:o1})},
textFieldViewModel:function(h1){return _.Y(_.$eb,{data:h1.data,onInput:C,validation:o1})}})))},"Te");
w1V.idomCompat=!0;_.MR(w1V,"yt-structured-context-note-view-model",{props:{data:_.b9}});var N_E=_.W1(function(V){var l=_.U(_.Ux(function(){var x;if((x=V.controlled)==null?0:x.call(V))return[];var n;return(((n=V.data())==null?void 0:n.chips)||[]).map(function(w){w=_.y(w,_.bF);if(w==null?0:w.selected)return xJ2(w.chipValue)}).filter(function(w){return w!==void 0})})),I=l.next().value,H=l.next().value,T=function(x){var n=xJ2(x.chipValue);
if(n!==void 0){var w;if((w=V.controlled)==null?0:w.call(V))return void V.controlled().onTap(n);x=I().includes(n)?[].concat(_.oI(I().filter(function(L){return L!==n}))):[].concat(_.oI(I()),[n]);
H(x);var N;if((N=V.uncontrolled)==null?0:N.call(V))V.uncontrolled().onUpdate(x)}};
return _.Y("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.Y(_.Ks,{each:function(){return V.data().chips||[]}},function(x){return _.Y("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.Y(_.Z5i,{data:function(){return _.y(x,_.bF)},
selected:function(){var n;if(n=_.y(x,_.bF)){var w=xJ2(n.chipValue);if(w!==void 0){var N;n=((N=V.controlled)==null?0:N.call(V))?V.controlled().selectedValues.includes(w):I().includes(w)}else n=void 0}else n=!1;return n},
callback:T}))}))},"Ue");var KjE=_.W1(function(V){var l=V.data;var I=function(){var w;return((w=l())==null?void 0:w.flowStateKey)||""},H=_.dw(_.x_,I),T=function(){var w;
return(w=_.y(H(),mJ2))==null?void 0:w.chips},x=function(w){if(w!==void 0){var N=T()||[];
N=N.find(function(L){return L===w})?N.filter(function(L){return L!==w}):[].concat(_.oI(N),[w]);
N=Object.assign({},H(),{feedbackFormFlowState:Object.assign({},_.y(H(),mJ2),{chips:N})});_.ZR(_.K6("flowStateEntity",I(),N))}},n=function(){var w;
return _.y((w=l())==null?void 0:w.inputBox,iTE)};
V=_.ym(function(w){var N=n();N=!(N==null?0:N.maxChars)||w.length<=N.maxChars;w=Object.assign({},H(),{feedbackFormFlowState:Object.assign({},_.y(H(),mJ2),{detail:w}),abuseReportFlowState:Object.assign({},_.y(H(),UK),{navigationEnabled:N})});_.ZR(_.K6("flowStateEntity",I(),w))},150);
return _.Y("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.Y("div",{class:"ytFeedbackFormViewModelChips"},_.Y(_.rw,{data:function(){var w;return(w=l())==null?void 0:w.chipSelection}},{chipSelectionFormFieldViewModel:function(w){return _.Y(N_E,{data:w.data,
controlled:function(){return{selectedValues:T()||[],onTap:x}}})}})),_.Y("div",{class:"ytFeedbackFormViewModelInputBox"},_.Y(MP,{text:function(){var w;
return(w=_.y(H(),mJ2))==null?void 0:w.detail},
placeholder:function(){var w;return((w=n())==null?void 0:w.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var w=n();if(w&&w.maxChars)return{maxChars:w.maxChars,errorMessage:w.maxCharsExceededErrorMessage||""}},
onInput:V})),_.Y("div",{class:"ytFeedbackFormViewModelFooterText"},_.Y(_.Ni,{text:function(){return l().footerText}})))},"Ve");
KjE.idomCompat=!0;_.MR(KjE,"yt-feedback-form-view-model",{props:{data:_.b9}});var jjE=_.W1(function(V){var l=V.data;var I=function(){return l().flowStateKey||""},H=_.dw(IhV,I),T=function(){return _.y(H(),UK)},x=function(){if(_.z("enable_gff_accessibility_fix")){var n=!0,w;
if((w=T())==null?0:w.navigationEnabled){var N;_.EI((N=T())==null?void 0:N.navigationCommand);n=!1}w=Object.assign({},H(),{abuseReportFlowState:Object.assign({},T(),{isReportFormDirty:n})});_.ZR(_.K6("flowStateEntity",I(),w))}else _.EI((n=T())==null?void 0:n.navigationCommand)};
return _.Y("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.Y("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.Y(_.rw,{data:function(){return l().cancelButton}},{buttonViewModel:function(n){return _.Y(_.Db,{data:n.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:x})}}),_.Y(_.rw,{data:function(){var n;
if(l().navButton){var w=Object;var N=w.assign,L=_.y(l().navButton,_.Gb),e=((n=T())==null?0:n.navigationEnabled)||_.z("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",k,X;n=_.y((k=T())==null?void 0:k.navigationCommand,_.yI);k=(X=_.y(n,_.cF))==null?void 0:X.url;w={buttonViewModel:N.call(w,{},L,{state:e,iconName:k?"OPEN_IN_NEW":""})}}else w=void 0;return w}},{buttonViewModel:function(n){return _.Y(_.Db,{data:n.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:x})}})))},"We");
jjE.idomCompat=!0;_.MR(jjE,"yt-report-form-bottom-bar-view-model",{props:{data:_.b9}});var Y7E=_.W1(function(V){var l=V.nextStep;return _.Y("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.Y("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.Y(_.dq,{icon:function(){return l().iconName||""}})),_.Y("div",null,_.Y(_.Ni,{text:function(){return l().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Xe"),Ljb=_.W1(function(V){var l=V.data;
var I,H=(I=_.F().resolve(_.Cs(_.DA)))==null?void 0:I(),T=_.dw(_.x_,function(){return l().flowStateKey||""});
return _.Y("yt-report-form-confirmation-page-view-model",{class:function(){var x;return((x=_.y(T(),UK))==null?void 0:x.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.Y("div",{class:function(){var x;
return((x=_.y(T(),UK))==null?void 0:x.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.Y(_.cX,{data:function(){return H&&l().imageDark?l().imageDark:l().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.Y("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.Y("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return l().confirmationHeader}),_.Y("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.Y(_.Ni,{text:function(){return l().confirmationText}})),_.Y("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.Y(_.Ni,{text:function(){return l().lawEnforcementText}})),
_.Y("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return l().whatToExpectHeader}),_.Y(_.NS,{cond:function(){return l().nextSteps},
then:function(x){return _.Y("div",null,_.Y(_.Ks,{each:x},function(n){return _.Y(Y7E,{nextStep:n})}))}}),_.Y(_.NS,{cond:function(){return l().legalReportText},
then:function(x){return _.Y("div",null,_.Y(_.Ni,{text:x,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Ye");
Ljb.idomCompat=!0;_.MR(Ljb,"yt-report-form-confirmation-page-view-model",{props:{data:_.b9}});var eeu=_.W1(function(V){var l=V.data;var I=function(){var x;return((x=_.y(l().inputBox,iTE))==null?void 0:x.maxChars)||500},H=function(){return l().flowStateKey||""},T=_.dw(_.x_,H);
V=_.ym(function(x){x=Object.assign({},T(),{flowFormState:{isValid:x.length<=I()},abuseReportFlowState:{userComments:x,navigationEnabled:!(x.length>I()),isReportFormDirty:!0}});_.P1().dispatch(_.h9("flowStateEntity",H(),x))},150);
_.XW(function(){var x=Object.assign({},T(),{flowFormState:{isValid:!0}});_.P1().dispatch(_.h9("flowStateEntity",H(),x))});
return _.Y("yt-report-form-details-page-view-model",{class:function(){var x;return((x=_.y(T(),UK))==null?void 0:x.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.Y("h1",{class:function(){var x;
return((x=_.y(T(),UK))==null?void 0:x.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return l().detailsPageHeader}),_.Y("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.Y(_.Ni,{text:function(){return l().bodyText}})),_.Y("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.Y(MP,{label:function(){var x;
return((x=_.y(l().inputBox,iTE))==null?void 0:x.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var x;return{errorMessage:((x=_.y(l().inputBox,iTE))==null?void 0:x.maxCharsExceededErrorMessage)||"",maxChars:I()}},
onInput:V})))},"Ze");
eeu.idomCompat=!0;_.MR(eeu,"yt-report-form-details-page-view-model",{props:{data:_.b9}});var kog=_.W1(function(V){var l=V.data;var I=V.selectedKey;var H=V.onSelected;var T=V.groupName;var x=_.Y("div",{class:"ytRadioButtonItemViewModelLabel"},_.Y("div",null,function(){return l().text}),_.Y("div",{class:"ytRadioButtonItemViewModelSubText"},function(){return l().subtext}));
V={};return _.Y("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost",tabindex:0},_.Y(_.sni,{name:T,checked:function(){return!(I==null||!I()||l().key!==(I==null?void 0:I()))},
onChange:function(n){H==null||H(n.target,l(),T==null?void 0:T())},
labelRenderable:function(){return x},
ariaLabel:function(){return l().subtext?l().text+", "+l().subtext:l().text},
className:_.ii((V.ytRadioButtonItemViewModelSubTitle=function(){return!!l().subtext},V))}))},"$e");_.Fj6=_.W1(function(V){var l=V.data;var I=V.onSelected;var H=V.selectedKey;var T=V.groupName;return _.Y("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.Y("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.Y(_.rw,{data:function(){return l().radioButtons}},{radioButtonItemViewModel:function(x){var n=x.data;
return _.Y(kog,{data:n,onSelected:I,selectedKey:H,groupName:function(){return T!=null?T:n().key}})}})))},"af");var X1E=_.W1(function(V){var l=V.data;var I=_.pO(),H=function(){return l().flowStateKey||""},T=_.dw(_.x_,H),x=function(){return _.y(T(),UK)};
_.t0(function(){var n,w;if(((n=x())==null?0:n.isReportFormDirty)&&((w=x())==null||!w.navigationEnabled)&&_.z("enable_gff_accessibility_fix")){var N;if(((N=x())==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var L;(L=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||L.scrollIntoView()}else{var e;(e=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||e.scrollIntoView()}}});
return _.Y("yt-report-form-reason-select-page-view-model",{class:function(){var n;return((n=x())==null?void 0:n.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.Y("h1",{class:function(){var n;
return((n=x())==null?void 0:n.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return l().pageHeader}),_.Y("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.Y(_.Ni,{text:function(){return l().bodyText}})),_.Y("div",{class:function(){var n;
return((n=x())==null?void 0:n.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.Y(_.NS,{cond:function(){var n,w;
return((n=x())==null?void 0:n.isReportFormDirty)&&!((w=x())==null?0:w.navigationEnabled)&&_.z("enable_gff_accessibility_fix")},
then:function(){return _.Y("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:I},_.Y(_.dq,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.Y("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return l().emptyReasonSelectErrorMessage}))}}),_.Y(_.Fj6,{data:function(){return _.y(l().radioButtonGroup,_.UrP)},
onSelected:function(n,w){n=Object.assign({},T(),{abuseReportFlowState:Object.assign({},x(),{reasonKey:w.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:w.command})});_.ZR(_.K6("flowStateEntity",H(),n))},
selectedKey:function(){var n;return(n=x())==null?void 0:n.reasonKey},
groupName:"report-form-reason-select-page"})))},"bf");
X1E.idomCompat=!0;_.MR(X1E,"yt-report-form-reason-select-page-view-model",{props:{data:_.b9}});var zeE=_.W1(function(V){var l=V.data;var I,H=(I=_.F().resolve(_.Cs(_.DA)))==null?void 0:I();return _.Y("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.Y("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.Y(_.cX,{data:function(){return H&&l().imageDark?l().imageDark:l().image},
alt:""})),_.Y("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.Y("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return l().header}),_.Y(_.Ni,{text:function(){return l().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"cf");
zeE.idomCompat=!0;_.MR(zeE,"yt-report-form-sign-in-page-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;var I=function(){var L;return(L=l().textInputPlaceholder)==null?void 0:L.content},H=function(L){L=L.target.value.trim();
var e=l().onUpdateText;e&&_.EI(e,{form:{userQuery:L}});l().userQuery=L},T=_.ym(function(L){H(L)},150),x=_.Bu(function(L){T(L);
return!1}),n=_.Bu(function(L){L.key==="Enter"&&(H(L),(L=l().onNextStepCommand)&&_.EI(L,{}));
return!1}),w=_.sZ(),N=function(){if(_.z("web_hide_explore_hub_until_user_navigates_back_to_home")){var L,e,k;
(k=(e=(L=w.value)==null?void 0:L.closest("ytd-flow-step-renderer"))==null?void 0:e.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||k.click()}};
return _.Y("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:w},_.Y("div",{class:"ytwTalkToRecsTopCornerButton"},_.Y(_.rw,{data:function(){return l().topCornerButton}},{buttonViewModel:_.Db})),_.Y("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.Y("div",{class:"ytwTalkToRecsTitle"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y("div",{class:"ytwTalkToRecsSubtitle"},_.Y(_.Ni,{text:function(){return l().subtitle}})),_.Y("div",{class:"ytwTalkToRecsChipsShelf"},_.Y(_.rw,{data:function(){return l().answersShelf}},
{chipsShelfViewModel:function(L){return _.Y(_.b5Z,{data:L.data,
callback:N})}})),_.Y(_.NS,{cond:function(){return l().showOpenTextInput&&!_.z("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.Y("div",{class:"ytwTalkToRecsUserInputBox"},_.Y("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:I,value:function(){return l().userQuery},
"on:input":x,"on:keyup":n}))}})))},"df"),"yt-talk-to-recs-view-model",{props:{data:_.b9}});var UJE={sources:[{clientResource:{imageName:"CHECK"}}]};_.yTh=_.W1(function(V){var l=_.sZ();V=_.Rj(V,{error:void 0});var I=V.data,H=V.error,T=V.onSelected;V=_.U(_.Ux(function(){return dJb(I())}));
var x=V.next().value,n=V.next().value;jzY(I,function(k){n(k);var X,r,E=$JI((X=I().options)==null?void 0:(r=X[k])==null?void 0:r.value,I().type);T==null||T(E);l.value.focus()});
V=_.Bu(function(){if(!I().disabled){var k=I(),X=x(),r=l.value;k.options&&(k=nBu(k.options,X,k.label),_.F().resolve(_.J7).openSheet({viewModel:k},r))}});
var w=_.kgw(),N=function(){return!!H()},L=function(){return!!I().disabled},e={};
e=_.ii("ytDropdownViewModelDropdownContainer",(e.ytDropdownViewModelDropdownContainerErrorBorder=N,e.ytDropdownViewModelDropdownContainerDisabled=L,e));return _.Y("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.Y("div",{class:e,"on:click":V,el:l,role:"combobox",tabindex:0,"on:keydown":w,"aria-invalid":N,"aria-disabled":L,"aria-describedby":function(){return N()?"dropdown-view-model-error":void 0}},_.Y("div",{class:"ytDropdownViewModelText"},w$2(I,N,x),N6P(I,x)),_.Y("div",{class:"ytDropdownViewModelChevronDown"},
_.Y(_.dq,{icon:"CHEVRON_DOWN"}))),KpI(I,H))},"ef");_.MR(_.W1(function(V){var l=V.data;var I=function(T){var x=Lp6(l());x.videoMetadata||(x.videoMetadata={});x.videoMetadata.sponsorshipsMetadata||(x.videoMetadata.sponsorshipsMetadata={});x.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(T)},H=function(T){var x=Lp6(l());
x.scheduledRedirectMetadata||(x.scheduledRedirectMetadata={});x.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(T)};
return _.Y("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.Y("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.Y("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.Y(_.Ni,{text:function(){return l().title}}),_.Y(_.dq,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.Y(_.Ni,{text:function(){return l().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.Y(_.rw,{data:function(){return l().tierChoices}},{dropdownViewModel:function(T){return _.Y("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.Y(_.yTh,{data:T.data,
onSelected:I}))}}),_.Y(_.rw,{data:function(){return l().startTimeChoices}},{dropdownViewModel:function(T){return _.Y("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.Y(_.yTh,{data:T.data,
onSelected:H}))}}),_.Y(_.Ni,{text:function(){return l().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.Y("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.Y(_.rw,{data:function(){return l().scheduleButton}},{panelFooterViewModel:_.qP})))},"ff"),"ytfz-schedule-fanzone-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;V=V.className===void 0?"":V.className;var I=_.dw(IhV,function(){return l().flowStateEntityKey||""}),H={};
H=_.ii("ytFlowBottomBarViewModelFlowBottomBarButtons",(H.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},H));
var T={},x=_.ii("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",H,(T.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},T.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},T));
T={};var n=_.ii("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",H,(T.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},T.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},T));
H={};H=_.ii("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
H));
return _.Y("yt-flow-bottom-bar-view-model",{class:_.ii("ytFlowBottomBarViewModelHost",V)},_.Y(_.NS,{cond:function(){var w;return(w=l())==null?void 0:w.textSection},
then:function(w){return _.Y("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.Y(_.Ni,{text:w}))}}),_.Y("div",{class:H},_.Y(_.rw,{data:function(){return l().secondaryButton}},{buttonViewModel:function(w){return _.Y(_.Db,{data:w.data,
className:n})}}),_.Y(_.rw,{data:function(){return l().primaryButton}},{buttonViewModel:function(w){return _.Y(_.Db,{data:w.data,
className:x,buttonOverrides:function(){var N;return{disabled:!((N=I())==null||!N.primaryButtonDisabled)}}})}})))},"gf"),"yt-flow-bottom-bar-view-model",{props:{data:_.b9,
className:_.qR}});var t5E="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),rT6=function(){var V=_.M.apply(this,arguments)||this;V.enableScrollingFix=!0;V.bottomBar=!1;V.hideBottomBar=!1;V.fitContent=!1;return V};
_.t(rT6,_.M);_.B=rT6.prototype;_.B.ready=function(){_.z("enable_pdp_icon_prefetch")&&_.gBg(_.F().resolve(_.xS),0,t5E)};
_.B.focus=function(V){this.topBar?_.qD(this.topBar,V):this.paperDialog.focus(V)};
_.B.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16668_scroller&&(this.JSC$16668_scroller.dialogElement=this.paperDialog,this.JSC$16668_scroller.attached&&typeof this.JSC$16668_scroller.attached==="function"&&this.JSC$16668_scroller.attached())};
_.B.onDataChanged=function(){var V;this.fitContent=!((V=this.data)==null||!V.fitContent);var l;this.bottomBar=!((l=this.data)==null||!l.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.B.onProgressChanged=function(){var V,l,I=((l=(V=this.data)==null?void 0:V.progress)!=null?l:0)*100;this.progressElement.style.width=I+"%"};
_.B.isProgressHidden=function(){var V;return!((V=this.data)==null?0:V.progress)};
_.B.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(V){return _.z("enable_wiz_next_lp2_msof")&&V&&!V.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.vI.Object.defineProperties(rT6.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var V;return _.z("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.y((V=this.data)==null?void 0:V.content,TJ2)}}});
var sK=rT6;sK.prototype.onProgressChanged=sK.prototype.onProgressChanged;sK.prototype.onDataChanged=sK.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],sK.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],sK.prototype,"enableScrollingFix",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],sK.prototype,"bottomBar",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],sK.prototype,"hideBottomBar",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],sK.prototype,"containsExploreHub",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],sK.prototype,"fitContent",void 0);
_.O([_.Ij("#progress"),_.a("design:type",HTMLElement)],sK.prototype,"progressElement",void 0);_.O([_.Ij("#scroller"),_.a("design:type",Object)],sK.prototype,"JSC$16668_scroller",void 0);_.O([_.Ij("ytd-flow-top-bar-renderer"),_.a("design:type",HTMLElement)],sK.prototype,"topBar",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sK.prototype,"onDataChanged",null);
_.O([_.b("data.progress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sK.prototype,"onProgressChanged",null);sK=_.O([_.A({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],sK);
_.u(sK,"ytd-flow-step-renderer",function(){if(c5Y!==void 0)return c5Y;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return c5Y=V},{mode:1});var GoB=function(V){this.resolveCommand=V;this.steps={}},EsY=function(V,l){l=_.U(l||[]);
for(var I=l.next();!I.done;I=l.next()){I=I.value;var H=Object.values(I)[0],T=void 0;if((T=H)==null?0:T.stepId)V.steps[H.stepId]=I}},heu=function(V,l){var I,H,T,x,n;
return _.d(function(w){if((I=V.state)==null||!I.currentStepId)return w.return(void 0);H=JTE(V);if(!H)return w.return(osI(V));if(T=_.y(H,_.HWQ)){var N;((N=T.screenLoggingData)==null?0:N.screenVeType)&&_.xg(_.x7(),T.screenLoggingData.screenVeType);((x=T)==null?0:x.onStepStartCommand)&&V.resolveCommand((n=T)==null?void 0:n.onStepStartCommand,{})}if(T&&l){N=T;var L,e,k,X;((L=l.flowLoggingData)==null?0:L.eventNamespace)&&((e=N.flowEventData)==null?0:e.eventType)&&((k=N.flowEventData)==null?0:k.eventMetadata)&&
((X=l.flowLoggingData)==null?0:X.flowType)&&(L=_.Bb(l.flowLoggingData.eventNamespace,N.flowEventData.eventType,N.flowEventData.eventMetadata),_.xV(_.Uz(),L,l.flowLoggingData.flowType));l.steps&&!l.steps.includes(H)&&l.steps.push(H)}return w.return(H)})};
GoB.prototype.back=function(){var V;(V=this.state)!=null&&V.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
GoB.prototype.handleUpdateFlowCommand=function(V){V.steps&&EsY(this,V.steps);V.entityUpdateCommand&&this.resolveCommand(V.entityUpdateCommand,{});V.flowContinuationCommand&&(V=V.flowContinuationCommand)&&(this.getFlowContinuationCommand=V);this.awaitFlowContinuation&&(this.awaitFlowContinuation(JTE(this)),this.awaitFlowContinuation=void 0)};
GoB.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var osI=function(V){return _.d(function(l){return V.getFlowContinuationCommand?l.return(new Promise(function(I){V.awaitFlowContinuation=I;V.getFlowContinuationCommand&&V.resolveCommand(V.getFlowContinuationCommand,{flow_state:V.state})})):l.return(Promise.resolve(void 0))})},JTE=function(V){var l;
if((l=V.state)!=null&&l.currentStepId)return V.steps[V.state.currentStepId]};var Pfh=function(){var V=_.M.apply(this,arguments)||this;V.flowState=new GoB(function(l,I){I=I===void 0?{}:I;_.li.instance.resolveCommand(l,{form:{form:I,element:V.hostElement}})});
V.initialState=!0;V.isLoading=!1;V.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 V};
_.t(Pfh,_.M);_.B=Pfh.prototype;_.B.onPopupClosed=function(V){V&&this.hostElement!==V.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.B.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"}}}};
_.B.focus=function(V){var l=this;_.r_(function(){var I=_.h(l.hostElement).querySelector("ytd-flow-step-renderer");I.topBar?I.focus(V):l.topBar&&_.qD(l.topBar,V)},1)};
_.B.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.B.computeTopBarHidden=function(V){var l;return!((l=_.y(V,_.HWQ))==null||!l.topBarOverride)};
_.B.dataChanged=function(){var V=this,l,I;return _.d(function(H){if(H.nextAddress==1){((l=V.data)==null?0:l.steps)&&EsY(V.flowState,V.data.steps);if((I=V.data)==null?0:I.flowContinuationCommand){var T=V.flowState,x=V.data.flowContinuationCommand;x&&(T.getFlowContinuationCommand=x)}return _.K(H,heu(V.flowState,V.data),2)}V.currentFlowStep=H.yieldResult;_.FU(H)})};
_.B.flowChanged=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1){if(!V.flow)return I.return();V.flowState.state=V.flow;V.isLoading=!0;return _.K(I,heu(V.flowState,V.data),2)}l=I.yieldResult;if(!l||V.flow.isLoading)return I.return();V.currentFlowStep=l;V.initialState=!1;V.isLoading=!1;V.autofocusAndRefit();_.FU(I)})};
_.B.autofocusAndRefit=function(){var V=this,l=_.F().resolve(_.Cs(_.eM)),I=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),H=document.querySelector("yt-report-form-confirmation-page-view-model"),T=document.querySelector("yt-report-form-details-page-view-model"),x=document.querySelector("yt-report-form-reason-select-page-view-model"),n=document.querySelector("yt-contributor-zero-state-view-model"),
w=document.querySelector("yt-structured-context-note-view-model"),N=document.querySelector("yt-note-view-model");(!I&&l&&l.isKeyBoardInUse()||H||!I&&T||!I&&x||n||w||N)&&_.MD(this.hostElement);_.Al(this,function(){_.B$(V.hostElement,"yt-refit")})};
_.B.handleUpdateFlowCommand=function(V){this.data&&(V=_.y(V,IwE),V.targetId===this.data.targetId&&(V.flowContinuationCommand&&(this.data.flowContinuationCommand=V.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(V),this.autofocusAndRefit()))};
_.B.handleFlowNextStepCommand=function(V){this.data&&this.flow&&this.flow.key&&(V=_.y(V,Vsu),V.targetId===this.data.targetId&&(V=V.stepId||"",this.ytdReduxBehavior.dispatch(_.h9("flowStateEntity",this.flow.key,{currentStepId:V,stepIdStack:(this.flow.stepIdStack||[]).concat(V)}))))};
_.B.handleFlowPrevStepCommand=function(V){if(this.data&&this.flow&&this.flow.key&&(V=_.y(V,lwY),V.targetId===this.data.targetId)){var l=[].concat(_.oI(this.flow.stepIdStack||[]));l.length>1?(l.pop(),this.ytdReduxBehavior.dispatch(_.h9("flowStateEntity",this.flow.key,{currentStepId:l[l.length-1],stepIdStack:l}))):V.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(V.onFirstStepCommand)}};
_.B.handleYpcCancelRecurrenceCommand=function(V){if(this.data&&this.flow&&this.flow.key&&(V=_.y(V,nfE),V.targetId===this.data.targetId&&V.endpointCommand)){var l=_.y(this.flow,$rB);l&&_.y(V.endpointCommand,_.rMv)&&(_.y(V.endpointCommand,_.rMv).feedbackData=l.surveyFeedback);this.ytComponentBehavior.resolveCommand(V.endpointCommand)}};
_.B.handlePartialUpdateFlowStateEntity=function(V){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.h9("flowStateEntity",this.flow.key,V,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
var p4=Pfh;p4.prototype.flowChanged=p4.prototype.flowChanged;p4.prototype.dataChanged=p4.prototype.dataChanged;p4.prototype.onPopupClosed=p4.prototype.onPopupClosed;_.O([_.R(_.DS),_.a("design:type",Object)],p4.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],p4.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],p4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],p4.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],p4.prototype,"initialState",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],p4.prototype,"isLoading",void 0);_.O([_.q(),_.a("design:type",Object)],p4.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],p4.prototype,"currentFlowStep",void 0);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],p4.prototype,"onPopupClosed",null);_.O([_.q({selectorArgs:["data.flowStateEntityKey"],selector:IhV}),_.a("design:type",Object)],p4.prototype,"flow",void 0);_.O([_.Ij("ytd-flow-top-bar-renderer"),_.a("design:type",HTMLElement)],p4.prototype,"topBar",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],p4.prototype,"dataChanged",null);_.O([_.xs("flow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],p4.prototype,"flowChanged",null);p4=_.O([_.A({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],p4);
_.De2=_.O7()(p4,"ytd-flow-root-renderer",function(){if(QAb!==void 0)return QAb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return QAb=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var ZmE;var BM=null;_.MR(_.W1(function(V){return _.Y("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.Y("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.Y(_.Ni,{text:function(){return V.data().text}}),_.Y("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"hf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.b9}});var S76=_.W1(function(V){var l=V.playerControlsProps;var I=V.isShortsPage;return _.Y("yt-bigboard",null,_.Y(_.NS,{cond:function(){return l().isDragging},
then:function(){return _.Y("div",{class:"ytBigboardStoryboardHost"},_.Y(_.PGE,{progressBarProps:l,isShortsPage:I}))}}))},"jf");
S76.idomCompat=!0;_.A_={ACCOUNT_LABEL:x5("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:x5("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:x5("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:x5("AD_BADGE_HINT"),AD_BADGE_TEXT:x5("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:x5("ALL_CHANNELS_LABEL"),AMBIENT_MODE:x5("AMBIENT_MODE"),AMBIENT_MODE_OFF:x5("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:x5("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:x5("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:x5("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:x5("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:x5("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:x5("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:x5("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:x5("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:x5("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:x5("AUTOPLAY_UP_NEXT_IN"),BACK:x5("BACK"),CANCEL:x5("CANCEL"),CHANNEL_SWITCHER_LABEL:x5("CHANNEL_SWITCHER_LABEL"),CLOSE:x5("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:x5("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:x5("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:x5("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:x5("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:x5("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:x5("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:x5("COMMENT_MODAL_CONTENT"),CONFIRM_OK:x5("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:x5("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:x5("COPIED_TO_CLIPBOARD"),COPY:x5("COPY"),COPY_DEBUG_INFO:x5("COPY_DEBUG_INFO"),COPY_EMBED_CODE:x5("COPY_EMBED_CODE"),COPY_LINK_LABEL:x5("COPY_LINK_LABEL"),
COPY_VIDEO_URL:x5("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:x5("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:x5("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:x5("DELETE_FROM_DOWNLOADS"),DIALOG:x5("DIALOG"),DONE:x5("DONE"),DOWNLOAD:x5("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:x5("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:x5("FLAG_CONFIRM"),FLAG_CONTENT:x5("FLAG_CONTENT"),FLAG_LABEL:x5("FLAG_LABEL"),FLAG_TITLE:x5("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:x5("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:x5("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:x5("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:x5("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:x5("HIDE_SEARCH_FILTERS_LABEL"),HOME:x5("HOME","Home"),INVALID_RESPONSE_RECEIVED:x5("INVALID_RESPONSE_RECEIVED"),LIBRARY:x5("LIBRARY","Library"),LISTENING:x5("LISTENING"),LOADING:x5("LOADING"),LONG_PRESS_MIC_TO_SPEAK:x5("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:x5("LOOP"),MENU_DESKTOP:x5("MENU_DESKTOP"),MENU_EXIT:x5("MENU_EXIT"),
MENU_FEEDBACK:x5("MENU_FEEDBACK"),MENU_HELP:x5("MENU_HELP"),MENU_IMPRESSUM:x5("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:x5("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:x5("MENU_SETTINGS"),MENU_SIGN_IN:x5("MENU_SIGN_IN"),MENU_TITLE:x5("MENU_TITLE"),MENU_YOUR_DATA:x5("MENU_YOUR_DATA"),MORE_INFO:x5("MORE_INFO"),MORE_OPTIONS:x5("MORE_OPTIONS"),MUTE_VOLUME:x5("MUTE_VOLUME"),NEW_PLAYLIST:x5("NEW_PLAYLIST"),NEXT_VIDEO:x5("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:x5("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:x5("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:x5("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:x5("NOT_FOUND_TITLE"),NO_DOWNLOADS:x5("NO_DOWNLOADS"),NO_MIC_INPUT:x5("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:x5("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:x5("OOPS_MESSAGE"),OPEN_APP:x5("OPEN_APP"),OPEN_YOUTUBE:x5("OPEN_YOUTUBE"),PAUSE:x5("PAUSE"),PLAY:x5("PLAY"),PLAYER_CAPTION:x5("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:x5("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:x5("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:x5("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:x5("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:x5("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:x5("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:x5("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:x5("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:x5("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:x5("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:x5("PLAYER_MINIMIZE"),PLAYER_NEXT:x5("PLAYER_NEXT"),PLAYER_PAUSE:x5("PLAYER_PAUSE"),PLAYER_PLAY:x5("PLAYER_PLAY"),
PLAYER_PREVIOUS:x5("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:x5("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:x5("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:x5("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:x5("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:x5("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:x5("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:x5("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:x5("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:x5("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:x5("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:x5("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:x5("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:x5("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:x5("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:x5("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:x5("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:x5("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:x5("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:x5("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:x5("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:x5("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:x5("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:x5("PLAY_ALL"),PLEASE_FIX_ERRORS:x5("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:x5("PREVIOUS_VIDEO"),PRIVACY_POLICY:x5("PRIVACY_POLICY"),RELOAD:x5("RELOAD"),REQUIRED_LABEL:x5("REQUIRED_LABEL"),SAVE_PLAYLIST:x5("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:x5("SCRUB_SLIDE_USER_EDU"),SEARCH:x5("SEARCH","Search"),SEARCH_APPEND_LABEL:x5("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:x5("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:x5("SEARCH_CLEAR_LABEL"),SEARCH_FILTERS_LABEL:x5("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:x5("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:x5("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:x5("SEEK_SLIDER"),SETTINGS_LABEL:x5("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:x5("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:x5("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:x5("SHOW_LESS"),SHOW_MORE:x5("SHOW_MORE"),SHOW_PLAYER_CONTROLS:x5("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:x5("SHOW_PLAYLIST_VIDEOS"),
SHOW_SEARCH_FILTERS_LABEL:x5("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:x5("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:x5("SIGN_IN_ON_WEB"),STABLE_VOLUME:x5("STABLE_VOLUME"),STABLE_VOLUME_OFF:x5("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:x5("STABLE_VOLUME_ON"),STATS_FOR_NERDS:x5("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:x5("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:x5("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:x5("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:x5("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:x5("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:x5("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:x5("TIMESTAMP_SECONDS"),TOGGLE_OFF:x5("TOGGLE_OFF"),TOGGLE_ON:x5("TOGGLE_ON"),TRENDING:x5("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:x5("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:x5("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:x5("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:x5("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:x5("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:x5("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:x5("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:x5("VIDEO_LINK_LABEL")};var ReE=_.W1(function(V){var l=V.playerApi;V=_.sZ(function(T){VG(T,36843)});
var I=x5("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),H=_.Bu(function(){lo(36843);l&&l().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.Y("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.Y("button",{el:V,class:"ytPlayerControlsJumpForwardButtonButton",title:I,"aria-label":I,"on:click":H},_.Y("span",null,_.Y(_.dq,{icon:"FAST_FORWARD"}))))},"kf");var QjY=_.W1(function(V){var l=V.appApi;V=_.sZ(function(T){VG(T,62946)});
var I=x5("OPEN_IN_MINIPLAYER"),H=_.Bu(function(){lo(62946);var T,x;(x=(T=l()).openInMiniplayer)==null||x.call(T);return!1});
return _.Y("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.Y("button",{el:V,class:"ytMiniplayerButtonButton",title:I,"aria-label":I,"on:click":H},_.Y(_.dq,{icon:"PICTURE_IN_PICTURE",active:!1})))},"lf");var cTh=_.W1(function(V){var l=V.playerApi;V=_.sZ(function(n){VG(n,142812)});
var I=_.U(_.xi(!1,void 0,"I3VCyb")),H=I.next().value,T=I.next().value;I=function(){return x5("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(H()?1:2)})};
var x=_.Bu(function(){lo(142812);if(l){var n=l(),w=H();n.setPlaybackRate(w?1:2);T(!H())}return!1});
return _.Y("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.Y("button",{el:V,class:"ytPlaybackSpeedButtonButton",title:I,"aria-label":I,"on:click":x},_.Y("span",null,_.Y(_.dq,{icon:function(){return H()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"mf");var WjY=_.W1(function(V){var l=V.title;var I=V.ariaLabel;var H=V.icon;var T=V.command;var x=V.veType;V=_.sZ(function(w){x&&VG(w,x())});
var n=_.Bu(function(){x&&lo(x());T&&_.F().resolve(_.aw).resolveCommand(T())});
return _.Y("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.Y("button",{el:V,class:"ytdThumbnailOverlayButtonButton",title:l,"aria-label":I,"on:click":n},_.Y(_.dq,{icon:H})))},"nf");var bmE=["en-CA","en","es-MX","fr-CA"];var q72=_.W1(function(V){var l=_.Rj(V,{isOverlay:!1}),I=l.captionIconType,H=l.onClick;V=l.ariaLabel;var T=l.ariaPressed,x=l.isOverlay;l=_.sZ(function(N){VG(N,127299)});
var n=_.Bu(function(N){lo(127299);H==null||H(N);return!1}),w={};
return _.Y("ytm-closed-captioning-button",{class:_.ii("ytmClosedCaptioningButtonHost",(w.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return I()===-1&&x()},w.ytmClosedCaptioningButtonIconDisabled=function(){return I()===-1&&!x()},w))},_.Y("button",{el:l,
class:"ytmClosedCaptioningButtonButton",title:V,"aria-label":V,"aria-pressed":T,"on:click":n},_.Y(_.dq,{icon:function(){var N="";var L=_.Fu().get("hl");L=!L||bmE.includes(L)?"CLOSED_CAPTION":"SUBTITLES";var e=I();switch(e){case -1:case 0:N=L;break;case 1:N=L+"_FILLED";break;default:_.AB(e)}return N}})))},"of");
q72.idomCompat={callbacks:{onClick:!0}};var i7="";var M5E=_.W1(function(V){var l=V.playerControlsProps,I=V.onClickFn;V=_.Ny(function(){var x=l(),n=-1;x.captionsAvailable&&(n=x.captionsEnabled?1:0);return n},void 0,"WecR8e");
var H=_.Ny(function(){var x=l();return x.captionsAvailable?_.LT(x.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.LT("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),T=_.Ny(function(){var x=l();
x=x.captionsAvailable?x.captionsEnabled:void 0;return x},void 0,"Q17ly");
return _.Y("yt-closed-captions-toggle-button",null,_.Y(q72,{captionIconType:V,ariaLabel:H,ariaPressed:T,onClick:function(x){var n=l();if(n.captionsAvailable){var w=n.playerApi;if(w){var N=n.playerApi;if(N){var L=i7;if(L){N=N.getOption("captions","track");var e;i7=(e=N?N.displayName:null)!=null?e:L}else N.getOptions("captions")?(L=BSr(N),i7=L.length?(e=xzg(L))?e.displayName:L[0].displayName:""):i7=""}UzE(w);_.z("mweb_disable_set_state_captions_killswitch")&&n.setState({captionsEnabled:!n.captionsEnabled})}}var k,
X;(X=(k=n.appApi).showCaptionsToggleToast)==null||X.call(k,n);I==null||I(x)},
isOverlay:!0}))},"pf");var sjV=_.W1(function(V){var l=V.data;return _.Y("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.Y(_.mw,{data:function(){return{type:16,text:_.j3W(l().label)}}}))},"qf");var p1E=_.W1(function(V){var l=_.ii("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return V.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return V.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return V.size()==="small"?V.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
V.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.Y("animated-seek-arrows",{class:_.ii("ytPlayerControlsAnimatedSeekArrowsHost")},_.Y("span",{class:l}),_.Y("span",{class:l}),_.Y("span",{class:l}))},"rf");
p1E.idomCompat=!0;var ATY=_.W1(function(){var V=_.LT("PLAYER_SECONDS",{seconds_placeholder:"30"}),l=_.U(_.xi(!1,void 0,"Yj8msb")),I=l.next().value,H=l.next().value,T=_.U(_.xi(!1,void 0,"r9Z50e"));l=T.next().value;var x=T.next().value;T={};var n=_.ii("jumpForwardOverlayOverlay",(T.jumpForwardOverlayOverlayHidden=l,T));_.XW(function(){var w=null,N=null,L=function(){w!==null&&_.Dk().cancelJob(w);N!==null&&_.Dk().cancelJob(N);x(!0);H(!0);_.vX(_.Dk(),function(){x(!1)});
w=_.vX(_.Dk(),function(){x(!0);N=_.vX(_.Dk(),function(){H(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",L);_.rx(function(){window.removeEventListener("jump-forward-clicked",L)})});
return _.Y("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.Y(_.NS,{cond:I,then:function(){return _.Y("div",{class:n},_.Y(p1E,{direction:1,size:"large"}),_.Y("div",null,V))}}))},"sf");var h8B=_.A_.MUTE_VOLUME,oBg=_.A_.UNMUTE_VOLUME,uVg=_.W1(function(V){var l=V.muteIconType;var I=V.onClick;var H=V.useOutlineIcon;V=_.sZ(function(n){VG(n,28662)});
var T=function(){return PJB(l(),H==null?void 0:H()).ariaLabel},x=_.Bu(function(n){lo(28662);
I==null||I(n);return!1});
return _.Y("ytm-mute-button",{class:"ytmMuteButtonHost"},_.Y("button",{el:V,class:"ytmMuteButtonButton",title:T,"aria-label":T,"on:click":x},_.Y("span",null,_.Y(_.dq,{icon:function(){return PJB(l(),H==null?void 0:H()).iconName}}))))},"tf");var vs6=_.W1(function(V){var l=V.volumeProps;var I=V.onClickFn;var H=V.useOutlineIcon;return _.Y("yt-mute-toggle-button",null,_.Y(uVg,{muteIconType:function(){var T=l(),x=!_.z("mweb_treat_zero_volume_as_muted_killswitch")&&T.volume===0;return T.volumeMuted||x?0:1},
onClick:function(T){var x=l().playerApi;x&&(x.isMuted()?x.unMute():x.mute(!1));I==null||I(T)},
useOutlineIcon:function(){return!(H==null||!H())}}))},"uf");
vs6.idomCompat=!0;var Omh=_.W1(function(V){var l=V.data;var I=_.sZ();V=_.Bu(function(){I.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.Y("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:I,"on:animationend":V},_.Y(_.wq,{command:function(){return l().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.Y(_.NS,{cond:function(){var H;return(H=l().icon)==null?void 0:H.iconType},
then:function(){return _.Y("span",null,_.Y(_.dq,{icon:function(){var H;return(H=l().icon)==null?void 0:H.iconType}}))}}),_.Y("div",{class:"ytmPaidContentOverlayText"},_.Y(_.Ni,{text:function(){return l().text}})),_.Y(_.NS,{cond:function(){return l().navigationEndpoint},
then:function(){return _.Y(_.dq,{icon:"CHEVRON_RIGHT"})}})))},"vf");
Omh.idomCompat=!0;var DJP=[].concat(_.oI([{register:function(V){var l=szV(V),I;(I=V().playerApi)==null||I.addEventListener("onVolumeChange",l);return function(){}}},
{register:function(V){var l=p$b(V);V=V().playerApi;V==null||V.addEventListener("captionschanged",l);V==null||V.addEventListener("captionssettingschanged",l);V==null||V.addEventListener("onCaptionsTrackListChanged",l);return function(){}}},
{register:function(V){if(!_.z("mweb_screenreader_accessible_player"))return function(){};
var l=AcY(V),I=document.querySelector("video");I==null||I.addEventListener("touchend",l);return function(){I==null||I.removeEventListener("touchend",l)}}},
{register:function(V){if(!_.z("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var l=AcY(V),I=document.querySelector("video");I==null||I.addEventListener("focus",l);return function(){I==null||I.removeEventListener("focus",l)}}}]),[{register:function(V){var l=WpE(V),I;
(I=V().playerApi)==null||I.addEventListener("onStateChange",l);return function(){}}},
{register:function(V){var l=bTP(V),I;(I=V().playerApi)==null||I.addEventListener("onPlaybackRateChange",l);return function(){}}},
{register:function(V){var l=q4g(V),I;(I=V().playerApi)==null||I.addEventListener("onVideoDataChange",l);return function(){}}},
{register:function(V){var l=M12(V),I,H;(I=V())==null||(H=I.playerApi)==null||H.addEventListener("onVideoProgress",l);return function(){}}}]);var Cfr=_.W1(function(V){var l=V.data;var I=function(){return _.LT("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+l().playbackRate})};
return _.Y(_.NS,{cond:function(){return l().playbackRate&&l().playbackRate!==1},
then:function(){return _.Y("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.Y("div",{class:"ytPlaybackRateOverlayOverlay"},_.Y(p1E,{direction:1,size:"small"}),_.Y("div",{class:"ytPlaybackRateOverlayLabel"},I)))}})},"wf");var aRV=_.W1(function(V){var l=V.data;return _.Y("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.Y(_.NS,{cond:function(){var I,H=(I=l())==null?void 0:I.playerResponse,T;return H==null?void 0:(T=H.paidContentOverlay)==null?void 0:T.paidContentOverlayRenderer},
then:function(I){return _.Y(Omh,{data:I})}}))},"yf"),fRh=_.W1(function(V){var l=V.props;
var I=V.data;var H=V.options;var T=function(){var L,e,k,X;return(L=I())==null?void 0:(e=L.playerResponse)==null?void 0:(k=e.playerConfig)==null?void 0:(X=k.inlinePlaybackConfig)==null?void 0:X.showAudioControls},x=function(){var L,e;
if(T()&&((L=H())==null?void 0:(e=L.additionalButton)==null?void 0:e.button)!==void 0){var k,X,r;L=(k=I())==null?void 0:(X=k.playerApi)==null?void 0:(r=X.getSize())==null?void 0:r.height;if(!(L===void 0||L<184)){var E,D;return(E=H())==null?void 0:(D=E.additionalButton)==null?void 0:D.button}}},n=function(){var L,e;
return(L=H())==null?void 0:(e=L.additionalButton)==null?void 0:e.thumbnailOverlayButtonRenderers},w=function(){var L,e;
return(L=H())==null?void 0:(e=L.additionalButton)==null?void 0:e.thumbnailOverlayButtonViewModels},N=function(){var L=[_.Y(vs6,{volumeProps:l}),
_.Y(M5E,{playerControlsProps:l})];x()===1&&L.push(_.Y(ReE,{playerApi:function(){return l().playerApi}}));
x()===2&&L.push(_.Y(QjY,{appApi:function(){return l().appApi}}));
x()===3&&L.push(_.Y(cTh,{playerApi:function(){return l().playerApi}}));
var e=n();if(x()===4&&e){e=_.U(e);for(var k=e.next(),X={};!k.done;X={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$53:void 0,command$jscomp$565:void 0},k=e.next()){k=k.value;X.tooltip$jscomp$2=k.tooltip;var r=void 0,E=void 0;X.ariaLabel$jscomp$20=((r=k.accessibility)==null?void 0:(E=r.accessibilityData)==null?void 0:E.label)||X.tooltip$jscomp$2;r=void 0;X.icon$jscomp$53=(r=k.icon)==null?void 0:r.iconType;X.command$jscomp$565=k.command;X.tooltip$jscomp$2&&X.ariaLabel$jscomp$20&&X.icon$jscomp$53&&
L.push(_.Y(WjY,{title:function(D){return function(){return D.tooltip$jscomp$2}}(X),
ariaLabel:function(D){return function(){return D.ariaLabel$jscomp$20}}(X),
icon:function(D){return function(){return D.icon$jscomp$53}}(X),
command:function(D){return function(){return D.command$jscomp$565}}(X)}))}}e=w();
if(x()===4&&e)for(e=_.U(e),k=e.next(),X={};!k.done;X={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$54:void 0,command$jscomp$566:void 0},k=e.next())k=k.value,X.tooltip$jscomp$3=k.title,X.ariaLabel$jscomp$21=k.accessibilityText||X.tooltip$jscomp$3,X.icon$jscomp$54=k.iconName,X.command$jscomp$566=_.to(k.onTap),X.tooltip$jscomp$3&&X.ariaLabel$jscomp$21&&X.icon$jscomp$54&&L.push(_.Y(WjY,{title:function(D){return function(){return D.tooltip$jscomp$3}}(X),
ariaLabel:function(D){return function(){return D.ariaLabel$jscomp$21}}(X),
icon:function(D){return function(){return D.icon$jscomp$54}}(X),
command:function(D){return function(){return D.command$jscomp$566}}(X)}));
return L};
return _.Y(_.NS,{cond:T,then:function(){return _.Y("div",{class:"ytInlinePlayerControlsTopRightControls"},_.Y(_.Ks,{each:N},function(L){return _.Y("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.Y("div",{class:"ytInlinePlayerControlsButtonIcon"},L))}))}})},"zf"),img=_.W1(function(V){var l=V.props;
var I=V.data;var H=V.options;V={};V=_.ii("ytInlinePlayerControlsBottomRightControls",(V.ytInlinePlayerControlsBottomRightControlsHidden=function(){var T;return vBh(I(),H())&&((T=H())==null?void 0:T.insetProgressBar)&&(l().isHovering||l().isDragging)},V));
return _.Y("div",{class:V},_.Y(gsV,{data:I}),_.Y(_.NS,{cond:function(){var T;return!((T=H())==null?0:T.hideTimeDisplay)},
then:function(){return _.Y(meb,{props:l})}}))},"Af"),gsV=_.W1(function(V){var l=V.data;
return _.Y(_.rw,{data:function(){var I;return Jc2((I=l())==null?void 0:I.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:sjV})},"Bf"),meb=_.W1(function(V){var l=V.props;
return _.Y(_.NS,{cond:function(){return l().isLive},
then:function(){return _.Y(VzV,null)},
else:function(){return _.Y(lAQ,{props:l})}})},"Cf"),lAQ=_.W1(function(V){var l=V.props;
return _.Y("div",{class:_.ii("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.A_.PLAYER_TIME_ELAPSED+" "+_.q0w(l().playedTime)}},_.Y(_.mw,{data:function(){return{type:16,
text:_.q0w(l().videoDuration-l().playedTime)}}}))},"Df"),VzV=_.W1(function(){return _.Y("div",{class:_.ii("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.Y(_.mw,{data:{type:17,
text:_.A_.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Ef"),IAE=_.W1(function(V){var l=V.props;
var I=V.data;var H=V.options;return _.Y(_.c2b,{progressBarProps:l,config:function(){var T,x=_.y((T=I())==null?void 0:T.multiMarkersPlayerBar,_.ggv),n;T=((n=H())==null?0:n.insetProgressBar)?2:1;var w;n=(w=H())==null?void 0:w.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:T,chapterData:x,isInlinePlayback:!0,doSeekOnClick:n,playheadDotBehavior:n?1:0}}})},"Ff");_.MR(_.W1(function(V){var l=V.data;var I=V.appApi;var H=V.options;var T=ccY(l,uu2(I));V={};I={};return _.Y("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.Y("div",{class:_.ii("ytInlinePlayerControlsDarkenedOverlay",(V.ytInlinePlayerControlsDarkenedOverlayShow=function(){return T().isHovering},V))}),_.Y(ATY,null),_.Y(Cfr,{data:T}),_.Y(aRV,{data:l}),_.Y(S76,{playerControlsProps:T,
isShortsPage:!1}),_.Y("div",{class:_.ii((I.ytInlinePlayerControlsControlsHidden=function(){return T().isDragging},I))},_.Y(fRh,{props:T,
data:l,options:H}),_.Y(img,{props:T,data:l,options:H})),_.Y(_.NS,{cond:function(){return vBh(l(),H())},
then:function(){return _.Y(IAE,{props:T,data:l,options:H})}}))},"xf"),"yt-inline-player-controls",{props:{data:_.b9,
appApi:_.qR,options:_.b9}});var uo,Htb=function(){var V=_.M.apply(this,arguments)||this;V.opts=null;V.playerControlsData=null;V.playerControlsAppApi={openInMiniplayer:function(){V.openInMiniplayer()}};
V.playerControlsOptions={};V.noAnimation=!1;V.playbackIntentTriggered=!1;V.positionData=null;V.hidden=!0;V.active=!1;V.playing=!1;V.videoPreviewDataIndex=0;V.JSC$16722_playerPromise=null;V.player=null;V.enableAudioControls=!1;V.hasBeenUnmuted=!1;V.captionsHaveBeenTurnedOff=!1;V.JSC$16722_playerEvents=new Map;V.videoPreviewFetchRequest=null;V.scheduledPreviewEndJobId=null;V.JSC$16722_preventProgressSaveTimer=null;V.watchEndpointStartTimeUpdaterInterval=null;V.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};V.windowOnBlurFn=function(){V.deactivate()};
return V};
_.t(Htb,_.M);_.B=Htb.prototype;
_.B.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.z("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"}}}};
_.B.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16722_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16722_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16722_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16722_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.VP(this,this.onPageTypeChange));this.pagePath=location.pathname};
_.B.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn)};
_.B.onPageTypeChange=function(){this.deactivate()};
_.B.onWindowResized=function(){this.deactivate()};
_.B.onCaptionsChanged=function(V){V=!!V.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!V);this.setCaptionSize()};
_.B.setCaptionSize=function(){var V;if(this.active&&!this.captionsHaveBeenTurnedOff&&((V=this.player)==null?0:V.getCaptionWindowContainerId())){var l;(l=this.player)==null||l.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.B.currentPageAllowed=function(){return!this.isWatchPage};
_.B.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var V=this.positionData,l=V.initialTopPosition,I=V.initialHorizontalPosition;_.i3(this.hostElement,{"--ytd-video-preview-translate-left":V.finalHorizontalPosition-I+"px","--ytd-video-preview-translate-top":V.finalTopPosition-l+"px","--ytd-video-preview-original-top-position":l+"px","--ytd-video-preview-original-horizontal-position":I+"px",
"--ytd-video-preview-initial-scale":"scale("+V.initialScale+")","--ytd-video-preview-width":V.videoPreviewWidth+"px","--ytd-video-preview-height":V.videoPreviewHeight+"px"});return!0};
_.B.handleOpenVideoPreviewAction=function(V){var l=this,I;return _.d(function(H){if(!l.currentPageAllowed())return H.return(0);l.opts=V;return(I=l.alignVideoPreviewForAnimation(V.thumbnail))?H.return(l.activate()):H.return(0)})};
_.B.onMouseLeave=function(V){this.shouldDeactivateOnMouseLeave(V)&&this.deactivate()};
_.B.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.r0.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.B.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.B.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",uo.JSC$16721_DEFAULT_CLICK_LOCATION_BEHAVIOR,uo.JSC$16721_CLICK_LOCATION_ID_MAP)};
_.B.shouldDeactivateOnMouseLeave=function(V){V=V.relatedTarget;if(!V)return!0;var l;return(l=this.opts)!=null&&l.mediaRenderer?!_.aQ(this.opts.mediaRenderer).contains(V):!0};
_.B.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.B.onPlaybackStart=function(){var V=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$16722_preventProgressSaveTimer=
_.vX(_.r0,function(){V.resetPreventProgressSaveTimer()},1E4);
var l;if((l=this.opts)==null?0:l.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.vX(_.r0,function(){V.hasMultipleVideoPreviews()?V.startPlaybackForNextVideo():V.deactivate()},this.opts.videoPreviewDurationMs);
var I;this.player.setGlobalCrop(((I=this.opts)==null?0:I.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.B.getRoundedCornersSize=function(){var V;if((V=this.opts)==null?0:V.roundedCornersSize){var l;return(l=this.opts)==null?void 0:l.roundedCornersSize}var I;if((I=this.opts)==null?0:I.enableRounding){var H;if(((H=this.opts)==null?void 0:H.thumbnailSize)==="small")return 1;var T;if(((T=this.opts)==null?void 0:T.thumbnailSize)==="medium")return 2;var x;if(((x=this.opts)==null?void 0:x.thumbnailSize)==="large")return 3}return _.z("web_imp_inset_progress_bar")?3:0};
_.B.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.B.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.B.onMediaContainerClick=function(V){this.isShortcutClick(V)||(this.navigateToWatch(V),V.preventDefault(),V.stopPropagation())};
_.B.activate=function(){var V=this,l,I,H,T,x,n,w,N;return _.d(function(L){switch(L.nextAddress){case 1:if(!V.currentPageAllowed())return L.return(0);I=(l=V.videoPreviewData)==null?void 0:l.inlinePlaybackEndpoint;H=_.Zt.instance;if(!I||!H)return L.return(0);V.playbackIntentTriggered=!0;((T=V.opts)==null?0:T.mediaRenderer)&&EBu(V.opts.mediaRenderer,function(){V.deactivate()});
_.Al(V,function(){V.revealPreviewUi()});
x={};_.z("enable_unknown_lact_fix_on_html5")&&(_.F().resolve(_.Fp),x.lact=_.f0());V.videoPreviewFetchRequest=X$h(H,V.getInlinePlaybackRequestData(V.videoPreviewData),x);_.jd(L,2);return _.K(L,V.videoPreviewFetchRequest,4);case 4:n=L.yieldResult;if(((w=n)==null?void 0:(N=w.playabilityStatus)==null?void 0:N.status)==="OK")return L.return(V.handlePlayerResponse(n));throw Error("Kj");case 2:_.kE(L),V.deactivate();case 3:return L.return(1)}})};
_.B.getInlinePlaybackRequestData=function(V){var l,I=_.z("web_imp_player_mute_params")?((l=this.opts)==null?void 0:l.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:V.inlinePlaybackEndpoint,startPlaybackInMutedState:I}};
_.B.handlePlayerResponse=function(V){var l=this,I,H,T,x,n,w,N,L,e,k;return _.d(function(X){if(X.nextAddress==1){I=l.getInlinePlaybackVideoId();if(!(((H=V)==null?0:(T=H.videoDetails)==null?0:T.videoId)&&l.currentPageAllowed()&&l.playbackIntentTriggered&&l.opts&&I))return l.deactivate(),X.return(0);if(V.videoDetails.videoId!==I)return X.return(0);l.enableAudioControls=!!((x=V.playerConfig)==null?0:(n=x.inlinePlaybackConfig)==null?0:n.showAudioControls);V.trackingParams=l.getInlinePlaybackTrackingParams();
if(!l.inlinePlayer)return X.return(0);w={};if(L=_.y((N=l.videoPreviewData)==null?void 0:N.inlinePlaybackEndpoint,_.vU))w.watch_endpoint=L;if(l.videoPreviewData){var r,E=(r=_.y(l.videoPreviewData.inlinePlaybackEndpoint,_.vU))==null?void 0:r.startTimeSeconds;E!==void 0&&(V.playerConfig||(V.playerConfig={}),V.playerConfig.playbackStartConfig||(V.playerConfig.playbackStartConfig={}),V.playerConfig.playbackStartConfig.startPosition||(V.playerConfig.playbackStartConfig.startPosition={}),V.playerConfig.playbackStartConfig.startSeconds=
E,V.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(E*1E3))}l.inlinePlayer.loadVideoWithPlayerResponse(V,w);if(l.JSC$16722_playerPromise)return X.jumpTo(2);l.JSC$16722_playerPromise=l.inlinePlayer.getPlayerPromise();return _.K(X,l.JSC$16722_playerPromise,3)}X.nextAddress!=2&&(e=X.yieldResult,e.setInlinePreview(!0),e.setSizeStyle(!1,!0),l.ytPlayerListenerBehavior.listenToPlayerEvents(e,l.JSC$16722_playerEvents),l.player=e,_.B$(l.hostElement,"player-api-ready"));((k=l.opts)==
null?0:k.showPlayerControls)&&l.videoPreviewData&&l.player&&(l.playerControlsData={playerResponse:V,isInlinePlayback:!0,thumbnailOverlays:l.videoPreviewData.thumbnailOverlays,playerApi:l.player},l.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!l.unroundCornersForPlayback,additionalButton:l.getAdditionalButtonType(l.videoPreviewData.thumbnailOverlays)});return X.return(2)})};
_.B.revealPreviewUi=function(){var V=this;this.playbackIntentTriggered&&_.ta1(this,function(){V.hasThumbnailPositionChangedSinceTriggered()||(V.updateActiveState(!0),V.noAnimation=!1)})};
_.B.hasThumbnailPositionChangedSinceTriggered=function(){var V=this.positionData,l=this.getThumbnailPositionData();return(V==null?void 0:V.initialTopPosition)!==(l==null?void 0:l.initialTopPosition)||(V==null?void 0:V.initialHorizontalPosition)!==(l==null?void 0:l.initialHorizontalPosition)};
_.B.getThumbnailPositionData=function(){var V,l;if((l=this.opts)==null||!l.thumbnail)return null;l=this.opts.thumbnail;var I=((V=this.opts)==null?0:V.cropPlayerToFillThumbnailHorizontally)?!1:!0;var H=l.getBoundingClientRect();V=H.width;l=H.height;var T=H.top+window.scrollY;H=H.left+window.scrollX;var x=I?Math.ceil(V):V;I=I?Math.ceil(l):l;var n=V/x;V={initialScale:n,initialTopPosition:T-12*n,finalTopPosition:T-12-(I-l)/2,initialHorizontalPosition:H-(12+(x-V)/2),finalHorizontalPosition:H-12-(x-V)/
2,videoPreviewWidth:x,videoPreviewHeight:I};return V};
_.B.updateActiveState=function(V){this.active=V;this.ytdReduxBehavior.dispatch(_.IA({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:V}))};
_.B.stopPlayer=function(V){V=V.resetWatchEndpointStartTime===void 0?!1:V.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(V)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.r0.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.B.deactivate=function(V){V=V===void 0?{}:V;V=V.resetWatchEndpointStartTime===void 0?!1:V.resetWatchEndpointStartTime;BM&&(BM.disconnect(),BM=null);this.stopPlayer({resetWatchEndpointStartTime:V});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.B.isValidThumbnailOverlayButton=function(V,l){V=V.thumbnailOverlayButtonRenderer;var I;return!!V&&!!V.tooltip&&!((I=V.icon)==null||!I.iconType)&&l.includes(V.icon.iconType)};
_.B.isValidThumbnailOverlayButtonViewModel=function(V,l){var I;V=_.y((I=V.thumbnailOverlayButtonViewModel)==null?void 0:I.overlayButton,_.Gb);return!!V&&!!V.title&&!!V.iconName&&l.includes(V.iconName)};
_.B.getAdditionalButtonType=function(V){var l=this;if(_.z("web_imp_fastforward_button"))return{button:1};if(_.z("web_imp_miniplayer_button"))return{button:2};if(_.z("web_imp_playback_speed_button"))return{button:3};var I=["AUTO_AWESOME"],H=(V||[]).filter(function(x){return l.isValidThumbnailOverlayButton(x,I)}).map(function(x){return x.thumbnailOverlayButtonRenderer});
if(H.length)return{button:4,thumbnailOverlayButtonRenderers:H};var T=["AUTO_AWESOME"];V=(V||[]).filter(function(x){return l.isValidThumbnailOverlayButtonViewModel(x,T)}).map(function(x){return _.y(x.thumbnailOverlayButtonViewModel.overlayButton,_.Gb)});
if(V.length)return{button:4,thumbnailOverlayButtonViewModels:V}};
_.B.allowCaptions=function(){var V;return!((V=this.opts)==null?0:V.forceCaptionsOff)};
_.B.allowUnmuting=function(){var V;return this.enableAudioControls&&!((V=this.opts)==null?0:V.forceMutedVolume)};
_.B.beginStartTimeUpdater=function(){var V=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Hx(function(){V.updateWatchEndpointStartTime()},1E3)};
_.B.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.B.resetPreventProgressSaveTimer=function(){this.JSC$16722_preventProgressSaveTimer!==null&&(_.r0.cancelJob(this.JSC$16722_preventProgressSaveTimer),this.JSC$16722_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.B.updateWatchEndpointStartTime=function(V){var l=this.videoPreviewData;if(this.player&&l!=null&&l.inlinePlaybackEndpoint&&!this.JSC$16722_preventProgressSaveTimer){V=V?0:Math.floor(this.player.getCurrentTime());var I=_.y(l.navigationEndpoint,_.vU);I&&(I.startTimeSeconds=V);if(l=_.y(l.inlinePlaybackEndpoint,_.vU))l.startTimeSeconds=V}};
_.B.isShortcutClick=function(V){return!!V&&(V.ctrlKey||V.shiftKey||V.metaKey)};
_.B.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.B.openInMiniplayer=function(){var V=this,l,I;return _.d(function(H){if(H.nextAddress==1){I=(l=V.videoPreviewData)==null?void 0:l.navigationEndpoint;if(!I)return H.return();_.jl().lockupActivation=!0;return _.K(H,_.K7N(_.F().resolve(_.sH),I),2)}_.jl().userActivation=!0;_.FU(H)})};
_.B.navigateToWatch=function(V){var l,I=(l=this.videoPreviewData)==null?void 0:l.navigationEndpoint;if(I){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(I,V,!0);else{if(_.z("web_thumbnail_to_watch_transition")){var H,T;(H=this.opts)==null||(T=H.onNavigateToWatchCallback)==null||T.call(H)}_.B$(this.hostElement,"yt-navigate",{endpoint:I})}this.deactivate()}};
_.B.getInlinePlaybackVideoId=function(){var V,l;return(l=_.y((V=this.videoPreviewData)==null?void 0:V.inlinePlaybackEndpoint,_.vU))==null?void 0:l.videoId};
_.B.getInlinePlaybackTrackingParams=function(){var V,l;return(V=this.videoPreviewData)==null?void 0:(l=V.inlinePlaybackEndpoint)==null?void 0:l.clickTrackingParams};
_.B.hasMultipleVideoPreviews=function(){var V;return!!(((V=this.opts)==null?0:V.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.B.startPlaybackForNextVideo=function(){var V;(V=this.opts)!=null&&V.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())};
_.vI.Object.defineProperties(Htb.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.opts)==null?0:V.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.opts)==null||!V.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 V;if(Array.isArray((V=this.opts)==null?void 0:V.videoPreviewData)){var l;return(l=this.opts)==null?void 0:l.videoPreviewData[this.videoPreviewDataIndex]}var I;return(I=this.opts)==null?void 0:I.videoPreviewData}}});
var vM=uo=Htb;uo.prototype.onIsAdsVideoChange=uo.prototype.onIsAdsVideoChange;uo.prototype.onInlinePreviewIsEnabledChange=uo.prototype.onInlinePreviewIsEnabledChange;uo.prototype.optsChanged=uo.prototype.optsChanged;uo.prototype.onMouseLeave=uo.prototype.onMouseLeave;vM.JSC$16721_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);vM.JSC$16721_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"}];
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],vM.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],vM.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],vM.prototype,"componentBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],vM.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.Vs.YtSparklesClickLocationBehavior),_.a("design:type",Object)],vM.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],vM.prototype,"opts",void 0);_.O([_.q(),_.a("design:type",Object)],vM.prototype,"playerControlsData",void 0);
_.O([_.q(),_.a("design:type",Object)],vM.prototype,"playerControlsAppApi",void 0);_.O([_.q(),_.a("design:type",Object)],vM.prototype,"playerControlsOptions",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vM.prototype,"noAnimation",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vM.prototype,"hidden",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vM.prototype,"active",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vM.prototype,"playing",void 0);_.O([_.q({selector:_.hdg}),_.a("design:type",Boolean)],vM.prototype,"inlinePreviewIsEnabled",void 0);_.O([_.q(),_.a("design:type",String)],vM.prototype,"pagePath",void 0);_.O([_.q({selector:_.P4}),_.a("design:type",Boolean)],vM.prototype,"isWatchPage",void 0);_.O([_.Q("videoPreviewData"),_.a("design:type",Object),_.a("design:paramtypes",[])],vM.prototype,"thumbnailData",null);
_.O([_.Q("opts","active"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],vM.prototype,"hidePlayerControls",null);_.O([_.Q("opts"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],vM.prototype,"isAdsVideo",null);_.O([_.Q("opts"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],vM.prototype,"roundedCornersSmall",null);
_.O([_.Q("opts"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],vM.prototype,"roundedCornersMedium",null);_.O([_.Q("opts"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],vM.prototype,"roundedCornersLarge",null);_.O([_.Q("opts"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],vM.prototype,"unroundCornersForPlayback",null);
_.O([_.Q("opts","videoPreviewDataIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],vM.prototype,"videoPreviewData",null);_.O([_.q(),_.a("design:type",Object)],vM.prototype,"videoPreviewDataIndex",void 0);_.O([_.Ij("#inline-player"),_.a("design:type",Object)],vM.prototype,"inlinePlayer",void 0);_.O([_.W("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[MouseEvent]),_.a("design:returntype")],vM.prototype,"onMouseLeave",null);
_.O([_.xs("opts"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vM.prototype,"optsChanged",null);_.O([_.xs("inlinePreviewIsEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vM.prototype,"onInlinePreviewIsEnabledChange",null);_.O([_.b("isAdsVideo"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vM.prototype,"onIsAdsVideoChange",null);
vM=uo=_.O([_.A({is:"ytd-video-preview",disableElementRegistration:!0})],vM);
_.u(vM,"ytd-video-preview",function(){if(ZmE!==void 0)return ZmE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ZmE=V},{mode:2});
}catch(e){_._DumpException(e)}
try{
var nz2;var $Kh;/*

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
*/
_.Ne({_template:function(){if($Kh!==void 0)return $Kh;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;nz2===void 0&&(nz2=document.createElement("template"));var H=nz2;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return $Kh=V},
is:"tp-yt-paper-checkbox",behaviors:[_.QKZ],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Al(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var V=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),l="px",I=V.match(/[A-Za-z]+$/);I!==null&&(l=I[0]);V=parseFloat(V);I=8/3*V;l==="px"&&(I=Math.floor(I),I%2!==V%2&&I++);this.updateStyles({"--paper-checkbox-ink-size":I+
l})}})},
_computeCheckboxClass:function(V,l){var I="";V&&(I+="checked ");l&&(I+="invalid");return I},
_computeCheckmarkClass:function(V){return V?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.SHN._createRipple.call(this)}});var dK2=new _.f("radioButtonSurveyOptionRenderer"),wIr=new _.f("checkboxSurveyOptionRenderer");var Nuu;var K4I;var jXu=0,YwE=function(){var V=_.M.call(this)||this;V.selected=!1;V.isOverlay=!1;V.inputId="toggle-option-"+jXu;jXu++;return V};
_.t(YwE,_.M);YwE.prototype.onTap=function(){_.B$(this.hostElement,"ytd-toggle-option-clicked")};
var Zd=YwE;_.O([_.q(),_.a("design:type",String)],Zd.prototype,"label",void 0);_.O([_.q(),_.a("design:type",String)],Zd.prototype,"inputId",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Zd.prototype,"selected",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Zd.prototype,"isOverlay",void 0);Zd=_.O([_.A({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.a("design:paramtypes",[])],Zd);
_.u(Zd,"ytd-toggle-option-renderer",function(){if(K4I!==void 0)return K4I;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return K4I=V},{mode:1});var L4Y=function(){var V=_.M.apply(this,arguments)||this;V.isToggleOption=!1;V.isOverlay=!1;return V};
_.t(L4Y,_.M);L4Y.prototype.onTap=function(V){V.preventDefault();this.data&&(V=!this.data.checked,this.set("data.checked",V),_.B$(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:V,value:this.data.value}))};
_.vI.Object.defineProperties(L4Y.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
var Sg=L4Y;Sg.prototype.onTap=Sg.prototype.onTap;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Sg.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Sg.prototype,"isToggleOption",void 0);_.O([_.q(),_.a("design:type",Object)],Sg.prototype,"isOverlay",void 0);_.O([_.Q("data.responseText"),_.a("design:type",String),_.a("design:paramtypes",[])],Sg.prototype,"label",null);
_.O([_.W("ytd-toggle-option-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Sg.prototype,"onTap",null);Sg=_.O([_.A({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Sg);
_.u(Sg,"ytd-checkbox-survey-option-renderer",function(){if(Nuu!==void 0)return Nuu;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Nuu=V},{mode:1});var ewQ;var kOE;var F42=function(){var V=_.M.apply(this,arguments)||this;V.checked=!1;V.isToggleOption=!1;return V};
_.t(F42,_.M);F42.prototype.onTap=function(){this.data&&(this.checked?_.xB(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.xB(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
var RE=F42;RE.prototype.onTap=RE.prototype.onTap;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],RE.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],RE.prototype,"checked",void 0);_.O([_.q(),_.a("design:type",Object)],RE.prototype,"isToggleOption",void 0);
_.O([_.W("ytd-toggle-option-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],RE.prototype,"onTap",null);RE=_.O([_.A({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],RE);
_.u(RE,"ytd-radio-button-survey-option-renderer",function(){if(kOE!==void 0)return kOE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return kOE=V},{mode:1});var XIY=function(){var V=_.M.apply(this,arguments)||this;V.disableAnimation=!1;V.isToggleOption=!0;V.followUpSurveyCommand=null;V.selectedRatingEndpoint=null;V.isSlimlineSurveyFollowUp=!1;V.isShortsStyle=!1;V.styleOverrideAttribute=!0;V.isDarkMode=!1;V.isSubmitted=!1;V.roundedContainer=!0;V.improveShortsResponseRate=_.z("web_improve_shorts_response_rate");V.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 V};
_.t(XIY,_.M);_.B=XIY.prototype;
_.B.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"}}}}};
_.B.attached=function(){var V=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(I){var H;if((H=I[0])!=null&&H.isIntersecting){_.TG().reportShown(V.hostElement);var T;(T=V.intersectionObserver)==null||T.unobserve(V.hostElement)}},{rootMargin:"0px",
threshold:.6});var l;(l=this.intersectionObserver)==null||l.observe(this.hostElement)};
_.B.onDarkModeToggledAction=function(V){this.isDarkMode=V};
_.B.dataChanged=function(){var V;if(((V=this.data)==null?void 0:V.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var l;((l=this.data)==null?void 0:l.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var I,H,T,x;this.darkColorPalette=(I=this.data)==null?void 0:(H=I.inlineContent)==null?void 0:(T=H.compactVideoRenderer)==null?void 0:(x=T.thumbnail)==null?
void 0:x.darkColorPalette;var n,w,N,L;this.lightColorPalette=(n=this.data)==null?void 0:(w=n.inlineContent)==null?void 0:(N=w.compactVideoRenderer)==null?void 0:(L=N.thumbnail)==null?void 0:L.lightColorPalette;var e,k;if(((e=this.data)==null?0:(k=e.inlineContent)==null?0:k.compactVideoRenderer)&&this.isShortsStyle){var X,r,E,D;V=_.pt((X=this.data)==null?void 0:(r=X.inlineContent)==null?void 0:(E=r.compactVideoRenderer)==null?void 0:(D=E.thumbnail)==null?void 0:D.thumbnails);_.i3(this.hostElement,
{"--yt-background-url":"url("+V+")"})}};
_.B.handleRequestCompletion=function(){this.hostElement.hidden&&_.B$(this.hostElement,"yt-dismissible-item-dismissed")};
_.B.onPopupClosed=function(V){var l;((l=V.detail)==null?void 0:l.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.xB(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.B.handleInlineSurveyRatingSelect=function(V,l){var I=this;this.selectedRatingEndpoint=V;this.followUpSurveyCommand=l;this.expanded=!!V;this.getOptionRenderers().forEach(function(H,T){I.notifyPath("followUpSurveyCommand.followUpOptions."+T+".checkboxSurveyOptionRenderer.checked");I.set("followUpSurveyCommand.followUpOptions."+T+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),V=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.xB(this.hostElement,"yt-reel-non-video-content-dismissal-command",[V]))};
_.B.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.xB(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var V,l=(V=this.data)==null?void 0:V.dismissalEndpoint;l&&this.ytComponentBehavior.resolveCommand(l)}};
_.B.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.xB(this.hostElement,"yt-close-popup-action"))};
_.B.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var V=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{V=this.getOptionRenderers().filter(function(H){return H.checked});
if(V.length===0)return;V=V.map(function(H){return H.responseEndpoint})}var l=[];
V.forEach(function(H,T){T!==0&&(H=_.y(H,_.Q3))&&H.feedbackToken&&l.push(H.feedbackToken)});
if(V=V[0]){var I={};l.length>0&&(I.extra_feedback_tokens=l);this.ytComponentBehavior.resolveCommand(V,{form:I})}}};
_.B.getOptionRenderers=function(){var V=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(l){V.isSingleSelect=!!_.y(l,dK2);return V.isSingleSelect?_.y(l,dK2):_.y(l,wIr)}):[]};
_.B.handleInlineSurveyOptionSelect=function(V){V=this.optionSelector.indexOf(V);V!==-1&&this.optionSelector.selectIndex(V)};
_.B.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.B.maybeGetBackgroundColor=function(V){return this.isDarkMode?V.section2Color:V.section3Color};
_.B.colorPaletteChanged=function(){var V=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;V=V&&this.maybeGetBackgroundColor(V);this.dismissibleEl.style.backgroundColor=!V||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.tv(V)};
_.vI.Object.defineProperties(XIY.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
var QQ=XIY;QQ.prototype.colorPaletteChanged=QQ.prototype.colorPaletteChanged;QQ.prototype.onPopupClosed=QQ.prototype.onPopupClosed;QQ.prototype.handleRequestCompletion=QQ.prototype.handleRequestCompletion;QQ.prototype.dataChanged=QQ.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],QQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],QQ.prototype,"actionHandlerBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],QQ.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],QQ.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.Ij("#follow-up-survey-options"),_.a("design:type",Object)],QQ.prototype,"optionSelector",void 0);_.O([_.q(),_.a("design:type",Object)],QQ.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],QQ.prototype,"disableAnimation",void 0);_.O([_.q(),_.a("design:type",Object)],QQ.prototype,"isToggleOption",void 0);_.O([_.q(),_.a("design:type",Object)],QQ.prototype,"followUpSurveyCommand",void 0);_.O([_.q(),_.a("design:type",Object)],QQ.prototype,"selectedRatingEndpoint",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],QQ.prototype,"expanded",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],QQ.prototype,"isSlimlineSurveyFollowUp",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],QQ.prototype,"isShortsStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],QQ.prototype,"styleOverrideAttribute",void 0);_.O([_.q(),_.a("design:type",Boolean)],QQ.prototype,"isSingleSelect",void 0);_.O([_.q(),_.a("design:type",Object)],QQ.prototype,"isDarkMode",void 0);
_.O([_.q(),_.a("design:type",Object)],QQ.prototype,"lightColorPalette",void 0);_.O([_.q(),_.a("design:type",Object)],QQ.prototype,"darkColorPalette",void 0);_.O([_.Q("selectedRatingEndpoint","isShortsStyle"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],QQ.prototype,"isOptionSelected",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],QQ.prototype,"roundedContainer",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],QQ.prototype,"improveShortsResponseRate",void 0);_.O([_.Ij("#dismissible"),_.a("design:type",HTMLElement)],QQ.prototype,"dismissibleEl",void 0);_.O([_.Ij("#dismiss-button yt-icon-button"),_.a("design:type",HTMLElement)],QQ.prototype,"dismissButtonEl",void 0);_.O([_.Ij("#inline-survey-header yt-icon-button"),_.a("design:type",HTMLElement)],QQ.prototype,"inlineHeaderDismissButtonEl",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QQ.prototype,"dataChanged",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QQ.prototype,"handleRequestCompletion",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],QQ.prototype,"onPopupClosed",null);
_.O([_.b("darkColorPalette","lightColorPalette","isDarkMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QQ.prototype,"colorPaletteChanged",null);QQ=_.O([_.A({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],QQ);
_.u(QQ,"ytd-inline-survey-renderer",function(){if(ewQ!==void 0)return ewQ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ewQ=V},{mode:1});
}catch(e){_._DumpException(e)}
try{
var pyd,A1C,uJp;pyd=function(V){return _.z("kevlar_watch_cinematics_invisible")||V.fullscreen&&_.z("kevlar_watch_cinematics_invisible_in_fullscreen")||V.theater&&!V.fullscreen&&_.z("kevlar_watch_cinematics_invisible_in_theater")};
A1C=function(){var V=document.createElement("canvas"),l=V.getContext("2d");if(!l)throw Error("Yl");_.pu(V,{position:"absolute",width:"100%",height:"100%"});return{element:V,context:l}};
uJp=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.z("kevlar_watch_cinematics_css_blur")};
_.vTh=function(V,l,I){return Math.abs(V-l)<=(I||1E-6)};
_.OKd=function(V,l){return V==l?!0:V&&l?V.width==l.width&&V.height==l.height:!1};_.CNY=new _.f("notificationActionRenderer");var agn=function(V){var l=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.IQ;this.element.addEventListener("load",function(){l.loaded=!0;l.resolver.resolve(l.element)});
this.element.addEventListener("error",function(){l.failed=!0});
this.element.src=V};var fgh=function(V,l){this.image=V;this.frame=l};
fgh.prototype.drawToCanvas=function(V,l){var I=this.frame.width/this.frame.columns,H=this.frame.height/this.frame.rows,T=l.offsetX,x=l.offsetY;pyd(l)?(V.fillStyle=l.fullscreen?"#000":"#0f0f0f",V.fillRect(T,x,(l==null?void 0:l.width)||I,(l==null?void 0:l.height)||H)):V.drawImage(this.image,this.frame.column*I,this.frame.row*H,I,H,T,x,(l==null?void 0:l.width)||I,(l==null?void 0:l.height)||H)};
var gTO=function(V){this.color=V};
gTO.prototype.drawToCanvas=function(V,l){var I=l.offsetX,H=l.offsetY,T=l.width,x=l.height;V.fillStyle=pyd(l)?l.fullscreen?"#000":"#0f0f0f":this.color;V.fillRect(I,H,T,x)};var $Z=function(V,l){_.gi.call(this);this.playerApi=l;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Yp(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();mqn(this,V);_.iK6(this);this.update()},Ivj;
_.t($Z,_.gi);$Z.prototype.addEventListeners=function(){var V=this,l=function(){V.update()},I=function(T){V.paused||(T.type==="newdata"&&(V.mosaics.clear(),Vox(V),dH(V)),_.iK6(V),V.update())},H=function(){V.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",l);this.playerApi.addEventListener("onVideoDataChange",I);this.playerApi.addEventListener("onStateChange",H);this.addOnDisposeCallback(function(){V.playerApi.removeEventListener("onVideoProgress",l);V.playerApi.removeEventListener("onVideoDataChange",I);V.playerApi.removeEventListener("onStateChange",H)})};
var mqn=function(V,l){V.cinematicContainerRenderer!==l&&(V.cinematicContainerRenderer=l,Vox(V),dH(V),V.colorStoreUpdateJobId=_.r0.addLowPriorityJob(function(){var I;if((I=V.cinematicContainerRenderer.colorStore)!=null&&I.sampledColors){I=Infinity;for(var H=_.U(V.cinematicContainerRenderer.colorStore.sampledColors),T=H.next();!T.done;T=H.next()){T=T.value;var x=Number(T.key);x!==0&&x<I&&(I=x);x=_.rP(T.value);V.colorStore.set(T.key,x)}V.colorStoreTimeInterval=I}}))},Vox=function(V){V.colorStoreUpdateJobId&&
(_.r0.cancelJob(V.colorStoreUpdateJobId),V.colorStoreUpdateJobId=void 0);
V.colorStore.clear();V.currentStoryboardColor=void 0},lvq=function(V,l){var I;
return(I=V.getStoryboardFrame(l))==null?void 0:I.url};
$Z.prototype.onPlayerStateChange=function(){this.update()};
$Z.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.iK6=function(V){var l=V.getStoryboardFrame(0);l&&(l=new _.Yp(l.width/l.columns,l.height/l.rows),_.OKd(V.currentStoryboardSize,l)||(V.currentStoryboardSize=l,V.publish("STORYBOARD_SIZE_CHANGED",V.currentStoryboardSize)))};
Ivj=function(V,l){V.currentStoryboardIndex=l;V.pendingStoryboardIndex=NaN;l=V.getStoryboardFrame(V.currentStoryboardIndex);V.currentStoryboard=new fgh(V.mosaics.get(l.url).element,l);V.publish("STORYBOARD_CHANGED",V.currentStoryboard);V.lastUpdateTime=(0,_.O_)()};
$Z.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var dH=function(V){V.currentStoryboardIndex=NaN;V.pendingStoryboardIndex=NaN;V.currentStoryboard&&(V.currentStoryboard=void 0,V.publish("STORYBOARD_CHANGED",void 0));V.lastUpdateTime=NaN};
$Z.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)dH(this);else{var V=this.playerApi.getPlayerState(1);if(V===-1||V===5||V===0)dH(this);else if(isNaN(this.lastUpdateTime)||!((0,_.O_)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(V=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){V=""+Math.round(V*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var l=this.colorStore.get(V);l?l!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=l,this.currentStoryboard=new gTO(l),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.O_)()):(_.hF(new _.Yd("Could not find color for timestamp: "+V,this.cinematicContainerRenderer)),dH(this))}else dH(this);else HZj(this,V)}};
var HZj=function(V,l){var I=V.getStoryboardFrameIndex(l);if(I!==V.currentStoryboardIndex&&I!==V.pendingStoryboardIndex){l=lvq(V,I);var H=V.mosaics.get(l);H?H.loaded&&Ivj(V,I):(V.pendingStoryboardIndex=I,I=new agn(l),V.mosaics.set(l,I),I.resolver.promise.then(function(){if(!V.isDisposed()&&!V.paused&&!isNaN(V.pendingStoryboardIndex)){var T=lvq(V,V.pendingStoryboardIndex);if(T){var x;(x=V.mosaics.get(T))!=null&&x.loaded&&Ivj(V,V.pendingStoryboardIndex)}else dH(V)}}))}};
$Z.prototype.getStoryboardFrameIndex=function(V){var l=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(V,l)};
$Z.prototype.getStoryboardFrame=function(V){var l=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,I,H;return((H=(I=this.playerApi).getStoryboardFrame)==null?void 0:H.call(I,V,l))||null};
$Z.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Ng=function(V,l,I,H){H=H===void 0?!1:H;_.XG.call(this);this.cinematicContainerRenderer=l;this.playerApi=I;this.theater=this.fullscreen=!1;var T;this.ambientLightThemeEnabled=!H&&!!(l==null?0:(T=l.config)==null?0:T.enableInLightTheme);this.ambientFullscreenEnabled=H&&_.z("web_cinematic_fullscreen");this.container=document.createElement("div");V.appendChild(this.container);var x;if(_.z("web_cinematic_theater_mode")||_.z("web_cinematic_fullscreen")||(l==null?0:(x=l.config)==null?0:x.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);TbV(this);V=this.ambientV2Container||this.container;this.backCanvas=A1C();this.frontCanvas=A1C();V.appendChild(this.backCanvas.element);V.appendChild(this.frontCanvas.element);this.storyboardManager=new $Z(l,this.playerApi);_.$w(this,this.storyboardManager);this.addEventListeners();Bbj(this)?xNd(this,100+wH(this)*3*2,100+wH(this)*3*2):UNj(this);nJV(this,this.storyboardManager.currentStoryboard)};
_.t(Ng,_.XG);var TbV=function(V){V.ambientV2Container?$N5(V):(_.pu(V.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+dNj(V)+", "+wwx(V)+")"}),uJp()&&_.pu(V.container,"filter","blur("+_.g7("cinematic_watch_css_filter_blur_strength",40)+"px)"))},$N5=function(V){if(V.ambientV2Container){var l=V.playerApi.getVideoAspectRatio();
_.pu(V.container,{"aspect-ratio":""+l,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.pu(V.ambientV2Container,{"aspect-ratio":""+l,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+dNj(V)+", "+wwx(V)+")"});uJp()&&_.pu(V.ambientV2Container,"filter","blur("+_.g7("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Ng.prototype.setFullscreen=function(V,l){this.fullscreen=V;this.theater=!!l;TbV(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),V=this.storyboardManager.currentStoryboard,Nbf(this),V&&KW6(this,V)};
Ng.prototype.addEventListeners=function(){var V=this,l=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(T){nJV(V,T)}),I=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){UNj(V)});
this.addOnDisposeCallback(function(){V.storyboardManager.unsubscribeByKey(l);V.storyboardManager.unsubscribeByKey(I)});
if(this.ambientV2Container){var H=function(){$N5(V)};
this.playerApi.addEventListener("onVideoDataChange",H);this.addOnDisposeCallback(function(){V.playerApi.removeEventListener("onVideoDataChange",H)})}};
var UNj=function(V){if(!Bbj(V)){var l=V.storyboardManager.currentStoryboardSize;isNaN(l.width)||isNaN(l.height)||xNd(V,Number(l.width)+wH(V)*3*2,Number(l.height)+wH(V)*3*2)}},xNd=function(V,l,I){V.backCanvas.element.width=l;
V.backCanvas.element.height=I;V.frontCanvas.element.width=l;V.frontCanvas.element.height=I},Bbj=function(V){return V.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},nJV=function(V,l){var I=V.frontCanvas.element.getAnimations()[0];
I?(I.pause(),V.backCanvas.context.globalAlpha=Number(getComputedStyle(V.frontCanvas.element).opacity),V.frontCanvas.element.style.opacity="0",I.finish()):V.backCanvas.context.globalAlpha=1;V.backCanvas.context.drawImage(V.frontCanvas.element,0,0,V.backCanvas.element.width,V.backCanvas.element.height);Nbf(V);l&&KW6(V,l);l=l?V.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.g7("cinematic_watch_fade_out_duration",500);I=_.g7("cinematic_watch_transition_frame_rate")/1E3;var H=
{};I&&(H={easing:"steps("+Math.round(l*I)+")"});V.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:l,iterations:1},H));V.frontCanvas.element.style.opacity="1"},Nbf=function(V){var l=V.ambientLightThemeEnabled,I=V.ambientLightThemeEnabled||V.ambientFullscreenEnabled&&!_.z("web_cinematic_fullscreen_v2");
V.frontCanvas.context.fillStyle=V.theater&&l||V.fullscreen&&I?"#000":"#0f0f0f";uJp()||(V.frontCanvas.context.filter="blur(0)");V.frontCanvas.context.fillRect(0,0,V.frontCanvas.element.width,V.frontCanvas.element.height)},KW6=function(V,l){uJp()||(V.frontCanvas.context.filter="blur("+wH(V)+"px)");
V.frontCanvas.context.globalAlpha=_.g7("cinematic_watch_effect_opacity",.4);var I={offsetX:wH(V)*3,offsetY:wH(V)*3,theater:V.theater,fullscreen:V.fullscreen};Bbj(V)&&(I.width=100,I.height=100);l.drawToCanvas(V.frontCanvas.context,I);V.frontCanvas.context.globalAlpha=1},wH=function(V){var l;
return(l=V.cinematicContainerRenderer.config.blurStrength)!=null?l:5},dNj=function(V){var l,I;
if((V.fullscreen||V.theater)&&((l=V.cinematicContainerRenderer.config)==null?0:(I=l.watchFullscreenConfig)==null?0:I.colorSourceWidthMultiplier))return V.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var H;return(H=V.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?H:V.cinematicContainerRenderer.config.colorSourceSizeMultiplier},wwx=function(V){var l,I;
if((V.fullscreen||V.theater)&&((l=V.cinematicContainerRenderer.config)==null?0:(I=l.watchFullscreenConfig)==null?0:I.colorSourceHeightMultiplier))return V.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var H;return(H=V.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?H:V.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Ng.prototype.disposeInternal=function(){_.XG.prototype.disposeInternal.call(this);this.container.remove()};
Ng.prototype.clear=function(){nJV(this)};
Ng.prototype.pause=function(){this.storyboardManager.pause()};var ji6;ji6=_.ze(function(){var V,l,I=!((l=(V=document.createElement("canvas")).getContext)==null||!l.call(V,"2d")),H;V=!((H=CSS)==null||!H.supports("filter: blur(0)"));H=!!Element.prototype.animate&&!!Element.prototype.getAnimations;l=_.z("web_cinematic_fullscreen")||_.z("web_cinematic_theater_mode")||_.z("web_cinematic_light_theme")||!1;var T;return I&&V&&H&&(!l||!((T=CSS)==null||!T.supports("aspect-ratio: 1 / 1")))});
_.K9=function(V,l){_.gi.call(this);this.container=V;this.playerApi=l;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=YNh(this);this.update()};
_.t(_.K9,_.gi);_.LWn=function(V){var l=document.documentElement.hasAttribute("dark");V.isDarkModeEnabled=l;V.update()};
_.e3p=function(V,l){V.settingEnabled=l;V.update()};
_.K9.prototype.setFullscreen=function(V,l){this.fullscreen=V;this.theater=!!l;this.update()};
_.kEV=function(V,l){V.cinematicContainerRenderer=l;V.cinematicContainerRenderer&&(V.cinematicsVe=_.eU(V.isShorts()?227858:159022),_.Ug(_.x7(),V.cinematicsVe),V.loggingClientData={watchCinematicContainerData:{presentationStyle:V.cinematicContainerRenderer.presentationStyle}});V.update()};
_.K9.prototype.isShorts=function(){var V,l;return((V=this.cinematicContainerRenderer)==null?void 0:(l=V.config)==null?void 0:l.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.K9.prototype.isAllowed=function(){var V;if(V=ji6()){var l,I,H;V=((I=this.cinematicContainerRenderer)==null?void 0:I.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((H=this.cinematicContainerRenderer)==null||!H.colorStore)||((l=this.cinematicContainerRenderer)==null?void 0:l.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(V)if(_.z("web_cinematics_pausing")){var T,x;V=this.isDarkModeEnabled||!!((T=this.cinematicContainerRenderer)==
null?0:(x=T.config)==null?0:x.enableInLightTheme)}else{var n,w;T=!!((n=this.cinematicContainerRenderer)==null?0:(w=n.config)==null?0:w.enableInLightTheme)&&(_.h6("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);V=this.isDarkModeEnabled||T}if(n=V){var N,L;n=!((L=(N=this.prefersReducedMotionQuery)==null?void 0:N.matches)!=null&&L)}return n};
_.FWh=function(V){var l;(l=V.currentCinematicEffect)==null||l.pause()};
_.K9.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var YNh=function(V){if(!_.z("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var l=window.matchMedia("(prefers-reduced-motion: reduce)"),I=function(){V.update()};
l.addListener(I);V.addOnDisposeCallback(function(){l.removeListener(I)});
return l}};
_.K9.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var V=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Ng(this.container,V,this.playerApi,this.isDarkModeEnabled),_.$w(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var l=this.currentCinematicEffect;l.cinematicContainerRenderer!==
V&&(l.cinematicContainerRenderer=V,mqn(l.storyboardManager,V),TbV(l));V=_.Fu();_.Xu(0,194,!0);V.save();V=_.oa();this.cinematicsVe&&V&&_.pT(V,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(V=_.oa(),this.cinematicsVe&&V&&_.Ac(V,[this.cinematicsVe],!1,this.loggingClientData),_.ag(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.vI.Object.defineProperties(_.K9.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var Cr2;var aqh;_.Ne({_template:function(){if(aqh!==void 0)return aqh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=
V.content,I=l.insertBefore;Cr2===void 0&&(Cr2=document.createElement("template"));var H=Cr2;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return aqh=V},
is:"tp-yt-iron-pages",behaviors:[_.Da,_.JT],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Pku;_.DGV=function(){if(_.z("kevlar_home_skeleton")&&!Pku){var V=document.querySelector("#home-page-skeleton");V&&(_.Z8("hgcr"),_.Yw(V),Pku=!0)}};
Pku=!1;_.DG=new _.f("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var rJ2=function(V){return _.U61(_.x6t(V&16777215))<.5},GXb=function(V,l,I){var H=I.minimumRowsOfVideosBetweenSections===void 0?1:I.minimumRowsOfVideosBetweenSections;
return V<(I.minimumRowsOfVideosAtStart===void 0?2:I.minimumRowsOfVideosAtStart)||l!==null&&V-l<=H?!1:!0},Eyh=function(V,l){var I=0,H=0;
V=_.U(V);for(var T=V.next();!T.done;T=V.next()){var x=T.value;if(x.richItemRenderer)x.richItemRenderer.rowIndex=H,x.richItemRenderer.colIndex=I++,I===l&&(I=0,H++);else if(x.richGroupRenderer&&x.richGroupRenderer.numColumns!==void 0)x.richGroupRenderer.rowIndex=H,x.richGroupRenderer.colIndex=I,I+=x.richGroupRenderer.numColumns,I===l&&(I=0,H++);else if(x.richSectionRenderer){var n=T=void 0;if(x=_.y((T=x)==null?void 0:(n=T.richSectionRenderer)==null?void 0:n.content,_.cuZ))x.rowIndex=H++}}},JJr=function(V,
l){var I=l.contentElement;
l=l.rendererToTagNameMap;if(I&&l&&l.size!==0){for(var H=new Map,T=_.U(I.children),x=T.next();!x.done;x=T.next()){x=x.value;var n=x.tagName.toLowerCase(),w=H.get(n);w||(w=[],H.set(n,w));w.push(x)}if(H.size!==0)for(T=Math.min(V.length,I.children.length),x=new Map,n=0;n<T;n++){w=Object.keys(V[n])[0];w=l.get(w);if(!w)break;var N=x.get(w);N===void 0&&(N=0,x.set(w,N));var L=H.get(w);if(!L||N>=L.length)break;x.set(w,N+1);w=L[N];N=I.children[n];N!==w&&(_.vut=!0,_.OUJ.set(w,!0),I.insertBefore(w,N),_.OUJ.delete(w),
_.vut=!1)}}},oyE=function(V,l,I,H,T,x,n){H=H===void 0?{}:H;
if(!V||!V.length)return[];V=V.slice();var w=[],N=[];T=null;for(var L=0,e=function(S){N.sort(function(C,By){return By.skippedOnRow-C.skippedOnRow});
for(var p,Vf=(p=N.shift())==null?void 0:p.content;Vf;)!Vf.richSectionRenderer&&S||w.push(Vf),p=void 0,Vf=(p=N.shift())==null?void 0:p.content},k=[];V.length>0||N.length>0;){for(var X=[],r=l;r>0;){var E=void 0,D=void 0,Z=(D=N[0]&&N[0].skippedOnRow<L?(E=N.shift())==null?void 0:E.content:void 0)!=null?D:V.shift();
if(!Z)break;if(Z.richItemRenderer)E=Z.richItemRenderer.targetId,D=void 0,E&&((D=n)==null?0:D.has(E))&&k.push(n.get(E)),X.push(Z),r--;else if(Z.richGroupRenderer&&Z.richGroupRenderer.numColumns!==void 0)Z.richGroupRenderer.numColumns<=r?(X.push(Z),r-=Z.richGroupRenderer.numColumns):r===l&&Z.richGroupRenderer.numColumns>l?(X.push({richGroupRenderer:Object.assign({},Z.richGroupRenderer,{numColumns:l})}),r=0):N.push({content:Z,skippedOnRow:L});else if(Z.richSectionRenderer)if(GXb(L,T,H)&&r===l){w.push(Z);
T=L;L++;continue}else N.push({content:Z,skippedOnRow:L});else if(Z.continuationItemRenderer){e(!0);w.push(Z);r=0;break}if(r===0)w.push.apply(w,_.oI(X));else if(!I&&V.length===0){e(!1);w.push.apply(w,_.oI(X));r=0;break}}L++;k=_.U(k);for(X=k.next();!X.done;X=k.next())w.push(X.value),L++;k=[]}Eyh(w,l);x&&JJr(w,x);return w},PIu=function(V){var l=V.data;
var I=V.uniqueId;V=V.overrides;var H,T=((H=l.timedAnimationData)==null?void 0:H.animationTiming)||[];return _.Y("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.Y(_.SK1,{settings:{uniqueId:I,timings:T,experimentEnabled:T.length>0,enabled:T.length>0}},hW2(l.buttonRenderer,{buttonRenderer:{buttonOverrides:V}})))},Dmu=function(V){return V.talkToRecs},RWg=function(V,l){if(l){var I=_.v4().getState().entities.flowStateEntity,H=Zcg(V),T=[l];
H&&H!==l&&T.push(H);var x=!0,n;if(I&&V.flowStateEntityKey&&((n=I[V.flowStateEntityKey])==null?void 0:n.primaryButtonDisabled)!==void 0){var w;x=!((w=I[V.flowStateEntityKey])==null||!w.primaryButtonDisabled)}SrV(V,H!=null?H:l,T,x)}},cJY=function(V){return _.Ln(_.v4(),function(l){return l.entities.flowStateEntity},function(l,I){if(V.flowStateEntityKey){var H,T=l==null?void 0:(H=l[V.flowStateEntityKey])==null?void 0:H.currentStepId,x;
I=I==null?void 0:(x=I[V.flowStateEntityKey])==null?void 0:x.currentStepId;x=_.v4().getState().talkToRecs;if(T&&T!==I){var n;l=(l==null?void 0:(n=l[V.flowStateEntityKey])==null?void 0:n.stepIdStack)||Object.keys(x.stepStates);n=!QbP(x==null?void 0:x.stepStates[T]);SrV(V,T,l,n)}}})},WHV=function(V){return _.Ln(_.v4(),Dmu,function(l){var I=Zcg(V);
if(I){var H=Object.keys(l.stepStates);l=!QbP(l==null?void 0:l.stepStates[I]);SrV(V,I,H,l)}})},QbP=function(V){var l=Object.keys((V==null?void 0:V.selectionStates)||{}).reduce(function(x,n){return x||(V==null?void 0:V.selectionStates[n].isSelected)},!1),I,H,T=!!(V==null?0:(I=V.userQuery)==null?0:(H=I.userQuery)==null?0:H.trim());
return l||T},Zcg=function(V){if(V.flowStateEntityKey){var l,I,H=(l=_.v4().getState().entities.flowStateEntity)==null?void 0:(I=l[V.flowStateEntityKey])==null?void 0:I.currentStepId;
if(H)return H}},SrV=function(V,l,I,H){_.v4().dispatch(_.K6("flowStateEntity",V.flowStateEntityKey,{currentStepId:l,
stepIdStack:I,key:V.flowStateEntityKey,primaryButtonDisabled:H}))},bcV;var qrP;_.Ne({_template:function(){if(qrP!==void 0)return qrP;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
var l=V.content,I=l.insertBefore;bcV===void 0&&(bcV=document.createElement("template"));var H=bcV;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return qrP=V},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var MRQ=new _.f("talkToRecsFlowRenderer");var sbg=new _.f("flowRootRenderer");var pRQ=new _.f("chipsShelfViewModel");_.AJI=new _.f("engagementPanelSectionListRenderer");var u7Q=function(){this.horizontal=!1},vyB=function(V,l){V.horizontal=l};
u7Q.prototype.position=function(V,l,I,H){H=H===void 0?1:H;V=this.delta(V)*H+l;H=Math.max(l,I);return V>=Math.min(l,I)&&V<=H?V:I};
u7Q.prototype.axis=function(V){V=this.direction(V);return V==="up"||V==="down"?"Y":"X"};var X7=function(V,l,I){l=l===void 0?_.dd():l;this.target=V;this.manager=l;this.touchAction=I;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
X7.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(_.oI(this.events)));for(var V=_.U(this.events),l=V.next();!l.done;l=V.next())this.listen(l.value)}};
X7.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.oI(this.events)));for(var V=_.U(this.events),l=V.next();!l.done;l=V.next())this.unlisten(l.value)}};
X7.prototype.listen=function(V){this.eventMap[V]&&this.target.addEventListener(V,this.eventMap[V])};
X7.prototype.unlisten=function(V){this.eventMap[V]&&this.target.removeEventListener(V,this.eventMap[V])};var zX=function(){u7Q.apply(this,arguments)};
_.t(zX,u7Q);zX.prototype.direction=function(V){var l=V.detail;V=l.deltaY;l=l.deltaX;return V&&!this.horizontal?V>0?"down":"up":l&&this.horizontal?l>0?"right":"left":"none"};
zX.prototype.distance=function(V){return Math.abs(this.delta(V))};
zX.prototype.delta=function(V){var l=this.direction(V),I=V.detail;V=I.deltaX;I=I.deltaY;return l==="up"||l==="down"?I||0:V||0};
zX.prototype.velocity=function(V){var l=this.direction(V),I=V.detail;V=I.velocityX;I=I.velocityY;return Math.abs(l==="up"||l==="down"?I||0:V||0)};_.yU=function(V,l,I,H,T,x){T=T===void 0?new zX:T;x=x===void 0?_.dd():x;X7.call(this,l,x,H);var n=this;this.element=V;this.target=l;this.config=I;this.input=T;this.manager=x;this.events=["panstart","panmove","panend"];this.onPanStart=function(){n.config.draggingClass&&n.element.classList.add(n.config.draggingClass);n.config.startAction&&n.config.startAction()};
this.onPanMove=function(w){var N=Oc2(n,w);if(N){n.move(w,N);N.fade&&n.fade(w,N);var L=n.input.direction(w);N.moveAction&&N.moveAction(CIY(n,w,N),L)}};
this.onPanEnd=function(w){var N,L,e,k,X,r;return _.d(function(E){if(E.nextAddress==1){n.animationRequestId&&cancelAnimationFrame(n.animationRequestId);n.animationRequestId=void 0;N=Oc2(n,w);if(!N)return E.return();L=N;e=L.triggerAction;k=L.fade;X=L.disableFinish;r=L.translateBack;var D=n.input.velocity(w),Z=n.input.distance(w),S=n.threshold(N);return D>.3&&Z>10||Z>S?X?E.jumpTo(6):k?_.K(E,aGr(n,w),6):_.K(E,fGV(n,w,N),6):r?_.K(E,n.translateBack(w),3):E.jumpTo(3)}E.nextAddress!=3&&e&&e();n.config.draggingClass&&
n.element.classList.remove(n.config.draggingClass);n.reset();_.FU(E)})};
V=Object.keys(I.triggers);this.directions=new Set(V);vyB(this.input,this.directions.has("right")||this.directions.has("left"))};
_.t(_.yU,X7);_.yU.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Oc2=function(V,l){l=V.input.direction(l);return V.config.triggers[l]};
_.yU.prototype.move=function(V,l){var I=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var H=I.input.axis(V),T=I.input.position(V,I.config.startPosition,l.endPosition,l.moveRatio||1);I.element.style.transform="translate"+H+"("+T+"px)";I.animationRequestId=void 0}))};
var CIY=function(V,l,I){var H=I.moveRatio||1;I=Math.abs(V.config.startPosition-I.endPosition);return Math.min(V.input.distance(l)*H,I)/I};
_.yU.prototype.fade=function(V,l){var I=l.endOpacity;V=CIY(this,V,l);V>0&&(this.element.style.opacity=""+(((I||0)-1)*V+1))};
_.yU.prototype.threshold=function(V){return V.threshold?V.threshold:Math.abs(V.endPosition-this.config.startPosition)/3};
var fGV=function(V,l,I){var H,T,x,n,w,N,L;return _.d(function(e){if(e.nextAddress==1)return H=V.input.delta(l)+V.config.startPosition,T=V.input.axis(l),x=I,n=x.endPosition,w=x.transitionEndPosition,L=(N=w)!=null?N:n,_.K(e,V.element.animate([{transform:"translate"+T+"("+H+"px)"},{transform:"translate"+T+"("+L+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);V.element.style.transform="translate"+T+"("+L+"px)";_.FU(e)})};
_.yU.prototype.translateBack=function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1){if(!l.element.style.transform)return T.return();I=l.input.axis(V);H=l.config.startPosition;return _.K(T,l.element.animate([{transform:l.element.style.transform},{transform:"translate"+I+"("+H+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}l.element.style.transform="translate"+I+"("+H+"px)";_.FU(T)})};
var aGr=function(V,l){var I,H,T,x;return _.d(function(n){if(n.nextAddress==1)return I=V.input.delta(l)+V.config.startPosition,H=V.input.axis(l),T=I+70,x=V.element.style.opacity===""?1:V.element.style.opacity,_.K(n,V.element.animate([{transform:"translate"+H+"("+I+"px)",opacity:x},{transform:"translate"+H+"("+T+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);V.element.style.transform="translate"+H+"("+T+"px)";V.element.style.opacity="0";_.FU(n)})};var gyr=function(){var V=_.To.apply(this,arguments)||this;V._noAccessors=!0;V.scrollRate=3;V.autoScrollAnimationStart=0;V.autoScrollPaused=!1;V.autoScrollRafId=0;return V};
_.t(gyr,_.To);_.B=gyr.prototype;_.B.created=function(){var V=this;this.boundAutoScrollHandler=function(l){V.autoScroll(l)}};
_.B.detached=function(){this.hostElement.removeEventListener("mouseout",_.VP(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.VP(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.VP(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.B.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.VP(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.VP(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.VP(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.VP(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.VP(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.VP(this,this.endAutoScroll)),this.endAutoScroll())};
_.B.autoScroll=function(V){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=V);var l;if(l=!this.autoScrollPaused&&this.scrollTarget)l=this.scrollTarget,l=l.scrollHeight-l.scrollTop!==l.clientHeight;l&&(l=1E3/this.scrollRate,V-=this.autoScrollAnimationStart,V>l&&(this.scrollTarget.scrollTop+=Math.ceil(V/l),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.B.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.B.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
var tJ=gyr;tJ.prototype.autoScrollEnabledChanged=tJ.prototype.autoScrollEnabledChanged;_.O([_.q(),_.a("design:type",Object)],tJ.prototype,"scrollRate",void 0);_.O([_.q(),_.a("design:type",Object)],tJ.prototype,"scrollTarget",void 0);_.O([_.q(),_.a("design:type",Boolean)],tJ.prototype,"autoScrollEnabled",void 0);_.O([_.b("autoScrollEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tJ.prototype,"autoScrollEnabledChanged",null);tJ=_.O([_.B1()],tJ);_.mmb=[tJ.prototype];var icg;_.MR(_.x5b,"yt-avatar-stack-view-model",{props:{className:_.b9,data:_.b9,isOverlay:_.b9,useMediumText:_.b9,decorations:_.b9,hideAvatar:_.b9}});var hW2=_.FR({buttonRenderer:_.iS});_.m5(PIu);_.aN(PIu,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var VeP=function(){var V=_.M.apply(this,arguments)||this;V.hideJoinButtonBeforeSubscribed=_.z("hide_join_button_before_subscribed");V.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return V};
_.t(VeP,_.M);_.B=VeP.prototype;
_.B.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"}}}};
_.B.updateJoinButtonOverrides=function(){var V,l;(V=_.h(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(l=V.polymerController)==null||l.set("overrides",this.joinButtonOverrides);if(V=_.h(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))V.overrides=this.joinButtonOverrides};
_.B.handleButtonRefreshAction=function(V){if(V=_.y(V,_.BRN))this.set("data.membershipButton",V.membershipButton),this.notifyPath("data.membershipButton")};
_.B.onYtServiceRequestError=function(V){_.oE(this.hostElement,V.detail.error.message)};
_.B.handleUnsubscribeAction=function(){var V,l,I;((V=this.data)==null?void 0:(l=V.membershipButton)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.style)==="STYLE_PRIMARY"&&_.h(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.vI.Object.defineProperties(VeP.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.subscriptionStateEntity)==null||!V.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var V,l=(V=this.data)==null?void 0:V.membershipButton,I;V=(l==null?void 0:l.buttonRenderer)||_.y(l==null?void 0:(I=l.timedAnimationButtonRenderer)==null?void 0:I.buttonRenderer,_.RG);return(V==null?void 0:V.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(V==null?void 0:V.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(V==null?void 0:V.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
var r8=VeP;r8.prototype.onYtServiceRequestError=r8.prototype.onYtServiceRequestError;r8.prototype.updateJoinButtonOverrides=r8.prototype.updateJoinButtonOverrides;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],r8.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],r8.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],r8.prototype,"data",void 0);_.O([_.Q("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],r8.prototype,"hideJoin",null);_.O([_.q(),_.a("design:type",String)],r8.prototype,"subscribeKey",void 0);_.O([_.q({selectorArgs:["subscribeKey"],selector:_.V1}),_.a("design:type",Object)],r8.prototype,"subscriptionStateEntity",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],r8.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.O([_.Q("subscriptionStateEntity"),_.q({reflectToAttribute:!0}),_.a("design:type",Object),_.a("design:paramtypes",[])],r8.prototype,"subscribed",null);_.O([_.Q("subscribed","data.membershipButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],r8.prototype,"joinButtonOverrides",null);
_.O([_.b("joinButtonOverrides"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r8.prototype,"updateJoinButtonOverrides",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],r8.prototype,"onYtServiceRequestError",null);r8=_.O([_.A({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],r8);
_.u(r8,"ytd-video-owner-renderer",function(){if(icg!==void 0)return icg;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return icg=V},{mode:1});var lF6;var IFP=function(){var V=_.M.apply(this,arguments)||this;V.buttonUpdate=_.z("web_button_rework");V.dismissButtonOverrides=_.z("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;V.forceDarkTheme=!1;V.forceLightTheme=!1;V.dynamicTextHeight=94;V.hasOverflowButton=!1;V.isInfeedModernization=!1;return V};
_.t(IFP,_.M);_.B=IFP.prototype;_.B.computeUrlImg=function(V){if(V)return _.pt(V.thumbnails)};
_.B.getLogoHeight=function(V){return this.logoWithPadding(V)?"31":"24"};
_.B.getLogoClassName=function(V){return this.logoWithPadding(V)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.B.logoWithPadding=function(V){var l,I;return(V=(l=V.thumbnails)==null?void 0:(I=l[0])==null?void 0:I.height)&&V%31===0?!0:!1};
_.B.sendImpressionEndpoints=function(V){V.impressionEndpoints&&_.$B(this.hostElement,V.impressionEndpoints)};
_.B.observeBasicPalette=function(){var V,l,I=(V=this.data)==null?void 0:(l=V.colorData)==null?void 0:l.basicColorPaletteData;I?_.Xp(this.hostElement,I):_.Xp(this.hostElement,{})};
_.B.observeDataChanged=function(){var V;this.dynamicTextHeight=((V=this.data)==null?0:V.supplementalText)?74:94;var l;this.hasSupplementalText=!((l=this.data)==null||!l.supplementalText);if(_.z("web_button_rework")){var I,H,T,x;V=(I=this.data)==null?void 0:(H=I.actionButton)==null?void 0:(T=H.buttonRenderer)==null?void 0:(x=T.colorData)==null?void 0:x.basicColorPaletteData;var n,w,N;if(!((n=this.data)==null?0:(w=n.actionButton)==null?0:(N=w.buttonRenderer)==null?0:N.style)&&V){this.computeIsInfeedModernization(this.data)||
(V.borderColor=V.foregroundTitleColor);var L,e;this.set("data.actionButton.buttonRenderer",_.EL.unsafeClone((L=this.data)==null?void 0:(e=L.actionButton)==null?void 0:e.buttonRenderer))}}};
_.B.observeDataForCounterfactual=function(){if(_.z("kevlar_banner_cf_extra_logging")){var V;((V=this.data)==null?0:V.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.B.computeSupplementalStyle=function(){var V;if((V=this.data)!=null&&V.supplementalText){var l,I,H;if((l=this.data)==null?0:(I=l.colorData)==null?0:(H=I.basicColorPaletteData)==null?0:H.foregroundActivatedColor)return V=_.tv(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+V+"; --yt-endpoint-hover-color:"+V+"; --yt-endpoint-visited-color:"+V+"; --yt-formatted-string-bold-font-weight:700;"}};
_.B.computeForcedDarkTheme=function(){var V,l,I,H=(V=this.data)==null?void 0:(l=V.actionButton)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.style,T,x,n;V=rJ2(((T=this.data)==null?void 0:(x=T.colorData)==null?void 0:(n=x.basicColorPaletteData)==null?void 0:n.backgroundColor)||0);return H&&V};
_.B.computeForcedLightTheme=function(){var V,l,I,H=(V=this.data)==null?void 0:(l=V.actionButton)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.style,T,x,n;V=!rJ2(((T=this.data)==null?void 0:(x=T.colorData)==null?void 0:(n=x.basicColorPaletteData)==null?void 0:n.backgroundColor)||0);return H&&V};
_.B.computeHasOverflowButton=function(V){return!!V.overflowButton};
_.B.computeHasTitle=function(V){return!!V.title};
_.B.computeTitleMaxFontSize=function(V){return this.computeHasOverflowButton(V)?28:64};
_.B.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.B.computeIsInfeedModernization=function(){var V,l,I,H,T=(V=this.data)==null?void 0:(l=V.actionButton)==null?void 0:(I=l.buttonRenderer)==null?void 0:(H=I.colorData)==null?void 0:H.basicColorPaletteData;return(T==null?void 0:T.backgroundColor)===452984831||(T==null?void 0:T.backgroundColor)===218103808};
var GX=IFP;GX.prototype.observeDataForCounterfactual=GX.prototype.observeDataForCounterfactual;GX.prototype.observeDataChanged=GX.prototype.observeDataChanged;GX.prototype.observeBasicPalette=GX.prototype.observeBasicPalette;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],GX.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],GX.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],GX.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],GX.prototype,"buttonUpdate",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],GX.prototype,"hasSupplementalText",void 0);_.O([_.q(),_.a("design:type",Object)],GX.prototype,"dismissButtonOverrides",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.a("design:type",Boolean)],GX.prototype,"hasTitle",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.a("design:type",Object)],GX.prototype,"forceDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.a("design:type",Object)],GX.prototype,"forceLightTheme",void 0);_.O([_.q(),_.a("design:type",Object)],GX.prototype,"dynamicTextHeight",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.a("design:type",Object)],GX.prototype,"hasOverflowButton",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.a("design:type",Object)],GX.prototype,"isInfeedModernization",void 0);_.O([_.b("data.colorData.basicColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],GX.prototype,"observeBasicPalette",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],GX.prototype,"observeDataChanged",null);_.O([_.b("data.isVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],GX.prototype,"observeDataForCounterfactual",null);GX=_.O([_.A({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],GX);
_.u(GX,"ytd-banner-promo-renderer",function(){if(lF6!==void 0)return lF6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return lF6=V},{mode:1});var H3u;var TDr;var BD6;var xG6=function(){return _.M.apply(this,arguments)||this};
_.t(xG6,_.M);var UGu=xG6;_.O([_.q(),_.a("design:type",Object)],UGu.prototype,"data",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],UGu.prototype,"ytRendererBehavior",void 0);UGu=_.O([_.A({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],UGu);
_.u(UGu,"ytd-hashtag-grid-tile-renderer",function(){if(BD6!==void 0)return BD6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return BD6=V},{mode:1});var nPb=function(){return _.M.apply(this,arguments)||this};
_.t(nPb,_.M);nPb.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
nPb.prototype.updateRichGridTrendingHashtagsVisibility=function(){var V,l;if(((V=this.data)==null||!V.isExpanded)&&(l=this.data)!=null&&l.tiles){V=this.data.tiles.length;l=V>this.richGridItemsPerRow?this.richGridItemsPerRow+1:V;var I=Math.ceil(V/l);this.fullyVisibleRows=V%l===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
nPb.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var Er=nPb;Er.prototype.updateRichGridTrendingHashtagsVisibility=Er.prototype.updateRichGridTrendingHashtagsVisibility;_.O([_.q(),_.a("design:type",Object)],Er.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Number)],Er.prototype,"fullyVisibleRows",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Er.prototype,"isShowMoreVisible",void 0);_.O([_.q({selector:_.oA,value:0}),_.a("design:type",Number)],Er.prototype,"richGridItemsPerRow",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Er.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Er.prototype,"ytdReduxBehavior",void 0);_.O([_.b("data","richGridItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Er.prototype,"updateRichGridTrendingHashtagsVisibility",null);
Er=_.O([_.A({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Er);
_.u(Er,"ytd-hashtag-grid-shelf-renderer",function(){if(TDr!==void 0)return TDr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return TDr=V},{mode:1});var $Gr;var dGQ;var w5V=function(){var V=_.M.apply(this,arguments)||this;V.visibleVideos=[];V.hiddenVideos=[];V.modern=_.z("web_modern_buttons");V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(w5V,_.M);_.B=w5V.prototype;_.B.attached=function(){var V=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",V);this.onDarkModeToggledAction(V)};
_.B.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"}}}};
_.B.dataChanged=function(){var V=this;this.requestElementsPerRow();var l,I;this.currentColorPalette=this.isDarkTheme?(l=this.data)==null?void 0:l.darkColorData:(I=this.data)==null?void 0:I.lightColorData;var H;if((H=this.currentColorPalette)==null?0:H.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Al(this,function(){V.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.B.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.B.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.B.computeIsFirstFeedItem=function(V){return V};
_.B.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&this.set("isDarkTheme",V);this.data&&(this.currentColorPalette=V?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.B.getCurrentLogo=function(V,l){if(V)return l?V.darkLogoImage:V.lightLogoImage};
_.B.computeTitleStyle=function(V){var l;if((l=this.data)!=null&&l.title&&V&&V.textPrimary!==void 0)return"color:"+_.tv(V.textPrimary)+";"};
_.B.computeSubtitleStyle=function(V){var l;if((l=this.data)!=null&&l.subtitle&&V&&V.textSecondary!==void 0)return"color:"+_.tv(V.textSecondary)+";"};
_.B.computeDismissIconStyle=function(V){if(this.data&&this.data.dismissButton){var l;if(V==null?0:(l=V.dismissButtonColorData)==null?0:l.foregroundTitleColor)return"--yt-button-color:"+_.tv(V.dismissButtonColorData.foregroundTitleColor)+";";var I,H,T,x;if((I=this.data.dismissButton)==null?0:(H=I.buttonRenderer)==null?0:(T=H.colorData)==null?0:(x=T.basicColorPaletteData)==null?0:x.foregroundTitleColor)return"--yt-button-color:"+_.tv(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.B.computeOverflowButtonStyle=function(V){var l;if(this.data&&this.data.overflowButton&&(V==null?0:(l=V.dismissButtonColorData)==null?0:l.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.tv(V.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.tv(V.dismissButtonColorData.foregroundTitleColor)+";"};
_.B.computeBackgroundStyle=function(V){if(V&&this.data){var l="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.pt((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&(l+='background-image:url("'+I+'");')}V.backgroundColor!==void 0&&(l+="background-color:"+_.rP(V.backgroundColor)+";");return l}};
_.B.computeButton=function(){var V,l=Object.assign({},_.y((V=this.data)==null?void 0:V.showMoreButton,_.RG));if(this.modern&&l){l.style="STYLE_DEFAULT";var I,H;if(V=(I=this.currentColorPalette)==null?void 0:(H=I.dismissButtonColorData)==null?void 0:H.foregroundTitleColor)l.colorData={basicColorPaletteData:{foregroundTitleColor:V,borderColor:V}}}return l};
_.B.shouldShowBottomButton=function(V,l){return!(V==null?0:V.header)&&!(V==null||!V.primaryButton)&&l<3};
_.B.checkExpanded=function(V){this.isExpanded=V&&V.content?this.hiddenVideos.length===0:!0};
_.B.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.B.getLogoHeight=function(V){return this.logoWithPadding(V)?"26":"20"};
_.B.getLogoImageId=function(V){return this.logoWithPadding(V)?"logo-image-with-padding":"logo-image"};
_.B.computeHasSectionHeader=function(V){return!!V.header};
_.B.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var V;if((V=this.data.primaryButton)==null?0:V.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 l;((l=this.data.dismissButton)==null?0:l.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var I,H;((I=this.data)==null?0:(H=I.primaryButton)==null?0:H.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.B.setVisibleVideos=function(V){if(this.data&&this.data.content)if(this.data.content.length){var l=this.data.content.length;this.data.header?V?(this.visibleVideos=this.data.content.slice(0,Math.min(l,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.slimItemsPerRow),l)):(this.visibleVideos=this.data.content.slice(0,Math.min(l,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.elementsPerRow),l)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(l,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.elementsPerRow),l)):(this.visibleVideos=this.data.content.slice(0,Math.min(l,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.elementsPerRow-1),l))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.B.setHasMovieRenderer=function(){var V;if((V=this.data)!=null&&V.content){var l;this.hasMovieRenderer=!!_.y((l=this.data)==null?void 0:l.content[0],_.dhw)}else this.hasMovieRenderer=!1};
_.B.requestElementsPerRow=function(){_.B$(this.hostElement,"yt-request-elements-per-row")};
_.B.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var V=_.U(this.hiddenMediaRenderers),l=V.next();!l.done;l=V.next())l.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(V=_.h(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&V.focus()}};
_.B.updateTitleSpec=function(){var V;(V=this.data)!=null&&V.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.B.logoWithPadding=function(V){var l,I,H;return(V=(l=this.getCurrentLogo(V,this.isDarkTheme))==null?void 0:(I=l.thumbnails)==null?void 0:(H=I[0])==null?void 0:H.height)&&V%31===0?!0:!1};
_.B.onUpdateElementsPerRowAction=function(V,l,I){V&&this.elementsPerRow!==V&&(this.elementsPerRow=V);I&&this.slimItemsPerRow!==I&&(this.slimItemsPerRow=I)};
var JJ=w5V;JJ.prototype.slimItemsPerRowChanged=JJ.prototype.slimItemsPerRowChanged;JJ.prototype.elementsPerRowChanged=JJ.prototype.elementsPerRowChanged;JJ.prototype.dataChanged=JJ.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],JJ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.SE),_.a("design:type",Object)],JJ.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],JJ.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],JJ.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],JJ.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],JJ.prototype,"currentColorPalette",void 0);_.O([_.q(),_.a("design:type",Array)],JJ.prototype,"visibleVideos",void 0);
_.O([_.q(),_.a("design:type",Array)],JJ.prototype,"hiddenVideos",void 0);_.O([_.q(),_.a("design:type",Object)],JJ.prototype,"primaryButton",void 0);_.O([_.q({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],JJ.prototype,"elementsPerRow",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],JJ.prototype,"isDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],JJ.prototype,"isExpanded",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],JJ.prototype,"largeTitle",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],JJ.prototype,"hasMovieRenderer",void 0);_.O([_.q(),_.a("design:type",Number)],JJ.prototype,"slimItemsPerRow",void 0);_.O([_.q(),_.a("design:type",Boolean)],JJ.prototype,"showLightVideoMetadata",void 0);_.O([_.q(),_.a("design:type",Boolean)],JJ.prototype,"showDarkVideoMetadata",void 0);
_.O([_.q(),_.a("design:type",Number)],JJ.prototype,"videoMetadataColor",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],JJ.prototype,"miniMode",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.a("design:type",Boolean)],JJ.prototype,"isFirstFeedItem",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.a("design:type",Boolean)],JJ.prototype,"hasSectionHeader",void 0);
_.O([_.q({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],JJ.prototype,"roundedContainer",void 0);_.O([_.H1("#visible-video-container ytd-rich-grid-media"),_.a("design:type",Array)],JJ.prototype,"visibleMediaRenderers",void 0);_.O([_.H1("#hidden-video-container ytd-rich-grid-media"),_.a("design:type",Array)],JJ.prototype,"hiddenMediaRenderers",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],JJ.prototype,"modern",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JJ.prototype,"dataChanged",null);_.O([_.b("elementsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JJ.prototype,"elementsPerRowChanged",null);_.O([_.b("slimItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JJ.prototype,"slimItemsPerRowChanged",null);
JJ=_.O([_.A({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],JJ);
_.u(JJ,"ytd-brand-video-shelf-renderer",function(){if(dGQ!==void 0)return dGQ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return dGQ=V},{mode:1});var NDV;var KvE=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(KvE,_.M);_.B=KvE.prototype;_.B.attached=function(){var V=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",V);this.onDarkModeToggledAction(V)};
_.B.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.B.dataChanged=function(){this.requestElementsPerRow();var V,l;this.currentColorPalette=this.isDarkTheme?(V=this.data)==null?void 0:V.darkColorData:(l=this.data)==null?void 0:l.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.B.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.B.computeIsFirstFeedItem=function(V){return V};
_.B.onDarkModeToggledAction=function(V){V!==this.isDarkTheme&&this.set("isDarkTheme",V);this.data&&(this.currentColorPalette=V?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(V),this.updateButtonPalette())};
_.B.shouldShowThumbnailInMetadata=function(V){return V<=1};
_.B.getCurrentLogo=function(V,l){if(V)return l?V.darkLogoImage:V.lightLogoImage};
_.B.computeVideoMetadataColor=function(){if(this.data){var V;if((V=this.currentColorPalette)==null?0:V.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.B.computeTitleStyle=function(V){var l;if((l=this.data)!=null&&l.title&&V&&V.textPrimary!==void 0)return"color:"+_.tv(V.textPrimary)+";"};
_.B.computeSubtitleStyle=function(V){var l;if((l=this.data)!=null&&l.subtitle&&V&&V.textSecondary!==void 0)return"color:"+_.tv(V.textSecondary)+";"};
_.B.computeDismissIconStyle=function(V){if(this.data&&this.data.dismissButton){var l;if(V==null?0:(l=V.dismissButtonColorData)==null?0:l.foregroundTitleColor)return"--yt-button-color:"+_.tv(V.dismissButtonColorData.foregroundTitleColor)+";";var I,H,T,x;if((I=this.data.dismissButton)==null?0:(H=I.buttonRenderer)==null?0:(T=H.colorData)==null?0:(x=T.basicColorPaletteData)==null?0:x.foregroundTitleColor)return"--yt-button-color:"+_.tv(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.B.computeOverflowButtonStyle=function(V){var l;if(this.data&&this.data.overflowButton&&(V==null?0:(l=V.dismissButtonColorData)==null?0:l.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.tv(V.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.tv(V.dismissButtonColorData.foregroundTitleColor)+";"};
_.B.computeBackgroundStyle=function(V){if(V&&this.data){var l="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.pt((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&(l+='background-image:url("'+I+'");')}V.backgroundColor!==void 0&&(l+="background-color:"+_.rP(V.backgroundColor)+";");return l}};
_.B.computeHasOverflowButton=function(V){return!!V.overflowButton};
_.B.getLogoHeight=function(V){return this.logoWithPadding(V)?"26":"20"};
_.B.getLogoImageId=function(V){return this.logoWithPadding(V)?"logo-image-with-padding":"logo-image"};
_.B.updateButtonPalette=function(){if(this.data){var V;if((V=this.data.primaryButton)==null?0:V.buttonRenderer){var l;if((l=this.currentColorPalette)==null?0:l.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var I;if((I=this.currentColorPalette)==null?0:I.primaryButtonStyleType)this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}var H;if((H=this.data.dismissButton)==null?0:H.buttonRenderer){var T;if((T=this.currentColorPalette)==null?0:T.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.B.requestElementsPerRow=function(){_.B$(this.hostElement,"yt-request-elements-per-row")};
_.B.updateTitleSpec=function(){var V;(V=this.data)!=null&&V.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")};
_.B.logoWithPadding=function(V){var l,I,H;return(V=(l=this.getCurrentLogo(V,this.isDarkTheme))==null?void 0:(I=l.thumbnails)==null?void 0:(H=I[0])==null?void 0:H.height)&&V%31===0?!0:!1};
_.B.onUpdateElementsPerRowAction=function(V){V&&this.elementsPerRow!==V&&(this.elementsPerRow=V)};
var ob=KvE;ob.prototype.elementsPerRowChanged=ob.prototype.elementsPerRowChanged;ob.prototype.dataChanged=ob.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],ob.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ob.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],ob.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ob.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],ob.prototype,"currentColorPalette",void 0);_.O([_.q(),_.a("design:type",Object)],ob.prototype,"primaryButton",void 0);
_.O([_.q({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],ob.prototype,"elementsPerRow",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],ob.prototype,"isDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],ob.prototype,"titleSize",void 0);_.O([_.q(),_.a("design:type",Number)],ob.prototype,"videoMetadataColor",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],ob.prototype,"miniMode",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.a("design:type",Boolean)],ob.prototype,"isFirstFeedItem",void 0);_.O([_.q({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],ob.prototype,"roundedContainer",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.a("design:type",Boolean)],ob.prototype,"hasOverflowButton",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ob.prototype,"dataChanged",null);_.O([_.b("elementsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ob.prototype,"elementsPerRowChanged",null);ob=_.O([_.A({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],ob);
_.u(ob,"ytd-brand-video-singleton-renderer",function(){if(NDV!==void 0)return NDV;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="header-container" hidden="[[data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return NDV=V},{mode:_.Cm("kevlar_poly_si_batch_j070")?1:2});var j0E;var Y0b=_.W1(function(V){var l=V.data;return _.Y(_.cX,{data:function(){return l().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(l().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var I=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":I=88;break a;default:I=88}return I},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return l().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"xh"),ezP=_.W1(function(V){var l=V.metadataRow;
var I=V.delimiter;return _.Y(_.Ks,{each:function(){return l().textParts||[]},
keyBy:"INDEX"},function(H,T){return _.Y(_.CN,null,_.Y(_.Ni,{text:H,noWrap:!0,userInput:!0}),_.Y(LvB,{delimiter:I,max:function(){return l().textParts.length},
index:T}))})},"yh"),LvB=_.W1(function(V){var l=V.delimiter;
var I=V.max;var H=V.index;return _.Y(_.NS,{cond:function(){return(l==null?void 0:l())&&I()-1>H()},
then:function(){return _.Y("span",null,l)}})},"zh"),k5Y=_.W1(function(V){var l=V.data;
V={};return _.Y("yt-profile-page-header-information-view-model",{class:_.ii("profile-page-header-information-view-model-wiz",(V["profile-page-header-information-view-model-wiz--mobile"]=!1,V))},_.Y(_.NS,{cond:function(){return l().onTap},
then:function(){return _.Y(_.wq,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.to(l().onTap)}},_.Y(_.rw,{data:function(){return l().thumbnail}},{profilePageHeaderThumbnailViewModel:Y0b}))},
else:function(){return _.Y("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.Y(_.rw,{data:function(){return l().thumbnail}},{profilePageHeaderThumbnailViewModel:Y0b}))}}),_.Y("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.Y(_.NS,{cond:function(){return l().onTap},
then:function(){return _.Y(_.rw,{data:function(){return l().title}},{profilePageHeaderTitleViewModel:function(I){var H=I.data;
return _.Y(_.wq,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.to(H().onTap)}},_.Y(_.Ni,{text:function(){return H().title}}))}})},
else:function(){return _.Y(_.rw,{data:function(){return l().title}},{profilePageHeaderTitleViewModel:function(I){var H=I.data;
return _.Y(_.Ni,{text:function(){return H().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.Y(_.rw,{data:function(){return l().metadata}},{profilePageHeaderMetadataViewModel:function(I){var H=I.data;
return _.Y(_.NS,{cond:function(){return H().metadataRows},
then:function(T){return _.Y("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.Y(_.Ks,{each:T,keyBy:"INDEX"},function(x,n){return _.Y(_.CN,null,_.Y(ezP,{metadataRow:x,delimiter:" \u2022 "}),_.Y(LvB,{delimiter:" \u2022 ",max:function(){return T().length},
index:n}))}))}})}})))},"Ah");
k5Y.idomCompat=!0;_.MR(k5Y,"yt-profile-page-header-information-view-model",{props:{data:_.b9}});var FvE=function(){return _.M.apply(this,arguments)||this};
_.t(FvE,_.M);FvE.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var X5E=FvE;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],X5E.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],X5E.prototype,"data",void 0);X5E=_.O([_.A({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],X5E);
_.u(X5E,"ytd-effect-pivot-header-view-model",function(){if(j0E!==void 0)return j0E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return j0E=
V},{mode:1});var zzI;var yEh=function(){return _.M.apply(this,arguments)||this};
_.t(yEh,_.M);yEh.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var teY=yEh;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],teY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],teY.prototype,"data",void 0);teY=_.O([_.A({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],teY);
_.u(teY,"ytd-source-pivot-header-renderer",function(){if(zzI!==void 0)return zzI;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return zzI=V},{mode:1});_.MR(_.W1(function(V){var l=function(){return _.y(V.data().flowRoot,sbg)};
_.XW(function(){var I=l(),H=function(){},T=function(){};
if(I){var x,n,w=(n=_.y((x=I.steps)==null?void 0:x[0],_.HWQ))==null?void 0:n.stepId;RWg(I,w||"");H=cJY(I);T=WHV(I)}_.rx(function(){H();H=function(){};
T();T=function(){}})});
return _.Y("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.Y(_.sca,{contentId:function(){return V.data().contentId}},function(){return _.Y("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.Y(_.NS,{cond:l,
then:function(I){return _.Y(_.De2,{data:I})}}))}))},"Bh"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.b9}});_.MR(_.W1(function(){return _.Y("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.Y("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.Y("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.Y(_.KcE,null)),_.Y(_.mFb,{data:{rows:1},isExploreHub:!0}))},"Ch"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.MR(_.W1(function(V){var l=V.data;var I=V.standardUnitMinWidth;V=_.sZ();var H=_.U((0,_.HFw)(l)),T=H.next().value,x=H.next().value,n=function(){var N,L=(N=T())==null?void 0:N.contents;return L==null||L.length===0},w=function(){x(Object.assign({},T(),{contents:[]}))};
_.gT(V,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var N=_.y(l().chipsShelf,pRQ);if(N!=null&&N!=null&&N.autoselectChipOnVisible){var L,e,k=_.y(N==null?void 0:(L=N.contents)==null?void 0:L[(e=N.autoselectedChipIndex)!=null?e:0],_.bF);k&&k.tapCommand&&_.EI(k.tapCommand)}}});
return _.Y("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:V},_.Y(_.sca,{contentId:function(){return l().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.Y("div",null,_.Y("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.Y(_.rw,{data:function(){return l().header}},{sectionHeaderViewModel:function(N){return _.Y(_.a$,{data:N.data,
disableHorizontalPadding:!0})}})),_.Y("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.Y(_.rw,{data:function(){return l().chipsShelf}},{chipsShelfViewModel:function(N){return _.Y(_.b5Z,{data:N.data,
callback:w,enableSingleChipSelection:!0})}})),_.Y("div",null,_.Y(_.NS,{cond:n,
then:function(){return _.Y("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.Y(_.mFb,{data:{rows:1},isExploreHub:!0}))}}),_.Y(_.rw,{data:function(){var N;
return(N=T())==null?void 0:N.contents}},{richShelfRenderer:function(N){return _.Y(_.nZ0,{data:N.data,
isInnerShelf:!0,standardUnitMinWidth:I})}})))}))},"Dh"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.b9,
standardUnitMinWidth:_.b9}});var rEV=function(){return _.M.apply(this,arguments)||this};
_.t(rEV,_.M);
rEV.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",
params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
rEV.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
var hJ=rEV;_.O([_.R(_.DS),_.a("design:type",Object)],hJ.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],hJ.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],hJ.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Number)],hJ.prototype,"standardUnitMinWidth",void 0);hJ=_.O([_.A({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],hJ);
_.u(hJ,"ytd-rich-section-renderer",function(){if($Gr!==void 0)return $Gr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return $Gr=V},{mode:_.Cm("kevlar_poly_si_batch_j029")?
1:2});_.MR(_.GVE,"yt-profile-identity-info-view-model",{props:{data:_.b9,hideDivider:_.b9}});_.MR(_.Xyb,"yt-page-header-view-model",{props:{data:_.b9,noPadding:_.b9,enableBanner:_.b9,cinematicContainerTopbarOffset:_.b9,allowCinematicContainerOverflow:_.b9,displayAsSidebar:_.b9,displayAsPanel:_.b9}});_.MR(_.W1(function(V){var l=V.data;var I=function(){var T;return(T=l().numColumns)!=null?T:2},H=function(){return I()>1?3:2};
V={};return _.Y("ytd-rich-grid-group",{class:_.ii("ytdRichGridGroupHost",(V.ytdRichGridGroupHostFirstColumn=function(){return l().colIndex===0},V)),
style:_.na({"--ytd-rich-grid-group-num-columns":I,"--ytd-rich-grid-items-per-group":H})},_.Y("div",{class:"ytdRichGridGroupContents"},_.Y(_.rw,{data:function(){var T;return(T=l().contents)==null?void 0:T.slice(0,H())}},{richItemRenderer:function(T){return _.Y(_.BH0,{data:T.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Eh"),"ytd-rich-grid-group",{props:{data:_.b9}});var G5E=function(){var V=_.M.apply(this,arguments)||this;V.resizeOnObserverInit=!1;V.isInlinePreviewDisabled=_.z("web_disable_inline_preview");V.disableStickyFilterBar=!1;V.transparentBackgroundChipsBar=!1;V.hideChipsBar=!1;V.isWatchDefaultLayout=!0;V.continuationShowButton=!1;V.rowReducedHorizontalMargin=!1;V.useCompactList=!1;V.manualDownloadsPresent=!1;V.smartDownloadsPresent=!1;V.shouldRenderDownloadsBanner=!1;V.hasOptedIntoSmartDownloads=!1;V.elementsPerRow=4;V.typographyBump=!1;V.showGnomeContents=
!1;V.showExploreHubContents=!1;V.slimItemsPerRow=1;V.pageLoadingFromNavigation=!1;V.loggingRefactor=_.z("kevlar_rich_grid_logging_fix");V.resizeObserver=null;V.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"};V.rendererToTagNameMap=
new Map(Object.entries(V.contentMapping()).map(function(l){var I=_.U(l);l=I.next().value;I=I.next().value;return[l,I.component]}));
V.insertedContent=new Map;return V};
_.t(G5E,_.M);_.B=G5E.prototype;_.B.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var V=_.U(_.h(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),l=V.next();!l.done;l=V.next())l.value.useCompactList=this.useCompactList};
_.B.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var V=_.U(_.h(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),l=V.next();!l.done;l=V.next())l=l.value,l.sizing=this.sizing,l.typographyBump=this.typographyBump};
_.B.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.B.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]"},
params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.B.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}}};
_.B.attached=function(){document.addEventListener("yt-page-type-changed",_.VP(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.le(this.resizeObserved,_.g7("rich_grid_resize_delay_ms",50),this)};
_.B.detached=function(){var V;(V=this.resizeObserver)==null||V.disconnect();document.removeEventListener("yt-page-type-changed",_.VP(this,this.onPageChange))};
_.B.insertRichSection=function(V){var l=V.richItemTargetId;V=V.richSectionRendererToInsert;l&&V&&(this.insertedContent.set(l,V),this.reflowContent())};
_.B.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.B.computeIsInlinePreviewEnabled=function(V,l,I){return _.z("web_disable_inline_preview")?!1:!I&&_.OT2({miniplayerIsActive:V,miniplayerPlaybackState:l})};
_.B.computeSizing=function(){var V=_.vWg(this.data);if(V||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return V?this.useCompactList?"COMPACT":V:this.miniMode?"COMPACT":_.z("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.B.updateItemMinAndMaxWidth=function(){var V=_.g7("rich_grid_max_item_width",500);V>0&&_.i3(this.hostElement,{"--ytd-rich-grid-item-max-width":V+"px"});var l;V=this.getRichItemMinWidth((l=this.hostElement)==null?void 0:l.clientWidth);V>0&&_.i3(this.hostElement,{"--ytd-rich-grid-item-min-width":V+"px"})};
_.B.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.B.resizeObserved=function(){_.U4(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.B.navigateBackToHome=function(){_.z("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.z("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var V=_.F().resolve(_.pa).isOnWatch(),l,I=((l=_.YEf(location.pathname))==null?void 0:l.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(I)||V)&&this.gnomeContents&&_.z("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);V&&this.exploreHubContents&&_.z("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.v4().dispatch(_.IA({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.B.onPageChange=function(){var V=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.z("disable_chip_select_on_nav")||_.U4(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.r0.addJob(function(){V.pageLoadingFromNavigation=!1;_.z("disable_chip_select_on_nav")&&_.z("h5_reset_cache_and_filter_before_update_masthead")&&V.resetCacheAndIsFilteredFeed();V.setMasthead();V.maybeSetBigYoodle();V.forceRefreshAndLog();V.terminateVideoPreview();_.z("web_hide_gnome_until_user_navigates_back_to_home")&&
(V.dataChanged(),_.Al(V,function(){if(V.showGnomeContents){var l=Array.from(_.h(V.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(H){H=_.h(H).querySelector("ytd-rich-shelf-renderer");return!!H&&H.isGnomeShelf()});
if(l){l=l.offsetTop-V.contentsElement.offsetTop;var I=_.F().resolve(_.pa).getCurrentPage();I&&I.getPageScrollingElement().scrollTo({top:l,behavior:"smooth"})}}}));
_.z("web_hide_explore_hub_until_user_navigates_back_to_home")&&(V.dataChanged(),_.Al(V,function(){if(V.showExploreHubContents&&!_.z("web_explore_hub_no_scroll")){var l=Array.from(_.h(V.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(H){return!!H.querySelector("ytd-talk-to-recs-flow-renderer")});
if(l){l=l.offsetTop-V.contentsElement.offsetTop;var I=_.F().resolve(_.pa).getCurrentPage();I&&I.getPageScrollingElement().scrollTo({top:l,behavior:"smooth"})}}}))},8)):((_.z("web_hide_gnome_until_user_navigates_back_to_home")||_.z("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.B.dataChanged=function(){var V=this,l=_.g7("web_rich_grid_row_margin",0);l>0&&_.i3(this.hostElement,{"--ytd-rich-grid-row-margin":l+"px"});_.U4(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Al(this,function(){V.updateRichItemGridPositions();V.contentsElement&&_.i3(V.hostElement,{"--ytd-rich-grid-content-offset-top":V.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.B.initResizeObserver=function(){var V=this;if(window.ResizeObserver){var l;(l=this.resizeObserver)==null||l.disconnect();var I=!1;this.resizeObserver=new ResizeObserver(function(){if(I){var H;(H=V.resizeObserver)==null||H.disconnect();var T;(T=V.throttledOnResize)==null||T.fire();requestAnimationFrame(function(){var n;(n=V.throttledOnResize)==null||n.fire();V.initResizeObserver()})}else if(I=!0,V.resizeOnObserverInit){var x;
(x=V.throttledOnResize)==null||x.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.B.contentLengthChanged=function(){if(_.z("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.U4(this.hostElement,"ytd-rich-item-index-update-action")};
_.B.updateElementsPerRow=function(){_.U4(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.IA({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.IA({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.B.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.B.onRichShelfRendererCollapse=function(V){if(this.shownItems){var l=V.detail;V=this.shownItems.findIndex(function(H){var T,x;return((x=_.y(H==null?void 0:(T=H.richSectionRenderer)==null?void 0:T.content,_.cuZ))==null?void 0:x.trackingParams)===l});
var I=V+1;V<0||I>=this.contentsElement.children.length||!this.shownItems[I].richItemRenderer||this.contentsElement.children[I].scrollIntoView({behavior:"smooth",block:"start"})}};
_.B.onSoftReloadPage=function(){this.scrollUpToTop()};
_.B.handleRerenderDownloadsData=function(){_.z("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.B.handlePlaylistRemoveVideosAction=function(V){var l;if(((l=_.y(V,_.BYN))==null?0:l.setVideoIds)&&this.data&&this.data.contents){V=_.y(V,_.BYN).setVideoIds;for(l=this.data.contents.length-1;l>=0;){var I=_.y(this.data.contents[l],_.oG);(I=I&&_.y(I.content,_.SK))&&I.setVideoId&&V.includes(I.setVideoId)&&this.splice("data.contents",l,1);l--}this.updateIndices()}};
_.B.updateIndices=function(){if(this.data&&this.data.contents)for(var V=0;V<this.data.contents.length;V++)this.set("data.contents."+V+".richItemRenderer.index",_.pW(String(V+1)))};
_.B.hasTopRowInlinePlayableVideoWithEndorsement=function(V){var l;return!((l=V.slice(0,this.getItemsPerRow()))==null||!l.some(function(I){var H;I=_.y(I==null?void 0:(H=I.richItemRenderer)==null?void 0:H.content,_.vUv);var T;return(I==null?void 0:I.inlinePlaybackEndpoint)&&(I==null?void 0:(T=I.thumbnailOverlays)==null?void 0:T.some(function(x){return x.thumbnailOverlayEndorsementRenderer}))}))};
_.B.refreshGridLayoutNew=function(V,l,I,H){var T=H.postsPerRow;var x=H.slimItemsPerRow;var n=H.gameCardsPerRow;H=H.miniGameCardsPerRow;var w;if((w=this.data)==null||!w.contents||!this.containerWidth)return!1;var N;if((N=this.data.responsiveContainerConfiguration)==null?0:N.responsiveSize){var L=_.qeq(this.data.responsiveContainerConfiguration,this.containerWidth),e;w=_.gw(Object.assign({},L,{standardUnitMinWidth:(e=this.data)==null?void 0:e.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&L.isCompactList)}else w=_.gw({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(L=this.data)==null?void 0:L.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=w.typographyBump;e=!1;if(V||this.elementsPerRow!==w.numItems||this.postsPerRow!==T||this.slimItemsPerRow!==x||this.gameCardsPerRow!==
n||this.miniGameCardsPerRow!==H||this.gutter!==w.gutter)e=this.elementsPerRow!==w.numItems,this.elementsPerRow=w.numItems,this.postsPerRow=T,this.slimItemsPerRow=x,this.gameCardsPerRow=n,this.miniGameCardsPerRow=H,this.gutter=w.gutter,this.itemWidth=w.itemWidth,this.reflowContent(l),_.i3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":w.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(I);this.ytdReduxBehavior.dispatch(_.IA({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:w.maxContainerWidth}));return e};
_.B.refreshGridLayout=function(V,l){var I,H=(I=this.hostElement)==null?void 0:I.clientWidth;this.containerWidth=this.adjustRichGridWidth(H,!0);var T;if((T=this.data)==null||!T.contents||!this.containerWidth)return V&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.z("rg_pending_reflow_ks")&&(V=!0,this.pendingForceReflow=!1);I=this.getRichItemMinWidth(H);var x=this.isShortsPanel?146:194,n=this.getMiniGameCardMinWidth(),w=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
H=I=this.calcElementsPerRow(I,w);(T=I<=3&&this.miniModeAllowed())&&(I=this.calcElementsPerRow(240,4));var N=this.calcMaxSlimElementsPerRow(I,w,this.isDefaultGrid);w=this.calcElementsPerRow(x,N);var L=this.calcElementsPerRow(this.isCompactGrid?x:154,N);x=this.calcElementsPerRow(this.isCompactGrid&&!_.z("enable_playables_reduced_card_count")?x:n,N);n=!1;if(this.sizing)return this.refreshGridLayoutNew(V,l,T,{postsPerRow:H,slimItemsPerRow:w,gameCardsPerRow:L,miniGameCardsPerRow:x});if(V||this.elementsPerRow!==
I||this.postsPerRow!==H||this.slimItemsPerRow!==w||this.gameCardsPerRow!==L||this.miniGameCardsPerRow!==x)n=this.elementsPerRow!==I,this.elementsPerRow=I,this.postsPerRow=H,this.slimItemsPerRow=w,this.gameCardsPerRow=L,this.miniGameCardsPerRow=x,this.reflowContent(l),this.updateElementsPerRow(),_.i3(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)&&_.i3(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(T);_.U4(this.hostElement,"yt-rich-grid-layout-refreshed");return n};
_.B.getRichItemMinWidth=function(V){var l=_.g7("rich_grid_min_item_width",310);if(!_.z("kevlar_disable_min_width_override")){var I,H;l=(H=(I=this.data)==null?void 0:I.minItemWidth)!=null?H:l}return l+_.bJf(V)};
_.B.calcMaxSlimElementsPerRow=function(V,l,I){return(I===void 0?0:I)?V===1?2:V%2===0?_.z("web_shorts_2_by_3_reduce_items_per_row")&&V>=4?V/2*3-1:V/2*3:_.z("web_shorts_2_by_3_reduce_items_per_row")&&V>=3?V+1:V+2:l*2};
_.B.adjustRichGridWidth=function(V,l){var I=_.z("disable_rich_grid_guide_compensation");if(!this.isWatch&&!I){I=_.F().resolve(_.Cs(_.W0));var H=I==null?void 0:I.guideElement;if(!(!I||I.getData()||H!=null&&H.opened||I.getMiniGuideVisible()))if(I.canFitPersistentGuide(V)&&I.getGuideExpandsAutomatically()){var T,x,n=Number((T=window.getComputedStyle(this.hostElement))==null?void 0:(x=T.getPropertyValue("--app-drawer-width"))==null?void 0:x.replace("px",""));V-=n||0}else if(I.canFitMiniGuide(V)){var w;
T=Number((n=window.getComputedStyle(this.hostElement))==null?void 0:(w=n.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:w.replace("px",""));V-=T||0}}V>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(V-=l?32:48));return V};
_.B.calcElementsPerRow=function(V,l){var I=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),H=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((I+H)/(V+H))||1,l)};
_.B.reflowContent=function(V){var l=this;if(!this.isReflowing){this.isReflowing=!0;var I,H,T=!!((I=this.data)==null?0:(H=I.contents)==null?0:H.some(function(r){return _.y(r,_.nl)}));
I=this.getItemsPerRow();var x;H=(x=this.data)==null?void 0:x.reflowOptions;V&&(_.Z8("rgr_s"),_.Al(this,function(){_.Z8("rgr_nrf")}));
V={};(x=_.h(this.hostElement).querySelector("#contents"))&&(V={contentElement:x,rendererToTagNameMap:this.rendererToTagNameMap});x=(x=this.data.contents)?x.slice():[];var n=(_.z("web_hide_gnome_behind_feed_filter_chip")||_.z("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,w=_.z("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,N=-1,L=-1;if(this.isHomePage&&w){for(w=0;w<x.length;w++){var e=void 0,k=void 0;_.y((e=x[w])==null?void 0:
(k=e.richSectionRenderer)==null?void 0:k.content,MRQ)&&(L=w)}L>-1&&(this.exploreHubContents=x.splice(L,1))}if(this.isHomePage&&n){for(L=0;L<x.length;L++)k=e=void 0,(w=_.y((e=x[L])==null?void 0:(k=e.richSectionRenderer)==null?void 0:k.content,_.cuZ))&&n&&(k=e=void 0,w=_.y((e=w)==null?void 0:(k=e.contents)==null?void 0:k[0],_.oG),e=void 0,_.y((e=w)==null?void 0:e.content,_.WqZ)&&(N=L));N>-1&&(this.gnomeContents=x.splice(N,1))}var X=oyE(x,I,T,H,this.getRichGridStyle(),V,this.insertedContent);T=function(){l.shownItems=
X;l.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(X),_.Al(this,T)):T()}};
_.B.getFirstRowItems=function(V){for(var l=[],I=0;I<V.length;I++){var H=void 0,T=void 0,x=void 0,n=void 0,w=void 0,N=void 0;if(((H=V[I])==null?void 0:(T=H.richItemRenderer)==null?void 0:T.rowIndex)===0||((x=V[I])==null?void 0:(n=x.richGroupRenderer)==null?void 0:n.rowIndex)===0||((w=V[I])==null?void 0:(N=w.richSectionRenderer)==null?void 0:N.rowIndex)===0)l.push(V[I]);else break}return l};
_.B.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.B.handleChipCloudChipSelectAction=function(V,l){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.z("web_hide_gnome_behind_feed_filter_chip")&&(l?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.B.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.z("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.B.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.z("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.B.terminateVideoPreview=function(){_.U4(this.hostElement,"yt-terminate-video-preview-action")};
_.B.updateRichItemGridPositions=function(){var V={gridData:{gridColumnCount:this.elementsPerRow}},l;if((l=this.data)==null?0:l.trackingParams)this.loggingRefactor?_.x7().stateChanged(this.data.trackingParams,V):(l=_.oa())&&_.O4(l,_.dj(this.data.trackingParams),V);_.U4(this.hostElement,"ytd-rich-item-index-update-action")};
_.B.miniModeAllowed=function(){return _.z("disable_channels_mini_mode")?!1:this.isChannelPage};
_.B.getMiniGameCardMinWidth=function(){return _.z("enable_playables_reduced_card_count")?240:154};
_.B.updateMiniMode=function(V){this.miniMode=this.miniModeAllowed()&&V;this.ytdReduxBehavior.dispatch(_.IA({type:"SET_RICH_GRID_MINI_MODE",payload:V}))};
_.B.isCurrentPage=function(){return location.pathname===this.pagePath};
_.B.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var V=_.F().resolve(_.pa).getCurrentPage();V&&V.setScrollTop(0)}};
_.B.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.B.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.B.maybeSetBigYoodle=function(){var V,l=(V=this.data)==null?void 0:V.bigYoodle;this.bigYoodleData!==l&&(this.bigYoodleData=l)};
_.B.setMasthead=function(){var V;((V=this.data)==null?0:V.masthead)?this.mastheadData=this.data.masthead:_.z("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.B.getRichGridStyle=function(){var V,l;return(l=(V=this.data)==null?void 0:V.style)!=null?l:"RICH_GRID_STYLE_UNKNOWN"};
_.B.onIsShortsGridChange=function(){var V=this.ytdReduxBehavior,l=V.dispatch,I=this.getRichGridStyle();l.call(V,_.IA({type:"SET_RICH_GRID_STYLE",payload:I}))};
_.vI.Object.defineProperties(G5E.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var V=_.F().resolve(_.pa).getCurrentPage(),l,I,H;return(((l=this.data)==null?void 0:l.targetId)==="browse-feedFEsfv_audio_pivot"||_.z("web_enable_channel_pivot_panel")&&((I=this.data)==null?void 0:I.targetId)==="browse-feedFEsfv_channel_pivot"||_.z("web_enable_effect_pivot_panel")&&((H=this.data)==null?void 0:H.targetId)==="browse-feedFEsfv_effect_pivot")&&(V==null?void 0:V.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.z("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 V;return!((V=this.data)==null?0:V.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var V;return((V=_.F().resolve(_.pa).getCurrentPage())==null?void 0:V.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var V;return((V=_.F().resolve(_.pa).getCurrentPage())==null?void 0:V.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 V;return this.hideChipsBar||(((V=this.data)==null?void 0:V.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.z("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.targetId)||"")==="watch-next-feed"&&!_.z("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((V=this.data)==null?0:V.enableContentSpecificAspectRatio)||((l=this.data)==null?0:(I=l.responsiveContainerConfiguration)==null?0:I.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.g7("web_continuation_handler_margin",0):0}}});
var PR=G5E;PR.prototype.onIsShortsGridChange=PR.prototype.onIsShortsGridChange;PR.prototype.onReloadContinuationFinish=PR.prototype.onReloadContinuationFinish;PR.prototype.reflowContent=PR.prototype.reflowContent;PR.prototype.handleRerenderDownloadsData=PR.prototype.handleRerenderDownloadsData;PR.prototype.onRichShelfRendererCollapse=PR.prototype.onRichShelfRendererCollapse;PR.prototype.onRequestElementsPerRow=PR.prototype.onRequestElementsPerRow;PR.prototype.contentLengthChanged=PR.prototype.contentLengthChanged;
PR.prototype.dataChanged=PR.prototype.dataChanged;PR.prototype.onSizingChange=PR.prototype.onSizingChange;PR.prototype.onUseCompactListChange=PR.prototype.onUseCompactListChange;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],PR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Da),_.a("design:type",Object)],PR.prototype,"ironResizableBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],PR.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],PR.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],PR.prototype,"componentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],PR.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],PR.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],PR.prototype,"miniMode",void 0);_.O([_.q({value:[]}),_.a("design:type",Array)],PR.prototype,"shownItems",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],PR.prototype,"isReflowing",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],PR.prototype,"isFilteredFeed",void 0);_.O([_.q({selector:_.Gsc}),_.a("design:type",Boolean)],PR.prototype,"guideIsExpanded",void 0);
_.O([_.q({selectorArgs:["entitySelectorType"],selector:function(V,l){if(_.z("kevlar_modern_downloads_page")&&l&&l!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(l){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var I=V.entities;l=_.rJ(I);var H=_.GV(I),T=_.Att(V),x=_.pVt(V);V=_.uc1(V);var n=_.ed3(I),w=_.F3(l);I=_.El(I);return _.Zft(l,H,n,T,x,w,I,V);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return l=_.rJ(V.entities),_.RFt(l);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return l=
_.K8t(V.entities),_.Q3g(l);default:_.hF(new _.Yd("Error: entitySelectorType defined but not matched in selector.",V,l))}}}),
_.a("design:type",Object)],PR.prototype,"entityDrivenRichGridData",void 0);_.O([_.q(),_.a("design:type",Object)],PR.prototype,"resizeOnObserverInit",void 0);_.O([_.q(),_.a("design:type",Object)],PR.prototype,"bigYoodleData",void 0);_.O([_.q(),_.a("design:type",Object)],PR.prototype,"mastheadData",void 0);_.O([_.q(),_.a("design:type",Boolean)],PR.prototype,"isInlinePreviewDisabled",void 0);_.O([_.q(),_.a("design:type",Object)],PR.prototype,"disableStickyFilterBar",void 0);
_.O([_.q(),_.a("design:type",Object)],PR.prototype,"transparentBackgroundChipsBar",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],PR.prototype,"hideChipsBar",void 0);_.O([_.q(),_.a("design:type",Object)],PR.prototype,"isWatchDefaultLayout",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],PR.prototype,"continuationShowButton",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],PR.prototype,"rowReducedHorizontalMargin",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],PR.prototype,"useCompactList",void 0);_.O([_.q({selector:function(V){return _.GV(V.entities).length>0}}),
_.a("design:type",Object)],PR.prototype,"manualDownloadsPresent",void 0);_.O([_.q({selector:function(V){return _.rJ(V.entities).length>0}}),
_.a("design:type",Object)],PR.prototype,"smartDownloadsPresent",void 0);_.O([_.q({selector:_.pVt}),_.a("design:type",Object)],PR.prototype,"shouldRenderDownloadsBanner",void 0);_.O([_.q({selector:_.Att}),_.a("design:type",Object)],PR.prototype,"hasOptedIntoSmartDownloads",void 0);_.O([_.b("useCompactList"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PR.prototype,"onUseCompactListChange",null);
_.O([_.b("sizing","typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PR.prototype,"onSizingChange",null);_.O([_.q({selector:_.P1N}),_.a("design:type",Number)],PR.prototype,"miniplayerPlaybackState",void 0);_.O([_.q({selector:_.h5}),_.a("design:type",Boolean)],PR.prototype,"miniplayerIsActive",void 0);
_.O([_.q({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.a("design:type",Boolean)],PR.prototype,"isInlinePreviewEnabled",void 0);_.O([_.q({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.a("design:type",String)],PR.prototype,"sizing",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],PR.prototype,"elementsPerRow",void 0);
_.O([_.q(),_.a("design:type",Object)],PR.prototype,"typographyBump",void 0);_.O([_.q(),_.a("design:type",Number)],PR.prototype,"itemWidth",void 0);_.O([_.Ij("#header"),_.a("design:type",HTMLElement)],PR.prototype,"headerElement",void 0);_.O([_.Ij("#contents"),_.a("design:type",HTMLElement)],PR.prototype,"contentsElement",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PR.prototype,"dataChanged",null);
_.O([_.xs("data.contents.length"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PR.prototype,"contentLengthChanged",null);_.O([_.W("yt-request-elements-per-row"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PR.prototype,"onRequestElementsPerRow",null);
_.O([_.W("yt-rich-shelf-renderer-collapse"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],PR.prototype,"onRichShelfRendererCollapse",null);_.O([_.xs("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PR.prototype,"handleRerenderDownloadsData",null);
_.O([_.Q("data"),_.a("design:type",String),_.a("design:paramtypes",[])],PR.prototype,"entitySelectorType",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"isSub",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"isWatch",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"isShortsPanel",null);_.O([_.q({reflectToAttribute:!0}),_.Q("isWatch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"reducedTopMargin",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data","isWatch","isWatchDefaultLayout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"noTopMargin",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("isInlinePreviewEnabled","shownItems"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"topRowEndorsement",null);_.O([_.Q("data.header"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"hideHeader",null);_.O([_.W("yt-rich-grid-reflow"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean]),_.a("design:returntype")],PR.prototype,"reflowContent",null);
_.O([_.W("yt-reload-continuation-finish"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PR.prototype,"onReloadContinuationFinish",null);_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"isSlimGrid",null);_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"isShortsGrid",null);
_.O([_.Q("data","isSlimGrid","isShortsGrid"),_.q(),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"noRichItemGutterMargins",null);_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"isShortsGridSlim",null);_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"isCompactGrid",null);
_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"isDefaultGrid",null);_.O([_.Q("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"hideChipsBarOnHome",null);_.O([_.Q("data.targetId"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"hideChipsBarOnWatch",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PR.prototype,"onIsShortsGridChange",null);_.O([_.Q("data.enableContentSpecificAspectRatio"),_.q(),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PR.prototype,"force16By9ThumbnailAspectRatio",null);_.O([_.Q("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],PR.prototype,"continuationTriggerOffset",null);PR=_.O([_.A({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],PR);
_.u(PR,"ytd-rich-grid-renderer",function(){if(H3u!==void 0)return H3u;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return H3u=V},{mode:2});var EPu;var JE2;var oP6=function(){return _.M.apply(this,arguments)||this};
_.t(oP6,_.M);var hz6=oP6;_.O([_.q(),_.a("design:type",Object)],hz6.prototype,"data",void 0);hz6=_.O([_.Lm({is:"yt-alert-renderer",disableElementRegistration:!0})],hz6);
_.u(hz6,"yt-alert-renderer",function(){if(JE2===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;EPu===void 0&&(EPu=document.createElement("template"));var H=EPu;I.call(l,H.content.cloneNode(!0),V.content.firstChild);JE2=V}V=JE2;return V},{mode:2});
}catch(e){_._DumpException(e)}
try{
var jN6;jN6={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}};_.YIr=_.W1(function(V){var l=_.HK(),I=_.F().resolve(_.Sz);_.kG(function(){requestAnimationFrame(function(){var T;(T=l.lottieEl)==null||T.addEventListener("DOMLoaded",function(){var x;(x=V.onLottieLoaded)==null||x.call(V)})})});
var H={};return _.Y("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var T;return((T=V.data)==null?void 0:T.call(V).targetId)||""}},_.Y(_.VN,{className:_.ii((H.ytChatLoadingViewModelRtl=I==="rtl",H)),
animationName:function(){return jN6.animationConfig.name},
data:jN6,animationRef:l}))},"Hf");
}catch(e){_._DumpException(e)}
try{
var uvB;uvB=function(V,l){l=l.width!==window.innerWidth||l.height!==window.innerHeight;document.visibilityState==="hidden"||l||V&&_.Gr(V)};
_.vlg=function(V,l){l=l===void 0?{}:l;var I,H,T,x,n,w,N,L,e,k,X,r;return _.d(function(E){switch(E.nextAddress){case 1:I=l;H=I.shouldWrap===void 0?!0:I.shouldWrap;T=I.skipTransitionTimeoutMs===void 0?300:I.skipTransitionTimeoutMs;x=I.beforeTransition;n=I.afterTransition;if(!H||!document.startViewTransition||document.visibilityState==="hidden")return E.return(V());w={width:window.innerWidth,height:window.innerHeight};(N=x)==null||N();_.jd(E,2);L=document.startViewTransition(V);e=setTimeout(function(){L.skipTransition();
var D;(D=n)==null||D()},T);
return _.K(E,L.ready,4);case 4:return clearTimeout(e),_.K(E,L.finished,5);case 5:clearTimeout(e);(k=n)==null||k();_.Rv(E,0);break;case 2:X=_.kE(E),(r=n)==null||r(),uvB(X,w),_.FU(E)}})};
_.tk=function(V){return V.watch.isTheaterMode};
_.OOQ=function(V){var l=_.jk("DIV");V&&(l.className=V);l.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";V=_.jk("DIV");_.Zdb(V,"200px","200px");l.appendChild(V);document.body.appendChild(l);V=l.offsetWidth-l.clientWidth;_.Yw(l);return V};
_.rz=function(){for(var V=Array(36),l=0,I,H=0;H<36;H++)H==8||H==13||H==18||H==23?V[H]="-":H==14?V[H]="4":(l<=2&&(l=33554432+Math.random()*16777216|0),I=l&15,l>>=4,V[H]=_.ILN[H==19?I&3|8:I]);return V.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 CxB=_.fl(['<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>']),
a1b=_.A5Z(CxB);a1b.setAttribute("style","display: none;");document.head.appendChild(a1b.content);_.GW=_.mlq(_.OOQ);var f1V;var glE;var m4Y=function(){var V=_.M.apply(this,arguments)||this;V.icon=null;return V};
_.t(m4Y,_.M);m4Y.prototype.dismiss=function(){_.B$(this.hostElement,"yt-live-chat-error-message-dismiss")};
m4Y.prototype.computeIcon=function(V){return V&&V.iconType?"yt-icons:"+V.iconType.toLowerCase():"yt-icons:close"};
var Ea=m4Y;_.O([_.q(),_.a("design:type",Object)],Ea.prototype,"data",void 0);_.O([_.q({computed:"computeIcon(data.icon)"}),_.a("design:type",Object)],Ea.prototype,"icon",void 0);Ea=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Ea);
_.u(Ea,"yt-live-chat-error-message-renderer",function(){if(glE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;f1V===void 0&&(f1V=document.createElement("template"));var H=f1V;I.call(l,H.content.cloneNode(!0),V.content.firstChild);glE=V}V=glE;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var PEd,DEY,SPM,RBf,Qu5,Zy,Mb6,suO,pYh,AIM,uEq,vhf,QE,OQO,CEM,arY,frO,ghh,mEq,iQn,V6p,lC6,ICj,HdY,Tpf,Bpd,xVV,UVO,nnC,$VM,dVx,wh6,Np5,Kx6,jOV,Yq5,LxV,eMp,kfq,FxC,Xhx,t6O,Gf6,JVq,onp,hMV,PY6,zMn,yVd,SqM,RMf,QOY,cVp,Wxj,DVV,M66;PEd=function(V,l,I){l=l===void 0?5:l;if(l!==0){var H=typeof V==="function"?V():document.querySelector(V);H?(I==null?0:I.enableSmartFocus)?_.hm3(H):H.focus():setTimeout(function(){PEd(V,l-1,I)},500)}};
DEY=function(V,l){return _.nW(V.entities,"timedMarkersListSyncEntity",l)};
_.ZQd=function(){_.z("web_watch_log_theater_mode")&&_.jU("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
SPM=function(V,l){return _.nW(V.entities,"liveReactionsDataEntity",l)};
RBf=function(V,l){V=_.nW(V.entities,"booleanEntity",l);return!(!V||!V.value)};
Qu5=function(V,l){var I=_.oa();I&&V&&_.MJ(I,_.dj(V),l)};
_.cI5=function(V,l,I){if(!V.includes("START_TIME_PLACEHOLDER")||!V.includes("END_TIME_PLACEHOLDER"))return V;var H=new Date(0),T=new Date(0);H.setUTCMilliseconds(l);T.setUTCMilliseconds(I);return V.replace("START_TIME_PLACEHOLDER",_.bB(H,7)).replace("END_TIME_PLACEHOLDER",_.bB(T,7))};
Zy=function(V){return V.watch.isWatchActive};
_.S8=function(V){return V!=null&&V.watch?V.watch.isWatchFullscreen:!1};
_.WVp=function(V){return V.watch.watchWindowSize};
_.bQV=function(V){return _.tk(V)||_.S8(V)||_.wpg(V)};
_.qPV=function(V){return!_.bQV(V)};
_.R4=function(V){return V.watch.watchScrollTop};
Mb6=function(V){return V.watch.isLiveChatCollapsed};
suO=function(V){return V.watch.openEngagementPanels};
pYh=function(V){switch(V){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}};
AIM=function(V,l,I){var H=_.to(I);V&&l&&H&&V.getPlayerPromise().then(function(T){_.yaf(H)&&_.rT();(new _.SG(T)).executeCommand(H,l);_.z("continue_playback_on_desktop_companion_click")||T.pauseVideo()})};
uEq=function(V){var l=_.u8(),I;if(I=_.SN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;I=(H=I())==null?void 0:H.layoutId}else I=null;AIM(l,I,V)};
vhf=function(V){var l=_.u8(),I;if(I=_.SN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;I=(H=I())==null?void 0:H.layoutId}else I=null;AIM(l,I,V)};
QE=function(V,l){var I=V<0?"-":"";V=Math.abs(V);var H=Math.floor(V/3600),T=Math.floor(V)%3600,x=Math.floor(T/60);T=Math.floor(T)%60;var n="";(l===void 0?0:l)&&(n="."+Math.round((V-Math.floor(V))*10));return H>0?I+H+":"+(x<10?"0"+x:""+x)+":"+(T<10?"0"+T:""+T)+n:I+x+":"+(T<10?"0"+T:""+T)+n};
OQO=function(V){var l=V.match(/[^0-9:\.]/g);if(l&&l.length>0)return null;V=V.split(":");if(V.length===0||V.length>3)return null;l=1;for(var I=0;V.length>0;){var H=V.pop();if(H===void 0)break;var T=Number(H);if(H===""||isNaN(T))return null;I+=T*l;l*=60}return I};
CEM=function(V,l,I,H){V=Math.max(I,V);l=Math.min(l,H-I);V+l>H?(I=H,V=I-l):I=V+l;return{start:V,end:I}};
arY=function(V,l,I,H,T,x){V<I?V=I:V+T>H&&(V=H-T);l>H&&(l=H);l=Math.min(V+x,Math.max(V+T,l));return{start:V,end:l}};
frO=function(V,l,I,H,T,x){l>H?l=H:l-T<I&&(l=I+T);V<I&&(V=I);V=Math.min(l-T,Math.max(l-x,V));return{start:V,end:l}};
ghh=function(V){return _.z("web_transcript_cue_id_killswitch")?String(V):"ytd-transcript-renderer_"+V};
mEq=function(V){return _.z("web_transcript_cue_id_killswitch")?!0:V.startsWith("ytd-transcript-renderer")};
iQn=function(V){var l=_.u8(),I;if(I=_.SN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;I=(H=I())==null?void 0:H.layoutId}else I=null;AIM(l,I,V)};
V6p=function(V,l){return _.nW(V.entities,"youchatPendingResponseEntity",l)};
lC6=function(V){return function(l){_.ZR(_.K6("youchatPendingResponseEntity",V,{entityKey:V,isPendingResponse:l}))}};
ICj=function(V,l){return _.nW(V.entities,"booleanEntity",l)};
HdY=function(){return function(V){_.ZR(_.K6("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:V}))}};
Tpf=function(V){V==null||V.addEventListener("DOMLoaded",function(){V.goToAndPlay(V.totalFrames-48,!0)})};
Bpd=function(V){V.style.height="auto";V.style.height=Math.min(V.scrollHeight||20,80)+"px"};
xVV=function(V,l){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:l}}],insertByPositionInSection:{sectionTargetId:V,position:"INSERTION_POSITION_LAST"}}}]}}}};
UVO=function(V){var l=_.u8(),I;I=(I=_.SN("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;AIM(l,I,V)};
nnC=function(V){var l=_.u8(),I;I=(I=_.SN("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;AIM(l,I,V)};
$VM=function(V,l){l=l===void 0?!1:l;if(V.simpleText)V=[{text:V.simpleText}];else{var I;V=((I=V.runs)!=null?I:[]).map(function(H){return Object.assign({},H)})}if(l)for(l=_.U(V),I=l.next();!I.done;I=l.next())I.value.bold=!0;
return V};
dVx=function(V){var l=V.startEndTimeTemplate,I=V.startTimeUtcMillis;V=V.endTimeUtcMillis;if(l&&I&&V)return _.pW(_.cI5(_.A5(l),Number(I),Number(V)))};
wh6=function(V,l){var I,H,T=V==null?void 0:(I=V.viewCount)==null?void 0:(H=I.videoViewCountRenderer)==null?void 0:H.shortViewCount;if(!l&&T)return T;var x,n;return V==null?void 0:(x=V.viewCount)==null?void 0:(n=x.videoViewCountRenderer)==null?void 0:n.viewCount};
Np5=function(V,l){var I=V==null?void 0:V.relativeDateText;return!l&&I?[I,!0]:[V==null?void 0:V.dateText,!1]};
Kx6=function(V,l,I,H,T){H=H===void 0?!0:H;T=T===void 0?"":T;var x=wh6(V,l),n=_.U(Np5(V,l)),w=n.next().value;n=n.next().value;l=l?V==null?void 0:V.sponsorsOnlyFirstTimeLongText:V==null?void 0:V.sponsorsOnlyFirstTimeShortText;var N=[];I&&x&&N.push(x);!I&&n||!w||N.push(w);V=[].concat(_.oI(N),[l,V==null?void 0:V.stationName,V==null?void 0:V.rating,V?dVx(V):void 0,V==null?void 0:V.upNextProgramText,V==null?void 0:V.superTitleLink]).filter(function(L){return!!L});
I={runs:[]};for(x=0;x<V.length;x++)I.runs.push.apply(I.runs,_.oI($VM(V[x],H))),x<V.length-1&&I.runs.push({text:" "+T+" ",bold:H});return I};
jOV=function(V){if(V)return{runs:[{text:V,bold:!0}]}};
Yq5=function(V){var l,I,H,T;if(V=V==null?void 0:(l=V.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(H=I.results)==null?void 0:(T=H.results)==null?void 0:T.contents){var x,n;return(n=(x=V.find(function(w){return!!w.videoPrimaryInfoRenderer}))==null?void 0:x.videoPrimaryInfoRenderer)==null?void 0:n.updatedMetadataEndpoint}};
LxV=function(V,l){var I;return(I=V.sourceConfigs)==null?void 0:I.find(function(H){return H.videoId===l})};
eMp=function(V){return V==="End of video"||V==="End of playlist"};
kfq=function(V){var l,I,H,T;return(l=V.getWatchNextResponse())==null?void 0:(I=l.contents)==null?void 0:(H=I.twoColumnWatchNextResults)==null?void 0:(T=H.playlist)==null?void 0:T.playlist};
FxC=function(V){var l,I,H,T,x,n;return(l=kfq(V))==null?void 0:(I=l.playlistButtons)==null?void 0:(H=I.menuRenderer)==null?void 0:(T=H.topLevelButtons)==null?void 0:(x=T[0])==null?void 0:(n=x.playlistLoopButtonRenderer)==null?void 0:n.playlistLoopStateEntityKey};
Xhx=function(V){var l=_.F().resolve(_.cV),I;return(l=(I=_.y(l.getAutoplayEndpoint(),_.vU))==null?void 0:I.playlistId)&&l===V};
t6O=function(V,l,I,H,T){function x(){_.r0.cancelJob(cW);var n=zMn(l,I/V.getPlaybackRate()),w=n.hours,N=n.minutes;n=(n.seconds*1E3||6E4)/V.getPlaybackRate();V.setVideoTimeLeft(yVd(w,N));H&&V.getPlayerState()!==0&&V.setSleepTimerTimeLeft(yVd(w,N,!0));(w>0||N>0)&&!T&&(cW=_.L6(_.r0,x,n))}
_.r0.cancelJob(cW);cW=_.L6(_.r0,x)};
Gf6=function(V,l,I){function H(){_.r0.cancelJob(rVq);var T=zMn(l,I),x=T.hours;T=T.minutes;var n=6E4/V.getPlaybackRate();if(x>0||T>0)V.setSleepTimerTimeLeft(yVd(x,T,!0)),rVq=_.L6(_.r0,H,n)}
_.r0.cancelJob(rVq);rVq=_.L6(_.r0,H)};
JVq=function(V,l){var I=V.getVolume()/(l/500),H=function(T){_.r0.cancelJob(Enn);var x=Math.floor(T-I);V.setVolume(x,!1);x>0&&(Enn=_.L6(_.r0,function(){H(x)},500))};
_.r0.cancelJob(Enn);Enn=_.L6(_.r0,function(){H(V.getVolume())})};
onp=function(V,l){_.r0.cancelJob(Enn);l&&V.syncVolume()};
hMV=function(){var V={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.LT("SLEEP_TIMER_DISRUPTED")}}}}};_.F().resolve(_.aw).resolveCommand(V)};
PY6=function(V){return(V.getDuration()-V.getProgressState().current)*1E3};
zMn=function(V,l){V=V+l-(0,_.O_)();if(V<=0)return{hours:0,minutes:0,seconds:0};var I=new DVV(0,0,0,0,0,0,V);V=I.getHours();l=I.getMinutes();I=I.getSeconds();I!==0&&l++;l!==0&&l%60===0&&(V++,l=0);return{hours:V,minutes:l,seconds:I}};
yVd=function(V,l,I){return V>0&&l>0?I?_.LT("TIME_LEFT_HOURS_MINUTES",{hours:V.toString(),minutes:l.toString()}):_.LT("TIME_HOURS_MINUTES",{hours:V.toString(),minutes:l.toString()}):V>0?I?_.e1("TIME_LEFT_HOURS",V):_.e1("TIME_HOURS",V):I?_.LT("TIME_LEFT_MINUTES",{minutes:l.toString()}):_.LT("TIME_MINUTES",{minutes:l.toString()})};
SqM=function(V,l){if(V.timelyActions)return V.timelyActions.find(function(I){var H;return((H=_.y(I,Zdp))==null?void 0:H.cueRangeId)===l})};
RMf=function(V){var l=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.dY(V);V.keyMap_.forEach(function(I,H){_.Mq(l,H)||this.remove(H)},V)};
QOY=function(V,l){V.reloadContinuationItemsCommandMatcher=l};
_.WW=function(V,l){V.insertBefore(l,V.childNodes[0]||null)};
cVp=function(V){if(V>=48&&V<=57||V>=96&&V<=106||V>=65&&V<=90||_.ja&&V==0)return!0;switch(V){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 _.Kj;default:return!1}};
Wxj=function(V){if(V.altKey&&!V.ctrlKey||V.metaKey||V.keyCode>=112&&V.keyCode<=123)return!1;if(cVp(V.keyCode))return!0;switch(V.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!_.Kj;default:return V.keyCode<166||V.keyCode>183}};
DVV=function(V,l,I,H,T,x,n){this.date=typeof V==="number"?new Date(V,l||0,I||1,H||0,T||0,x||0,n||0):new Date(V&&V.getTime?V.getTime():_.xv())};
_.Uk(DVV,_.rQ);_.B=DVV.prototype;_.B.getHours=function(){return this.date.getHours()};
_.B.getMinutes=function(){return this.date.getMinutes()};
_.B.getSeconds=function(){return this.date.getSeconds()};
_.B.getMilliseconds=function(){return this.date.getMilliseconds()};
_.B.getUTCDay=function(){return this.date.getUTCDay()};
_.B.getUTCHours=function(){return this.date.getUTCHours()};
_.B.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.B.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.B.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.B.setHours=function(V){this.date.setHours(V)};
_.B.setMinutes=function(V){this.date.setMinutes(V)};
_.B.setSeconds=function(V){this.date.setSeconds(V)};
_.B.setMilliseconds=function(V){this.date.setMilliseconds(V)};
_.B.setUTCHours=function(V){this.date.setUTCHours(V)};
_.B.setUTCMinutes=function(V){this.date.setUTCMinutes(V)};
_.B.setUTCSeconds=function(V){this.date.setUTCSeconds(V)};
_.B.setUTCMilliseconds=function(V){this.date.setUTCMilliseconds(V)};
_.B.add=function(V){_.rQ.prototype.add.call(this,V);V.hours&&this.setUTCHours(this.date.getUTCHours()+V.hours);V.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+V.minutes);V.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+V.seconds)};
_.B.JSC$9085_toIsoString=function(V){var l=_.rQ.prototype.JSC$9085_toIsoString.call(this,V);return V?l+"T"+_.Bi(this.getHours(),2)+":"+_.Bi(this.getMinutes(),2)+":"+_.Bi(this.getSeconds(),2):l+"T"+_.Bi(this.getHours(),2)+_.Bi(this.getMinutes(),2)+_.Bi(this.getSeconds(),2)};
_.B.equals=function(V){return this.getTime()==V.getTime()};
_.B.toString=function(){return this.JSC$9085_toIsoString()};
_.B.clone=function(){var V=new DVV(this.date);V.firstDayOfWeek_=this.firstDayOfWeek_;V.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return V};
_.bd5=function(V){return _.IA({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:V}})};
_.qqh=function(V){return _.IA({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:V}})};
M66=new _.f("imageTileRenderer");var sOM=new _.f("adGridCardCollectionViewModel");var phd=new _.f("carouselTitleViewModel");var AVf=new _.f("ctaCarouselItemViewModel");var ujY=new _.f("textFieldViewModel");_.vnM=new _.f("engagementPanelHeaderShowNavigationButtonCommand");var OdC=new _.f("hideEngagementPanelScrimAction");var CYV=new _.f("setActivePanelItemAction");var aC5=new _.f("showEngagementPanelScrimAction");var fCq=new _.f("updateEngagementPanelAction");var gnh=new _.f("updateSearchInVideoResultsAction");var mVx=new _.f("transcriptCueGroupRenderer");var idd=new _.f("transcriptCueRenderer");var Vdd=new _.f("transcriptFooterRenderer");var lKp=new _.f("engagementPanelAdSubtitleRenderer");var IKn=new _.f("videoDescriptionFantasySectionViewModel");var HkO=new _.f("deleteClipEngagementPanelCommand");var T4n=new _.f("loopCommand");var B46=new _.f("changeCreatorEndscreenVisibilityCommand");var x0O=new _.f("liveChatCallForQuestionsRenderer");var U0h=new _.f("updateTimedMarkersSyncObserverCommand");var Zdp=new _.f("timelyActionViewModel");var nEq=new _.f("timelyActionsOverlayViewModel");var $0f=new _.f("repeatChapterCommand");var d0f=new _.f("watchPlayerOverflowMenuCommand");var wkd=new _.f("compositeVideoOverlayRenderer");var N4j=new _.f("sortFilterSubMenuRenderer");var KYY=new _.f("horizontalShelfViewModel");var jI5=new _.f("switchListItemViewModel");var Y9x=new _.f("inputComposerViewModel");var LYn=new _.f("transcriptEditSegmentCommand");var e7f=new _.f("transcriptUpdateSegmentTextCommand");var kLO=new _.f("transcriptSearchBoxRenderer");var FYO=new _.f("transcriptSegmentListRenderer");var Xkf=new _.f("transcriptSegmentRenderer");_.z76=new _.f("updateDateTextAction");var yeV=new _.f("updateTitleAction");var td5=new _.f("updateViewershipAction");var rex=new _.f("carouselLockupRenderer");var GLd=new _.f("expandableVideoDescriptionBodyRenderer");var EEh=new _.f("videoDescriptionYouchatSectionViewModel");var JeC=new _.f("conversationResourceViewModel");_.bq=_.g7("kevlar_watch_page_horizontal_margin",24);_.oEV=_.g7("kevlar_watch_page_columns_top_padding",24);_.h7n=_.g7("web_screen_width_midpoint",1500);_.PwY=_.g7("web_watch_sidebar_width_offset_per_100",10);_.D0p=426+_.bq*2;_.qg=_.g7("kevlar_watch_two_column_width_threshold",1E3);_.Zkf=_.bq*2;_.Mg=_.g7("kevlar_watch_secondary_width",402);_.S9f=_.g7("kevlar_watch_secondary_max_width",600);_.R76=_.g7("kevlar_watch_max_player_width",1280);_.QIx=_.g7("kevlar_watch_flexy_metadata_height",136);
_.cef=_.Zkf+310+_.bq;_.WYj=_.Zkf+360+_.bq;var bkV={PAUSE_CHAT:18};var q9C;var Md5;var sIM=function(){return _.M.apply(this,arguments)||this};
_.t(sIM,_.M);sIM.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
sIM.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var V=_.y(this.data.button,_.Gb);V&&(V.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.vI.Object.defineProperties(sIM,{template:{configurable:!0,enumerable:!0,get:function(){if(Md5===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;q9C===void 0&&(q9C=document.createElement("template"));var H=q9C;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Md5=V}V=Md5;return V}}});
var sG=sIM;_.O([_.R(_.hM),_.a("design:type",Object)],sG.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q({selectorArgs:["data.enabledEntityKey"],selector:RBf,observer:"onEnabledChange"}),_.a("design:type",Boolean)],sG.prototype,"enabled",void 0);_.O([_.q(),_.a("design:type",Object)],sG.prototype,"data",void 0);
sG=_.O([_.Lm({is:"yt-disableable-button-view-model",noInjection:!0})],sG);var pkj;var Aed;var uUV=["transVert01","transVert02","transVert03"],vEj="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Ok6=function(){var V=_.M.apply(this,arguments)||this;V.emojiManager=_.Q2;V.isDarkTheme=document.documentElement.hasAttribute("dark");V.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};V.reactionBuckets=[];V.noEmojiIdentifier="NO_EMOJI";return V};
_.t(Ok6,_.M);_.B=Ok6.prototype;_.B.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.B.desktopFountainEmojiSizePxChanged=function(){_.i3(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.B.createUserReactionAnimation=function(V){this.createEmojiAnimation(V,!0)};
_.B.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var V;((V=this.data)==null?0:V.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.K6("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.oI(this.emojiContainer.children)).forEach(function(l){l.remove()})};
_.B.detached=function(){this.cleanupFountain()};
_.B.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var V;this.reactionBuckets=_.EL.unsafeClone((V=this.emojiFountainData)==null?void 0:V.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.B.processEmojiBucket=function(V){var l=this;if(this.reactionBuckets&&!(V>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var I=this.reactionBuckets[V];this.generateEmojiAnimations(I);if(V<this.reactionBuckets.length-1){var H;if(I==null?0:(H=I.duration)==null?0:H.seconds)this.emojiBucketTimerId=setTimeout(function(){l.processEmojiBucket(V+1)},Number(I.duration.seconds)*1E3)}}};
_.B.generateEmojiAnimations=function(V){var l=this,I=this.getRandomEmojiIdFromBucketWithOverride(V);if(I&&I!==this.noEmojiIdentifier){var H=0;V.targetEps?(H=this.linearInterpolateBounded(1,20,100,12,V.emojiSizeIndex||0),this.createEmojiAnimation(I,!1,V.emojiAnimationMs,H),H=this.getEmojiDelayMsFromTargetEps(V.targetEps)):(this.createEmojiAnimation(I),H=this.getEmojiDelayMsFromDistribution(V.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){l.generateEmojiAnimations(V)},H)}};
_.B.getRandomEmojiIdFromBucketWithOverride=function(V){if(!(V&&V.reactionsData&&V.reactionsData.length&&V.totalReactions))return this.noEmojiIdentifier;for(var l=V.totalReactions,I=1,H=_.U(V.reactionsData),T=H.next();!T.done;T=H.next())T=T.value,(T.reactionWeightOverride||T.reactionWeightOverride===0)&&T.reactionCount&&(l-=T.reactionCount,I-=T.reactionWeightOverride);H=!0;I<0&&(H=!1,l=V.totalReactions,I=1);if(H&&I>0&&l===0)if(I===1){T=0;for(var x=_.U(V.reactionsData),n=x.next();!n.done;n=x.next())n=
n.value,n.reactionCount&&n.reactionCount>0&&T++;T=1/T;x=_.U(V.reactionsData);for(n=x.next();!n.done;n=x.next())n.value.reactionWeightOverride=T}else for(T=1/(1-I),x=_.U(V.reactionsData),n=x.next();!n.done;n=x.next())n=n.value,n.reactionWeightOverride&&(n.reactionWeightOverride*=T);T=Math.random();x=0;n=_.U(V.reactionsData);for(var w=n.next();!w.done;w=n.next())if(w=w.value,w.reactionCount&&(x=(w.reactionWeightOverride||w.reactionWeightOverride===0)&&H?x+w.reactionWeightOverride:x+I*w.reactionCount/
l,x>T&&(w.reactionCount--,V.totalReactions--,w=this.reactionItemToEmojiString(w),w!==this.noEmojiIdentifier)))return w;return this.noEmojiIdentifier};
_.B.reactionItemToEmojiString=function(V){if(V.unicodeEmojiId)return V.unicodeEmojiId;if(V.emoteId)return V.emoteId;if(V.videoReactionType)switch(V.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.B.createEmojiAnimation=function(V,l,I,H){l=l===void 0?!1:l;this.lastEmojiRequestedForTesting=V;var T=V.startsWith("yt-icons:"),x=_.Sf(this.emojiManager,V);if(x||T){var n=document.createElement("emoji");n.classList.add("yt-emoji-fountain-view-model");n.classList.add(uUV[Math.floor(Math.random()*uUV.length)]);var w=document.createElement("div");w.classList.add("yt-emoji-fountain-view-model");w.classList.add("horizontal-container");w.classList.add(vEj[Math.floor(Math.random()*vEj.length)]);l?(I=document.createElement("div"),
I.classList.add("user-reaction-bubble"),I.classList.add("yt-emoji-fountain-view-model"),w.appendChild(I)):(I&&(n.style.animationDuration=I+"ms",w.style.animationDuration=I+"ms"),H&&(n.style.width=H+"px",n.style.height=H+"px"));T?(T=document.createElement("yt-icon"),T.polymerController.icon=V,H&&(T.style.width=H+"px",T.style.height=H+"px"),V=T):V=this.emojiManager.createEmoji(x,!1);V.classList.add("yt-emoji-fountain-view-model");w.appendChild(V);n.appendChild(w);this.emojiContainer.appendChild(n);
n.addEventListener("animationend",function(){n.remove()});
var N,L;if((N=this.data)==null?0:(L=N.loggingDirectives)==null?0:L.trackingParams)l=l?_.eU(183501):_.eU(183500),Qu5(this.data.loggingDirectives.trackingParams,l),_.Dnt(l);setTimeout(function(){n&&n.remove()},2E3)}};
_.B.getEmojiDelayMsFromDistribution=function(V){return Math.random()*(V||1)*1E3};
_.B.getEmojiDelayMsFromTargetEps=function(V){return Math.random()*2*(1/V)*1E3};
_.B.linearInterpolateBounded=function(V,l,I,H,T){T=Math.min(Math.max(T,V),I);return(l*(I-T)+H*(T-V))/(I-V)};
var p9=Ok6;p9.prototype.onEmojiFountainDataEntityUpdate=p9.prototype.onEmojiFountainDataEntityUpdate;p9.prototype.desktopFountainEmojiSizePxChanged=p9.prototype.desktopFountainEmojiSizePxChanged;p9.prototype.isActiveChanged=p9.prototype.isActiveChanged;_.O([_.q(),_.a("design:type",_.Z6)],p9.prototype,"emojiManager",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.hM),_.a("design:type",Object)],p9.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],p9.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],p9.prototype,"data",void 0);_.O([_.q({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(V,l){return _.nW(V.entities,"emojiFountainDataEntity",l)}}),
_.a("design:type",Object)],p9.prototype,"emojiFountainData",void 0);_.O([_.q(),_.a("design:type",Boolean)],p9.prototype,"isActive",void 0);_.O([_.b("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p9.prototype,"isActiveChanged",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],p9.prototype,"isDarkTheme",void 0);_.O([_.q(),_.a("design:type",String)],p9.prototype,"lastEmojiRequestedForTesting",void 0);
_.O([_.q({value:function(){return _.g7("desktop_fountain_emoji_size_px",20)}}),
_.a("design:type",Number)],p9.prototype,"desktopFountainEmojiSizePx",void 0);_.O([_.b("desktopFountainEmojiSizePx"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p9.prototype,"desktopFountainEmojiSizePxChanged",null);_.O([_.Ij("#emoji-container"),_.a("design:type",HTMLElement)],p9.prototype,"emojiContainer",void 0);
_.O([_.b("emojiFountainData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p9.prototype,"onEmojiFountainDataEntityUpdate",null);p9=_.O([_.Lm({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],p9);
_.u(p9,"yt-emoji-fountain-view-model",function(){if(Aed===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;pkj===void 0&&(pkj=document.createElement("template"));var H=pkj;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Aed=V}V=Aed;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var Cw6;var aK6;var fKV=function(){return _.M.apply(this,arguments)||this};
_.t(fKV,_.M);fKV.prototype.onChoiceChanged=function(){this.data&&_.i3(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
var AW=fKV;AW.prototype.onChoiceChanged=AW.prototype.onChoiceChanged;_.O([_.q(),_.a("design:type",Object)],AW.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AW.prototype,"onChoiceChanged",null);AW=_.O([_.A({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],AW);
_.u(AW,"yt-live-chat-banner-poll-choice",function(){if(aK6===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Cw6===void 0&&(Cw6=document.createElement("template"));var H=Cw6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);aK6=V}V=aK6;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var gEq;var m0M;var ikh=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("web_button_rework_with_live");V.small=!1;return V};
_.t(ikh,_.M);ikh.prototype.computeIsSmall=function(){var V;return((V=this.buttonOverrides)==null?void 0:V.size)==="S"};
ikh.prototype.computeId=function(){return this.data&&this.data.targetId};
var uq=ikh;_.O([_.R(_.Pf.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],uq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",String)],uq.prototype,"id",void 0);_.O([_.q(),_.a("design:type",Object)],uq.prototype,"buttonOverrides",void 0);_.O([_.q(),_.a("design:type",Object)],uq.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],uq.prototype,"modern",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.a("design:type",Object)],uq.prototype,"small",void 0);uq=_.O([_.A({disableElementRegistration:!0,is:"yt-live-chat-button"})],uq);
_.u(uq,"yt-live-chat-button",function(){if(m0M===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;gEq===void 0&&(gEq=document.createElement("template"));var H=gEq;I.call(l,H.content.cloneNode(!0),V.content.firstChild);m0M=V}V=m0M;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var VP6;var l3n;var I3p=function(){var V=_.M.apply(this,arguments)||this;V.inCollapsedBanner=!1;V.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};V.questionButtonOverrides={style:"mono",type:"filled"};return V};
_.t(I3p,_.M);_.B=I3p.prototype;_.B.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]]"}}}}}};
_.B.onContextMenuButtonClick=function(V){this.ytLiveChatItemBehavior.showContextMenu(V)};
_.B.onYtRendererstamperFinished=function(){this.menuButton=_.h(this.hostElement).querySelector("#menu-button")};
_.B.dataChanged=function(){var V,l;if((l=_.y((V=this.data)==null?void 0:V.overflowMenuButton,_.RG))==null?0:l.command)this.data.contextMenuEndpoint=_.y(this.data.overflowMenuButton,_.RG).command};
_.B.onButtonClick=function(){var V,l=_.y((V=this.data)==null?void 0:V.askQuestionButton,_.RG);if(l){if(l.trackingParams&&(V=_.dj(l.trackingParams))){var I=_.oa();I&&_.uJ(I,V)}_.B$(this.hostElement,"innertube-command",l.command)}};
var vW=I3p;vW.prototype.onYtRendererstamperFinished=vW.prototype.onYtRendererstamperFinished;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],vW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.hM),_.a("design:type",Object)],vW.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],vW.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.q({observer:"dataChanged"}),_.a("design:type",Object)],vW.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vW.prototype,"inCollapsedBanner",void 0);_.O([_.q(),_.a("design:type",Object)],vW.prototype,"buttonOverrides",void 0);_.O([_.q(),_.a("design:type",Object)],vW.prototype,"questionButtonOverrides",void 0);_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vW.prototype,"onYtRendererstamperFinished",null);
vW=_.O([_.A({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],vW);
_.u(vW,"yt-live-chat-call-for-questions-renderer",function(){if(l3n===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;VP6===void 0&&(VP6=document.createElement("template"));var H=VP6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);l3n=V}V=l3n;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var HGd={};HGd.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 V=this;window.requestAnimationFrame(function(){V.restoreFocusNode_||(V.restoreFocusNode_=document.activeElement);var l=_.jKv(V.hostElement);l.length&&l[l.length-1].focus()})},
isAttachedChanged_:function(V,l){V?this.focusChild_():l&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(V){this.hidden||_.b3(V).indexOf(this.hostElement)!==-1||(V.stopPropagation(),this.focusChild_())}};var T$f;var B$Y;var x3f=function(){return _.M.apply(this,arguments)||this};
_.t(x3f,_.M);x3f.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
x3f.prototype.onClick=function(V){V.target!==this.confirmButton&&V.target!==this.cancelButton&&(this.hidden=!0)};
var OG=x3f;_.O([_.Ij("#confirm_button"),_.a("design:type",Object)],OG.prototype,"confirmButton",void 0);_.O([_.Ij("#cancel_button"),_.a("design:type",Object)],OG.prototype,"cancelButton",void 0);_.O([_.q(),_.a("design:type",U3d)],OG.prototype,"data",void 0);_.O([_.q({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],OG.prototype,"hidden",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(HGd.YtLiveChatDialogBehavior),_.a("design:type",Object)],OG.prototype,"ytLiveChatDialogBehavior",void 0);OG=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],OG);
var U3d=_.u(OG,"yt-live-chat-dialog-renderer",function(){if(B$Y===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;T$f===void 0&&(T$f=document.createElement("template"));var H=T$f;I.call(l,H.content.cloneNode(!0),V.content.firstChild);B$Y=V}V=B$Y;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var npn;var $3Y,d35=function(){if($3Y!==void 0)return $3Y;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;npn===void 0&&(npn=document.createElement("template"));var H=npn;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return $3Y=V};var wNn;var N$q;var K26=function(){var V=_.M.apply(this,arguments)||this;V.tooltip=null;V.data=null;V.id="";V.active=!1;V.icon="";V.disabled=!1;V.showTooltip=!1;V.useToggledActiveState=!0;V.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return V};
_.t(K26,_.M);_.B=K26.prototype;
_.B.dataChanged=function(){var V;((V=this.data)==null?0:V.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,_.mL)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var l;if((l=this.data)==null?0:l.disabled)this.disabled=!0};
_.B.computeId=function(V){return V};
_.B.computeIcon=function(V,l){if(!V)return"";if(this.useToggledActiveState)return"yt-icons:"+V.toLowerCase();var I,H;return l&&((I=this.data)==null?0:(H=I.toggledIcon)==null?0:H.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+V.toLowerCase()};
_.B.logPDGEntryPoint=function(){_.w0w(_.Bb("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")};
_.B.immediatelyShowTooltip=function(){var V=_.h(this.hostElement).querySelector("#tooltip");V.animationDelay=0;V.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};V.show()};
_.B.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.B.onClick=function(V){var l;((l=this.data)==null?0:l.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(),V.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.B$(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.B.computeShowTooltip=function(V,l){return!!(V&&V.tooltip&&l)};
_.B.maybeUpdateTooltipText=function(){var V=this,l;if((l=this.data)==null?0:l.tooltip){var I=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.mL)(V.tooltip).textContent=I},250)}};
_.B.handleLiveChatActions=function(V){var l=this;V.length&&(this.id!=="creator"&&this.id!=="product-picker"||V.forEach(function(I){(I=l.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",I))&&I.durationSec===I.fullDurationSec&&l.startBubble(l.colorFromDecimal(I.startBackgroundColor))}))};
_.B.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.B.startBubble=function(V){_.i3(this.hostElement,{"--yt-live-chat-monetization-button-glow":V});this.hostElement.setAttribute("bubble","")};
_.B.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.B.colorFromDecimal=function(V){typeof V==="string"&&(V=Number(V));return"rgba("+[V>>16&255,V>>8&255,V&255,(V>>24&255)/255].join()+")"};
var C9=K26;C9.prototype.onAnimationEnd=C9.prototype.onAnimationEnd;C9.prototype.disabledChanged=C9.prototype.disabledChanged;C9.prototype.dataChanged=C9.prototype.dataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],C9.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Pf.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],C9.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],C9.prototype,"data",void 0);_.O([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",Object)],C9.prototype,"id",void 0);_.O([_.q({notify:!0,reflectToAttribute:!0}),_.a("design:type",Object)],C9.prototype,"active",void 0);
_.O([_.q({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.a("design:type",Object)],C9.prototype,"icon",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],C9.prototype,"disabled",void 0);_.O([_.q({computed:"computeShowTooltip(data, disabled)"}),_.a("design:type",Object)],C9.prototype,"showTooltip",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],C9.prototype,"useToggledActiveState",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C9.prototype,"dataChanged",null);_.O([_.b("disabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C9.prototype,"disabledChanged",null);_.O([_.W("animationend"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],C9.prototype,"onAnimationEnd",null);
C9=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],C9);
_.u(C9,"yt-live-chat-icon-toggle-button-renderer",function(){if(N$q===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;wNn===void 0&&(wNn=document.createElement("template"));var H=wNn;I.call(l,H.content.cloneNode(!0),V.content.firstChild);N$q=V}V=N$q;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var jgj;var YL5;var L2M=function(){return _.M.apply(this,arguments)||this};
_.t(L2M,_.M);L2M.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var ePV=L2M;_.O([_.q(),_.a("design:type",Object)],ePV.prototype,"data",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ePV.prototype,"ytRendererstamperBehavior",void 0);ePV=_.O([_.A({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],ePV);
_.u(ePV,"yt-live-chat-message-input-prompt-header-renderer",function(){if(YL5===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;jgj===void 0&&(jgj=document.createElement("template"));var H=jgj;I.call(l,H.content.cloneNode(!0),V.content.firstChild);YL5=V}V=YL5;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var kPp;var F2h;var XNV;var zP6;var yHp;var tP6;var rHV=function(){return _.M.apply(this,arguments)||this};
_.t(rHV,_.M);var GPM=rHV;_.O([_.q(),_.a("design:type",Object)],GPM.prototype,"data",void 0);GPM=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],GPM);
_.u(GPM,"yt-live-chat-message-subtext-renderer",function(){if(tP6===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;yHp===void 0&&(yHp=document.createElement("template"));var H=yHp;I.call(l,H.content.cloneNode(!0),V.content.firstChild);tP6=V}V=tP6;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var EpM=function(){var V=_.M.apply(this,arguments)||this;V.subtextOnBottom=!1;V.buttonOverrides={style:"mono",type:"tonal"};return V};
_.t(EpM,_.M);EpM.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
var a4=EpM;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],a4.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],a4.prototype,"subtextOnBottom",void 0);_.O([_.q(),_.a("design:type",Object)],a4.prototype,"buttonOverrides",void 0);
a4=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],a4);
_.u(a4,"yt-live-chat-message-renderer",function(){if(zP6===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;XNV===void 0&&(XNV=document.createElement("template"));var H=XNV;I.call(l,H.content.cloneNode(!0),V.content.firstChild);zP6=V}V=zP6;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var JHp;var op6;var hP5=function(){var V=_.M.apply(this,arguments)||this;V.isRemovable=!1;V.hasPrefilledText=!1;V.isInputDirty=!1;V.overCharacterLimit=!1;V.underCharacterLimit=!1;V.showErrorMessage=!1;return V};
_.t(hP5,_.M);_.B=hP5.prototype;_.B.computeId=function(){return this.data.id};
_.B.computeInputData=function(){return this.data.inputData};
_.B.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.B.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.B.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.B.getLiveChatRichMessageInput=function(){return _.h(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.B.clearInput=function(){_.h(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.B.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.B.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.B.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.B.handleTextInputCharCountChanged=function(V){V=V.detail&&V.detail.characterCount;V!==void 0&&(this.characterCount=V,V!==0&&(this.isInputDirty=!0))};
_.B.onInputFocusOut=function(){this.isInputDirty=!0};
_.B.onClickCloseButton=function(){_.B$(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
var f9=hP5;f9.prototype.handleTextInputCharCountChanged=f9.prototype.handleTextInputCharCountChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],f9.prototype,"data",void 0);_.O([_.q({computed:"computeId(data.id)"}),_.a("design:type",String)],f9.prototype,"id",void 0);_.O([_.q({computed:"computeInputData(data.inputData)"}),_.a("design:type",Object)],f9.prototype,"inputData",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.a("design:type",Object)],f9.prototype,"isRemovable",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.a("design:type",Object)],f9.prototype,"hasPrefilledText",void 0);_.O([_.q({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.a("design:type",Number)],f9.prototype,"charactersRemaining",void 0);
_.O([_.q(),_.a("design:type",Number)],f9.prototype,"characterCount",void 0);_.O([_.q(),_.a("design:type",Object)],f9.prototype,"isInputDirty",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.a("design:type",Object)],f9.prototype,"overCharacterLimit",void 0);_.O([_.q({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.a("design:type",Object)],f9.prototype,"underCharacterLimit",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.a("design:type",Object)],f9.prototype,"showErrorMessage",void 0);_.O([_.W("yt-live-chat-text-input-field-renderer-character-count-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],f9.prototype,"handleTextInputCharCountChanged",null);
f9=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],f9);
_.u(f9,"yt-live-chat-poll-editor-input",function(){if(op6===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;JHp===void 0&&(JHp=document.createElement("template"));var H=JHp;I.call(l,H.content.cloneNode(!0),V.content.firstChild);op6=V}V=op6;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var P4M;var D3C;var ZGh={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},SL5=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("web_button_rework_with_live");V.closeButtonOverrides={iconPosition:"icon-only"};V.startButtonOverrides={style:"mono",type:"filled"};V.addOptionButtonOverrides={style:"mono",type:"text"};return V};
_.t(SL5,_.M);_.B=SL5.prototype;
_.B.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"}}}}};
_.B.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var V;_.y((V=this.data)==null?void 0:V.startButton,_.RG)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.B.computeId=function(){return this.data&&this.data.id||""};
_.B.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.B.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.B.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.B.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.B.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var V=0;V<this.pollEditorInfoWithDefaults.minPollOptions;V++)this.addPollOptionData()};
_.B.getIsValidPoll=function(){var V=this;if(!this.pollEditorInfoWithDefaults)return!1;var l=this.pollEditorInfoWithDefaults,I=l.minPollOptionChars,H=l.maxPollOptionChars,T=l.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>l.maxPollQuestionChars)return!1;l=_.h(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(l).every(function(x,n){x=x.characterCount;!x&&T[n]&&(x=V.ytRendererBehavior.getSimpleString(T[n]).length);return x!==void 0&&x>=I&&x<=H})};
_.B.isValidPollChanged=function(){var V;_.y((V=this.data)==null?void 0:V.startButton,_.RG)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.B.addPollOptionData=function(){var V=this.pollEditorInfoWithDefaults,l=V.maxPollOptionChars,I=V.optionPlaceholderText,H=V.customOptionPlaceholderText,T=V.pollOptionData;this.currentNumPollOptions>=V.maxPollOptions||(V={liveChatPollOptionInput:{inputData:{placeholder:H[this.currentNumPollOptions]||I,maxCharacterLimit:l},maxCharacterLimit:l,minCharacterLimit:V.minPollOptionChars,hasPrefilledText:!!H[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=V.minPollOptions}},T.charCountErrorText&&
(V.liveChatPollOptionInput.charCountErrorText=T.charCountErrorText),T.charsRemainingAltLabel&&(V.liveChatPollOptionInput.charsRemainingAltLabel=T.charsRemainingAltLabel),T.removeOptionAltText&&(V.liveChatPollOptionInput.removeOptionAltText=T.removeOptionAltText),this.push("pollOptionsData",V),T=Array.from(_.h(_.h(this.hostElement).querySelector("#poll-options")).children),T.forEach(function(x,n){x.polymerController.set("data.id",n)}),_.h(T[T.length-1]).querySelector("#input").focus())};
_.B.getPollOptionInputValues=function(){var V=this,l=[],I=_.h(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),H=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(I).forEach(function(T,x){var n=null;T=T.getLiveChatRichMessageInput();var w;(T==null?0:(w=T.textSegments)==null?0:w.length)?n=_.hU(T):H[x]&&(n=V.formattedStringToLiveChatRichMessageInput(H[x]));l.push(n)});
return l};
_.B.requestCreateAndStartPoll=function(V){var l=this.getPollOptionInputValues();if(!l.some(function(H){return!H})){l={optionText:l};
var I=_.h(_.h(this.hostElement).querySelector("#poll-question")).firstChild;I&&I.liveChatRichMessageInput&&(l.questionText=_.hU(I.liveChatRichMessageInput));_.$B(this.hostElement,[V,l])}};
_.B.selectedChanged=function(){if(this.selected){var V=_.h(_.h(this.hostElement).querySelector("#start-button")).firstElementChild;if(V){var l;(l=_.h(V).querySelector("#button")||_.aQ(V).querySelector("button"))==null||l.focus()}}};
_.B.handleTextInputChanged=function(V){var l;((l=V.target)==null?void 0:l.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=V.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.B.handleStartButtonAction=function(V){V.detail.actionName==="yt-service-request"&&(V.stopPropagation(),(V=V.detail.args[1])&&this.requestCreateAndStartPoll(V))};
_.B.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.B.handleServiceRequestCompleted=function(V){this.createPollRequestInFlight=!1;(V=V.detail&&V.detail.data)&&V.success&&(_.B$(this.hostElement,"picker-cancelled"),_.xB(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.B.onCloseClick=function(){_.B$(this.hostElement,"picker-cancelled");_.xB(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.B.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.B.handlePollEditorInputClosed=function(V){var l=this.pollOptionsData.findIndex(function(I){return I.liveChatPollOptionInput.id===V.detail.id});
this.splice("pollOptionsData",l,1);this.isValidPoll=this.getIsValidPoll()};
_.B.onPickerCancelled=function(){this.reset()};
_.B.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var V=_.h(_.h(this.hostElement).querySelector("#poll-question")).firstChild;V&&V.setLiveChatRichMessageInput(null);if(V=_.h(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){V=_.U(Array.from(V));for(var l=V.next();!l.done;l=V.next())l.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.B.formattedStringToLiveChatRichMessageInput=function(V){return V.simpleText?{text_segments:[V.simpleText]}:{text_segments:V.runs}};
_.vI.Object.defineProperties(SL5.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(ZGh,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
var gH=SL5;gH.prototype.onPickerCancelled=gH.prototype.onPickerCancelled;gH.prototype.handlePollEditorInputClosed=gH.prototype.handlePollEditorInputClosed;gH.prototype.handleServiceRequestCompleted=gH.prototype.handleServiceRequestCompleted;gH.prototype.handleServiceRequestSent=gH.prototype.handleServiceRequestSent;gH.prototype.handleTextInputChanged=gH.prototype.handleTextInputChanged;gH.prototype.selectedChanged=gH.prototype.selectedChanged;gH.prototype.isValidPollChanged=gH.prototype.isValidPollChanged;
gH.prototype.shouldInitializePollChanged=gH.prototype.shouldInitializePollChanged;gH.prototype.dataChanged=gH.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],gH.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gH.prototype,"modern",void 0);
_.O([_.q(),_.a("design:type",Object)],gH.prototype,"closeButtonOverrides",void 0);_.O([_.q(),_.a("design:type",Object)],gH.prototype,"startButtonOverrides",void 0);_.O([_.q(),_.a("design:type",Object)],gH.prototype,"addOptionButtonOverrides",void 0);_.O([_.q({computed:"computeId(data.id)",reflectToAttribute:!0}),_.a("design:type",String)],gH.prototype,"id",void 0);_.O([_.q({value:function(){return[]}}),
_.a("design:type",Array)],gH.prototype,"pollOptionsData",void 0);_.O([_.Q("pollEditorInfoWithDefaults"),_.a("design:type",Object),_.a("design:paramtypes",[])],gH.prototype,"pollQuestionData",null);_.O([_.q({value:0}),_.a("design:type",Number)],gH.prototype,"pollQuestionCharacterCount",void 0);_.O([_.Q("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.a("design:type",Object),_.a("design:paramtypes",[])],gH.prototype,"pollQuestionCharactersRemaining",null);
_.O([_.q({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.a("design:type",Boolean)],gH.prototype,"overQuestionCharacterLimit",void 0);_.O([_.Q("data.pollEditorInfo"),_.a("design:type",Object),_.a("design:paramtypes",[])],gH.prototype,"pollEditorInfoWithDefaults",null);_.O([_.q({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.a("design:type",Number)],gH.prototype,"currentNumPollOptions",void 0);
_.O([_.q({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.a("design:type",Boolean)],gH.prototype,"hasMaxNumPollOptions",void 0);_.O([_.Q("pollEditorInfoWithDefaults","pollOptionsData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gH.prototype,"shouldInitializePoll",null);_.O([_.q(),_.a("design:type",Object)],gH.prototype,"isValidPoll",void 0);
_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],gH.prototype,"createPollRequestInFlight",void 0);_.O([_.q(),_.a("design:type",Object)],gH.prototype,"selected",void 0);_.O([_.q({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.a("design:type",Boolean)],gH.prototype,"showQuestionErrorMessage",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gH.prototype,"dataChanged",null);_.O([_.b("shouldInitializePoll"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gH.prototype,"shouldInitializePollChanged",null);_.O([_.b("isValidPoll"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gH.prototype,"isValidPollChanged",null);
_.O([_.b("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gH.prototype,"selectedChanged",null);_.O([_.W("yt-live-chat-text-input-field-renderer-character-count-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],gH.prototype,"handleTextInputChanged",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gH.prototype,"handleServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],gH.prototype,"handleServiceRequestCompleted",null);
_.O([_.W("yt-live-chat-poll-editor-input-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],gH.prototype,"handlePollEditorInputClosed",null);_.O([_.W("picker-cancelled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gH.prototype,"onPickerCancelled",null);gH=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],gH);
_.u(gH,"yt-live-chat-poll-editor-panel-renderer",function(){if(D3C===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;P4M===void 0&&(P4M=document.createElement("template"));var H=P4M;I.call(l,H.content.cloneNode(!0),V.content.firstChild);D3C=V}V=D3C;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var RPV;var QgV;var cH5=function(){return _.M.apply(this,arguments)||this};
_.t(cH5,_.M);cH5.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
cH5.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.vI.Object.defineProperties(cH5.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var V,l;return(V=this.data)==null?void 0:(l=V.title)==null?void 0:l.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var V;return _.to((V=this.data)==null?void 0:V.onTapCommand)}}});
var mt=cH5;_.O([_.R(_.Uf.YtEndpointBehavior),_.a("design:type",Object)],mt.prototype,"ytEndpointBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],mt.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],mt.prototype,"itemId",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],mt.prototype,"hasPromotion",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],mt.prototype,"innertubeCommand",null);mt=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],mt);
_.u(mt,"yt-live-chat-product-picker-panel-item-view-model",function(){if(QgV===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;RPV===void 0&&(RPV=document.createElement("template"));var H=RPV;I.call(l,H.content.cloneNode(!0),V.content.firstChild);QgV=V}V=QgV;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var W2q;var bGO;var qLq=function(){var V=_.M.apply(this,arguments)||this;V.id="product-picker";V.selected=!1;V.closeButtonId="close-button";V.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return V};
_.t(qLq,_.M);_.B=qLq.prototype;_.B.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.B.observeSelected=function(){this.selected&&this.hostElement.focus();var V=_.h(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");V.length&&V[0].focus()};
_.B.onCloseBuyFlow=function(){_.B$(this.hostElement,"picker-cancelled")};
_.B.onCloseClick=function(){_.B$(this.hostElement,"picker-cancelled");var V;((V=this.data)==null?0:V.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.y(this.data.closeButton,_.Gb))};
_.B.onCloseEngageWithAudienceEditorPanels=function(){_.B$(this.hostElement,"picker-cancelled")};
var iq=qLq;iq.prototype.observeSelected=iq.prototype.observeSelected;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],iq.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],iq.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],iq.prototype,"id",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],iq.prototype,"selected",void 0);_.O([_.q(),_.a("design:type",Object)],iq.prototype,"closeButtonId",void 0);_.O([_.b("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iq.prototype,"observeSelected",null);
iq=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],iq);
_.u(iq,"yt-live-chat-product-picker-panel-view-model",function(){if(bGO===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;W2q===void 0&&(W2q=document.createElement("template"));var H=W2q;I.call(l,H.content.cloneNode(!0),V.content.firstChild);bGO=V}V=bGO;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var MPq;var sgq;var pNd=function(){var V=_.M.apply(this,arguments)||this;V.iconId="";V.icon="";V.disabled=!1;V.systemIcons=_.z("kevlar_system_icons");return V};
_.t(pNd,_.M);_.B=pNd.prototype;_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.B.computeIconId=function(V){return V&&V.icon&&V.icon.iconType?V.icon.iconType.toLowerCase():""};
_.B.computeIcon=function(V){return V&&V.icon&&V.icon.iconType?(V=V.icon.iconType.toLowerCase(),(V.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+V):""};
_.B.computeDisabled=function(V){return!!V};
_.B.computeCommand=function(V,l){return l?void 0:V};
_.B.computeTooltip=function(V,l){return l&&V?V:""};
_.B.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
var VS=pNd;_.O([_.R(_.Uf.YtEndpointBehavior),_.a("design:type",Object)],VS.prototype,"ytEndpointBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],VS.prototype,"data",void 0);_.O([_.q({computed:"computeIconId(data)",reflectToAttribute:!0}),_.a("design:type",Object)],VS.prototype,"iconId",void 0);
_.O([_.q({computed:"computeIcon(data)",reflectToAttribute:!0}),_.a("design:type",Object)],VS.prototype,"icon",void 0);_.O([_.q({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.a("design:type",Object)],VS.prototype,"disabled",void 0);_.O([_.q({computed:"computeCommand(data.command, disabled)"}),_.a("design:type",Object)],VS.prototype,"command",void 0);_.O([_.q({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.a("design:type",String)],VS.prototype,"tooltip",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VS.prototype,"systemIcons",void 0);VS=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],VS);
_.u(VS,"yt-live-chat-product-button-renderer",function(){if(sgq===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;MPq===void 0&&(MPq=document.createElement("template"));var H=MPq;I.call(l,H.content.cloneNode(!0),V.content.firstChild);sgq=V}V=sgq;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var AHx;var umd;var vp5=function(){var V=_.M.apply(this,arguments)||this;V.selected=!1;V.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return V};
_.t(vp5,_.M);_.B=vp5.prototype;_.B.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"}}}};
_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.B.computeId=function(V){return V.id||""};
_.B.onCloseClick=function(){_.B$(this.hostElement,"picker-cancelled")};
_.B.observeSelected=function(){this.selected&&this.hostElement.focus();var V=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");V.length&&V[0].focus()};
_.B.onCloseBuyFlow=function(){_.B$(this.hostElement,"picker-cancelled")};
_.B.onCloseEngageWithAudienceEditorPanels=function(){_.B$(this.hostElement,"picker-cancelled")};
var l0=vp5;l0.prototype.observeSelected=l0.prototype.observeSelected;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],l0.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],l0.prototype,"data",void 0);
_.O([_.q({computed:"computeId(data)",reflectToAttribute:!0}),_.a("design:type",String)],l0.prototype,"id",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],l0.prototype,"selected",void 0);_.O([_.b("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],l0.prototype,"observeSelected",null);l0=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],l0);
_.u(l0,"yt-live-chat-product-picker-renderer",function(){if(umd===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;AHx===void 0&&(AHx=document.createElement("template"));var H=AHx;I.call(l,H.content.cloneNode(!0),V.content.firstChild);umd=V}V=umd;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var OGY;var C4q;var a3q;var f3q;var gpq=function(){return _.M.apply(this,arguments)||this};
_.t(gpq,_.M);gpq.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()};
gpq.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
gpq.prototype.created=function(){this.ids={background:_.rz(),maskOne:_.rz(),maskTwo:_.rz(),gradient:_.rz(),largeBackground:_.rz(),largeGradientOne:_.rz(),largeGradientTwo:_.rz(),largeGradientPath:_.rz()}};
var Io=gpq;Io.prototype.maybeLoadAnimationBackground=Io.prototype.maybeLoadAnimationBackground;_.O([_.q({value:!1}),_.a("design:type",Boolean)],Io.prototype,"useLargeBackground",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Io.prototype,"useAnimationBackground",void 0);_.O([_.q({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.a("design:type",Boolean)],Io.prototype,"useRegularBackground",void 0);
_.O([_.q(),_.a("design:type",Object)],Io.prototype,"ids",void 0);_.O([_.q(),_.a("design:type",Object)],Io.prototype,"lottieAnimation",void 0);_.O([_.Ij("#animation-background"),_.a("design:type",HTMLDivElement)],Io.prototype,"animationBackground",void 0);_.O([_.b("useAnimationBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Io.prototype,"maybeLoadAnimationBackground",null);
Io=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Io);
_.u(Io,"yt-live-interactivity-component-background",function(){if(f3q===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;a3q===void 0&&(a3q=document.createElement("template"));var H=a3q;I.call(l,H.content.cloneNode(!0),V.content.firstChild);f3q=V}V=f3q;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var m3q=function(){var V=_.M.apply(this,arguments)||this;V.characterCount=0;V.showInputErrorMessage=!1;V.startQnaRequestInFlight=!1;V.modern=_.z("web_button_rework_with_live");V.buttonOverrides={style:"mono",type:"filled"};V.closeButtonOverrides={iconPosition:"icon-only"};V.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return V};
_.t(m3q,_.M);_.B=m3q.prototype;
_.B.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]]"}}}}}};
_.B.onCharacterCountChanged=function(V){var l,I,H,T,x=(I=_.y(this==null?void 0:(l=this.data)==null?void 0:l.creatorCallForQuestions,x0O))==null?void 0:(H=I.inputField)==null?void 0:(T=H.liveChatTextInputFieldRenderer)==null?void 0:T.maxCharacterLimit,n,w;x!=null&&(V==null?void 0:(n=V.detail)==null?void 0:n.characterCount)!=null&&_.y(this==null?void 0:(w=this.data)==null?void 0:w.startButton,_.RG)&&(l=V.detail.characterCount>x,this.set("data.startButton.buttonRenderer.isDisabled",V.detail.characterCount===
0||l),this.showInputErrorMessage=l)};
_.B.onCloseClick=function(){_.B$(this.hostElement,"picker-cancelled");_.xB(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.B.onPickerCancelled=function(){var V=_.h(this.hostElement).querySelector("#qna-creator-text-input-field");V&&V.setLiveChatRichMessageInput(null)};
_.B.handleOpenQnaStartPanel=function(){var V=_.h(this.hostElement).querySelector("#qna-creator-text-input-field");V&&V.focus()};
_.B.handleStartButtonAction=function(V){var l=this;if(V.detail.actionName==="yt-service-request"&&(V.stopPropagation(),V=V.detail.args[1])){var I=_.h(this.hostElement).querySelector("#qna-creator-text-input-field"),H;(I==null?0:(H=I.liveChatRichMessageInput)==null?0:H.textSegments)&&I.liveChatRichMessageInput.textSegments.length!==0&&(H={rich_message:_.hU(I.liveChatRichMessageInput)},_.$B(this.hostElement,[V,H]).then(function(){_.B$(l.hostElement,"picker-cancelled")}))}};
_.B.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.B.handleServiceRequestCompleted=function(V){var l;V=V==null?void 0:(l=V.detail)==null?void 0:l.data;(V==null?0:V.actions)&&V.actions.length>0?this.startQnaRequestInFlight=!1:_.xB(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.B.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
var H3=m3q;H3.prototype.handleServiceRequestError=H3.prototype.handleServiceRequestError;H3.prototype.handleServiceRequestCompleted=H3.prototype.handleServiceRequestCompleted;H3.prototype.handleServiceRequestSent=H3.prototype.handleServiceRequestSent;H3.prototype.onPickerCancelled=H3.prototype.onPickerCancelled;H3.prototype.onCharacterCountChanged=H3.prototype.onCharacterCountChanged;_.O([_.q(),_.a("design:type",Object)],H3.prototype,"characterCount",void 0);
_.O([_.q(),_.a("design:type",Object)],H3.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],H3.prototype,"showInputErrorMessage",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],H3.prototype,"startQnaRequestInFlight",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],H3.prototype,"modern",void 0);_.O([_.q(),_.a("design:type",Object)],H3.prototype,"buttonOverrides",void 0);
_.O([_.q(),_.a("design:type",Object)],H3.prototype,"closeButtonOverrides",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],H3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.hM),_.a("design:type",Object)],H3.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.R(_.cQ.YtLiveChatItemBehavior),_.a("design:type",_.WQ)],H3.prototype,"ytLiveChatItemBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],H3.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W("yt-live-chat-text-input-field-renderer-character-count-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],H3.prototype,"onCharacterCountChanged",null);_.O([_.W("picker-cancelled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H3.prototype,"onPickerCancelled",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H3.prototype,"handleServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],H3.prototype,"handleServiceRequestCompleted",null);
_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],H3.prototype,"handleServiceRequestError",null);H3=_.O([_.A({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],H3);
_.u(H3,"yt-live-chat-qna-start-panel-renderer",function(){if(C4q===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;OGY===void 0&&(OGY=document.createElement("template"));var H=OGY;I.call(l,H.content.cloneNode(!0),V.content.firstChild);C4q=V}V=C4q;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var iG5;var Vkq;var llp=function(){return _.M.apply(this,arguments)||this};
_.t(llp,_.M);llp.prototype.dismiss=function(){_.B$(this.hostElement,"yt-live-chat-error-message-dismiss")};
llp.prototype.edit=function(){_.B$(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
var Il5=llp;_.O([_.q(),_.a("design:type",Object)],Il5.prototype,"data",void 0);Il5=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Il5);
_.u(Il5,"yt-live-chat-text-actions-error-message-renderer",function(){if(Vkq===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;iG5===void 0&&(iG5=document.createElement("template"));var H=iG5;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Vkq=V}V=Vkq;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var HSO;var ToV;var Bod;var xx5;var Tl=function(){var V=_.M.apply(this,arguments)||this;V.isDarkTheme=document.documentElement.hasAttribute("dark");V.newnessDotEligible=!1;return V};
_.t(Tl,_.M);Tl.prototype.sendReaction=function(){var V,l,I=((V=this.data)==null?void 0:V.emojiId)||((l=this.data)==null?void 0:l.emoteId),H;I&&((H=this.data)==null?0:H.shouldTriggerAnimation)&&_.xB(this.hostElement,"yt-create-user-reaction-animation",[I]);var T;(V=_.to((T=this.data)==null?void 0:T.onTap))&&_.IN(V,this.hostElement);this.showNewnessDot&&_.xB(this.hostElement,"yt-hide-newness-dot")};
Tl.prototype.onClick=function(V){(!V||V.clientX||V.clientY)&&this.sendReaction()};
Tl.prototype.onKeyDown=function(V){V.key!=="Enter"&&V.key!==" "||V.repeat||this.sendReaction()};
_.vI.Object.defineProperties(Tl.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var V,l;return!!(((V=this.data)==null?0:V.emojiId)||((l=this.data)==null?0:l.emoteId))}}});
var B3=Tl;_.O([_.q(),_.a("design:type",Object)],B3.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],B3.prototype,"isDarkTheme",void 0);_.O([_.q(),_.a("design:type",Object)],B3.prototype,"newnessDotEligible",void 0);_.O([_.Q("data.maybeShowNewnessDot"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],B3.prototype,"showNewnessDot",null);
_.O([_.Q("data.emojiId","data.emoteId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],B3.prototype,"useYtImage",null);B3=_.O([_.Lm({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],B3);
_.u(B3,"yt-reaction-control-panel-button-view-model",function(){if(xx5===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Bod===void 0&&(Bod=document.createElement("template"));var H=Bod;I.call(l,H.content.cloneNode(!0),V.content.firstChild);xx5=V}V=xx5;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var Ux5;var nwp;var $xj=function(){var V=_.M.apply(this,arguments)||this;V.reactionControlPanelExpanded=!1;V.isDarkTheme=document.documentElement.hasAttribute("dark");V.newnessDotEligible=!1;return V};
_.t($xj,_.M);_.B=$xj.prototype;_.B.expandedButtonsChanged=function(){var V,l;_.i3(this.hostElement,{"--expanded-buttons-height":((l=(V=this.expandedButtonsData)==null?void 0:V.length)!=null?l:0)*36+"px"})};
_.B.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}}};
_.B.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.B.onMouseLeave=function(){var V=this;this.collapseTimer=setTimeout(function(){V.reactionControlPanelExpanded=!1},500)};
_.B.onFocusIn=function(){this.onMouseEnter()};
_.B.onFocusOut=function(){this.onMouseLeave()};
_.B.onCollapsedButtonFocusIn=function(){var V=this;setTimeout(function(){var l;(l=V.expandedButtons.querySelector("button"))==null||l.focus()},100)};
_.B.onCollapsedButtonFocusOut=function(V){V.stopPropagation()};
_.vI.Object.defineProperties($xj.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var V,l;return _.EL.unsafeClone((V=this.liveReactionsData)==null?void 0:V.emojiButtonData)||((l=this.data)==null?void 0:l.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var V;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((V=this.data)==null||!V.maybeShowNewnessDot)}}});
var xO=$xj;xO.prototype.expandedButtonsChanged=xO.prototype.expandedButtonsChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.hM),_.a("design:type",Object)],xO.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],xO.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xO.prototype,"reactionControlPanelExpanded",void 0);_.O([_.q({selectorArgs:["data.liveReactionsDataEntityKey"],selector:SPM}),_.a("design:type",Object)],xO.prototype,"liveReactionsData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xO.prototype,"isDarkTheme",void 0);_.O([_.q(),_.a("design:type",Object)],xO.prototype,"newnessDotEligible",void 0);
_.O([_.Q("liveReactionsData","data.expandedButtons"),_.a("design:type",Object),_.a("design:paramtypes",[])],xO.prototype,"expandedButtonsData",null);_.O([_.Q("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.q({reflectToAttribute:!0}),_.a("design:type",Object),_.a("design:paramtypes",[])],xO.prototype,"showNewnessDot",null);_.O([_.Ij("#expanded-buttons"),_.a("design:type",HTMLElement)],xO.prototype,"expandedButtons",void 0);
_.O([_.b("expandedButtonsData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xO.prototype,"expandedButtonsChanged",null);xO=_.O([_.Lm({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],xO);
_.u(xO,"yt-reaction-control-panel-view-model",function(){if(nwp===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Ux5===void 0&&(Ux5=document.createElement("template"));var H=Ux5;I.call(l,H.content.cloneNode(!0),V.content.firstChild);nwp=V}V=nwp;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var UU=new _.h2("yt-live-chat"),dxV=Date.parse("2024-7-24"),wvj=function(){var V=_.M.apply(this,arguments)||this;V.emojiManager=_.Q2;V.newnessDotEligible=!1;V.newnessDotImpressionCounted=!1;V.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return V};
_.t(wvj,_.M);_.B=wvj.prototype;_.B.emojiCustomizationEnabledChanged=function(){var V;((V=this.data)==null?0:V.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((V=UU.getCreationTime("emoji-customization-count"))&&V<dxV&&UU.set("emoji-customization-count","0"),V=Number(UU.get("emoji-customization-count"))||0,V<3&&(this.newnessDotEligible=!0,UU.set("emoji-customization-count",(V+1).toString())),this.newnessDotImpressionCounted=!0)};
_.B.hideNewnessDot=function(){this.newnessDotEligible=!1;UU.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.B.handleReactionsMute=function(V){var l=_.oa(),I=_.eU(206221),H={checkboxData:{state:V?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};l&&_.uJ(l,I,H);this.reactionsMuted=V};
_.B.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.B.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}}};
_.vI.Object.defineProperties(wvj.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var V;return(!((V=this.liveReactionsData)==null||!V.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
var nr=wvj;nr.prototype.liveReactionsSettingChanged=nr.prototype.liveReactionsSettingChanged;nr.prototype.emojiCustomizationEnabledChanged=nr.prototype.emojiCustomizationEnabledChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.hM),_.a("design:type",Object)],nr.prototype,"ytLiveChatReduxBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],nr.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],nr.prototype,"data",void 0);_.O([_.q(),_.a("design:type",_.Z6)],nr.prototype,"emojiManager",void 0);_.O([_.q(),_.a("design:type",Object)],nr.prototype,"newnessDotEligible",void 0);_.O([_.q(),_.a("design:type",Object)],nr.prototype,"newnessDotImpressionCounted",void 0);
_.O([_.q({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:RBf}),_.a("design:type",Boolean)],nr.prototype,"liveReactionsSetting",void 0);_.O([_.q({selectorArgs:["data.liveReactionsDataEntityKey"],selector:SPM}),_.a("design:type",Object)],nr.prototype,"liveReactionsData",void 0);_.O([_.q({value:function(){var V=_.z("enable_lwe_web_mute"),l=UU.get("allow-reactions");return l===void 0?!1:!l&&V}}),
_.a("design:type",Boolean)],nr.prototype,"reactionsMuted",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],nr.prototype,"liveReactionsEnabled",null);_.O([_.b("data.emojiCustomizationEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nr.prototype,"emojiCustomizationEnabledChanged",null);
_.O([_.b("liveReactionsEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nr.prototype,"liveReactionsSettingChanged",null);nr=_.O([_.Lm({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],nr);
_.u(nr,"yt-reaction-control-panel-overlay-view-model",function(){if(ToV===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;HSO===void 0&&(HSO=document.createElement("template"));var H=HSO;I.call(l,H.content.cloneNode(!0),V.content.firstChild);ToV=V}V=ToV;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var NoO={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(V){var l=this.$.pickers.selected;if(l){_.h(this.hostElement).removeAttribute(l+"-open");var I="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(I="#picker-buttons",l==="emoji"&&_.h(this.hostElement).querySelector("#emoji-picker-button")&&(I="#emoji-picker-button"));if(I=_.h(this.hostElement).querySelector(I).querySelector("#"+l))I.active=!1}I=V;l==V&&(I=null);l!=V&&
_.h(this.hostElement).setAttribute(V+"-open","");this.$.pickers.selected=I;_.xB(this.hostElement,"yt-live-chat-picker-changed",[I])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var KFp=function(){var V=_.M.apply(this,arguments)||this;V.numSentMessages=0;V.timeoutDurationMs=0;V.timeoutMs=0;V.lastTimeoutTimeMs=0;V.pendingMessageId="";V.hasFiredInitialFocusActions=!1;V.isBeforeFocusEnabled=!0;V.id="";V.characterCount=0;V.maxCharacterLimit=0;V.remainingCharacterCount=0;V.inputExpanded=!1;V.buttonOverrides={iconPosition:"icon-only"};V.inReplyPanel=!1;V.countdownRatio=0;V.isTooltipVisible=!1;V.tooltipTimeout=1E4;V.systemIcons=_.z("kevlar_system_icons");V.tallerEmojiPicker=_.z("live_chat_taller_emoji_picker");
V.blockSendMessageWithCountdown=!_.z("live_chat_enable_send_button_in_slow_mode");V.sendReplyMessageInFlight=!1;V.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"};V.onResize=function(){V.maybeToggleCharacterCount()};
return V};
_.t(KFp,_.M);_.B=KFp.prototype;
_.B.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"}}}};
_.B.attached=function(){window.addEventListener("resize",this.onResize)};
_.B.detached=function(){window.removeEventListener("resize",this.onResize)};
_.B.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.B.sendMessage=function(){var V=this,l,I,H,T;return _.d(function(x){if(V.sendDisabled)return x.return();V.isTooltipVisible&&_.xB(V.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(V.data.sendButton&&V.data.sendButton.buttonRenderer){V.input.completeEmojis();l=V.data.sendButton.buttonRenderer.serviceEndpoint;if(!l)return x.return();H=((I=_.y(l,_.UA0))==null?void 0:I.clientIdPrefix)||"";T={client_message_id:H+String(V.numSentMessages++),rich_message:_.hU(V.input.liveChatRichMessageInput)};
V.pendingMessageId=T.client_message_id;V.inReplyPanel&&(V.sendReplyMessageInFlight=!0);_.$B(V.hostElement,[l,T]);V.input.setLiveChatRichMessageInput(null)}_.FU(x)})};
_.B.handleSendButtonAction=function(V){V.detail.actionName==="yt-service-request"&&(V.stopPropagation(),this.sendMessage())};
_.B.onSendCompleted=function(V,l){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(V=this.get("timeoutDurationUsec",l.data))&&this.handleTimeout(Number(V)/1E3);this.errorMessage=this.get("errorMessage",l.data);this.pendingMessageId=""};
_.B.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.xB(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.B.handlePickerButtonToggle=function(V){V=V.detail.targetId;this.ytPickerBehavior.togglePicker_(V);if(V==="emoji")this.input.focus();else if(V==="qna-start-panel"){var l,I;(l=_.h(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(I=l.querySelector("#qna-creator-text-input-field"))==null||I.focus()}};
_.B.onComponentReplaced=function(V){var l,I;V.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((l=V.replacement.liveChatMessageInputRenderer)==null?0:(I=l.headerRenderer)==null?0:I.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.B.onEmojiSelect=function(V){this.input.focus();this.input.insertEmoji(V.detail)};
_.B.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.B.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.xB(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.xB(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.B.onOpenPopupAction=function(V,l){var I=this;l===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.xB(I.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.B.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.B.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.B.focusChanged=function(){this.maybeToggleCharacterCount()};
_.B.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var V=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",V>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.B.computeId=function(){return this.data&&this.data.targetId||""};
_.B.computeSendDisabled=function(V,l,I,H){V=!!(this.blockSendMessageWithCountdown&&I||!V||l&&V>l||H);(l=_.h(this.hostElement).querySelector("#send-button"))&&l.children.length&&(l.children[0].disabled=V);return V};
_.B.handleTimeout=function(V){this.timeoutDurationMs=this.timeoutMs=V;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.B.updateTimeout=function(V){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(V-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=V,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.B.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.B.onErrorMessageEdit=function(V){this.input.setLiveChatRichMessageInput(V.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.B.errorMessageChanged=function(){var V=this;_.r_(function(){_.xB(V.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.B.computeAuthorNameColor=function(V){var l;if(_.z("live_chat_author_name_color_usernames")&&(V==null?0:(l=V.authorName)==null?0:l.simpleText))return _.wgt(_.NZ1(V.authorName.simpleText));if(_.z("live_chat_seed_color_usernames")&&(V==null?0:V.authorSeedColorArgb))return _.wgt(_.fm(V.authorSeedColorArgb));if(_.z("live_chat_colored_usernames"))return"#cc0000";var I;return _.z("live_chat_simple_color_usernames")&&(V==null?0:(I=V.authorName)==null?0:I.simpleText)&&(V==null?0:V.authorUsernameColorLight)&&
(V==null?0:V.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.fm(V.authorUsernameColorDark):_.fm(V.authorUsernameColorLight):""};
_.B.onIsTooltipVisibleChanged=function(){var V=_.h(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){V.hidden=!1;V.setAttribute("role","alert")},0):(V.hidden=!0,V.removeAttribute("role"))};
_.B.onFocusedChanged=function(V){this.inputFocused=V.detail.value};
_.vI.Object.defineProperties(KFp.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 V;return!((V=this.data)==null||!V.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:(l=V.pickers)==null?void 0:l.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var V=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return V?this.ytRendererBehavior.getSimpleString(V):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
var $O=KFp;$O.prototype.onIsTooltipVisibleChanged=$O.prototype.onIsTooltipVisibleChanged;$O.prototype.errorMessageChanged=$O.prototype.errorMessageChanged;$O.prototype.onErrorMessageEdit=$O.prototype.onErrorMessageEdit;$O.prototype.onErrorMessageDismiss=$O.prototype.onErrorMessageDismiss;$O.prototype.focusChanged=$O.prototype.focusChanged;$O.prototype.characterCountChanged=$O.prototype.characterCountChanged;$O.prototype.onEmojiSelect=$O.prototype.onEmojiSelect;
$O.prototype.handlePickerButtonToggle=$O.prototype.handlePickerButtonToggle;$O.prototype.onSendError=$O.prototype.onSendError;$O.prototype.onSendCompleted=$O.prototype.onSendCompleted;$O.prototype.sendMessage=$O.prototype.sendMessage;$O.prototype.dataChanged=$O.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],$O.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(NoO.YtPickerBehavior),_.a("design:type",Object)],$O.prototype,"ytPickerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.Pf.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],$O.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$O.prototype,"hasFiredInitialFocusActions",void 0);
_.O([_.q(),_.a("design:type",Object)],$O.prototype,"isBeforeFocusEnabled",void 0);_.O([_.q(),_.a("design:type",Object)],$O.prototype,"data",void 0);_.O([_.q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",Object)],$O.prototype,"id",void 0);_.O([_.q(),_.a("design:type",Object)],$O.prototype,"characterCount",void 0);_.O([_.q(),_.a("design:type",Object)],$O.prototype,"maxCharacterLimit",void 0);
_.O([_.q(),_.a("design:type",Object)],$O.prototype,"remainingCharacterCount",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$O.prototype,"inputExpanded",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],$O.prototype,"inputFocused",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],$O.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.O([_.q(),_.a("design:type",_.MX)],$O.prototype,"participantsManager",void 0);
_.O([_.q(),_.a("design:type",Object)],$O.prototype,"buttonOverrides",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$O.prototype,"inReplyPanel",void 0);_.O([_.Q("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$O.prototype,"sendDisabled",null);_.O([_.q(),_.a("design:type",Object)],$O.prototype,"countdownRatio",void 0);
_.O([_.Q("countdownRatio"),_.a("design:type",Number),_.a("design:paramtypes",[])],$O.prototype,"countdownStrokeDashOffset",null);_.O([_.Q("countdownRatio"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$O.prototype,"countdownActive",null);_.O([_.Q("data.interactionMessage"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$O.prototype,"hasInteractionMessage",null);
_.O([_.Q("data.emojiPickerButton"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$O.prototype,"hasEmojiPickerButton",null);_.O([_.Q("data, characterCount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$O.prototype,"showAvatar",null);_.O([_.Q("data.pickers"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$O.prototype,"hasProductPickerPanelViewModel",null);
_.O([_.q(),_.a("design:type",Object)],$O.prototype,"errorMessage",void 0);_.O([_.q(),_.a("design:type",Object)],$O.prototype,"genericErrorMessage",void 0);_.O([_.q(),_.a("design:type",Object)],$O.prototype,"isTooltipVisible",void 0);_.O([_.q(),_.a("design:type",Object)],$O.prototype,"tooltipTimeout",void 0);_.O([_.Q("data.onInitialFocusCommand"),_.a("design:type",String),_.a("design:paramtypes",[])],$O.prototype,"tooltipMessage",null);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$O.prototype,"systemIcons",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$O.prototype,"tallerEmojiPicker",void 0);_.O([_.Q("data"),_.a("design:type",String),_.a("design:paramtypes",[])],$O.prototype,"authorNameColor",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$O.prototype,"blockSendMessageWithCountdown",void 0);_.O([_.q(),_.a("design:type",Object)],$O.prototype,"sendReplyMessageInFlight",void 0);
_.O([_.Ij("#input"),_.a("design:type",_.M4W)],$O.prototype,"input",void 0);_.O([_.Ij("#count"),_.a("design:type",HTMLElement)],$O.prototype,"count",void 0);_.O([_.Ij("#input-container"),_.a("design:type",HTMLElement)],$O.prototype,"inputContainer",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$O.prototype,"dataChanged",null);
_.O([_.W("yt-live-chat-send-message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],$O.prototype,"sendMessage",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[Event,_.b8]),_.a("design:returntype")],$O.prototype,"onSendCompleted",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$O.prototype,"onSendError",null);
_.O([_.W("yt-live-chat-icon-toggle-button-renderer-toggle"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$O.prototype,"handlePickerButtonToggle",null);_.O([_.W("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$O.prototype,"onEmojiSelect",null);
_.O([_.b("characterCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$O.prototype,"characterCountChanged",null);_.O([_.b("inputFocused"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$O.prototype,"focusChanged",null);_.O([_.W("yt-live-chat-error-message-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$O.prototype,"onErrorMessageDismiss",null);
_.O([_.W("yt-live-chat-error-message-edit"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$O.prototype,"onErrorMessageEdit",null);_.O([_.b("errorMessage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$O.prototype,"errorMessageChanged",null);_.O([_.b("isTooltipVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$O.prototype,"onIsTooltipVisibleChanged",null);
$O=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],$O);
_.u($O,"yt-live-chat-message-input-renderer",function(){if(F2h===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;kPp===void 0&&(kPp=document.createElement("template"));var H=kPp;I.call(l,H.content.cloneNode(!0),V.content.firstChild);F2h=V}V=F2h;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var j8n;var YXM;var dh=function(){var V=_.M.apply(this,arguments)||this;V.systemIcons=_.z("kevlar_system_icons");V.firedOnClickCommand=!1;V.inReplyPanel=!1;return V};
_.t(dh,_.M);
dh.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"}}}};
dh.prototype.onButtonToggle=function(V){V.target.disabled||this.ytPickerBehavior.togglePicker_(V.detail.targetId)};
dh.prototype.onClick=function(){var V=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.xB(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return V.firedOnClickCommand=!1},5E3))};
_.vI.Object.defineProperties(dh.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:(l=V.panels)==null?void 0:l.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}}});
var wh=dh;wh.prototype.onButtonToggle=wh.prototype.onButtonToggle;_.O([_.R(NoO.YtPickerBehavior),_.a("design:type",Object)],wh.prototype,"ytPickerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],wh.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wh.prototype,"systemIcons",void 0);_.O([_.q({reflectToAttribute:!1}),_.a("design:type",Object)],wh.prototype,"firedOnClickCommand",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wh.prototype,"inReplyPanel",void 0);_.O([_.Q("data.pickers"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],wh.prototype,"hasProductPickerPanelViewModel",null);
_.O([_.W("yt-live-chat-icon-toggle-button-renderer-toggle"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wh.prototype,"onButtonToggle",null);wh=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],wh);
_.u(wh,"yt-live-chat-restricted-participation-renderer",function(){if(YXM===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;j8n===void 0&&(j8n=document.createElement("template"));var H=j8n;I.call(l,H.content.cloneNode(!0),V.content.firstChild);YXM=V}V=YXM;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var LFV=function(){var V=_.M.apply(this,arguments)||this;V.genericErrorMessage=_.pW("Error, try again.");V.inReplyPanel=!1;V.hideBorder=!1;return V};
_.t(LFV,_.M);LFV.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}}}}}};
_.vI.Object.defineProperties(LFV,{template:{configurable:!0,enumerable:!0,get:function(){return d35()}}});
var Nc=LFV;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Nc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Nc.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Nc.prototype,"genericErrorMessage",void 0);_.O([_.q(),_.a("design:type",Object)],Nc.prototype,"inReplyPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nc.prototype,"hideBorder",void 0);
Nc=_.O([_.Lm({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Nc);_.u(Nc,"yt-live-chat-engagement-panel-input-renderer",function(){return d35()},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var eTj,kN5;eTj=_.eU(115994);kN5=_.eU(115993);_.FFV=function(V,l,I){var H=this;var T=I.dragDownAction;this.layer=0;this.JSC$19712_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.JSC$19712_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.fullscreen=!1;var x=_.x7();_.nn(x,eTj,this.layer);_.nn(x,kN5,this.layer);this.dragDownAction=function(){T();_.Dt(x,{visualElement:H.fullscreen?eTj:kN5})};
this.gesture=new _.yU(V,l,this.JSC$19712_watchConfig,"pandown");this.attach()};
_.FFV.prototype.attach=function(){this.gesture.attach()};
_.FFV.prototype.detach=function(){this.gesture.detach()};
_.FFV.prototype.update=function(V){this.fullscreen=V;this.gesture.config=V?this.JSC$19712_watchFullScreenConfig:this.JSC$19712_watchConfig};var XvM={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(V){if(V&&V.length==1&&Array.isArray(V[0].loggingUrls)){V=_.EL.unsafeClone(V[0]);var l=this.macros||{},I=this.getAdModuleClient_();if(!I)return _.w6();V.loggingUrls.forEach(function(H){if(H.baseUrl){var T=H.baseUrl;var x=l;x=x===void 0?{}:x;T=I.getOptions().includes("replaceUrlMacros")?_.Gvo(I,"replaceUrlMacros",{url:T,additionalMapping:x}):T;H.baseUrl=T}},this);
V=[V]}return _.$B(this.hostElement,V)},
getAdModuleClient_:function(){var V=_.u8(this);return V?(V=V.getPlayer())?new _.SG(V):null:null}}]};var zT5;var yKO=function(){var V=_.M.apply(this,arguments)||this;V.isCollapsed=!1;V.modernPanels=_.z("kevlar_watch_modern_panels");V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return V};
_.t(yKO,_.M);_.B=yKO.prototype;_.B.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.B.onDonateTap=function(){var V=this.get("data.donateButton.buttonRenderer.command");if(V){var l=_.oa(),I=this.get("data.donateButton.buttonRenderer.trackingParams");l&&I&&_.uJ(l,_.dj(I));this.ytOpenPopupBehavior.openPopup(V)}};
_.B.onShowMore=function(){this.isCollapsed=!1;var V=_.oa(),l=this.get("data.expandButton.buttonRenderer.trackingParams");V&&l&&_.uJ(V,_.dj(l))};
_.B.onShowLess=function(){this.isCollapsed=!0};
_.B.dataChanged=function(){_.i3(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.B.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.B.handleUpdate=function(V){if(V=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",V))this.set("data.startLabel",V.startLabel),this.set("data.endLabel",V.endLabel),this.set("data.progress",V.progress),this.set("data.amountRaisedLabel",V.amountRaisedLabel),this.dataChanged()};
_.B.handleOpenPopupAction=function(V){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",V)&&_.xB(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.B.computeHeaderBackgroundUrl=function(V,l){if(V)return l?V.headerBackgroundDarkUrl:V.headerBackgroundUrl};
_.B.isProgressBarVisible=function(V){return!(!V||V.progress===void 0)};
_.B.headerBackgroundClass=function(){return _.h6("HTML_DIR")==="rtl"?"flip":""};
var Kr=yKO;Kr.prototype.dataChanged=Kr.prototype.dataChanged;_.O([_.R(_.x4.YtOpenPopupBehavior),_.a("design:type",Object)],Kr.prototype,"ytOpenPopupBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Kr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Kr.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],Kr.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Kr.prototype,"isCollapsed",void 0);_.O([_.q({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.a("design:type",String)],Kr.prototype,"headerBackgroundUrl",void 0);_.O([_.q(),_.a("design:type",Boolean)],Kr.prototype,"isDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Kr.prototype,"modernPanels",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kr.prototype,"dataChanged",null);Kr=_.O([_.A({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Kr);
_.u(Kr,"ytd-donation-shelf-renderer",function(){if(zT5!==void 0)return zT5;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return zT5=V},{mode:1});var tkC;var rKp=function(){return _.M.apply(this,arguments)||this};
_.t(rKp,_.M);var GNj=rKp;_.O([_.q(),_.a("design:type",Object)],GNj.prototype,"data",void 0);GNj=_.O([_.A({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],GNj);
_.u(GNj,"ytd-donation-unavailable-renderer",function(){if(tkC!==void 0)return tkC;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return tkC=V},{mode:1});var Ewf;var JK5=function(){return _.M.apply(this,arguments)||this};
_.t(JK5,_.M);JK5.prototype.computeIconType=function(V){return V?"yt-icons:"+V.toLowerCase():null};
var ow5=JK5;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ow5.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ow5.prototype,"data",void 0);ow5=_.O([_.A({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],ow5);
_.u(ow5,"ytd-limited-state-message-renderer",function(){if(Ewf!==void 0)return Ewf;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Ewf=V},{mode:1});var hTx;var POd=function(){return _.M.apply(this,arguments)||this};
_.t(POd,_.M);POd.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
POd.prototype.onTap=function(V){var l=this.data&&this.data.endpoint;l&&!_.qi(_.b3(V),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.B$(this.hostElement,"yt-navigate",{endpoint:l})};
var jr=POd;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],jr.prototype,"data",void 0);jr=_.O([_.A({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],jr);
_.u(jr,"ytd-autotagging-metadata-renderer",function(){if(hTx!==void 0)return hTx;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return hTx=V},{mode:1});var Dxx;var ZSf=function(){return _.M.apply(this,arguments)||this};
_.t(ZSf,_.M);ZSf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
var YO=ZSf;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],YO.prototype,"data",void 0);YO=_.O([_.A({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],YO);
_.u(YO,"ytd-autotagging-metadata-row-renderer",function(){if(Dxx!==void 0)return Dxx;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Dxx=V},{mode:1});var SXq;var RTj;var Q8Y=function(){var V=_.M.apply(this,arguments)||this;V.engagementPanelContent=!1;return V};
_.t(Q8Y,_.M);Q8Y.prototype.computeHasDividerLine=function(V,l){return V&&!l};
var Lr=Q8Y;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Lr.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.a("design:type",Boolean)],Lr.prototype,"hasDividerLine",void 0);_.O([_.q(),_.a("design:type",Object)],Lr.prototype,"engagementPanelContent",void 0);
Lr=_.O([_.A({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Lr);
_.u(Lr,"ytd-metadata-row-header-renderer",function(){if(RTj!==void 0)return RTj;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return RTj=V},{mode:1});var cKM;var WFx=function(){return _.M.apply(this,arguments)||this};
_.t(WFx,_.M);WFx.prototype.computeHasDividerLine=function(V){return V};
var er=WFx;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],er.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.a("design:type",Boolean)],er.prototype,"hasDividerLine",void 0);er=_.O([_.A({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],er);
_.u(er,"ytd-metadata-row-renderer",function(){if(cKM!==void 0)return cKM;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return cKM=V},{mode:1});var bSx;var qXx=function(){return _.M.apply(this,arguments)||this};
_.t(qXx,_.M);var MkM=qXx;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],MkM.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],MkM.prototype,"data",void 0);MkM=_.O([_.A({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],MkM);
_.u(MkM,"ytd-metadata-with-image-row-renderer",function(){if(bSx!==void 0)return bSx;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return bSx=V},{mode:1});var s8p;var pvV=function(){var V=_.M.apply(this,arguments)||this;V.rounded=!0;V.fixie=!1;V.fullWidth=!1;return V};
_.t(pvV,_.M);_.B=pvV.prototype;_.B.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.B.onDataChanged=function(){var V=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(l){V.onEndpointLinkKeyPress(l)}))};
_.B.onEndpointLinkKeyPress=function(V){V.target===this.endpointLink&&V.keyCode===13&&_.B$(this.hostElement,"click")};
_.B.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var V;if((V=this.data)==null?0:V.endpoint)_.d6(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.B.onYtNavigate=function(V){this.endpointHref||(V.stopPropagation(),V.preventDefault())};
_.B.onInformationButtonContainerClick=function(V){V.target.id!=="information-button-container"&&(V.stopPropagation(),V.preventDefault())};
_.B.computeStyle=function(V){return V};
_.B.computeIsThumbnailStyle=function(V){return V==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.B.computeThumbnailWidth=function(V){switch(V){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}};
_.B.computeThumbnailObjectFit=function(V){switch(V){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.vI.Object.defineProperties(pvV.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?0:V.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
var kO=pvV;kO.prototype.onYtNavigate=kO.prototype.onYtNavigate;kO.prototype.onClick=kO.prototype.onClick;kO.prototype.onDataChanged=kO.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],kO.prototype,"componentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],kO.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],kO.prototype,"componentStyle",void 0);_.O([_.q({computed:"computeIsThumbnailStyle(data.style)"}),_.a("design:type",Boolean)],kO.prototype,"isThumbnailStyle",void 0);_.O([_.q({computed:"computeThumbnailObjectFit(data.style)"}),_.a("design:type",String)],kO.prototype,"thumbnailObjectFit",void 0);
_.O([_.q({computed:"computeThumbnailWidth(data.style)"}),_.a("design:type",Number)],kO.prototype,"thumbnailWidth",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],kO.prototype,"rounded",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],kO.prototype,"fixie",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],kO.prototype,"fullWidth",void 0);_.O([_.Ij("#endpoint-link"),_.a("design:type",HTMLAnchorElement)],kO.prototype,"endpointLink",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kO.prototype,"onDataChanged",null);_.O([_.Q("data.endpoint"),_.a("design:type",Object),_.a("design:paramtypes",[])],kO.prototype,"endpointHref",null);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],kO.prototype,"onClick",null);
_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],kO.prototype,"onYtNavigate",null);kO=_.O([_.A({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],kO);
_.u(kO,"ytd-rich-metadata-renderer",function(){if(s8p!==void 0)return s8p;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return s8p=V},{mode:_.Cm("kevlar_poly_si_batch_j075")?1:2});var AKp;var uGf=function(){var V=_.M.apply(this,arguments)||this;V.fixie=!1;V.fullWidth=!1;return V};
_.t(uGf,_.M);uGf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
uGf.prototype.computeHasDividerLine=function(V){return V};
var F2=uGf;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],F2.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.a("design:type",Boolean)],F2.prototype,"hasDividerLine",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],F2.prototype,"fixie",void 0);
_.O([_.q(),_.a("design:type",Object)],F2.prototype,"fullWidth",void 0);F2=_.O([_.A({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],F2);
_.u(F2,"ytd-rich-metadata-row-renderer",function(){if(AKp!==void 0)return AKp;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return AKp=V},{mode:1});var vwM=function(){var V=_.M.apply(this,arguments)||this;V.engagementPanelContent=!1;V.fixie=!1;V.fullWidth=!1;return V};
_.t(vwM,_.M);
vwM.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"}}}};
vwM.prototype.computeCollapsibleItems=function(V,l,I){return V===void 0||l===void 0||I===void 0||I?[]:V.slice(l)};
vwM.prototype.computeAlwaysShownItems=function(V,l){return V&&V.length?V.slice(0,l):[]};
var X2=vwM;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],X2.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],X2.prototype,"collapsed",void 0);
_.O([_.q({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.a("design:type",Array)],X2.prototype,"alwaysShownItems",void 0);_.O([_.q({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.a("design:type",Array)],X2.prototype,"collapsibleItems",void 0);_.O([_.q(),_.a("design:type",Object)],X2.prototype,"engagementPanelContent",void 0);_.O([_.q(),_.a("design:type",Object)],X2.prototype,"fixie",void 0);
_.O([_.q(),_.a("design:type",Object)],X2.prototype,"fullWidth",void 0);X2=_.O([_.A({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],X2);
_.u(X2,"ytd-metadata-row-container-renderer",function(){if(SXq!==void 0)return SXq;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return SXq=V},{mode:1});var OSq;var CO5=function(){var V=_.M.apply(this,arguments)||this;V.currentPageUrl="";V.baseUrl="";V.isHiddenByUser=null;V.hidden=!1;V.showAboveScrim=!1;V.watchNextGrid=_.z("kevlar_watch_grid");V.modernButtons=_.z("web_modern_buttons");V.roundedContainer=!0;V.noBorder=!1;V.roundBackground=!_.z("live_chat_round_background_killswitch");V.overflowHideChat=_.z("live_chat_overflow_hide_chat");V.forceDarkTheme=!1;V.theaterWatchWhile=!1;V.isListeningForPlayerProgress=!1;V.JSC$19748_playerEvents=new Map;V.isFrameReady=
!1;V.player=null;V.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 V};
_.t(CO5,_.M);_.B=CO5.prototype;_.B.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.U4(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.B.created=function(){var V=this;this.handleIframeEventListener=function(l){V.handleIframeEvent(l)};
this.handleKeyboardEventListener=function(l){V.handleKeyboardEvent(l)};
this.JSC$19748_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19748_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19748_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19748_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19748_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.B.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()};
_.B.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};
_.B.computeBaseUrl=function(V){var l="/live_chat";this.isChatReplay()&&(l="/live_chat_replay");return _.B_(_.Td(_.H_(_.Wv(V),l),null),"").toString()};
_.B.dataChanged=function(){_.z("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.B.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var V=this.url;if(this.isChatReplay()&&this.player){var l=Math.floor(this.player.getProgressState().current*1E3);V=_.qx(_.Wv(V),"playerOffsetMs",l.toString()).toString()}l=this.chatframe;try{var I=V==="about:blank"?_.wwW:_.S6(V),H=l.contentDocument.location,T=_.Wh(I);T!==void 0&&H.replace(T)}catch(x){l.src=V}}};
_.B.collapsedChanged=function(){_.B$(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.B.handleIframeEvent=function(V){if(V&&this.baseUrl.startsWith(V.origin)&&V.source===this.chatframe.contentWindow&&_.m3(V.data))if(V.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(V);else if(V.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(V.data["yt-show-feedback-dialog"]){var l=_.F().resolve(_.Cs(_.QIV));if(l){var I=V.ports,H;I&&I.length&&(H=function(){I[0].postMessage({})});
V=V.data["yt-show-feedback-dialog"];l.showFeedbackDialog(V.customProductData,V.feedbackContent,H,V.bucket)}}else if(V.data["yt-show-survey"])_.B$(this.hostElement,"yt-show-survey",V.data["yt-show-survey"]);else if(V.data["yt-purchase-membership"])_.z("web_ytd_live_chat_frame_command_resolver_ks")?_.$B(this.hostElement,[V.data["yt-purchase-membership"]]):_.F().resolve(_.aw).resolveCommand(V.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(V.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(V.data["yt-tunnel-out-live-service-request"]);
else if(V.data["yt-user-activity"])_.aS();else if(V.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(V.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(V.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(V.data["yt-open-popup"]);else if(V.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(V.data["yt-log-flow-logging-event-command"]);else if(V.data["yt-hide-live-chat"])this.onShowHideChat();
else V.data["yt-report-moderation-state-log"]&&this.player&&(l={cpn:this.player.getVideoData().cpn},_.tF("liveChatBeingModerated",l))};
_.B.attachLiveChatResponseVeTrackingParams=function(V){V=_.dj(V);var l=_.oa(),I=_.SN("liveChatRenderer.trackingParams",this.data);l&&I&&_.MJ(l,_.dj(I),V)};
_.B.handleBuyflowMessages=function(V){var l=V.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,I=V.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,H=V.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.e_t(_.$_(_.Wb),l.replace(/-/g,"+").replace(/_/g,"/"),function(T){V.ports[0].postMessage({success:!0,buyFlowResponse:T})},void 0,function(T){V.ports[0].postMessage({success:!1,
error:T&&T.message||"Buyflow rejected without error."})},_.Fu().get("hl"),void 0,function(){V.ports[0].postMessage({closed:!0})},I,H)};
_.B.setupPlayerProgressRelay=function(){var V=this;if(!this.isListeningForPlayerProgress){var l=_.vu();l!=null&&l.getPlayerPromise&&(l.getPlayerPromise().then(function(I){V.playerApiReady(I)}),this.isListeningForPlayerProgress=!0)}};
_.B.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.B.playerApiReady=function(V){this.setPlayer(V)};
_.B.playerProgressHandler=function(){if(this.player){var V=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":V.current})}};
_.B.playerAdStartHandler=function(V){this.postToContentWindow({"yt-player-ad-start":V})};
_.B.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.B.playerStateChangeHandler=function(V){this.postToContentWindow({"yt-player-state-change":V})};
_.B.setPlayer=function(V){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19748_playerEvents);V&&(this.player=V,this.ytPlayerListenerBehavior.listenToPlayerEvents(V,this.JSC$19748_playerEvents),_.B$(this.hostElement,"player-api-ready"))};
_.B.liveChatPageUrl=function(V,l,I,H){return!I||l?"about:blank":I.liveChatRenderer?(l=_.Wv(this.currentPageUrl).JSC$7896_queryData_,RMf(l),V=_.Wv(V),l.add("continuation",I.liveChatRenderer.continuations[0].reloadContinuationData.continuation),I=_.Pb()==="USER_INTERFACE_THEME_DARK",(H||I)&&l.add("dark_theme","true"),_.Td(V,l),H=_.Wv(V.toString()),I=H.JSC$7896_queryData_,"SESSION_INDEX"in _.Eo&&(I.add("authuser",_.h6("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Eo&&I.add("pageId",_.h6("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Eo&&I.add("sdc",_.h6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),H.toString()):""};
_.B.isCollapsed=function(V,l){return l!==null?l:this.isChatReplay()||V&&V.conversationBarRenderer&&V.conversationBarRenderer.availabilityMessage?!0:V&&V.liveChatRenderer?V.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!1};
_.B.isHidden=function(V,l,I){var H=l&&l.conversationBarRenderer&&l.conversationBarRenderer.availabilityMessage,T=l&&l.liveChatRenderer&&l.liveChatRenderer.showHideButton,x=l&&l.liveChatRenderer&&l.liveChatRenderer.showButton;return I&&V&&!H&&!x||!I&&V&&!H&&!T?!0:l&&l.liveChatRenderer&&l.liveChatRenderer.initialDisplayState?l.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.B.computeButtonOverride=function(V,l){if(V&&l)return{type:"outline"}};
_.B.setCollapsedState=function(V){_.y(V,_.Ohb)&&(this.isHiddenByUser=!!_.y(V,_.Ohb).collapsed,!this.isHiddenByUser&&_.z("enable_teaser_framework_web_client")&&_.xB(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.B.forwardReduxActionToIframe=function(V){this.postToContentWindow({"yt-live-chat-forward-redux-action":V})};
_.B.onLoopRangeChange=function(V){this.showAboveScrim=!(V==null||!V.postId)};
_.B.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.B.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.B.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.B.sendDarkThemePostMessage=function(V){this.postToContentWindow({"yt-live-chat-set-dark-theme":V})};
_.B.onLiveChatBuyFlowCallback=function(V){this.postToContentWindow({"yt-live-chat-buy-flow-callback":V})};
_.B.handleKeyboardEvent=function(V){(0,_.EL.containsValue)(bkV,V.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:V.type,keyCode:V.keyCode}})};
_.B.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.B.postToContentWindow=function(V){if(this.isFrameReady)try{var l=window.location.protocol+"//"+window.location.host,I;(I=this.chatframe)!=null&&I.contentWindow?this.chatframe.contentWindow.postMessage(V,l):_.hF(new _.Yd("Tried posting a message to an iframe with no content window",V))}catch(H){_.Gr(H)}};
_.B.shouldHideChatFrame=function(V){return V&&_.z("hide_live_chat_button_when_collapsed")};
_.vI.Object.defineProperties(CO5.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.z("live_chat_overflow_hide_chat")||_.z("web_watch_chat_hide_button_killswitch"))return _.z("live_chat_overflow_hide_chat");var V,l,I,H;return!!((V=this.data)==null?0:(l=V.liveChatRenderer)==null?0:(I=l.header)==null?0:(H=I.liveChatHeaderRenderer)==null?0:H.collapseButton)}}});
var zl=CO5;zl.prototype.collapsedChanged=zl.prototype.collapsedChanged;zl.prototype.urlChanged=zl.prototype.urlChanged;zl.prototype.dataChanged=zl.prototype.dataChanged;zl.prototype.onShowHideChat=zl.prototype.onShowHideChat;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],zl.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],zl.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],zl.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.R(_.x4.YtOpenPopupBehavior),_.a("design:type",Object)],zl.prototype,"ytOpenPopupBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zl.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],zl.prototype,"currentPageUrl",void 0);
_.O([_.q({computed:"computeBaseUrl(currentPageUrl,data)"}),_.a("design:type",Object)],zl.prototype,"baseUrl",void 0);_.O([_.q({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.a("design:type",String)],zl.prototype,"url",void 0);_.O([_.q(),_.a("design:type",Object)],zl.prototype,"isHiddenByUser",void 0);_.O([_.q({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.a("design:type",Object)],zl.prototype,"hidden",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.a("design:type",Boolean)],zl.prototype,"collapsed",void 0);_.O([_.q({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.a("design:type",Boolean)],zl.prototype,"hideChatFrame",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zl.prototype,"showAboveScrim",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zl.prototype,"watchNextGrid",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],zl.prototype,"modernButtons",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zl.prototype,"roundedContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zl.prototype,"noBorder",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],zl.prototype,"roundBackground",void 0);
_.O([_.q({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.a("design:type",Object)],zl.prototype,"toggleButtonOverride",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],zl.prototype,"overflowHideChat",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zl.prototype,"forceDarkTheme",void 0);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zl.prototype,"enableShowWithoutHideChatButton",null);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zl.prototype,"theaterWatchWhile",void 0);_.O([_.Ij("#chatframe"),_.a("design:type",HTMLIFrameElement)],zl.prototype,"chatframe",void 0);_.O([_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zl.prototype,"onShowHideChat",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zl.prototype,"dataChanged",null);
_.O([_.b("url"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zl.prototype,"urlChanged",null);_.O([_.b("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zl.prototype,"collapsedChanged",null);zl=_.O([_.A({is:"ytd-live-chat-frame",disableElementRegistration:!0})],zl);
_.u(zl,"ytd-live-chat-frame",function(){if(OSq!==void 0)return OSq;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return OSq=V},{mode:1});var alY;var yS=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("web_modern_buttons");V.buttonOverrides={style:"call-to-action",type:"filled"};return V};
_.t(yS,_.M);yS.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=_.tv(this.data.backgroundColor)))};
yS.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var V=this.getFormattedStringLoggingDirectives(this.data.headline);V&&this.rendererBehavior.logExplicitClick(V)}};
yS.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var V=this.getFormattedStringLoggingDirectives(this.data.description);V&&this.rendererBehavior.logExplicitClick(V)}};
yS.prototype.getFormattedStringLoggingDirectives=function(V){return V&&V.runs&&V.runs.length>0&&V.runs[0]&&V.runs[0].loggingDirectives?V.runs[0].loggingDirectives:null};
var tb=yS;tb.prototype.dataChanged=tb.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tb.prototype,"rendererBehavior",void 0);_.O([_.R(XvM.YtMacroReplacementBehavior),_.a("design:type",Object)],tb.prototype,"macroReplacementBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tb.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],tb.prototype,"navigationEndpoint",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],tb.prototype,"enableColors",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],tb.prototype,"modern",void 0);_.O([_.q(),_.a("design:type",Object)],tb.prototype,"buttonOverrides",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tb.prototype,"dataChanged",null);tb=_.O([_.A({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],tb);
_.u(tb,"ytd-action-basic-immersive-content-renderer",function(){if(alY!==void 0)return alY;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return alY=V},{mode:1});var fl5;var gw6;var mx5=function(){return _.M.apply(this,arguments)||this};
_.t(mx5,_.M);mx5.prototype.dataChanged=function(){var V;((V=this.data)==null?void 0:V.backgroundColor)!==void 0&&_.i3(this.hostElement,{"--bgu-color":_.tv(this.data.backgroundColor)})};
mx5.prototype.onImageTileClick=function(){var V;((V=this.data)==null?0:V.navigationEndpoint)&&_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var l;((l=this.data)==null?0:l.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.vI.Object.defineProperties(mx5.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var V;if(((V=this.data)==null?void 0:V.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 V;return((V=this.data)==null?void 0:V.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var V,l,I;if(((V=this.data)==null?void 0:(l=V.detailsLine)==null?void 0:l.texts)!=null&&((I=this.data)==null?void 0:I.detailsLine.texts.length)>0){var H;return(H=this.data)==null?void 0:H.detailsLine.texts.map(function(T){return T.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var V,l,I;if(((V=this.data)==null?void 0:(l=V.optionalDetailsLine)==null?void 0:l.texts)!=null&&((I=this.data)==null?void 0:I.optionalDetailsLine.texts.length)>0){var H;return(H=this.data)==null?void 0:H.optionalDetailsLine.texts.map(function(T){return T.text}).join("")}return null}}});
var rh=mx5;rh.prototype.dataChanged=rh.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],rh.prototype,"rendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],rh.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],rh.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.backgroundColor"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],rh.prototype,"hasBackgroundColor",null);
_.O([_.Q("data.objectFit"),_.a("design:type",Object),_.a("design:paramtypes",[])],rh.prototype,"getObjectFit",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.tileRenderingStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],rh.prototype,"hasTileMetadata",null);_.O([_.Q("data.detailsLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],rh.prototype,"getSecondaryDetails",null);
_.O([_.Q("data.optionalDetailsLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],rh.prototype,"getOptionalDetails",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rh.prototype,"dataChanged",null);rh=_.O([_.A({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],rh);
_.u(rh,"ytd-image-tile-renderer",function(){if(gw6!==void 0)return gw6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return gw6=V},{mode:1});var iSV;var V_n=function(){return _.M.apply(this,arguments)||this};
_.t(V_n,_.M);V_n.prototype.getOpenLinkIcon=function(){return _.z("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
V_n.prototype.onSitelinkTap=function(){_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.z("kevlar_command_handler_migration_killswitch"))_.d6(this.hostElement,this.data.clickCommands,this.hostElement);else for(var V=_.U(this.data.clickCommands),l=V.next();!l.done;l=V.next())this.ytComponentBehavior.resolveCommand(l.value)};
var Gl=V_n;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Gl.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Gl.prototype,"rendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Gl.prototype,"data",void 0);Gl=_.O([_.A({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Gl);
_.u(Gl,"ytd-sitelink-renderer",function(){if(iSV!==void 0)return iSV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return iSV=V},{mode:1});var EU=function(){var V=_.M.apply(this,arguments)||this;V.paddingFix=_.z("enable_ads_web_ep_buenos_aires_and_padding_fix");return V};
_.t(EU,_.M);EU.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"}}}};
EU.prototype.dataChanged=function(){var V=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(l){l.clickTrackingParams&&delete l.clickTrackingParams;V.ytMacroReplacementBehavior.sendServiceRequestAction([l])})};
EU.prototype.shouldHideFooter=function(V){return!(V&&_.z("use_ads_engagement_panel_desktop_footer_cta"))};
_.vI.Object.defineProperties(EU.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:V.imageTileRenderers)===void 0||((l=this.data)==null?void 0:l.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var H;return(H=_.y(I,M66))==null?void 0:H.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:V.imageTileRenderers)===void 0||((l=this.data)==null?void 0:l.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var H;return((H=_.y(I,M66))==null?void 0:H.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
var Jb=EU;Jb.prototype.dataChanged=Jb.prototype.dataChanged;_.O([_.R(XvM.YtMacroReplacementBehavior),_.a("design:type",Object)],Jb.prototype,"ytMacroReplacementBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Jb.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Jb.prototype,"paddingFix",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.imageTileRenderers"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Jb.prototype,"removeBorderFromImageTiles",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.imageTileRenderers"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Jb.prototype,"useFooteredMetadataRenderingStyle",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Jb.prototype,"dataChanged",null);Jb=_.O([_.A({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Jb);
_.u(Jb,"ytd-action-engagement-panel-content-renderer",function(){if(fl5!==void 0)return fl5;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return fl5=V},{mode:1});var lnd;var InO=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;V=_.sZ();_.f6(V,function(){return l().interaction},I);
_.gT(V,{visibilityCallback:function(H){var T,x=(T=l().interaction)==null?void 0:T.onFirstVisible;H&&x&&_.EI(x)},
showOption:_.U6});return _.Y("ad-grid-card-image-full-metadata-view-model",{class:function(){var H;return((H=l().interaction)==null?0:H.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:V,"aria-label":function(){var H,T;return(H=l().interaction)==null?void 0:(T=H.accessibility)==null?void 0:T.label}},_.Y("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.Y(_.rw,{data:function(){return l().adImage}},{adImageViewModel:function(H){return _.Y(_.Di,{data:H.data,
customCommandResolver:I})}})),_.Y("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.Y(_.NS,{cond:function(){return l().headline},
then:function(H){return _.Y(_.Ni,{text:H,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.Y(_.NS,{cond:function(){return l().detailsLine},
then:function(H){return _.Y("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.Y(_.rw,{data:H},{adDetailsLineViewModel:function(T){return _.Y(_.KP,{data:T.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.Y(_.NS,{cond:function(){return l().secondaryDetailsLine},
then:function(H){return _.Y("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.Y(_.rw,{data:H},{adDetailsLineViewModel:function(T){return _.Y(_.KP,{data:T.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ih");var HNh=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;V=_.sZ();_.f6(V,function(){return l().interaction},I);
_.gT(V,{visibilityCallback:function(H){var T,x=(T=l().interaction)==null?void 0:T.onFirstVisible;H&&x&&_.EI(x)},
showOption:_.U6});return _.Y("ad-grid-card-image-view-model",{class:function(){var H;return((H=l().interaction)==null?0:H.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:V,"aria-label":function(){var H,T;return(H=l().interaction)==null?void 0:(T=H.accessibility)==null?void 0:T.label}},_.Y(_.rw,{data:function(){return l().adImage}},{adImageViewModel:function(H){return _.Y(_.Di,{data:H.data,
customCommandResolver:I})}}),_.Y("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.Y(_.rw,{data:function(){return l().adCardBadge}},{adCardBadgeViewModel:_.BkN})))},"Jh");var Txd=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;V=_.sZ();_.f6(V,function(){return l().interaction},I);
_.gT(V,{visibilityCallback:function(H){var T,x=(T=l().interaction)==null?void 0:T.onFirstVisible;H&&x&&_.EI(x)},
showOption:_.U6});return _.Y("ad-grid-card-text-view-model",{class:function(){var H;return((H=l().interaction)==null?0:H.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:V,"aria-label":function(){var H,T;return(H=l().interaction)==null?void 0:(T=H.accessibility)==null?void 0:T.label}},_.Y("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.Y(_.NS,{cond:function(){return l().title},
then:function(H){return _.Y(_.Ni,{text:H,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.Y("div",{class:function(){return _.z("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.Y(_.Ks,{each:function(){var H;
return((H=l())==null?void 0:H.descriptions)||[]},
keyBy:"INDEX"},function(H){return _.Y(_.Ni,{text:H,className:function(){return _.z("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.Y("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.Y(_.rw,{data:function(){return l().moreInfoButton}},{adButtonViewModel:function(H){return _.Y(_.$3,{data:H.data,
customCommandResolver:I})}})))},"Kh");var Bx6=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;var H=V.adGridCardCollectionStyle;V=_.sZ();_.gT(V,{visibilityCallback:function(T){var x,n=(x=l().interaction)==null?void 0:x.onFirstVisible;T&&n&&_.EI(n)},
showOption:_.U6});return _.Y("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:V,style:function(){return"grid-template-columns: repeat("+pYh(H?H():l().style)+", minmax(0, 1fr));"}},_.Y(_.rw,{data:function(){var T;
return(T=l())==null?void 0:T.gridCards}},{adGridCardImageViewModel:function(T){return _.Y(HNh,{data:T.data,
customCommandResolver:I})},
adGridCardImageFullMetadataViewModel:function(T){return _.Y(InO,{data:T.data,customCommandResolver:I})},
adGridCardTextViewModel:function(T){return _.Y(Txd,{data:T.data,customCommandResolver:I})}}))},"Lh");_.MR(_.W1(function(V){var l=V.data;V=_.sZ();_.f6(V,function(){return l().interaction},uEq);
_.gT(V,{visibilityCallback:function(I){var H,T=(H=l().interaction)==null?void 0:H.onFirstVisible;I&&T&&_.EI(T)},
showOption:_.U6});return _.Y("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:V},_.Y("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.Y(_.NS,{cond:_.fDt("(min-width: "+((0,_.GW)()+_.qg)+"px)"),then:function(){return _.Y(_.rw,{data:function(){return l().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.Y(Bx6,{data:I.data,
customCommandResolver:uEq})}})},
else:function(){return _.Y(_.rw,{data:function(){return l().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.Y(Bx6,{data:I.data,
customCommandResolver:uEq,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.Y("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.Y(_.rw,{data:function(){return l().adButton}},{adButtonViewModel:function(I){return _.Y(_.$3,{data:I.data,
customCommandResolver:uEq})}})))},"Mh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;V=_.sZ();_.f6(V,function(){return l().interaction},vhf);
_.gT(V,{visibilityCallback:function(I){var H,T=(H=l().interaction)==null?void 0:H.onFirstVisible;I&&T&&_.EI(T)},
showOption:_.U6});return _.Y("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:V},_.Y("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.Y(_.rw,{data:function(){if(_.fDt("(min-width: "+((0,_.GW)()+_.qg)+"px)")())var I=l().adGridCardCollection;else{I=Object.assign({},_.y(l().adGridCardCollection,sOM));var H;I.gridCards!==void 0&&((H=I.gridCards)==null?void 0:H.length)>1?I.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":I.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";I={adGridCardCollectionViewModel:I}}return I}},{adGridCardCollectionViewModel:function(I){return _.Y(Bx6,{data:I.data,
customCommandResolver:vhf})}})),_.Y("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.Y(_.rw,{data:function(){return l().adButton}},{adButtonViewModel:function(I){return _.Y(_.$3,{data:I.data,
customCommandResolver:vhf})}})))},"Nh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.b9}});var xyO=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return V};
_.t(xyO,_.M);_.B=xyO.prototype;_.B.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"}}}};
_.B.attached=function(){this.getDataFromPlayerAndRender()};
_.B.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.B.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.B.getDataFromPlayerAndRender=function(){var V=this,l=_.u8(this.hostElement);l&&l.getPlayerPromise().then(function(I){V.getCachedDataAndListen(I)})};
_.B.getCachedDataAndListen=function(V){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(V,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(V,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=V)};
_.B.resolveCachedActions=function(){var V=_.SN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(V=V&&V())&&!_.EL.isEmpty(V)&&this.sendUpdateEngagementPanelAction(V);(V=(V=_.SN("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&V())&&!_.EL.isEmpty(V)&&this.sendChangeEngagementPanelVisibilityAction(V);(V=(V=_.SN("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&V())&&!_.EL.isEmpty(V)&&this.sendScrollToEngagementPanelCommand(V)};
_.B.sendUpdateEngagementPanelAction=function(V){var l;_.xB(this.hostElement,"yt-update-engagement-panel-action",[(l=_.EL.get(V,"action"))!=null?l:V])};
_.B.sendChangeEngagementPanelVisibilityAction=function(V){_.xB(this.hostElement,"yt-change-engagement-panel-visibility-action",[V])};
_.B.sendScrollToEngagementPanelCommand=function(V){_.xB(this.hostElement,"yt-scroll-to-engagement-panel-command",[V])};
_.B.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.z("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.hF(Error("hm"))};
var oo=xyO;oo.prototype.dataChanged=oo.prototype.dataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],oo.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],oo.prototype,"componentBehavior",void 0);_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],oo.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],oo.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],oo.prototype,"player",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oo.prototype,"dataChanged",null);oo=_.O([_.A({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],oo);
_.u(oo,"ytd-ads-engagement-panel-content-renderer",function(){if(lnd!==void 0)return lnd;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return lnd=V},{mode:1});var Uyf;var nid=function(){var V=_.M.apply(this,arguments)||this;V.player=null;V.JSC$19785_playerEvents=new Map;V.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return V};
_.t(nid,_.M);_.B=nid.prototype;_.B.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]]"}}}}}};
_.B.created=function(){this.player=null;this.JSC$19785_playerEvents=new Map;this.JSC$19785_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19785_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19785_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19785_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.B.attached=function(){var V=this,l=_.u8();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));l&&l.getPlayerPromise().then(function(I){V.setPlayer(I);V.set("isPageLoad",!1)})};
_.B.setPlayer=function(V){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19785_playerEvents);this.set("player",V);V&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(V,this.JSC$19785_playerEvents),V.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.B.onLoopRangeChange=function(V){var l=_.F().resolve(_.Cs(_.pa));if((!l||l.isOnWatch())&&this.hostElement.clientHeight){var I;!V&&((I=this.data)==null?0:I.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.B.onVideoProgress=function(V){var l,I,H=((l=this.player)==null?void 0:(I=l.getPresentingPlayerType)==null?void 0:I.call(l))===2;this.isAdPlaying!==H&&this.set("isAdPlaying",H);var T;if(!H&&(T=this.player)!=null&&T.getLoopRange()){I=this.player.getLoopRange();l=I.startTimeMs;I=I.endTimeMs;H=this.player.getProgressState(1).seekableStart;var x;l<H*1E3&&((x=this.data)==null?0:x.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
V=I<V*1E3;var n;((n=this.player)==null?0:n.getLoopRange())&&V&&this.player.seekTo(l/1E3)}};
_.B.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.B.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.B.onYtDeleteClipEngagementPanelCommand=function(V){_.y(V,HkO).command&&this.ytComponentBehavior.resolveCommand(_.y(V,HkO).command)};
_.vI.Object.defineProperties(nid.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.voteCount)||_.pW("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
var hb=nid;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],hb.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],hb.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],hb.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],hb.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],hb.prototype,"isAdPlaying",void 0);_.O([_.q({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],hb.prototype,"isPageLoad",void 0);_.O([_.q({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],hb.prototype,"isDarkTheme",void 0);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],hb.prototype,"voteCount",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],hb.prototype,"channelEndpoint",null);_.O([_.Q("channelEndpoint"),_.a("design:type",Object),_.a("design:paramtypes",[])],hb.prototype,"channelHref",null);hb=_.O([_.A({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],hb);
_.u(hb,"ytd-clip-attribution-renderer",function(){if(Uyf!==void 0)return Uyf;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Uyf=V},{mode:1});var $yx;var dyV=function(){var V=_.M.apply(this,arguments)||this;V.player=null;V.JSC$19790_playerEvents=new Map;return V};
_.t(dyV,_.M);_.B=dyV.prototype;_.B.created=function(){this.player=null;this.JSC$19790_playerEvents=new Map;this.JSC$19790_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19790_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19790_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.B.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.B.attached=function(){var V=this,l=_.u8();l&&l.getPlayerPromise().then(function(I){V.setPlayer(I);V.set("isPageLoad",!1)})};
_.B.setPlayer=function(V){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19790_playerEvents);this.set("player",V);if(V){this.ytPlayerListenerBehavior.listenToPlayerEvents(V,this.JSC$19790_playerEvents);var l;(V==null?void 0:(l=V.getPresentingPlayerType)==null?void 0:l.call(V))===2&&this.playerAdStartHandler()}};
_.B.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.B.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.B.onVideoProgress=function(){var V,l,I=((V=this.player)==null?void 0:(l=V.getPresentingPlayerType)==null?void 0:l.call(V))===2;this.isAdPlaying!==I&&this.set("isAdPlaying",I)};
var P3=dyV;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],P3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],P3.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],P3.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],P3.prototype,"isAdPlaying",void 0);_.O([_.q({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],P3.prototype,"isPageLoad",void 0);P3=_.O([_.A({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],P3);
_.u(P3,"ytd-clip-section-footer-renderer",function(){if($yx!==void 0)return $yx;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return $yx=V},{mode:1});var wTY;var NxY;var KmC=function(){return _.M.apply(this,arguments)||this};
_.t(KmC,_.M);var jxx=KmC;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],jxx.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],jxx.prototype,"data",void 0);jxx=_.O([_.A({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],jxx);
_.u(jxx,"ytd-clip-ad-state-renderer",function(){if(NxY!==void 0)return NxY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return NxY=V},{mode:1});var YSf;var LmM=function(){var V=_.M.apply(this,arguments)||this;V.value="";V.valid=!1;V.userChangedValue=!1;V.disabled=!1;V.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return V};
_.t(LmM,_.M);_.B=LmM.prototype;_.B.detached=function(){this.userChangedValue=!1};
_.B.handleKeyDown=function(V){if(_.Kj)var l=13;else _.rbq&&_.ja?l=13:l=13;V.keyCode===l&&V.preventDefault()};
_.B.handleInput=function(){var V=_.h(this.hostElement).querySelector("#title");if(V){var l=(V.value||"").replace(/\r|\n/g," ");this.set("value",l);V.value=l;this.valid=V.validate();this.userChangedValue=!0}};
_.B.handleBlur=function(){this.valid=_.h(this.hostElement).querySelector("#title").validate()};
_.B.onValueChanged=function(){_.B$(this.hostElement,"title-changed",{title:this.value})};
_.B.onValidChanged=function(){_.B$(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.B.setInput=function(V,l){var I=_.h(this.hostElement).querySelector("#title");I&&(I.value=V,this.handleInput(),l&&(I.invalid=!1,this.valid=!0))};
_.B.onClipCreationDisable=function(){this.set("disabled",!0)};
_.B.onClipCreationEnable=function(){this.set("disabled",!1)};
_.B.onClipCreationVisibilityChange=function(V){var l=this;V.visible?requestAnimationFrame(function(){var I;((I=_.h(l.hostElement).querySelector("#title"))==null?void 0:I.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
var DJ=LmM;DJ.prototype.onValidChanged=DJ.prototype.onValidChanged;DJ.prototype.onValueChanged=DJ.prototype.onValueChanged;DJ.prototype.handleBlur=DJ.prototype.handleBlur;DJ.prototype.handleInput=DJ.prototype.handleInput;DJ.prototype.handleKeyDown=DJ.prototype.handleKeyDown;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],DJ.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],DJ.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],DJ.prototype,"value",void 0);_.O([_.q(),_.a("design:type",Object)],DJ.prototype,"valid",void 0);_.O([_.q(),_.a("design:type",Object)],DJ.prototype,"userChangedValue",void 0);_.O([_.q(),_.a("design:type",Object)],DJ.prototype,"disabled",void 0);_.O([_.W("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],DJ.prototype,"handleKeyDown",null);
_.O([_.W("input"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DJ.prototype,"handleInput",null);_.O([_.W("blur"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DJ.prototype,"handleBlur",null);_.O([_.b("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DJ.prototype,"onValueChanged",null);
_.O([_.b("valid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DJ.prototype,"onValidChanged",null);DJ=_.O([_.A({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],DJ);
_.u(DJ,"ytd-clip-creation-text-input-renderer",function(){if(YSf!==void 0)return YSf;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return YSf=V},{mode:1});var es5;var k05;var Fmx;var XTn;var zsC;var y0j=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};V.pendingStoryboardImages_={};V.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];V.tickLabelInterval=30;V.mediumTickInterval=5;V.largeTickInterval=15;V.aboveRulerHeight=32;V.rulerHeight=50;V.smallTickHeight=4;V.mediumTickHeight=8;V.largeTickHeight=16;V.mediaListeners_=
{};return V};
_.t(y0j,_.M);_.B=y0j.prototype;_.B.attached=function(){var V=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(l){l=_.U(["screen and (min-resolution: "+l+")","screen and (max-resolution: "+l+")"]);for(var I=l.next();!I.done;I=l.next()){I=I.value;var H=window.matchMedia(I);H&&(V.mediaListeners_[I]=V.updatePixelRatio_.bind(V),H.addEventListener?H.addEventListener("change",V.mediaListeners_[I]):H.addListener?H.addListener(V.mediaListeners_[I]):delete V.mediaListeners_[I])}})};
_.B.detached=function(){this.setPlayer(null);for(var V=_.U(Object.keys(this.mediaListeners_)),l=V.next();!l.done;l=V.next()){var I=l.value;l=this.mediaListeners_[I];(I=window.matchMedia(I))&&(I.removeEventListener?I.removeEventListener("change",l):I.removeListener&&I.removeListener(l))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.B.onVisibilityChangedAction_=function(V){var l=this;V.visible&&!this.player_&&(V=_.u8())&&V.getPlayerPromise().then(function(I){l.setPlayer(I)})};
_.B.setPlayer=function(V){V&&this.set("player_",V)};
_.B.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.B.setUpCanvas_=function(){var V=this.rulerWidth,l=this.devicePixelRatio_,I=this.visible;this.set("canvasReady_",!1);if(I&&l!==0){I=this.aboveRulerHeight+this.rulerHeight;var H=_.h(this.hostElement).querySelector("#ticks");H.width=V*l;H.height=I*l;H.style.width=V+"px";H.style.height=I+"px";H.getContext("2d").scale(l,l);this.set("canvasReady_",!0)}};
_.B.drawRuler_=function(V,l,I,H,T,x,n,w,N,L,e,k){V&&I&&l&&(V=_.h(this.hostElement).querySelector("#ticks"),l=V.getContext("2d"),l.clearRect(0,0,V.width,V.height),l.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),l.lineWidth=2,l.beginPath(),l.moveTo(0,this.aboveRulerHeight),l.lineTo(V.width,this.aboveRulerHeight),l.moveTo(0,V.height),l.lineTo(V.width,V.height),l.stroke(),this.drawRulerTicks_(V,x,T,H),this.drawStoryboardImages_(V,I,x,T,H),l.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
l.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(n-x,H,!1),this.rulerHeight),I=this.timeToPixels_(w-x,H,!1),l.fillRect(I,this.aboveRulerHeight,V.width-I,this.rulerHeight),this.drawSpeedLines_(V,x,k))};
_.B.drawRulerTicks_=function(V,l,I,H){var T=V.getContext("2d");T.save();T.lineWidth=1;for(var x=Math.floor(Math.max(0,l-this.tickLabelInterval));x<l+I;x++){T.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var n=(x-l)*H;T.beginPath();T.moveTo(n,V.height);var w=this.smallTickHeight;x%this.largeTickInterval===0?w=this.largeTickHeight:x%this.mediumTickInterval===0&&(w=this.mediumTickHeight);T.lineTo(n,V.height-w);T.stroke();x%this.tickLabelInterval===0&&(T.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),T.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),T.fillText(QE(x),n+4,12),T.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),T.moveTo(n,0),T.lineTo(n,this.aboveRulerHeight),T.stroke())}T.restore()};
_.B.percentToHex_=function(V){V=Math.round(V*255).toString(16);V.length<2&&(V="0"+V);return V};
_.B.drawSpeedLines_=function(V,l,I){var H=V.getContext("2d");H.save();var T=Math.min(25,Math.abs(I)-15)/25,x=V.width*.3*T,n=V.width*-.3,w=V.width*1.3,N=this.aboveRulerHeight;V=V.height;var L=Math.round(4*T),e=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");e.length<7&&(e="#"+e.substring(1,4).repeat(2));var k=this.percentToHex_(.5+T/2);k=e+k;e+="00";if(T>0)for(T=0;T<L;T++){var X=n+Math.random()*(w-n),r=N+Math.random()*(V-N),E=x+l%x,D=H.createLinearGradient(X,r,X+E,r);
I<0?(D.addColorStop(0,k),D.addColorStop(.4,k),D.addColorStop(.9,e)):(D.addColorStop(.1,e),D.addColorStop(.6,k),D.addColorStop(1,k));H.strokeStyle=D;H.lineWidth=1;H.beginPath();H.moveTo(X,r);H.lineTo(X+E,r);H.stroke()}H.restore()};
_.B.getStoryboardForTime_=function(V,l,I){I===void 0&&(I=l.getNumberOfStoryboardLevels()-1);V=l.getStoryboardFrameIndex(V,I);return l.getStoryboardFrame(V,I)};
_.B.drawStoryboardImages_=function(V,l,I,H,T){if(!this.disabled){V=V.getContext("2d");var x=this.getStoryboardForTime_(0,l);if(x){var n=x.width/x.columns;x=x.height/x.rows;var w=n/x,N=this.rulerHeight*w;N=this.tickLabelInterval*(w<this.tickLabelInterval*T/this.rulerHeight?1/Math.floor(this.tickLabelInterval*T/N):Math.round(N/(this.tickLabelInterval*T)));var L=N*T,e=this.rulerHeight,k=L/this.rulerHeight,X=Math.floor(Math.max(0,I-N));for(X-=X%N;X<I+H;X+=N){var r=this.getStoryboardForTime_(X,l),E=this.getPreloadedStoryboard_(r.url);
if(E){var D=(X-I)*T,Z=this.aboveRulerHeight,S=r.column*n,p=r.row*x;if(w<k){var Vf=e/(L/w);r=n;Vf*=x;p+=(x-Vf)/2}else r=L/(e*w)*n,Vf=x,S+=(n-r)/2;V.drawImage(E,S,p,r,Vf,D,Z,L,e)}else this.fetchStoryboardImage_(r)}}}};
_.B.getPreloadedStoryboard_=function(V){return this.storyboardImages_.find(function(l){if(l.src==V)return!0;var I=l.src.indexOf(V);return I!=-1&&I==l.src.length-V.length})};
_.B.fetchStoryboardImage_=function(V){var l=this,I=this.getPreloadedStoryboard_(V.url),H=this.pendingStoryboardImages_[V.url];I||H!==void 0||(I=new Promise(function(T){var x=new Image(V.width,V.height);x.src=V.url;x.onload=function(){T(x)};
x.onerror=function(){T(null)}}),this.pendingStoryboardImages_[V.url]=I,I.then(function(T){T&&l.push("storyboardImages_",T);
return T}).finally(function(){delete l.pendingStoryboardImages_[V.url]}))};
_.B.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.B.timeToPixels_=function(V,l,I){V*=l;return I===void 0||I?V+"px":V};
_.B.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
var ZJ=y0j;ZJ.prototype.drawRuler_=ZJ.prototype.drawRuler_;ZJ.prototype.setUpCanvas_=ZJ.prototype.setUpCanvas_;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ZJ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],ZJ.prototype,"start",void 0);_.O([_.q({value:30}),_.a("design:type",Number)],ZJ.prototype,"end",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],ZJ.prototype,"visible",void 0);_.O([_.q(),_.a("design:type",Object)],ZJ.prototype,"player_",void 0);_.O([_.q(),_.a("design:type",Number)],ZJ.prototype,"tickSpacing",void 0);_.O([_.q(),_.a("design:type",Number)],ZJ.prototype,"windowSizeSec",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],ZJ.prototype,"rulerWidth",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],ZJ.prototype,"rulerShift",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],ZJ.prototype,"canvasReady_",void 0);_.O([_.q({value:function(){return[]}}),
_.a("design:type",Array)],ZJ.prototype,"storyboardImages_",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],ZJ.prototype,"disabled",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],ZJ.prototype,"forceRender_",void 0);_.O([_.q({value:1}),_.a("design:type",Number)],ZJ.prototype,"devicePixelRatio_",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],ZJ.prototype,"windowSpeed",void 0);
_.O([_.b("visible","devicePixelRatio_","rulerWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZJ.prototype,"setUpCanvas_",null);
_.O([_.b("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")],ZJ.prototype,"drawRuler_",null);ZJ=_.O([_.Lm({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],ZJ);
_.u(ZJ,"yt-clip-creation-scrubber-canvas",function(){if(zsC===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);zsC=V}V=zsC;return V},
{mode:2});var t_j;var r0n;var G05=function(){var V=_.M.apply(this,arguments)||this;V.start=0;V.end=30;V.visible=!1;V.draggingLeft_=!1;V.draggingRight_=!1;V.draggingRuler_=!1;V.draggingWindow_=!1;V.seekableStart=0;V.seekableEnd=0;V.rulerWidth_=0;V.rulerShift_=0;V.windowSlideSpeed=0;V.disabled=!1;V.initialized=!1;V.durationAccessibilityLabel="";V.activeLoopRange_=!1;V.rulerDragMouseStart_=0;V.rulerDragRulerStart_=0;V.rulerDragStartTime_=0;V.rulerDragEndTime_=0;V.dragMouseLastX_=0;V.scrollInterval_=null;V.scrubberVe_=null;V.boundHandlers_=
{};V.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return V};
_.t(G05,_.M);_.B=G05.prototype;
_.B.created=function(){var V=this;this.JSC$19803_playerEvents=new Map;this.JSC$19803_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19803_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19803_playerEvents.set("onStateChange",this.onStateChange_);var l={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(l).forEach(function(I){V.boundHandlers_[I]=l[I].bind(V)})};
_.B.attached=function(){this.activeLoopRange_=!1;_.h(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.h(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.eU(156731)};
_.B.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.h(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.h(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.B.onVisibilityChangedAction_=function(V){var l=this;V.visible&&!this.player_&&(V=_.u8())&&V.getPlayerPromise().then(function(I){l.setPlayer(I)})};
_.B.setPlayer=function(V){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19803_playerEvents);V&&(this.set("player_",V),this.ytPlayerListenerBehavior.listenToPlayerEvents(V,this.JSC$19803_playerEvents))};
_.B.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.B.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.B.beginHandleDrag_=function(V){this.disabled||(V.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=V.clientX,V.target===_.h(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():V.target===_.h(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.B.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.B.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.B.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.B.beginRulerDrag_=function(V){this.disabled||(V.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=V.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.B.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.B.beginWindowScroll_=function(){var V=this;this.scrollInterval_=setInterval(function(){var l=V.windowSlideSpeed;if(l=_.vTh(V.start,V.boundedRulerStartLimit_())?l-.1:_.vTh(V.end,V.boundedRulerEndLimit_())?l+.1:0){var I=V.capRulerOffset_(V.rulerShift_+l);I==V.rulerShift_?l=0:(V.set("rulerShift_",I),_.B$(V.hostElement,"set-fixed-length-range",{start:V.start+l,duration:V.end-V.start}))}V.set("windowSlideSpeed",l)},33)};
_.B.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.B.endDrag_=function(){this.logClick();var V=void 0;this.draggingRight_?V=this.end-1:this.draggingLeft_&&(V=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,V);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))};
_.B.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.B.updateRulerSize_=function(){this.set("rulerWidth_",_.h(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.B.handleMouseDrag_=function(V){V.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(V):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(V):this.draggingWindow_&&this.handleWindowDrag_(V))};
_.B.handleRulerDrag_=function(V){V=this.pixelsToTime_(V.clientX-this.rulerDragMouseStart_);V=this.capRulerOffset_(this.rulerDragRulerStart_-V);this.set("rulerShift_",V);var l=this.rulerDragStartTime_-(this.rulerDragRulerStart_-V);_.B$(this.hostElement,"set-fixed-length-range",{start:l,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-V)-l})};
_.B.handleWindowDrag_=function(V){var l=V.clientX-this.dragMouseLastX_;this.dragMouseLastX_=V.clientX;V=this.pixelsToTime_(l);_.B$(this.hostElement,"set-fixed-length-range",{start:this.start+V,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.B.capRulerOffset_=function(V){var l=this.seekableStart-this.pixelsToTime_(16),I=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(l,V),I)};
_.B.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.B.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.B.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.B.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.B.handleWindowHandleDrag_=function(V){var l=V.clientX-this.dragMouseLastX_;this.dragMouseLastX_=V.clientX;V=this.pixelsToTime_(l);if(this.draggingLeft_){var I=this.start+V;var H=this.end}else this.draggingRight_&&(I=this.start,H=this.end+V);_.B$(this.hostElement,"set-range",{start:I,end:H,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.B.onVideoProgress_=function(V){this.disabled||(V=this.timeToPixels_(V-this.rulerShift_,this.tickSpacing_),_.h(this.hostElement).querySelector("#playhead").style.transform="translateX("+V+")")};
_.B.onClipCreationDisable_=function(){this.endDrag_()};
_.B.timeToPixels_=function(V,l,I){V*=l;return I===void 0||I?V+"px":V};
_.B.pixelsToTime_=function(V){return V/this.tickSpacing_};
_.B.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.B.centerRuler_=function(V,l,I){this.set("rulerShift_",this.capRulerOffset_(V+(l-V)/2-I/2))};
_.B.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.B.updateLoopRange_=function(V,l,I,H,T,x,n){V&&(l&&H&&!I?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(V.pauseVideo(),V.seekTo(T,!1,void 0,void 0,50)):this.draggingRight_?(V.pauseVideo(),V.seekTo(x-.1,!1,void 0,void 0,50)):(n!==void 0?V.seekTo(n,!0,void 0,void 0,50):(l=V.getCurrentTime(),l<T||l>x?V.seekTo(T,!0,void 0,void 0,50):V.seekTo(l,!0,void 0,void 0,50)),V.playVideo()),V.setLoopRange({startTimeMs:T*1E3,endTimeMs:x*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(V.getCurrentTime())):
this.activeLoopRange_&&(V.setLoopRange(null),this.activeLoopRange_=!1))};
_.B.updateHandles_=function(){_.h(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.h(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.B.updateRuler_=function(){var V=this.end,l=this.start,I=this.draggableStartLimit_(),H=this.draggableEndLimit_();(l<I-.001||V>H+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.B.computeDurationLabel_=function(V,l){return V?V.replace("$clip_length",parseFloat(l).toFixed(1)):""};
_.B.computeDuration_=function(V,l){return this.isValidTime_(V)&&this.isValidTime_(l)&&V<l?l-V:0};
_.B.isValidTime_=function(V){return isNaN(parseFloat(V))||V<0?!1:this.player_?V>=this.seekableStart&&V<=this.seekableEnd:!0};
_.B.computeWindowSizeSec_=function(V,l,I){return Math.min((V||12E4)/1E3,I-l)};
_.B.computeTickSpacing_=function(V,l){return l?l/V:1};
_.B.onDragStateChanged_=function(){_.B$(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.B.centerRangeOnTime_=function(V){var l=this.duration;V=CEM(V-l/2,l,this.seekableStart,this.seekableEnd);_.B$(this.hostElement,"set-fixed-length-range",{start:V.start,duration:V.end-V.start})};
_.B.nearlyLessThan_=function(V,l,I){return V+(I===void 0?1E-6:I)<l};
_.B.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var V=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(V,this.start)||this.nearlyLessThan_(this.end,V))&&this.centerRangeOnTime_(V)}};
_.B.onStateChange_=function(V){this.visible&&!this.disabled&&V==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.B.computeDragState_=function(V,l,I,H){return V?"left":l?"right":I?"ruler":H?"window":"none"};
_.B.logClick=function(){var V=_.oa(),l=_.JO();V&&l&&this.scrubberVe_&&(_.z("combine_ve_grafts")?_.Ug(_.x7(),this.scrubberVe_,l):_.MJ(V,l,this.scrubberVe_),_.uJ(V,this.scrubberVe_))};
var Sr=G05;Sr.prototype.onDragStateChanged_=Sr.prototype.onDragStateChanged_;Sr.prototype.updateRuler_=Sr.prototype.updateRuler_;Sr.prototype.updateHandles_=Sr.prototype.updateHandles_;Sr.prototype.onUpdateLoopRange=Sr.prototype.onUpdateLoopRange;Sr.prototype.onInitializedChanged_=Sr.prototype.onInitializedChanged_;Sr.prototype.onVisibleChanged_=Sr.prototype.onVisibleChanged_;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Sr.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",Object)],Sr.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"start",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"end",void 0);_.O([_.q({computed:"computeDuration_(start, end)"}),_.a("design:type",Number)],Sr.prototype,"duration",void 0);
_.O([_.q(),_.a("design:type",String)],Sr.prototype,"lengthTemplate",void 0);_.O([_.q({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.a("design:type",String)],Sr.prototype,"durationLabel",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"visible",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"player_",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"draggingLeft_",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"draggingRight_",void 0);
_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"draggingRuler_",void 0);_.O([_.q({value:!1}),_.a("design:type",Object)],Sr.prototype,"draggingWindow_",void 0);_.O([_.q({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.a("design:type",Number)],Sr.prototype,"tickSpacing_",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"seekableStart",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"seekableEnd",void 0);
_.O([_.q(),_.a("design:type",Number)],Sr.prototype,"windowSizeMs",void 0);_.O([_.q({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.a("design:type",Number)],Sr.prototype,"windowSizeSec_",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"rulerWidth_",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"rulerShift_",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"windowSlideSpeed",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Sr.prototype,"disabled",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"initialized",void 0);_.O([_.q(),_.a("design:type",Object)],Sr.prototype,"durationAccessibilityLabel",void 0);_.O([_.q({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.a("design:type",String)],Sr.prototype,"dragState",void 0);
_.O([_.b("visible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sr.prototype,"onVisibleChanged_",null);_.O([_.b("initialized"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sr.prototype,"onInitializedChanged_",null);_.O([_.b("player_","visible","disabled","initialized","start","end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sr.prototype,"onUpdateLoopRange",null);
_.O([_.b("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sr.prototype,"updateHandles_",null);_.O([_.b("start","end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sr.prototype,"updateRuler_",null);
_.O([_.b("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sr.prototype,"onDragStateChanged_",null);Sr=_.O([_.Lm({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Sr);
_.u(Sr,"yt-clip-creation-scrubber-view",function(){if(r0n===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;t_j===void 0&&(t_j=document.createElement("template"));var H=t_j;I.call(l,H.content.cloneNode(!0),V.content.firstChild);r0n=V}V=r0n;return V},{mode:2});var Eih=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};V.startHighlightTimeout=0;V.endHighlightTimeout=0;return V};
_.t(Eih,_.M);_.B=Eih.prototype;_.B.attached=function(){var V=this;this.startInput.addEventListener("input",function(l){return V.handleStartInput_(l)});
this.endInput.addEventListener("input",function(l){return V.handleEndInput_(l)});
this.startInput.addEventListener("focusout",function(l){return V.handleStartBlur_(l)});
this.endInput.addEventListener("focusout",function(l){return V.handleEndBlur_(l)})};
_.B.setPlayer=function(V){this.set("player_",V)};
_.B.onSetFixedLengthRange_=function(V){var l=V.detail;V=l.start;var I=l.duration,H=l.startLimit;l=l.endLimit;H||(H=this.seekableStart_);l||(l=this.seekableEnd_);V=CEM(V,I,H,l);this.start=V.start;this.end=V.end};
_.B.onSetRange_=function(V){var l=V.detail;V=l.start;var I=l.end,H=l.startLimit;l=l.endLimit;H||(H=this.seekableStart_);l||(l=this.seekableEnd_);if(V=arY(V,I,H,l,this.minLengthSec,this.maxLengthSec))this.start=V.start,this.end=V.end};
_.B.updateInputs_=function(){var V=this.end,l=this.start;this.startInput.focused||(this.startInput.value=QE(l,!0));this.endInput.focused||(this.endInput.value=QE(V,!0))};
_.B.handleStartInput_=function(V){V=OQO(V.target.value);if(V===null)this.set("startValid",!1);else{var l=this.end,I=arY(V,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("endWillUpdate",I.end!==l),this.set("startValid",I.start===V)):this.set("startValid",!1)}};
_.B.handleEndInput_=function(V){V=OQO(V.target.value);if(V===null)this.set("endValid",!1);else{var l=this.start,I=frO(this.start,V,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("startWillUpdate",I.start!==l),this.set("endValid",I.end===V)):this.set("endValid",!1)}};
_.B.handleStartBlur_=function(V){V=OQO(V.target.value);V===null?this.startInput.value=QE(this.start,!0):this.forceUpdateInputs_(arY(V,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.B.handleEndBlur_=function(V){V=OQO(V.target.value);V===null?this.endInput.value=QE(this.end,!0):this.forceUpdateInputs_(frO(this.start,V,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.B.forceUpdateInputs_=function(V){V&&(this.start=V.start,this.end=V.end);this.startInput.value=QE(this.start,!0);this.endInput.value=QE(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.B.initializeClipRange_=function(){var V=this.seekableEnd_,l=this.seekableStart_,I=this.visible_,H=this.player_;if(!H||!I||l===null||!V)this.set("initialized",!1);else if(!this.initialized){var T=H.getCurrentTime(),x=this.getDefaultLengthSec_();I=H.getVideoData();var n=H.getPlayerState()==1,w=I.isLive;x=Math.min(x,V-l);T=Math.max(0,T);V=w?frO(T-x,T,l,V,this.minLengthSec,this.maxLengthSec):n?CEM(T-x/2,x,l,V):CEM(T,x,l,V);this.start=V.start;this.end=V.end;this.set("initialized",!0);I.isLive&&H.seekTo(V.start);
this.startInput.value=QE(this.start,!0);this.endInput.value=QE(this.end,!0)}};
_.B.onStartChanged_=function(){var V=this;_.B$(this.hostElement,"start-changed",{start:this.start});var l;isNaN((l=this.oldStart)!=null?l:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){V.set("highlightStart",!1);V.startHighlightTimeout=0;V.oldStart=V.start},3E3))};
_.B.onEndChanged_=function(){var V=this;_.B$(this.hostElement,"end-changed",{end:this.end});var l;isNaN((l=this.oldEnd)!=null?l:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){V.set("highlightEnd",!1);V.endHighlightTimeout=0;V.oldEnd=V.end},3E3))};
_.B.onVisibilityChangedAction_=function(V){var l=this;this.set("visible_",V.visible);this.visible_&&!this.player_&&(V=_.u8())&&V.getPlayerPromise().then(function(I){l.setPlayer(I)})};
_.B.computeMinLengthSec_=function(V){return V/1E3||5};
_.B.computeMaxLengthSec_=function(V){return V/1E3||60};
_.B.computeDefaultLengthSec_=function(V){return V/1E3};
_.B.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.B.computeSeekableStart_=function(V,l){return V&&l?V.getProgressState(1).seekableStart:0};
_.B.computeSeekableEnd_=function(V,l){return V&&l?V.getProgressState(1).seekableEnd:0};
_.B.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.B.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.B.onDragState_=function(V){this.set("highlightStart",V.detail.startChanging);this.set("highlightEnd",V.detail.endChanging)};
var Ro=Eih;Ro.prototype.onDragState_=Ro.prototype.onDragState_;Ro.prototype.onEndChanged_=Ro.prototype.onEndChanged_;Ro.prototype.onStartChanged_=Ro.prototype.onStartChanged_;Ro.prototype.initializeClipRange_=Ro.prototype.initializeClipRange_;Ro.prototype.updateInputs_=Ro.prototype.updateInputs_;Ro.prototype.onSetRange_=Ro.prototype.onSetRange_;Ro.prototype.onSetFixedLengthRange_=Ro.prototype.onSetFixedLengthRange_;
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Ro.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ro.prototype,"data",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],Ro.prototype,"start",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],Ro.prototype,"startValid",void 0);
_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Ro.prototype,"startWillUpdate",void 0);_.O([_.q({value:30}),_.a("design:type",Number)],Ro.prototype,"end",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],Ro.prototype,"endValid",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Ro.prototype,"endWillUpdate",void 0);_.O([_.q({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.a("design:type",Number)],Ro.prototype,"minLengthSec",void 0);
_.O([_.q({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.a("design:type",Number)],Ro.prototype,"maxLengthSec",void 0);_.O([_.q({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.a("design:type",Number)],Ro.prototype,"defaultLengthSec",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Ro.prototype,"visible_",void 0);_.O([_.q(),_.a("design:type",Object)],Ro.prototype,"player_",void 0);
_.O([_.q({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.a("design:type",Number)],Ro.prototype,"seekableStart_",void 0);_.O([_.q({computed:"computeSeekableEnd_(player_, visible_)"}),_.a("design:type",Number)],Ro.prototype,"seekableEnd_",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Ro.prototype,"initialized",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Ro.prototype,"disabled",void 0);
_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Ro.prototype,"highlightStart",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Ro.prototype,"highlightEnd",void 0);_.O([_.Ij("#start"),_.a("design:type",HTMLInputElement)],Ro.prototype,"startInput",void 0);_.O([_.Ij("#end"),_.a("design:type",HTMLInputElement)],Ro.prototype,"endInput",void 0);
_.O([_.W("set-fixed-length-range"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ro.prototype,"onSetFixedLengthRange_",null);_.O([_.W("set-range"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ro.prototype,"onSetRange_",null);_.O([_.b("start","end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ro.prototype,"updateInputs_",null);
_.O([_.b("player_","visible_","seekableStart_","seekableEnd_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ro.prototype,"initializeClipRange_",null);_.O([_.b("start"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ro.prototype,"onStartChanged_",null);_.O([_.b("end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ro.prototype,"onEndChanged_",null);
_.O([_.W("clips-drag-state"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ro.prototype,"onDragState_",null);Ro=_.O([_.Lm({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Ro);
_.u(Ro,"yt-clip-creation-scrubber-renderer",function(){if(XTn===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Fmx===void 0&&(Fmx=document.createElement("template"));var H=Fmx;I.call(l,H.content.cloneNode(!0),V.content.firstChild);XTn=V}V=XTn;return V},{mode:2});var J0O=function(){var V=_.M.apply(this,arguments)||this;V.player_=null;V.JSC$19817_playerEvents=new Map;V.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return V};
_.t(J0O,_.M);_.B=J0O.prototype;_.B.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"}}}};
_.B.created=function(){this.JSC$19817_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19817_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19817_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19817_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.B.detached=function(){this.setPlayer(null)};
_.B.onVisibilityChangedAction_=function(V){var l=this,I;if((I=this.data)==null?0:I.externalVideoId){var H;this.videoId=(H=this.data)==null?void 0:H.externalVideoId}this.getPlayer().then(function(T){if(V.visible)l.returnTime=T.getCurrentTime(),l.isAtLiveHead=T.getProgressState().isAtLiveHead;else{var x=l.returnTime;l.isAtLiveHead&&(x=Number.POSITIVE_INFINITY);T.seekTo(x,void 0,void 0,void 0,51)}})};
_.B.getPlayer=function(){var V=this;if(!this.player_){var l=_.u8();if(l)return l.getPlayerPromise().then(function(I){V.setPlayer(I);return I})}return Promise.resolve(this.player_)};
_.B.setPlayer=function(V){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19817_playerEvents);if(V){this.player_=V;var l;((l=this.data)==null?0:l.externalVideoId)||this.set("videoId",V.getVideoData().video_id||"");var I;(V==null?void 0:(I=V.getPresentingPlayerType)==null?void 0:I.call(V))===2&&(this.set("isAdPlaying",!0),_.xB(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(V,this.JSC$19817_playerEvents)}};
_.B.ready=function(){_.h(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.B.onTitleChanged_=function(V){this.set("titleValue",V.detail.title)};
_.B.onStartChanged_=function(V){this.set("start",V.detail.start)};
_.B.onEndChanged_=function(V){this.set("end",V.detail.end)};
_.B.onTitleValidChanged_=function(V){this.set("titleValid",V.detail.valid)};
_.B.onStartValidChanged_=function(V){this.set("startValid",V.detail.valid)};
_.B.onEndValidChanged_=function(V){this.set("endValid",V.detail.valid)};
_.B.onVideoDataChange_=function(){var V;if((V=this.data)==null||!V.externalVideoId){var l;this.set("videoId",((l=this.player_)==null?void 0:l.getVideoData().video_id)||"")}};
_.B.computeFormValid_=function(V,l,I,H){return!!(V&&l&&I&&H)};
_.B.computeCancelButton_=function(V,l,I){return V&&_.y(V,_.RG)?{buttonRenderer:Object.assign({},_.y(V,_.RG),{isDisabled:l||I})}:null};
_.B.computeSubmitButton_=function(V,l,I){return V&&_.y(V,_.RG)?{buttonRenderer:Object.assign({},_.y(V,_.RG),{command:void 0,isDisabled:!this.formValid||l||I})}:null};
_.B.computeSubmitCommand_=function(V){return V||null};
_.B.onSubmit_=function(V){var l=this;V.stopPropagation();V.preventDefault();this.submitCommand_&&(V={},V.comment_text=this.titleValue,V.clip_external_video_id=this.videoId,V.clip_offset_ms=parseInt(this.start*1E3,10),V.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.$B(this.hostElement,[this.submitCommand_,V]).then(function(){l.set("isLoading_",!1)},function(){l.set("isLoading_",!1)}))};
_.B.playerAdStartHandler_=function(){_.xB(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.B.playerAdEndHandler_=function(){_.xB(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.B.onVideoProgress_=function(){var V=this;this.getPlayer().then(function(l){var I,H=(l==null?void 0:(I=l.getPresentingPlayerType)==null?void 0:I.call(l))===2;V.isAdPlaying!==H&&(H?V.playerAdStartHandler_():V.playerAdEndHandler_())})};
var QS=J0O;QS.prototype.onEndValidChanged_=QS.prototype.onEndValidChanged_;QS.prototype.onStartValidChanged_=QS.prototype.onStartValidChanged_;QS.prototype.onTitleValidChanged_=QS.prototype.onTitleValidChanged_;QS.prototype.onEndChanged_=QS.prototype.onEndChanged_;QS.prototype.onStartChanged_=QS.prototype.onStartChanged_;QS.prototype.onTitleChanged_=QS.prototype.onTitleChanged_;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],QS.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",Object)],QS.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],QS.prototype,"data",void 0);_.O([_.q({value:""}),_.a("design:type",String)],QS.prototype,"titleValue",void 0);
_.O([_.q({value:!1}),_.a("design:type",Boolean)],QS.prototype,"titleValid",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],QS.prototype,"start",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],QS.prototype,"startValid",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],QS.prototype,"end",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],QS.prototype,"endValid",void 0);_.O([_.q({value:""}),_.a("design:type",String)],QS.prototype,"videoId",void 0);
_.O([_.q({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.a("design:type",Boolean)],QS.prototype,"formValid",void 0);_.O([_.q({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.a("design:type",Object)],QS.prototype,"submitButton_",void 0);_.O([_.q({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.a("design:type",Object)],QS.prototype,"submitCommand_",void 0);
_.O([_.q({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.a("design:type",Object)],QS.prototype,"cancelButton_",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],QS.prototype,"isLoading_",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],QS.prototype,"isAdPlaying",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],QS.prototype,"returnTime",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],QS.prototype,"isAtLiveHead",void 0);
_.O([_.W("title-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],QS.prototype,"onTitleChanged_",null);_.O([_.W("start-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],QS.prototype,"onStartChanged_",null);_.O([_.W("end-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],QS.prototype,"onEndChanged_",null);
_.O([_.W("title-valid-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],QS.prototype,"onTitleValidChanged_",null);_.O([_.W("start-valid-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],QS.prototype,"onStartValidChanged_",null);_.O([_.W("end-valid-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],QS.prototype,"onEndValidChanged_",null);
QS=_.O([_.Lm({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],QS);
_.u(QS,"yt-clip-creation-renderer",function(){if(k05===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;es5===void 0&&(es5=document.createElement("template"));var H=es5;I.call(l,H.content.cloneNode(!0),V.content.firstChild);k05=V}V=k05;return V},{mode:2});var oiY=function(){return _.M.apply(this,arguments)||this};
_.t(oiY,_.M);oiY.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"}}}};
oiY.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(V){return V.hasOwnProperty("clipCreationRenderer")})&&_.xB(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
var c3=oiY;c3.prototype.onPanelContentVisibleChanged=c3.prototype.onPanelContentVisibleChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.RU.YtVisibilityBehavior),_.a("design:type",Object)],c3.prototype,"ytVisibilityBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],c3.prototype,"ytdReduxBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],c3.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],c3.prototype,"panelContentVisible",void 0);_.O([_.b("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],c3.prototype,"onPanelContentVisibleChanged",null);c3=_.O([_.A({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],c3);
_.u(c3,"ytd-clip-section-renderer",function(){if(wTY!==void 0)return wTY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return wTY=V},{mode:1});var hsq;var P$O=function(){return _.M.apply(this,arguments)||this};
_.t(P$O,_.M);_.B=P$O.prototype;
_.B.onKeyDown=function(V){if(this.snippetElements.length!==0&&(V=V.keyCode,V===38||V===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);V===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.cA(this.highlightedIndex,-1,this.snippetElements.length);V=this.snippetElements.length;var l=this.highlightedIndex%V;this.highlightedIndex=l*V<0?l+V:l;V=this.snippetElements[this.highlightedIndex];this.highlightSnippet(V);this.ensureVisible(V)}};
_.B.onKeyUp=function(V){var l=this;Wxj(V)&&(V.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.r0.cancelJob(this.inputTimerId),this.inputTimerId=_.r0.addLowPriorityJob(function(){l.typedValue&&(l.fetchSnippets(l.typedValue),l.logInputGesture(l.data))},1E3))};
_.B.onClick=function(V){(V=_.Gfo(V.target,null,"snippet-item"))&&this.selectSnippet(V)};
_.B.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.B.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.B.ready=function(){var V=this;this.inputElement.addEventListener("focus",function(){V.snippetsWrapper.style.removeProperty("display")})};
_.B.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.B.getSourceTimelines=function(){if(!this.data)return[];var V=[];if(this.data.searchInVideoSources)for(var l=_.U(this.data.searchInVideoSources),I=l.next();!I.done;I=l.next())I=I.value,I==="SEARCH_IN_VIDEO_SOURCE_ASR"?V.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):I==="SEARCH_IN_VIDEO_SOURCE_OCR"&&V.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return V};
_.B.fetchSnippets=function(V){var l=_.xB(this.hostElement,"yt-get-current-video-id-action")[0],I=this.getSourceTimelines();V={getSearchInVideoCommand:{externalVideoId:l,query:V!=null?V:"",sourceTimelines:I},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.F().resolve(_.aw).resolveCommand(V,{form:{element:this.hostElement}})};
_.B.filterSnippets=function(V,l){var I=this;if(l){this.filteredSnippets=(0,_.EL.unsafeClone)(V);var H=RegExp(_.PU1(l),"i");this.filteredSnippets=this.filteredSnippets.filter(function(n){return H.test(I.ytRendererBehavior.getSimpleString(n.snippet))});
V=_.U(this.filteredSnippets);for(var T=V.next();!T.done;T=V.next()){T=T.value;var x=this.ytRendererBehavior.getSimpleString(T.snippet);T.snippet={runs:[{text:x.substring(0,x.toLowerCase().indexOf(l))},{text:x.substring(x.toLowerCase().indexOf(l),x.toLowerCase().indexOf(l)+l.length),bold:!0},{text:x.substring(x.toLowerCase().indexOf(l)+l.length,x.length)}]}}}else this.filteredSnippets=V};
_.B.onUpdateSearchInVideoResults=function(V){if(!(this.snippets.length>0)){var l,I,H;if((H=(l=_.y(V,gnh))==null?void 0:(I=l.results)==null?void 0:I.length)!=null&&H){var T;this.filteredSnippets=this.snippets=((T=_.y(V,gnh))==null?void 0:T.results).map(function(x){var n,w,N;return{startMs:x==null?void 0:(n=x.searchInVideoResultRenderer)==null?void 0:n.startMs,startTimeText:x==null?void 0:(w=x.searchInVideoResultRenderer)==null?void 0:w.startTimeText,snippet:x==null?void 0:(N=x.searchInVideoResultRenderer)==
null?void 0:N.snippet}})}}};
_.B.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};
_.B.highlightSnippet=function(V){V.classList.add("highlighted")};
_.B.removeSnippetHighlight=function(V){V.classList.remove("highlighted")};
_.B.selectSnippet=function(V){this.typedValue=String(V.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(V);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.B.ensureVisible=function(V){var l=this.snippetsWrapper.scrollTop,I=l+this.snippetsWrapper.clientHeight,H=V.offsetTop-this.snippetsWrapper.offsetTop;V=H+V.clientHeight;H<l?this.snippetsWrapper.scrollTop-=l-H:V>I&&(this.snippetsWrapper.scrollTop+=V-I)};
_.B.seekPlayer=function(V){var l,I;return _.d(function(H){if(H.nextAddress==1){if(!V)return H.jumpTo(0);l=Number(V.dataset.startOffset);return _.K(H,_.vu().getPlayerPromise(),3)}I=H.yieldResult;I.seekTo(l/1E3,!0);I.wakeUpControls();_.FU(H)})};
_.B.logInputGesture=function(V){var l=_.oa();l&&(V==null?0:V.trackingParams)&&_.v$(l,_.dj(V.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.B.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("typed-value-changed",this.typedValue))};
_.B.updateTypedValueFromBinding=function(V){this.typedValue=V.currentTarget.value};
var W3=P$O;W3.prototype.typedValueChangedForBinding=W3.prototype.typedValueChangedForBinding;W3.prototype.dataChanged=W3.prototype.dataChanged;W3.prototype.panelContentVisibleChanged=W3.prototype.panelContentVisibleChanged;W3.prototype.onClick=W3.prototype.onClick;W3.prototype.onKeyUp=W3.prototype.onKeyUp;W3.prototype.onKeyDown=W3.prototype.onKeyDown;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],W3.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],W3.prototype,"data",void 0);_.O([_.q({value:[]}),_.a("design:type",Array)],W3.prototype,"snippets",void 0);_.O([_.q({value:[]}),_.a("design:type",Array)],W3.prototype,"filteredSnippets",void 0);_.O([_.q({value:[]}),_.a("design:type",Array)],W3.prototype,"snippetElements",void 0);
_.O([_.Ij("#siv-input"),_.a("design:type",HTMLElement)],W3.prototype,"inputElement",void 0);_.O([_.Ij("#siv-snippets-wrapper"),_.a("design:type",HTMLElement)],W3.prototype,"snippetsWrapper",void 0);_.O([_.q(),_.a("design:type",String)],W3.prototype,"typedValue",void 0);_.O([_.q({value:-1}),_.a("design:type",Number)],W3.prototype,"highlightedIndex",void 0);_.O([_.W("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[_.Ft]),_.a("design:returntype")],W3.prototype,"onKeyDown",null);
_.O([_.W("keyup"),_.a("design:type",Function),_.a("design:paramtypes",[_.Ft]),_.a("design:returntype")],W3.prototype,"onKeyUp",null);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],W3.prototype,"onClick",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],W3.prototype,"panelContentVisible",void 0);
_.O([_.b("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],W3.prototype,"panelContentVisibleChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],W3.prototype,"dataChanged",null);_.O([_.b("typedValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],W3.prototype,"typedValueChangedForBinding",null);
W3=_.O([_.A({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],W3);
_.u(W3,"ytd-search-in-video-renderer",function(){if(hsq!==void 0)return hsq;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return hsq=V},{mode:1});var DyV;var b0=function(){return _.M.apply(this,arguments)||this};
_.t(b0,_.M);b0.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
b0.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]]"}}}}}};
b0.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var V,l,I,H,T=(l=_.y((V=this.data)==null?void 0:V.onClickCommand,_.Hgw))==null?void 0:(I=l.item)==null?void 0:(H=I.notificationTextRenderer)==null?void 0:H.successResponseText;T&&_.Ahf(this.hostElement,T)}};
_.vI.Object.defineProperties(b0.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H;return this.isProductPlaceholder&&((V=this.data)==null?void 0:(l=V.hiddenProductOptions)==null?void 0:l.showDropCountdown)&&!!((I=this.data)==null?0:(H=I.hiddenProductOptions)==null?0:H.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var V;return!this.isProductPlaceholder&&!((V=this.data)==null?0:V.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var V,l;return!((V=this.data)==null?0:V.priceReplacementText)&&!((l=this.data)==null||!l.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
var qc=b0;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],qc.prototype,"componentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],qc.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("isProductPlaceholder"),_.a("design:type",Object),_.a("design:paramtypes",[])],qc.prototype,"useCenterLayoutContainer",null);_.O([_.q({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],qc.prototype,"buttonOverride",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],qc.prototype,"isProductPlaceholder",null);
_.O([_.Q("isProductPlaceholder"),_.a("design:type",Object),_.a("design:paramtypes",[])],qc.prototype,"showDropCountdown",null);_.O([_.Q("isProductPlaceholder","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],qc.prototype,"showBrandName",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],qc.prototype,"showPriceReplacementText",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],qc.prototype,"showPrice",null);
_.O([_.Q("isProductPlaceholder"),_.a("design:type",Object),_.a("design:paramtypes",[])],qc.prototype,"showMetadata",null);qc=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],qc);
_.u(qc,"ytd-product-list-item-renderer",function(){if(DyV!==void 0)return DyV;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return DyV=V},{mode:1});var ZN6;var SSj=function(){return _.M.apply(this,arguments)||this};
_.t(SSj,_.M);SSj.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
SSj.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
SSj.prototype.panelContentVisibleChanged=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return V.playerApi?I.jumpTo(2):_.K(I,_.vu().getPlayerPromise(),3);I.nextAddress!=2&&(V.playerApi=I.yieldResult);(l=V.playerApi)==null||l.productsInVideoVisibilityUpdated(!!V.panelContentVisible);_.FU(I)})};
var Mc=SSj;Mc.prototype.panelContentVisibleChanged=Mc.prototype.panelContentVisibleChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Mc.prototype,"panelContentVisible",void 0);_.O([_.q(),_.a("design:type",Object)],Mc.prototype,"data",void 0);
_.O([_.b("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],Mc.prototype,"panelContentVisibleChanged",null);Mc=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Mc);
_.u(Mc,"ytd-product-list-renderer",function(){if(ZN6!==void 0)return ZN6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return ZN6=V},{mode:1});var RsY;var QxM=function(){var V=_.M.apply(this,arguments)||this;V.hideTimestamps=!!_.N9("hide-transcript-timestamps");V.currentCueIndex=-1;V.flatCues=[];V.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};V.TEST_ONLY={getFlatCues:function(){return V.flatCues}};
return V};
_.t(QxM,_.M);_.B=QxM.prototype;_.B.hideTimestampsChanged=function(){_.wd("hide-transcript-timestamps",this.hideTimestamps)};
_.B.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.B.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.B.dataChanged=function(){var V;if((V=this.data)!=null&&V.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;V=_.U(this.data.cueGroups);for(var l=V.next();!l.done;l=V.next()){l=_.U(_.y(l.value,mVx).cues);for(var I=l.next();!I.done;I=l.next())this.flatCues.push(Number(_.y(I.value,idd).startOffsetMs))}}};
_.B.onYtPlayerTimeChanged=function(V){if(!(V<0)){for(var l=this.currentCueIndex,I=l;;){var H=I>=0?this.flatCues[I]/1E3:-1;if(V+.5<H)--I;else if(H=I+1<this.flatCues.length?this.flatCues[I+1]/1E3:Infinity,V+.5>H)I+=1;else break}I!==l&&(l>=0&&((V=this.getCueElement(l))&&V.classList.remove("active"),(l=this.getCueGroupElement(l))&&l.classList.remove("active")),(l=this.getCueElement(I))&&l.classList.add("active"),(l=this.getCueGroupElement(I))&&l.classList.add("active"),this.currentCueIndex=I,this.isHovered||
this.scrollElementToTop(I))}};
_.B.scrollElementToTop=function(V){V=this.getCueElement(V>=3?V-3:0);this.hostElement.scrollTop=Math.min(V.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.B.getCueElement=function(V){return _.h(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[V]+'"]')};
_.B.getCueGroupElement=function(V){return(V=this.getCueElement(V))&&V.parentElement?V.parentElement.parentElement:null};
_.B.onTap=function(V){var l=_.qv(V);V.target.classList.contains("cue")&&this.seekCueElement(l)};
_.B.onKeyPress=function(V){V.keyCode==13&&(V=_.Gfo(V.target,null,"cue"))&&this.seekCueElement(V)};
_.B.seekCueElement=function(V){V=Number(V.getAttribute("start-offset"));_.xB(this.hostElement,"yt-transcript-player-seek",[V/1E3])};
_.B.onMouseEnter=function(){this.isHovered=!0};
_.B.onMouseLeave=function(){this.isHovered=!1};
var sU=QxM;sU.prototype.onMouseLeave=sU.prototype.onMouseLeave;sU.prototype.onMouseEnter=sU.prototype.onMouseEnter;sU.prototype.onKeyPress=sU.prototype.onKeyPress;sU.prototype.onTap=sU.prototype.onTap;sU.prototype.dataChanged=sU.prototype.dataChanged;sU.prototype.hideTimestampsChanged=sU.prototype.hideTimestampsChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],sU.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],sU.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],sU.prototype,"hideTimestamps",void 0);_.O([_.q(),_.a("design:type",Boolean)],sU.prototype,"isHovered",void 0);_.O([_.b("hideTimestamps"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sU.prototype,"hideTimestampsChanged",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sU.prototype,"dataChanged",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],sU.prototype,"onTap",null);_.O([_.W("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],sU.prototype,"onKeyPress",null);
_.O([_.W("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sU.prototype,"onMouseEnter",null);_.O([_.W("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sU.prototype,"onMouseLeave",null);sU=_.O([_.A({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],sU);
_.u(sU,"ytd-transcript-body-renderer",function(){if(RsY!==void 0)return RsY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return RsY=V},{mode:1});var c0f;var Wmx=function(){var V=_.M.apply(this,arguments)||this;V.darkerPanels=_.z("web_watch_darker_panels");return V};
_.t(Wmx,_.M);Wmx.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
var pr=Wmx;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pr.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],pr.prototype,"darkerPanels",void 0);pr=_.O([_.A({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],pr);
_.u(pr,"ytd-transcript-footer-renderer",function(){if(c0f!==void 0)return c0f;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return c0f=V},{mode:1});var bN6;var qSq;var M_q=function(){var V=_.M.apply(this,arguments)||this;V.systemIcons=_.z("kevlar_system_icons");V.showClearButton=!1;return V};
_.t(M_q,_.M);_.B=M_q.prototype;_.B.handleInput=function(V){var l=this;V.target.value.length?_.Go(this,"ytdTranscriptSearchBoxSearch",function(){l.emitSearchEvent(V)},500):(_.FzW(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=V.target.value.length>0};
_.B.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.B.handleClick=function(){var V,l=(V=this.data)==null?void 0:V.trackingParams;l&&_.dF(_.x7(),l)};
_.B.handleClear=function(){_.FzW(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var V,l,I=(l=_.y((V=this.data)==null?void 0:V.clearButton,_.RG))==null?void 0:l.trackingParams;I&&_.dF(_.x7(),I);this.clear()};
_.B.emitSearchEvent=function(V){_.B$(this.hostElement,"yt-transcript-search-box-search",{query:V.target.value});var l,I;(V=(I=_.y((l=this.data)==null?void 0:l.searchButton,_.RG))==null?void 0:I.trackingParams)&&_.dF(_.x7(),V)};
_.B.emitClearEvent=function(){_.B$(this.hostElement,"yt-transcript-search-box-clear")};
_.vI.Object.defineProperties(M_q.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.h(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
var Ab=M_q;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ab.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ab.prototype,"systemIcons",void 0);Ab=_.O([_.A({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Ab);
_.u(Ab,"ytd-transcript-search-box-renderer",function(){if(qSq!==void 0)return qSq;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return qSq=V},{mode:1});var sxp;var pTj;var u0=function(){return _.M.apply(this,arguments)||this};
_.t(u0,_.M);u0.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var V,l;this.sectionHeaderAriaLabel=(V=this.data)==null?void 0:(l=V.accessibility)==null?void 0:l.accessibilityData.label}};
u0.prototype.fireSelectedEvent=function(V){_.B$(this.hostElement,"ytd-transcript-section-header",{startMs:V})};
u0.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
u0.prototype.handleKeyPress=function(V){this.data&&V.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.vI.Object.defineProperties(u0.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=(V=this.data)==null?void 0:V.enableTappableTranscriptHeader)!=null?l:!1}}});
var v3=u0;v3.prototype.dataChanged=v3.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],v3.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],v3.prototype,"sectionHeaderAriaLabel",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v3.prototype,"enableTappableTranscriptHeader",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v3.prototype,"dataChanged",null);
v3=_.O([_.A({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],v3);
_.u(v3,"ytd-transcript-section-header-renderer",function(){if(pTj!==void 0)return pTj;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return pTj=V},{mode:1});var A05;var ukj;var vip=function(){var V=_.M.apply(this,arguments)||this;V.isEditMode=!1;V.touchCaptionsEnabled=!1;V.deleteCaptionCorrectionPopupCommand=null;V.voteCaptionCorrectionPopupCommand=null;V.roundedContainer=!0;V.mouseOver=!1;V.textChanged=!1;V.messages={suggest_correction:_.LT("suggest_correction",void 0,"Edit caption"),suggested_caption:_.LT("suggested_caption",void 0,"Suggested caption"),submit_correction:_.LT("submit_correction",void 0,"Submit for review"),cancel_correction:_.LT("cancel_correction",
void 0,"Cancel"),replay_segment:_.LT("replay_segment",void 0,"Re-play segment"),delete_correction:_.LT("delete_correction",void 0,"Delete correction")};V.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return V};
_.t(vip,_.M);_.B=vip.prototype;_.B.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)};
_.B.handleDelete=function(V){if(this.deleteCaptionCorrectionPopupCommand){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);l&&this.ytdOpenPopupBehavior.openPopup(l);V.stopPropagation()}};
_.B.handleSubmit=function(V){if(this.data&&this.data.submitCaptionCorrectionCommand&&(V.stopPropagation(),this.textChanged)){var l;V=(l=_.y(this.data.submitCaptionCorrectionCommand,_.pV3))==null?void 0:l.params;l=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:V,correctionText:String(this.ironTextAreaElement.value),originalText:_.A5(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(l);this.isEditMode=!1}};
_.B.handleUpdateSegmentText=function(V){(V=_.y(V,e7f))&&V.targetId&&this.data&&V.targetId===this.data.targetId&&(V.userCorrection&&(this.editedText=V.userCorrection),V.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.A5(this.data.snippet)),V.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=V.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=V.voteCaptionCorrectionPopupCommand?
V.voteCaptionCorrectionPopupCommand:null,V.accessibility&&(this.segmentAriaLabel=V.accessibility.accessibilityData.label))};
_.B.handleCancel=function(V){this.isEditMode=!1;V.stopPropagation();this.logClientVe(159409)};
_.B.handleEditSegmentCommand=function(V){(V=_.y(V,LYn))&&V.targetId&&this.data&&V.targetId===this.data.targetId&&this.handleEdit()};
_.B.handleEditButtonClick=function(V){this.data&&(this.handleEdit(),V.stopPropagation())};
_.B.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var V;(V=this.ironTextAreaElement.textarea)==null||V.focus();this.logClientVe(159407)}};
_.B.handleMouseEnter=function(){this.mouseOver=!0};
_.B.handleMouseLeave=function(){this.mouseOver=!1};
_.B.handleReplay=function(V){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),V.stopPropagation(),this.logClientVe(159408))};
_.B.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()))};
_.B.handleKeypress=function(V){this.data&&(this.isEditMode?V.stopPropagation():this.isEnterPress(V)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(V)&&this.logClientVe(138758))};
_.B.handleTextboxClick=function(V){V.stopPropagation()};
_.B.handleTextboxKeydown=function(V){this.isControlEnterPress(V)?this.handleSubmit(V):V.key==="Escape"&&this.handleCancel(V)};
_.B.handleTextboxKeyup=function(){this.textChanged=_.A5(this.latestText)!==String(this.ironTextAreaElement.value)};
_.B.fireSelectedEvent=function(V){_.B$(this.hostElement,"yt-transcript-segment-selected",{startMs:V})};
_.B.fireReplayEvent=function(V,l){_.B$(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(V-100,0),endMs:l})};
_.B.fireEditEvent=function(V,l){_.B$(this.hostElement,"yt-transcript-segment-edit",{startMs:V,endMs:l})};
_.B.isEnterPress=function(V){return V.key==="Enter"||V.code==="Enter"||V.code==="NumpadEnter"||V.keyCode===13?!0:!1};
_.B.isControlEnterPress=function(V){var l=V.key==="Enter"||V.code==="Enter"||V.code==="NumpadEnter"||V.keyCode===13;return(V.ctrlKey||V.metaKey)&&l};
_.B.isCopyPress=function(V){var l=V.ctrlKey;return V.key==="c"&&l};
_.B.logClick=function(){var V,l=(V=this.data)==null?void 0:V.trackingParams;l&&_.dF(_.x7(),l)};
_.B.logClientVe=function(V){_.$g(_.x7(),_.eU(V))};
_.vI.Object.defineProperties(vip.prototype,{latestText:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.snippet?this.editedText&&this.touchCaptionsEnabled?this.editedText:this.data.snippet:{}}},
enableEditButton:{configurable:!0,enumerable:!0,get:function(){return this.touchCaptionsEnabled&&!this.isEditMode}},
enableUndoButton:{configurable:!0,enumerable:!0,get:function(){return this.enableEditButton&&this.deleteCaptionCorrectionPopupCommand!=null}}});
var OU=vip;OU.prototype.handleMouseLeave=OU.prototype.handleMouseLeave;OU.prototype.handleMouseEnter=OU.prototype.handleMouseEnter;OU.prototype.dataChanged=OU.prototype.dataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],OU.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],OU.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],OU.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],OU.prototype,"isEditMode",void 0);_.O([_.q(),_.a("design:type",Object)],OU.prototype,"touchCaptionsEnabled",void 0);_.O([_.q(),_.a("design:type",Object)],OU.prototype,"editedText",void 0);_.O([_.q(),_.a("design:type",Object)],OU.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.O([_.q(),_.a("design:type",Object)],OU.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.O([_.q(),_.a("design:type",String)],OU.prototype,"segmentAriaLabel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],OU.prototype,"roundedContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],OU.prototype,"mouseOver",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],OU.prototype,"textChanged",void 0);_.O([_.q(),_.a("design:type",Object)],OU.prototype,"messages",void 0);
_.O([_.Ij("#suggestion"),_.a("design:type",Object)],OU.prototype,"ironTextAreaElement",void 0);_.O([_.Q("data","editedText"),_.a("design:type",Object),_.a("design:paramtypes",[])],OU.prototype,"latestText",null);_.O([_.Q("touchCaptionsEnabled","isEditMode"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],OU.prototype,"enableEditButton",null);
_.O([_.Q("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],OU.prototype,"enableUndoButton",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OU.prototype,"dataChanged",null);_.O([_.W("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OU.prototype,"handleMouseEnter",null);
_.O([_.W("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OU.prototype,"handleMouseLeave",null);OU=_.O([_.A({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],OU);
_.u(OU,"ytd-transcript-segment-renderer",function(){if(ukj!==void 0)return ukj;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ukj=V},{mode:1});var ON6=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};V.isError=!1;V.darkerPanels=_.z("web_watch_darker_panels");V.segmentOffsets=[];V.segmentIndex=-1;return V};
_.t(ON6,_.M);_.B=ON6.prototype;_.B.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"}}}}};
_.B.segmentsChanged=function(){this.updateOffsets()};
_.B.onYtPlayerTimeChanged=function(V){for(var l=this.segmentIndex,I=l;;){if(I>=0){var H=this.segmentOffsets[I].start;var T=this.segmentOffsets[I].isAutoScrollable}else H=-1,T=!0;var x=V+.5;if(!T){H=I+1<this.segmentOffsets.length?this.segmentOffsets[I+1].start:Infinity;if(x>=H){I+=1;continue}I=-1;break}if(x<H)H=I-1>=0&&this.segmentOffsets[I-1].isAutoScrollable,T=I===0||H?1:2,I-=T;else if(T=I+1<this.segmentOffsets.length&&this.segmentOffsets[I+1].isAutoScrollable?1:2,H=I+T<this.segmentOffsets.length?
this.segmentOffsets[I+T].start:Infinity,x>H)I+=T;else{if(I<0)break;I<this.segmentOffsets.length&&x>this.segmentOffsets[I].end&&(I=-1);break}}if(l!==I){if(l>=0){var n;(n=this.getSegmentElement(l))==null||n.classList.remove("active")}this.segmentIndex=I;if(!(I<0)){var w;(w=this.getSegmentElement(I))==null||w.classList.add("active");this.isHovered||this.scrollElementToTop(I)}}};
_.B.handleSegmentEdit=function(V){V.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=V.target,_.xB(this.hostElement,"yt-transcript-player-edit",[V.detail.startMs/1E3,V.detail.endMs/1E3]))};
_.B.handleSegmentSelected=function(V){_.xB(this.hostElement,"yt-transcript-player-seek",[V.detail.startMs/1E3])};
_.B.handleSegmentReplay=function(V){_.xB(this.hostElement,"yt-transcript-player-replay",[V.detail.startMs/1E3,V.detail.endMs/1E3])};
_.B.handleSectionHeaderSelected=function(V){_.xB(this.hostElement,"yt-transcript-player-seek",[V.detail.startMs/1E3])};
_.B.onMouseEnter=function(){this.isHovered=!0};
_.B.onMouseLeave=function(){this.isHovered=!1};
_.B.onRetryButtonClick=function(){_.B$(this.hostElement,"transcript-retry-button-click")};
_.B.getSegmentElement=function(V){return _.h(this.hostElement).querySelector(":nth-child("+(V+1)+")")};
_.B.scrollElementToTop=function(V){V=this.getSegmentElement(V>=2?V-2:0);this.hostElement.scrollTop=Math.min(V.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.B.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(V){var l,I=(l=V.transcriptSegmentRenderer)!=null?l:V.transcriptSectionHeaderRenderer;return{start:Number(I.startMs)/1E3,end:Number(I.endMs)/1E3,isAutoScrollable:V.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.B.clearHighlightedSegments=function(){var V=_.h(this.hostElement);V=_.U(V.querySelectorAll("ytd-transcript-segment-renderer"));for(var l=V.next();!l.done;l=V.next())l.value.classList.remove("active")};
_.vI.Object.defineProperties(ON6.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:V.searchResultSegments)||((l=this.data)==null?void 0:l.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
var Cr=ON6;Cr.prototype.onMouseLeave=Cr.prototype.onMouseLeave;Cr.prototype.onMouseEnter=Cr.prototype.onMouseEnter;Cr.prototype.handleSectionHeaderSelected=Cr.prototype.handleSectionHeaderSelected;Cr.prototype.handleSegmentReplay=Cr.prototype.handleSegmentReplay;Cr.prototype.handleSegmentSelected=Cr.prototype.handleSegmentSelected;Cr.prototype.handleSegmentEdit=Cr.prototype.handleSegmentEdit;Cr.prototype.segmentsChanged=Cr.prototype.segmentsChanged;
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Cr.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Cr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Cr.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Cr.prototype,"isError",void 0);
_.O([_.q(),_.a("design:type",Object)],Cr.prototype,"noResultLabel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Cr.prototype,"darkerPanels",void 0);_.O([_.Q("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],Cr.prototype,"segments",null);_.O([_.Q("segments","noResultLabel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cr.prototype,"displayNoResults",null);
_.O([_.b("segments"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cr.prototype,"segmentsChanged",null);_.O([_.W("yt-transcript-segment-edit"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Cr.prototype,"handleSegmentEdit",null);_.O([_.W("yt-transcript-segment-selected"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Cr.prototype,"handleSegmentSelected",null);
_.O([_.W("yt-transcript-segment-replay"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Cr.prototype,"handleSegmentReplay",null);_.O([_.W("ytd-transcript-section-header"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Cr.prototype,"handleSectionHeaderSelected",null);_.O([_.W("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cr.prototype,"onMouseEnter",null);
_.O([_.W("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cr.prototype,"onMouseLeave",null);Cr=_.O([_.A({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Cr);
_.u(Cr,"ytd-transcript-segment-list-renderer",function(){if(A05!==void 0)return A05;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return A05=V},{mode:1});var C$q=function(){var V=_.M.apply(this,arguments)||this;V.hideTimestamps=!!_.N9("hide-transcript-timestamps");V.isLoadingTranscripts=!1;V.darkerPanels=_.z("web_watch_darker_panels");V.isError=!1;V.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return V};
_.t(C$q,_.M);_.B=C$q.prototype;_.B.headerChanged=function(){var V,l;this.baseGetTranscriptsCommand=(l=_.y((V=this.data)==null?void 0:V.header,kLO))==null?void 0:l.onTextChangeCommand};
_.B.bodyChanged=function(){var V=this.getBodyRenderer();V&&(V.initialSegments&&(this.initialTranscriptsRenderer=V),V.noResultLabel&&(this.noResultLabel=V.noResultLabel),V.retryLabel&&(this.retryLabel=V.retryLabel))};
_.B.detached=function(){this.clearSearchBoxText()};
_.B.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.B.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"}}}};
_.B.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.B.fireSearch=function(V){var l=this;if(V){var I=V.detail.query;if(this.baseGetTranscriptsCommand){var H;V=(H=_.y(this.baseGetTranscriptsCommand,_.AuW))==null?void 0:H.params;var T;H=_.y((T=this.data)==null?void 0:T.footer,Vdd);var x;if((T=(x=_.y(H==null?void 0:H.languageMenu,N4j))==null?void 0:x.subMenuItems)&&T.length>0&&(x=T.find(function(N){return N.selected}))){var n,w;
V=(n=x.continuation)==null?void 0:(w=n.reloadContinuationData)==null?void 0:w.continuation}n=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:V,searchQuery:I}});this.ytComponentBehavior.resolveCommand(n,{commandController:{onServerError:function(){l.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});QOY(this.ytContinuationHandlerBehavior,function(){return I===l.getCurrentSearchBoxText()})}}};
_.B.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.B.onRetryButtonClick=function(){this.isError=!1;var V={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:V}))};
_.B.hideTimestampsChanged=function(){_.wd("hide-transcript-timestamps",this.hideTimestamps)};
_.B.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.B.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.B.handleSignalActionCopyTranscript=function(){var V=this,l=this.getBodyRenderer();l&&(l=((l==null?void 0:l.searchResultSegments)||(l==null?void 0:l.initialSegments)||[]).map(function(I){return _.y(I,Xkf)}).filter(function(I){return!!I}).map(function(I){return{snippet:I.snippet||{runs:[{text:""}]},
startTimeText:I.startTimeText||{simpleText:""}}}).map(function(I){var H=(I.snippet.runs||[]).reduce(function(T,x){return T+x.text},"");
return V.hideTimestamps?H:I.startTimeText.simpleText+" "+H}).join("\n"),this.copyToClipboard(l))};
_.B.copyToClipboard=function(V){navigator.clipboard&&navigator.clipboard.writeText(V)};
_.B.getCurrentSearchBoxText=function(){var V;return(V=this.searchBox)==null?void 0:V.value};
_.B.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.B.getBodyRenderer=function(){var V;return _.y((V=this.data)==null?void 0:V.body,FYO)};
_.B.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.vI.Object.defineProperties(C$q.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.h(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
var ao=C$q;ao.prototype.hideTimestampsChanged=ao.prototype.hideTimestampsChanged;ao.prototype.searchCleared=ao.prototype.searchCleared;ao.prototype.fireSearch=ao.prototype.fireSearch;ao.prototype.onReloadContinuationFinish=ao.prototype.onReloadContinuationFinish;ao.prototype.bodyChanged=ao.prototype.bodyChanged;ao.prototype.headerChanged=ao.prototype.headerChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ao.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],ao.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ao.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ao.prototype,"hideTimestamps",void 0);
_.O([_.q(),_.a("design:type",Object)],ao.prototype,"isLoadingTranscripts",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ao.prototype,"darkerPanels",void 0);_.O([_.q(),_.a("design:type",Object)],ao.prototype,"isError",void 0);_.O([_.b("data.header"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"headerChanged",null);
_.O([_.xs("data.body"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"bodyChanged",null);_.O([_.W("yt-reload-continuation-finish"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"onReloadContinuationFinish",null);_.O([_.W("yt-transcript-search-box-search"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ao.prototype,"fireSearch",null);
_.O([_.W("yt-transcript-search-box-clear"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"searchCleared",null);_.O([_.b("hideTimestamps"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"hideTimestampsChanged",null);ao=_.O([_.A({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],ao);
_.u(ao,"ytd-transcript-search-panel-renderer",function(){if(sxp!==void 0)return sxp;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return sxp=V},{mode:1});var anV=function(){var V=_.M.apply(this,arguments)||this;V.player=null;V.playerPollJobId=0;return V};
_.t(anV,_.M);_.B=anV.prototype;_.B.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.B.onLoadReloadContinuation=function(V){_.z("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:V.target.data.continuation}}):(V={clickTrackingParams:V.target.data.clickTrackingParams,getTranscriptEndpoint:{params:V.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.z("web_ytd_transcript_renderer_command_resolver_ks")?_.$B(this.hostElement,[V]):_.F().resolve(_.aw).resolveCommand(V,
{form:{element:this.hostElement}}))};
_.B.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"}}}};
_.B.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.B.attached=function(){this.updatePlayerListening()};
_.B.detached=function(){this.updatePlayerListening()};
_.B.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.B.startPlayerListening=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return(l=_.u8())?_.K(I,l.getPlayerPromise(),2):I.return();V.player=I.yieldResult;V.playerPollJobId=_.r0.addLowPriorityJob(function(){V.getPlayerVideoProgress()},1E3);
V.player.addEventListener("onCueRangeEnter",function(H){V.onCueRangeEnter(H)});
V.player.addEventListener("onCueRangeExit",function(H){V.onCueRangeExit(H)});
V.player.addEventListener("onStateChange",function(H){V.onPlayerStateChange(H)});
V.player.addEventListener("SEEK_TO",function(H){V.onPlayerSeek(H)});
_.FU(I)})};
_.B.getPlayerVideoProgress=function(){var V=this;_.r0.cancelJob(this.playerPollJobId);if(this.player){var l=this.player.getCurrentTime();_.xB(this.hostElement,"yt-player-time-changed",[l])}this.playerPollJobId=_.r0.addLowPriorityJob(function(){V.getPlayerVideoProgress()},1E3)};
_.B.stopPlayerListening=function(){this.player=null;_.r0.cancelJob(this.playerPollJobId)};
_.B.onPlayerStateChange=function(V){V===2&&this.removePendingCue()};
_.B.onPlayerSeek=function(V){var l;if(l=this.pendingReplayCueId)l=this.pendingReplayCueId,l=V===(_.z("web_transcript_cue_id_killswitch")?Number(l):Number(l.split("_")[1]));l||this.removePendingCue()};
_.B.onCueRangeEnter=function(V){mEq(V)&&(this.pendingReplayCueId=V)};
_.B.onCueRangeExit=function(V){mEq(V)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.B.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.B.onYtTranscriptPlayerSeek=function(V){this.player&&this.player.seekTo(V,!0)};
_.B.onYtTranscriptPlayerReplay=function(V,l){this.player&&(this.player.addCueRange(ghh(V),V,l),this.player.seekTo(V,!0),this.player.playVideo())};
_.B.onYtTranscriptPlayerEdit=function(V,l){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(ghh(V),V,l),this.player.seekTo(V,!0))};
var fr=anV;fr.prototype.onLoadReloadContinuation=fr.prototype.onLoadReloadContinuation;fr.prototype.panelContentVisibleChanged=fr.prototype.panelContentVisibleChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],fr.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],fr.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],fr.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],fr.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],fr.prototype,"panelContentVisible",void 0);_.O([_.b("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fr.prototype,"panelContentVisibleChanged",null);
_.O([_.W("yt-load-reload-continuation"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],fr.prototype,"onLoadReloadContinuation",null);fr=_.O([_.A({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],fr);
_.u(fr,"ytd-transcript-renderer",function(){if(bN6!==void 0)return bN6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return bN6=V},{mode:1});var fn5;var gid;var myM=function(){return _.M.apply(this,arguments)||this};
_.t(myM,_.M);myM.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.d6(this.hostElement,[this.data.clickCommand],this.hostElement))};
myM.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.GW)()+_.qg)+"px)"};
myM.prototype.updateShouldHideFromBinding=function(V){this.shouldHide=V.detail.value};
var gh=myM;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gh.prototype,"rendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],gh.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],gh.prototype,"shouldHide",void 0);gh=_.O([_.A({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],gh);
_.u(gh,"ytd-ad-engagement-panel-banner-renderer",function(){if(gid!==void 0)return gid;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return gid=V},{mode:_.Cm("kevlar_poly_si_batch_j070")?1:2});var iNY;var VNh=function(){var V=_.M.apply(this,arguments)||this;V.modernPanels=_.z("kevlar_watch_modern_panels");V.buttonUpdate=_.z("web_modern_buttons");V.adsSemanticText=_.z("enable_ads_web_ep_buenos_aires_and_padding_fix");return V};
_.t(VNh,_.M);VNh.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
var m7=VNh;_.O([_.q(),_.a("design:type",Object)],m7.prototype,"data",void 0);_.O([_.q({computed:"computeHideDefaultAdBadge(data)"}),_.a("design:type",Boolean)],m7.prototype,"hideDefaultAdBadge",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m7.prototype,"modernPanels",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m7.prototype,"buttonUpdate",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m7.prototype,"adsSemanticText",void 0);
m7=_.O([_.A({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],m7);
_.u(m7,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(iNY!==void 0)return iNY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return iNY=V},{mode:1});var lpn;var IpO=function(){var V=_.M.apply(this,arguments)||this;V.darkerPanels=_.z("web_watch_darker_panels");V.enableSqueezebackPanels=_.z("web_shorts_enable_squeezeback_panels");V.enableAnchoredPanel=_.z("desktop_shorts_v2_anchored_panel");V.modernPanels=_.z("kevlar_watch_modern_panels");V.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return V};
_.t(IpO,_.M);_.B=IpO.prototype;_.B.computeAdsInfoButton=function(){if(_.z("web_modern_buttons")){var V,l;return(l=_.y((V=this.data)==null?void 0:V.subtitleComplex,lKp))==null?void 0:l.adInfoRenderer}};
_.B.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}}}}}};
_.B.collapsedChanged=function(){var V;(V=this.data)!=null&&V.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.z("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.B.focus=function(V){this.titleElement&&_.qD(this.titleElement,V)};
_.B.computeTitleAriaLabel=function(V){var l=[];V.title&&l.push(this.ytRendererBehavior.getSimpleString(V.title));V.contextualInfo&&l.push(this.ytRendererBehavior.getSimpleString(V.contextualInfo));return l.join(" ")};
_.B.onHeaderClick=function(V){this.shouldTriggerHeaderClick(V)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.d6(this.hostElement,[this.data.onClickCommand],this.hostElement)):(V=this.getVisibilityToggleButton())&&V.click())};
_.B.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var V=_.y(this.data.visibilityButton,_.RG)||_.y(this.data.visibilityButton,_.QX);V&&this.ytRendererBehavior.logExplicitClick(V)}};
_.B.getVisibilityToggleButton=function(){var V=_.h(this.hostElement).querySelector("#visibility-button").firstElementChild;return(V==null?void 0:V.is)==="ytd-toggle-button-renderer"?V:null};
_.B.shouldTriggerHeaderClick=function(V){return!_.qi(_.b3(V),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.B.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(V){V=_.y(V,_.vnM);this.targetId&&(V==null?void 0:V.targetId)===this.targetId&&(V=V.navigationButton)&&this.set("data.navigationButton",V)};
_.vI.Object.defineProperties(IpO.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.z("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var V;return!!(((V=this.entity)==null?0:V.isActionButtonHidden)||this.hideActionButton)}}});
var i0=IpO;i0.prototype.collapsedChanged=i0.prototype.collapsedChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],i0.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],i0.prototype,"ytdReduxBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],i0.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],i0.prototype,"targetId",void 0);_.O([_.q(),_.a("design:type",Boolean)],i0.prototype,"collapsed",void 0);_.O([_.q(),_.a("design:type",Boolean)],i0.prototype,"hideActionButton",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],i0.prototype,"shortsPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],i0.prototype,"liveChatEngagementPanel",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],i0.prototype,"darkerPanels",void 0);_.O([_.Ij("#title"),_.a("design:type",HTMLElement)],i0.prototype,"titleElement",void 0);_.O([_.q({computed:"computeAdsInfoButton(data)"}),_.a("design:type",Object)],i0.prototype,"adsInfoButton",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],i0.prototype,"enableSqueezebackPanels",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],i0.prototype,"enableAnchoredPanel",void 0);_.O([_.q({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(V,l){return _.nW(V.entities,"engagementPanelTitleHeaderEntity",l)}}),
_.a("design:type",Object)],i0.prototype,"entity",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],i0.prototype,"modernPanels",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],i0.prototype,"adsSemanticText",null);_.O([_.xs("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],i0.prototype,"collapsedChanged",null);
_.O([_.Q("entity","hideActionButton"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],i0.prototype,"isActionButtonHidden",null);i0=_.O([_.A({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],i0);
_.u(i0,"ytd-engagement-panel-title-header-renderer",function(){if(lpn!==void 0)return lpn;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return lpn=V},{mode:1});var Hsj;var T7f=function(){return _.M.apply(this,arguments)||this};
_.t(T7f,_.M);T7f.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var Vp=T7f;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Vp.prototype,"data",void 0);Vp=_.O([_.A({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Vp);
_.u(Vp,"ytd-macro-markers-info-item-renderer",function(){if(Hsj!==void 0)return Hsj;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Hsj=V},{mode:1});var B7f;var nGx=function(V,l,I,H,T){_.XG.call(this);this.JSC$19918_containerElement=V;this.hostElement=l;this.supportedSyncItems=I;this.syncEntityKey=H;this.options=T;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;xS6(this);USj(this);this.JSC$19918_scrollAnimation=new _.qW(function(x){V.scrollTop=x});
_.$w(this,this.JSC$19918_scrollAnimation)};
_.t(nGx,_.XG);var xS6=function(V){var l=_.Ln(_.F().resolve(_.oU),function(I){return I.entities.markersEngagementPanelSyncEntity||{}},function(I,H){var T;
I[V.syncEntityKey]!==H[V.syncEntityKey]&&((T=I[V.syncEntityKey])==null?void 0:T.activeItemIndex)!==void 0&&V.updatePanelActiveItem(I[V.syncEntityKey].activeItemIndex)});
V.addOnDisposeCallback(l)},USj=function(V){var l=new _.le(V.onScroll,50,V);
_.$w(V,l);var I=function(){l.fire()};
V.JSC$19918_containerElement.addEventListener("scroll",I);V.addOnDisposeCallback(function(){V.JSC$19918_containerElement.removeEventListener("scroll",I)})};
_.B=nGx.prototype;
_.B.updatePanelActiveItem=function(V){var l=this.getItemByIndex(V);if(l){if(this.setActiveItem(l),this.contentVisible)if(this.browsingMode){var I;((I=this.options)==null?void 0:I.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(V=$SO(this),l.offsetTop<this.JSC$19918_containerElement.clientHeight+this.JSC$19918_containerElement.scrollTop&&V&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));dSd(this)}else this.scrollToItem(l)}else _.hF(new _.Yd("Could not find "+this.supportedSyncItems+
" sync child to set active.",V,this.JSC$19918_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.B.getItemByIndex=function(V){var l;(l=this.renderLazyListItems)==null||l.call(this,V);l=this.JSC$19918_containerElement.querySelectorAll(this.supportedSyncItems);if(l.length>V)return l[V]};
_.B.setActiveItem=function(V){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));V.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=V};
_.B.scrollToItem=function(V){V=this.getScrollPositionForItem(V);this.JSC$19918_containerElement.scrollTop!==V&&this.JSC$19918_scrollAnimation.start(this.JSC$19918_containerElement.scrollTop,V,300)};
_.B.getScrollPositionForItem=function(V){if(this.JSC$19918_containerElement.querySelectorAll(this.supportedSyncItems)[0]===V)return 0;var l,I=((l=this.options)==null?0:l.percentOffset)?this.JSC$19918_containerElement.clientHeight*this.options.percentOffset:0;V=_.SP(V).y+this.JSC$19918_containerElement.scrollTop-(_.SP(this.JSC$19918_containerElement).y+I);return Math.max(0,Math.min(V,this.JSC$19918_containerElement.scrollHeight-this.JSC$19918_containerElement.offsetHeight))};
_.B.onScroll=function(){this.activeItemBelowSyncPosition=$SO(this);if(this.activeItem&&!this.JSC$19918_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19918_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var V;switch((V=this.options)==null?void 0:V.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!wOh(this));dSd(this);break;default:this.enterBrowsingMode(!0)}}};
_.B.enterBrowsingMode=function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1){if(l.browsingMode)return T.return();l.browsingMode=!0;V&&l.hostElement.classList.add("browsing-mode");l.playerExitBrowsingModeListener=function(){l.exitBrowsingMode(!1)};
return _.K(T,_.I6(),2)}I=T.yieldResult;(H=I)==null||H.addEventListener("SEEK_TO",l.playerExitBrowsingModeListener);_.FU(T)})};
_.B.exitBrowsingMode=function(V){V=V===void 0?!0:V;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),V&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.B.removePlayerSeekListener=function(){var V=this,l,I;return _.d(function(H){if(H.nextAddress==1)return V.playerExitBrowsingModeListener?_.K(H,_.I6(),3):H.jumpTo(0);l=H.yieldResult;(I=l)==null||I.removeEventListener("SEEK_TO",V.playerExitBrowsingModeListener);V.playerExitBrowsingModeListener=void 0;_.FU(H)})};
var dSd=function(V){var l;((l=V.options)==null?void 0:l.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(wOh(V)?V.hostElement.classList.remove("browsing-mode"):V.activeItem&&V.hostElement.classList.add("browsing-mode"))},$SO=function(V){if(!V.activeItem)return!1;
var l,I=((l=V.options)==null?0:l.percentOffset)?V.JSC$19918_containerElement.clientHeight*V.options.percentOffset:0;return V.activeItem.offsetTop>=V.JSC$19918_containerElement.scrollTop+I},wOh=function(V){if(!V.activeItem)return!1;
var l=V.activeItem.offsetTop+14<=V.JSC$19918_containerElement.scrollTop+V.JSC$19918_containerElement.clientHeight;return V.activeItem.offsetTop+V.activeItem.clientHeight-14>=V.JSC$19918_containerElement.scrollTop&&l};
nGx.prototype.panelContentVisibleChanged=function(V){(this.contentVisible=V)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var N7x=function(V,l){V.renderLazyListItems=l};var K_n=function(){var V=_.M.apply(this,arguments)||this;V.browsingMode=!1;V.modern=_.z("web_button_rework");V.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return V};
_.t(K_n,_.M);_.B=K_n.prototype;_.B.activeItemChanged=function(){if(!_.z("synced_panel_scrolling_controller")){var V;((V=this.syncEntity)==null?void 0:V.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.B.created=function(){var V=this;_.z("synced_panel_scrolling_controller")||(this.JSC$19923_scrollAnimation=new _.qW(function(l){V.contents.scrollTop=l}),this.boundExitBrowsingMode=function(){V.exitBrowsingMode(!1)})};
_.B.attached=function(){var V=this;if(_.z("synced_panel_scrolling_controller")&&!this.scrollController){var l,I,H,T;this.scrollController=new nGx(this.contents,this.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(T=(l=this.data)==null?void 0:l.syncModelEntityKey)!=null?T:"default-macro-markers-list-renderer-entity-key",{percentOffset:(I=this.data)==null?void 0:I.selectedItemAlignmentPercentOffset,floatingPillType:(H=this.data)==null?void 0:H.floatingPillType});
N7x(this.scrollController,function(x){V.renderLazyListItems(x)});
this.scrollController.panelContentVisibleChanged(!!this.panelContentVisible)}};
_.B.detached=function(){if(_.z("synced_panel_scrolling_controller")){var V;(V=this.scrollController)==null||V.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.B.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"}}}};
_.B.dataChanged=function(){if(_.z("synced_panel_scrolling_controller")){var V;(V=this.scrollController)==null||V.exitBrowsingMode();var l,I;if((V=this.scrollController)!=null){var H=(I=(l=this.data)==null?void 0:l.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key";V.syncEntityKey=H}var T,x;(l=this.scrollController)!=null&&(I={percentOffset:(T=this.data)==null?void 0:T.selectedItemAlignmentPercentOffset,floatingPillType:(x=this.data)==null?void 0:x.floatingPillType},l.options=
I)}else this.exitBrowsingMode()};
_.B.computeButtonShape=function(){var V=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){V.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.B.computeSyncEnabled=function(V){return!(V==null||!V.syncButtonLabel)};
_.B.renderLazyListItems=function(V){for(var l=this.contents.children,I=0,H=0;H<l.length;H++){var T=void 0;(T=l[H].ytLazyListBehavior)==null||T.fillRemainingListItems();var x=void 0,n=void 0;T=_.y((x=this.data)==null?void 0:(n=x.contents)==null?void 0:n[H],_.VVJ);n=x=void 0;if((x=T)==null?0:(n=x.contents)==null?0:n.length)I+=T.contents.length;if(I>=V)break}};
_.B.getItemByIndex=function(V){this.renderLazyListItems(V);var l=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(l.length>V)return l[V]};
_.B.setActiveItem=function(V){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);V.active!==void 0&&(V.active=!0);this.currentActiveItem=V};
_.B.handleSetActivePanelItemAction=function(V){if((V=_.y(V,CYV))&&this.panelTargetId===V.panelTargetId){V=V.itemIndex;if(_.z("synced_panel_scrolling_controller")){var l,I;var H=(I=(l=this.data)==null?void 0:l.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key"}else{var T;H=(T=this.data)==null?void 0:T.syncModelEntityKey}var x;H&&((x=this.syncEntity)==null?void 0:x.activeItemIndex)!==V?this.ytdReduxBehavior.dispatch(_.K6("markersEngagementPanelSyncEntity",H,{key:H,activeItemIndex:V})):
this.updatePanelActiveItem(V)}};
_.B.updatePanelActiveItem=function(V){var l=this.getItemByIndex(V);l?(this.setActiveItem(l),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(l)):_.hF(new _.Yd("Could not find ytd-macro-markers-list-renderer sync child to set active.",V,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.B.scrollToItem=function(V){V=this.getScrollPositionForItem(V);this.contents.scrollTop!==V&&this.JSC$19923_scrollAnimation.start(this.contents.scrollTop,V,300)};
_.B.getScrollPositionForItem=function(V){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===V)return 0;V=_.SP(V).y+this.contents.scrollTop-_.SP(this.contents).y-this.getStickyHeaderHeight(V);return Math.min(V,this.contents.scrollHeight-this.contents.offsetHeight)};
_.B.getStickyHeaderHeight=function(V){if(V.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var l,I,H;return(H=(l=V.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(I=l.header)==null?void 0:I.offsetHeight)!=null?H:0}return 0};
_.B.onScroll=function(){_.z("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19923_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.B.enterBrowsingMode=function(){var V=this;return _.d(function(l){if(l.nextAddress==1){if(V.browsingMode)return l.return();V.browsingMode=!0;return _.K(l,_.vu().getPlayerPromise(),2)}V.player=l.yieldResult;V.player.addEventListener("SEEK_TO",V.boundExitBrowsingMode);_.FU(l)})};
_.B.exitBrowsingMode=function(V){this.browsingMode&&(this.browsingMode=!1,(V===void 0||V)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.B.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.B.onSyncClick=function(){if(_.z("synced_panel_scrolling_controller")){var V;(V=this.scrollController)==null||V.exitBrowsingMode()}else this.exitBrowsingMode()};
_.B.panelContentVisibleChanged=function(){if(_.z("synced_panel_scrolling_controller")){var V;(V=this.scrollController)==null||V.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
var lr=K_n;lr.prototype.panelContentVisibleChanged=lr.prototype.panelContentVisibleChanged;lr.prototype.dataChanged=lr.prototype.dataChanged;lr.prototype.activeItemChanged=lr.prototype.activeItemChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],lr.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],lr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],lr.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],lr.prototype,"data",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],lr.prototype,"useCustomColors",void 0);_.O([_.q({computed:"computeSyncEnabled(data)"}),_.a("design:type",Boolean)],lr.prototype,"syncEnabled",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],lr.prototype,"panelTargetId",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],lr.prototype,"panelContentVisible",void 0);_.O([_.Ij("#contents"),_.a("design:type",HTMLElement)],lr.prototype,"contents",void 0);_.O([_.Ij("#sync-container"),_.a("design:type",HTMLElement)],lr.prototype,"syncContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],lr.prototype,"browsingMode",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],lr.prototype,"modern",void 0);_.O([_.q({selectorArgs:["data.syncModelEntityKey"],selector:_.yG1}),_.a("design:type",Object)],lr.prototype,"syncEntity",void 0);_.O([_.b("syncEntity.activeItemIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lr.prototype,"activeItemChanged",null);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lr.prototype,"dataChanged",null);_.O([_.b("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lr.prototype,"panelContentVisibleChanged",null);lr=_.O([_.A({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],lr);
_.u(lr,"ytd-macro-markers-list-renderer",function(){if(B7f!==void 0)return B7f;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return B7f=V},{mode:1});var jw5;var YoO=function(){return _.M.apply(this,arguments)||this};
_.t(YoO,_.M);var In=YoO;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],In.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],In.prototype,"data",void 0);In=_.O([_.A({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],In);
_.u(In,"ytd-error-corrections-section-item-renderer",function(){if(jw5!==void 0)return jw5;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return jw5=V},{mode:1});var L_V;var e1O=function(){return _.M.apply(this,arguments)||this};
_.t(e1O,_.M);e1O.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
var Hc=e1O;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Hc.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Hc.prototype,"data",void 0);Hc=_.O([_.A({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Hc);
_.u(Hc,"ytd-error-corrections-section-renderer",function(){if(L_V!==void 0)return L_V;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return L_V=V},{mode:1});var kY5;var F_6=function(){return _.M.apply(this,arguments)||this};
_.t(F_6,_.M);var TT=F_6;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],TT.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],TT.prototype,"data",void 0);TT=_.O([_.A({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],TT);
_.u(TT,"ytd-topic-link-renderer",function(){if(kY5!==void 0)return kY5;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return kY5=V},{mode:1});var XOf;var z1d=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("kevlar_modern_sd_v2");V.modernLockupV2=_.z("modernize_structured_description_playlist_lockups_v2");V.modernTypography=_.z("web_modern_typography");return V};
_.t(z1d,_.M);z1d.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
var Bc=z1d;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Bc.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Bc.prototype,"modern",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Bc.prototype,"modernLockupV2",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Bc.prototype,"modernTypography",void 0);Bc=_.O([_.A({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Bc);
_.u(Bc,"ytd-video-description-course-section-renderer",function(){if(XOf!==void 0)return XOf;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return XOf=V},{mode:1});var y6h;var tN5=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("kevlar_modern_sd_v2");V.modernTypography=_.z("web_modern_typography");return V};
_.t(tN5,_.M);tN5.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var xc=tN5;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],xc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],xc.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xc.prototype,"modern",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xc.prototype,"modernTypography",void 0);
xc=_.O([_.A({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],xc);
_.u(xc,"ytd-video-description-files-section-renderer",function(){if(y6h!==void 0)return y6h;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return y6h=V},{mode:1});var r6q;var GYC=function(){return _.M.apply(this,arguments)||this};
_.t(GYC,_.M);GYC.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
var UV=GYC;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],UV.prototype,"data",void 0);UV=_.O([_.A({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],UV);
_.u(UV,"ytd-video-description-gaming-section-renderer",function(){if(r6q!==void 0)return r6q;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return r6q=V},{mode:1});var EGO;var J6p=function(){var V=_.M.apply(this,arguments)||this;V.isExpanded=!1;return V};
_.t(J6p,_.M);J6p.prototype.computeHasDefaultMetadataEndpoint=function(V){var l;V=V==null?void 0:(l=V.defaultMetadata)==null?void 0:l.runs;return!(!V||V.length!==1||!V[0].navigationEndpoint)};
J6p.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.vI.Object.defineProperties(J6p.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
var n5=J6p;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],n5.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],n5.prototype,"isExpanded",void 0);_.O([_.q({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],n5.prototype,"hasDefaultMetadataEndpoint",void 0);
_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],n5.prototype,"isExpandable",null);_.O([_.Q("data","isExpandable","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],n5.prototype,"showExpandedMetadata",null);n5=_.O([_.A({is:"ytd-info-row-renderer",disableElementRegistration:!0})],n5);
_.u(n5,"ytd-info-row-renderer",function(){if(EGO!==void 0)return EGO;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return EGO=V},{mode:1});var oGq;var h1Y=function(){var V=_.M.apply(this,arguments)||this;V.currentIndex=0;V.supportComponentResize=!0;V.modern=_.z("kevlar_modern_sd_v2");V.JSC$19949_lastScrollContainerWidth=NaN;return V};
_.t(h1Y,_.M);_.B=h1Y.prototype;
_.B.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"}}}};
_.B.getItemsPath=function(){return"videoLockups"};
_.B.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.B.onIronResize=function(){this.updateVideoLockupStyles()};
_.B.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.B.updateVideoLockupStyles=function(){var V;this.JSC$19949_scrollContainer!==void 0&&(V=this.videoLockups)!=null&&V.length&&(V=this.JSC$19949_scrollContainer.clientWidth,V!==this.JSC$19949_lastScrollContainerWidth&&(this.JSC$19949_lastScrollContainerWidth=V,_.i3(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(V*.8,415)+"px"}),_.B$(this.hostElement,"iron-resize")))};
_.vI.Object.defineProperties(h1Y.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var V=[],l;if((l=this.data)==null||!l.carouselLockups)return V;l=_.U(this.data.carouselLockups);for(var I=l.next();!I.done;I=l.next()){I=I.value;var H=void 0;((H=_.y(I,rex))==null?0:H.videoLockup)&&V.push(_.y(I,rex).videoLockup)}return V}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.videoLockups)==null||!V.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var V=[],l;if((l=this.data)==null||!l.carouselLockups)return V;var I;return(I=_.y(this.data.carouselLockups[this.scrollCount],rex))==null?void 0:I.infoRows}}});
var $c=h1Y;$c.prototype.dataChanged=$c.prototype.dataChanged;$c.prototype.onIronResize=$c.prototype.onIronResize;$c.prototype.hiddenChanged=$c.prototype.hiddenChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],$c.prototype,"componentBehavior",void 0);_.O([_.R(_.ID.YtdHorizontalListBehavior),_.a("design:type",Object)],$c.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],$c.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$c.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],$c.prototype,"inlineStructuredDescription",void 0);_.O([_.q({value:2}),_.a("design:type",Number)],$c.prototype,"initialCount",void 0);_.O([_.q(),_.a("design:type",Object)],$c.prototype,"currentIndex",void 0);
_.O([_.q(),_.a("design:type",Number)],$c.prototype,"scrollCount",void 0);_.O([_.q(),_.a("design:type",Object)],$c.prototype,"supportComponentResize",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],$c.prototype,"contentHidden",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$c.prototype,"modern",void 0);_.O([_.Ij("#scroll-container"),_.a("design:type",HTMLDivElement)],$c.prototype,"JSC$19949_scrollContainer",void 0);
_.O([_.b("contentHidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$c.prototype,"hiddenChanged",null);_.O([_.Q("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],$c.prototype,"videoLockups",null);_.O([_.Q("videoLockups"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$c.prototype,"hasVideoLockups",null);_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$c.prototype,"onIronResize",null);
_.O([_.Q("data","scrollCount"),_.a("design:type",Object),_.a("design:paramtypes",[])],$c.prototype,"infoRows",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$c.prototype,"dataChanged",null);$c=_.O([_.A({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],$c);
_.u($c,"ytd-video-description-music-section-renderer",function(){if(oGq!==void 0)return oGq;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return oGq=V},{mode:_.Cm("kevlar_poly_si_batch_j081")?1:2});var Ptx;var DSV=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("kevlar_modern_sd_v2");V.modernTypography=_.z("web_modern_typography");return V};
_.t(DSV,_.M);DSV.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var dI=DSV;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],dI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.O([_.q({}),_.a("design:type",Object)],dI.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],dI.prototype,"modern",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],dI.prototype,"modernTypography",void 0);
dI=_.O([_.A({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],dI);
_.u(dI,"ytd-video-description-transcript-section-renderer",function(){if(Ptx!==void 0)return Ptx;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Ptx=V},{mode:1});var Zsp;_.MR(_.W1(function(V){var l=_.dw(_.a2T,function(){return V.data().firstProviderLinkStatusEntityKey}),I=_.dw(_.a2T,function(){return V.data().secondProviderLinkStatusEntityKey}),H=function(){var T,x;
return((T=l())==null?void 0:T.linked)||((x=I())==null?void 0:x.linked)};
return _.Y("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.Y(_.Ni,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return V.data().sectionTitle}}),_.Y(_.Ni,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return H()?V.data().connectedMessage:V.data().notConnectedMessage}}),_.Y(_.NS,{cond:H,
then:function(){return _.Y(_.rw,{data:function(){return V.data().connectedButton}},{buttonViewModel:function(T){return _.Y(_.Db,{data:T.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.Y(_.NS,{cond:function(){return!H()},
then:function(){return _.Y(_.rw,{data:function(){return V.data().notConnectedButton}},{buttonViewModel:function(T){return _.Y(_.Db,{data:T.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Oh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;return _.Y("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.Y("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.Y(_.Ni,{text:function(){return l().sectionTitle}})),_.Y("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.Y(_.Ni,{text:function(){return l().bodyHeader}})),_.Y("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.Y(_.Ni,{text:function(){return l().bodyText}})),_.Y(_.NS,
{cond:function(){return l().attributionText},
then:function(){return _.Y("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.Y(_.Ni,{text:function(){return l().attributionText}}))}}))},"Ph"),"how-this-was-made-section-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){return _.Y("yt-video-description-youchat-section-view-model",{class:_.ii("ytVideoDescriptionYouchatSectionViewModelHost")},_.Y("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.Y(_.Ni,{text:function(){return V.data().sectionTitle}})),_.Y("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.Y(_.Ni,{text:function(){return V.data().subHeaderText}})),_.Y("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.Y(_.Db,{data:function(){return _.y(V.data().primaryButton,
_.Gb)}})))},"Qh"),"yt-video-description-youchat-section-view-model",{props:{data:_.b9}});var Sox=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("kevlar_modern_sd_v2");V.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return V};
_.t(Sox,_.M);_.B=Sox.prototype;
_.B.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}}}}}};
_.B.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.B.dataChanged=function(){var V,l;this.hasDescriptionOnly=!(((V=this.data)==null?void 0:(l=V.items)==null?void 0:l.length)!==1||!_.y(this.data.items[0],GLd))};
_.B.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.B.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.B.autoFocusDescription=function(){var V;((V=_.F().resolve(_.Cs(_.eM)))==null?0:V.isKeyBoardInUse())&&this.description&&_.MD(this.description)};
_.B.resize=function(){if(_.z("kevlar_disable_sd_resize"))this.JSC$19957_cardList&&_.B$(this.JSC$19957_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.B$(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.B$(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.B.scrollToSection=function(V){if(V=this.getSectionElement(V))_.xB(this.hostElement,"yt-scroll-to-watch-element",[V]),V.focus()};
_.B.getSectionElement=function(V){switch(V){case "infocards-item-section":var l;return(l=this.infocardsSection)!=null?l:null;case "transcript-item-section":var I;return(I=this.transcriptSection)!=null?I:null;case "how-this-was-made-section-item-section":var H;return(H=this.howThisWasMadeSection)!=null?H:null;case "files-item-section":var T;return(T=this.filesSection)!=null?T:null;default:return null}};
_.B.handleSetActiveItemAction=function(V){var l=_.y(V,CYV),I=l&&(l==null?void 0:l.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$19957_cardList;if(l&&I){V=this.currentActiveChapter;var H=this.currentActiveProblem;l=I==null?void 0:I.getItemByIndex(l.itemIndex);var T=I=!0;l&&(l.active=!0,l.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(I=V!==l,T=!1,this.currentActiveChapter=l):(l==null?void 0:l.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(I=!1,T=H!==l,this.currentActiveProblem=l));V&&I&&(V.active=!1);H&&T&&(H.active=!1)}};
_.vI.Object.defineProperties(Sox.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.z("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
var wI=Sox;wI.prototype.onYtExpanderMoreTapped=wI.prototype.onYtExpanderMoreTapped;wI.prototype.onHiddenChanged=wI.prototype.onHiddenChanged;wI.prototype.dataChanged=wI.prototype.dataChanged;wI.prototype.panelContentVisibleChanged=wI.prototype.panelContentVisibleChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],wI.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.Da),_.a("design:type",Object)],wI.prototype,"ironResizableBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],wI.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],wI.prototype,"panelContentVisible",void 0);_.O([_.q(),_.a("design:type",Boolean)],wI.prototype,"hasDescriptionOnly",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],wI.prototype,"inlineStructuredDescription",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],wI.prototype,"hidden",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],wI.prototype,"shortsPanel",void 0);_.O([_.q(),_.a("design:type",Object)],wI.prototype,"videoSummary",void 0);_.O([_.q(),_.a("design:type",Object)],wI.prototype,"merchShelf",void 0);
_.O([_.Q("videoSummary"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],wI.prototype,"showVideoSummary",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wI.prototype,"modern",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],wI.prototype,"engagementPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],wI.prototype,"watchWhileSdp",void 0);
_.O([_.Ij("ytd-expandable-video-description-body-renderer"),_.a("design:type",Object)],wI.prototype,"description",void 0);_.O([_.Ij("ytd-horizontal-card-list-renderer"),_.a("design:type",Object)],wI.prototype,"JSC$19957_cardList",void 0);_.O([_.Ij("ytd-horizontal-card-list-renderer[center-items]"),_.a("design:type",Object)],wI.prototype,"problemWalkthroughCardList",void 0);_.O([_.Ij("ytd-shelf-renderer"),_.a("design:type",Object)],wI.prototype,"shelfSection",void 0);
_.O([_.Ij("ytd-video-description-music-section-renderer"),_.a("design:type",Object)],wI.prototype,"musicMetadataSection",void 0);_.O([_.Ij("ytd-video-description-infocards-section-renderer"),_.a("design:type",Object)],wI.prototype,"infocardsSection",void 0);_.O([_.Ij("ytd-video-description-transcript-section-renderer"),_.a("design:type",Object)],wI.prototype,"transcriptSection",void 0);
_.O([_.Ij("how-this-was-made-section-view-model"),_.a("design:type",Object)],wI.prototype,"howThisWasMadeSection",void 0);_.O([_.Ij("ytd-video-description-files-section-renderer"),_.a("design:type",Object)],wI.prototype,"filesSection",void 0);_.O([_.b("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wI.prototype,"panelContentVisibleChanged",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wI.prototype,"dataChanged",null);_.O([_.b("hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wI.prototype,"onHiddenChanged",null);_.O([_.W("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wI.prototype,"onYtExpanderMoreTapped",null);
wI=_.O([_.A({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],wI);
_.u(wI,"ytd-structured-description-content-renderer",function(){if(Zsp!==void 0)return Zsp;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Zsp=V},{mode:2});var R1h;var QwV;var c6h=function(){return _.M.apply(this,arguments)||this};
_.t(c6h,_.M);c6h.prototype.computeAriaLabel=function(V){var l,I;return(V==null?void 0:(l=V.accessibility)==null?void 0:(I=l.accessibilityData)==null?void 0:I.label)||_.LT("LOADING",void 0,"Loading")};
var NM=c6h;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],NM.prototype,"data",void 0);_.O([_.q({computed:"computeAriaLabel(data)"}),_.a("design:type",String)],NM.prototype,"ariaLabel",void 0);NM=_.O([_.Lm({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],NM);
_.u(NM,"yt-content-loading-renderer",function(){if(QwV===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;R1h===void 0&&(R1h=document.createElement("template"));var H=R1h;I.call(l,H.content.cloneNode(!0),V.content.firstChild);QwV=V}V=QwV;return V},{mode:_.Cm("kevlar_poly_si_batch_j043")?1:2});var W_O=_.W1(function(V){var l=V.data;V=_.sZ();_.A9(V,function(){return l().rendererContext});
var I=function(){var H;return _.sB((H=l())==null?void 0:H.rendererContext)};
return _.Y("content-list-item-view-model",{el:V,class:"ytContentListItemViewModelHost",role:function(){return I()?"listitem":void 0},
tabindex:function(){return I()?0:void 0}},_.Y("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.Y("div",{class:"ytContentListItemViewModelImageContainer"},_.Y(_.NS,{cond:function(){return l().image},
then:function(H){return _.Y(_.cX,{data:H,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.Y(_.rw,{data:function(){var H;
return(H=l())==null?void 0:H.avatar}},{avatarViewModel:_.SA})),_.Y("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.Y("div",{class:"ytContentListItemViewModelTitle"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y("div",{class:"ytContentListItemViewModelMetadata"},_.Y(_.rw,{data:function(){return l().metadata}},{contentMetadataViewModel:function(H){return _.Y(_.cSJ,{data:H.data,
layout:1})}})))),_.Y("div",{class:"ytContentListItemViewModelActionButton"},_.Y(_.rw,{data:function(){var H;
return(H=l())==null?void 0:H.actionButton}},{buttonViewModel:_.Db,
toggleButtonViewModel:_.o6})))},"Rh");_.MR(_.W1(function(V){var l=_.U(_.xi(!1,void 0,"WbYeXc")),I=l.next().value,H=l.next().value;l=_.U(_.xi(!1,void 0,"msXkzc"));var T=l.next().value,x=l.next().value;_.XW(function(){var N=_.y(V.data().collaboratePlaylistCollaborationSetting,jI5);N&&H(N.switchedOnByDefault);var L=_.y(V.data().allowNewCollaboratorsPlaylistCollaborationSetting,jI5);L&&x(L.switchedOnByDefault);if(!N&&!L||!N&&V.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")H(!0),x(!0)});
var n=function(N){H(N);x(N);var L=V.data().playlistCollaborationEntityKey||"";var e=_.P1().getState();(e=_.nW(e.entities,"playlistCollaborationEntity",L))&&(e==null?void 0:e.isCollaborative)===N||_.P1().dispatch(_.K6("playlistCollaborationEntity",L,Object.assign({},e,{isCollaborative:N})))},w=function(N){x(N)};
return _.Y("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.Y("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Y(_.rw,{data:function(){return V.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(N){return _.Y(_.pcb,{data:N.data,
onSwitch:n})}})),_.Y(_.NS,{cond:I,
then:function(){return _.Y("div",null,_.Y("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Y(_.rw,{data:function(){return V.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(N){return _.Y(_.pcb,{data:N.data,
onSwitch:w,overrideDisabled:!1})}})),_.Y(_.NS,{cond:T,
then:function(){return _.Y("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.Y(_.rw,{data:function(){return V.data().copyLinkButton}},{buttonViewModel:_.Db}))}}),_.Y("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.Y(_.rw,{data:function(){return V.data().playlistCollaborators}},{contentListItemViewModel:W_O})))}}))},"Sh"),"playlist-collaboration-view-model",{props:{data:_.b9}});var bsd=_.W1(function(V){var l=V.data;var I=V.customCommandResolver;return _.Y(_.CN,null,_.Y("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.Y(_.rw,{data:function(){return l().adAvatar}},{adAvatarViewModel:function(H){return _.Y(_.pDa,{data:H.data,
customCommandResolver:I})}})),_.Y("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.Y(_.NS,{cond:function(){return l().headline},
then:function(H){return _.Y(_.Ni,{text:H,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.Y("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.Y(_.rw,{data:function(){return l().adBadge}},{adBadgeViewModel:function(H){return _.Y(_.Ns,{data:H.data,
hasDot:function(){return l().primaryDetailsLine!==void 0},
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.Y(_.rw,{data:function(){return l().primaryDetailsLine}},{adDetailsLineViewModel:function(H){return _.Y(_.KP,{data:H.data,
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Th"),qon=_.W1(function(V){var l=V.data;
var I=V.customCommandResolver;V=_.sZ();_.f6(V,function(){return l().interaction},I);
_.gT(V,{visibilityCallback:function(H){var T,x=(T=l().interaction)==null?void 0:T.onFirstVisible;H&&x&&_.EI(x)},
showOption:_.U6});return _.Y("ad-avatar-lockup-view-model",{class:function(){var H;return((H=l().interaction)==null?0:H.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:V,"aria-label":function(){var H,T;return(H=l().interaction)==null?void 0:(T=H.accessibility)==null?void 0:T.label}},_.Y(_.YG,null,_.Y(_.jN,{when:function(){return l().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.Y(bsd,{data:l,
customCommandResolver:I})}),_.Y(_.qAK,null,function(){return null})))},"Uh");_.MR(_.W1(function(V){var l=V.data;var I=V.panelContentVisibility;V=_.sZ();_.f6(V,function(){return l().interaction},iQn);
_.gT(V,{visibilityCallback:function(T){var x,n=(x=l().interaction)==null?void 0:x.onFirstVisible;T&&n&&_.EI(n)},
showOption:_.U6});_.y9(function(){var T,x;if(x=_.SN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;x=(n=x())==null?void 0:n.onLayoutVisibleCallback}else x=null;(T=x)==null||T()});
var H=function(){return I()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.Y("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:V},_.Y("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.Y("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.Y(_.NS,{cond:_.fDt("(min-width: "+((0,_.GW)()+_.qg)+"px) or (max-width: 600px)"),then:function(){return _.Y(_.rw,{data:function(){return l().adImage}},{adImageViewModel:function(T){return _.Y(_.Di,{data:T.data,
targetHeight:80,customCommandResolver:iQn})}})}})),_.Y("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.Y("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.Y(_.rw,{data:function(){return l().adAvatarLockup}},{adAvatarLockupViewModel:function(T){return _.Y(qon,{data:T.data,
customCommandResolver:iQn})}})),_.Y(_.NS,{cond:H,
then:function(){return _.Y(_.rw,{data:function(){return l().adButton}},{adButtonViewModel:function(T){return _.Y(_.$3,{data:T.data,
customCommandResolver:iQn})}})},
else:function(){return _.Y(_.rw,{data:function(){return l().menu}},{buttonViewModel:_.Db})}}),_.Y("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.Y(_.rw,{data:function(){var T=_.y(l().toggleButton,_.EB);
return{toggleButtonViewModel:Object.assign({},T,{isTogglingDisabled:!0,isToggled:H()})}}},{toggleButtonViewModel:_.o6})))))},"Vh"),"panel-ad-header-image-lockup-view-model",{props:{data:_.b9,
panelContentVisibility:_.b9}});var MNV=_.W1(function(V){var l=V.thumbsUp;V=V.thumbsDown;var I=_.U(_.xi(!1,void 0,"OxPsH")),H=I.next().value,T=I.next().value;I=_.U(_.xi(!1,void 0,"V5vWne"));var x=I.next().value,n=I.next().value;return _.Y("div",{class:"ytwThumbsUpDownThumbs"},_.Y(_.o6,{data:l,onToggle:function(w){T(w);x()&&n(!1)},
buttonShapeOverrides:function(){return{toggled:H()}}}),_.Y(_.o6,{data:V,
onToggle:function(w){n(w);H()&&T(!1)},
buttonShapeOverrides:function(){return{toggled:x()}}}))},"Wh");
MNV.idomCompat=!0;var pOV=_.W1(function(V){var l=function(){return V.data().pendingStateEntityKey||""},I=_.dw(V6p,l),H=function(){var T;
if(!(T=V.disabled())){var x;T=!((x=I())==null||!x.isPendingResponse)}return T};
return _.Y("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.Y(_.Ks,{each:function(){return V.data().chipData||[]},
keyBy:"REFERENCE"},function(T){return _.Y(swV,{data:T,disabled:H,pendingStateKey:l,onError:V.onError})}))},"Xh"),swV=_.W1(function(V){var l=_.sZ(),I=_.U(_.xi(!0,void 0,"HBREAe")),H=I.next().value,T=I.next().value,x=function(){return V.data().text.content},n=_.Bu(function(w){var N,L,e,k,X,r,E,D;
return _.d(function(Z){switch(Z.nextAddress){case 1:w.stopPropagation();if(V.disabled())return Z.return();L=String(Math.floor(((N=_.F().resolve(_.lP)())==null?void 0:N.getCurrentTime())||0)*1E3);e="youchat-"+Date.now();k=function(){_.rj(V.data().onClick||{});var S=_.IV({continuationCommand:{token:V.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),p={inputComposerFormData:{clientMessageId:e,playerOffsetMs:L}};return new Promise(function(Vf,C){_.rj(S,{form:{formData:p},commandController:{onSuccess:function(By,
lN){Vf(lN)},
onServerError:function(By,lN){C(lN.error)}}})})};
X=lC6(V.pendingStateKey());X(!0);PEd("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");T(!1);_.jd(Z,2);return _.K(Z,k(),4);case 4:_.Rv(Z,3);break;case 2:r=_.kE(Z),(D=(E=V).onError)==null||D.call(E,r);case 3:X(!1),_.FU(Z)}})});
return _.Y(_.NS,{cond:H,then:function(){return _.Y("div",{class:"ytwYouChatChipsDataChipWrapper"},_.Y("button",{el:l,class:"ytwYouChatChipsDataChip","data-disabled":V.disabled,"on:click":n,tabindex:0},x))}})},"Yh");var A65=_.W1(function(V){var l=V.data;return _.Y("yt-conversation-resource-view-model",{class:_.ii("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.Y(_.NS,{cond:function(){var I;return(I=l().conversationResourceData)==null?void 0:I.learningGuideData},
then:function(I){return _.Y(_.Ks,{each:function(){return I().sectionData||[]}},function(H){return _.Y("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.Y(_.Ni,{text:function(){return H.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.Y("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.Y(_.Ni,{text:function(){return H.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.Y(_.Ni,{text:function(){return H.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"Zh");
A65.idomCompat=!0;var uWp={animationConfig:{autoplay:!1,loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}},vG6=_.W1(function(V){var l=function(){var Z;return(Z=V.data().text)==null?void 0:Z.content},I=function(){var Z,S;
return(Z=V.data().webData)==null?void 0:(S=Z.textResult)==null?void 0:S.content},H=_.F().resolve(_.Sz),T=_.HK(),x=function(){return V.data().chatResponseStyle},n=function(){var Z;
return V.data().webData||((Z=V.data().text)==null?void 0:Z.content)||V.data().videoResultsData||V.data().conversationResourceViewModel},w=function(){var Z;
return(Z=V.data().videoResultsData)==null?void 0:Z.videoShelf},N=function(){var Z;
return _.y(((Z=V.data().videoResultsData)==null?void 0:Z.videoShelf)||{},KYY)},L=function(){var Z;
return(Z=V.data().webData)==null?void 0:Z.sourcesShelf},e=function(){var Z;
return _.y(((Z=V.data().webData)==null?void 0:Z.sourcesShelf)||{},KYY)},k=function(){return _.y(V.data().conversationResourceViewModel||{},JeC)},X=function(){return x()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||x()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:V.data().thumbsDownViewModel&&V.data().thumbsUpViewModel},r=function(){return _.y(V.data().thumbsUpViewModel,_.EB)},E=function(){return _.y(V.data().thumbsDownViewModel,_.EB)};
_.kG(function(){requestAnimationFrame(function(){var Z;(Z=V.shouldAnimateIcon)!=null&&Z.call(V)&&Tpf(T.lottieEl)})});
var D={};return _.Y("you-chat-item-view-model",{class:_.ii("ytwYouChatItemViewModelYouChatItemViewModel",(D.ytwYouChatItemViewModelHostNoPadding=function(){return!1},D)),
"data-target-id":function(){return V.data().id||""}},_.Y(_.NS,{cond:n,
then:function(){var Z={};return _.Y("div",{"aria-hidden":"true"},_.Y(_.VN,{className:_.ii("ytwYouChatItemViewModelIcon",(Z.ytwYouChatItemViewModelRtl=H==="rtl",Z.ytwYouChatItemViewModelHidden=function(){return!(V.data().hideIcon||x()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||x()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:n())},Z)),
animationName:function(){return uWp.animationConfig.name},
data:uWp,animationRef:T}))}}),_.Y(_.NS,{cond:n,
then:function(){var Z={};return _.Y("div",{class:_.ii("ytwYouChatItemViewModelHost",(Z.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return x()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},Z.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return x()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},Z.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return x()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},Z)),
role:"alert"},_.Y(_.NS,{cond:l,then:function(S){return _.Y(_.yY,{text:S})}}),_.Y(_.NS,{cond:I,
then:function(S){return _.Y(_.yY,{text:S})}}),_.Y(_.NS,{cond:w,
then:function(){return _.Y("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Y(_.zi,{data:N,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.Y(_.NS,{cond:L,
then:function(){return _.Y("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Y(_.zi,{data:e,hasPeek:!0,disableArrows:!1}))}}),_.Y(_.NS,{cond:k,
then:function(){return _.Y(A65,{data:k})}}),_.Y(_.NS,{cond:X,
then:function(){return _.Y(MNV,{thumbsUp:r,thumbsDown:E})}}))}}),_.Y(_.NS,{cond:function(){return V.data().chipsData},
then:function(Z){return _.Y(pOV,{data:Z,disabled:V.pending,onError:V.onError})}}))},"$h");
vG6.idomCompat={callbacks:{onError:!0,onSend:!0}};var OsV=_.W1(function(V){var l=function(){return V.data().choiceSelectedText};
return _.Y("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.Y(_.NS,{cond:l,then:function(){return _.Y("div",{class:"ytYouChatUserTurnChoiceSelected"},_.Y(_.Ni,{text:l}))}}),_.Y("div",{class:"ytYouChatUserTurnUserMessage"},function(){return V.data().text}))},"ai");var Ct5=_.W1(function(V){var l=_.U((0,_.xH3)(V.data)).next().value;return _.Y("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return V.data().targetId||""}},_.Y(_.rw,{data:function(){return l().contents}},{chatLoadingViewModel:_.YIr,
youChatItemViewModel:function(I){return _.Y(vG6,{data:I.data,pending:!1})},
chatUserTurnViewModel:function(I){return _.Y(OsV,{data:I.data})},
accordionViewModel:function(I){return _.Y(_.BW6,{data:I.data})},
learningJourneyLoaderViewModel:function(I){return _.Y(_.lg2,{data:I.data})}}))},"bi");_.MR(_.W1(function(V){var l=_.U((0,_.xH3)(V.data)).next().value;return _.Y("yt-section-list-renderer",{class:_.ii("ytSectionListRendererHost",V.className),"data-target-id":function(){return V.data().targetId||""}},_.Y(_.rw,{data:function(){return l().contents}},{itemSectionRenderer:Ct5}))},"ci"),"yt-section-list-renderer",{props:{data:_.b9,
className:_.qR}});_.MR(_.W1(function(V){var l=function(){return _.y(V.data().inputComposerViewModel,Y9x)},I=function(){var Z;
return((Z=l())==null?void 0:Z.youchatPendingResponseEntityKey)||""},H=_.dw(V6p,I),T=function(){var Z;
return!((Z=H())==null||!Z.isPendingResponse)},x=_.U(_.xi(!0,void 0,"DR0q1d")),n=x.next().value,w=x.next().value,N=function(){return l().sectionTargetId||"youchat_messages_section"};
x=_.pO();var L=_.sZ(),e=_.dw(ICj,"chat_input_view_model_state"),k=HdY(),X=function(){var Z;return!((Z=e())==null||!Z.value)};
_.XW(function(){var Z;!X()&&((Z=l())==null?0:Z.welcomeFeatureContinuation)&&(Z=_.IV({continuationCommand:{token:l().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),_.rj(Z),k(!0));var S=N(),p;(p=_.F().resolve(_.Cs(_.nb)))==null||p.addEventListener("yt-navigate-start",function(){_.zb.remove(S);k(!1)},{once:!0})});
var r=_.Bu(function(Z){var S=T()||!1;Bpd(L.value);S||Z.key!=="Enter"||Z.shiftKey||(Z.preventDefault(),D());return!1}),E=_.Bu(function(){w(L.value.value.length===0);
return!1}),D=function(){var Z,S,p,Vf,C,By,lN,wW,o1;
return _.d(function(h1){Z=L.value.value;L.value.value="";Bpd(L.value);S=xVV(N(),Z);_.rj(S);p=lC6(I());_.EI(((Vf=l())==null?void 0:Vf.onSubmitCommand)||{});p(!0);By=String(Math.floor(((C=_.F().resolve(_.lP)())==null?void 0:C.getCurrentTime())||0)*1E3);wW=_.IV({continuationCommand:{token:(lN=l())==null?void 0:lN.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}});o1=_.IV({inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:Z,playerOffsetMs:By}});_.rj(wW,{form:{formData:o1},
commandController:{onSuccess:function(){p(!1)},
onServerError:function(){var ec=N();_.rj({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:ec}}]}}});p(!1)}}});
_.FU(h1)})};
return _.Y("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:x},_.Y("div",{class:"chatInputViewModelChatInputWrapper"},_.Y("form",{class:"chatInputViewModelChatInputForm"},_.Y("textarea",{class:"chatInputViewModelChatInput",el:L,"on:keydown":r,"on:keyup":E,placeholder:function(){var Z,S;var p=_.y((S=l())==null?void 0:S.inputFormField,ujY);return p==null?void 0:(Z=p.contentProperties)==null?void 0:Z.placeholderText},
rows:1}),_.Y(_.Db,{data:function(){return _.y(V.data().sendButton,_.Gb)},
onClick:function(Z){Z.preventDefault();D();w(L.value.value.length===0)},
buttonOverrides:function(){return{disabled:n()||T()}}})),_.Y(_.Ni,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Z;return(Z=_.y(V.data().disclaimer,_.ArE))==null?void 0:Z.text}})))},"di"),"yt-chat-input-view-model",{props:{data:_.b9}});var apY=["engagement-panel-clip-create","engagement-panel-clip-view"],fpV=0,gGp=function(){var V=_.M.apply(this,arguments)||this;var l;V.headerData=(l=V.data)==null?void 0:l.header;V.darkerPanels=_.z("web_watch_darker_panels");V.disableAutoFill=!1;V.isFullscreen=!1;V.modernPanels=_.z("kevlar_watch_modern_panels");V.liveChatReplyPanel=!1;V.enableAnchoredPanel=_.z("desktop_shorts_v2_anchored_panel");V.disableBackdropFilter=_.z("web_disable_backdrop_filter");V.trackEngagementPanelVisibility=_.z("web_watch_track_engagement_panel_visibility");
V.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 V};
_.t(gGp,_.M);_.B=gGp.prototype;
_.B.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(V){V=
V==null?void 0:V.contents;if(!V||V.length<1)return"ytd-section-list-renderer";var l,I;V=(l=V[0])==null?void 0:(I=l.itemSectionRenderer)==null?void 0:I.contents;if(!V||V.length<1)return"ytd-section-list-renderer";var H;return((H=V[0])==null?0:H.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"}}}};
_.B.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var V;if((V=this.hostElement.parentElement)==null?0:V.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.B.detached=function(){this.updateTheaterDisablement()};
_.B.showPanel=function(){var V=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.r0.addJob(function(){V.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.B.maybeScrollToItemSection=function(V){var l=this,I,H=V==null?void 0:(I=V.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;H&&_.r0.addJob(function(){var T;(T=l.sectionListRendererElement)==null||T.scrollToItemSection(H)},8)};
_.B.hidePanel=function(){var V=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.r0.addJob(function(){V.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.B.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.B.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.B.updatePanel=function(V,l,I,H){var T=this;if((V=V==null?void 0:V.engagementPanelSectionListRenderer)||H){if(V){H=V.header;var x=V.content,n=V.footer;(V=V.targetId)&&this.set("data.targetId",V);H&&this.set("data.header",H);x&&this.set("data.content",x);n&&this.set("data.footer",n)}else H&&(V=H.content,x=H.secondaryHeaderContent,(H=H.targetId)&&this.set("data.targetId",H),V&&this.set("data.content",V),x&&(this.secondaryHeaderData=x));this.updateChildVisibilityProperties();if(l){var w;_.z("kevlar_update_panel_focus_scroll_killswitch")||
(w={preventScroll:!0});this.focus(w)}_.Al(this,function(){_.B$(T.hostElement,"yt-refit");T.maybeScrollToItemSection(I)})}};
_.B.computeHeaderData=function(){var V,l=(0,_.EL.unsafeClone)((V=this.data)==null?void 0:V.header);if(l){V=new _.f(Object.keys(l)[0]);var I=_.y(l,V),H=_.y(this.secondaryHeaderData,V);H&&_.k7(l,V,Object.assign({},H,I))}return l};
_.B.getReloadContinuation=function(){var V,l,I,H=_.U(((V=this.data)==null?void 0:(l=V.content)==null?void 0:(I=l.sectionListRenderer)==null?void 0:I.continuations)||[]);for(V=H.next();!V.done;V=H.next())if(V=V.value,V.reloadContinuationData)return V.reloadContinuationData.continuation};
_.B.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var V;((V=this.data)==null?0:V.targetId)&&(V=this.contentElement.firstElementChild)&&V.setAttribute("panel-target-id",this.data.targetId)};
_.B.forwardPopupClosedToFlowRootRenderer=function(){var V=_.h(this.hostElement).querySelector("ytd-flow-root-renderer");if(V)V.onPopupClosed()};
_.B.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.z("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var V;this.visibility=(V=this.data)==null?void 0:V.visibility;var l;this.trackEngagementPanelVisibility&&((l=this.data)==null?void 0:l.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var I,H,T,x;this.contentEmpty=!!(((I=this.data)==null?0:(H=I.content)==null?0:H.structuredDescriptionContentRenderer)&&Object.keys((T=this.data)==null?void 0:(x=T.content)==null?void 0:x.structuredDescriptionContentRenderer).length===0);(V=_.F().resolve(_.Eu))&&V.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.B.isFullscreenChanged=function(){this.isFullscreen&&_.z("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.B.focus=function(V){if(this.header)this.header.focus(V);else{var l;(l=_.h(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||l.focus(V)}};
_.B.visibilityChanged=function(){if(!_.z("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var V=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",I=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",T=H||!this.lastVisibility,x,n,w=(x=this.data)==null?void 0:(n=x.identifier)==null?void 0:n.tag,
N;if(((N=this.data)==null?0:N.onShowCommands)&&V&&T)_.d6(this.hostElement,this.data.onShowCommands,this.hostElement),w&&_.v4().dispatch(_.IA({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:w}}));else{var L;((L=this.data)==null?0:L.onHideCommands)&&l&&I&&(_.d6(this.hostElement,this.data.onHideCommands,this.hostElement),w&&_.v4().dispatch(_.IA({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:w}})))}V&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*fpV++));_.z("kevlar_watch_focus_on_engagement_panels")&&
V&&H&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.B.notifyVisibilityChanged=function(V){var l;_.U4(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,V,(l=this.data)==null?void 0:l.targetId])};
_.B.updateTheaterDisablement=function(){if(!_.z("kevlar_watch_theater_disablement_killswitch")){var V=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&apY.includes(V)&&!_.z("watch_next_grid_ignore_disallowed_panels")){var l=_.tk(_.v4().getState()),I=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";V!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():I?(this.originalTheaterState===void 0&&(this.originalTheaterState=l,this.theaterDisablementPanelIdentifier=
V),l&&_.xB(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.B.clearTheaterDisablement=function(){_.xB(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.B.updateChildVisibilityProperties=function(){this.hostElement||_.z("kevlar_panel_property_init_killswitch")||this._enableProperties();var V=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=V);var l,I=(l=this.headerElement)==null?void 0:l.firstElementChild;if(I&&!this.adHeaderImageLockupViewModel){l=V==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";I.collapsed=l;I=_.h(I).querySelector("#visibility-button");if(!I)return;(I=I.firstElementChild)&&
I.polymerController.is==="ytd-toggle-button-renderer"&&I.polymerController.data.isToggled!==l&&I.polymerController.set("data.isToggled",l)}var H;if(l=(H=this.contentElement)==null?void 0:H.firstElementChild)if(V&&V!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")l.removeAttribute("panel-content-visible");else{l.setAttribute("panel-content-visible","");var T;(T=l.markDirty)==null||T.call(l)}};
_.B.onYtChangeEngagementPanelVisibilityAction=function(V){var l=this,I,H=(I=this.data)==null?void 0:I.targetId,T,x,n;I=((T=this.data)==null?void 0:(x=T.identifier)==null?void 0:x.tag)||((n=this.data)==null?void 0:n.panelIdentifier);var w=_.y(V,_.I4W),N;V=H&&(w==null?void 0:w.targetId)===H||I&&(w==null?void 0:(N=w.panelIdentifier)==null?void 0:N.tag)===I;this.dialog&&V&&(w==null?void 0:w.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(H==="engagement-panel-comments-section"?_.xB(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.xB(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",I]));H=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";N=this.isFullscreen&&_.z("kevlar_single_panel_fullscreen");H=!V&&(w==null?void 0:w.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!H&&N;_.z("kevlar_use_engagement_panel_management_component")||(V?(H=w.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!H?_.r0.addJob(function(){l.visibility=w.visibility},2,this.hideDelayMs):this.visibility=w.visibility,w.visibility&&this.notifyVisibilityChanged(w.visibility)):H&&this.hidePanel())};
_.B.onYtScrollToEngagementPanelCommand=function(V){var l,I=(l=this.data)==null?void 0:l.targetId,H,T,x;l=((H=this.data)==null?void 0:(T=H.identifier)==null?void 0:T.tag)||((x=this.data)==null?void 0:x.panelIdentifier);V=_.y(V,_.KRi);var n;(I&&(V==null?void 0:V.targetId)===I||l&&(V==null?void 0:(n=V.panelIdentifier)==null?void 0:n.tag)===l)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.xB(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.B.attachVEs=function(V){var l,I;(V==null?0:(l=V.content)==null?0:(I=l.productListRenderer)==null?0:I.trackingParams)&&_.x7().graftServerVe(V.content.productListRenderer.trackingParams);var H,T;(V==null?0:(H=V.content)==null?0:(T=H.transcriptRenderer)==null?0:T.trackingParams)&&_.x7().graftServerVe(V.content.transcriptRenderer.trackingParams)};
_.B.onYtUpdateEngagementPanelAction=function(V){var l,I=(l=this.data)==null?void 0:l.targetId;V=_.y(V,fCq);I&&(V==null?void 0:V.targetId)===I&&(this.updatePanel({engagementPanelSectionListRenderer:{header:V==null?void 0:V.header,content:V==null?void 0:V.content}},!1),this.attachVEs(V))};
_.B.onYtShowEngagementPanelScrimAction=function(V){var l,I=(l=this.data)==null?void 0:l.targetId;V=_.y(V,aC5);I&&(V==null?void 0:V.engagementPanelTargetId)===I&&(this.scrimmed=!0)};
_.B.onYtHideEngagementPanelScrimAction=function(V){var l,I=(l=this.data)==null?void 0:l.targetId;V=_.y(V,OdC);I&&(V==null?void 0:V.engagementPanelTargetId)===I&&(this.scrimmed=!1)};
_.B.getIdentifier=function(){var V,l,I;return((V=this.data)==null?void 0:V.panelIdentifier)||((l=this.data)==null?void 0:(I=l.identifier)==null?void 0:I.tag)};
_.B.getSurface=function(){var V,l;return(V=this.data)==null?void 0:(l=V.identifier)==null?void 0:l.surface};
_.vI.Object.defineProperties(gGp.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var V=this.getIdentifier();return V==="engagement-panel-youchat"||V==="PAyouchat"}}});
var K5=gGp;K5.prototype.visibilityChanged=K5.prototype.visibilityChanged;K5.prototype.isFullscreenChanged=K5.prototype.isFullscreenChanged;K5.prototype.dataChanged=K5.prototype.dataChanged;K5.prototype.forwardPopupClosedToFlowRootRenderer=K5.prototype.forwardPopupClosedToFlowRootRenderer;K5.prototype.onYtRendererstamperFinished=K5.prototype.onYtRendererstamperFinished;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],K5.prototype,"actionHandlerBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],K5.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],K5.prototype,"ytEventForwardingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],K5.prototype,"data",void 0);
_.O([_.q({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.a("design:type",Object)],K5.prototype,"headerData",void 0);_.O([_.q(),_.a("design:type",Object)],K5.prototype,"secondaryHeaderData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],K5.prototype,"visibility",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],K5.prototype,"contentEmpty",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],K5.prototype,"scrimmed",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],K5.prototype,"dialog",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],K5.prototype,"dropdown",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],K5.prototype,"darkerPanels",void 0);_.O([_.q(),_.a("design:type",Object)],K5.prototype,"disableAutoFill",void 0);
_.O([_.q({reflectToAttribute:!0,value:_.z("optimal_reading_width_comments_ep")}),_.a("design:type",Boolean)],K5.prototype,"optimalReadingWidthComments",void 0);_.O([_.q(),_.a("design:type",Number)],K5.prototype,"hideDelayMs",void 0);_.O([_.q({selector:_.S8,reflectToAttribute:!0}),_.a("design:type",Object)],K5.prototype,"isFullscreen",void 0);_.O([_.q(),_.a("design:type",Number)],K5.prototype,"showDelayMs",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.targetId"),_.a("design:type",Object),_.a("design:paramtypes",[])],K5.prototype,"targetId",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],K5.prototype,"webSize",null);_.O([_.q(),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],K5.prototype,"hideFooterBorder",null);_.O([_.q(),_.a("design:type",Object)],K5.prototype,"isWatch",void 0);
_.O([_.q(),_.a("design:type",Object)],K5.prototype,"originalTheaterState",void 0);_.O([_.q(),_.a("design:type",Object)],K5.prototype,"theaterDisablementPanelIdentifier",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],K5.prototype,"modernPanels",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],K5.prototype,"isWatchWhilePanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],K5.prototype,"shortsPanel",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],K5.prototype,"liveChatEngagementPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],K5.prototype,"liveChatReplyPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],K5.prototype,"enableAnchoredPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],K5.prototype,"disableBackdropFilter",void 0);
_.O([_.q(),_.a("design:type",Object)],K5.prototype,"trackEngagementPanelVisibility",void 0);_.O([_.Ij("#header"),_.a("design:type",HTMLElement)],K5.prototype,"headerElement",void 0);_.O([_.Ij("#header > *"),_.a("design:type",HTMLElement)],K5.prototype,"header",void 0);_.O([_.Ij("ytd-section-list-renderer"),_.a("design:type",Object)],K5.prototype,"sectionListRendererElement",void 0);
_.O([_.Ij("panel-ad-header-image-lockup-view-model"),_.a("design:type",HTMLElement)],K5.prototype,"adHeaderImageLockupViewModel",void 0);_.O([_.Ij("#content"),_.a("design:type",HTMLElement)],K5.prototype,"contentElement",void 0);_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],K5.prototype,"onYtRendererstamperFinished",null);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],K5.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],K5.prototype,"dataChanged",null);_.O([_.b("isFullscreen"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],K5.prototype,"isFullscreenChanged",null);
_.O([_.b("visibility"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],K5.prototype,"visibilityChanged",null);K5=_.O([_.A({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],K5);
_.u(K5,"ytd-engagement-panel-section-list-renderer",function(){if(fn5!==void 0)return fn5;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return fn5=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var mSV;var ish=function(){var V=_.M.apply(this,arguments)||this;V.lastRenderedPanelIds=new Set;V.visiblePanels=[];V.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return V};
_.t(ish,_.M);_.B=ish.prototype;_.B.dataChanged=function(){if(this.data){for(var V=[],l=_.U(this.data),I=l.next();!I.done;I=l.next()){I=I.value;var H=void 0,T=void 0,x=(H=I)==null?void 0:(T=H.engagementPanelSectionListRenderer)==null?void 0:T.visibility;T=H=void 0;((H=I)==null?0:(T=H.engagementPanelSectionListRenderer)==null?0:T.targetId)&&x!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&V.push(I)}this.visiblePanels=V}else this.visiblePanels=[]};
_.B.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}}};
_.B.withoutVisiblePanelById=function(V){return this.visiblePanels.filter(function(l){var I;return((I=l.engagementPanelSectionListRenderer)==null?void 0:I.targetId)!==V})};
_.B.onYtChangeEngagementPanelVisibilityAction=function(V){var l=this,I=_.y(V,_.I4W);if(this.data&&(I==null?0:I.targetId)&&(I==null?0:I.visibility)){var H,T=(H=this.data.find(function(n){var w;return((w=n.engagementPanelSectionListRenderer)==null?void 0:w.targetId)===I.targetId}))==null?void 0:H.engagementPanelSectionListRenderer;
if(T){var x=this.withoutVisiblePanelById(I.targetId);I.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(V=this.data.find(function(n){var w;return((w=n.engagementPanelSectionListRenderer)==null?void 0:w.targetId)===I.targetId}))&&(x=[V].concat(_.oI(x)));
this.hideDelayMs&&I.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&x.length===0?_.r0.addJob(function(){T.visibility=I.visibility;l.visiblePanels=x},10,this.hideDelayMs):(T.visibility=I.visibility,this.visiblePanels=x);
_.U4(this.hostElement,"yt-engagement-panels-visible-changed",[x])}}};
_.B.onRendererstamperFinished=function(){var V=new Set(this.visiblePanels.map(function(l){var I;return(I=l.engagementPanelSectionListRenderer)==null?void 0:I.targetId}));
this.handlePanelVisibilityChange(V,this.lastRenderedPanelIds);this.lastRenderedPanelIds=V};
_.B.handlePanelVisibilityChange=function(V,l){V=V===void 0?new Set:V;l=l===void 0?new Set:l;if(this.data)for(var I=_.U(this.data),H=I.next();!H.done;H=I.next()){H=H.value;var T=void 0,x=void 0,n=(T=H)==null?void 0:(x=T.engagementPanelSectionListRenderer)==null?void 0:x.targetId;if(n&&(T=l.has(n),x=V.has(n),n=void 0,!T&&x?(x=T=void 0,n=(T=H)==null?void 0:(x=T.engagementPanelSectionListRenderer)==null?void 0:x.onShowCommands):T&&!x&&(x=T=void 0,n=(T=H)==null?void 0:(x=T.engagementPanelSectionListRenderer)==
null?void 0:x.onHideCommands),n))for(H=_.U(n),n=H.next();!n.done;n=H.next())this.ytComponentBehavior.resolveCommand(n.value)}};
var jY=ish;jY.prototype.onRendererstamperFinished=jY.prototype.onRendererstamperFinished;jY.prototype.dataChanged=jY.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],jY.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],jY.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],jY.prototype,"lastRenderedPanelIds",void 0);_.O([_.q(),_.a("design:type",Number)],jY.prototype,"hideDelayMs",void 0);_.O([_.q(),_.a("design:type",Array)],jY.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Array)],jY.prototype,"visiblePanels",void 0);_.O([_.q(),_.a("design:type",Boolean)],jY.prototype,"isWatchWhilePanel",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jY.prototype,"dataChanged",null);_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jY.prototype,"onRendererstamperFinished",null);jY=_.O([_.A({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],jY);
_.u(jY,"ytd-watch-engagement-panels",function(){if(mSV!==void 0)return mSV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return mSV=V},{mode:1});var VOp;var Yc=function(){return _.M.apply(this,arguments)||this};
_.t(Yc,_.M);Yc.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.iY(_.h(this.hostElement).querySelector("#text"),_.DEZ(_.RBE,this.data.companionLegalText))};
Yc.prototype.computeAutoScrollEnabled=function(V,l){return V&&!l};
Yc.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Yc.prototype.onToggleTap=function(){this.expanded=!this.expanded};
var L5=Yc;L5.prototype.expandedChanged=L5.prototype.expandedChanged;L5.prototype.dataChanged=L5.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.mmb),_.a("design:type",Object)],L5.prototype,"ytdAutoScrollBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],L5.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],L5.prototype,"expanded",void 0);
_.O([_.q({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.a("design:type",Boolean)],L5.prototype,"autoScrollEnabled",void 0);_.O([_.q(),_.a("design:type",String)],L5.prototype,"expanderIcon",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L5.prototype,"dataChanged",null);
_.O([_.b("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L5.prototype,"expandedChanged",null);L5=_.O([_.A({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],L5);
_.u(L5,"ytd-companion-legal-text-renderer",function(){if(VOp!==void 0)return VOp;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return VOp=V},{mode:1});var lYj;var eY,IYV=function(){var V=_.M.apply(this,arguments)||this;V.buttonUpdate=_.z("web_modern_buttons");V.kevlarWatchGrid=_.z("kevlar_watch_grid");V.centerAlignDescription=_.z("action_companion_center_align_description");V.truncateDomain=_.z("action_companion_truncate_domain");return V};
_.t(IYV,_.M);_.B=IYV.prototype;_.B.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.B.getOnLayoutVisibleCallback=function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.onLayoutVisibleCallback:null};
_.B.getLayoutId=function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.layoutId:null};
_.B.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",eY.JSC$20019_DEFAULT_AD_BADGE_RENDERER);var V=this.getOnLayoutVisibleCallback();V&&V()}};
_.B.getButtonRenderer=function(V){return V.actionButton&&_.y(V.actionButton,_.RG)?(delete _.y(V.actionButton,_.RG).navigationEndpoint,_.y(V.actionButton,_.RG)):{}};
_.B.onClick=function(V){var l=this;if((!_.z("web_modern_buttons")||!_.qi(_.b3(V),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){V=_.u8();var I=this.getLayoutId();V&&I&&_.z("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?V.getPlayerPromise().then(function(H){(new _.SG(H)).executeCommand(l.data.navigationEndpoint,I)}):_.z("kevlar_companion_resolve_command_killswitch")?_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.xB(this.hostElement,"yt-companion-ad-clicked",["action-companion",I])}};
_.vI.Object.defineProperties(IYV.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((V=this.data)==null?0:(l=V.detailsLine)==null?0:(I=l.adRating)==null?0:I.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 V,l,I,H;return((V=this.data)==null?0:(l=V.detailsLine)==null?0:(I=l.adRating)==null?0:(H=I.ratingIcon)==null?0:H.iconType)?_.mj(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H;return((V=this.data)==null?0:(l=V.detailsLine)==null?0:(I=l.texts)==null?0:(H=I[0])==null?0:H.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 V,l;return((V=this.data)==null?0:(l=V.description)==null?0:l.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var V=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return V?V.indexOf("/default_banner")!==-1:!0}}});
var kc=eY=IYV;eY.prototype.onClick=eY.prototype.onClick;eY.prototype.dataChanged=eY.prototype.dataChanged;kc.JSC$20019_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.LT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],kc.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],kc.prototype,"rendererBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],kc.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],kc.prototype,"buttonUpdate",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],kc.prototype,"kevlarWatchGrid",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],kc.prototype,"centerAlignDescription",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],kc.prototype,"truncateDomain",void 0);
_.O([_.q({computed:"computeButtonOverride(buttonUpdate)"}),_.a("design:type",Object)],kc.prototype,"buttonOverride",void 0);_.O([_.Q("data.detailsLine.adRating.ratingText"),_.a("design:type",Object),_.a("design:paramtypes",[])],kc.prototype,"getRating",null);_.O([_.Q("getRating"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kc.prototype,"computeRatingHidden",null);
_.O([_.Q("data.detailsLine.adRating.ratingIcon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],kc.prototype,"iconType",null);_.O([_.Q("data.detailsLine.texts.0.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],kc.prototype,"getDetailsLine",null);_.O([_.Q("getDetailsLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kc.prototype,"computeDetailsLineHidden",null);
_.O([_.Q("data.description.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],kc.prototype,"getDescriptionText",null);_.O([_.Q("getDescriptionText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kc.prototype,"computeDescriptionTextHidden",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kc.prototype,"interactionLoggingClientData",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kc.prototype,"hideBanner",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kc.prototype,"dataChanged",null);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],kc.prototype,"onClick",null);kc=eY=_.O([_.A({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],kc);
_.u(kc,"ytd-action-companion-ad-renderer",function(){if(lYj!==void 0)return lYj;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return lYj=V},{mode:_.Cm("kevlar_poly_si_batch_j067")?1:2});var HAd;var Tmp;var Bm5=function(){var V=_.M.apply(this,arguments)||this;V.buttonUpdate=_.z("web_modern_buttons");V.hideLegacyBanner=_.z("enable_dsa_one_click_ata_translators_infeed_elements");V.adInfoButtonStyle="mono";V.adInfoButtonType="text";V.noDotAdBadge=!0;return V};
_.t(Bm5,_.M);_.B=Bm5.prototype;_.B.getOnLayoutVisibleCallback=function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.onLayoutVisibleCallback:null};
_.B.getLayoutId=function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.layoutId:null};
_.B.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 V=this.data.image.thumbnail.thumbnails[0];this.imageSrc=V.url?_.S6(V.url):void 0;this.imageWidth=V.width||0;this.imageHeight=V.height||0}this.data.clickthroughEndpoint&&_.y(this.data.clickthroughEndpoint,_.cF)&&(V=_.y(this.data.clickthroughEndpoint,_.cF).url,_.z("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
V||"":V?(V=_.S6(V),this.clickThroughUrl=_.hV(V)):this.clickThroughUrl=void 0);(V=this.getOnLayoutVisibleCallback())&&V()}};
_.B.onClick=function(V){_.qi(_.b3(V),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(V)};
_.B.handleClick=function(){var V=this;this.data&&this.data.clickthroughEndpoint&&(_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(l){V.macroReplacementBehavior.sendServiceRequestAction([l])}),_.xB(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.B.onLoad=function(){_.U4(this.hostElement,"yt-refit-popups-action")};
_.vI.Object.defineProperties(Bm5.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.interactionLoggingClientData:null}}});
var FO=Bm5;FO.prototype.onLoad=FO.prototype.onLoad;FO.prototype.onClick=FO.prototype.onClick;FO.prototype.dataChanged=FO.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],FO.prototype,"rendererBehavior",void 0);_.O([_.R(XvM.YtMacroReplacementBehavior),_.a("design:type",Object)],FO.prototype,"macroReplacementBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],FO.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],FO.prototype,"buttonUpdate",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],FO.prototype,"hideLegacyBanner",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],FO.prototype,"adInfoButtonStyle",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],FO.prototype,"adInfoButtonType",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],FO.prototype,"macros",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],FO.prototype,"interactionLoggingClientData",null);_.O([_.q(),_.a("design:type",String)],FO.prototype,"clickThroughUrl",void 0);_.O([_.q(),_.a("design:type",_.rp)],FO.prototype,"imageSrc",void 0);_.O([_.q(),_.a("design:type",Number)],FO.prototype,"imageWidth",void 0);_.O([_.q(),_.a("design:type",Number)],FO.prototype,"imageHeight",void 0);_.O([_.q(),_.a("design:type",Object)],FO.prototype,"noDotAdBadge",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FO.prototype,"dataChanged",null);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],FO.prototype,"onClick",null);_.O([_.W("load"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FO.prototype,"onLoad",null);FO=_.O([_.A({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],FO);
_.u(FO,"ytd-image-companion-renderer",function(){if(Tmp!==void 0)return Tmp;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Tmp=V},{mode:_.Cm("kevlar_poly_si_batch_j067")?1:2});var xlM;var XO,UlO=function(){return _.M.apply(this,arguments)||this};
_.t(UlO,_.M);_.B=UlO.prototype;_.B.dataChanged=function(){this.set("data.adBadge",XO.JSC$20028_DEFAULT_AD_BADGE_RENDERER);if(this.data){var V=this.getOnLayoutVisibleCallback();V&&V()}};
_.B.getOnLayoutVisibleCallback=function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.onLayoutVisibleCallback:null};
_.B.getLayoutId=function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.layoutId:null};
_.B.onCompanionClicked=function(V){this.data&&(V.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.xB(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.B.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var V=_.u8(),l=this.getLayoutId(),I=this.data.clickToAdvSiteEndpoint;V&&l&&_.z("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?V.getPlayerPromise().then(function(H){(new _.SG(H)).executeCommand(I,l)}):_.B$(this.hostElement,"yt-navigate",{endpoint:I})}};
_.B.sendTrackingPings=function(V){if(V&&V.length!==0&&V[0].loggingUrls&&(V=V[0].loggingUrls.map(this.getBaseUrl)))for(var l=0;l<V.length;l++)_.RS(V[l])};
_.B.getBaseUrl=function(V){return V.baseUrl||""};
_.vI.Object.defineProperties(UlO.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var V=_.SN("yt.www.ads.eventcache.getLastCompanionData");return V?(V=V())&&V.interactionLoggingClientData:null}}});
var zT=XO=UlO;XO.prototype.onCompanionClicked=XO.prototype.onCompanionClicked;XO.prototype.dataChanged=XO.prototype.dataChanged;zT.JSC$20028_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.LT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zT.prototype,"data",void 0);
_.O([_.Ij("#title"),_.a("design:type",HTMLElement)],zT.prototype,"shopTitle",void 0);_.O([_.xs("data.impressionEndpoints"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zT.prototype,"dataChanged",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],zT.prototype,"interactionLoggingClientData",null);
_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],zT.prototype,"onCompanionClicked",null);zT=XO=_.O([_.A({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],zT);
_.u(zT,"ytd-shopping-companion-renderer",function(){if(xlM!==void 0)return xlM;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return xlM=V},{mode:1});_.MR(_.W1(function(V){var l=V.data;var I=_.sZ();_.f6(I,function(){return l().interaction},UVO);
_.gT(I,{visibilityCallback:function(H){var T,x=(T=l().interaction)==null?void 0:T.onFirstVisible;H&&x&&_.EI(x)},
showOption:_.U6});_.y9(function(){var H,T;T=(T=_.SN("yt.www.ads.eventcache.getLastCompanionData"))?(T=T())&&T.onLayoutVisibleCallback:null;(H=T)==null||H()});
_.AF(I,"load",function(){_.U4(I.value,"yt-refit-popups-action")});
return _.Y("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost",el:I,"aria-label":function(){var H,T;return(H=l().interaction)==null?void 0:(T=H.accessibility)==null?void 0:T.label}},_.Y("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.Y(_.rw,{data:function(){return l().adImage}},{adImageViewModel:function(H){return _.Y(_.Di,{data:H.data,
targetHeight:80,customCommandResolver:UVO})}})),_.Y("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.Y("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.Y(_.rw,{data:function(){return l().adBadge}},{adBadgeViewModel:function(H){return _.Y(_.Ns,{data:H.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.Y("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.Y(_.rw,{data:function(){return l().menu}},{buttonViewModel:_.Db}))))},"ei"),"banner-image-layout-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;V=_.sZ();_.f6(V,function(){return l().interaction},nnC);
_.gT(V,{visibilityCallback:function(I){var H,T=(H=l().interaction)==null?void 0:H.onFirstVisible;I&&T&&_.EI(T)},
showOption:_.U6});_.y9(function(){var I,H;H=(H=_.SN("yt.www.ads.eventcache.getLastCompanionData"))?(H=H())&&H.onLayoutVisibleCallback:null;(I=H)==null||I()});
return _.Y("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:V},_.Y("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.Y(_.rw,{data:function(){return l().adImage}},{adImageViewModel:function(I){return _.Y(_.Di,{data:I.data,
targetHeight:80,customCommandResolver:nnC})}})),_.Y("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.Y("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.Y(_.rw,{data:function(){return l().adAvatarLockup}},{adAvatarLockupViewModel:function(I){return _.Y(qon,{data:I.data,
customCommandResolver:nnC})}})),_.Y(_.rw,{data:function(){return l().adButton}},{adButtonViewModel:function(I){return _.Y(_.$3,{data:I.data,
customCommandResolver:nnC})}}),_.Y("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.Y(_.rw,{data:function(){return l().menu}},{buttonViewModel:_.Db}))))},"fi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.b9}});var ndM={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"},$l5=function(){var V=_.M.apply(this,arguments)||this;V.updateCompanionDataJobId=0;V.contentVideoId=null;V.player=null;V.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return V};
_.t($l5,_.M);_.B=$l5.prototype;_.B.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:ndM}}};
_.B.attached=function(){var V=this,l=_.u8();l&&l.getPlayerPromise().then(function(I){V.getCachedDataAndListen(I)})};
_.B.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.B.updateRendererStamper=function(){var V={};if(this.data)for(var l in ndM)if(this.data[l]){V[l]=this.data[l];break}if(this.oneofRenderer!=void 0||Object.keys(V).length)this.oneofRenderer=V};
_.B.getCachedDataAndListen=function(V){var l=this.retrieveCachedCompanionData();l&&Object.keys(l).length&&this.receiveCompanionData(l);this.ytPlayerListenerBehavior.listenToPlayerEvent(V,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=V};
_.B.retrieveCachedCompanionData=function(){return _.nK.yt&&_.nK.yt.www&&_.nK.yt.www.ads&&_.nK.yt.www.ads.eventcache&&_.nK.yt.www.ads.eventcache.getLastCompanionData?_.nK.yt.www.ads.eventcache.getLastCompanionData():null};
_.B.receiveCompanionData=function(V){V&&Object.keys(V).length?(this.contentVideoId=V.contentVideoId,this.setCompanionData(V)):this.setCompanionData(V)};
_.B.setCompanionData=function(V){this.cancelPendingCompanionAdJobs();if(V){this.updateCompanionDataJobId=0;for(var l in ndM)ndM.hasOwnProperty(l)&&(this.data[l]=void 0);V.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",V.shoppingCompanionCarouselRenderer):V.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",V.imageCompanionAdRenderer):V.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",V.actionCompanionAdRenderer),_.U4(this.hostElement,
"yt-hide-unlimited-offer-module"),_.U4(this.hostElement,"yt-hide-tvfilm-offer-module")):V.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",V.bannerImageLayoutViewModel):V.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",V.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.B.dataChanged=function(){var V=this,l=_.u8();l?l.getPlayerPromise().then(function(I){V.contentVideoId&&I.getVideoUrl().includes("v="+V.contentVideoId)||(V.cancelPendingCompanionAdJobs(),V.updateRendererStamper())}):_.Rw(Error("im"))};
_.B.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.r0.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.B.handleCompanionAdClicked=function(V,l){this.player.onAdUxClicked(V,l);this.player.pauseVideo()};
var yp=$l5;yp.prototype.dataChanged=yp.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],yp.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],yp.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],yp.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yp.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],yp.prototype,"oneofRenderer",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yp.prototype,"dataChanged",null);yp=_.O([_.A({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],yp);
_.u(yp,"ytd-companion-slot-renderer",function(){if(HAd!==void 0)return HAd;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return HAd=V},{mode:_.Cm("kevlar_poly_si_batch_j067")?
1:2});var dlh;var wxh=function(){return _.M.apply(this,arguments)||this};
_.t(wxh,_.M);wxh.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
var tY=wxh;tY.prototype.dataChanged=tY.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tY.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],tY.prototype,"companionSlotData",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tY.prototype,"dataChanged",null);
tY=_.O([_.A({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],tY);
_.u(tY,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(dlh!==void 0)return dlh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return dlh=V},{mode:1});var Nmd;var K6j=function(){var V=_.M.apply(this,arguments)||this;V.skinnyMode=!1;V.COMPACT_EVENT_COUNT=4;V.onShelfToggleButtonTap=function(){V.logTap(V.data);V.showingMore=!V.showingMore};
V.onShelfToggleButtonFocus=function(){V.showingMore||(V.logTap(V.data),V.showingMore=!0,_.Al(V,function(){var l=V.COMPACT_EVENT_COUNT-1,I;(I=_.h(V.hostElement).querySelector("#event-"+l))==null||I.focus()}))};
return V};
_.t(K6j,_.M);_.B=K6j.prototype;_.B.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.B.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.B.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.VP(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.VP(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.VP(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.VP(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.VP(this.infoTooltip,this.infoTooltip.hide))};
_.B.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.VP(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.VP(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.VP(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.VP(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.VP(this.infoTooltip,this.infoTooltip.hide))};
_.B.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)};
_.B.onShowingMoreChanged=function(){var V;this.showingMoreChanged((V=this.showingMore)!=null?V:!1)};
_.B.showingMoreChanged=function(V){var l=this.get("data.events")||[];this.set("restEvents",l.slice(1,V?l.length:this.COMPACT_EVENT_COUNT).map(function(I){return I.ticketEventRenderer}));
l.slice(0,V?l.length:this.COMPACT_EVENT_COUNT).forEach(function(I){var H=_.oa();I=I.ticketEventRenderer.trackingParams;_.JO()&&H&&I&&(I=_.dj(I),H&&_.s4(H,I))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.B.computeAriaLabel=function(V){return V.subtitle1+", "+V.subtitle2};
_.B.logTap=function(V){_.JO()&&this.ytRendererBehavior.logExplicitClick(V)};
_.B.isKeyboardAction=function(V){return this.get("detail.x",V)===0&&this.get("detail.y",V)===0};
_.B.onFirstEventTap=function(V){V.target&&this.handleTap(V.target,this.firstEvent,this.isKeyboardAction(V))};
_.B.onTicketLinkTap=function(V){V.target&&this.handleTap(V.target,V.model.item,this.isKeyboardAction(V))};
_.B.handleTap=function(V,l,I){if(l.buttonCommand)if(l.hasMultipleOffers)Object.assign(_.y(l.buttonCommand,_.Ed),{properties:{source:I?"keyboard":"tap"}}),this.logTap(l),this.popupPositionTarget=V,_.d6(this.hostElement,[l.buttonCommand],this.hostElement);else{var H;if((H=_.y(l.buttonCommand,_.cF))==null?0:H.url)this.logTap(l),_.uY(window,_.y(l.buttonCommand,_.cF).url)}};
var rI=K6j;rI.prototype.onShowingMoreChanged=rI.prototype.onShowingMoreChanged;rI.prototype.dataChanged=rI.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],rI.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],rI.prototype,"firstEvent",void 0);_.O([_.q(),_.a("design:type",Object)],rI.prototype,"restEvents",void 0);
_.O([_.q(),_.a("design:type",String)],rI.prototype,"imageUrl",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],rI.prototype,"showingMore",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],rI.prototype,"canShowMore",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],rI.prototype,"skinnyMode",void 0);_.O([_.q(),_.a("design:type",HTMLElement)],rI.prototype,"popupPositionTarget",void 0);
_.O([_.Ij("#banner-info-tooltip"),_.a("design:type",Object)],rI.prototype,"infoTooltip",void 0);_.O([_.Ij("#info-container"),_.a("design:type",HTMLElement)],rI.prototype,"infoContainer",void 0);_.O([_.Ij("#shelf-toggler"),_.a("design:type",HTMLElement)],rI.prototype,"shelfToggleButton",void 0);_.O([_.Ij("#separator"),_.a("design:type",HTMLDivElement)],rI.prototype,"separator",void 0);_.O([_.q(),_.a("design:type",String)],rI.prototype,"shelfTogglerLabelText",void 0);
_.O([_.q(),_.a("design:type",String)],rI.prototype,"shelfTogglerIcon",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rI.prototype,"dataChanged",null);_.O([_.xs("showingMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rI.prototype,"onShowingMoreChanged",null);rI=_.O([_.A({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],rI);
_.u(rI,"ytd-ticket-shelf-renderer",function(){if(Nmd!==void 0)return Nmd;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Nmd=V},{mode:1});var jvM;var Y_p;var L6M=function(){return _.M.apply(this,arguments)||this};
_.t(L6M,_.M);var emx=L6M;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],emx.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],emx.prototype,"data",void 0);emx=_.O([_.A({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],emx);
_.u(emx,"ytd-comments-entry-point-message-renderer",function(){if(Y_p!==void 0)return Y_p;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Y_p=V},{mode:1});var kUV;var F6j=function(){return _.M.apply(this,arguments)||this};
_.t(F6j,_.M);_.vI.Object.defineProperties(F6j.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.teaserAvatar)}}});
var GT=F6j;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],GT.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],GT.prototype,"hasAvatar",null);GT=_.O([_.A({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],GT);
_.u(GT,"ytd-comments-entry-point-teaser-renderer",function(){if(kUV!==void 0)return kUV;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return kUV=V},{mode:1});var Xxd;var zmp=function(){return _.M.apply(this,arguments)||this};
_.t(zmp,_.M);var yqC=zmp;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yqC.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yqC.prototype,"data",void 0);yqC=_.O([_.A({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],yqC);
_.u(yqC,"ytd-comments-simplebox-renderer",function(){if(Xxd!==void 0)return Xxd;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Xxd=V},{mode:1});var EV=function(){var V=_.M.apply(this,arguments)||this;V.fullHeight=!_.z("comment_teaser_full_height_kill_switch")&&_.z("kevlar_watch_grid");return V};
_.t(EV,_.M);EV.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"}}}};
EV.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
EV.prototype.onTap=function(){var V=this.tapCommand;V&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(V))};
EV.prototype.onKeyUp=function(V){if(V.keyCode===13)this.onTap()};
_.vI.Object.defineProperties(EV.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null?0:V.onTap)return this.data.onTap;var l,I;if(((l=this.data)==null?0:l.teaserContent)||((I=this.data)==null?0:I.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)!=null&&V.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
var JY=EV;JY.prototype.onKeyUp=JY.prototype.onKeyUp;JY.prototype.onTap=JY.prototype.onTap;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],JY.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],JY.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],JY.prototype,"fullHeight",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],JY.prototype,"tapCommand",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],JY.prototype,"simpleboxPlaceholder",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],JY.prototype,"hasSimpleboxPlaceholder",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],JY.prototype,"simpleboxAvatar",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],JY.prototype,"teaserContent",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],JY.prototype,"hasTeaserContent",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],JY.prototype,"teaserAvatar",null);
_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],JY.prototype,"hasTeaserAvatar",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],JY.prototype,"messageText",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],JY.prototype,"contentRenderer",null);_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],JY.prototype,"hasContents",null);
_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],JY.prototype,"hasContentRenderer",null);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JY.prototype,"onTap",null);_.O([_.W("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[_.Ft]),_.a("design:returntype")],JY.prototype,"onKeyUp",null);JY=_.O([_.A({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],JY);
_.u(JY,"ytd-comments-entry-point-header-renderer",function(){if(jvM!==void 0)return jvM;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return jvM=V},{mode:1});var tOh;_.aN(_.TS,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var rqh=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),GUC={numberText:"",heightPx:2*rqh,shouldAnimate:!1},EdV=function(){var V=_.M.apply(this,arguments)||this;V.usingAnimatedComponents=!0;V.wasDetailed=!1;V.JSC$20064_browserSupportsAnimation=_.z("web_supports_animations_api");V.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};V.detailed=!1;V.shouldAnimate=!1;V.viewCountProps=GUC;V.dateTextProps=
GUC;V.metadataBadgesInDescription=_.z("web_metadata_badges_in_description");return V};
_.t(EdV,_.M);_.B=EdV.prototype;_.B.resetAnimationState=function(){this.shouldAnimate=!1};
_.B.updateDynamicMetadata=function(){if(this.JSC$20064_browserSupportsAnimation){if(!this.detailed){var V,l,I,H;var T=(V=this.videoPrimaryInfoRenderer)==null?void 0:(l=V.viewCount)==null?void 0:(I=l.videoViewCountRenderer)==null?void 0:(H=I.extraShortViewCount)==null?void 0:H.simpleText;var x,n,w,N;var L=(x=this.videoPrimaryInfoRenderer)==null?void 0:(n=x.viewCount)==null?void 0:(w=n.videoViewCountRenderer)==null?void 0:(N=w.shortViewCount)==null?void 0:N.simpleText}if(!L){var e,k,X,r;T=(e=this.videoPrimaryInfoRenderer)==
null?void 0:(k=e.viewCount)==null?void 0:(X=k.videoViewCountRenderer)==null?void 0:(r=X.unlabeledViewCountValue)==null?void 0:r.simpleText;var E,D,Z,S;L=(E=this.videoPrimaryInfoRenderer)==null?void 0:(D=E.viewCount)==null?void 0:(Z=D.videoViewCountRenderer)==null?void 0:(S=Z.viewCount)==null?void 0:S.simpleText}var p,Vf,C;V=Number((p=this.videoPrimaryInfoRenderer)==null?void 0:(Vf=p.viewCount)==null?void 0:(C=Vf.videoViewCountRenderer)==null?void 0:C.originalViewCount);var By,lN;p=(By=this.videoPrimaryInfoRenderer)==
null?void 0:(lN=By.relativeDateText)==null?void 0:lN.simpleText;var wW;By=!((wW=this.videoPrimaryInfoRenderer)==null||!wW.relativeDateText);if(T&&L&&V&&(p||!By)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;wW=L.split(new RegExp("("+T+")"));T=jOV(wW[0]);var o1;L={numberText:(o1=wW[1])!=null?o1:"",numberValue:V,heightPx:2*rqh,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var h1;o1=((h1=wW[2])!=null?h1:"")+"  ";this.setViewCount(L,T,
jOV(o1));if(!this.detailed&&By){T=p.split(/(\d+)/);h1=jOV(T[0]);var ec;o1={numberText:(ec=T[1])!=null?ec:"",heightPx:2*rqh,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Zg;ec=((Zg=T[2])!=null?Zg:"")+"  ";this.setDateText(o1,h1,jOV(ec))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.B.setViewCount=function(V,l,I){_.A5(l)!==_.A5(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=l);this.viewCountProps.numberText!==(V==null?void 0:V.numberText)&&(this.viewCountProps=V||GUC);_.A5(I)!==_.A5(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=I)};
_.B.setDateText=function(V,l,I){_.A5(l)!==_.A5(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=l);this.dateTextProps.numberText!==(V==null?void 0:V.numberText)&&(this.dateTextProps=V||GUC);_.A5(I)!==_.A5(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=I)};
_.B.onYtUpdateViewershipAction=function(V){this.videoPrimaryInfoRenderer&&(_.y(V,td5).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.y(V,td5).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.y(V,td5).viewCount)))};
_.B.onYtUpdateDateTextAction=function(V){if(this.videoPrimaryInfoRenderer){V=_.y(V,_.z76).dateText;this.shouldAnimate=!0;var l;((l=this.videoPrimaryInfoRenderer)==null?0:l.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",V):this.set("videoPrimaryInfoRenderer.dateText",V)}};
_.vI.Object.defineProperties(EdV.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Kx6(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.A5(Kx6(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.A5(this.viewCountPreNumberText),this.viewCountProps.numberText,_.A5(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.A5(this.dateTextPreNumberText),this.dateTextProps.numberText,_.A5(this.dateTextPostNumberText)].join("")}}});
var on=EdV;on.prototype.updateDynamicMetadata=on.prototype.updateDynamicMetadata;on.prototype.resetAnimationState=on.prototype.resetAnimationState;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],on.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],on.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],on.prototype,"videoPrimaryInfoRenderer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],on.prototype,"detailed",void 0);_.O([_.q(),_.a("design:type",Object)],on.prototype,"shouldAnimate",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],on.prototype,"viewCountPreNumberText",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],on.prototype,"viewCountProps",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],on.prototype,"viewCountPostNumberText",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],on.prototype,"dateTextPreNumberText",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],on.prototype,"dateTextProps",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],on.prototype,"dateTextPostNumberText",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],on.prototype,"metadataBadgesInDescription",void 0);_.O([_.Q("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.a("design:type",Object),_.a("design:paramtypes",[])],on.prototype,"infoText",null);
_.O([_.Q("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.a("design:type",String),_.a("design:paramtypes",[])],on.prototype,"descriptionInfoTooltipText",null);_.O([_.Q("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.a("design:type",String),_.a("design:paramtypes",[])],on.prototype,"animatedViewCountAccessibilityLabel",null);
_.O([_.Q("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.a("design:type",String),_.a("design:paramtypes",[])],on.prototype,"animatedDateTextAccessibilityLabel",null);_.O([_.b("videoPrimaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],on.prototype,"resetAnimationState",null);
_.O([_.b("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],on.prototype,"updateDynamicMetadata",null);on=_.O([_.A({disableElementRegistration:!0,is:"ytd-watch-info-text"})],on);
_.u(on,"ytd-watch-info-text",function(){if(tOh!==void 0)return tOh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return tOh=V},{mode:1});var Jqh;var odh=_.W1(function(V){var l=V.data;var I=V.setTapCommand;_.t0(function(){var H=_.to(l().onTap);I(H)});
return _.Y("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.Y(_.rw,{data:function(){return l().avatar}},{avatarViewModel:_.SA}),_.Y("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.Y("span",null,function(){return l().simpleboxText})))},"gi");var hmx=_.W1(function(V){return _.Y("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.Y(_.NS,{cond:function(){return _.y(V.data().avatar,_.C6)},
then:function(l){return _.Y(_.SA,{data:l,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.Y("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.Y(_.Ni,{text:function(){return V.data().teaserText}})))},"hi");var P2d=_.W1(function(V){var l=V.data;var I=V.setTapCommand;_.t0(function(){var H=_.to(l().onTap);I(H)});
return _.Y("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.Y(_.rw,{data:function(){return l().teasers}},{commentsEntryPointTeaserViewModel:hmx}))},"ii");var Dl6=_.W1(function(V){var l=V.data;var I=V.setTapCommand;_.t0(function(){var H=_.to(l().onTap);I(H)});
return _.Y("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.Y(_.Ni,{text:function(){return l().messageText}}))},"ji");var ZAj=_.W1(function(V){var l=V.data;var I=V.setTapCommand;var H=V.isDisabled;_.t0(function(){var T=(H==null?0:H())?void 0:_.to(l().onTap);I(T)});
return _.Y("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.Y(_.dq,{icon:function(){return l().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.Y(_.NS,{cond:function(){return l().image},
then:function(T){return _.Y(_.cX,{data:T,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.Y(_.Ni,{text:function(){return l().text},
className:function(){return l().image||l().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.Y(_.rw,{data:function(){return l().button}},{buttonViewModel:function(T){return _.Y(_.Db,{data:T.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:H==null?void 0:H()}}})}}))},"ki");var S_h=_.W1(function(V){var l=V.data;var I=V.itemIndex;var H=V.selectedIndex;var T=V.indexUpdatedCallback;var x=V.observer;V=V.title;var n=_.sZ(),w=function(k){I()===H()&&T(k)},N=_.rq(Mb6),L=_.rq(suO),e=function(){var k,X,r;
return((k=l())==null?void 0:k.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!N()||((X=l())==null?void 0:X.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&L().includes("PAposts_by_host")||((r=l())==null?void 0:r.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&L().includes("PAyouchat")};
_.XW(function(){x&&x().observe(n.value)});
return _.Y("yt-carousel-item-view-model",{el:n,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":V},_.Y(_.rw,{data:function(){var k,X;return(X=(k=_.y(l().carouselItem,AVf))==null?void 0:k.textCarousel)!=null?X:l().carouselItem}},{textCarouselItemViewModel:function(k){return _.Y(ZAj,{data:k.data,
setTapCommand:w,isDisabled:e})},
commentTeaserCarouselItemViewModel:function(k){return _.Y(P2d,{data:k.data,setTapCommand:w})},
commentInputBoxCarouselItemViewModel:function(k){return _.Y(odh,{data:k.data,setTapCommand:w})},
commentsEntryPointMessageViewModel:function(k){return _.Y(Dl6,{data:k.data,setTapCommand:w})}}))},"li");var Rm5=_.W1(function(V){var l=V.numDots;var I=V.activeIndex;return _.Y("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.Y(_.Ks,{each:function(){return Array.from({length:l()})},
keyBy:"INDEX"},function(H,T){return _.Y("div",{class:function(){var x={};return _.l8("ytCarouselDotsShapeDot",(x.ytCarouselDotsShapeDotActive=T===I(),x))}})}))},"mi");var QvV=_.W1(function(V){var l=V.data;var I=V.handleCarouselNavigation;var H=V.numItems;var T=V.selectedIndex;var x=function(){return{disabled:T()===0}},n=function(){return{disabled:T()===H()-1}};
return _.Y("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.Y("div",null,_.Y("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return l().title}),_.Y(_.NS,{cond:function(){return l().subtitle},
then:function(w){return _.Y("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return l().subtitleAccessibilityText}},w)}})),_.Y(_.NS,{cond:function(){return H()>1},
then:function(){return _.Y("div",{class:"ytCarouselTitleViewModelNavigation"},_.Y(Rm5,{numDots:H,activeIndex:T}),_.Y(_.NS,{cond:function(){return l().previousButton},
then:function(w){return _.Y(_.rw,{data:w},{buttonViewModel:function(N){return _.Y(_.Db,{data:N.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(-1)},
buttonOverrides:x})}})}}),_.Y(_.NS,{cond:function(){return l().nextButton},
then:function(w){return _.Y(_.rw,{data:w},{buttonViewModel:function(N){return _.Y(_.Db,{data:N.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(1)},
buttonOverrides:n})}})}}))}}))},"ni");_.MR(_.W1(function(V){var l=V.data;var I=_.sZ(),H=_.sZ(),T=_.h6("HTML_DIR")==="rtl",x=!1,n=0,w=0;V=_.U(_.xi(0,void 0,"m0dtIf"));var N=V.next().value,L=V.next().value;V=_.U(_.xi(0,void 0,"fL6I6"));var e=V.next().value,k=V.next().value;V=_.U(_.xi(!1,void 0,"ZPrwNb"));var X=V.next().value,r=V.next().value,E=function(){var wW,o1,h1;return(h1=(wW=l())==null?void 0:(o1=wW.carouselTitles)==null?void 0:o1.length)!=null?h1:0},D=function(){H.value&&H.value.scrollLeft!==n&&L((T?H.value.scrollLeft<n:H.value.scrollLeft>
n)?Math.min(N()+1,E()-1):Math.max(N()-1,0))},Z;
window.IntersectionObserver&&(Z=new IntersectionObserver(function(wW){wW=_.U(wW);for(var o1=wW.next();!o1.done;o1=wW.next())if(o1.value.isIntersecting){if(x){x=!1;break}D()}else L(w)},{threshold:.2}));
_.t0(function(){if(H.value){var wW=(T?-1:1)*(e()/E()+12)*(X()&&Z?w:N());typeof H.value.scrollTo==="function"?H.value.scrollTo({left:wW,behavior:"smooth"}):H.value.scrollLeft=wW;n=wW;w=X()&&Z?w:N()}});
var S,p=function(wW){S=wW};
_.XW(function(){var wW=function(){var h1=H.value.offsetWidth*E(),ec=24*(E()-1);k(h1+ec)};
wW();if(window.ResizeObserver){var o1=new ResizeObserver(wW);o1.observe(H.value);_.rx(function(){o1.disconnect();Z&&Z.disconnect()})}});
V=_.Bu(function(wW){if(_.FeN(_.cK(wW),I.value,["BUTTON".toString()])||!S)return!1;_.F().resolve(_.aw).resolveCommand(S,{forceClickLogging:!0});return!1});
var Vf=function(wW){wW=N()+wW;wW>=0&&wW<E()&&(x=!0,L(wW))},C=_.Bu(function(){r(!0);
return!1}),By=_.Bu(function(){Z||D();
r(!1);return!1}),lN={};
return _.Y("yt-video-metadata-carousel-view-model",{class:_.ii("ytVideoMetadataCarouselViewModelHost",(lN.ytVideoMetadataCarouselViewModelShortMode=_.z("mweb_video_metadata_carousel_short_mode"),lN)),el:I,"on:click":V,"on:touchstart":C,"on:touchend":By,hidden:function(){var wW,o1;return!((wW=l())==null?0:(o1=wW.carouselItems)==null?0:o1.length)}},_.Y("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.Y(_.NS,{cond:function(){return l().carouselTitles},
then:function(wW){return _.Y(_.rw,{data:function(){return wW()[X()&&Z?w:N()]}},{carouselTitleViewModel:function(o1){return _.Y(QvV,{data:o1.data,
handleCarouselNavigation:Vf,numItems:E,selectedIndex:N})}})}})),_.Y("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:H},_.Y("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+e()+"px;"}},_.Y(_.NS,{cond:function(){return l().carouselItems},
then:function(wW){return _.Y(_.Ks,{each:wW},function(o1,h1){return _.Y(_.rw,{data:function(){return o1}},{carouselItemViewModel:function(ec){return _.Y(S_h,{data:ec.data,
itemIndex:h1,selectedIndex:N,indexUpdatedCallback:p,observer:Z,title:function(){a:{var Zg=h1();var Va,wb=(Va=l())==null?void 0:Va.carouselTitles;if(wb&&(Zg=wb[Zg])){var CK;Zg=(CK=_.y(Zg,phd))==null?void 0:CK.title;break a}Zg=void 0}return Zg}})}})})}}))))},"oi"),"yt-video-metadata-carousel-view-model",{props:{data:_.b9}});var cqY=_.z("web_action_buttons_update_owner_width")?32:12,W6d=function(){var V=_.M.apply(this,arguments)||this;V.metadataBadgesInDescription=_.z("web_metadata_badges_in_description");V.descriptionCollapsed=!0;V.useFadedScrimDescription=_.z("kevlar_enable_faded_scrim_on_description");V.skinnyMode=!1;V.playlist=!1;V.isDark=document.documentElement.hasAttribute("dark");V.disableVideoOwnerOnTap=_.z("swatchie_video_owner_on_tap_ks");V.swatcherooDelayLoad=_.z("swatcheroo_enable_ghost_cards");V.primaryMenuWidth=
0;V.videoId="";V.titleHeadlineXs=_.z("web_watch_typography_title_headline_xs");V.titleHeadlineS=_.z("web_watch_typography_title_headline_s");V.titleHeadlineM=_.z("web_watch_typography_title_headline_m");V.titleHashtagBlackLinkified=_.z("web_title_hashtag_black_linkified");V.titleHashtagGreyLinkified=_.z("web_title_hashtag_grey_linkified");V.actionButtonsUpdateOwnerWidth=_.z("web_action_buttons_update_owner_width");V.shouldForceIconOnly=!1;V.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return V};
_.t(W6d,_.M);_.B=W6d.prototype;_.B.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.B.updateOwnerAndDescriptionPosition=function(){_.z("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.WW(this.bottomRowElement,this.ownerElement)):(_.WW(this.bottomRowElement,this.descriptionElement),_.WW(this.topRowElement,this.ownerElement)))};
_.B.titleOnTap=function(V){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.qi(_.b3(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;((l=window.getSelection())==null?0:l.toString().length)||this.handleExpandDescriptionCommands()}};
_.B.videoOwnerOnTap=function(V){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.qi(_.b3(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.B.detached=function(){var V=this,l;return _.d(function(I){(l=V.resizeObserver)==null||l.disconnect();_.FU(I)})};
_.B.maybeAttachResizeObserver=function(){var V=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.le(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){V.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.B.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var V=this.hostElement.clientWidth,l=Math.max(this.largerItemWrap?400:350,V/2-cqY);if(_.z("web_action_buttons_update_owner_width")){var I;l=(((I=document.getElementById("owner"))==null?void 0:I.clientWidth)||0)+cqY}this.actionsOnSeparateLine=this.primaryMenuWidth>V-l?!0:!1}};
_.B.stripAttributedDescription=function(V){return{content:V.content.replace(/[\r\n]{2,}/g,"\n")}};
_.B.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.z("web_modern_buttons"),forceIconButton:!_.z("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:_.z("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"}}}};
_.B.videoPrimaryInfoRendererChanged=function(){var V;if((V=this.videoPrimaryInfoRenderer)==null?0:V.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.B.videoSecondaryInfoRendererChanged=function(){var V,l;(l=(V=this.descriptionInlineExpander).collapse)==null||l.call(V);this.descriptionExpandClientVe=_.eU(110509);this.descriptionCollapseClientVe=_.eU(110510);V=_.oa();l=_.JO();V&&l&&(_.z("combine_ve_grafts")?(_.Ug(_.x7(),this.descriptionExpandClientVe,l),_.Ug(_.x7(),this.descriptionCollapseClientVe,l)):_.ah(V,l,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.B.structuredDescriptionContentRendererChanged=function(){_.z("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.B.updateTopLevelIconsOnly=function(){var V=this;_.z("top_level_update_killswitch")||this.menu&&_.r0.addLowPriorityJob(function(){V.menu.topLevelIconsOnly=V.skinnyMode},_.g7("swathceroo_delay_flexible_menu_update",100))};
_.B.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.z("web_action_buttons_minimize_subscribe")};
_.B.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.B.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.B.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.B.onYtTextInlineExpanderExpandedChanged=function(){if(!_.z("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var V,l;(l=(V=this.structuredDescriptionContentRendererElement).resize)==null||l.call(V)}};
_.B.onRenderStamperFinished=function(V){(V==null?void 0:V.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.B.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.B.onYtExpanderLessTapped=function(){var V,l=(V=this.videoSecondaryInfoRenderer)==null?void 0:V.showLessCommand;l&&this.ytComponentBehavior.resolveCommand(l)};
_.B.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.B.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.B.onDescriptionClick=function(V){if(!_.qi(_.b3(V)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;((l=window.getSelection())==null?0:l.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.z("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.B.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.B.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.B.logCollapseClick=function(){var V=_.oa();V&&this.descriptionCollapseClientVe&&_.uJ(V,this.descriptionCollapseClientVe)};
_.B.logExpandClick=function(){var V=_.oa();V&&this.descriptionExpandClientVe&&_.uJ(V,this.descriptionExpandClientVe)};
_.B.collapseDescription=function(){this.descriptionCollapsed=!0};
_.B.scrollToTopOfContainer=function(){_.xB(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.B.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.B.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.B.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.B.resize=function(){if(this.descriptionInlineExpander){var V,l;(l=(V=this.descriptionInlineExpander).resize)==null||l.call(V)}else _.hF(new _.Yd("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var I;(I=this.menu)==null||I.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.z("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.B.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var V,l,I,H,T=_.z("web_action_buttons_update_owner_width")?(I=(V=_.h(this.menu).querySelector("#button-shape"))==null?void 0:V.clientWidth)!=null?I:0:(H=(l=_.h(this.menu).querySelector("#button"))==null?void 0:l.clientWidth)!=null?H:0,x,n;V=((n=(x=_.h(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:x.clientWidth)!=null?n:0)+8+T;var w,N;T=(N=(w=_.h(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:w.children.length)!=null?N:2;V<=8*T||(this.primaryMenuWidth=V)}};
_.B.onYtUpdateTitleAction=function(V){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.y(V,yeV).title)};
_.B.onYtUpdateDescriptionAction=function(V){if(V=_.y(V,_.C1w)){var l,I=!((l=this.videoSecondaryInfoRenderer)==null||!l.attributedDescription);V.isEmpty||!V.description&&!V.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):V.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",V.attributedDescription):V.description&&(I?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Fo(V.description)):this.set("videoSecondaryInfoRenderer.description",V.description))}};
_.B.onYtDarkModeToggledAction=function(V){this.isDark=V};
_.B.registerPanel=function(){if(!_.z("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var V=_.F().resolve(_.Eu);V&&V.registerPanel("engagement-panel-structured-description",this)}};
_.B.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.B.showPanel=function(V){this.expandDescription();var l=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;l.resize();var I,H=V==null?void 0:(I=V.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;H?_.r0.addJob(function(){l==null||l.scrollToSection(H)},8):this.scrollToTopOfContainer()};
_.B.isVisible=function(){return!this.descriptionCollapsed};
_.B.getReloadContinuation=function(){};
_.B.hidePanel=function(){};
_.B.updatePanel=function(){};
_.vI.Object.defineProperties(W6d.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.structuredDescriptionContentRenderer)!=null&&V.items){var l;V=_.U((l=this.structuredDescriptionContentRenderer)==null?void 0:l.items);for(l=V.next();!l.done;l=V.next())if(l=_.y(l.value,_.nYi))return l}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.videoPrimaryInfoRenderer)==null?0:V.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return!!((V=this.videoSecondaryInfoRenderer)==null?0:(l=V.owner)==null?0:(I=l.videoOwnerRenderer)==null?0:I.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.z("swatchie_sd_new_line_strip_ks")){var V,l;if((V=this.videoSecondaryInfoRenderer)==null?0:(l=V.attributedDescription)==null?0:l.content){var I,H;return(H=this.stripAttributedDescription((I=this.videoSecondaryInfoRenderer)==null?void 0:I.attributedDescription))!=null?H:{runs:[]}}}var T,x,n,w;return(w=(n=(T=this.videoSecondaryInfoRenderer)==null?void 0:T.description)!=null?n:(x=this.videoSecondaryInfoRenderer)==null?
void 0:x.attributedDescription)!=null?w:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=(V=this.videoSecondaryInfoRenderer)==null?void 0:V.headerRuns)!=null?l:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.commentsEntryPointHeaderRenderer)==null||!V.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.videoMetadataCarousel)==null||!V.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.g7("swatchie_desc_lines",3):this.hasTeaserCarousel?_.g7("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var V,l,I=Object.assign({},(V=this.videoSecondaryInfoRenderer)==null?void 0:(l=V.metadataRowContainer)==null?void 0:l.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0&&!(I.rows.length<=I.collapsedItemCount))return I.rows=I.rows.slice(I.collapsedItemCount),I.collapsedItemCount=0,I}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var V,l,I=Object.assign({},(V=this.videoSecondaryInfoRenderer)==null?void 0:(l=V.metadataRowContainer)==null?void 0:l.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0)return I.rows=I.rows.slice(0,I.collapsedItemCount),I.collapsedItemCount=I.rows.length,I}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var V,l;return!!((V=this.structuredDescriptionContentRenderer)==null?0:(l=V.items)==null?0:l.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 V;return(V=this.videoSecondaryInfoRenderer)==null?void 0:V.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((V=this.videoSecondaryInfoRenderer)==null?0:(l=V.owner)==null?0:(I=l.videoOwnerRenderer)==null?0:I.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H;return!!((V=this.videoPrimaryInfoRenderer)==null?0:(l=V.videoActions)==null?0:(I=l.menuRenderer)==null?0:(H=I.flexibleItems)==null?0:H.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.ZA(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.ZA(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var V=this;if(_.z("web_title_hashtag_grey_delinkified")){var l,I=_.EL.unsafeClone((l=this.videoPrimaryInfoRenderer)==null?void 0:l.title);(l=I==null?void 0:I.runs)&&l.forEach(function(H){if(H==null?0:H.navigationEndpoint)H.textColor=4284506208,V.isDark&&(H.textColor=4289374890)});
return I}return(I=this.videoPrimaryInfoRenderer)==null?void 0:I.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.z("web_title_hashtag_black_delinkified")||_.z("web_title_hashtag_grey_delinkified")}}});
var hY=W6d;hY.prototype.resetDescriptionState=hY.prototype.resetDescriptionState;hY.prototype.registerPanel=hY.prototype.registerPanel;hY.prototype.onYtExpanderLessTapped=hY.prototype.onYtExpanderLessTapped;hY.prototype.onYtExpanderMoreTapped=hY.prototype.onYtExpanderMoreTapped;hY.prototype.onRenderStamperFinished=hY.prototype.onRenderStamperFinished;hY.prototype.onYtTextInlineExpanderExpandedChanged=hY.prototype.onYtTextInlineExpanderExpandedChanged;
hY.prototype.onYtTextInlineExpanderCollapseClicked=hY.prototype.onYtTextInlineExpanderCollapseClicked;hY.prototype.onYtTextInlineExpanderExpandClicked=hY.prototype.onYtTextInlineExpanderExpandClicked;hY.prototype.moveActionsElement=hY.prototype.moveActionsElement;hY.prototype.updateShouldForceIconOnly=hY.prototype.updateShouldForceIconOnly;hY.prototype.updateTopLevelIconsOnly=hY.prototype.updateTopLevelIconsOnly;hY.prototype.structuredDescriptionContentRendererChanged=hY.prototype.structuredDescriptionContentRendererChanged;
hY.prototype.videoSecondaryInfoRendererChanged=hY.prototype.videoSecondaryInfoRendererChanged;hY.prototype.videoPrimaryInfoRendererChanged=hY.prototype.videoPrimaryInfoRendererChanged;hY.prototype.maybeUpdateActionsOnSeparateLine=hY.prototype.maybeUpdateActionsOnSeparateLine;hY.prototype.updateOwnerAndDescriptionPosition=hY.prototype.updateOwnerAndDescriptionPosition;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],hY.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],hY.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Ij("#above-the-fold"),_.a("design:type",HTMLElement)],hY.prototype,"aboveTheFoldContainer",void 0);
_.O([_.Ij("#menu ytd-menu-renderer"),_.a("design:type",Object)],hY.prototype,"menu",void 0);_.O([_.Ij("#description-inline-expander"),_.a("design:type",Object)],hY.prototype,"descriptionInlineExpander",void 0);_.O([_.Ij("#faded-structured-description"),_.a("design:type",Object)],hY.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.O([_.Ij("#structured-description"),_.a("design:type",Object)],hY.prototype,"structuredDescriptionContentRendererElement",void 0);
_.O([_.Ij("#title"),_.a("design:type",HTMLElement)],hY.prototype,"titleElement",void 0);_.O([_.Ij("#description"),_.a("design:type",HTMLElement)],hY.prototype,"descriptionElement",void 0);_.O([_.Ij("#description-interaction"),_.a("design:type",Object)],hY.prototype,"descriptionInteraction",void 0);_.O([_.Ij("#owner"),_.a("design:type",HTMLElement)],hY.prototype,"ownerElement",void 0);_.O([_.Ij("#top-row"),_.a("design:type",HTMLElement)],hY.prototype,"topRowElement",void 0);
_.O([_.Ij("#bottom-row"),_.a("design:type",HTMLElement)],hY.prototype,"bottomRowElement",void 0);_.O([_.Ij("#actions"),_.a("design:type",HTMLElement)],hY.prototype,"actionsElement",void 0);_.O([_.Ij("#bottom-actions"),_.a("design:type",HTMLElement)],hY.prototype,"bottomActionsElement",void 0);_.O([_.Ij("#ytd-watch-info-text"),_.a("design:type",Object)],hY.prototype,"watchInfoTextElement",void 0);_.O([_.q(),_.a("design:type",Object)],hY.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],hY.prototype,"videoPrimaryInfoRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],hY.prototype,"videoSecondaryInfoRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],hY.prototype,"commentsEntryPointHeaderRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],hY.prototype,"videoMetadataCarousel",void 0);_.O([_.q(),_.a("design:type",Object)],hY.prototype,"structuredDescriptionContentRenderer",void 0);
_.O([_.q(),_.a("design:type",Object)],hY.prototype,"videoSummary",void 0);_.O([_.q(),_.a("design:type",Object)],hY.prototype,"merchShelf",void 0);_.O([_.q(),_.a("design:type",Object)],hY.prototype,"infoPanelBelowMetadata",void 0);_.O([_.Q("structuredDescriptionContentRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"productShelf",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"metadataBadgesInDescription",void 0);
_.O([_.Q("videoPrimaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"shouldHideBadges",null);_.O([_.Q("productShelf","descriptionCollapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],hY.prototype,"shouldShowProductShelf",null);_.O([_.q(),_.a("design:type",Boolean)],hY.prototype,"isWatchFlexy",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"descriptionCollapsed",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],hY.prototype,"useFadedScrimDescription",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"skinnyMode",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("videoSecondaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"largerItemWrap",null);_.O([_.q(),_.a("design:type",Object)],hY.prototype,"playlist",void 0);_.O([_.q(),_.a("design:type",Object)],hY.prototype,"clarifyBox",void 0);
_.O([_.q(),_.a("design:type",Object)],hY.prototype,"playerAds",void 0);_.O([_.q(),_.a("design:type",Boolean)],hY.prototype,"isDark",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],hY.prototype,"actionsOnSeparateLine",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"disableVideoOwnerOnTap",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"swatcherooDelayLoad",void 0);
_.O([_.q(),_.a("design:type",Boolean)],hY.prototype,"suppressTopLevelMetadataRows",void 0);_.O([_.q(),_.a("design:type",Object)],hY.prototype,"primaryMenuWidth",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"videoId",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"titleHeadlineXs",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"titleHeadlineS",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"titleHeadlineM",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"titleHashtagBlackLinkified",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"titleHashtagGreyLinkified",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hY.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.O([_.q(),_.a("design:type",Object)],hY.prototype,"shouldForceIconOnly",void 0);_.O([_.xs("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"updateOwnerAndDescriptionPosition",null);_.O([_.xs("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.O([_.Q("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"descriptionText",null);_.O([_.Q("videoSecondaryInfoRenderer.headerRuns"),_.a("design:type",Array),_.a("design:paramtypes",[])],hY.prototype,"headerRuns",null);_.O([_.q({value:!1}),_.Q("commentsEntryPointHeaderRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"hasTeaser",null);
_.O([_.q({value:!1,reflectToAttribute:!0}),_.Q("videoMetadataCarousel"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"hasTeaserCarousel",null);_.O([_.q({value:3}),_.Q("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"descriptionMaxLines",null);_.O([_.Q("videoSecondaryInfoRenderer.metadataRowContainer"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"collapsibleMetadataRows",null);
_.O([_.Q("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"alwaysVisibleMetadataRows",null);_.O([_.Q("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],hY.prototype,"hasInlineStructuredDescription",null);
_.O([_.Q("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],hY.prototype,"showInlineStructuredDescription",null);_.O([_.Q("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"descriptionExpandCommand",null);
_.O([_.Q("videoSecondaryInfoRenderer.owner"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"videoOwnerCommand",null);_.O([_.q({reflectToAttribute:!0}),_.Q("videoPrimaryInfoRenderer.videoActions"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],hY.prototype,"flexMenuEnabled",null);_.O([_.Q("descriptionText","useFadedScrimDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],hY.prototype,"showAttributedStringDescription",null);
_.O([_.Q("descriptionText","useFadedScrimDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],hY.prototype,"showFormattedStringDescription",null);_.O([_.Q("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],hY.prototype,"showFadedStructuredDescription",null);
_.O([_.xs("videoPrimaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"videoPrimaryInfoRendererChanged",null);_.O([_.Q("videoPrimaryInfoRenderer.title"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"videoTitle",null);_.O([_.Q("videoPrimaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],hY.prototype,"noEndpoints",null);
_.O([_.xs("videoSecondaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"videoSecondaryInfoRendererChanged",null);_.O([_.b("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"structuredDescriptionContentRendererChanged",null);
_.O([_.b("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"updateTopLevelIconsOnly",null);_.O([_.b("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"updateShouldForceIconOnly",null);_.O([_.b("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"moveActionsElement",null);
_.O([_.W("yt-text-inline-expander-expand-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"onYtTextInlineExpanderExpandClicked",null);_.O([_.W("yt-text-inline-expander-collapse-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.O([_.W("yt-text-inline-expander-expanded-changed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],hY.prototype,"onRenderStamperFinished",null);
_.O([_.W("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"onYtExpanderMoreTapped",null);_.O([_.W("yt-expander-less-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"onYtExpanderLessTapped",null);
_.O([_.b("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"registerPanel",null);_.O([_.b("videoSecondaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hY.prototype,"resetDescriptionState",null);hY=_.O([_.A({disableElementRegistration:!0,is:"ytd-watch-metadata"})],hY);
_.u(hY,"ytd-watch-metadata",function(){if(Jqh!==void 0)return Jqh;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Jqh=V},{mode:2});var vdf=function(V){_.XG.call(this);this.JSC$20088_watchApi=V;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;bAO(this);q_n(this);MOV(this);svn(this);pxV(this);AqC(this);ui5(this)};
_.t(vdf,_.XG);var MOV=function(V){var l=function(){_.z("kevlar_is_pupi_enabled")||Pc(V)};
V.JSC$20088_watchApi.getRoot().addEventListener("yt-player-updated",l);V.addOnDisposeCallback(function(){V.JSC$20088_watchApi.getRoot().removeEventListener("yt-player-updated",l)})},pxV=function(V){if(_.z("kevlar_endscreen_auto_theater_mode")){var l=_.Ln(_.v4(),Zy,function(){OA5(V)});
V.addOnDisposeCallback(l)}},bAO=function(V){var l,I,H,T,x;
_.d(function(n){if(n.nextAddress==1)return _.K(n,V.JSC$20088_watchApi.playerApi,2);l=n.yieldResult;I=function(w){w=!!w;C2C(V)&&(w=w?2:1,_.f7.getInstance().setState(w,!0,!1))};
H=function(w){w&&_.qPV(_.v4().getState())&&(_.xB(V.JSC$20088_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),V.temporaryTheaterMode=!0)};
T=function(w){_.z("kevlar_player_update_autonav_on_new_data")&&w.type==="newdata"&&(_.z("kevlar_is_pupi_enabled")||Pc(V))};
x=function(w){V.onPlayerStateChange(w)};
_.z("kevlar_endscreen_auto_theater_mode")&&l.addEventListener("onAutonavCancelled",H);l.addEventListener("onAutonavChangeRequest",I);l.addEventListener("onVideoDataChange",T);l.addEventListener("onStateChange",x);V.addOnDisposeCallback(function(){l.removeEventListener("onAutonavChangeRequest",I);l.removeEventListener("onVideoDataChange",T);l.removeEventListener("onStateChange",x);_.z("kevlar_endscreen_auto_theater_mode")&&l.removeEventListener("onAutonavCancelled",H)});
_.FU(n)})},q_n=function(V){V.JSC$20088_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){V.autonavCancelledBySignal=!0;
_.z("kevlar_is_pupi_enabled")||Pc(V)});
V.JSC$20088_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(l,I,H){I&&Pc(V,H)});
V.JSC$20088_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){C2C(V)&&_.f7.getInstance().setState(2,!0,!0)});
V.JSC$20088_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){C2C(V)&&_.f7.getInstance().setState(1,!0,!0)});
V.addOnDisposeCallback(function(){Dq(V.JSC$20088_watchApi,"yt-signal-action-cancel-autonav");Dq(V.JSC$20088_watchApi,"yt-autonav-state-changed-action");Dq(V.JSC$20088_watchApi,"yt-enable-autoplay-command");Dq(V.JSC$20088_watchApi,"yt-disable-autoplay-command")})},svn=function(V){var l=V.JSC$20088_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ui5(V)}),I=V.JSC$20088_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){AqC(V)});
V.addOnDisposeCallback(function(){V.JSC$20088_watchApi.unsubscribeByKey(l);V.JSC$20088_watchApi.unsubscribeByKey(I)})},ui5=function(V){V.autonavCancelledBySignal=!1;
_.z("kevlar_is_pupi_enabled")||Pc(V)},AqC=function(V){var l=V.JSC$20088_watchApi.getWatchNextResponse(),I,H;
var T=(l=(H=_.y(l==null?void 0:(T=l.playerOverlays)==null?void 0:(I=T.playerOverlayRenderer)==null?void 0:I.autonavToggle,_.f$b))==null?void 0:H.enabled)?2:1;_.z("kevlar_is_pupi_enabled")?_.f7.getInstance().setState(T,!1,!1):Pc(V);_.z("web_persist_server_autonav_state_on_client")&&typeof l==="boolean"&&_.Kft(T===2)},C2C=function(V){if(V.autonavCancelledBySignal)return!1;
var l,I,H,T;return!!((l=V.JSC$20088_watchApi.getWatchNextResponse())==null?0:(I=l.contents)==null?0:(H=I.twoColumnWatchNextResults)==null?0:(T=H.autoplay)==null?0:T.autoplay)};
vdf.prototype.onPlayerStateChange=function(V){if(V===0){V=!_.f7.getInstance().isAutoplaySetExplicitly();var l=this.JSC$20088_watchApi.getWatchNextResponse(),I,H,T,x;l=_.y(l==null?void 0:(I=l.contents)==null?void 0:(H=I.twoColumnWatchNextResults)==null?void 0:(T=H.autoplay)==null?void 0:(x=T.autoplay)==null?void 0:x.autoplayExplicitChoiceDialogRenderer,_.Rpo);C2C(this)&&V&&l&&_.li.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:l},popupType:"DIALOG"}})}else OA5(this)};
var OA5=function(V){V.temporaryTheaterMode&&(V.temporaryTheaterMode=!1,_.xB(V.JSC$20088_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Pc=function(V,l){l=l===void 0?!1:l;
var I;_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20088_watchApi.playerApi,2);I=H.yieldResult;C2C(V)?I.setAutonavState(_.f7.getInstance().getState(),l):I.setAutonavState(1,l);_.FU(H)})};var aYY={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"};var gdd=function(V){_.XG.call(this);var l=this;this.JSC$20093_watchApi=V;var I=this.JSC$20093_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){fYj(l)});
this.addOnDisposeCallback(function(){l.JSC$20093_watchApi.unsubscribeByKey(I)});
fYj(this)};
_.t(gdd,_.XG);var fYj=function(V){var l=V.JSC$20093_watchApi.getPlayerResponse(),I=V.JSC$20093_watchApi.getWatchNextResponse();if(!_.LHW(l==null?void 0:l.playabilityStatus,I==null?void 0:I.playerOverlays)){var H;var T=l==null?void 0:(H=l.playabilityStatus)==null?void 0:H.errorScreen}V.JSC$20093_watchApi.provideRenderingData("ERROR_SCREEN",T)};var mlV=_.W1(function(V){var l=V.data;return _.Y("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.Y("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.Y(_.rw,{data:function(){return l().channelAvatar}},{avatarViewModel:_.SA}),_.Y(_.Ni,{text:function(){return l().subtitle}})))},"pi");var iAq=_.W1(function(V){return _.Y("yt-player-quick-action-buttons",{class:_.ii("ytPlayerQuickActionButtonsHost")},_.Y(_.Ks,{each:V.data},function(l){return _.Y(_.rw,{data:function(){return l}},{buttonViewModel:_.Db,
likeButtonViewModel:function(I){return _.Y(_.BKi,{data:I.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.TKN})}))},"qi");var lBp=function(V){_.XG.call(this);var l=this;this.JSC$20096_watchApi=V;V=_.U(_.xi({},void 0,"ufFdVc"));this.quickActionsViewModel=V.next().value;this.setQuickActionsViewModel=V.next().value;V=_.U(_.xi({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=V.next().value;this.setPlayerOverlayVideoDetailsRenderer=V.next().value;var I=this.JSC$20096_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VQh(l)});
this.addOnDisposeCallback(function(){l.JSC$20096_watchApi.unsubscribeByKey(I)})};
_.t(lBp,_.XG);
var VQh=function(V){var l,I,H,T,x,n,w,N,L,e,k,X,r,E;_.d(function(D){if(D.nextAddress==1)return _.K(D,V.JSC$20096_watchApi.playerApi,2);l=D.yieldResult;I=V.JSC$20096_watchApi.getWatchNextResponse();x=(H=I)==null?void 0:(T=H.playerOverlays)==null?void 0:T.playerOverlayRenderer;w=_.y((n=x)==null?void 0:n.fullscreenQuickActionsBar,_.YdN);(L=(N=V).setQuickActionsViewModel)==null||L.call(N,w||{});w&&IBV(V,l);X=(e=x)==null?void 0:(k=e.videoDetails)==null?void 0:k.playerOverlayVideoDetailsRenderer;(E=(r=
V).setPlayerOverlayVideoDetailsRenderer)==null||E.call(r,X||{});X&&H0V(V,l);_.FU(D)})},IBV=function(V,l){if(!V.quickActionButtonsContainer){V.quickActionButtonsContainer=document.createElement("div");
l.setFullscreenQuickActions(V.quickActionButtonsContainer);var I=function(){return V.quickActionsViewModel().quickActionButtons||[]},H=_.eN(V.quickActionButtonsContainer,function(){return _.Y(iAq,{data:I})});
V.addOnDisposeCallback(function(){l.setFullscreenQuickActions(void 0);H()})}},H0V=function(V,l){if(!V.playerOverlayVideoDetailsRendererContainer){V.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
l.setPlayerOverlayVideoDetailsRenderer(V.playerOverlayVideoDetailsRendererContainer);var I=_.eN(V.playerOverlayVideoDetailsRendererContainer,function(){return _.Y(mlV,{data:V.playerOverlayVideoDetailsRenderer})});
V.addOnDisposeCallback(function(){l.setPlayerOverlayVideoDetailsRenderer(void 0);I()})}};var Zq=function(V){_.XG.call(this);var l=this;this.JSC$20101_watchApi=V;this.JSC$20101_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;V=_.Ln(_.v4(),_.S8,function(I){T06(l,I)});
this.addOnDisposeCallback(V);V=_.Ln(_.v4(),_.R4,function(I){l.onWatchScroll(I)});
this.addOnDisposeCallback(V);_.z("kevlar_watch_while_v2")&&(V=_.Ln(_.v4(),_.h5,function(I){B05(l,I)}),this.addOnDisposeCallback(V));
xDh(this);UDn(this);nex();this.onWatchScroll(_.R4(_.v4().getState()));_.PO("START_IN_FULL_WINDOW_MODE")&&this.JSC$20101_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.t(Zq,_.XG);var xDh=function(V){V.JSC$20101_watchApi.registerActionHandler("yt-fullscreen-change-action",function(l){var I=Zy(_.v4().getState());l&&!I||_.v4().dispatch(_.IA({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!l}}))});
V.addOnDisposeCallback(function(){Dq(V.JSC$20101_watchApi,"yt-fullscreen-change-action")})},UDn=function(V){var l,I;
_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20101_watchApi.playerApi,2);l=H.yieldResult;I=function(){V.onFullerscreenEduClicked()};
l.addEventListener("onFullerscreenEduClicked",I);V.addOnDisposeCallback(function(){l.removeEventListener("onFullerscreenEduClicked",I)});
_.FU(H)})},T06=function(V,l){var I;
_.d(function(H){if(H.nextAddress==1)return V.isFullscreen=!!_.iK(),_.K(H,V.JSC$20101_watchApi.playerApi,2);I=H.yieldResult;V.JSC$20101_miniplayerActive||I.setFauxFullscreen(V.isFullscreen);if(l&&(V.JSC$20101_watchApi.focusOnPlayer(),!V.fullerscreenEduButtonShownThisPlayback)){V.fullerscreenEduButtonShownThisPlayback=!0;var T=_.N9("yt-fullerscreen-edu-button-shown-count")||0;_.wd("yt-fullerscreen-edu-button-shown-count",T+1,31536E3);V.updateFullerscreenEduButtonSubtleModeState()}_.FU(H)})},B05=function(V,
l){var I;
_.d(function(H){if(H.nextAddress==1)return V.JSC$20101_miniplayerActive=l,_.K(H,V.JSC$20101_watchApi.playerApi,2);I=H.yieldResult;I.setFauxFullscreen(!V.JSC$20101_miniplayerActive&&V.isFullscreen);_.FU(H)})};
Zq.prototype.onWatchScroll=function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1)return _.z("external_fullscreen_with_edu")?_.K(T,l.JSC$20101_watchApi.playerApi,2):T.return();I=T.yieldResult;H=V<=0;l.shouldShowFullerscreenEdu!==H&&(l.shouldShowFullerscreenEdu=H,I.updateFullerscreenEduButtonVisibility(!l.shouldShowFullerscreenEdu));_.FU(T)})};
Zq.prototype.onFullerscreenEduClicked=function(){this.JSC$20101_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var V=_.N9("yt-fullerscreen-edu-button-click-count")||0;_.wd("yt-fullerscreen-edu-button-click-count",V+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
Zq.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var V=this,l,I,H,T,x,n;return _.d(function(w){if(w.nextAddress==1)return l=_.N9("yt-fullerscreen-edu-button-click-count")||0,I=_.N9("yt-fullerscreen-edu-button-shown-count")||0,H=_.g7("external_fullscreen_button_click_threshold"),T=_.g7("external_fullscreen_button_shown_threshold"),x=l>=H||I>=T,_.K(w,V.JSC$20101_watchApi.playerApi,2);n=w.yieldResult;n.updateFullerscreenEduButtonSubtleModeState(x);_.FU(w)})};
Zq.prototype.disposeInternal=function(){_.XG.prototype.disposeInternal.call(this);var V=_.iK();_.z("kevlar_exit_fullscreen_leaving_watch")&&V&&_.Vg(V)};
var nex=function(){if(_.z("web_watch_add_viewport_meta_tag")){var V=document.querySelector("meta[name=viewport]"),l=document.head;l&&!V&&(V=document.createElement("meta"),V.name="viewport",V.content="width=device-width, initial-scale=1.0, viewport-fit=cover",l.appendChild(V))}};var dDf=function(V){_.XG.call(this);var l=this;this.JSC$20105_watchApi=V;this.jobId=0;this.pendingRequestId=void 0;var I=this.JSC$20105_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$DC(l)});
this.addOnDisposeCallback(function(){l.JSC$20105_watchApi.unsubscribeByKey(I)});
$DC(this)};
_.t(dDf,_.XG);var wax=function(V){_.r0.cancelJob(V.jobId);V.pendingRequestId=void 0},$DC=function(V){wax(V);
var l=Yq5(V.JSC$20105_watchApi.getWatchNextResponse());if(l){var I=250,H,T=(H=_.y(l,_.NFo))==null?void 0:H.initialDelayMs;_.z("web_watch_updated_metadata_server_initial_delay")&&T&&(I=T);V.jobId=_.r0.addLowPriorityJob(function(){return V.fetchUpdatedMetadata(l)},I)}};
dDf.prototype.fetchUpdatedMetadata=function(V,l){var I=this,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S;return _.d(function(p){switch(p.nextAddress){case 1:l&&(H={continuation:l});if(!_.z("web_get_updated_metadata_fantasy_panel_continuation_params")){p.jumpTo(2);break}T=_.F().resolve(_.Eu);x="PAsports_fantasy";return _.K(p,T.isVisible(x,!0),3);case 3:p.yieldResult&&(L=(w=(n=T).getUpdatePanelContinuationData)==null?void 0:(N=w.call(n,x))==null?void 0:N.updatePanelContinuationRequest)&&(H||(H={}),H.clientParams=
{panelContinuationParams:{panelContinuation:L}});case 2:e=_.F().resolve(_.FM);if(!e)return _.Gr(Error("jm")),p.return();k={};I.pendingRequestId=k;return _.K(p,_.R2(e,V,H),4);case 4:X=p.yieldResult;if(k!==I.pendingRequestId)return p.return();D=(r=X)==null?void 0:(E=r.continuation)==null?void 0:E.timedContinuationData;((Z=D)==null?0:Z.continuation)&&((S=D)==null?0:S.timeoutMs)&&(I.jobId=_.r0.addLowPriorityJob(function(){return I.fetchUpdatedMetadata(V,D.continuation)},D.timeoutMs));
_.FU(p)}})};
dDf.prototype.disposeInternal=function(){_.XG.prototype.disposeInternal.call(this);wax(this)};var N0x=_.W1(function(V){var l=_.Bu(function(){var H=V.data().videoId;if(V.active())H=_.mp(H),_.F().resolve(_.aw).resolveCommand(H);else{var T=V.playerApi(),x=T.getAvailableAudioTracks(),n,w,N=(n=V.sourceVideoConfig().audioTracks)==null?void 0:(w=n.find(function(L){return L.isDefaultForSource}))==null?void 0:w.id;
if(x=x.find(function(L){return L.getLanguageInfo().getId()===N}))T.setAudioTrack(x,!0),T.setCompositeParam({activeVideoId:H}),V.setActiveSourceId(H)}}),I={};
return _.Y("ytw-composite-source-video-overlay",{class:_.ii("ytwCompositeSourceVideoOverlayHost",(I.ytwCompositeSourceVideoOverlayActive=V.active,I.ytwCompositeSourceVideoOverlayInteracting=V.interacting,I)),style:_.na({left:function(){var H;return((H=V.data().topLeftCornerX)!=null?H:0)*100+"%"},
top:function(){var H;return((H=V.data().topLeftCornerY)!=null?H:0)*100+"%"},
width:function(){var H;return((H=V.data().width)!=null?H:0)*100+"%"},
height:function(){var H;return((H=V.data().height)!=null?H:0)*100+"%"}}),
"on:click":l},_.Y("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"ri");var Ku5=_.W1(function(V){var l=_.U(_.Ux(function(){var w,N=(w=V.data().sources)==null?void 0:w.find(function(L){return L.isActive});
if(N)return N.videoId})),I=l.next().value,H=l.next().value;
l=_.U(_.xi(!1,void 0,"WI4BUb"));var T=l.next().value,x=l.next().value;l=_.Bu(function(){x(!0)});
var n=_.Bu(function(){x(!1)});
return _.Y("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":l,"on:mouseout":n},_.Y(_.NS,{cond:function(){return V.data().sources},
then:function(w){return _.Y(_.Ks,{each:w},function(N){return _.Y(N0x,{data:N,active:function(){return N.videoId===I()},
setActiveSourceId:H,interacting:T,playerApi:V.playerApi,sourceVideoConfig:function(){return LxV(V.compositeVideoConfig(),N.videoId)}})})}}))},"si");var LuC=function(V){_.XG.call(this);this.JSC$20121_watchApi=V;V=_.U(_.xi({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=V.next().value;this.setCompositeVideoOverlayRenderer=V.next().value;V=_.U(_.xi({},void 0,"U5hcq"));this.compositeVideoConfig=V.next().value;this.setCompositeVideoConfig=V.next().value;jSh(this);YhV(this)};
_.t(LuC,_.XG);var jSh=function(V){var l=V.JSC$20121_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){YhV(V)});
V.addOnDisposeCallback(function(){V.JSC$20121_watchApi.unsubscribeByKey(l)})},e6V=function(V){var l;
return _.d(function(I){if(I.nextAddress==1)return _.K(I,V.JSC$20121_watchApi.playerApi,2);l=I.yieldResult;l.setCompositeVideoOverlayRendererComponent(V.container);_.FU(I)})},kQq=function(V){var l;
return _.d(function(I){if(I.nextAddress==1)return _.K(I,V.JSC$20121_watchApi.playerApi,2);l=I.yieldResult;l.setCompositeVideoOverlayRendererComponent(void 0);_.FU(I)})},FuM=function(V){var l,I;
return _.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20121_watchApi.playerApi,2);l=H.yieldResult;V.container=document.createElement("div");I=_.eN(V.container,function(){return _.Y(Ku5,{data:V.compositeVideoOverlayRenderer,compositeVideoConfig:V.compositeVideoConfig,playerApi:l})});
V.addOnDisposeCallback(I);_.FU(H)})},YhV=function(V){var l,I,H,T,x,n,w,N;
_.d(function(L){return L.nextAddress==1?(l=V.JSC$20121_watchApi.getPlayerResponse(),x=_.y((I=l)==null?void 0:(H=I.overlay)==null?void 0:(T=H.playerControlsOverlayRenderer)==null?void 0:T.compositeVideoOverlay,wkd),N=(n=l)==null?void 0:(w=n.playerConfig)==null?void 0:w.compositeVideoConfig,x&&V.setCompositeVideoOverlayRenderer(x),N&&V.setCompositeVideoConfig(N),x&&N?V.container?L.jumpTo(6):_.K(L,FuM(V),6):Xax(V)?_.K(L,kQq(V),0):L.jumpTo(0)):Xax(V)?L.jumpTo(0):_.K(L,e6V(V),0)})},Xax=function(V){var l;
return!((l=V.container)==null||!l.parentElement)};
LuC.prototype.disposeInternal=function(){Xax(this)&&kQq(this);_.XG.prototype.disposeInternal.call(this)};var GQf=function(V){_.XG.call(this);var l=this;this.JSC$20127_watchApi=V;var I=this.JSC$20127_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var H=l.JSC$20127_watchApi.getPlayerResponse();if(H){var T,x;if(H=_.y((T=H.endscreen)==null?void 0:(x=T.endscreenRenderer)==null?void 0:x.hideButton,_.EB)){var n;(n=l.setEndscreenHideButton)==null||n.call(l,H);z6q(l)}}});
this.addOnDisposeCallback(function(){l.JSC$20127_watchApi.unsubscribeByKey(I)});
V=_.U(_.xi({},void 0,"PPHRb"));this.endscreenHideButton=V.next().value;this.setEndscreenHideButton=V.next().value;y2f(this);tQV(this);r2Y(this)};
_.t(GQf,_.XG);var z6q=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return V.creatorEndscreenHideButtonContainer?H.return():_.K(H,V.JSC$20127_watchApi.playerApi,2);l=H.yieldResult;V.creatorEndscreenHideButtonContainer=document.createElement("div");_.Mx(V.creatorEndscreenHideButtonContainer,!1);l.setCreatorEndscreenHideButton(V.creatorEndscreenHideButtonContainer);I=_.eN(V.creatorEndscreenHideButtonContainer,function(){return _.Y(_.o6,{data:V.endscreenHideButton,useOutlinedIcon:!0})});
V.addOnDisposeCallback(function(){I();l.setCreatorEndscreenHideButton(void 0)});
_.FU(H)})},y2f=function(V){var l,I;
_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20127_watchApi.playerApi,2);l=H.yieldResult;I=function(){V.creatorEndscreenHideButtonContainer&&_.Mx(V.creatorEndscreenHideButtonContainer,!0)};
l.addEventListener("endscreenelementshown",I);V.addOnDisposeCallback(function(){l.removeEventListener("endscreenelementshown",I)});
_.FU(H)})},tQV=function(V){var l=function(){V.creatorEndscreenHideButtonContainer&&_.Mx(V.creatorEndscreenHideButtonContainer,!1)},I=V.JSC$20127_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",l),H=V.JSC$20127_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",l);
V.addOnDisposeCallback(function(){V.JSC$20127_watchApi.unsubscribeByKey(I);V.JSC$20127_watchApi.unsubscribeByKey(H)})},r2Y=function(V){V.JSC$20127_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(l){var I=_.y(l,B46);
V.JSC$20127_watchApi.playerApi.then(function(H){H==null||H.setCreatorEndscreenVisibility(!!I.hide)})});
V.addOnDisposeCallback(function(){Dq(V.JSC$20127_watchApi,"yt-change-creator-endscreen-visibility-command")})};var J2q=function(V){_.XG.call(this);this.JSC$20133_watchApi=V;EeV(this)};
_.t(J2q,_.XG);var EeV=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20133_watchApi.playerApi,2);l=H.yieldResult;I=function(T){_.v4().dispatch(_.IA({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:T}}))};
l.addEventListener("onRetroModeChanged",I);V.addOnDisposeCallback(function(){l.removeEventListener("onRetroModeChanged",I)});
_.FU(H)})};var rVq=0,cW=0,Enn=0;var oed=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),SY=function(V){_.XG.call(this);this.JSC$20146_watchApi=V;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;h6Y(this)};
_.t(SY,_.XG);
var h6Y=function(V){var l,I,H;_.d(function(T){if(T.nextAddress==1)return _.K(T,V.JSC$20146_watchApi.playerApi,2);l=T.yieldResult;if(V.isDisposed())return T.return();V.sessionStorage=_.fpI("yt-sleep-timer");V.sessionStorage||_.hF(new _.Yd("SessionStorage for Sleep Timer is undefined."));((I=V.sessionStorage)==null?void 0:I.get("yt-sleep-timer"))==="true"&&(hMV(),(H=V.sessionStorage)==null||H.remove("yt-sleep-timer"),l.syncVolume());PGY(V,l);DDh(V,l);Z0q(V,l);_.FU(T)})},PGY=function(V,l){var I=function(L){V.onSleepTimerSettingsChanged(L,
l)},H=function(L){V.onPlayerStateChange(L,l)},T=function(){V.onLoopChange(l)},x=function(){V.onCloseMiniplayer(l)},n=function(){t6O(l,(0,_.O_)(),PY6(l),V.selectedOption==="End of video",l.getPlayerState()!==1)},w=function(){V.onSeekComplete(l)},N=function(){_.r0.cancelJob(cW);
var L=l.getCurrentTime()>=l.getDuration(),e=V.selectedOption==="End of video"||V.selectedOption==="End of playlist"&&!Xhx(V.playlistId);L&&e&&Sh6(V,l)};
l.addEventListener("onSleepTimerSettingsChanged",I);l.addEventListener("onLoopChange",T);l.addEventListener("onLoopRangeChange",T);l.addEventListener("onStateChange",H);l.addEventListener("onCloseMiniplayer",x);l.addEventListener("onSleepTimerFeatureAvailable",n);l.addEventListener("SEEK_COMPLETE",w);l.addEventListener("onAdStart",N);V.addOnDisposeCallback(function(){l.removeEventListener("onSleepTimerSettingsChanged",I);l.removeEventListener("onLoopChange",T);l.removeEventListener("onLoopRangeChange",
T);l.removeEventListener("onStateChange",H);l.removeEventListener("onCloseMiniplayer",x);l.removeEventListener("onSleepTimerFeatureAvailable",n);l.removeEventListener("SEEK_COMPLETE",w);l.removeEventListener("onAdStart",N)})},DDh=function(V,l){var I=V.JSC$20146_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var H=l.getVideoData().video_id,T,x=(T=kfq(V.JSC$20146_watchApi))==null?void 0:T.playlistId;
V.pauseAutonavPlayback&&(l.pauseVideo(),l.syncVolume(),V.pauseAutonavPlayback=!1);if(V.selectedOption==="End of video"&&H!==V.videoId)Rn(V,l);else{if(V.selectedOption==="End of playlist"){T=Xhx(V.playlistId);if(x!==V.playlistId){Rn(V,l);break a}T?T&&R6Y(V,l):QSY(V,l)}V.videoId=H;V.playlistId=x}}});
V.addOnDisposeCallback(function(){V.JSC$20146_watchApi.unsubscribeByKey(I)})},Z0q=function(V,l){var I=_.F().resolve(_.oU),H=_.Ln(I,_.Jtf,function(x){x&&V.selectedOption!=="Off"&&Rn(V,l)}),T=_.Ln(I,Zy,function(x){var n,w;
return _.d(function(N){if(N.nextAddress==1)return _.K(N,_.jl().navigationFinishPromise,2);n=!_.$60();w=_.F().resolve(_.sH).isMiniplayerActive();x||!eMp(V.selectedOption)||w||n||Rn(V,l);_.FU(N)})});
I=_.Ln(I,function(x){return x.entities.playlistLoopStateEntity||{}},function(x){x=x===void 0?{}:x;
var n=FxC(V.JSC$20146_watchApi);if(n){var w;((w=x[n])==null?void 0:w.state)==="PLAYLIST_LOOP_STATE_ALL"&&eMp(V.selectedOption)&&Rn(V,l)}});
V.addOnDisposeCallback(H);V.addOnDisposeCallback(I);V.addOnDisposeCallback(T)};
SY.prototype.onSleepTimerSettingsChanged=function(V,l){switch(V){case "Off":this.selectedOption!=="Off"&&Rn(this,l);break;case "End of video":case "End of playlist":c26(this,V,l);break;default:c26(this,V,l,oed.get(V))}};
SY.prototype.onLoopChange=function(V){(V.getLoopVideo()||V.getLoopRange())&&eMp(this.selectedOption)&&Rn(this,V)};
SY.prototype.onCloseMiniplayer=function(V){eMp(this.selectedOption)&&Rn(this,V)};
var c26=function(V,l,I,H){Wuh(V,I);V.selectedOption=l;V.videoId=I.getVideoData().video_id;V.playlistId="";var T;(T=V.sessionStorage)==null||T.set("yt-sleep-timer","true");V.adjustmentsCount++;t6O(I,(0,_.O_)(),PY6(I),V.selectedOption==="End of video");if(V.selectedOption==="End of video")QSY(V,I),b0Y(V,I);else if(V.selectedOption==="End of playlist"){b0Y(V,I);var x,n;V.playlistId=(n=(x=kfq(V.JSC$20146_watchApi))==null?void 0:x.playlistId)!=null?n:"";Xhx(V.playlistId)||QSY(V,I)}else H&&(V.presetFadeSchedulerId=
_.L6(_.r0,function(){JVq(I,15E3)},H-15E3),V.presetPauseSchedulerId=_.L6(_.r0,function(){Sh6(V,I)},H),Gf6(I,(0,_.O_)(),H))},Sh6=function(V,l){if(Zy(_.F().resolve(_.oU).getState())){var I={dismissDialogEndpoint:{}};
var H={commandExecutorCommand:{commands:[I,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};I={buttonViewModel:{title:_.LT("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:I}}};H={buttonViewModel:{title:_.LT("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:H}}};var T={dialogHeaderViewModel:{headline:{content:_.LT("SLEEP_TIMER_ENDED_TITLE")}}};
var x={basicContentViewModel:{paragraphs:[{text:{content:_.LT("SLEEP_TIMER_ENDED_TEXT")}}]}};I={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:T,content:x,footer:{panelFooterViewModel:{primaryButton:I,secondaryButton:H,shouldHideDivider:!0}}}}}}};_.F().resolve(_.aw).resolveCommand(I,{form:{element:V}})}else hMV();qhx(V,!1);MQq(V,l);l.pauseVideo();_.f7.getInstance().getState()===2&&l.getPlayerState()===5&&(V.pauseAutonavPlayback=!0)},Rn=function(V,l){qhx(V,!0);
MQq(V,l);hMV()},MQq=function(V,l){Wuh(V,l);
V.selectedOption="Off";V.videoId="";V.playlistId="";V.adjustmentsCount=0;var I;(I=V.sessionStorage)==null||I.remove("yt-sleep-timer");_.r0.cancelJob(rVq);l.resetSleepTimerMenuSettings()},qhx=function(V,l){l={timer_length_adjustment_times_during_session:V.adjustmentsCount-1,
is_session_cancelled:l};switch(V.selectedOption){case "Off":l.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":l.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":l.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:l.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",l.option_duration_in_minutes=oed.get(V.selectedOption)/6E4}_.tF("sleepTimerSessionFinishEvent",l)};
SY.prototype.onPlayerStateChange=function(V,l){V===1?t6O(l,(0,_.O_)(),PY6(l),this.selectedOption==="End of video"):V===0?(_.r0.cancelJob(cW),l.setVideoTimeLeft(yVd(0,0))):V===2&&_.r0.cancelJob(cW);this.selectedOption==="End of video"?V===0?Sh6(this,l):V===2&&onp(l):this.selectedOption!=="End of playlist"||Xhx(this.playlistId)||(V===0?Sh6(this,l):V===2&&onp(l))};
SY.prototype.onSeekComplete=function(V){V.getPlayerState()===2&&t6O(V,(0,_.O_)(),PY6(V),this.selectedOption==="End of video",!0)};
SY.prototype.onCueRangeEnter=function(V,l){V==="sleep-timer-fade-audio"&&(V=(l.getDuration()-l.getProgressState().current)*1E3,JVq(l,V))};
SY.prototype.onCueRangeExit=function(V,l){V==="sleep-timer-fade-audio"&&l.getPlayerState()!==0&&onp(l,!0)};
var QSY=function(V,l){l.addCueRange("sleep-timer-fade-audio",l.getDuration()-15,l.getDuration());l.addEventListener("onCueRangeEnter",function(I){V.onCueRangeEnter(I,l)});
l.addEventListener("onCueRangeExit",function(I){V.onCueRangeExit(I,l)})},R6Y=function(V,l){l.removeCueRange("sleep-timer-fade-audio");
l.removeEventListener("onCueRangeEnter",function(I){V.onCueRangeEnter(I,l)});
l.removeEventListener("onCueRangeExit",function(I){V.onCueRangeExit(I,l)})},Wuh=function(V,l){eMp(V.selectedOption)?R6Y(V,l):(_.r0.cancelJob(V.presetPauseSchedulerId),_.r0.cancelJob(V.presetFadeSchedulerId),V.presetPauseSchedulerId=0,V.presetFadeSchedulerId=0);
onp(l,!0)},b0Y=function(V,l){l.setLoop(!1);
l.setLoopVideo(!1);l.setLoopRange(null);(V=FxC(V.JSC$20146_watchApi))&&_.F().resolve(_.oU).dispatch(_.K6("playlistLoopStateEntity",V,{key:V,state:"PLAYLIST_LOOP_STATE_NONE"}))};var ufM=function(V){_.XG.call(this);this.JSC$20149_watchApi=V;sSq(this);paM(this);A2p(this);V=V.getRoot();if(V.is==="ytd-watch-flexy"||V.is==="ytd-watch-grid")V.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.ZQd();_.z("web_watch_log_theater_mode_cookie_state")&&_.dm.get("wide","0")==="1"&&_.jU("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.t(ufM,_.XG);var sSq=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20149_watchApi.playerApi,2);l=H.yieldResult;I=function(T){veV(V,!!T)};
l.addEventListener("SIZE_CLICKED",I);V.addOnDisposeCallback(function(){l.removeEventListener("SIZE_CLICKED",I)});
_.FU(H)})},paM=function(V){V.JSC$20149_watchApi.registerActionHandler("yt-toggle-theater-mode",function(l,I){veV(V,l,I===void 0?!0:I)});
V.addOnDisposeCallback(function(){Dq(V.JSC$20149_watchApi,"yt-toggle-theater-mode")})};
ufM.prototype.getState=function(){return _.tk(_.v4().getState())};
var veV=function(V,l,I){I=I===void 0?!0:I;var H,T,x,n=_.z("enable_player_resize_transition")&&!!V.JSC$20149_watchApi.getWatchNextResponse()&&!((H=V.JSC$20149_watchApi.getWatchNextResponse())==null?0:(T=H.contents)==null?0:(x=T.twoColumnWatchNextResults)==null?0:x.conversationBar);_.vlg(function(){_.v4().dispatch(_.IA({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:l}}));_.z("theater_mode_scroll_to_top_killswitch")||V.JSC$20149_watchApi.scrollWatchTo(0,!1);_.iK()&&_.z("external_fullscreen")&&_.Vg(document.documentElement);
A2p(V);I&&_.wm("wide",l?"1":"0",-1);_.xB(V.JSC$20149_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);V.JSC$20149_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:l});l&&_.ZQd()},{shouldWrap:n})},A2p=function(V){var l;
_.d(function(I){if(I.nextAddress==1)return _.K(I,V.JSC$20149_watchApi.playerApi,2);l=I.yieldResult;l.setSizeStyle(!0,V.getState());_.FU(I)})};var aBx=function(V){_.XG.call(this);var l=this;this.playerApi=V;this.timeToPanelSyncKeyMap={};var I;if(V==null?0:(I=V.isReady)==null?0:I.call(V)){I=_.Ln(_.F().resolve(_.oU),function(T){return T.entities.timedMarkersListSyncEntity||{}},function(T,x){T=T===void 0?{}:T;
x=x===void 0?{}:x;for(var n=_.U(Object.keys(x)),w=n.next();!w.done;w=n.next())w=w.value,T[w]!==x[w]&&O0V(l,x[w]);x=_.U(Object.keys(T));for(n=x.next();!n.done;n=x.next())n=n.value,w=T[n],l.timeToPanelSyncKeyMap[n]&&CGf(l,w)});
this.addOnDisposeCallback(I);var H=function(T){l.onCueRangeEnter(T)};
V.addEventListener("onCueRangeEnter",H);this.addOnDisposeCallback(function(){var T;(T=V.removeEventListener)==null||T.call(V,"onCueRangeEnter",H)})}};
_.t(aBx,_.XG);
var CGf=function(V,l){var I,H;if((I=V.playerApi)==null?0:(H=I.isReady)==null?0:H.call(I)){var T;if((I=l==null?void 0:(T=l.timedListData)==null?void 0:T.sections)&&l!=null&&l.key)for(T=_.U(I),I=T.next();!I.done;I=T.next())if(I=I.value,I.timedSyncDataList&&I.sectionId)for(H=0;H<I.timedSyncDataList.length;H++){var x=I.timedSyncDataList[H];x.syncItemId&&V.playerApi.addCueRange(I.sectionId+"_"+l.key+"_"+x.syncItemId,Number(x.videoTimeMs)/1E3,H===I.timedSyncDataList.length-1?0x8000000000000:Number(I.timedSyncDataList[H+
1].videoTimeMs)/1E3)}}},O0V=function(V,l){var I,H;
if((I=V.playerApi)==null?0:(H=I.isReady)==null?0:H.call(I)){var T;if((I=l==null?void 0:(T=l.timedListData)==null?void 0:T.sections)&&l!=null&&l.key)for(T=_.U(I),I=T.next();!I.done;I=T.next())if(I=I.value,I.timedSyncDataList&&I.sectionId){H=_.U(I.timedSyncDataList);for(var x=H.next();!x.done;x=H.next())x=x.value,x.syncItemId&&V.playerApi.removeCueRange(I.sectionId+"_"+l.key+"_"+x.syncItemId)}}};
aBx.prototype.onCueRangeEnter=function(V){for(var l=_.U(Object.keys(this.timeToPanelSyncKeyMap)),I=l.next();!I.done;I=l.next()){I=I.value;var H=_.U(V.split("_"+I+"_")),T=H.next().value;H=H.next().value;if(T&&H){V=_.F().resolve(_.oU);l=this.timeToPanelSyncKeyMap[I];var x=_.yG1(V.getState(),l);I=fB6(I,T,H);if(I===-1)break;I={activeSyncId:H,activeItemIndex:I,activeSectionInfo:{sectionIdentifier:T}};x?V.dispatch(_.h9("markersEngagementPanelSyncEntity",l,I)):V.dispatch(_.K6("markersEngagementPanelSyncEntity",
l,Object.assign({},{key:l},I)));break}}};
var fB6=function(V,l,I){var H=_.F().resolve(_.oU),T,x;V=(T=DEY(H.getState(),V))==null?void 0:(x=T.timedListData)==null?void 0:x.sections;if(!V)return-1;T=0;x=_.U(V);for(V=x.next();!V.done;V=x.next()){V=V.value;H=V.timedSyncDataList||[];if(V.sectionId===l)return l=H.findIndex(function(n){return n.syncItemId===I}),l===-1?l:T+l;
T+=H.length}return-1};var i0f=function(V){_.XG.call(this);var l=this;this.JSC$20161_watchApi=V;this.unresolvedCommands=[];this.JSC$20161_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(I){gej(l,I)});
this.addOnDisposeCallback(function(){Dq(l.JSC$20161_watchApi,"yt-update-timed-markers-sync-observer-command")});
mDj(this)};
_.t(i0f,_.XG);var mDj=function(V){var l;_.d(function(I){if(I.nextAddress==1)return _.K(I,V.JSC$20161_watchApi.playerApi,2);l=I.yieldResult;if(V.isDisposed())return I.return();V.timedSyncObserver=new aBx(l);V.unresolvedCommands.length&&(V.unresolvedCommands.forEach(function(H){return gej(V,H)}),V.unresolvedCommands=[]);
_.$w(V,V.timedSyncObserver);_.FU(I)})},gej=function(V,l){if(V.timedSyncObserver){var I=_.y(l,U0h);
if(I&&I.timedSyncEntityKey&&I.panelSyncEntityKey){V=V.timedSyncObserver;l=I.timedSyncEntityKey;var H=I.panelSyncEntityKey;I=!!I.isEnabled;I=I===void 0?!0:I;var T=_.F().resolve(_.oU);T=DEY(T.getState(),l);I?V.timeToPanelSyncKeyMap[l]||(V.timeToPanelSyncKeyMap[l]=H,CGf(V,T)):(delete V.timeToPanelSyncKeyMap[l],O0V(V,T))}}else V.unresolvedCommands.push(l)};var VtV=_.W1(function(V){var l=V.data,I=V.maybeLogSmartSkipClientData,H=_.sZ();_.A9(H,function(){return l().rendererContext},{onTap:function(e,k){k({disableClickTracking:!0})}});
var T=null,x=null,n=_.z("web_enable_auto_focus_for_timely_action_button"),w=function(){T=document.activeElement},N=function(){l().smartSkipMetadata&&(T=document.activeElement,PEd(function(){return x}))},L=function(e){if(l().smartSkipMetadata&&(!e||e.key!=="Enter")){T&&T.isConnected&&(PEd(function(){return T}),T=null);
var k;(k=x)==null||k.blur()}};
V=_.Bu(function(){I==null||I(!0,l());return!1});
_.gT(H,{visibilityCallback:function(e){if(n)e?x&&l().smartSkipMetadata&&(N(),document.addEventListener("focusin",w)):(document.removeEventListener("focusin",w),L());else if(e&&_.z("web_ephemeral_actions")){e=_.M7(l().rendererContext);var k=Number(l().maxVisibleDurationMilliseconds),X,r=(X=_.y(l().rendererContext,_.uP))==null?void 0:X.label;e&&k&&r&&(X={label:r,command:e,durationMs:k},_.F().resolve(_.n$).enqueue(X))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.kG(function(){if(n){var e;if((x=(e=H.value)==null?void 0:e.querySelector("button"))&&l().smartSkipMetadata){var k;(k=H.value)==null||k.addEventListener("keydown",L)}}});
_.rx(function(){n&&(x&&l().smartSkipMetadata&&x.removeEventListener("keydown",L),document.removeEventListener("focusin",w),L())});
return _.Y("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:H,"on:click":V},_.Y(_.rw,{data:function(){return l().content}},{buttonViewModel:_.Db}))},"ti");var l1n=_.W1(function(V){var l=V.data,I=V.playerApi,H=_.F().resolve(_.Il6);V=_.U(_.Ux(function(){l()}));
var T=V.next().value,x=V.next().value,n=function(){return SqM(l(),T())},w=function(L,e){var k,X,r=(k=_.y(e==null?void 0:e.rendererContext,_.Pjc))==null?void 0:(X=k.loggingDirectives)==null?void 0:X.trackingParams;
if((e=e==null?void 0:e.smartSkipMetadata)&&e.loggingData&&(X=e.loggingData,e=X.algorithmId,k=X.startMilliseconds,X=X.endMilliseconds,e&&k!==void 0&&X!==void 0)){var E,D;L={smartSkipData:Object.assign({},{versionName:e,startMediaTimeMs:k,endMediaTimeMs:X},L&&{userInteractionMediaTimeMs:(Math.floor(((E=_.u8())==null?void 0:(D=E.getPlayer())==null?void 0:D.getCurrentTime())||0)*1E3).toString()})};E=_.oa();var Z;r&&(Z=_.dj(r));E&&Z&&_.O4(E,Z,L)}},N=function(L,e){var k=SqM(l(),L);
if(k){var X=_.y(k,Zdp),r;if(r=e)r=I(),k=_.y(k,Zdp),r=k!=null&&k.smartSkipMetadata?!(r==null?0:r.isSameMarkerTypeVisible((k==null?void 0:k.smartSkipMetadata.markerKey)||"")):!0;if(r){var E,D;(X==null?0:(E=X.smartSkipMetadata)==null?0:(D=E.loggingData)==null?0:D.isCounterfactual)||(w(!1,X),x(L))}else e||T()!==L||x(void 0)}};
_.t0(function(){var L=l().timelyActions;if(L){L=_.U(L);for(var e=L.next();!e.done;e=L.next()){e=_.y(e.value,Zdp);var k=void 0;(k=e)!=null&&k.cueRangeId&&H.timelyActionsMap.set(e.cueRangeId,N)}_.rx(function(){H.timelyActionsMap.clear()})}});
return _.Y("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.Y(_.rw,{data:n},{timelyActionViewModel:function(L){return _.Y(VtV,{data:L.data,maybeLogSmartSkipClientData:function(){w(!0,_.y(n(),Zdp))}})}}))},"ui");var HOp=function(V){_.XG.call(this);this.JSC$20173_watchApi=V;V=_.U(_.xi({},void 0,"pLDp2"));this.timelyActionsOverlay=V.next().value;this.setTimelyActionsOverlay=V.next().value;I1V(this)};
_.t(HOp,_.XG);var I1V=function(V){var l,I,H,T;_.d(function(x){if(x.nextAddress==1)return TTp(V),BTd(V),V.timelyActionsContainer=document.createElement("div"),_.K(x,V.JSC$20173_watchApi.playerApi,2);l=x.yieldResult;(H=(I=l).insertTimelyActionUi)==null||H.call(I,V.timelyActionsContainer);T=_.eN(V.timelyActionsContainer,function(){return _.Y(l1n,{data:V.timelyActionsOverlay,playerApi:l})});
V.addOnDisposeCallback(T);_.FU(x)})},BTd=function(V){var l=V.JSC$20173_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){TTp(V)});
V.addOnDisposeCallback(function(){V.JSC$20173_watchApi.unsubscribeByKey(l)})},TTp=function(V){var l=V.JSC$20173_watchApi.getWatchNextResponse();
if(l){var I,H;if(l=_.y((I=l.playerOverlays)==null?void 0:(H=I.playerOverlayRenderer)==null?void 0:H.timelyActionsOverlayViewModel,nEq)){var T;(T=V.setTimelyActionsOverlay)==null||T.call(V,l)}}};var U4Y=function(V){_.XG.call(this);this.JSC$20177_watchApi=V;x45(this)};
_.t(U4Y,_.XG);var x45=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20177_watchApi.playerApi,2);l=H.yieldResult;I=function(T){_.li.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.y(T,_.CNY)},popupType:"TOAST"}})};
l.addEventListener("onYtShowToast",I);V.addOnDisposeCallback(function(){l.removeEventListener("onYtShowToast",I)});
_.FU(H)})};var nlC=!1,NTd=function(V){_.XG.call(this);this.JSC$20180_watchApi=V;this.fullscreen=this.theater=!1;$4V(this);d4j(this);wFh(this)};
_.t(NTd,_.XG);var wFh=function(V){var l,I,H;_.d(function(T){if(T.nextAddress==1)return _.K(T,V.JSC$20180_watchApi.playerApi,2);l=T.yieldResult;if(V.isDisposed())return T.return();I=V.JSC$20180_watchApi.getElement("CINEMATICS");if(!I)return T.return();V.JSC$20180_cinematicController=new _.K9(I,l);_.$w(V,V.JSC$20180_cinematicController);_.LWn(V.JSC$20180_cinematicController);K56(V,_.G8J());H=V.JSC$20180_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(x){jVC(V,x)});
V.addOnDisposeCallback(function(){V.JSC$20180_watchApi.unsubscribeByKey(H)});
YZC(V);jVC(V,V.JSC$20180_cinematicController.isAllowed());L5x(V,V.fullscreen,V.theater);exY(V);_.FU(T)})},$4V=function(V){var l=V.JSC$20180_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){YZC(V)});
V.addOnDisposeCallback(function(){V.JSC$20180_watchApi.unsubscribeByKey(l)})},d4j=function(V){var l,I;
_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20180_watchApi.playerApi,2);l=H.yieldResult;I=function(T){K56(V,T)};
l.addEventListener("cinematicSettingsToggleChange",I);V.addOnDisposeCallback(function(){l.removeEventListener("cinematicSettingsToggleChange",I)});
_.FU(H)})},YZC=function(V){var l=V.JSC$20180_watchApi.getWatchNextResponse(),I;
l=_.y(l==null?void 0:(I=l.pageVisualEffects)==null?void 0:I[0],_.DG);var H;(H=V.JSC$20180_cinematicController)==null||_.kEV(H,l)},K56=function(V,l){var I;
(I=V.JSC$20180_cinematicController)==null||_.e3p(I,l);krh(V)},jVC=function(V,l){var I;
_.d(function(H){if(H.nextAddress==1)return _.z("kevlar_watch_cinematics_invisible")&&(l=!1),_.K(H,V.JSC$20180_watchApi.playerApi,2);I=H.yieldResult;I.updateCinematicSettings(l);krh(V);_.FU(H)})},exY=function(V){var l=_.Fu();
if(_.z("kevlar_measure_ambient_mode_idle")&&!l.getFlag(192)&&!nlC){nlC=!0;var I=_.et(_.r0,function(){_.F().resolve(_.Ct6).start(1E4)},5E3);
V.addOnDisposeCallback(function(){_.r0.cancelJob(I);_.F().resolve(_.Ct6).stop()})}},L5x=function(V,l,I){V.fullscreen=l;
V.theater=I;var H;(H=V.JSC$20180_cinematicController)==null||H.setFullscreen(V.fullscreen,V.theater);if(_.z("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(V.theater||V.fullscreen)(V=V.JSC$20180_cinematicController)!=null&&(V=V.currentCinematicEffect)!=null&&(V=V.storyboardManager,V.paused=!1,_.iK6(V),V.update());else{var T;(T=V.JSC$20180_cinematicController)==null||_.FWh(T)}},krh=function(V){if(_.z("web_cinematic_theater_mode")||_.z("web_cinematic_fullscreen")){var l;
V.JSC$20180_watchApi.getRoot().toggleCinematicsActive(!((l=V.JSC$20180_cinematicController)==null||!l.isEnabled()))}};var yFh=function(V){_.XG.call(this);var l=this;this.JSC$20183_watchApi=V;this.commentsReady=!1;this.setCommentsJobId=0;V=_.Ln(_.v4(),_.R4,function(){F5V(l)});
this.addOnDisposeCallback(V);var I=this.JSC$20183_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){XFd(l)}),H=this.JSC$20183_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){XFd(l)});
this.addOnDisposeCallback(function(){l.JSC$20183_watchApi.unsubscribeByKey(I);l.JSC$20183_watchApi.unsubscribeByKey(H)});
var T=function(){_.z("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&zxx(l,"false")};
this.JSC$20183_watchApi.getRoot().addEventListener("yt-page-data-will-update",T);this.addOnDisposeCallback(function(){l.JSC$20183_watchApi.getRoot().removeEventListener("yt-page-data-will-update",T)});
XFd(this)};
_.t(yFh,_.XG);var XFd=function(V){V.commentsReady=!1;_.r0.cancelJob(V.setCommentsJobId);V.setCommentsJobId=_.et(_.r0,function(){F5V(V)},1E3)},F5V=function(V){if(!V.commentsReady){_.Z8("cmi");
_.r0.cancelJob(V.setCommentsJobId);var l,I,H,T,x=(l=V.JSC$20183_watchApi.getWatchNextResponse())==null?void 0:(I=l.contents)==null?void 0:(H=I.twoColumnWatchNextResults)==null?void 0:(T=H.results)==null?void 0:T.results.contents;l=void 0;if(x&&x.length)for(x=_.U(x),I=x.next();!I.done;I=x.next())if(I=I.value,T=H=void 0,((H=I)==null?void 0:(T=H.itemSectionRenderer)==null?void 0:T.sectionIdentifier)==="comment-item-section"){_.z("web_watch_provide_undefined_comments")?l=I.itemSectionRenderer:V.JSC$20183_watchApi.provideRenderingData("COMMENTS",
I.itemSectionRenderer);zxx(V,"true");break}_.z("web_watch_provide_undefined_comments")&&V.JSC$20183_watchApi.provideRenderingData("COMMENTS",l);V.commentsReady=!0;V.JSC$20183_watchApi.dispatchEvent("yt-watch-comments-ready")}},zxx=function(V,l){var I;
(I=V.JSC$20183_watchApi.getElement("COMMENTS"))==null||I.setAttribute("canScheduleJobs",l)};var olq;_.ttq=["engagement-panel-ads"];
olq=function(V){_.XG.call(this);var l=this;this.JSC$20186_watchApi=V;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.z("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.z("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.z("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.g7("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)rFd(this);
else{var I=this.JSC$20186_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){GrC(l);Qp(l)}),H=this.JSC$20186_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cc(l);
Qp(l)});
this.JSC$20186_watchApi.getRoot().is==="ytd-watch-grid"&&_.z("swatcheroo_pbs_load_grid")&&(ElV(this),JFh(this));this.addOnDisposeCallback(function(){l.JSC$20186_watchApi.unsubscribeByKey(I);l.JSC$20186_watchApi.unsubscribeByKey(H);_.r0.cancelJob(l.provideRichGridJobId)});
GrC(this);cc(this)}};
_.t(olq,_.XG);var rFd=function(V){var l=V.JSC$20186_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){V.providePlayerJobId=_.t9(_.r0,function(){GrC(V);Qp(V)},V.provideAllDataDelayMs)}),I=V.JSC$20186_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){V.provideWatchNextJobId=_.t9(_.r0,function(){cc(V);
Qp(V)},V.provideAllDataDelayMs)}),H=V.JSC$20186_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){V.provideWatchNextJobId=_.t9(_.r0,function(){cc(V);
Qp(V)},V.provideAllDataDelayMs)});
V.JSC$20186_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.et(_.r0,function(){GrC(V);cc(V);Qp(V)},100)});
hxq(V.JSC$20186_watchApi,function(){_.r0.cancelJob(V.provideWatchNextJobId);_.r0.cancelJob(V.providePlayerJobId)});
V.addOnDisposeCallback(function(){Dq(V.JSC$20186_watchApi,"yt-pending-navigation-cancelled");V.JSC$20186_watchApi.unsubscribeByKey(l);V.JSC$20186_watchApi.unsubscribeByKey(I);V.JSC$20186_watchApi.unsubscribeByKey(H);_.r0.cancelJob(V.providePlayerJobId);_.r0.cancelJob(V.provideWatchNextJobId)});
GrC(V);cc(V)},GrC=function(V){var l=V.JSC$20186_watchApi.getPlayerResponse(),I,H,T=(H=l==null?void 0:(I=l.playabilityStatus)==null?void 0:I.messageRenderers)!=null?H:[],x,n;
l=(n=l==null?void 0:(x=l.playabilityStatus)==null?void 0:x.messages)!=null?n:[];x=_.U(l);for(n=x.next();!n.done;n=x.next())T.push({alertRenderer:{text:_.pW(n.value),type:"WARNING"}});V.JSC$20186_watchApi.provideRenderingData("ALERTS",T)},cc=function(V){var l=[],I,H,T,x=V.JSC$20186_watchApi.getWatchNextResponse(),n,w,N,L,e=x==null?void 0:(n=x.contents)==null?void 0:(w=n.twoColumnWatchNextResults)==null?void 0:(N=w.results)==null?void 0:(L=N.results)==null?void 0:L.contents;
if(e)for(n=_.U(e),w=n.next();!w.done;w=n.next())if(w=w.value,w.videoPrimaryInfoRenderer)var k=w;else if(w.videoSecondaryInfoRenderer){var X=w;L=N=void 0;w=Object.assign({},(N=w.videoSecondaryInfoRenderer)==null?void 0:(L=N.metadataRowContainer)==null?void 0:L.metadataRowContainerRenderer);if(w.rows&&w.collapsedItemCount!==void 0){w.rows=w.rows.slice(0,w.collapsedItemCount).filter(function(st){return!!st.richMetadataRowRenderer});
w.collapsedItemCount=w.rows.length;var r={metadataRowContainerRenderer:w}}}else if(w.merchandiseShelfRenderer)var E=w;else if(w.ticketShelfRenderer)var D=w;else if(w.expandableMetadataRenderer)var Z=w;else if(w.itemSectionRenderer)if(N=w.itemSectionRenderer.contents,L=void 0,V.directlyProvideComments&&((L=w.itemSectionRenderer)==null?void 0:L.sectionIdentifier)==="comment-item-section")_.Z8("cmi"),V.JSC$20186_watchApi.provideRenderingData("COMMENTS",w.itemSectionRenderer);else if(N)for(w=_.U(N),N=
w.next();!N.done;N=w.next())if(N=N.value,N.commentsEntryPointHeaderRenderer)var S=N;else if(N.clarificationRenderer||N.infoPanelContainerRenderer||N.infoPanelContentRenderer||N.emergencyOneboxRenderer){l.push(N);var p=p||!!X}else N.limitedStateMessageRenderer?H=N:N.videoMetadataCarouselViewModel&&(T=N);if(_.z("web_watch_merch_in_sd_when_ticket_shelf_present")&&E&&D){var Vf=E;E=void 0}if(V.provideWatchNextSecondaryResults){var C,By,lN;V.JSC$20186_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
x==null?void 0:(C=x.contents)==null?void 0:(By=C.twoColumnWatchNextResults)==null?void 0:(lN=By.secondaryResults)==null?void 0:lN.secondaryResults)}if(V.JSC$20186_watchApi.getRoot().is==="ytd-watch-grid"&&!_.z("swa_prov_panels_ks")&&(x==null?0:x.engagementPanels)){var wW=x.engagementPanels.filter(function(st){var jo,gb;return _.ttq.includes((gb=st==null?void 0:(jo=st.engagementPanelSectionListRenderer)==null?void 0:jo.targetId)!=null?gb:"")});
var o1=x.engagementPanels.filter(function(st){var jo,gb;return!_.ttq.includes((gb=st==null?void 0:(jo=st.engagementPanelSectionListRenderer)==null?void 0:jo.targetId)!=null?gb:"")})}if(V.JSC$20186_watchApi.getRoot().is==="ytd-watch-grid"){var h1,ec;
V.JSC$20186_watchApi.provideRenderingData("LIVE_CHAT",x==null?void 0:(h1=x.contents)==null?void 0:(ec=h1.twoColumnWatchNextResults)==null?void 0:ec.conversationBar)}var Zg,Va,wb,CK;(C=x==null?void 0:(Zg=x.contents)==null?void 0:(Va=Zg.twoColumnWatchNextResults)==null?void 0:(wb=Va.secondaryResults)==null?void 0:(CK=wb.secondaryResults)==null?void 0:CK.offerModule)&&(C.donationShelfRenderer||C.donationUnavailableRenderer)&&V.JSC$20186_watchApi.getRoot().is!=="ytd-watch-grid"&&(I=C);Zg=V.JSC$20186_watchApi.getPlayerResponse();
if(!Zg||!_.LHW(Zg.playabilityStatus,x==null?void 0:x.playerOverlays)){var CZ;if(x==null?0:(CZ=x.contents)==null?0:CZ.singleColumnWatchNextResults){var ME,Hw;var uZ=x==null?void 0:(ME=x.contents.singleColumnWatchNextResults.results)==null?void 0:(Hw=ME.results)==null?void 0:Hw.contents}else{var EN,ya,Dv,Tf;CZ=!!(e==null?0:(EN=e[0])==null?0:(ya=EN.itemSectionRenderer)==null?0:(Dv=ya.contents)==null?0:(Tf=Dv[0])==null?0:Tf.backgroundPromoRenderer);var Oq,Ut;EN=!!(x==null?0:(Oq=x.contents)==null?0:(Ut=
Oq.twoColumnWatchNextResults)==null?0:Ut.secondaryResults);CZ&&!EN&&(uZ=e)}}e=l[0];Oq=l[1];p&&l.length===1&&(Oq=e,e=void 0);V.JSC$20186_watchApi.provideRenderingData("PRIMARY_INFO",k);V.JSC$20186_watchApi.provideRenderingData("SECONDARY_INFO",X);V.JSC$20186_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",S);V.JSC$20186_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",T);V.JSC$20186_watchApi.provideRenderingData("CLARIFICATION",e);V.JSC$20186_watchApi.provideRenderingData("RICH_METADATA",
r);V.JSC$20186_watchApi.getRoot().is!=="ytd-watch-grid"||_.z("swa_prov_panels_ks")||_.z("web_watch_inject_placeholder_panels")||(V.JSC$20186_watchApi.provideRenderingData("ENGAGEMENT_PANELS",o1),V.JSC$20186_watchApi.provideRenderingData("INLINE_ENGAGEMENT_PANELS",wW));V.JSC$20186_watchApi.provideRenderingData("MERCH_SHELF",E);_.z("web_watch_merch_in_sd_when_ticket_shelf_present")&&V.JSC$20186_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",Vf);V.JSC$20186_watchApi.provideRenderingData("TICKET_SHELF",
D);V.JSC$20186_watchApi.provideRenderingData("LIMITED_STATE",H);V.JSC$20186_watchApi.getRoot().is!=="ytd-watch-grid"&&V.JSC$20186_watchApi.provideRenderingData("DONATION_SHELF",I);V.JSC$20186_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",uZ);V.JSC$20186_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Oq);V.JSC$20186_watchApi.provideRenderingData("EXPANDABLE_METADATA",Z);if(V.swatcherooProvideAllDataOnScheduledJob){var BY,ON,vY,LZ,oi,lZ;k=x==null?void 0:(BY=x.contents)==null?void 0:
(ON=BY.twoColumnWatchNextResults)==null?void 0:(vY=ON.secondaryResults)==null?void 0:(LZ=vY.secondaryResults)==null?void 0:(oi=LZ.results)==null?void 0:(lZ=oi[0])==null?void 0:lZ.richGridRenderer;V.JSC$20186_watchApi.provideRenderingData("RICH_GRID_RENDERER",k)}};
olq.prototype.hasCompanionAds=function(V){var l,I;return(I=V==null?void 0:(l=V.adPlacements)==null?void 0:l.some(function(H){var T,x,n,w;return(H==null?void 0:(T=H.adPlacementRenderer)==null?void 0:(x=T.renderer)==null?void 0:x.actionCompanionAdRenderer)||(H==null?void 0:(n=H.adPlacementRenderer)==null?void 0:(w=n.renderer)==null?void 0:w.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?I:!1};
var Qp=function(V){if(!_.z("swaterdoo_ps_wn_handle_ks")){V.swatcherooProvideAllDataOnScheduledJob||JFh(V,_.g7("swatcheroo_pbs_max_delay_ms",3E3));var l=V.JSC$20186_watchApi.getPlayerResponse(),I,H,T,x,n,w=(I=V.JSC$20186_watchApi.getWatchNextResponse())==null?void 0:(H=I.contents)==null?void 0:(T=H.twoColumnWatchNextResults)==null?void 0:(x=T.secondaryResults)==null?void 0:(n=x.secondaryResults)==null?void 0:n.offerModule;l=V.hasCompanionAds(l);var N,L;I=(w==null?void 0:(N=w.tvfilmOfferModuleRenderer)==
null?void 0:N.clientShouldSuppressIfCompanionAdDisplayed)||(w==null?void 0:(L=w.unlimitedOfferModuleRenderer)==null?void 0:L.suppressIfCompanionAds);N=l&&I;V.JSC$20186_watchApi.getRoot().is==="ytd-watch-grid"&&V.JSC$20186_watchApi.provideRenderingData("OFFER_MODULE",N?void 0:w)}},JFh=function(V,l){_.z("swatcheroo_pbs_load_grid")&&(V.provideRichGridJobId&&_.r0.cancelJob(V.provideRichGridJobId),V.provideRichGridJobId=_.t9(_.r0,function(){V.provideRichGridJobId=0;
var I,H,T,x,n,w,N,L=(I=V.JSC$20186_watchApi.getWatchNextResponse())==null?void 0:(H=I.contents)==null?void 0:(T=H.twoColumnWatchNextResults)==null?void 0:(x=T.secondaryResults)==null?void 0:(n=x.secondaryResults)==null?void 0:(w=n.results)==null?void 0:(N=w[0])==null?void 0:N.richGridRenderer;L&&V.JSC$20186_watchApi.provideRenderingData("RICH_GRID_RENDERER",L)},l))},ElV=function(V){var l,I;
_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20186_watchApi.playerApi,2);l=H.yieldResult;I=function(){V.onPlaybackStart()};
l.addEventListener("onPlaybackStartExternal",I);V.addOnDisposeCallback(function(){l.removeEventListener("onPlaybackStartExternal",I)});
_.FU(H)})};
olq.prototype.onPlaybackStart=function(){JFh(this)};var D4V=function(V){_.XG.call(this);var l=this;this.JSC$20196_watchApi=V;V.playerApi.then(function(I){l.player=I});
this.gestures=new _.FFV(this.JSC$20196_watchApi.getRoot(),V.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(Zy(_.v4().getState())&&_.R4(_.v4().getState())<=0)if(_.S8(_.v4().getState())){var I;(I=l.player)==null||I.toggleFullscreen()}else _.xB(l.JSC$20196_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Pxx(this)};
_.t(D4V,_.XG);var Pxx=function(V){var l=_.Ln(_.v4(),_.S8,function(I){V.gestures&&V.gestures.update(I)});
V.addOnDisposeCallback(l);l=_.Ln(_.v4(),_.R4,function(I){V.gestures&&(I>0?V.gestures.detach():V.gestures.attach())});
V.addOnDisposeCallback(l)};var SZq=function(V){_.XG.call(this);var l=this;this.JSC$20199_watchApi=V;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
V=_.Ln(_.v4(),Zy,function(I){l.onActiveChanged(I)});
this.addOnDisposeCallback(V);ZOC(this);this.onActiveChanged(Zy(_.v4().getState()))};
_.t(SZq,_.XG);var Rx5=function(V){if(_.z("swatcheroo_page_dispose_all_watch_data"))V.pageDisposalDataTypes=Object.values(aYY).filter(function(I){return I!=="PLAYLIST"});
else if(_.z("swatcheroo_page_dispose_rich_grid")){var l;(l=V.pageDisposalDataTypes)==null||l.push("RICH_GRID_RENDERER")}},ZOC=function(V){_.z("swatcheroo_enable_ghost_cards")&&(Rx5(V),V.JSC$20199_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.r0.cancelJob(V.clearDataJobId);
V.clearDataJobId=0}),V.runPageDisposeJob=function(){var l=_.F().resolve(_.pa).getDestinationPageType()==="watch";
V.clearDataJobId=_.t9(_.r0,V.runClearDataJob,l?0:_.g7("web_watch_delay_page_dispose_ms",1E4))},V.runClearDataJob=function(){QVj(V)},V.runOnYtNavigateAwayFinish=function(){V.clearDataJobId&&(_.r0.cancelJob(V.clearDataJobId),V.clearDataJobId=0,QVj(V))},document.addEventListener("yt-navigate-finish",V.runOnYtNavigateAwayFinish),hxq(V.JSC$20199_watchApi,V.runPageDisposeJob),V.addOnDisposeCallback(function(){var l=V.JSC$20199_watchApi;
l.rootElement.pageDisposeJobs&&_.A1(l.rootElement.pageDisposeJobs,V.runPageDisposeJob);Dq(V.JSC$20199_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",V.runOnYtNavigateAwayFinish)}))},QVj=function(V){V.pageDisposalDataTypes.forEach(function(l){V.JSC$20199_watchApi.provideRenderingData(l,void 0)});
V.clearDataJobId=0};
SZq.prototype.onActiveChanged=function(V){V&&((V=document.querySelector("#watch-page-skeleton"))&&_.Yw(V),cFh(this),document.body.removeAttribute("no-y-overflow"),_.PO("IS_SHELL_LOAD")&&_.DGV())};
var cFh=function(V){_.d(function(l){if(l.nextAddress==1)return _.K(l,V.JSC$20199_watchApi.playerApi,2);_.ie();_.FU(l)})};var W5C=_.z("kevlar_watch_while_counterfactual")?0:.25,sVh=function(V){_.XG.call(this);this.JSC$20202_watchApi=V;this.JSC$20202_watchWhileEnabled=_.z("kevlar_watch_while_v2");this.pipEnabled=_.z("web_enable_pip_on_miniplayer");bOO(this);qZd(this);MtC(this)};
_.t(sVh,_.XG);var bOO=function(V){V.JSC$20202_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){pFV(V)});
V.addOnDisposeCallback(function(){Dq(V.JSC$20202_watchApi,"yt-activate-miniplayer-from-watch-action")})},qZd=function(V){var l,I;
_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20202_watchApi.playerApi,2);l=H.yieldResult;I=function(){pFV(V)};
l.addEventListener("onCollapseMiniplayer",I);V.addOnDisposeCallback(function(){l.removeEventListener("onCollapseMiniplayer",I)});
_.FU(H)})},MtC=function(V){var l=V.JSC$20202_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&l&&V.JSC$20202_watchWhileEnabled&&(V.playerIntersectionObserver=new IntersectionObserver(function(I){V.handleIntersect(I)},{threshold:[W5C]}),V.playerIntersectionObserver.observe(l),V.addOnDisposeCallback(function(){var I;
(I=V.playerIntersectionObserver)==null||I.disconnect()}))},pFV=function(V){var l,I,H;
_.d(function(T){if(T.nextAddress==1){l=_.F().resolve(_.pa);I=l.data;H=_.nPc(I.response,I.playerResponse);_.jl().miniplayerButtonActivation=!0;if(V.pipEnabled)return _.jl().watchPipActivation=!0,T.jumpTo(2);_.F().resolve(_.sH).collapse();return _.K(T,_.jl().navigationFinishPromise,2)}if(T.nextAddress!=4)return _.jl().currentEndpoint=H.watchEndpoint||null,_.K(T,_.F().resolve(_.sH).activate(V.JSC$20202_watchApi.getElement("PLAYER"),H,I),4);_.jl().userActivation=!0;_.FU(T)})};
sVh.prototype.handleIntersect=function(V){AFh(this,V[V.length-1])};
var AFh=function(V,l){V.watchWhileJobId&&_.r0.cancelJob(V.watchWhileJobId);V.watchWhileJobId=_.r0.addLowPriorityJob(function(){var I,H;return _.d(function(T){if(T.nextAddress==1)return V.watchWhileJobId=void 0,I=_.F().resolve(_.sH),l.intersectionRatio>W5C?I.isMiniplayerActive()?_.K(T,I.deactivate(),0):T.jumpTo(0):(H=!I.isMiniplayerActive())?_.K(T,uvM(V),5):T.jumpTo(4);T.nextAddress!=4&&(H=T.yieldResult);if(!H)return T.jumpTo(0);_.jl().watchWhileActivation=!0;return _.K(T,vlp(V),0)})},100)},uvM=function(V){return _.d(function(l){return l.nextAddress==
1?_.z("kevlar_watch_while_paused")?l.return(!0):_.K(l,V.isPlayerPlaying(),2):l.return(l.yieldResult)})};
sVh.prototype.isPlayerPlaying=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,V.JSC$20202_watchApi.playerApi,2);l=I.yieldResult;return I.return(l.getPlayerStateObject().isPlaying)})};
var vlp=function(V){var l,I;return _.d(function(H){l=_.F().resolve(_.pa).data;I=_.nPc(l.response,l.playerResponse);_.jl().currentEndpoint=I.watchEndpoint||null;return _.K(H,_.F().resolve(_.sH).activate(V.JSC$20202_watchApi.getElement("PLAYER"),I,l),0)})};var a16=function(V){_.XG.call(this);this.JSC$20206_watchApi=V;OOd(this);CxM(this)};
_.t(a16,_.XG);var CxM=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20206_watchApi.playerApi,2);l=H.yieldResult;I=function(T){var x;T.sessionData&&T.sessionData.itct&&(x=T.sessionData.itct);var n=T.watchEndpoint;if(n&&T.sessionData&&T.sessionData.autonav)n=_.Wyf(n,x);else{var w;n=_.mp(T.videoId,(w=T.listId)!=null?w:void 0,x)}x={endpoint:n};T.sessionData&&(x.tempData=T.sessionData);V.JSC$20206_watchApi.dispatchEvent("yt-navigate",x)};
l.addEventListener("onPlayVideo",I);V.addOnDisposeCallback(function(){l.removeEventListener("onPlayVideo",I)});
_.FU(H)})},OOd=function(V){var l=function(I){V.onYtNavigate(I)};
V.JSC$20206_watchApi.getRoot().addEventListener("yt-navigate",l);V.addOnDisposeCallback(function(){V.JSC$20206_watchApi.getRoot().removeEventListener("yt-navigate",l)})};
a16.prototype.onYtNavigate=function(V){var l=this,I,H,T,x,n,w,N,L,e;return _.d(function(k){if(k.nextAddress==1){if(!((I=V.detail)==null?0:(H=I.endpoint)==null?0:H.watchEndpoint))return k.return();T=V.detail.endpoint.watchEndpoint;x=l.JSC$20206_watchApi.getWatchNextResponse();w=_.y((n=x)==null?void 0:n.currentVideoEndpoint,_.vU);if(!w)return k.return();if(T.videoId!==w.videoId||T.playlistId&&T.playlistId!==w.playlistId||typeof T.startTimeSeconds!=="number")return k.jumpTo(0);V.stopPropagation();(N=
_.z("kevlar_watch_while_v2")&&!_.z("kevlar_watch_while_counterfactual"))&&_.F().resolve(_.sH).isMiniplayerActive()||l.JSC$20206_watchApi.scrollWatchTo(0,!0);return _.K(k,l.JSC$20206_watchApi.playerApi,3)}L=k.yieldResult;e=T.startTimeSeconds;L.seekTo(e,void 0,void 0,void 0,84);L.wakeUpControls();e<L.getDuration()&&L.playVideo();_.FU(k)})};var Vh6=function(V){_.XG.call(this);var l=this;this.JSC$20209_watchApi=V;V=_.Ln(_.v4(),_.wpg,function(){f1x(l)});
this.addOnDisposeCallback(V);V=_.Ln(_.v4(),_.WVp,function(){f1x(l)});
this.addOnDisposeCallback(V);glj(this);m4h(this);iOC()};
_.t(Vh6,_.XG);var glj=function(V){var l=function(H){_.v4().dispatch(_.qqh(H.matches))},I=window.matchMedia("(max-width: "+(999+_.GW())+"px)");
I.addListener(l);V.addOnDisposeCallback(function(){I.removeListener(l)});
l(I)},m4h=function(V){V.JSC$20209_watchApi.registerActionHandler("yt-window-resized",function(){iOC()});
V.addOnDisposeCallback(function(){Dq(V.JSC$20209_watchApi,"yt-window-resized")})},iOC=function(){var V=_.jD();
_.v4().dispatch(_.IA({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:V.width,height:V.height}}}))},f1x=function(V){var l;
_.d(function(I){if(I.nextAddress==1)return _.K(I,V.JSC$20209_watchApi.playerApi,2);l=I.yieldResult;l.setSize(NaN,NaN);_.FU(I)})};var IUq=function(V){_.XG.call(this);var l=this;this.JSC$20213_watchApi=V;var I=this.JSC$20213_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){lUp(l)});
this.addOnDisposeCallback(function(){l.JSC$20213_watchApi.unsubscribeByKey(I)});
lUp(this)};
_.t(IUq,_.XG);var lUp=function(V){var l=V.JSC$20213_watchApi.getWatchNextResponse();if(l){var I,H=[].concat(_.oI((I=l==null?void 0:l.engagementPanels)!=null?I:[]));H.unshift.apply(H,_.oI(HCn(l)));V.JSC$20213_watchApi.provideRenderingData("ENGAGEMENT_PANELS",H)}},TuC=function(V){var l;
if(_.z("enable_yoututor_for_learning_journeys")&&((l=_.Qo(window.location.href,"list"))==null?0:l.startsWith("LJ")))return!0;var I,H,T;l=(I=V.engagementPanels)==null?void 0:(H=I.find(function(r){var E;return((E=r.engagementPanelSectionListRenderer)==null?void 0:E.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(T=H.engagementPanelSectionListRenderer.content)==null?void 0:T.structuredDescriptionContentRenderer;
var x;if(_.y(l==null?void 0:(x=l.items)==null?void 0:x.find(function(r){return!!_.y(r,EEh)}),EEh))return!0;
var n,w,N,L;if(V=(((n=V.contents)==null?void 0:(w=n.twoColumnWatchNextResults)==null?void 0:(N=w.results)==null?void 0:(L=N.results)==null?void 0:L.contents)||[]).find(function(r){return r.videoPrimaryInfoRenderer})){var e,k,X;
return(((e=V.videoPrimaryInfoRenderer)==null?void 0:(k=e.videoActions)==null?void 0:(X=k.menuRenderer)==null?void 0:X.flexibleItems)||[]).some(function(r){r=_.y(r,_.cr0);if(!r)return!1;var E,D;r=(E=r.topLevelButton)==null?void 0:(D=E.buttonViewModel)==null?void 0:D.onTap;if(!r)return!1;E=_.to(r);if(!E)return!1;var Z;return((Z=_.y(E,_.RK))==null?void 0:Z.panelIdentifier)==="PAyouchat"})}return!1},HCn=function(V){var l=[];
if(!_.z("web_watch_inject_placeholder_fantasy_panel_killswitch")){var I,H,T,x=(I=V.engagementPanels)==null?void 0:(H=I.find(function(w){var N;return((N=w.engagementPanelSectionListRenderer)==null?void 0:N.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(T=H.engagementPanelSectionListRenderer.content)==null?void 0:T.structuredDescriptionContentRenderer,n;
_.y(x==null?void 0:(n=x.items)==null?void 0:n.find(function(w){return!!_.y(w,IKn)}),IKn)&&(I=_.Hyc("PAsports_fantasy"),I.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l.push(I))}TuC(V)&&(V=_.Hyc("PAyouchat"),V.engagementPanelSectionListRenderer.targetId="PAyouchat",V.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l.push(V));
return l};var xKC=function(V){_.XG.call(this);this.JSC$20216_watchApi=V;Bu5(this)};
_.t(xKC,_.XG);var Bu5=function(V){V.JSC$20216_watchApi.registerActionHandler("yt-loop-command",function(l){UKY(V,l)});
V.JSC$20216_watchApi.registerActionHandler("yt-repeat-chapter-command",function(l){nzf(V,l)});
V.addOnDisposeCallback(function(){Dq(V.JSC$20216_watchApi,"yt-loop-command");Dq(V.JSC$20216_watchApi,"yt-repeat-chapter-command")})},UKY=function(V,l){var I;
_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20216_watchApi.playerApi,2);I=H.yieldResult;_.y(l,T4n).loop?(I.setLoopRange({startTimeMs:Number(_.y(l,T4n).startTimeMs),endTimeMs:Number(_.y(l,T4n).endTimeMs),postId:_.y(l,T4n).postId,type:"clips"}),I.playVideo()):I.setLoopRange(null);_.FU(H)})},nzf=function(V,l){var I,H;
_.d(function(T){if(T.nextAddress==1)return _.K(T,V.JSC$20216_watchApi.playerApi,2);I=T.yieldResult;H=_.y(l,$0f).repeat;H==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(I.setLoopRange({startTimeMs:Number(_.y(l,$0f).startTimeMs),endTimeMs:Number(_.y(l,$0f).endTimeMs),type:"repeatChapter"}),I.playVideo()):H==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&I.setLoopRange(null);_.FU(T)})};var dKf=function(V){_.XG.call(this);this.JSC$20221_watchApi=V;$Kn(this)};
_.t(dKf,_.XG);var $Kn=function(V){V.JSC$20221_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(l){wIC(V,l)});
V.addOnDisposeCallback(function(){Dq(V.JSC$20221_watchApi,"yt-watch-player-overflow-menu-command")})},wIC=function(V,l){var I,H,T,x,n,w,N,L,e,k,X;
_.d(function(r){if(r.nextAddress==1)return _.K(r,V.JSC$20221_watchApi.playerApi,2);I=r.yieldResult;if(x=(T=(H=_.y(l,d0f))==null?void 0:H.highlightedMenuItemKey)!=null?T:"")(w=(n=I).highlightSettingsMenuItem)==null||w.call(n,x);if(e=(L=(N=_.y(l,d0f))==null?void 0:N.openMenuItemKey)!=null?L:"")(X=(k=I).openSettingsMenuItem)==null||X.call(k,e);_.FU(r)})};var NuO=_.Ul("/youtube/app/watch/player_state","playerStateEntity");var jXO=function(V){_.XG.call(this);this.JSC$20224_watchApi=V;K4V(this)};
_.t(jXO,_.XG);var YwV=function(V){switch(V){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"}},K4V=function(V){var l,I;
_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20224_watchApi.playerApi,2);l=H.yieldResult;I=function(T){V.onPlayerStateChange(T)};
l.addEventListener("onStateChange",I);V.addOnDisposeCallback(function(){l.removeEventListener("onStateChange",I)});
_.FU(H)})};
jXO.prototype.onPlayerStateChange=function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1)return _.K(T,l.JSC$20224_watchApi.playerApi,2);I=T.yieldResult;H=I.getVideoData().video_id;_.P1().dispatch(_.K6("playerStateEntity",NuO,{key:NuO,playerState:YwV(V),videoId:H}));_.FU(T)})};var L4h=function(V){_.XG.call(this);var l=this;this.JSC$20228_watchApi=V;V=_.v4();var I=_.Ln(V,Zy,function(H){l.onActiveChanged(H)});
this.addOnDisposeCallback(I);_.F().resolve(_.cV).setPlayer(this.JSC$20228_watchApi.getElement("PLAYER"));this.onActiveChanged(Zy(V.getState()))};
_.t(L4h,_.XG);L4h.prototype.onActiveChanged=function(V){var l=this,I=_.F().resolve(_.cV),H=function(){ewd(l)};
V?(V=this.JSC$20228_watchApi.getElement("PLAYLIST_PANEL"))?(I.setPlaylistComponent(V),I.addEventListener("yt-playlist-data-updated",H),this.addOnDisposeCallback(function(){I.removeEventListener("yt-playlist-data-updated",H)}),ewd(this)):_.Rw(Error("km")):(I.removeEventListener("yt-playlist-data-updated",H),I.cancelVideoSkip())};
var ewd=function(V){var l=_.F().resolve(_.cV);V.JSC$20228_watchApi.provideRenderingData("PLAYLIST",l.getPlaylistData())};var zwM=function(V){_.XG.call(this);var l=this;this.JSC$20231_watchApi=V;this.onPageScroll=function(){l.scrollThrottle.fire();l.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.le(this.onThrottledScroll,200,this);_.$w(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.le(this.onMastheadThrottledScroll,50,this);_.$w(this,this.mastheadScrollThrottle);this.animation=new _.qW(function(I){l.JSC$20231_watchApi.getRoot().setScrollTop(I)});
V=_.Ln(_.v4(),_.S8,function(){kOV(l)});
this.addOnDisposeCallback(V);F4f(this);XIh(this);this.onThrottledScroll()};
_.t(zwM,_.XG);
var kOV=function(V){var l=V.JSC$20231_watchApi.getRoot();!V.pageScrollElement&&l.pageScrollElement?(V.pageScrollElement=l.pageScrollElement,l.pageScrollElement.addEventListener("scroll",V.onPageScroll),V.addOnDisposeCallback(function(){V.pageScrollElement&&V.pageScrollElement.removeEventListener("scroll",V.onPageScroll)})):V.pageScrollElement&&!l.pageScrollElement&&(V.pageScrollElement.removeEventListener("scroll",V.onPageScroll),V.pageScrollElement=void 0)},F4f=function(V){window.addEventListener("scroll",V.onPageScroll);
V.addOnDisposeCallback(function(){window.removeEventListener("scroll",V.onPageScroll)})},XIh=function(V){V.JSC$20231_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(l){a:{var I;
if(I=V.JSC$20231_watchApi.getRoot().contains(l)&&!V.animation.isAnimating()){I=l.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var H,T,x=(l==null?void 0:(H=l.parentElement)==null?void 0:(T=H.parentElement)==null?void 0:T.id)==="fixed-secondary";I=!(I&&x)}if(I){if(_.z("kevlar_watch_scroll_manager_absolute_offset_killswitch"))H=l.offsetTop;else for(H=0,T=l;T!==null;)H+=T.offsetTop,H-=T.scrollTop,T=T.offsetParent;T=H;H=T-24;l=T+l.offsetHeight+24;T=V.JSC$20231_watchApi.getRoot().getPageScrollingElement();
I=V.JSC$20231_watchApi.getRoot().getScrollTop();x=I+T.clientHeight-56;if(H<I+56)l=H-56;else if(l>x)l-=T.clientHeight;else break a;V.scrollWatchTo(Math.max(0,l),!0)}}});
V.addOnDisposeCallback(function(){Dq(V.JSC$20231_watchApi,"yt-scroll-to-watch-element")})};
zwM.prototype.onThrottledScroll=function(){var V=_.v4(),l=V.dispatch,I=this.JSC$20231_watchApi.getRoot().getScrollTop();l.call(V,_.IA({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:I}}))};
zwM.prototype.onMastheadThrottledScroll=function(){this.JSC$20231_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20231_watchApi.getRoot().getScrollTop())};
zwM.prototype.scrollWatchTo=function(V,l){(l===void 0?0:l)?this.animation.start(this.JSC$20231_watchApi.getRoot().getScrollTop(),Math.max(0,V),500):this.JSC$20231_watchApi.getRoot().setScrollTop(V)};var rln=function(V){_.XG.call(this);var l=this;this.JSC$20234_watchApi=V;var I=this.JSC$20234_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ylV(l)}),H=this.JSC$20234_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){thM(l)});
this.addOnDisposeCallback(function(){l.JSC$20234_watchApi.unsubscribeByKey(I);l.JSC$20234_watchApi.unsubscribeByKey(H)});
ylV(this);thM(this)};
_.t(rln,_.XG);
var ylV=function(V){var l,I,H,T=(H=(l=V.JSC$20234_watchApi.getPlayerResponse())==null?void 0:(I=l.videoDetails)==null?void 0:I.title)!=null?H:"";V.JSC$20234_watchApi.dispatchEvent("yt-update-title",T)},thM=function(V){var l,I,H,T,x,n,w,N=(w=((n=(l=V.JSC$20234_watchApi.getWatchNextResponse())==null?void 0:(I=l.contents)==null?void 0:(H=I.twoColumnWatchNextResults)==null?void 0:(T=H.results)==null?void 0:(x=T.results)==null?void 0:x.contents)!=null?n:[]).find(function(L){return!!L.videoPrimaryInfoRenderer}))==null?
void 0:w.videoPrimaryInfoRenderer;
(l=_.A5(N==null?void 0:N.title))&&V.JSC$20234_watchApi.dispatchEvent("yt-update-title",l)};var EzV=function(V){_.XG.call(this);this.JSC$20237_watchApi=V;GOf(this)};
_.t(EzV,_.XG);var GOf=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$20237_watchApi.playerApi,2);l=H.yieldResult;I=function(){V.onYpcContentRequest()};
l.addEventListener("onYpcContentRequest",I);V.addOnDisposeCallback(function(){l.removeEventListener("onYpcContentRequest",I)});
_.FU(H)})};
EzV.prototype.onYpcContentRequest=function(){var V,l,I,H,T,x=(V=this.JSC$20237_watchApi.getWatchNextResponse())==null?void 0:(l=V.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(H=I.secondaryResults)==null?void 0:(T=H.secondaryResults)==null?void 0:T.offerModule,n,w,N,L;V=(L=(N=(w=(n=x==null?void 0:x.episodeOfferModuleRenderer)!=null?n:x==null?void 0:x.movieOfferModuleRenderer)!=null?w:x==null?void 0:x.unlimitedOfferModuleRenderer)!=null?N:x==null?void 0:x.liveOfferModuleRenderer)!=
null?L:x==null?void 0:x.tvfilmOfferModuleRenderer;var e,k,X;x=(X=x==null?void 0:(e=x.tvfilmOfferModuleRenderer)==null?void 0:(k=e.actionButtons)==null?void 0:k.length)!=null?X:0;k=Math.max(x-1,0);var r,E,D;e=(D=V==null?void 0:(r=V.offerButton)==null?void 0:r.buttonRenderer)!=null?D:V==null?void 0:(E=V.actionButtons)==null?void 0:E[k].buttonRenderer;var Z,S;(r=(S=(Z=e==null?void 0:e.navigationEndpoint)!=null?Z:e==null?void 0:e.serviceEndpoint)!=null?S:e==null?void 0:e.command)&&_.li.instance.resolveCommand(r)};_.Wc=function(V){_.gi.call(this);var l=this;this.rootElement=V;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return l.activeModules}};
JlO(this);V=_.Ln(_.v4(),Zy,function(I){l.initOrDisposeActiveModules(I)});
this.addOnDisposeCallback(V);this.initOrDisposeActiveModules(Zy(_.v4().getState()));this.onAttached()};
_.t(_.Wc,_.gi);_.Wc.prototype.getRoot=function(){return this.rootElement};
_.Wc.prototype.getElement=function(V){return this.rootElement.getElement(V)};
_.br=function(V,l){V.playerResponse=l;V.publish("PLAYER_RESPONSE_UPDATED",l)};
_.Wc.prototype.getPlayerResponse=function(){return this.playerResponse};
_.qM=function(V,l){V.watchNextResponse===l?V.publish("WATCH_NEXT_RESPONSE_RELOADED"):(V.watchNextResponse=l,V.publish("WATCH_NEXT_RESPONSE_UPDATED",l))};
_.Wc.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.Wc.prototype.registerActionHandler=function(V,l){var I=this;if(_.z("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.bx(_.WF.getInstance(),(H[V]=l,H),this.getRoot())}else this.actionHandlers.has(V)||(this.actionHandlers.set(V,[]),H={},_.bx(_.WF.getInstance(),(H[V]=function(){var T=_.Q5.apply(0,arguments);return(I.actionHandlers.get(V)||[]).map(function(x){return x.apply(null,_.oI(T))})},H),this.getRoot())),this.actionHandlers.get(V).push(l)};
var Dq=function(V,l){if(_.z("web_watch_controller_reg_multiple_handlers_killswitch")){var I={};_.q4(_.WF.getInstance(),(I[l]=!0,I),V.getRoot())}else(I=V.actionHandlers.get(l))?(I.pop(),I.length===0&&(I={},_.q4(_.WF.getInstance(),(I[l]=!0,I),V.getRoot()),V.actionHandlers.delete(l))):_.hF(new _.Yd("Attempted to unregister an action handler which is not registered.",l))},hxq=function(V,l){V.rootElement.pageDisposeJobs||(V.rootElement.pageDisposeJobs=[]);
_.ztN(V.rootElement.pageDisposeJobs,l)};
_.Wc.prototype.dispatchEvent=function(V,l){_.B$(this.rootElement,V,l)};
_.Wc.prototype.provideRenderingData=function(V,l){this.rootElement.provideRenderingData(V,l)};
_.Wc.prototype.scrollWatchTo=function(V,l){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(V,l)};
_.Wc.prototype.focusOnPlayer=function(){var V=this.getElement("PLAYER");_.Al(V,function(){if(V&&V.firstElementChild){var l=V.querySelector(".html5-video-player");l&&(_.jEZ(_.F().resolve(_.Fp)),l.focus())}else _.hF(Error("lm"))})};
_.ozM=function(V){var l=!!V.rootElement.theater,I=!!V.rootElement.fullscreen,H;(H=V.watchCinematicManager)==null||L5x(H,I,l)};
_.Wc.prototype.onAttached=function(){var V=_.z("external_fullscreen");_.z("use_unified_flag_accessor")&&(V=_.F().resolve(_.PtV).retriever.getFlag(_.bNo));(V||_.PO("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var hwq=function(V){return V.getRoot().is==="ytd-watch-flexy"||V.getRoot().is==="ytd-watch-grid"},MM=function(V){return V.getRoot().is==="ytd-watch-fixie"},JlO=function(V){if(MM(V)||hwq(V)&&_.z("kevlar_watch_flexy_theater_manager")){var l=new ufM(V);
_.$w(V,l)}l=new SZq(V);_.$w(V,l);l=new Zq(V);_.$w(V,l);l=new olq(V);_.$w(V,l);l=new jXO(V);_.$w(V,l);l=new SY(V);_.$w(V,l);if(MM(V)||hwq(V)&&_.z("kevlar_watch_flexy_playlist_manager"))l=new L4h(V),_.$w(V,l)};
_.Wc.prototype.initOrDisposeActiveModules=function(V){V?(this.watchScrollManager=new zwM(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new a16(this)),this.activeModules.push(new vdf(this)),MM(this)&&this.activeModules.push(new Vh6(this)),this.activeModules.push(new rln(this)),this.activeModules.push(new sVh(this)),(MM(this)||_.z("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new gdd(this)),this.activeModules.push(new xKC(this)),(MM(this)||
_.z("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new EzV(this)),(MM(this)||_.z("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new U4Y(this)),_.z("kevlar_watch_cinematics")&&(this.watchCinematicManager=new NTd(this),this.activeModules.push(this.watchCinematicManager),_.ozM(this)),_.z("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new dKf(this)),_.z("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new D4V(this)),V=_.z("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.z("kevlar_watch_flexy_comments_manager")&&!V&&this.activeModules.push(new yFh(this)),_.z("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new dDf(this)),this.activeModules.push(new i0f(this)),_.z("web_watch_inject_placeholder_panels")&&this.activeModules.push(new IUq(this)),_.z("web_enable_timely_actions")&&this.activeModules.push(new HOp(this)),_.z("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new GQf(this)),_.z("web_watch_enable_multiview_manager")&&
this.activeModules.push(new LuC(this)),_.z("web_fullscreen_video_action_bar")&&this.activeModules.push(new lBp(this)),_.z("web_player_rtr_ctrls")&&this.activeModules.push(new J2q(this))):(_.e11(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Wc.prototype.disposeInternal=function(){_.gi.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.vI.Object.defineProperties(_.Wc.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var Tju;Tju=function(V){switch(V){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:_.AB(V,"unknown result type")}};
_.Bjb=function(V,l,I){l=_.$oK[l];I={detected:V===0,source:l.pl3,detectionResult:Tju(V),contentCpn:I};_.tF("biscottiBasedDetection",I);_.z("ab_l_sig_st")&&_.mCN.increment(l.pl3,V);l.cYG!==void 0&&_.ow("CATSTAT",_.xo3(V,l))};
_.OK=function(V,l){var I={};I.key=V;I.value=l;return _.cNw().then(function(H){return new Promise(function(T,x){try{var n=H.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(I);n.onsuccess=function(){T()};
n.onerror=function(){x()}}catch(w){x(w)}})})};
_.URY=function(){var V=_.g7("user_engagement_experiments_rate_limit_ms"),l=xRV.get("last-user-engagement-exp-trigger-timestamp");return!l||(0,_.O_)()>=l+V?(xRV.set("last-user-engagement-exp-trigger-timestamp",(0,_.O_)()),!0):!1};
_.C4=function(V,l,I,H,T){l=l===void 0?null:l;I=I===void 0?null:I;H=H===void 0?null:H;T=T===void 0?null:T;V={youThereEventType:V};I&&(V.lactThresholdMs=I.lactThresholdMs,V.mediaPosSec=I.promptDelaySec,V.lactServerRequestMs=I.lactServerRequestMs,V.triggerReason=I.triggerReason);T!=null&&(V.renderingMediaPosSec=Math.round(T));l||(l=_.oa());l&&(V.clientScreenNonce=l);H&&(V.clientPlaybackNonce=H);_.tF("youThere",V)};var xRV=new _.h2("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.VXh=function(V){return _.IA({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:V})};
}catch(e){_._DumpException(e)}
try{
var W46,pIn,Alh,uHM,QXx,RwV,OCM;_.DK5=function(){var V=window.location.hash;V.charAt(0)==="#"&&(V=V.charAt(1)==="!"?V.substring(2):V.substring(1));return _.WO(V)};
_.ZCq=function(V){var l;_.d(function(I){l=["b.f_","j.s_","r.s_","e.h_"];_.z("ab_det_sc_inj")&&l.push("s.i_");_.z("ab_deg_unex_thr")||l.push("a.o_");_.z("ks_get_o_pp")||l.push("g.o_");_.z("ks_det_gpbl")||l.push("p.i_");l.push("f.i_");l.push("a.b_");l.push("p.m_");_.z("ab_det_el_h_v2")&&l.push("n.h_");l.push("o.p_");_.z("ab_det_apm")&&l.push("o.a_");l.forEach(function(H){var T;return _.d(function(x){if(x.nextAddress==1)return _.K(x,_.CSa[H](),2);T=x.yieldResult;V(T,H);_.FU(x)})});
_.FU(I)})};
_.Swj=function(V,l){V={videoId:V};l&&(V.playlistId=l);return V};
_.cl5=function(){if(!_.z("disable_biscotti_fetch_for_ad_blocker_detection")&&!_.z("disable_biscotti_fetch_entirely_for_all_web_clients")&&_.uQJ()){var V=_.h6("PLAYER_VARS",{});if(_.EL.get(V,"privembed",!1)!="1"&&!_.CDW(V)){var l=function(){RwV=!0;"google_ad_status"in window?_.ow("DCLKSTAT",1):_.ow("DCLKSTAT",2)};
try{_.Ra("//static.doubleclick.net/instream/ad_status.js",l)}catch(I){}QXx.push(_.r0.addLowPriorityJob(function(){if(!(RwV||"google_ad_status"in window)){try{_.Smt("//static.doubleclick.net/instream/ad_status.js",l)}catch(I){}RwV=!0;_.ow("DCLKSTAT",3)}},5E3))}}};
W46=function(V){return _.z("web_watch_adjust_sidebar_width")?_.Mg+((V===void 0?1500:V)-_.h7n)/100*_.PwY:_.Mg};
_.bCV=function(V,l){V=V.width-_.OOQ();var I=W46(V);return Math.max(I,Math.min(_.S9f,I+(V-(_.Zkf+W46(V)+_.bq+2*_.bq+l))))};
_.qwd=function(V,l,I){I=I===void 0?!1:I;var H=Math.max(V.width,_.D0p);if(_.z("kevlar_watch_feed_big_thumbs")&&V.width>=1550-_.GW()&&V.height>=800)H-=_.WYj;else if(V.width>=_.qg){var T=_.Zkf+W46(V.width)+_.bq;_.z("kevlar_watch_feed_big_thumbs")&&(T=_.cef);H-=T}else H-=_.Zkf;H=Math.min(H,_.R76);T=240;I&&(T=380);l<.5624||(!_.z("kevlar_watch_flexy_disable_small_window_sizing")&&(V.height<630&&V.width>=657||V.height>=630&&V.width>=_.qg&&V.width<1327)?T=360:!_.z("kevlar_watch_flexy_disable_large_window_sizing")&&
V.height>=630&&V.width>=1327&&(T=480));var x=Math.min(H*l,V.height-(56+_.oEV+_.QIx));x=Math.max(x,T);l<1?H=x/l:V.width>=_.qg&&(H=_.qwd(V,.5625,I).width);return new _.Yp(Math.round(H),Math.round(x))};
_.MhO=function(V){var l=0;V.indexOf("h")!=-1&&(V=V.split("h"),l=V[0]*60*60,V=V[1]);V.indexOf("m")!=-1&&(V=V.split("m"),l=V[0]*60+l,V=V[1]);V.indexOf("s")!=-1?(V=V.split("s"),l=V[0]*1+l):l=V*1+l;return l};
_.sXq=function(){_.g7("service_worker_push_logged_out_prompt_watches")!=-1&&_.mi("WatchCount").then(function(V){V>=100||_.OK("WatchCount",V+1)})};
pIn=function(V){var l=V.externalVideoId||"";return l?(_.z("webfe_watch_shorts_canonical_url_fix")||_.h6("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&V.isShortsEligible?"https://www.youtube.com/shorts/"+l:"https://www.youtube.com/watch?v="+l:""};
Alh=function(V){var l=[];V.viewCount&&l.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:V.viewCount});V.likeCount&&l.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:V.likeCount});return l};
uHM=function(V){var l,I,H={"@context":"https://schema.org","@type":"VideoObject",description:_.A5(V.description),duration:"PT"+(V.lengthSeconds||"0")+"S",embedUrl:V.embed?V.embed.iframeUrl:"",name:_.A5(V.title),thumbnailUrl:((l=V.thumbnail)==null?void 0:(I=l.thumbnails)==null?void 0:I.map(function(e){return e&&e.url||""}))||[],
uploadDate:V.publishDate};_.z("mweb_video_schema_id_killswitch")||(H["@id"]=pIn(V));l=Alh(V);l.length&&(H.interactionStatistic=l);V.category&&(H.genre=V.category);V.ownerChannelName&&(H.author=V.ownerChannelName);V.liveBroadcastDetails&&(H.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:V.liveBroadcastDetails.startTimestamp,endDate:V.liveBroadcastDetails.endTimestamp}]);if(V.learningResource){V=V.learningResource;H["@type"]=["VideoObject","LearningResource"];var T;if((T=V.learningResourceType)==
null?0:T.length)H.learningResourceType=V.learningResourceType[0];var x;if((x=V.educationalAlignment)==null?0:x.length)H.educationalAlignment={"@type":"AlignmentObject",targetName:V.educationalAlignment[0]};var n;if((n=V.educationalLevel)==null?0:n.length){T=V.educationalLevel[0];var w;if((w=V.educationalLevelCountry)==null?0:w.length)T+=" ("+V.educationalLevelCountry+")";H.educationalLevel=T}var N,L;if(((N=V.learningResourceType)==null?0:N.length)&&V.learningResourceType[0]==="Problem walkthrough"&&
((L=V.problemDescriptions)==null?0:L.length))for(H.hasPart=[],w=_.U(V.problemDescriptions),N=w.next();!N.done;N=w.next())T=N.value,N=T.problemDescriptionText,L=T.startOffset,T=T.url,N&&L!==void 0&&T&&H.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:N,text:N,startOffset:L,url:T})}return H};
_.vzY=function(V){return _.IA({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:V}})};
QXx=[];RwV=!1;OCM=new _.f("updateSentimentBarStateCommand");_.Cgd=new _.f("showSurveyCommand");_.p5=new _.f("changeMarkersVisibilityCommand");var fUf,gzM,lhp,VXn,iCp,AY;_.aUM=function(V,l){this.playerProvider_=V;this.actionSenderElement_=l;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.aUM.prototype.reset=function(){fUf(this);this.isUserPredictedAbsent_=!1};
fUf=function(V,l){!V.youThereData_||V.showWarningJob_||l!==void 0&&l||(_.C4("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.oa(),V.youThereData_,V.clientPlaybackNonce_),_.rT());_.r0.cancelJob(V.showWarningJob_);V.showWarningJob_=0;_.r0.cancelJob(V.showBlockingWarningJob_);V.showBlockingWarningJob_=0;_.r0.cancelJob(V.pausePlaybackJob_);V.pausePlaybackJob_=0;V.youThereData_=null;V.clientPlaybackNonce_=void 0;V.inYouThereFlow_=!1};
_.mKM=function(V,l){var I,H,T;_.d(function(x){if(x.nextAddress==1)return V.reset(),_.K(x,V.playerProvider_().getPlayerPromise(),2);I=x.yieldResult;V.clientPlaybackNonce_=I.getVideoData().cpn;V.youThereData_=l.configData.youThereData;if(!V.youThereData_)return x.return();if(V.youThereData_.triggerReason&&V.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.URY())return _.C4("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.oa(),V.youThereData_,V.clientPlaybackNonce_),x.return();H=V.youThereData_.promptDelaySec;
T=I.getCurrentTime();V.showWarningJob_=_.r0.addLowPriorityJob(function(){return _.d(function(n){V.showWarningJob_=0;return _.K(n,gzM(V),0)})},Math.max(H-T,0)*1E3);
_.FU(x)})};
gzM=function(V){var l,I,H,T,x,n;return _.d(function(w){if(w.nextAddress==1)return _.K(w,V.playerProvider_().getPlayerPromise(),2);if(w.nextAddress!=3)return l=w.yieldResult,I=l.getCurrentTime(),_.K(w,iCp(V),3);H=w.yieldResult;if(!H||!V.youThereData_)return w.return();if(_.z("check_user_lact_at_prompt_shown_time_on_web")&&(T=parseInt(V.youThereData_.lactThresholdMs,10),_.f0()<T))return _.C4("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.oa(),V.youThereData_,V.clientPlaybackNonce_),w.return();if(V.youThereData_.playbackPauseDelayMs<=
0)return VXn(V),w.return();!_.z("external_fullscreen")&&(x=_.iK())&&(V.ignoreFullscreenExitUserActivity_=!0,_.r0.addLowPriorityJob(function(){V.ignoreFullscreenExitUserActivity_=!1},2E3),_.Vg(x));
V.youThereData_.showToastWarningPrompt&&(AY(V,V.youThereData_.showWarningActions),V.inYouThereFlow_=!0,_.C4("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.oa(),V.youThereData_,V.clientPlaybackNonce_,I),_.C4("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.oa(),V.youThereData_,V.clientPlaybackNonce_,I));n=0;V.youThereData_.blockingPromptDelayMs&&(n=V.youThereData_.blockingPromptDelayMs);V.showBlockingWarningJob_=_.r0.addLowPriorityJob(function(){return _.d(function(N){V.showBlockingWarningJob_=0;return _.K(N,
lhp(V),0)})},n);
_.FU(w)})};
lhp=function(V){var l,I,H;return _.d(function(T){if(T.nextAddress==1)return _.K(T,iCp(V),2);l=T.yieldResult;if(!V.youThereData_)return T.return();l&&(V.youThereData_.showBlockingWarningAction&&(_.C4("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.oa(),V.youThereData_,V.clientPlaybackNonce_),(I=_.y(V.youThereData_.showBlockingWarningAction,_.NJ))?AY(V,I.commands):AY(V,[V.youThereData_.showBlockingWarningAction]),V.inYouThereFlow_=!0),H=V.youThereData_.playbackPauseDelayMs,V.pausePlaybackJob_=
_.r0.addLowPriorityJob(function(){return _.d(function(x){V.pausePlaybackJob_=0;return _.K(x,VXn(V),0)})},H));
_.FU(T)})};
VXn=function(V){var l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,iCp(V),2);l=I.yieldResult;if(!V.youThereData_)return I.return();l&&(_.C4("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.oa(),V.youThereData_,V.clientPlaybackNonce_),AY(V,V.youThereData_.showPausedActions),V.inYouThereFlow_=!0);_.FU(I)})};
_.aUM.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var V=_.y(this.youThereData_.userActiveDuringFlowAction,_.NJ);V?AY(this,V.commands):AY(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.C4("YOU_THERE_EVENT_TYPE_LACT_RESET",_.oa(),this.youThereData_,this.clientPlaybackNonce_),_.rT());fUf(this,!0)}_.Ihx(this,!1)};
_.H8p=function(V){_.C4("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.oa(),V.youThereData_,V.clientPlaybackNonce_)};
iCp=function(V){var l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,V.playerProvider_().getPlayerPromise(),2);l=H.yieldResult;I=l.getPlayerState();return H.return(I==-1||I==1||I==3)})};
_.Ihx=function(V,l){var I;_.d(function(H){if(H.nextAddress==1){if(V.isUserPredictedAbsent_==l)return H.jumpTo(0);V.isUserPredictedAbsent_=l;return _.K(H,V.playerProvider_().getPlayerPromise(),3)}I=H.yieldResult;I.setUserEngagement(l);l&&_.C4("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.oa(),V.youThereData_,V.clientPlaybackNonce_);_.FU(H)})};
AY=function(V,l){if(_.z("handle_service_request_actions")||_.z("kevlar_youthere_service_endpoint_actions_killswitch"))_.d6(V.actionSenderElement_,l,V.actionSenderElement_);else{l=_.U(l);for(var I=l.next();!I.done;I=l.next())I=I.value,I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.sendPost?_.$B(V.actionSenderElement_,[I]):_.d6(V.actionSenderElement_,[I],V.actionSenderElement_)}};var TSq;var BSC;var xzp=function(){var V=_.M.apply(this,arguments)||this;V.systemIcons=_.z("kevlar_system_icons");V.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return V};
_.t(xzp,_.M);xzp.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var V=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(V=this.data.percentIfLiked||0,this.activated=!0):(V=this.data.percentIfIndifferent||0,this.activated=!1);_.h(this.hostElement).querySelector("#like-bar").style.width=V+"%"}};
xzp.prototype.handleUpdateSentimentBarStateCommand=function(V){this.data&&this.set("data.likeStatus",_.y(V,OCM).likeStatus)};
var ur=xzp;ur.prototype.observeLikeStatus=ur.prototype.observeLikeStatus;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ur.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ur.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],ur.prototype,"activated",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ur.prototype,"systemIcons",void 0);_.O([_.b("data.likeStatus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ur.prototype,"observeLikeStatus",null);ur=_.O([_.A({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],ur);
_.u(ur,"ytd-sentiment-bar-renderer",function(){if(BSC!==void 0)return BSC;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return BSC=V},{mode:1});var UzY;var nAY=function(){var V=_.M.apply(this,arguments)||this;V.small=!0;return V};
_.t(nAY,_.M);var vc=nAY;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],vc.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],vc.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],vc.prototype,"small",void 0);vc=_.O([_.A({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],vc);
_.u(vc,"ytd-video-view-count-renderer",function(){if(UzY!==void 0)return UzY;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return UzY=V},{mode:_.Cm("kevlar_poly_si_batch_j080")?1:2});var OV=function(){var V=_.M.apply(this,arguments)||this;V.infoFormattedStrings=[];V.wrapVideoActions=_.z("kevar_watch_wrap_video_actions");V.hideSentimentBar=_.z("kevlar_watch_hide_sentiment_bar");V.actionMap={};return V};
_.t(OV,_.M);_.B=OV.prototype;_.B.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.z("web_modern_buttons"),forceIconButton:!_.z("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.B.dataChanged=function(){_.z("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.B.computeInfoFormattedStrings=function(V){if(!V)return[];var l=[];V.dateText&&l.push(V.dateText);V.stationName&&l.push(V.stationName);V.rating&&l.push(V.rating);V.startEndTimeTemplate&&V.startTimeUtcMillis&&V.endTimeUtcMillis&&l.push(_.pW(_.cI5(_.A5(V.startEndTimeTemplate),Number(V.startTimeUtcMillis),Number(V.endTimeUtcMillis))));V.upNextProgramText&&l.push(V.upNextProgramText);return l};
_.B.scheduleInitialUpdatedMetadataRequest=function(){var V,l=(V=this.data)==null?void 0:V.updatedMetadataEndpoint;if(l){var I;V=Number((I=_.y(l,_.NFo))==null?void 0:I.initialDelayMs);I=isNaN(V)?250:V;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),I)}};
_.B.setSentimentBarWidth=function(){var V=this;_.Al(this,function(){var l=_.h(V.hostElement).querySelector("ytd-menu-renderer");if(l){l=l.topLevelButtons;for(var I=0,H=0;H<l.length;H++){var T=l[H],x=V.get("toggleButtonSupportedData.toggleButtonIdData.id",T.data);if(x==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||x==="TOGGLE_BUTTON_ID_TYPE_LIKE")I+=T.clientWidth+8;else break}I&&(V.sentiment.style.width=I-8+" px")}})};
_.B.fetchUpdatedMetadata=function(V){var l;V&&(l={continuation:V});var I;(V=(I=this.data)==null?void 0:I.updatedMetadataEndpoint)&&_.F().resolve(_.aw).resolveCommand(V,{form:Object.assign({},l,{element:this.hostElement})})};
_.B.onYtServiceRequestSent=function(V,l){l.endpoint&&_.y(l.endpoint,_.Cv)&&(this.hasUpdateSentimentBarStateCommands()&&!_.z("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.y(l.endpoint,_.Cv).status),this.setSentimentBarWidth())};
_.B.hasUpdateSentimentBarStateCommands=function(){var V,l,I,H,T=(H=(V=this.data)==null?void 0:(l=V.videoActions)==null?void 0:(I=l.menuRenderer)==null?void 0:I.topLevelButtons)!=null?H:[];V=_.U(T);for(l=V.next();!l.done;l=V.next()){l=l.value;T=H=I=void 0;var x=(I=l.toggleButtonRenderer)==null?void 0:(H=I.toggleButtonSupportedData)==null?void 0:(T=H.toggleButtonIdData)==null?void 0:T.id;if(x==="TOGGLE_BUTTON_ID_TYPE_LIKE"||x==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){H=I=void 0;l=(H=_.y((I=l.toggleButtonRenderer)==
null?void 0:I.defaultServiceEndpoint,_.NJ))==null?void 0:H.commands;if(!l)break;l=_.U(l);for(I=l.next();!I.done;I=l.next())if(_.y(I.value,OCM))return!0}}return!1};
_.B.onYtServiceRequestCompleted=function(V,l){var I;(V=(I=l.data)==null?void 0:I.loggingDirectives)&&_.v5q(_.x7(),V);this.get("continuation.timedContinuationData",l.data)&&this.data&&this.data.updatedMetadataEndpoint&&(l=l.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,l.continuation),l.timeoutMs))};
_.B.computeHasDateText=function(V){return!!V&&!!V.dateText};
_.vI.Object.defineProperties(OV.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H;return!((H=(V=this.data)==null?void 0:(l=V.videoActions)==null?void 0:(I=l.menuRenderer)==null?void 0:I.flexibleItems)==null||!H.length)}}});
OV.prototype.onYtServiceRequestCompleted=OV.prototype.onYtServiceRequestCompleted;OV.prototype.onYtServiceRequestSent=OV.prototype.onYtServiceRequestSent;OV.prototype.dataChanged=OV.prototype.dataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],OV.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.AM.YtTaskEmitterBehavior),_.a("design:type",Object)],OV.prototype,"ytTaskEmitterBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],OV.prototype,"data",void 0);_.O([_.q({computed:"computeInfoFormattedStrings(data)"}),_.a("design:type",Array)],OV.prototype,"infoFormattedStrings",void 0);
_.O([_.q({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],OV.prototype,"hasDateText",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],OV.prototype,"wrapVideoActions",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],OV.prototype,"hideSentimentBar",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],OV.prototype,"flexMenuEnabled",null);
_.O([_.Ij("#sentiment"),_.a("design:type",Object)],OV.prototype,"sentiment",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OV.prototype,"dataChanged",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],OV.prototype,"onYtServiceRequestSent",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],OV.prototype,"onYtServiceRequestCompleted",null);
_.u(OV,"ytd-video-primary-info-renderer",function(){if(TSq===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);TSq=V}V=TSq;return V},{mode:1});var $zn;var C5=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return V};
_.t(C5,_.M);_.B=C5.prototype;_.B.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"}}}};
_.B.dataChanged=function(){var V;this.descriptionToggled=!((V=this.data)==null||!V.defaultExpanded);var l;this.collapsed=this.descriptionAlwaysCollapsed||!((l=this.data)==null?0:l.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.eU(110509);this.showLessClientVe=_.eU(110510);V=_.oa();l=_.JO();V&&l&&_.ah(V,l,[this.showMoreClientVe,this.showLessClientVe])};
_.B.onYtExpanderMoreTapped=function(){var V,l=(V=this.data)==null?void 0:V.showMoreCommand;l&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(l);(V=_.oa())&&this.showMoreClientVe&&_.uJ(V,this.showMoreClientVe)};
_.B.onYtExpanderLessTapped=function(){var V=_.oa();V&&this.showLessClientVe&&_.uJ(V,this.showLessClientVe);var l;(V=(l=this.data)==null?void 0:l.showLessCommand)&&this.componentBehavior.resolveCommand(V)};
_.B.handleUpdateDateTextAction=function(V){this.data&&this.data.dateText&&this.set("data.dateText",_.y(V,_.z76).dateText)};
_.B.handleUpdateDescriptionAction=function(V){if(V=_.y(V,_.C1w))V.isEmpty||!V.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Fo(V.description)):this.set("data.description",V.description)};
_.B.onYtChangeEngagementPanelVisibilityAction=function(V){if(_.z("web_structured_description_show_more")||_.z("web_engagement_panel_open_description")){var l,I=(l=_.y(V,_.I4W))==null?void 0:l.targetId,H;V=((H=_.y(V,_.I4W))==null?void 0:H.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";I==="engagement-panel-structured-description"&&V&&(this.descriptionToggled=!0)}};
_.B.updateCollapsedFromBinding=function(V){this.collapsed=V.detail.value};
_.B.updateDescriptionToggledFromBinding=function(V){this.descriptionToggled=V.detail.value};
_.B.updateCanCollapseFromBinding=function(V){this.canCollapse=V.detail.value};
_.vI.Object.defineProperties(C5.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(V=this.data)==null?void 0:(l=V.metadataRowContainer)==null?void 0:l.metadataRowContainerRenderer;return!!I&&!!I.rows&&I.rows.length>I.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return _.z("web_inline_structured_description_load_delay")?this.hasInlineStructuredDescription&&!this.collapsed:this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
C5.prototype.onYtExpanderLessTapped=C5.prototype.onYtExpanderLessTapped;C5.prototype.onYtExpanderMoreTapped=C5.prototype.onYtExpanderMoreTapped;C5.prototype.dataChanged=C5.prototype.dataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],C5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],C5.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],C5.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],C5.prototype,"collapsed",void 0);_.O([_.q(),_.a("design:type",Boolean)],C5.prototype,"descriptionToggled",void 0);
_.O([_.q(),_.a("design:type",Boolean)],C5.prototype,"canCollapse",void 0);_.O([_.q(),_.a("design:type",Object)],C5.prototype,"subscribeButtonData",void 0);_.O([_.q(),_.a("design:type",Number)],C5.prototype,"descriptionCollapsedHeight",void 0);_.O([_.q(),_.a("design:type",Object)],C5.prototype,"structuredDescriptionContentRenderer",void 0);_.O([_.q({value:function(){return _.z("web_watch_description_always_collapsed")}}),
_.a("design:type",Boolean)],C5.prototype,"descriptionAlwaysCollapsed",void 0);_.O([_.Ij("#description"),_.a("design:type",HTMLDivElement)],C5.prototype,"description",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C5.prototype,"dataChanged",null);_.O([_.W("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C5.prototype,"onYtExpanderMoreTapped",null);
_.O([_.W("yt-expander-less-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C5.prototype,"onYtExpanderLessTapped",null);_.O([_.Q("data.metadataRowContainer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],C5.prototype,"metadataCollapsible",null);_.O([_.Q("data","structuredDescriptionContentRenderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],C5.prototype,"hasInlineStructuredDescription",null);
_.O([_.Q("data.attributedDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],C5.prototype,"hasAttributedDescription",null);_.O([_.Q("hasInlineStructuredDescription","collapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],C5.prototype,"loadStructuredDescription",null);_.O([_.Q("data","structuredDescriptionContentRenderer","collapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],C5.prototype,"showInlineStructuredDescription",null);
_.O([_.Q("data","hasInlineStructuredDescription","metadataCollapsible"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],C5.prototype,"descriptionAlwaysCollapsible",null);
_.u(C5,"ytd-video-secondary-info-renderer",function(){if($zn===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);$zn=V}V=$zn;return V},{mode:2});var dzV;var an=function(){return _.M.apply(this,arguments)||this};
_.t(an,_.M);an.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:_.z("web_modern_buttons"),forceIconButton:!_.z("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
an.prototype.activate=function(V){V.appendTo(this.player);V.getPlayerPromise().then(function(l){l.setMinimized(!0)});
this.active=!0};
an.prototype.deactivate=function(){var V=this.player.firstElementChild;V.getPlayerPromise().then(function(l){l.setMinimized(!1)});
this.active=!1;return V};
an.prototype.onScrollUpTap=function(){var V=_.F().resolve(_.pa).getCurrentPage();V&&V.setScrollTop(0)};
var f5=an;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],f5.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],f5.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],f5.prototype,"active",void 0);
_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.a("design:type",Boolean)],f5.prototype,"darkLaunch",void 0);_.O([_.Ij("#player"),_.a("design:type",HTMLDivElement)],f5.prototype,"player",void 0);f5=_.O([_.A({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],f5);
_.u(f5,"ytd-miniplayer-bar-renderer",function(){if(dzV!==void 0)return dzV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return dzV=V},{mode:1});_.MR(_.W1(function(V){var l=_.sZ();_.t0(function(){var I;if(I=JSON)I=uHM(V.data()),I=_.aO(JSON.stringify(I).replace(/</g,"\\u003C"));var H=V.data(),T=_.A5(H.title).trim().length===0,x=!H.publishDate||H.publishDate.trim().length===0,n,w,N,L,e=!((n=H.thumbnail)==null?0:(w=n.thumbnails)==null?0:w.length)||!((N=H.thumbnail)==null?0:N.thumbnails[0].url)||((L=H.thumbnail)==null?void 0:L.thumbnails[0].url.trim().length)===0;l.value&&I&&!(T||x||e)&&_.fd(l.value,I)});
return _.Y("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.Y("script",{el:l,type:"application/ld+json"}))},"vi"),"player-microformat-renderer",{props:{data:_.qR}});
}catch(e){_._DumpException(e)}
try{
var RzP,SR,Q0V,cEg,b3B,q02,Wvg,Meb;RzP=function(){var V=_.zq();V.info||(V.info={});return V.info};
SR=function(V){return Math.round(_.Gq()+V)};
Q0V=function(){var V;if(_.z("csi_use_performance_navigation_timing")||_.z("csi_use_performance_navigation_timing_tvhtml5")){var l,I,H,T=_.r6==null?void 0:(V=_.r6.getEntriesByType)==null?void 0:(l=V.call(_.r6,"navigation"))==null?void 0:(I=l[0])==null?void 0:(H=I.toJSON)==null?void 0:H.call(I);T?(T.requestStart=SR(T.requestStart),T.responseEnd=SR(T.responseEnd),T.redirectStart=SR(T.redirectStart),T.redirectEnd=SR(T.redirectEnd),T.domainLookupEnd=SR(T.domainLookupEnd),T.connectStart=SR(T.connectStart),
T.connectEnd=SR(T.connectEnd),T.responseStart=SR(T.responseStart),T.secureConnectionStart=SR(T.secureConnectionStart),T.domainLookupStart=SR(T.domainLookupStart),T.isPerformanceNavigationTiming=!0,V=T):V=_.r6.timing}else V=_.z("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.r6.timing)):_.r6.timing;return V};
cEg=function(){if(_.r6.getEntriesByType){var V=_.r6.getEntriesByType("paint");if(V=_.cy(V,function(I){return I.name==="first-paint"}))return SR(V.startTime)}var l;
_.z("csi_use_performance_navigation_timing")||_.z("csi_use_performance_navigation_timing_tvhtml5")?l=_.r6.getEntriesByType("first-paint")[0].startTime:l=_.r6.timing.msFirstPaint;return l?Math.max(0,l):0};
b3B=function(){var V=window.location.protocol,l=_.r6.getEntriesByType("resource");l=_.dl(l,function(I){return I.name.indexOf(V+"//fonts.gstatic.com/s/")===0});
(l=Wvg(l,function(I,H){return H.duration>I.duration?H:I}))&&l.startTime>0&&l.responseEnd>0&&(_.E4("wffs",SR(l.startTime)),_.E4("wffe",SR(l.responseEnd)))};
q02=function(V,l){V=document.querySelector(V);if(!V)return!1;var I="",H=V.nodeName;H==="SCRIPT"?(I=V.src,I||(I=V.getAttribute("data-timing-href"))&&(I=window.location.protocol+I)):H==="LINK"&&(I=V.href);_.vh(document)&&V.setAttribute("nonce",_.vh(document));return I?(V=_.r6.getEntriesByName(I))&&V[0]&&(V=V[0],I=_.Gq(),_.E4("rsf_"+l,I+Math.round(V.fetchStart)),_.E4("rse_"+l,I+Math.round(V.responseEnd)),V.transferSize!==void 0&&V.transferSize===0)?!0:!1:!1};
_.s0g=function(V,l){_.Zp(function(){_.tc("").info.actionType=V;l&&_.ow("TIMING_AFT_KEYS",l);_.ow("TIMING_ACTION",V);var I=_.bD1(_.h6("TIMING_INFO",{}));Object.keys(I).length>0&&_.Jc(I);I={isNavigation:!0,actionType:_.Gmf(_.h6("TIMING_ACTION"))};var H=_.h6("PREVIOUS_ACTION");H&&(I.previousAction=_.Gmf(H));if(H=_.h6("CLIENT_PROTOCOL"))I.httpProtocol=H;if(H=_.h6("CLIENT_TRANSPORT"))I.transportProtocol=H;(H=_.oa())&&H!=="UNDEFINED_CSN"&&(I.clientScreenNonce=H);H=_.Wf3();if(H===1||H===-1)I.isVisible=!0;
H=_.eDw().loadType==="cold";var T=RzP();H||(H=T.yt_lt==="cold");if(H){I.loadType="cold";H=RzP();T=Q0V();var x=_.Gq(),n=_.h6("CSI_START_TIMESTAMP_MILLIS",0);n>0&&!_.z("embeds_web_enable_csi_start_override_killswitch")&&(x=n);x&&(_.E4("srt",T.responseStart),H.prerender!==1&&_.PcW(x));H=cEg();H>0&&_.E4("fpt",H);H=Q0V();H.isPerformanceNavigationTiming&&_.Jc({performanceNavigationTiming:!0},void 0);_.E4("nreqs",H.requestStart,void 0);_.E4("nress",H.responseStart,void 0);_.E4("nrese",H.responseEnd,void 0);
H.redirectEnd-H.redirectStart>0&&(_.E4("nrs",H.redirectStart,void 0),_.E4("nre",H.redirectEnd,void 0));H.domainLookupEnd-H.domainLookupStart>0&&(_.E4("ndnss",H.domainLookupStart,void 0),_.E4("ndnse",H.domainLookupEnd,void 0));H.connectEnd-H.connectStart>0&&(_.E4("ntcps",H.connectStart,void 0),_.E4("ntcpe",H.connectEnd,void 0));H.secureConnectionStart>=_.Gq()&&H.connectEnd-H.secureConnectionStart>0&&(_.E4("nstcps",H.secureConnectionStart,void 0),_.E4("ntcpe",H.connectEnd,void 0));_.r6&&"getEntriesByType"in
_.r6&&b3B();H=[];if(document.querySelector&&_.r6&&_.r6.getEntriesByName)for(var w in Meb)Meb.hasOwnProperty(w)&&(T=Meb[w],q02(w,T)&&H.push(T));if(H.length>0)for(I.resourceInfo=[],w=_.U(H),H=w.next();!H.done;H=w.next())I.resourceInfo.push({resourceCache:H.value})}_.Jc(I);I=_.yg();I.preLoggedGelInfos||(I.preLoggedGelInfos=[]);w=I.preLoggedGelInfos;I=_.Ff1();H=void 0;for(T=0;T<w.length;T++)if(x=w[T],x.loadType){H=x.loadType;break}if(_.eDw().loadType==="cold"&&(I.loadType==="cold"||H==="cold")){H=_.kmf();
T=_.yg();T=T.gelTicks?T.gelTicks:T.gelTicks={};for(var N in H)if(!(N in T))if(typeof H[N]==="number")_.E4(N,_.oz(N));else if(_.z("log_repeated_ytcsi_ticks"))for(x=_.U(H[N]),n=x.next();!n.done;n=x.next())n=n.value,_.E4(N.slice(1),n);N={};H=!1;w=_.U(w);for(T=w.next();!T.done;T=w.next())H=T.value,_.Dh(I,H),_.Dh(N,H),H=!0;H&&_.Jc(N)}_.pJw(!0);N=_.h6("TIMING_ACTION");_.SN("ytglobal.timingready_")&&N&&_.iD3()&&_.sYc()&&_.QYt()})()};
Wvg=function(V,l){return Array.prototype.reduce.call(V,l,{duration:0})};
Meb={'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 p5P={};p5P.YtVisibilityRootBehavior=[_.CTN.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.ag(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.h6("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var V=_.h6("INNERTUBE_CLIENT_NAME")!=="WEB";_.z("kevlar_use_vimio_behavior")&&V&&_.OMa()}}];_.Rb={};_.Rb.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(V){V.detail.contextProvider=this;V.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
p5P.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.QN();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(V){var l=this;this.pageCount+=1;_.z("kevlar_use_vimio_behavior")&&(_.h6("INNERTUBE_CLIENT_NAME")==="WEB"?_.r0.addJob(function(){l.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(V)},
loadPage_:function(V){this.data=V},
ytPageBehaviorActiveObserver_:function(V){var l=this;_.z("kevlar_use_vimio_behavior")&&(V?_.h6("INNERTUBE_CLIENT_NAME")==="WEB"?_.r0.addJob(function(){l.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(V){if(!this.setScrollTopJobId_){var l=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){l.setScrollTopJobId_=0;var I=_.F().resolve(_.Cs(_.Fp));I&&_.jEZ(I);this.getPageScrollingElement().scrollTop=V}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.ZN(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Z3I;var S0P=function(){var V=_.M.apply(this,arguments)||this;V.playerListenerConfig=null;V.actionMap={"yt-show-watch-page-survey":"openSurvey"};return V};
_.t(S0P,_.M);_.B=S0P.prototype;_.B.dataChanged=function(){var V=this,l=_.u8();l&&l.getPlayerPromise().then(function(H){V.maybeRemovePlayerListeners(H)});
var I=this.data&&this.data.survey;I&&((I=(I=I.singleOptionSurveyRenderer||I.checkboxSurveyRenderer||I.multiStageSurveyRenderer)&&I.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(l,I):this.openSurvey())};
_.B.triggerWatchPageSurvey=function(V,l){var I=this,H,T,x,n,w,N,L,e,k;return _.d(function(X){if(X.nextAddress==1)return V?_.K(X,V.getPlayerPromise(),2):X.return();I.player=X.yieldResult;if(!I.player)return X.return();H={};T=_.U(l);for(x=T.next();!x.done;x=T.next())n=x.value,w=_.U(I.createEventListenerPair(n)),N=w.next().value,L=w.next().value,e=N,k=L,e&&k&&(H[e]=k,I.ytPlayerListenerBehavior.listenToPlayerEvent(I.player,e,k));I.playerListenerConfig=H;_.FU(X)})};
_.B.createEventListenerPair=function(V){var l=V.playbackEventTrigger;return l?this.handlePlaybackTrigger(l):(V=V.watchTimeTrigger)?this.handleWatchTimeTrigger(V):[void 0,void 0]};
_.B.handleWatchTimeTrigger=function(V){var l=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var I=V.videoWatchFraction,H=V.watchTimeSec;return H&&I?["onVideoProgress",function(){l.player&&l.isWatchTimeConditionMet(l.player,I,H)&&l.showSurvey()}]:[void 0,
void 0]};
_.B.isWatchTimeConditionMet=function(V,l,I){var H=V.getProgressState(),T=H.current-this.lastKnownPlaybackPosition;T<5&&(this.accumulatedMediaTime+=T);this.lastKnownPlaybackPosition=H.current;H=Math.round(this.accumulatedMediaTime/H.duration*1E3)/1E3;return V.getPresentingPlayerType&&V.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>I||H>l)};
_.B.handlePlaybackTrigger=function(V){var l=this;V=V.playbackEvent;if(V==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var I="onStateChange";var H=function(T){T===0&&l.showSurvey()}}else V==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(I="onVideoProgress",H=function(T){l.player&&l.player.getPresentingPlayerType&&l.player.getPresentingPlayerType()===1&&T&&l.showSurvey()}):V==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(I="onAdEnd",H=this.showSurvey);
return[I,H]};
_.B.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.B.openSurvey=function(){var V=this,l=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.VXh(!!l));_.r0.addJob(function(){V.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:l}})},0,0)};
_.B.maybeRemovePlayerListeners=function(V){if(this.playerListenerConfig){for(var l=_.U(Object.keys(this.playerListenerConfig)),I=l.next();!I.done;I=l.next())I=I.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(V,I,this.playerListenerConfig[I]);this.playerListenerConfig=null}};
var ZG=S0P;ZG.prototype.dataChanged=ZG.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],ZG.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],ZG.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ZG.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],ZG.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ZG.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],ZG.prototype,"playerListenerConfig",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],ZG.prototype,"lastKnownPlaybackPosition",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],ZG.prototype,"accumulatedMediaTime",void 0);_.O([_.q(),_.a("design:type",Object)],ZG.prototype,"player",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZG.prototype,"dataChanged",null);ZG=_.O([_.A({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],ZG);
_.u(ZG,"ytd-survey-trigger-renderer",function(){if(Z3I!==void 0)return Z3I;var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Z3I=V},{mode:1});
}catch(e){_._DumpException(e)}
try{
var dEn=new _.f("promotedSparklesWebRenderer");var wYh=new _.f("relatedChipCommand");var Ngq;var KV5;var jux=function(){return _.M.apply(this,arguments)||this};
_.t(jux,_.M);jux.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var tW=jux;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tW.prototype,"data",void 0);tW=_.O([_.A({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],tW);
_.u(tW,"ytd-compact-tvfilm-entry-point-renderer",function(){if(KV5!==void 0)return KV5;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return KV5=V},{mode:1});var YPM;var LVj;var eBd;var rH=function(){return _.M.apply(this,arguments)||this};
_.t(rH,_.M);rH.prototype.ready=function(){this.initializeDefs()};
rH.prototype.initializeDefs=function(){var V=this.meta.byKey("yt-icons"),l=_.h(V).querySelector("#star"),I=_.h(V).querySelector("#star_half");V=_.h(V).querySelector("#star_border");l&&this.defs.appendChild(l.cloneNode(!0));I&&this.defs.appendChild(I.cloneNode(!0));V&&this.defs.appendChild(V.cloneNode(!0))};
rH.prototype.percentChanged=function(){for(var V=this.rating;V.firstChild;)V.removeChild(V.firstChild);var l=Math.round(this.percent/10);V=Math.floor(l/2);l%=2;var I=5-V-l;this.appendStars("star",V,0);this.appendStars("star_half",l,V);this.appendStars("star_border",I,V+l)};
rH.prototype.appendStars=function(V,l,I){for(var H=0;H<l;H++){var T=(18+this.spacing)*(H+I),x=document.createElementNS("http://www.w3.org/2000/svg","use");_.lhg(x,"#"+V);x.setAttribute("x",""+T);x.setAttribute("y","0");this.rating.appendChild(x)}};
var Gy=rH;Gy.prototype.percentChanged=Gy.prototype.percentChanged;_.O([_.Ij("#defs"),_.a("design:type",HTMLElement)],Gy.prototype,"defs",void 0);_.O([_.Ij("#rating"),_.a("design:type",HTMLElement)],Gy.prototype,"rating",void 0);_.O([_.q(),_.a("design:type",Number)],Gy.prototype,"percent",void 0);_.O([_.q({value:6}),_.a("design:type",Number)],Gy.prototype,"spacing",void 0);_.O([_.q({value:_.tz.create("iron-meta",{type:"iconset"})}),_.a("design:type",_.Jw)],Gy.prototype,"meta",void 0);
_.O([_.b("percent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gy.prototype,"percentChanged",null);Gy=_.O([_.A({disableElementRegistration:!0,is:"ytd-ratings"})],Gy);
_.u(Gy,"ytd-ratings",function(){if(eBd!==void 0)return eBd;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return eBd=V},{mode:1});var k2q=function(){return _.M.apply(this,arguments)||this};
_.t(k2q,_.M);var FV6=k2q;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],FV6.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],FV6.prototype,"data",void 0);FV6=_.O([_.A({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],FV6);
_.u(FV6,"ytd-offer-review-renderer",function(){if(LVj!==void 0)return LVj;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return LVj=V},{mode:1});var XYj=function(){var V=_.M.apply(this,arguments)||this;V.badges=[{textBadge:{label:_.pW("CC")}}];return V};
_.t(XYj,_.M);_.B=XYj.prototype;_.B.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.B.dataChanged=function(){var V=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(V&&V.commandMetadata&&_.y(V.commandMetadata,_.Jr)&&_.y(V.commandMetadata,_.Jr).fireAutomatically)_.F().resolve(_.aw).resolveCommand(V,{form:{element:this.hostElement}});else{var l;V&&((l=_.y(V,_.Jr))==null?0:l.fireAutomatically)&&_.F().resolve(_.aw).resolveCommand(V,{form:{element:this.hostElement}})}};
_.B.isEmptyContent=function(V){return this.isStorefrontEntryPointEmpty(V)&&this.shouldHideOfferModule(V)};
_.B.isStorefrontEntryPointEmpty=function(V){return!V||!V.storefrontEntryPoint};
_.B.shouldHideOfferModule=function(V){return!!V.hideVideoDetails};
_.B.isOfferModuleNavigationInactive=function(V){return!V.navigationEndpoint&&!V.serviceEndpoint};
_.B.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.F().resolve(_.aw).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
var EG=XYj;EG.prototype.dataChanged=EG.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],EG.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.a("design:type",Boolean)],EG.prototype,"hidden",void 0);
_.O([_.q(),_.a("design:type",Object)],EG.prototype,"badges",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EG.prototype,"dataChanged",null);EG=_.O([_.A({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],EG);
_.u(EG,"ytd-movie-offer-module-renderer",function(){if(YPM!==void 0)return YPM;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return YPM=V},{mode:1});var zBd;var yIp=function(){return _.M.apply(this,arguments)||this};
_.t(yIp,_.M);var tbh=yIp;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],tbh.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tbh.prototype,"data",void 0);tbh=_.O([_.A({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],tbh);
_.u(tbh,"ytd-media-masthead-renderer",function(){if(zBd!==void 0)return zBd;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return zBd=V},{mode:1});var rIC;_.MR(_.L3E,"course-metadata-view-model",{props:{data:_.qR,isOverlay:_.qR}});var G2C=function(){var V=_.M.apply(this,arguments)||this;V.isMetadataVisible=!1;V.modernPanels=_.z("kevlar_watch_modern_panels");V.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return V};
_.t(G2C,_.M);_.B=G2C.prototype;
_.B.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"}}}}};
_.B.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.B.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.B.expanderChanged=function(){var V;if((V=this.data)==null?0:V.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.B.isExpandButtonToggled=function(){var V,l;return(l=_.y((V=this.data)==null?void 0:V.expandMetadataButton,_.EB))==null?void 0:l.isToggled};
_.B.onVisibilityButtonClick=function(){var V;if((V=this.data)==null?0:V.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.B.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
var JW=G2C;JW.prototype.expanderChanged=JW.prototype.expanderChanged;JW.prototype.dataChanged=JW.prototype.dataChanged;JW.prototype.descriptionChanged=JW.prototype.descriptionChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R([_.aU.YtActionHandlerBehavior]),_.a("design:type",Object)],JW.prototype,"actionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],JW.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],JW.prototype,"isMetadataVisible",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],JW.prototype,"modernPanels",void 0);_.O([_.Ij("#expander"),_.a("design:type",Object)],JW.prototype,"expander",void 0);
_.O([_.b("data.description"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JW.prototype,"descriptionChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JW.prototype,"dataChanged",null);_.O([_.b("isMetadataVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JW.prototype,"expanderChanged",null);
JW=_.O([_.A({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],JW);
_.u(JW,"ytd-tvfilm-offer-module-renderer",function(){if(rIC!==void 0)return rIC;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return rIC=V},{mode:2});var EhM;var o4=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return V};
_.t(o4,_.M);o4.prototype.dataChanged=function(){this.hostElement.hidden=!1};
o4.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
o4.prototype.onThumbnailTap=function(V){this.data&&this.data.serviceEndpoint&&(_.z("web_ytd_unlimited_offer_module_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.serviceEndpoint]):_.F().resolve(_.aw).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),V.stopPropagation())};
o4.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
var hW=o4;hW.prototype.dataChanged=hW.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],hW.prototype,"rendererBehaviors",void 0);_.O([_.R([_.aU.YtActionHandlerBehavior]),_.a("design:type",Object)],hW.prototype,"actionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],hW.prototype,"data",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hW.prototype,"dataChanged",null);hW=_.O([_.A({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],hW);
_.u(hW,"ytd-unlimited-offer-module-renderer",function(){if(EhM!==void 0)return EhM;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return EhM=V},{mode:1});var JIf;var ohf;var hBx=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return V};
_.t(hBx,_.M);hBx.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
hBx.prototype.handleRelatedChipCommand=function(V){V=_.y(V,wYh);var l=V.contents;l?_.U4(this.hostElement,"yt-item-section-replace-action",[l,V.targetSectionIdentifier]):_.U4(this.hostElement,"yt-item-section-continuation-action",[V.continuationData,V.targetSectionIdentifier])};
var PW=hBx;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],PW.prototype,"actionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],PW.prototype,"data",void 0);PW=_.O([_.Lm({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],PW);
_.u(PW,"yt-related-chip-cloud-renderer",function(){if(ohf===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;JIf===void 0&&(JIf=document.createElement("template"));var H=JIf;I.call(l,H.content.cloneNode(!0),V.content.firstChild);ohf=V}V=ohf;return V},{mode:2});var Dy=function(){var V=_.M.apply(this,arguments)||this;V.isTwoColumns=!0;V.hideOfferModules=!1;V.watchFeedBigThumbs=_.z("kevlar_watch_feed_big_thumbs");V.watchNextGridHideChips=_.z("kevlar_watch_grid_hide_chips");V.eligibleToSwitchToGrid=_.z("web_watch_eligible_to_switch_to_grid");V.disableShortsShelfHeightOverride=_.z("web_shorts_wn_shelf_ratio_tuning");V.isWatchNextGrid=!1;V.reuseComponents=!_.z("kevlar_watch_grid");V.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return V};
_.t(Dy,_.M);_.B=Dy.prototype;
_.B.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:!_.z("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}}};
_.B.getItemsPath=function(){return"data.results"};
_.B.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.B.created=function(){this.ytLazyListBehavior.initialCount=1};
_.B.ready=function(){_.i3(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%"})};
_.B.resultsChanged=function(){if(this.data&&this.data.results){for(var V=this.data.results,l=null,I=null,H=0;H<V.length;H++)V[H].relatedChipCloudRenderer?l=V[H].relatedChipCloudRenderer:V[H].itemSectionRenderer&&(I=V[H].itemSectionRenderer);if(l&&I)for(this.set("data.continuations",[]),V=_.y(l.content,_.qdi).chips,l=0;l<V.length;l++)if(H=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",V[l]),H.loadCached||!H.contents){H.contents=I.contents;break}}};
_.B.dataChanged=function(){var V=this,l;if((l=this.data)!=null&&l.results&&this.hasAllowedInstreamAd(this.playerData)){if(l=this.data.results.filter(function(w){return!!w.promotedSparklesWebRenderer})){for(var I=0;I<l.length;I++){var H=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",l[I]);
if(H)for(var T=0;T<H.length;T++)H[T]&&H[T].baseUrl&&_.RS(H[T].baseUrl)}this.set("data.results",this.data.results.filter(function(w){return!w.promotedSparklesWebRenderer}))}if(l=this.data.results.filter(function(w){return!!V.getSparklesAd(w)})){l=_.U(l);
for(T=l.next();!T.done;T=l.next())if(H=I=void 0,T=(I=this.getSparklesAd(T.value))==null?void 0:(H=I.errorCommand)==null?void 0:H.loggingUrls)for(I=_.U(T),H=I.next();!H.done;H=I.next())(H=H.value)&&H.baseUrl&&_.RS(H.baseUrl);var x,n;this.set("data.results",(x=this.data)==null?void 0:(n=x.results)==null?void 0:n.filter(function(w){return!w.adSlotRenderer}))}}};
_.B.getSparklesAd=function(V){var l,I;V=_.y((l=V.adSlotRenderer)==null?void 0:(I=l.fulfillmentContent)==null?void 0:I.fulfilledLayout,_.dIZ);return _.y(V==null?void 0:V.renderingContent,dEn)};
_.B.hasAllowedInstreamAd=function(V){V=this.get("adPlacements",V)||[];for(var l=0;l<V.length;l++){var I=this.get("adPlacementRenderer.config.adPlacementConfig",V[l]);if(I&&I.suppressDisplayAd)return!0}return!1};
_.B.computeHideUnlimitedOfferModule=function(V,l){return V&&V.offerModule&&l&&V.offerModule.unlimitedOfferModuleRenderer&&V.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(l)?!0:!1};
_.B.hideUnlimitedOfferModuleChanged=function(){var V=_.h(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");V&&(V.hidden=this.hideUnlimitedOfferModule)};
_.B.updateLockupContainerTypes=function(V){if(this.eligibleToSwitchToGrid){var l;(l=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||l.forEach(function(I){I.containerType=V})}};
_.B.computeHideTvfilmOfferModule=function(V,l){var I,H;return!!((V==null?0:(I=V.offerModule)==null?0:(H=I.tvfilmOfferModuleRenderer)==null?0:H.clientShouldSuppressIfCompanionAdDisplayed)&&l&&this.hasCompanionAds(l))};
_.B.hideTvfilmOfferModuleChanged=function(){var V=_.h(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");V&&(V.hidden=this.hideTvfilmOfferModule)};
_.B.hasCompanionAds=function(V){V=this.get("adPlacements",V)||[];for(var l=0;l<V.length;l++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",V[l]))return!0;var I=void 0,H=void 0,T=void 0;if(!_.z("web_watch_top_banner_companion_check_killswitch")&&((I=V[l])==null?0:(H=I.adPlacementRenderer)==null?0:(T=H.renderer)==null?0:T.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.B.hasSuppressedResults=function(V){return V==null?!0:V.filter(function(l){return!l.continuationItemRenderer&&!l.compactPromotedVideoRenderer&&!l.promotedSparklesWebRenderer}).length===0};
_.B.computeShowButton=function(V,l){return this.isWatchNextGrid?V:V||this.hasSuppressedResults(l)};
_.B.showButtonChanged=function(){if(this.isWatchNextGrid){var V=_.h(this.hostElement).querySelector("ytd-rich-grid-renderer");V&&this.showButton!==null&&(V.continuationShowButton=this.showButton)}else{V=_.h(this.hostElement).querySelector("yt-next-continuation");var l=_.h(this.hostElement).querySelector("ytd-continuation-item-renderer"),I=_.h(this.hostElement).querySelector("ytd-item-section-renderer");V&&(V.showButton=this.showButton);l&&(l.showButton=this.showButton);I&&(I.continuationShowButton=
this.showButton)}};
_.B.continuationTap=function(V){var l;if(((l=this.data)==null?void 0:l.continuations)!=null&&V.target.tagName==="TP-YT-PAPER-BUTTON")for(V=this.data.continuations,l=0;l<V.length;l++)V[l].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(V[l].nextContinuationData||{})};
_.B.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("shown-items-changed",this.shownItems))};
_.vI.Object.defineProperties(Dy.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 V;return!((V=this.shownItems)==null||!V.some(function(l){return!!l.lockupViewModel}))}}});
Dy.prototype.shownItemsChangedForBinding=Dy.prototype.shownItemsChangedForBinding;Dy.prototype.showButtonChanged=Dy.prototype.showButtonChanged;Dy.prototype.hideTvfilmOfferModuleChanged=Dy.prototype.hideTvfilmOfferModuleChanged;Dy.prototype.updateLockupContainerTypes=Dy.prototype.updateLockupContainerTypes;Dy.prototype.hideUnlimitedOfferModuleChanged=Dy.prototype.hideUnlimitedOfferModuleChanged;Dy.prototype.dataChanged=Dy.prototype.dataChanged;Dy.prototype.resultsChanged=Dy.prototype.resultsChanged;
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.lL.YtLazyListBehavior),_.a("design:type",Object)],Dy.prototype,"ytLazyListBehavior",void 0);_.O([_.R(_.Vi.YtNextContinuationBehavior),_.a("design:type",Object)],Dy.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.R(_.i6),_.a("design:type",Object)],Dy.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Dy.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Dy.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Dy.prototype,"playerData",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],Dy.prototype,"autoFill",void 0);_.O([_.q({value:60}),_.a("design:type",Number)],Dy.prototype,"targetFramerate",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Dy.prototype,"isTwoColumns",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Dy.prototype,"hideOfferModules",void 0);_.O([_.q(),_.a("design:type",Object)],Dy.prototype,"shownItems",void 0);_.O([_.q({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.a("design:type",Boolean)],Dy.prototype,"hideUnlimitedOfferModule",void 0);
_.O([_.q({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.a("design:type",Boolean)],Dy.prototype,"hideTvfilmOfferModule",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Dy.prototype,"watchFeedBigThumbs",void 0);_.O([_.q(),_.a("design:type",Object)],Dy.prototype,"watchNextGridHideChips",void 0);_.O([_.q(),_.a("design:type",Object)],Dy.prototype,"eligibleToSwitchToGrid",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Dy.prototype,"disableShortsShelfHeightOverride",void 0);_.O([_.q({selector:_.SM}),_.a("design:type",Object)],Dy.prototype,"isGridViewEnabled",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Dy.prototype,"showMoreButton",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Dy.prototype,"isWatchNextGrid",void 0);
_.O([_.q({computed:"computeShowButton(showMoreButton, data.results)"}),_.a("design:type",Boolean)],Dy.prototype,"showButton",void 0);_.O([_.xs("data.results.*"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dy.prototype,"resultsChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dy.prototype,"dataChanged",null);
_.O([_.b("hideUnlimitedOfferModule"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dy.prototype,"hideUnlimitedOfferModuleChanged",null);_.O([_.Q("isGridViewEnabled","containsLockupViewModel","data"),_.q({reflectToAttribute:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],Dy.prototype,"lockupContainerType",null);
_.O([_.b("lockupContainerType","data"),_.a("design:type",Function),_.a("design:paramtypes",[Number]),_.a("design:returntype")],Dy.prototype,"updateLockupContainerTypes",null);_.O([_.b("hideTvfilmOfferModule"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dy.prototype,"hideTvfilmOfferModuleChanged",null);_.O([_.b("showButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dy.prototype,"showButtonChanged",null);
_.O([_.b("shownItems"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dy.prototype,"shownItemsChangedForBinding",null);_.O([_.Q("shownItems"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dy.prototype,"containsLockupViewModel",null);
_.u(Dy,"ytd-watch-next-secondary-results-renderer",function(){if(Ngq===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);Ngq=V}V=Ngq;return V},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.wUM={};
_.wUM.YtdWatchBehavior=[_.m.YtRendererBehavior,_.AN.YtPlayerListenerBehavior,_.Cb.YtRendererstamperBehavior,_.aU.YtActionHandlerBehavior,_.Rb.YtPageBehavior,_.Uf.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 _.PO("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.z("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 _.PO("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 _.z("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.z("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 _.g7("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.g7("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!_.z("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.z("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 _.z("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.z("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("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 _.z("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.z("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.z("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("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 _.z("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("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 _.z("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 V={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:_.hk(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.hk(["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"||_.z("swa_prov_panels_ks")?_.z("web_watch_inject_placeholder_panels")?V.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.z("kevlar_use_engagement_panel_management_component")||
(V["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(V.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},V.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return V},
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 V=this;this.watchController=void 0;this.pageDisposeJobs=[function(){V.showMetadataPlaceholder_()},
function(){_.z("web_watch_dont_clear_comments")||V.clearComments_()},
function(){V.clearPlayerAds_()},
function(){V.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;_.z("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.z("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.aUM(function(){return _.AU(V)},this.hostElement);
this.pageDisposeJobs.push(function(){V.youThereManager_.reset()});
_.z("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){V.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.$Y;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;_.z("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.z("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));_.z("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.VP(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(V){V&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:V}),V.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(V){_.z("kevlar_watch_flexy_theater_manager")&&(this.theater=V,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(V){!_.z("kevlar_watch_while_v2")&&!_.z("web_watch_pip")||V||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(V){this.active!==void 0&&(this.fullscreen=V,_.z("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(V){this.active!==void 0&&(_.B$(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.z("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(V>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(V){this.initCsi_();this.updatePageData_(V)},
updatePageData_:function(V){var l=this;if(V)if(this.data===V){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||_.qM(I,this.data)}else this.data=V;this.playlist&&_.P$({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Z8("nw");this.loading=!1;_.et(_.r0,function(){l.initDclkstatus_();var H,T=((H=l.player)==null?void 0:H.getVideoData().cpn)||"";_.ZCq(function(x,n){_.Bjb(x,n,T)})})},
onPageLoadWithSameData_:function(){_.z("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 V=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!V);this.set("loadingData.playlistLoading",V&&V!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),V=this.watchNextSkeletonEl_.firstElementChild;V;)V.classList.remove("hidden"),V=V.nextElementSibling;if(_.z("kevlar_watch_frame0_loading_state")){var l,I,H;V=(l=this.loadingData)==null?void 0:(I=l.endpoint)==null?void 0:(H=I.watchEndpoint)==null?void 0:H.videoId;var T;V&&(T="https://i.ytimg.com/vi/"+V+"/frame0.jpg");_.h(this.hostElement).querySelector("#player").style.backgroundImage=T?"url("+T+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var V=_.h(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&V&&(V.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var l,I;(I=(l=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(l);var H,T;(T=(H=this.watchMetadata).resize)==null||T.call(H)}_.z("kevlar_watch_frame0_loading_state")&&(_.h(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(V){var l=_.h(this.hostElement).querySelector(V);l?_.lJ(l,!1):_.hF(new _.Yd("Overscroll monitor not found for component: ",V))},
removeSplitScrollMouseTrap:function(V){var l=_.h(this.hostElement).querySelector(V);l?_.Iz(l):_.hF(new _.Yd("Disposal component for  overscroll monitoring not found: ",V))},
onLoadingChanged_:function(V){V?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(V){var l=this;V?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.r0.addLowPriorityJob(function(){l.onWindowResized_(_.jD(!0))})},
updateTheaterModeState_:function(V){if(!_.z("kevlar_watch_flexy_theater_manager")){V=V||this.fullWindowMode_;if(this.theater!==void 0||V)this.theater=V;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();V&&_.ZQd()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var V=this.theater;_.z("external_fullscreen")&&this.fullscreen&&(V=!0);V=V?_.h(this.hostElement).querySelector("#player-full-bleed-container"):_.h(this.hostElement).querySelector("#player-container-inner");var l=this.getPlayerContainer(),I=_.z("kevlar_watch_while_v2")||_.z("web_watch_pip");l.parentElement!==V&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.AU(this).appendTo(V,l),V.appendChild(_.h(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var V=this;return _.d(function(l){if(l.nextAddress==1)return _.K(l,_.F().resolve(_.sH).deactivate(),2);V.updatePlayerLocation();_.FU(l)})},
updateCinematicsLocation:function(){var V=this.getElement("CINEMATICS");if(V){var l=this.getCinematicsLocationContainer();V.parentElement!==l&&l.appendChild(V);var I;(I=this.watchController)==null||_.ozM(I)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.h(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.h(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(V,l){var I=document.documentElement.hasAttribute("dark"),H=I&&_.z("web_cinematic_theater_mode"),T=I&&_.z("web_cinematic_fullscreen");I=!I&&this.cinematicLightTheme;return V&&H||l&&T||(l||V)&&I},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var V=this,l;(l=this.watchController)==null||_.qM(l,this.data);_.z("kevlar_watch_flexy_comments_manager")||this.initComments_();_.z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.F().resolve(_.cV).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,_.z("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.r0.addLowPriorityJob(function(){_.U4(V.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.z("web_watch_start_chat_in_theater_mode")){var I,H,T;if((I=this.data)==null?0:(H=I.contents)==null?0:(T=H.twoColumnWatchNextResults)==null?0:T.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var x,n;((x=this.data)==null?0:(n=x.contents)==null?0:n.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(V){var l;(l=this.watchController)==null||_.br(l,this.playerData);V&&V.playabilityStatus&&(l=this.isVideoPlayable_(V.playabilityStatus,this.getPlayerOverlays_(this.data)),V=this.isLiveStreamOffline_(V.playabilityStatus),l&&!V||_.Al(this,function(){_.Z8("pbu")}));
this.setPlayerAds_();_.U4(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(V,l){if((_.z("kevlar_watch_while_v2")||_.z("web_watch_pip"))&&this.playerData&&l)return this.playerData.videoDetails},
watchPageActiveChanged_:function(V){_.v4().dispatch(_.bd5(this.active));V?this.activate_():this.deactivate_()},
attached:function(){var V=this;this.watchController=new _.Wc(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.br(this.watchController,this.playerData);this.data&&_.qM(this.watchController,this.data);_.z("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var l=_.AU(this);_.z("kevlar_disable_prepare_player")||l.preparePlayer();
_.z("kevlar_watch_flexy_playlist_manager")||_.F().resolve(_.cV).setPlayer(l);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();l={"--ytd-watch-flexy-scrollbar-width":_.GW()+"px"};this.is==="ytd-watch-grid"&&(l["--ytd-watch-flexy-sidebar-width"]=_.Mg+"px",l["--ytd-watch-flexy-sidebar-min-width"]=_.g7("kevlar_watch_grid_sidebar_min_width",300)+"px",l["--ytd-watch-grid-horizontal-page-margins"]=_.bq+"px",l["--ytd-watch-grid-columns-top-margins"]=_.oEV+"px",l["--ytd-watch-grid-min-player-height-medium"]=
"360px");!_.g7("kv_pl_mx_sz_ks")&&_.g7("kevlar_watch_max_player_width")&&(l["--ytd-watch-flexy-max-player-width-wide-screen"]=_.R76+"px");_.g7("kevlar_watch_flexy_metadata_height")&&(l["--ytd-watch-flexy-space-below-player"]=_.QIx+"px");this.safeUpdateStyles(l);_.z("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.FFV(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return V.onPlayerTouchPanDown_()}}));
_.z("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.h(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var V=_.GW(),l=_.qg+V,I=l;this.fixedPanels&&(l+=_.Mg);var H=657+V;V=1327+V;_.h(this.hostElement).querySelector("#two-column-query").query="(min-width: "+l+"px)";_.h(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(H+"px), (min-height: 630px) and (min-width: ")+(l+"px) and (max-width: ")+(V+"px)");_.h(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(V+"px)");_.h(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+I+"px)"},
calculateCurrentPlayerSize_:function(){var V=_.h(this.hostElement).querySelector("#miniplayer-bar").firstChild;return V&&V.active||this.theater||_.z("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.Yp(NaN,NaN):_.qwd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.qwd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ag(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var V=this;this.onWindowResized_(_.jD());_.z("browse_skeleton_removal_on_watch_killswitch")||_.PO("IS_SHELL_LOAD")&&_.DGV();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var l=_.AU(this);l.addEventListener("yt-player-updated",_.VP(this,this.onPlayerUpdated_));l.getPlayerPromise().then(function(I){V.playerApiReady_(I)});
_.z("kevlar_watch_flexy_playlist_manager")||(l=_.F().resolve(_.cV),_.z("kevlar_watch_observe_playlist_navigations_killswitch")&&l.addEventListener("yt-navigate",_.VP(this,this.onYtNavigate_)),l.setPlaylistComponent(_.h(this.hostElement).querySelector("#playlist")),l.addEventListener("yt-playlist-data-updated",_.VP(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.r0.addLowPriorityJob(function(){_.B$(V.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.AU(this).removeEventListener("yt-player-updated",_.VP(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.z("kevlar_watch_flexy_playlist_manager")){var V=_.F().resolve(_.cV);_.z("kevlar_watch_observe_playlist_navigations_killswitch")&&V.removeEventListener("yt-navigate",_.VP(this,this.onYtNavigate_));
V.cancelVideoSkip();V.removeEventListener("yt-playlist-data-updated",_.VP(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.B$(this.hostElement,"yt-autonav-pause-player",!1);V=_.iK();_.z("kevlar_exit_fullscreen_leaving_watch")&&V&&_.Vg(V)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(V){this.player&&this.player.updateVideoData({rvs:V.rvs})},
getPageContents:function(V){return V&&V.contents&&V.contents.twoColumnWatchNextResults&&V.contents.twoColumnWatchNextResults.results&&V.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(V){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",V)},
onRetrieveLocation_:function(V,l){l.hasComments?l.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):l.locationRetrieved("/related_ajax",void 0);V.stopPropagation()},
onSubscriptionChanged_:function(V,l){this.player&&(l?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.s0g("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.h(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.h(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(V){this.player=V;this.setPlayerState(V.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.z("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.z("kevlar_unified_player")||_.z("kevlar_player_new_bootstrap_adoption"))&&_.ie()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(V,l){l=l===void 0?!0:l;_.iK()&&_.z("external_fullscreen")&&_.Vg(document.documentElement);this.theaterRequested_=V;l&&_.wm("wide",V?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.xB(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.B$(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(V){_.PF(V,typeof this.player),this.player&&_.PF(V,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var V;((V=this.player)==null?0:V.isFullscreen())?this.player.toggleFullscreen():_.xB(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(V,l){return this.loading?l:!!Object.keys(V).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(V){if(V){V=_.U(V);for(var l=V.next();!l.done;l=V.next())l=l.value,l.youThereRenderer&&_.mKM(this.youThereManager_,l.youThereRenderer)}},
setPlaylistData_:function(V){return V||{}},
userEngagementConfigDataChanged_:function(V){if(V)if(V.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var l=this.youThereManager_;_.f0()<V.lowEngagementThresholdMs||_.Ihx(l,!0)}else V.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.xB(this.hostElement,"yt-autonav-pause-user-engagement",[V])},
isPlayerUnavailable_:function(V,l,I){return!!V&&!this.isVideoPlayable_(V,I)&&!l},
getPlayerOverlays_:function(V){return(V==null?void 0:V.playerOverlays)||null},
isVideoPlayable_:function(V,l){if(!V)return!1;var I=V.status==="OK"||V.status==="LIVE_STREAM_OFFLINE",H=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",V)||this.get("errorScreen.ypcTrailerRenderer",V);V=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",V);var T;l=l==null?void 0:(T=l.playerOverlayRenderer)==null?void 0:T.gatedActionsOverlayRenderer;return!!I||!!H||!!V||!!l},
hasWatchNextResponseErrorRenderer:function(V){var l=this.getPageContents(V),I,H,T,x,n;return!(V==null?0:(I=V.contents)==null?0:(H=I.twoColumnWatchNextResults)==null?0:H.secondaryResults)&&!!((T=l[0])==null?0:(x=T.itemSectionRenderer)==null?0:(n=x.contents[0])==null?0:n.backgroundPromoRenderer)},
isLiveStreamOffline_:function(V){return V?V.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(V,l,I){var H=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",l),T=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];T=_.z("web_no_skip_video_on_verification_checks")?(V==null?void 0:V.status)&&T.includes(V.status):V&&V.status==="AGE_CHECK_REQUIRED";var x=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",V);x==void 0&&(x=!0);!I||this.isVideoPlayable_(V,this.getPlayerOverlays_(l))||
H||T||!x||_.F().resolve(_.cV).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.sXq()},
onPlayerFeedbackStartRequest_:function(V){_.xB(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:V}])},
onPlayerFeedbackArticleRequest_:function(V){_.xB(this.hostElement,"yt-help-dialog-requested",[V])},
onPlayerYpcContentRequest_:function(){var V,l,I,H,T,x,n,w,N=((V=this.data)==null?NaN:(l=V.contents)==null?NaN:(I=l.twoColumnWatchNextResults)==null?NaN:(H=I.secondaryResults)==null?NaN:(T=H.secondaryResults)==null?NaN:(x=T.offerModule)==null?NaN:(n=x.tvfilmOfferModuleRenderer)==null?NaN:(w=n.actionButtons)==null?NaN:w.length)-1;V=[".offerButton.buttonRenderer.",".actionButtons."+(N>=0?N:0)+".buttonRenderer."];l=_.U(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=l.next();!I.done;I=l.next())for(I=I.value,H=_.U(V),T=H.next();!T.done;T=H.next())if(T="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+T.value,T=this.get(T+"navigationEndpoint",this.data)||this.get(T+"serviceEndpoint",this.data)||this.get(T+"command",this.data)){_.IN(T,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(V){_.B$(this.hostElement,"yt-autonav-pause-player",V)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(V){V()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(V){switch(V){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(V){switch(V){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.B$(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(V)},
setPlayerState:function(V){_.v4().dispatch(_.BMw(V))},
onPlayerSubscribe_:function(V){_.xB(this.hostElement,"yt-player-subscribe",[V])},
onPlayerUnsubscribe_:function(V){_.xB(this.hostElement,"yt-player-unsubscribe",[V])},
onPlayerAdYtShowToast_:function(V){_.xB(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:V.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(V){if(V)return V},
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(V){return!_.z("web_watch_move_summary_to_sd")&&!!V},
computeWatchMetadataRefresh:function(){return _.z("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.z("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var V,l,I,H;this.watchNextSecondaryResults=(V=this.data)==null?void 0:(l=V.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(H=I.secondaryResults)==null?void 0:H.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.z("swatcheroo_pbs_load_grid")&&!_.z("swatcheroo_provide_all_data_on_scheduled_job")){_.r0.cancelJob(this.setRichGridJobId_);var V,l,I,H,T,x,n;this.setRichGridRendererData((V=this.data)==null?void 0:(l=V.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(H=I.secondaryResults)==null?void 0:(T=H.secondaryResults)==null?void 0:(x=T.results)==null?void 0:(n=x[0])==null?
void 0:n.richGridRenderer)}},
setRichGridRendererData:function(V){this.richGridRendererData=V},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var V,l=(V=this.data)==null?void 0:V.engagementPanels;if(l==null?0:l.length){V=null;l=_.U(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var H=void 0;if(((H=I.engagementPanelSectionListRenderer)==null?void 0:H.targetId)==="engagement-panel-structured-description"){V=I;break}}var T,x,n;V=(T=V)==null?void 0:(x=T.engagementPanelSectionListRenderer)==null?void 0:(n=x.content)==null?void 0:n.structuredDescriptionContentRenderer;if(V==null?0:V.items){T=
[];x=_.U(V.items);for(n=x.next();!n.done;n=x.next()){n=n.value;if(!_.z("sd_horizontal_list_show_nav_killswitch")){var w=H=I=l=V=void 0,N=void 0,L=(V=n.horizontalCardListRenderer)==null?void 0:(l=V.header)==null?void 0:(I=l.richListHeaderRenderer)==null?void 0:(H=I.navigationButton)==null?void 0:(w=H.buttonRenderer)==null?void 0:(N=w.command)==null?void 0:N.commandExecutorCommand;L&&L.commands&&(L.commands=L.commands.filter(function(e){return!_.y(e,_.vnM)}))}n.expandableVideoDescriptionBodyRenderer||
n.videoDescriptionHeaderRenderer||T.push(n)}return{items:T}}}},
constructWarning_:function(V){return{text:_.pW(V),type:"WARNING"}},
isPlaShelfEnabled_:function(V){if((this.get("adPlacements",V)||[]).length)return!0;V=this.get("playerAds",V)||[];return!(!V.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",V[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var V=this;_.B$(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var l=this.getScrollTop()>0;this.gestures_&&(l?this.gestures_.detach():this.gestures_.attach());l!==this.showFullerscreenEdu_&&_.z("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=l,_.AU(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(V.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.B$(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var V=this;this.commentsReady=!1;_.r0.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.et(_.r0,function(){V.setComments_()},1E3)},
setComments_:function(){if(!_.z("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Z8("cmi");_.r0.cancelJob(this.setCommentsJobId_);var V=this.getPageContents(this.data);if(V&&V.length){V=_.U(V);for(var l=V.next();!l.done;l=V.next())if(l=l.value,this.get("itemSectionRenderer.sectionIdentifier",l)==="comment-item-section"){this.comments=l.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.B$(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.z("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Z8("cmc")},
doRemoveComments_:function(){this.comments={};_.z("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.r0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.r0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(V,l){var I=_.y(l.endpoint,_.vU);I&&(!(l=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==l.videoId||I.playlistId&&I.playlistId!==l.playlistId||_.z("kevlar_watch_timestamp_seek_playlist_index_comparison")&&I.index!==void 0&&I.index!==l.index||typeof I.startTimeSeconds!=="number"||(V.stopPropagation(),this.setScrollTop(0),_.AU(this).getPlayerPromise().then(function(H){var T=I.startTimeSeconds;H.seekTo(T);H.wakeUpControls();T<H.getDuration()&&H.playVideo()})))},
updatePlayerStartTime_:function(){var V=_.DK5();"t"in V&&(V=_.MhO(V.t),this.player.seekTo(V,!0))},
updateTitleFromWatchNext:function(V){V=this.getPageContents(V);var l,I;(V=_.A5(V==null?void 0:(l=V[0])==null?void 0:(I=l.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.B$(this.hostElement,"yt-update-title",V)},
updateTitle_:function(V){V=this.get("videoDetails.title",V)||"";_.B$(this.hostElement,"yt-update-title",V)},
syncWithRemoteVideo_:function(V,l,I){if(this.active&&this.player){var H=this.player.getVideoData();if(H.video_id===I&&(I=H.list,_.z("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),H.video_id!==V||I!=l)){var T;_.z("kevlar_player_watch_endpoint_navigation")?T=_.Wyf(_.Swj(V,l)):T=this.buildWatchEndpoint_(V,l);_.B$(this.hostElement,"yt-navigate",{endpoint:T,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(V,l,I){return _.mp(V,l,I)},
initDclkstatus_:function(){_.cl5()},
attachWatchPageSkeleton_:function(){var V=document.querySelector("#watch-page-skeleton");if(V){var l=V.querySelector("#primary-info"),I=V.querySelector("#secondary-info"),H=V.querySelector("#related");l&&_.h(this.hostElement).querySelector("#info-skeleton").appendChild(l);I&&_.h(this.hostElement).querySelector("#meta-skeleton").appendChild(I);H&&(_.h(this.hostElement).querySelector("#related-skeleton").appendChild(H),this.watchNextSkeletonEl_=H);_.Yw(V)}},
handlePlayerUpdated_:function(){_.AU(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(V,l){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof l!=="undefined"){var I=this.watchNextSkeletonEl_.children,H=V&&V.indexSplices.length?V.indexSplices[0].index:0;V=Math.min(this.watchNextShownItems.length,I.length);l||(H=0,V=I.length);for(l=H;l<V;l++)I[l].classList.add("hidden")}},
onPlayerFullscreenChange_:function(V){_.z("external_fullscreen")||_.xB(this.hostElement,"yt-player-fullscreen",[V.fullscreen])},
onFullscreenChange_:function(V){this.fullscreen=V;this.gestures_&&this.gestures_.update(this.fullscreen);var l=_.AU(this);l.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.iK())});
this.updateFullBleedElementLocations();V&&(l.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(V,l){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!l},
computeIsDonationShelfCollapsed_:function(V){return V},
computeShouldShowMerchShelf:function(V,l){return l&&!!V},
computeResponseHasComments:function(V){var l,I,H,T,x;return!!(V==null?0:(l=V.contents)==null?0:(I=l.twoColumnWatchNextResults)==null?0:(H=I.results)==null?0:(T=H.results)==null?0:(x=T.contents)==null?0:x.some(function(n){var w;return(n==null?void 0:(w=n.itemSectionRenderer)==null?void 0:w.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(V,l,I,H){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&H?!1:!!V&&!!Object.keys(V).length&&!l},
identity:_.Wy,onWindowResized_:function(V){this.windowSize_=V;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(V){var l=this;V&&V.type!=="dataloaded"&&V.type!=="dataupdated"||_.AU(this).getPlayerPromise().then(function(I){var H=I.getPlayerState();H!==5&&H!==0&&(I=1/I.getVideoAspectRatio(),l.videoHeightToWidthRatio_!==I&&(l.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(V){var l=this,I=_.z("kevlar_watch_while_v2")||_.z("web_watch_pip"),H=function(){if(l.watchMetadata){var T,x;(x=(T=l.watchMetadata).resize)==null||x.call(T)}_.AU(l).getPlayerPromise().then(function(n){if(_.z("kevlar_set_internal_player_size")){if(!I||!l.isMiniplayerActive()){var w=l.calculateCurrentPlayerSize_();n.setInternalSize(w.width,w.height)}}else n.setSize(NaN,NaN);_.z("kevlar_watch_while")&&l.updateWatchWhileScrollThreshold_()})};
V?H():_.t9(_.r0,H)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(V){this.set("data.survey",V.detail)},
onYtShowSurveyCommand_:function(V){this.set("data.survey",_.y(V,_.Cgd).survey)},
onDownloadedVideoDeleted:function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1){if(!l.active||(I=l.playerData)==null||!I.offlineState||l.videoId!==V)return T.return();(H=l.player)==null||H.stopVideo();_.jl().navigatingAwayFromWatchDeletedVideo=!0;_.IN(_.ypw,l.hostElement);return _.K(T,_.jl().navigationFinishPromise,2)}_.jl().navigatingAwayFromWatchDeletedVideo=!1;_.FU(T)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var V;this.theater?V=_.cA(.5625*this.windowSize_.width,480,this.windowSize_.height-185):V=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==V&&(this.watchWhileScrollThreshold_=V,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var V=_.h(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&V){var l=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!V.active&&l&&I>=this.watchWhileScrollThreshold_?(V.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):V.active&&(!l||I<this.watchWhileScrollThreshold_&&!_.iK())&&(V.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var V=_.h(this.hostElement).querySelector("#secondary-inner");if(V){var l=_.h(this.hostElement).querySelector("#below"),I=_.h(this.hostElement).querySelector("#secondary"),H=_.h(this.hostElement).querySelector("#comments");H&&I&&l&&(this.defaultTwoColumnLayout?(V.appendChild(H),I.appendChild(V)):(l.appendChild(H),_.WW(l,V)))}}},
isTwoColumnsChanged_:function(V,l){if(V!==!0||l!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(V=_.h(this.hostElement).querySelector("#secondary-inner"))){l=_.h(this.hostElement).querySelector("#below");var I=_.h(this.hostElement).querySelector("#secondary"),H=_.h(this.hostElement).querySelector("#comments");H&&I&&l&&(this.isTwoColumns_?(V.appendChild(H),I.appendChild(V)):(l.appendChild(H),_.WW(l,V)))}}else{V=!_.z("live_chat_over_engagement_panels");l=_.h(this.hostElement).querySelector("#chat-container");
I=_.h(this.hostElement).querySelector("#panels");var T=_.h(this.hostElement).querySelector("#alerts");H=_.h(this.hostElement).querySelector("#playlist");var x=_.h(this.hostElement).querySelector("#related"),n=_.h(this.hostElement).querySelector("#donation-shelf"),w=_.h(this.hostElement).querySelector("#comments");this.isTwoColumns_?(T=_.h(this.hostElement).querySelector("#secondary-inner"),V&&T.appendChild(I),T.appendChild(H),_.z("web_watch_theater_chat")||T.appendChild(l),V||T.appendChild(I),T.appendChild(n),
T.appendChild(x)):(V&&_.Wi(I,T),_.Wi(H,T),_.z("web_watch_theater_chat")||_.Wi(l,T),V||_.Wi(I,T),_.Wi(n,T),w&&_.Wi(x,w));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.z("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.z("web_watch_theater_chat")){var V=_.h(this.hostElement).querySelector("#chat-container"),l=this.theater&&!this.fullscreen||_.z("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&l?_.z("web_watch_theater_chat_beside_player")?(l=_.h(this.hostElement).querySelector("#panels-full-bleed-container"),(V==null?void 0:V.parentElement)!==l&&l.append(V),this.panelsBesidePlayer=!0):
_.z("web_watch_theater_fixed_chat")&&(l=_.h(this.hostElement).querySelector("#columns"),(V==null?void 0:V.parentElement)!==l&&l.append(V),this.fixedPanels=!0):(_.z("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.z("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),l=_.h(this.hostElement).querySelector("#playlist"),V&&l?_.b_(V,l):_.hF(new _.Yd("Missing element when updating chat location",{"chatContainer defined":!!V,"playlist defined":!!l})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(V,l){return _.z("sw_metadata_vis_toggle_ks")?!0:!!V||!!l},
computeForceDarkPanelTheme:function(V){return _.z("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&V:!1},
safeUpdateStyles:function(V){try{_.i3(this.hostElement,V)}catch(l){_.hF(l)}},
videoHeightToWidthRatioChanged_:function(V,l){l&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(V){this.videoHeightToWidthRatio_=1/V},
computeIsVerticalVideo_:function(V){return V>=1},
computeIsFourThreeToSixteenNineVideo_:function(V){return V<=.7501&&V>=.5624},
computeIsExtraWideVideo_:function(V){return V<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.AU(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.AU(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.H8p(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(V){var l=_.N9(V)||0;_.wd(V,l+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var V=_.N9("yt-fullerscreen-edu-button-click-count")||0,l=_.N9("yt-fullerscreen-edu-button-shown-count")||0,I=_.g7("external_fullscreen_button_shown_threshold"),H=V>=_.g7("external_fullscreen_button_click_threshold")||l>=I;_.AU(this).getPlayerPromise().then(function(T){T.updateFullerscreenEduButtonSubtleModeState(H)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(V,l){return l},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.F().resolve(_.cV).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var V=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.r0.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.r0.addLowPriorityJob(function(){V.fullHeightPanelPositionUpdateJobId=0;var l=_.h(V.hostElement).querySelector("#secondary"),I=_.h(V.hostElement).querySelector("#fixed-secondary");l=l.getBoundingClientRect();var H=l.width;V.swatcherooSqueezeback&&
(H+=_.bq);if(V.swatcherooSqueezeback){var T=_.h(V.hostElement).querySelector("#squeezeback-constraining-container");T.style.width=H+"px";T.style.flex="0 0 "+H+"px"}I.style.width=H+"px";I.style.left=l.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var V=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.r0.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.r0.addLowPriorityJob(function(){V.panelMaxHeightUpdateJob_=0;var l;!V.isTwoColumns_||V.theater||V.fullscreen?l=460:l=V.calculateNormalPlayerSize_().height;var I=l+"px";_.z("live_chat_taller_height")&&!V.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.z("live_chat_medium_height")&&!V.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.z("live_chat_scaled_height")&&!V.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");V.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":l+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":l+"px","--ytd-watch-flexy-comments-panel-max-height":l+"px","--ytd-comments-engagement-panel-content-height":l+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var V=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.z("web_watch_flexy_adjust_sidebar_width"))&&!_.z("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.r0.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.r0.addLowPriorityJob(function(){V.panelMaxHeightUpdateJob_=0;if(V.isTwoColumns_){var l=_.bCV(V.windowSize_,V.calculateNormalPlayerSize_().width);l!==V.currentSidebarWidth&&(V.currentSidebarWidth=
l,V.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":l+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(V){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",V)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.d6(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(V){var l=_.h(this.hostElement).querySelector("#engagement-panel-scrim");V?l.addEventListener("tap",_.VP(this,this.onEngagementPanelScrimClick_)):l.removeEventListener("tap",_.VP(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(V){if(this.hostElement.contains(V)&&!this.scrollToAnimation_.isAnimating()){var l=V.offsetTop-24;V=V.offsetTop+V.offsetHeight+24;var I=this.getPageScrollingElement(),H=this.getScrollTop(),T=H+I.clientHeight-56;if(l<H+56)l-=56;else if(V>T)l=V-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,l),500)}},
onYtSignalActionScrollToComments:function(){var V=this.hostElement.querySelector("#comments");if(V&&!this.scrollToAnimation_.isAnimating()){V=V.offsetTop-56-24;if(_.z("kevlar_comment_teaser_scroll_to_midpoint")&&(V-=_.LG().height/3,V<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,V),500)}},
onYtEngagementPanelVisibleChanged:function(V,l,I){this.active&&this.trackEngagementPanelVisibility&&!_.ttq.includes(I)&&(l==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(I),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.U4(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),l!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&l!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(V){return V?"":"watch-active-metadata"},
computeNewMetadataClass:function(V){return V?"watch-active-metadata":""},
computeFullBleedPlayer:function(V,l){return V||l},
computeDefaultLayout:function(V){return!V},
computeDefaultTwoColumnLayout:function(V,l){return!V&&l},
updatePanelsLocation:function(){if(_.z("web_watch_enable_fs_squeezeback_panels")){var V=_.h(this.hostElement).querySelector("#below"),l=_.h(this.hostElement).querySelector("#panels"),I=_.h(this.hostElement).querySelector("#panels-full-bleed-container"),H=_.h(this.hostElement).querySelector("#secondary-inner");this.fullscreen?I.appendChild(l):this.isTwoColumns_?_.WW(H,l):V.appendChild(l)}},
swatcherooUpdatePanelsLocation:function(V,l,I,H,T,x){if(this.is==="ytd-watch-grid"){l=V&&!l;this.swatcherooSplitScroll&&(l?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));I=_.h(this.hostElement).querySelector("#panels");var n=_.h(this.hostElement).querySelector("#playlist"),w=_.h(this.hostElement).querySelector("#fixed-secondary"),N=_.h(this.hostElement).querySelector("#fixed-below"),
L=_.h(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),e=_.h(this.hostElement).querySelector("#chat-container");x&&(V?w.appendChild(I):N.appendChild(I));T?V?w.appendChild(e):N.appendChild(e):_.b_(e,L);H?V?w.appendChild(n):N.appendChild(n):_.b_(n,L);this.swatcherooSplitScroll&&(V=_.h(this.hostElement).querySelector("#secondary"),H=_.h(this.hostElement).querySelector("#columns"),T=_.h(this.hostElement).querySelector("#fixed-columns-secondary"),l?T.appendChild(V):
H.appendChild(V))}},
computeMetadataSkinnyMode:function(V,l,I){return this.is!=="ytd-watch-grid"?!1:V?I:l},
computeWatchWhilePanelsActive:function(V,l){return V||l},
computeNoBorderOnChat:function(V){return _.z("web_watch_theater_chat_no_border")&&V},
computeLiveChatPresentAndExpanded:function(V,l){return V&&!l},
computePanelExpanded:function(V,l,I){return V||l||I},
computeSqueezeback:function(V,l){if(_.z("web_watch_enable_fs_squeezeback_panels"))return V&&l},
computeSwatcherooSqueezeback:function(V,l,I){return this.is!=="ytd-watch-grid"||_.z("ww_squeezeback_killswitch")?!1:V&&l&&I},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(V){_.AU(this).getPlayerPromise().then(function(l){var I;(I=l.changeMarkerVisibility)==null||I.call(l,_.y(V,_.p5).isVisible||!1,_.y(V,_.p5).entityKeys||[],_.y(V,_.p5).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(V){this.liveChatCollapsed=V.detail;_.v4().dispatch(_.vzY(V.detail))},
onSetPlaylistCollapsed:function(V){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!V)},
provideRenderingData:function(V,l){switch(V){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=l;break;case "PRIMARY_INFO":_.z("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=l);this.videoPrimaryInfoRendererValue=l==null?void 0:l.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.z("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=l);this.videoSecondaryInfoRendererValue=l==null?void 0:l.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
l;break;case "CLARIFICATION":this.clarifyBoxValue=l;break;case "LIVE_CHAT":this.conversationBar=l;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=l;break;case "PLAYLIST":this.externalPlaylistData_=l!=null?l:{};break;case "MERCH_SHELF":this.merchShelfValue=l==null?void 0:l.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=l;break;case "TICKET_SHELF":this.ticket=l;break;case "OFFER_MODULE":this.offerModule=l;break;case "LIMITED_STATE":this.limitedStateValue=
l;break;case "DONATION_SHELF":this.donation=l;break;case "ALERTS":this.alertsValue=l;break;case "COMMENTS":this.comments=l;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=l;break;case "ENGAGEMENT_PANELS":this.engagementPanels=l;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=l;break;case "RICH_GRID_RENDERER":this.richGridRendererData=l;break;case "EXPANDABLE_METADATA":this.expandableMetadata=l;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
l}},
toggleCinematicsActive:function(V){this.cinematicsActive=V},
isMiniplayerActive:function(){return _.F().resolve(_.sH).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var $RI;_.n7V=function(V){return V.shorts.isShortsActive};
_.dR6=function(V){return V.findIndex(function(l){return $RI.indexOf(l.tagName)>-1})>-1};
_.wXB=function(V){return _.IA({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:V}})};
_.NjQ=function(){var V=_.F().resolve(_.T4);_.o7J(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(V.isFullscreenEnabled()?_.Vg(document.documentElement):_.IEt(document.documentElement))};
$RI=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.mZ=new Map;_.mZ.set(32,59972);_.mZ.set(27,50765);_.mZ.set(70,60102);_.mZ.set(76,60221);_.mZ.set(77,60222);_.mZ.set(74,60223);_.mZ.set(84,60224);_.mZ.set(38,61941);_.mZ.set(40,61942);_.mZ.set(73,62521);_.mZ.set(67,62522);_.mZ.set(80,63390);_.mZ.set(78,63397);_.mZ.set(75,59972);_.mZ.set(188,63385);_.mZ.set(190,63384);_.mZ.set(36,63387);
_.mZ.set(35,63386);_.mZ.set(37,63388);_.mZ.set(39,63389);_.mZ.set(79,63423);_.mZ.set(87,63424);_.mZ.set(107,63426);_.mZ.set(109,63425);_.mZ.set(65,63428);_.mZ.set(83,63430);_.mZ.set(68,63429);_.mZ.set(221,63431);_.mZ.set(219,63432);_.mZ.set(97,63439);_.mZ.set(98,63440);_.mZ.set(99,63441);_.mZ.set(100,63442);_.mZ.set(101,63443);_.mZ.set(102,63444);_.mZ.set(103,63445);_.mZ.set(104,63446);_.mZ.set(105,63447);_.io=new Map;_.io.set(80,63390);_.io.set(78,63397);_.io.set(188,63400);_.io.set(190,63401);
_.io.set(191,60765);_.io.set(13,247917);_.VB=new Map;_.lm=new Map;
}catch(e){_._DumpException(e)}
try{
var GO2,ozB,hwP,PgE;_.zwB=function(V){return V.ui.guideIsVisibleButNotPersistent};
_.ylI=function(V){return V.ui.tabGesturesIsActive};
_.thB=function(){var V=_.m_("service_worker_scope");try{return navigator.serviceWorker.getRegistration(V)}catch(l){return Promise.reject(l)}};
_.rlh=function(V){return!(!V||!V.pushManager)};
GO2=function(){return _.thB().then(_.rlh).catch(function(){return!1})};
_.EzI=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?GO2():Promise.resolve(!1)};
_.Jlu=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
ozB=function(){var V,l,I;return _.d(function(H){switch(H.nextAddress){case 1:return _.K(H,_.tt.getInstance(),2);case 2:V=H.yieldResult;if(!V){l=void 0;H.jumpTo(3);break}return _.K(H,V.get("lmqf"),4);case 4:l=H.yieldResult;case 3:switch((I=l)||(I="SD"),I){case "HD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
hwP=function(V){var l,I,H;return _.d(function(T){if(T.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]){var x=window.localStorage["yt-player-av1-pref"];x=x==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":x==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else x="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(l=V===x)return T.jumpTo(2);H=I=V;return _.K(T,ozB(),3)}T.nextAddress!=2&&(l=H===T.yieldResult);return T.return(l)})};var DK6;var ZCP=_.GZ.IronButtonState,SwE=(0,_.yA)(HTMLElement);
_.Ne({_template:function(){if(DK6!==void 0)return DK6;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" 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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;PgE===void 0&&(PgE=document.createElement("template"));var H=PgE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return DK6=V},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[ZCP,_.tw,_.EM,_.hw],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(V){var l=(0,_.KC)(this);l.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:V});
l.shadowRoot.appendChild(V);return SwE.prototype._attachDom.call(this,V)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var V=this.contentElement;V&&V.selectedItem&&this._setSelectedItem(V.selectedItem)},
get contentElement(){for(var V=_.Xb(this.$.content).getDistributedNodes(),l=0,I=V.length;l<I;l++)if(V[l].nodeType===Node.ELEMENT_NODE)return V[l]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(V){this._setSelectedItem(V.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(V){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V)===this&&this.open()},
_selectedItemChanged:function(V){var l="";V?l=V.label||V.getAttribute("label")||V.textContent.trim():l="";this.value=l;this._setSelectedItemLabel(l)},
_computeMenuVerticalOffset:function(V,l){return l?l:V?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var V=this.opened?"true":"false",l=this.contentElement;l&&l.setAttribute("aria-expanded",V)}});_.cG=new _.f("navigateAction");var RwE=new _.f("formRenderer");var QXV=function(){var V=_.To.apply(this,arguments)||this;V.showInput=!1;return V};
_.t(QXV,_.To);_.B=QXV.prototype;_.B.detached=function(){this.showInput&&window.removeEventListener("click",_.VP(this,this.closeOnOutsideClick_))};
_.B.stopPropagation_=function(V){this.showInput&&V.stopPropagation()};
_.B.closeOnOutsideClick_=function(V){this.closeOnOutsideClickCondition(V)&&(this.showInput=!1,window.removeEventListener("click",_.VP(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.B.closeOnOutsideClickCondition=function(){return!0};
_.B.closeOnOutsideClickHandler=function(){};
_.B.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.VP(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.B.openOnClickHandler=function(){};
_.B.showInputChanged=function(){};
_.B.setShowInput=function(V){this.showInput=V};
var WG=QXV;WG.prototype.setShowInput=WG.prototype.setShowInput;WG.prototype.showInputChanged=WG.prototype.showInputChanged;WG.prototype.openOnClickHandler=WG.prototype.openOnClickHandler;WG.prototype.openOnClick_=WG.prototype.openOnClick_;WG.prototype.closeOnOutsideClickHandler=WG.prototype.closeOnOutsideClickHandler;WG.prototype.closeOnOutsideClickCondition=WG.prototype.closeOnOutsideClickCondition;WG.prototype.closeOnOutsideClick_=WG.prototype.closeOnOutsideClick_;
WG.prototype.stopPropagation_=WG.prototype.stopPropagation_;_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],WG.prototype,"showInput",void 0);_.O([_.W("click"),_.W("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],WG.prototype,"stopPropagation_",null);_.O([_.b("showInput"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean]),_.a("design:returntype")],WG.prototype,"showInputChanged",null);WG=_.O([_.B1()],WG);_.cl6=[WG.prototype];var W4b;var bCE;var qwQ=function(){return _.M.apply(this,arguments)||this};
_.t(qwQ,_.M);_.B=qwQ.prototype;_.B.computePreselectedOption=function(V,l){return l===this.itemSelected_?V:void 0};
_.B.dataChanged_=function(){var V=this;this.preselectedSubreason=this.itemSelected_=-1;var l;(l=this.data)!=null&&l.key&&_.Al(this,function(){var I,H=Number((I=V.data)==null?void 0:I.key);!Number.isNaN(H)&&(V.itemSelected_=H,I=(I=(V.data.items||[])[H])&&I.optionSelectableItemRenderer&&I.optionSelectableItemRenderer.preselectedIndex)&&(V.preselectedSubreason=I)})};
_.B.isSubReasonHidden_=function(V,l){return V!=l};
_.B.onTopItemSelected_=function(V,l){for(var I=_.h(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),H=0,T=I.length;H<T;H++)I[H].select(0);_.xB(this.hostElement,"yt-report-form-update",[l.item.value]);V.stopPropagation()};
_.B.onItemSelected_=function(V,l){_.xB(this.hostElement,"yt-report-form-update",[l.item.value]);V.stopPropagation()};
_.B.getItem_=function(V){return V.serviceItem?V.serviceItem:V.navigationItem?V.navigationItem:V.optionSelectableItemRenderer?V.optionSelectableItemRenderer:null};
_.B.computeText_=function(V){return(V=this.getItem_(V))?this.ytRendererBehavior.getSimpleString(V.text):null};
_.B.validate=function(){return this.itemSelected_!==-1};
_.B.computeAriaLabel_=function(V){var l=_.A5(V.text);(V=V.accessibility&&V.accessibility.accessibilityData&&V.accessibility.accessibilityData.label)&&(l+=". "+V);return l};
_.B.computeItemSelected_=function(V){return V};
_.B.preventSelection_=function(V){V.stopPropagation();this.tooltipTapped=!0};
_.B.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.B.updateItemSelectedFromBinding=function(V){this.itemSelected_=V.detail.value};
_.B.save=function(){var V;this.validate()&&(V=this.data)!=null&&V.items&&(V=this.data.items[this.itemSelected_],V!=null&&V.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(V.optionSelectableItemRenderer.submitEndpoint)||_.$B(this.hostElement,[V.optionSelectableItemRenderer.submitEndpoint])))};
var b7=qwQ;b7.prototype.onPaperRippleTransitionEnd_=b7.prototype.onPaperRippleTransitionEnd_;b7.prototype.dataChanged_=b7.prototype.dataChanged_;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],b7.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],b7.prototype,"data",void 0);_.O([_.q({value:-1}),_.a("design:type",Number)],b7.prototype,"itemSelected_",void 0);
_.O([_.q({computed:"computeItemSelected_(itemSelected_)"}),_.a("design:type",Number)],b7.prototype,"value",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],b7.prototype,"restoreFocusOnClose",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],b7.prototype,"tooltipTapped",void 0);_.O([_.q({value:-1}),_.a("design:type",Number)],b7.prototype,"preselectedSubreason",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],b7.prototype,"dataChanged_",null);_.O([_.W("transitionend"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],b7.prototype,"onPaperRippleTransitionEnd_",null);b7=_.O([_.Lm({is:"yt-options-renderer",disableElementRegistration:!0})],b7);
_.u(b7,"yt-options-renderer",function(){if(bCE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;W4b===void 0&&(W4b=document.createElement("template"));var H=W4b;I.call(l,H.content.cloneNode(!0),V.content.firstChild);bCE=V}V=bCE;return V},{mode:2});var Mhu;var sXP;var pIh;var AlY;var uHB;var vzE;var q2=function(){return _.M.apply(this,arguments)||this};
_.t(q2,_.M);q2.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
q2.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
q2.prototype.onTap=function(V){if(this.hostElement.classList.contains("selected")||_.nT(this.hostElement,"yt-share-panel-can-select-contact-action"))V&&V.detail&&(V.detail.x||V.detail.y)&&_.h(this.hostElement).querySelector("#target").blur(),(V=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),V={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:V?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.xB(this.hostElement,"yt-share-panel-select-contact-action",[V])};
var M2=q2;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.O([_.q({observer:"onDataChanged"}),_.a("design:type",Object)],M2.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.a("design:type",String)],M2.prototype,"componentTitle",void 0);_.O([_.Ij("#thumbnail"),_.a("design:type",Object)],M2.prototype,"thumbnail",void 0);
M2=_.O([_.Lm({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],M2);
_.u(M2,"yt-enrolled-contact-renderer",function(){if(vzE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;uHB===void 0&&(uHB=document.createElement("template"));var H=uHB;I.call(l,H.content.cloneNode(!0),V.content.firstChild);vzE=V}V=vzE;return V},{mode:2});var OCB;var CgQ;var sa=function(){return _.M.apply(this,arguments)||this};
_.t(sa,_.M);sa.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
sa.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
sa.prototype.onTap=function(V){if(this.hostElement.classList.contains("selected")||_.nT(this.hostElement,"yt-share-panel-can-select-contact-action"))V&&V.detail&&(V.detail.x||V.detail.y)&&_.h(this.hostElement).querySelector("#target").blur(),(V=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),V={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:V?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.xB(this.hostElement,"yt-share-panel-select-contact-action",[V])};
var p$=sa;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.O([_.q({observer:"onDataChanged"}),_.a("design:type",Object)],p$.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.a("design:type",String)],p$.prototype,"componentTitle",void 0);_.O([_.Ij("#thumbnail"),_.a("design:type",Object)],p$.prototype,"thumbnail",void 0);
p$=_.O([_.Lm({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],p$);
_.u(p$,"yt-suggested-contact-renderer",function(){if(CgQ===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;OCB===void 0&&(OCB=document.createElement("template"));var H=OCB;I.call(l,H.content.cloneNode(!0),V.content.firstChild);CgQ=V}V=CgQ;return V},{mode:2});var Ak=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-share-panel-reset-action":"onReset"};return V};
_.t(Ak,_.M);Ak.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"}}}}}};
Ak.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.xB(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Ak.prototype.onReset=function(){for(var V=_.h(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),l=V.length-1;l>=0;l--)V[l].classList.toggle("selected")};
var u7=Ak;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],u7.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q({observer:"onDataChanged"}),_.a("design:type",Object)],u7.prototype,"data",void 0);
u7=_.O([_.Lm({is:"yt-contact-section-renderer",disableElementRegistration:!0})],u7);
_.u(u7,"yt-contact-section-renderer",function(){if(AlY===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;pIh===void 0&&(pIh=document.createElement("template"));var H=pIh;I.call(l,H.content.cloneNode(!0),V.content.firstChild);AlY=V}V=AlY;return V},{mode:2});var aUB=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return V};
_.t(aUB,_.M);_.B=aUB.prototype;_.B.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"}}}};
_.B.onYtRefreshFormCommand=function(V){var l;(V=_.y((l=_.y(V,_.w_3))==null?void 0:l.formRenderer,RwE))&&this.set("data",V)};
_.B.reset=function(){var V=_.h(this.hostElement).querySelector("#fields").children;V=_.U(V);for(var l=V.next();!l.done;l=V.next())l=l.value,l.reset&&l.reset()};
_.B.getForm=function(){var V={},l=_.h(this.hostElement).querySelector("#fields").children;l=_.U(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;if(!I.validate())return null;V[I.data.key]=I.value}return V};
_.B.submitFormFields=function(){if(this.fields)for(var V=_.U(this.fields),l=V.next();!l.done;l=V.next())l=l.value,l.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?l.save():l.nodeName==="YT-OPTIONS-RENDERER"&&l.save()};
var vG=aUB;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],vG.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],vG.prototype,"data",void 0);_.O([_.H1("#fields > *"),_.a("design:type",Array)],vG.prototype,"fields",void 0);
vG=_.O([_.Lm({is:"yt-form-renderer",disableElementRegistration:!0})],vG);
_.u(vG,"yt-form-renderer",function(){if(sXP===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Mhu===void 0&&(Mhu=document.createElement("template"));var H=Mhu;I.call(l,H.content.cloneNode(!0),V.content.firstChild);sXP=V}V=sXP;return V},{mode:2});var fU2;var gzB=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return V};
_.t(gzB,_.M);gzB.prototype.onCheckboxChange=function(V){this.data&&(V=(this.checked=_.qv(V).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.F().resolve(_.aw).resolveCommand(V,{form:{element:this.hostElement}})};
gzB.prototype.handleUpdateCheckboxCommand=function(V){(V=_.y(V,_.ruN))&&this.data&&this.data.id===V.id&&(this.set("data.disabled",V.disabled),this.set("data.title",V.title))};
var Oa=gzB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Oa.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Oa.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],Oa.prototype,"checked",void 0);Oa=_.O([_.A({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Oa);
_.u(Oa,"ytd-settings-checkbox-renderer",function(){if(fU2!==void 0)return fU2;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return fU2=V},{mode:1});var mKB;var C$=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return V};
_.t(C$,_.M);C$.prototype.dataChanged=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return V.radio.removeAttribute("checked"),!V.data||!V.data.id||V.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.Jlu()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(l=V.data&&V.data.id)?_.K(I,hwP(V.data.id),4):I.jumpTo(3):(V.set("data.hidden",!0),I.jumpTo(0));I.nextAddress!=3&&(l=I.yieldResult);l&&_.xB(V.hostElement,"yt-select-settings-radio-option",[V.data.id]);_.FU(I)})};
C$.prototype.onButtonChanged=function(V){_.qv(V).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.F().resolve(_.aw).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.xB(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
C$.prototype.onSelectOption=function(V){this.data&&this.data.id&&(this.data.id===V?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
var aE=C$;aE.prototype.dataChanged=aE.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],aE.prototype,"ytActionHandlerBehavior",void 0);_.O([_.Ij("#radio"),_.a("design:type",Object)],aE.prototype,"radio",void 0);_.O([_.q(),_.a("design:type",Object)],aE.prototype,"data",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],aE.prototype,"dataChanged",null);aE=_.O([_.A({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],aE);
_.u(aE,"ytd-settings-radio-option-renderer",function(){if(mKB!==void 0)return mKB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return mKB=V},{mode:1});var iCg;var f$=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return V};
_.t(f$,_.M);
f$.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"}}}};
f$.prototype.handleUpdateTextCommand=function(V){(V=_.y(V,_.Gdw))&&this.data&&this.data.id===V.id&&this.set("data",V)};
f$.prototype.handleUpdateConnectedAppRendererCommand=function(V){if(_.y(V,_.oNN)&&this.data){var l,I;if(V=(l=_.y(V,_.oNN))==null?void 0:(I=l.newConnectedAppRenderer)==null?void 0:I.connectedAppRenderer)this.data=V}};
f$.prototype.computeConnectedAppStyle=function(V){return V.style?V.style.toLowerCase().replace(/_/g,"-"):""};
var gz=f$;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],gz.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],gz.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],gz.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.a("design:type",String)],gz.prototype,"connectedAppStyle",void 0);gz=_.O([_.A({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],gz);
_.u(gz,"ytd-connected-app-renderer",function(){if(iCg!==void 0)return iCg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return iCg=V},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.JK("iuT5Oc");

_.o8();
}catch(e){_._DumpException(e)}
try{
_.JK("L3n37");
var zRn=_.eU(115994),yOh=_.eU(115993),tX6=function(V,l,I){var H=this;var T=I.dragDownAction;this.layer=0;this.JSC$20300_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.JSC$20300_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.fullscreen=!1;var x=_.x7();_.nn(x,zRn,this.layer);_.nn(x,yOh,this.layer);this.dragDownAction=function(){T();_.Dt(x,{visualElement:H.fullscreen?zRn:yOh})};
this.gesture=new _.yU(V,l,this.JSC$20300_watchConfig,"pandown");this.attach()};
tX6.prototype.attach=function(){this.gesture.attach()};
tX6.prototype.detach=function(){this.gesture.detach()};
tX6.prototype.update=function(V){this.fullscreen=V;this.gesture.config=V?this.JSC$20300_watchFullScreenConfig:this.JSC$20300_watchConfig};var rOj={},Guh=["PAyouchat"];
rOj.YtdLearningJourneyWatchBehavior=[_.m.YtRendererBehavior,_.AN.YtPlayerListenerBehavior,_.Cb.YtRendererstamperBehavior,_.aU.YtActionHandlerBehavior,_.Rb.YtPageBehavior,_.Uf.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 _.PO("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.z("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 _.PO("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 _.z("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.z("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 _.g7("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.g7("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!_.z("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.z("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 _.z("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.z("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("web_watch_rounded_player_large")||_.z("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 _.z("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.z("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.z("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("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 _.z("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.z("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 _.z("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 V={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:_.hk(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.hk(["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"||_.z("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(V.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},V.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):_.z("web_watch_inject_placeholder_panels")?V.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.z("kevlar_use_engagement_panel_management_component")||(V["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}):(V.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},V.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return V},
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 V=this;this.watchController=void 0;this.pageDisposeJobs=[function(){V.showMetadataPlaceholder_()},
function(){_.z("web_watch_dont_clear_comments")||V.clearComments_()},
function(){V.clearPlayerAds_()},
function(){V.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;_.z("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.z("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.aUM(function(){return _.AU(V)},this.hostElement);
this.pageDisposeJobs.push(function(){V.youThereManager_.reset()});
_.z("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){V.resetFullerscreenEduButtonForNewPlayback_()}));
_.z("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.$Y;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;_.z("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.z("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));_.z("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.VP(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(V){V&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:V}),V.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(V){_.z("kevlar_watch_flexy_theater_manager")&&(this.theater=V,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.z("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(V){!_.z("kevlar_watch_while_v2")&&!_.z("web_watch_pip")||V||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(V){this.active!==void 0&&(this.fullscreen=V,_.z("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(V){this.active!==void 0&&(_.B$(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.z("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(V>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(V){this.initCsi_();this.updatePageData_(V)},
updatePageData_:function(V){var l=this;if(V)if(this.data===V){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||_.qM(I,this.data)}else this.data=V;this.playlist&&_.P$({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Z8("nw");this.loading=!1;_.et(_.r0,function(){l.initDclkstatus_();var H,T=((H=l.player)==null?void 0:H.getVideoData().cpn)||"";_.ZCq(function(x,n){_.Bjb(x,n,T)})})},
onPageLoadWithSameData_:function(){_.z("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 V=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!V);this.set("loadingData.playlistLoading",V&&V!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),V=this.watchNextSkeletonEl_.firstElementChild;V;)V.classList.remove("hidden"),V=V.nextElementSibling;if(_.z("kevlar_watch_frame0_loading_state")){var l,I,H;V=(l=this.loadingData)==null?void 0:(I=l.endpoint)==null?void 0:(H=I.watchEndpoint)==null?void 0:H.videoId;var T;V&&(T="https://i.ytimg.com/vi/"+V+"/frame0.jpg");_.h(this.hostElement).querySelector("#player").style.backgroundImage=T?"url("+T+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var V=_.h(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&V&&(V.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var l,I;(I=(l=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(l);var H,T;(T=(H=this.watchMetadata).resize)==null||T.call(H)}_.z("kevlar_watch_frame0_loading_state")&&(_.h(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(V){var l=_.h(this.hostElement).querySelector(V);l?_.lJ(l,!1):_.hF(new _.Yd("Overscroll monitor not found for component: ",V))},
removeSplitScrollMouseTrap:function(V){var l=_.h(this.hostElement).querySelector(V);l?_.Iz(l):_.hF(new _.Yd("Disposal component for  overscroll monitoring not found: ",V))},
onLoadingChanged_:function(V){V?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(V){var l=this;V?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.r0.addLowPriorityJob(function(){l.onWindowResized_(_.jD(!0))})},
updateTheaterModeState_:function(V){if(!_.z("kevlar_watch_flexy_theater_manager")){V=V||this.fullWindowMode_;if(this.theater!==void 0||V)this.theater=V;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();V&&_.ZQd()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var V=this.theater;_.z("external_fullscreen")&&this.fullscreen&&(V=!0);V=V?_.h(this.hostElement).querySelector("#player-full-bleed-container"):_.h(this.hostElement).querySelector("#player-container-inner");var l=this.getPlayerContainer(),I=_.z("kevlar_watch_while_v2")||_.z("web_watch_pip");l.parentElement!==V&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.AU(this).appendTo(V,l),V.appendChild(_.h(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var V=this;return _.d(function(l){if(l.nextAddress==1)return _.K(l,_.F().resolve(_.sH).deactivate(),2);V.updatePlayerLocation();_.FU(l)})},
updateCinematicsLocation:function(){var V=this.getElement("CINEMATICS");if(V){var l=this.getCinematicsLocationContainer();V.parentElement!==l&&l.appendChild(V);var I;(I=this.watchController)==null||_.ozM(I)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.h(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.h(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(V,l){var I=document.documentElement.hasAttribute("dark"),H=I&&_.z("web_cinematic_theater_mode"),T=I&&_.z("web_cinematic_fullscreen");I=!I&&this.cinematicLightTheme;return V&&H||l&&T||(l||V)&&I},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var V=this,l;(l=this.watchController)==null||_.qM(l,this.data);_.z("kevlar_watch_flexy_comments_manager")||this.initComments_();_.z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.F().resolve(_.cV).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,_.z("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.r0.addLowPriorityJob(function(){_.U4(V.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.z("web_watch_start_chat_in_theater_mode")){var I,H,T;if((I=this.data)==null?0:(H=I.contents)==null?0:(T=H.twoColumnWatchNextResults)==null?0:T.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var x,n;((x=this.data)==null?0:(n=x.contents)==null?0:n.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(V){var l;(l=this.watchController)==null||_.br(l,this.playerData);V&&V.playabilityStatus&&(l=this.isVideoPlayable_(V.playabilityStatus,this.getPlayerOverlays_(this.data)),V=this.isLiveStreamOffline_(V.playabilityStatus),l&&!V||_.Al(this,function(){_.Z8("pbu")}));
this.setPlayerAds_();_.U4(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(V){_.v4().dispatch(_.bd5(this.active));V?this.activate_():this.deactivate_()},
attached:function(){var V=this;this.watchController=new _.Wc(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.br(this.watchController,this.playerData);this.data&&_.qM(this.watchController,this.data);_.z("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var l=_.AU(this);_.z("kevlar_disable_prepare_player")||l.preparePlayer();
_.z("kevlar_watch_flexy_playlist_manager")||_.F().resolve(_.cV).setPlayer(l);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();l={"--ytd-watch-flexy-scrollbar-width":_.GW()+"px"};this.is==="ytd-watch-grid"&&(l["--ytd-watch-flexy-sidebar-width"]=_.Mg+"px",l["--ytd-watch-flexy-sidebar-min-width"]=_.g7("kevlar_watch_grid_sidebar_min_width",300)+"px",l["--ytd-watch-grid-horizontal-page-margins"]=_.bq+"px",l["--ytd-watch-grid-columns-top-margins"]=_.oEV+"px",l["--ytd-watch-grid-min-player-height-medium"]=
"360px");!_.g7("kv_pl_mx_sz_ks")&&_.g7("kevlar_watch_max_player_width")&&(l["--ytd-watch-flexy-max-player-width-wide-screen"]=_.R76+"px");_.g7("kevlar_watch_flexy_metadata_height")&&(l["--ytd-watch-flexy-space-below-player"]=_.QIx+"px");this.safeUpdateStyles(l);_.z("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new tX6(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return V.onPlayerTouchPanDown_()}}));
_.z("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.h(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var V=_.GW(),l=_.qg+V,I=l;this.fixedPanels&&(l+=_.Mg);var H=657+V;V=1327+V;_.h(this.hostElement).querySelector("#two-column-query").query="(min-width: "+l+"px)";_.h(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(H+"px), (min-height: 630px) and (min-width: ")+(l+"px) and (max-width: ")+(V+"px)");_.h(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(V+"px)");_.h(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+I+"px)"},
calculateCurrentPlayerSize_:function(){var V=_.h(this.hostElement).querySelector("#miniplayer-bar").firstChild;return V&&V.active||this.theater||_.z("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.Yp(NaN,NaN):_.qwd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.qwd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ag(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var V=this;this.onWindowResized_(_.jD());_.z("browse_skeleton_removal_on_watch_killswitch")||_.PO("IS_SHELL_LOAD")&&_.DGV();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var l=_.AU(this);l.addEventListener("yt-player-updated",_.VP(this,this.onPlayerUpdated_));l.getPlayerPromise().then(function(I){V.playerApiReady_(I)});
_.z("kevlar_watch_flexy_playlist_manager")||(l=_.F().resolve(_.cV),_.z("kevlar_watch_observe_playlist_navigations_killswitch")&&l.addEventListener("yt-navigate",_.VP(this,this.onYtNavigate_)),l.setPlaylistComponent(_.h(this.hostElement).querySelector("#playlist")),l.addEventListener("yt-playlist-data-updated",_.VP(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.r0.addLowPriorityJob(function(){_.B$(V.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.AU(this).removeEventListener("yt-player-updated",_.VP(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.z("kevlar_watch_flexy_playlist_manager")){var V=_.F().resolve(_.cV);_.z("kevlar_watch_observe_playlist_navigations_killswitch")&&V.removeEventListener("yt-navigate",_.VP(this,this.onYtNavigate_));
V.cancelVideoSkip();V.removeEventListener("yt-playlist-data-updated",_.VP(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.B$(this.hostElement,"yt-autonav-pause-player",!1);V=_.iK();_.z("kevlar_exit_fullscreen_leaving_watch")&&V&&_.Vg(V)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(V){this.player&&this.player.updateVideoData({rvs:V.rvs})},
getPageContents:function(V){return V&&V.contents&&V.contents.twoColumnWatchNextResults&&V.contents.twoColumnWatchNextResults.results&&V.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(V){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",V)},
onRetrieveLocation_:function(V,l){l.hasComments?l.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):l.locationRetrieved("/related_ajax",void 0);V.stopPropagation()},
onSubscriptionChanged_:function(V,l){this.player&&(l?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.s0g("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.h(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.h(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(V){this.player=V;this.setPlayerState(V.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.z("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.z("kevlar_unified_player")||_.z("kevlar_player_new_bootstrap_adoption"))&&_.ie()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(V,l){l=l===void 0?!0:l;_.iK()&&_.z("external_fullscreen")&&_.Vg(document.documentElement);this.theaterRequested_=V;l&&_.wm("wide",V?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.z("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.xB(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.B$(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(V){_.PF(V,typeof this.player),this.player&&_.PF(V,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var V;((V=this.player)==null?0:V.isFullscreen())?this.player.toggleFullscreen():_.xB(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(V,l){return this.loading?l:!!Object.keys(V).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(V){if(V){V=_.U(V);for(var l=V.next();!l.done;l=V.next())l=l.value,l.youThereRenderer&&_.mKM(this.youThereManager_,l.youThereRenderer)}},
setPlaylistData_:function(V){return V||{}},
userEngagementConfigDataChanged_:function(V){if(V)if(V.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var l=this.youThereManager_;_.f0()<V.lowEngagementThresholdMs||_.Ihx(l,!0)}else V.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.xB(this.hostElement,"yt-autonav-pause-user-engagement",[V])},
isPlayerUnavailable_:function(V,l,I){return!!V&&!this.isVideoPlayable_(V,I)&&!l},
getPlayerOverlays_:function(V){return(V==null?void 0:V.playerOverlays)||null},
isVideoPlayable_:function(V,l){if(!V)return!1;var I=V.status==="OK"||V.status==="LIVE_STREAM_OFFLINE",H=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",V)||this.get("errorScreen.ypcTrailerRenderer",V);V=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",V);var T;l=l==null?void 0:(T=l.playerOverlayRenderer)==null?void 0:T.gatedActionsOverlayRenderer;return!!I||!!H||!!V||!!l},
hasWatchNextResponseErrorRenderer:function(V){var l=this.getPageContents(V),I,H,T,x,n;return!(V==null?0:(I=V.contents)==null?0:(H=I.twoColumnWatchNextResults)==null?0:H.secondaryResults)&&!!((T=l[0])==null?0:(x=T.itemSectionRenderer)==null?0:(n=x.contents[0])==null?0:n.backgroundPromoRenderer)},
isLiveStreamOffline_:function(V){return V?V.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(V,l,I){var H=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",l),T=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];T=_.z("web_no_skip_video_on_verification_checks")?(V==null?void 0:V.status)&&T.includes(V.status):V&&V.status==="AGE_CHECK_REQUIRED";var x=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",V);x==void 0&&(x=!0);!I||this.isVideoPlayable_(V,this.getPlayerOverlays_(l))||
H||T||!x||_.F().resolve(_.cV).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.sXq()},
onPlayerFeedbackStartRequest_:function(V){_.xB(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:V}])},
onPlayerFeedbackArticleRequest_:function(V){_.xB(this.hostElement,"yt-help-dialog-requested",[V])},
onPlayerYpcContentRequest_:function(){var V,l,I,H,T,x,n,w,N=((V=this.data)==null?NaN:(l=V.contents)==null?NaN:(I=l.twoColumnWatchNextResults)==null?NaN:(H=I.secondaryResults)==null?NaN:(T=H.secondaryResults)==null?NaN:(x=T.offerModule)==null?NaN:(n=x.tvfilmOfferModuleRenderer)==null?NaN:(w=n.actionButtons)==null?NaN:w.length)-1;V=[".offerButton.buttonRenderer.",".actionButtons."+(N>=0?N:0)+".buttonRenderer."];l=_.U(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=l.next();!I.done;I=l.next())for(I=I.value,H=_.U(V),T=H.next();!T.done;T=H.next())if(T="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+T.value,T=this.get(T+"navigationEndpoint",this.data)||this.get(T+"serviceEndpoint",this.data)||this.get(T+"command",this.data)){_.IN(T,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(V){_.B$(this.hostElement,"yt-autonav-pause-player",V)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(V){V()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(V){switch(V){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(V){switch(V){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.B$(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(V)},
setPlayerState:function(V){_.v4().dispatch(_.BMw(V))},
onPlayerSubscribe_:function(V){_.xB(this.hostElement,"yt-player-subscribe",[V])},
onPlayerUnsubscribe_:function(V){_.xB(this.hostElement,"yt-player-unsubscribe",[V])},
onPlayerAdYtShowToast_:function(V){_.xB(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:V.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(V){if(V)return V},
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(V){return!_.z("web_watch_move_summary_to_sd")&&!!V},
computeWatchMetadataRefresh:function(){return _.z("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var V,l,I,H;this.watchNextSecondaryResults=(V=this.data)==null?void 0:(l=V.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(H=I.secondaryResults)==null?void 0:H.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.z("swatcheroo_pbs_load_grid")&&!_.z("swatcheroo_provide_all_data_on_scheduled_job")){_.r0.cancelJob(this.setRichGridJobId_);var V,l,I,H,T,x,n;this.setRichGridRendererData((V=this.data)==null?void 0:(l=V.contents)==null?void 0:(I=l.twoColumnWatchNextResults)==null?void 0:(H=I.secondaryResults)==null?void 0:(T=H.secondaryResults)==null?void 0:(x=T.results)==null?void 0:(n=x[0])==null?
void 0:n.richGridRenderer)}},
setRichGridRendererData:function(V){this.richGridRendererData=V},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var V,l=(V=this.data)==null?void 0:V.engagementPanels;if(l==null?0:l.length){V=null;l=_.U(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var H=void 0;if(((H=I.engagementPanelSectionListRenderer)==null?void 0:H.targetId)==="engagement-panel-structured-description"){V=I;break}}var T,x,n;V=(T=V)==null?void 0:(x=T.engagementPanelSectionListRenderer)==null?void 0:(n=x.content)==null?void 0:n.structuredDescriptionContentRenderer;if(V==null?0:V.items){T=
[];x=_.U(V.items);for(n=x.next();!n.done;n=x.next()){n=n.value;if(!_.z("sd_horizontal_list_show_nav_killswitch")){var w=H=I=l=V=void 0,N=void 0,L=(V=n.horizontalCardListRenderer)==null?void 0:(l=V.header)==null?void 0:(I=l.richListHeaderRenderer)==null?void 0:(H=I.navigationButton)==null?void 0:(w=H.buttonRenderer)==null?void 0:(N=w.command)==null?void 0:N.commandExecutorCommand;L&&L.commands&&(L.commands=L.commands.filter(function(e){return!_.y(e,_.vnM)}))}n.expandableVideoDescriptionBodyRenderer||
n.videoDescriptionHeaderRenderer||T.push(n)}return{items:T}}}},
constructWarning_:function(V){return{text:_.pW(V),type:"WARNING"}},
isPlaShelfEnabled_:function(V){if((this.get("adPlacements",V)||[]).length)return!0;V=this.get("playerAds",V)||[];return!(!V.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",V[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var V=this;_.B$(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var l=this.getScrollTop()>0;this.gestures_&&(l?this.gestures_.detach():this.gestures_.attach());l!==this.showFullerscreenEdu_&&_.z("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=l,_.AU(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(V.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.B$(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var V=this;this.commentsReady=!1;_.r0.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.et(_.r0,function(){V.setComments_()},1E3)},
setComments_:function(){if(!_.z("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Z8("cmi");_.r0.cancelJob(this.setCommentsJobId_);var V=this.getPageContents(this.data);if(V&&V.length){V=_.U(V);for(var l=V.next();!l.done;l=V.next())if(l=l.value,this.get("itemSectionRenderer.sectionIdentifier",l)==="comment-item-section"){this.comments=l.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.B$(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.z("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.z("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Z8("cmc")},
doRemoveComments_:function(){this.comments={};_.z("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.r0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.r0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(V,l){var I=_.y(l.endpoint,_.vU);I&&(!(l=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==l.videoId||I.playlistId&&I.playlistId!==l.playlistId||_.z("kevlar_watch_timestamp_seek_playlist_index_comparison")&&I.index!==void 0&&I.index!==l.index||typeof I.startTimeSeconds!=="number"||(V.stopPropagation(),this.setScrollTop(0),_.AU(this).getPlayerPromise().then(function(H){var T=I.startTimeSeconds;H.seekTo(T);H.wakeUpControls();T<H.getDuration()&&H.playVideo()})))},
updatePlayerStartTime_:function(){var V=_.DK5();"t"in V&&(V=_.MhO(V.t),this.player.seekTo(V,!0))},
updateTitleFromWatchNext:function(V){V=this.getPageContents(V);var l,I;(V=_.A5(V==null?void 0:(l=V[0])==null?void 0:(I=l.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.B$(this.hostElement,"yt-update-title",V)},
updateTitle_:function(V){V=this.get("videoDetails.title",V)||"";_.B$(this.hostElement,"yt-update-title",V)},
syncWithRemoteVideo_:function(V,l,I){if(this.active&&this.player){var H=this.player.getVideoData();if(H.video_id===I&&(I=H.list,_.z("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),H.video_id!==V||I!=l)){var T;_.z("kevlar_player_watch_endpoint_navigation")?T=_.Wyf(_.Swj(V,l)):T=this.buildWatchEndpoint_(V,l);_.B$(this.hostElement,"yt-navigate",{endpoint:T,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(V,l,I){return _.mp(V,l,I)},
initDclkstatus_:function(){_.cl5()},
attachWatchPageSkeleton_:function(){var V=document.querySelector("#watch-page-skeleton");if(V){var l=V.querySelector("#primary-info"),I=V.querySelector("#secondary-info"),H=V.querySelector("#related");l&&_.h(this.hostElement).querySelector("#info-skeleton").appendChild(l);I&&_.h(this.hostElement).querySelector("#meta-skeleton").appendChild(I);H&&(_.h(this.hostElement).querySelector("#related-skeleton").appendChild(H),this.watchNextSkeletonEl_=H);_.Yw(V)}},
handlePlayerUpdated_:function(){_.AU(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(V,l){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof l!=="undefined"){var I=this.watchNextSkeletonEl_.children,H=V&&V.indexSplices.length?V.indexSplices[0].index:0;V=Math.min(this.watchNextShownItems.length,I.length);l||(H=0,V=I.length);for(l=H;l<V;l++)I[l].classList.add("hidden")}},
onPlayerFullscreenChange_:function(V){_.z("external_fullscreen")||_.xB(this.hostElement,"yt-player-fullscreen",[V.fullscreen])},
onFullscreenChange_:function(V){this.fullscreen=V;this.gestures_&&this.gestures_.update(this.fullscreen);var l=_.AU(this);l.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.iK())});
this.updateFullBleedElementLocations();V&&(l.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(V,l){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!l},
computeIsDonationShelfCollapsed_:function(V){return V},
computeShouldShowMerchShelf:function(V,l){return l&&!!V},
computeResponseHasComments:function(V){var l,I,H,T,x;return!!(V==null?0:(l=V.contents)==null?0:(I=l.twoColumnWatchNextResults)==null?0:(H=I.results)==null?0:(T=H.results)==null?0:(x=T.contents)==null?0:x.some(function(n){var w;return(n==null?void 0:(w=n.itemSectionRenderer)==null?void 0:w.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(V,l,I,H){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&H?!1:!!V&&!!Object.keys(V).length&&!l},
identity:_.Wy,onWindowResized_:function(V){this.windowSize_=V;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.z("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.z("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(V){var l=this;V&&V.type!=="dataloaded"&&V.type!=="dataupdated"||_.AU(this).getPlayerPromise().then(function(I){var H=I.getPlayerState();H!==5&&H!==0&&(I=1/I.getVideoAspectRatio(),l.videoHeightToWidthRatio_!==I&&(l.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(V){var l=this,I=_.z("kevlar_watch_while_v2")||_.z("web_watch_pip"),H=function(){if(l.watchMetadata){var T,x;(x=(T=l.watchMetadata).resize)==null||x.call(T)}_.AU(l).getPlayerPromise().then(function(n){if(_.z("kevlar_set_internal_player_size")){if(!I||!l.isMiniplayerActive()){var w=l.calculateCurrentPlayerSize_();n.setInternalSize(w.width,w.height)}}else n.setSize(NaN,NaN);_.z("kevlar_watch_while")&&l.updateWatchWhileScrollThreshold_()})};
V?H():_.t9(_.r0,H)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(V){this.set("data.survey",V.detail)},
onYtShowSurveyCommand_:function(V){this.set("data.survey",_.y(V,_.Cgd).survey)},
onDownloadedVideoDeleted:function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1){if(!l.active||(I=l.playerData)==null||!I.offlineState||l.videoId!==V)return T.return();(H=l.player)==null||H.stopVideo();_.jl().navigatingAwayFromWatchDeletedVideo=!0;_.IN(_.ypw,l.hostElement);return _.K(T,_.jl().navigationFinishPromise,2)}_.jl().navigatingAwayFromWatchDeletedVideo=!1;_.FU(T)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var V;this.theater?V=_.cA(.5625*this.windowSize_.width,480,this.windowSize_.height-185):V=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==V&&(this.watchWhileScrollThreshold_=V,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var V=_.h(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&V){var l=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!V.active&&l&&I>=this.watchWhileScrollThreshold_?(V.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):V.active&&(!l||I<this.watchWhileScrollThreshold_&&!_.iK())&&(V.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var V=_.h(this.hostElement).querySelector("#secondary-inner");if(V){var l=_.h(this.hostElement).querySelector("#below"),I=_.h(this.hostElement).querySelector("#secondary"),H=_.h(this.hostElement).querySelector("#comments");H&&I&&l&&(this.defaultTwoColumnLayout?(V.appendChild(H),I.appendChild(V)):(l.appendChild(H),_.WW(l,V)))}}},
isTwoColumnsChanged_:function(V,l){if(V!==!0||l!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(V=_.h(this.hostElement).querySelector("#secondary-inner"))){l=_.h(this.hostElement).querySelector("#below");var I=_.h(this.hostElement).querySelector("#secondary"),H=_.h(this.hostElement).querySelector("#comments");H&&I&&l&&(this.isTwoColumns_?(V.appendChild(H),I.appendChild(V)):(l.appendChild(H),_.WW(l,V)))}}else{V=!_.z("live_chat_over_engagement_panels");l=_.h(this.hostElement).querySelector("#chat-container");
I=_.h(this.hostElement).querySelector("#plj-sidebar");H=_.h(this.hostElement).querySelector("#panels");var T=_.h(this.hostElement).querySelector("#plj-panels"),x=_.h(this.hostElement).querySelector("#plj-playlist"),n=_.h(this.hostElement).querySelector("#alerts"),w=_.h(this.hostElement).querySelector("#playlist"),N=_.h(this.hostElement).querySelector("#related"),L=_.h(this.hostElement).querySelector("#donation-shelf"),e=_.h(this.hostElement).querySelector("#comments");this.isTwoColumns_?(n=_.h(this.hostElement).querySelector("#secondary-inner"),
n.appendChild(I),I.appendChild(x),x.appendChild(w),I.appendChild(T),V&&n.appendChild(H),_.z("web_watch_theater_chat")||n.appendChild(l),V||n.appendChild(H),n.appendChild(L),n.appendChild(N)):(V&&_.Wi(H,n),_.Wi(w,n),_.z("web_watch_theater_chat")||_.Wi(l,n),V||_.Wi(H,n),_.Wi(L,n),e&&_.Wi(N,e));_.z("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.z("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.z("web_watch_theater_chat")){var V=_.h(this.hostElement).querySelector("#chat-container"),l=this.theater&&!this.fullscreen||_.z("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&l?_.z("web_watch_theater_chat_beside_player")?(l=_.h(this.hostElement).querySelector("#panels-full-bleed-container"),(V==null?void 0:V.parentElement)!==l&&l.append(V),this.panelsBesidePlayer=!0):
_.z("web_watch_theater_fixed_chat")&&(l=_.h(this.hostElement).querySelector("#columns"),(V==null?void 0:V.parentElement)!==l&&l.append(V),this.fixedPanels=!0):(_.z("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.z("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),l=_.h(this.hostElement).querySelector("#playlist"),V&&l?_.b_(V,l):_.hF(new _.Yd("Missing element when updating chat location",{"chatContainer defined":!!V,"playlist defined":!!l})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(V,l){return _.z("sw_metadata_vis_toggle_ks")?!0:!!V||!!l},
computeForceDarkPanelTheme:function(V){return _.z("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&V:!1},
safeUpdateStyles:function(V){try{_.i3(this.hostElement,V)}catch(l){_.hF(l)}},
videoHeightToWidthRatioChanged_:function(V,l){l&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.z("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(V){this.videoHeightToWidthRatio_=1/V},
computeIsVerticalVideo_:function(V){return V>=1},
computeIsFourThreeToSixteenNineVideo_:function(V){return V<=.7501&&V>=.5624},
computeIsExtraWideVideo_:function(V){return V<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.AU(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.AU(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.H8p(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(V){var l=_.N9(V)||0;_.wd(V,l+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var V=_.N9("yt-fullerscreen-edu-button-click-count")||0,l=_.N9("yt-fullerscreen-edu-button-shown-count")||0,I=_.g7("external_fullscreen_button_shown_threshold"),H=V>=_.g7("external_fullscreen_button_click_threshold")||l>=I;_.AU(this).getPlayerPromise().then(function(T){T.updateFullerscreenEduButtonSubtleModeState(H)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(V,l){return l},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.F().resolve(_.cV).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var V=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.r0.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.r0.addLowPriorityJob(function(){V.fullHeightPanelPositionUpdateJobId=0;var l=_.h(V.hostElement).querySelector("#secondary"),I=_.h(V.hostElement).querySelector("#fixed-secondary");l=l.getBoundingClientRect();var H=l.width;V.swatcherooSqueezeback&&
(H+=_.bq);if(V.swatcherooSqueezeback){var T=_.h(V.hostElement).querySelector("#squeezeback-constraining-container");T.style.width=H+"px";T.style.flex="0 0 "+H+"px"}I.style.width=H+"px";I.style.left=l.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var V=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.r0.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.r0.addLowPriorityJob(function(){V.panelMaxHeightUpdateJob_=0;var l;!V.isTwoColumns_||V.theater||V.fullscreen?l=460:l=V.calculateNormalPlayerSize_().height;var I=l+"px";_.z("live_chat_taller_height")&&!V.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.z("live_chat_medium_height")&&!V.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.z("live_chat_scaled_height")&&!V.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");V.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":l+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":l+"px","--ytd-watch-flexy-comments-panel-max-height":l+"px","--ytd-comments-engagement-panel-content-height":l+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var V=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.z("web_watch_flexy_adjust_sidebar_width"))&&!_.z("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.r0.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.r0.addLowPriorityJob(function(){V.panelMaxHeightUpdateJob_=0;if(V.isTwoColumns_){var l=_.bCV(V.windowSize_,V.calculateNormalPlayerSize_().width);l!==V.currentSidebarWidth&&(V.currentSidebarWidth=
l,V.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":l+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(V){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",V)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.d6(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(V){var l=_.h(this.hostElement).querySelector("#engagement-panel-scrim");V?l.addEventListener("tap",_.VP(this,this.onEngagementPanelScrimClick_)):l.removeEventListener("tap",_.VP(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(V){if(this.hostElement.contains(V)&&!this.scrollToAnimation_.isAnimating()){var l=V.offsetTop-24;V=V.offsetTop+V.offsetHeight+24;var I=this.getPageScrollingElement(),H=this.getScrollTop(),T=H+I.clientHeight-56;if(l<H+56)l-=56;else if(V>T)l=V-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,l),500)}},
onYtSignalActionScrollToComments:function(){var V=this.hostElement.querySelector("#comments");if(V&&!this.scrollToAnimation_.isAnimating()){V=V.offsetTop-56-24;if(_.z("kevlar_comment_teaser_scroll_to_midpoint")&&(V-=_.LG().height/3,V<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,V),500)}},
onYtEngagementPanelVisibleChanged:function(V,l,I){this.active&&this.trackEngagementPanelVisibility&&!_.ttq.includes(I)&&(l==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(I),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.U4(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),l!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&l!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(V){return V?"":"watch-active-metadata"},
computeNewMetadataClass:function(V){return V?"watch-active-metadata":""},
computeFullBleedPlayer:function(V,l){return V||l},
computeDefaultLayout:function(V){return!V},
computeDefaultTwoColumnLayout:function(V,l){return!V&&l},
swatcherooUpdatePanelsLocation:function(V,l,I,H,T,x){if(this.is==="ytd-watch-grid"){l=V&&!l;this.swatcherooSplitScroll&&(l?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));I=_.h(this.hostElement).querySelector("#panels");var n=_.h(this.hostElement).querySelector("#playlist"),w=_.h(this.hostElement).querySelector("#fixed-secondary"),N=_.h(this.hostElement).querySelector("#fixed-below"),
L=_.h(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),e=_.h(this.hostElement).querySelector("#chat-container");x&&(V?w.appendChild(I):N.appendChild(I));T?V?w.appendChild(e):N.appendChild(e):_.b_(e,L);H?V?w.appendChild(n):N.appendChild(n):_.b_(n,L);this.swatcherooSplitScroll&&(V=_.h(this.hostElement).querySelector("#secondary"),H=_.h(this.hostElement).querySelector("#columns"),T=_.h(this.hostElement).querySelector("#fixed-columns-secondary"),l?T.appendChild(V):
H.appendChild(V))}},
computeMetadataSkinnyMode:function(V,l,I){return this.is!=="ytd-watch-grid"?!1:V?I:l},
computeWatchWhilePanelsActive:function(V,l){return V||l},
computeNoBorderOnChat:function(V){return _.z("web_watch_theater_chat_no_border")&&V},
computeLiveChatPresentAndExpanded:function(V,l){return V&&!l},
computePanelExpanded:function(V,l,I){return V||l||I},
computeSwatcherooSqueezeback:function(V,l,I){return this.is!=="ytd-watch-grid"||_.z("ww_squeezeback_killswitch")?!1:V&&l&&I},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(V){_.AU(this).getPlayerPromise().then(function(l){var I;(I=l.changeMarkerVisibility)==null||I.call(l,_.y(V,_.p5).isVisible||!1,_.y(V,_.p5).entityKeys||[],_.y(V,_.p5).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(V){this.liveChatCollapsed=V.detail;_.v4().dispatch(_.vzY(V.detail))},
onSetPlaylistCollapsed:function(V){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!V)},
provideRenderingData:function(V,l){switch(V){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=l;break;case "PRIMARY_INFO":_.z("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=l);this.videoPrimaryInfoRendererValue=l==null?void 0:l.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.z("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=l);this.videoSecondaryInfoRendererValue=l==null?void 0:l.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
l;break;case "CLARIFICATION":this.clarifyBoxValue=l;break;case "LIVE_CHAT":this.conversationBar=l;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=l;break;case "PLAYLIST":this.externalPlaylistData_=l!=null?l:{};break;case "MERCH_SHELF":this.merchShelfValue=l==null?void 0:l.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=l;break;case "OFFER_MODULE":this.offerModule=l;break;case "LIMITED_STATE":this.limitedStateValue=l;break;case "DONATION_SHELF":this.donation=l;break;
case "ALERTS":this.alertsValue=l;break;case "COMMENTS":this.comments=l;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=l;break;case "ENGAGEMENT_PANELS":this.engagementPanels=l;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=l;break;case "RICH_GRID_RENDERER":this.richGridRendererData=l;break;case "EXPANDABLE_METADATA":this.expandableMetadata=l;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=l}},
toggleCinematicsActive:function(V){this.cinematicsActive=V},
isMiniplayerActive:function(){return _.F().resolve(_.sH).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(V){return V.filter(function(l){var I;return Guh.includes((l==null?void 0:(I=l.engagementPanelSectionListRenderer)==null?void 0:I.targetId)||"")})},
getNonLearningJourneyEngagementPanels:function(V){return V.filter(function(l){var I;return!Guh.includes((l==null?void 0:(I=l.engagementPanelSectionListRenderer)==null?void 0:I.targetId)||"")})},
getHasLearningJourneyPanels:function(V){return V.length>0}}];var EAO;var JOq=function(){var V=_.M.apply(this,arguments)||this;V.flexy=!0;V.learningJourney=!0;V.roundedInfoPanel=!0;V.viewTransitionEnabled=_.z("enable_player_resize_transition");V.smallerChatMinHeight=_.z("live_chat_smaller_min_height");V.cinematicTheaterMode=_.z("web_cinematic_theater_mode");V.transparentTheaterMode=_.z("web_transparent_theater_mode");V.cinematicFullscreen=_.z("web_cinematic_fullscreen");V.useLargerMaxPlayerValue=_.z("kevlar_flexy_use_larger_player_value");V.cinematicFullscreenV2=_.z("web_cinematic_fullscreen_v2");
V.isDarkTheme=document.documentElement.hasAttribute("dark");V.theaterLargerPlayer=_.z("web_watch_theater_larger_player");V.defaultCollapsePlaylist=_.z("web_watch_default_collapse_playlist");return V};
_.t(JOq,_.M);_.B=JOq.prototype;_.B.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.B.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.B.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.B.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.B.ready=function(){var V=this,l=function(){V.onColumnScroll()};
this.primary.addEventListener("scroll",l);this.secondary.addEventListener("scroll",l)};
_.B.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.B.updateIsTwoColumnsFromBinding=function(V){_.z("web_watch_update_narrow_width_killswitch")||_.v4().dispatch(_.qqh(!V.detail.value));this.ytdWatchBehavior.isTwoColumns_=V.detail.value};
_.B.updateFlexySmallWindowFromBinding=function(V){this.ytdWatchBehavior.flexySmallWindow_=V.detail.value};
_.B.updateFlexyLargeWindowFromBinding=function(V){this.ytdWatchBehavior.flexyLargeWindow_=V.detail.value};
_.B.updateWatchWhileWindowSizeSufficientFromBinding=function(V){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=V.detail.value};
_.B.updateWatchNextCanShowMoreFromBinding=function(V){this.ytdWatchBehavior.watchNextCanShowMore=V.detail.value};
_.B.updateShownItemsFromBinding=function(V){V.detail.path?this.set(V.detail.path,V.detail.value):this.ytdWatchBehavior.watchNextShownItems=V.detail.value};
_.B.getElement=function(V){switch(V){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20306_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20306_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vI.Object.defineProperties(JOq.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.pageVisualEffects)return!1;for(var l=0;l<this.data.pageVisualEffects.length;l++)if(V=_.y(this.data.pageVisualEffects[l],_.DG))return l=void 0,(l=V.config)==null?void 0:l.enableInLightTheme;return!1}}});
_.vI.Object.defineProperties(JOq,{template:{configurable:!0,enumerable:!0,get:function(){if(EAO===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);EAO=V}V=EAO;return V}}});
var ir=JOq;ir.prototype.updateMiniplayerIsActiveValue=ir.prototype.updateMiniplayerIsActiveValue;ir.prototype.updateScrollTopValue=ir.prototype.updateScrollTopValue;ir.prototype.updateFullscreenValue=ir.prototype.updateFullscreenValue;ir.prototype.updateTheaterValue=ir.prototype.updateTheaterValue;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ir.prototype,"ytComponentBehavior",void 0);
_.O([_.R(rOj.YtdLearningJourneyWatchBehavior),_.a("design:type",Object)],ir.prototype,"ytdWatchBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],ir.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ir.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],ir.prototype,"playerData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"flexy",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"learningJourney",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"roundedInfoPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"viewTransitionEnabled",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"smallerChatMinHeight",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"cinematicTheaterMode",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"transparentTheaterMode",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"cinematicFullscreen",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"useLargerMaxPlayerValue",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"cinematicFullscreenV2",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"isDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],ir.prototype,"theaterLargerPlayer",void 0);_.O([_.q(),_.a("design:type",Object)],ir.prototype,"defaultCollapsePlaylist",void 0);_.O([_.q({selector:_.tk}),_.a("design:type",Object)],ir.prototype,"theaterValue",void 0);
_.O([_.q({selector:_.S8}),_.a("design:type",Object)],ir.prototype,"fullscreenValue",void 0);_.O([_.q({selector:_.R4}),_.a("design:type",Object)],ir.prototype,"scrollTopValue",void 0);_.O([_.q({selector:_.h5}),_.a("design:type",Object)],ir.prototype,"miniplayerIsActiveValue",void 0);_.O([_.f4("ytd-player"),_.a("design:type",HTMLElement)],ir.prototype,"ytdPlayer",void 0);_.O([_.Ij("#playlist"),_.a("design:type",HTMLElement)],ir.prototype,"JSC$20306_ytdPlaylistPanelRenderer",void 0);
_.O([_.f4("ytd-comments"),_.a("design:type",HTMLElement)],ir.prototype,"ytdComments",void 0);_.O([_.Ij("#primary"),_.a("design:type",HTMLElement)],ir.prototype,"primary",void 0);_.O([_.Ij("#secondary"),_.a("design:type",HTMLElement)],ir.prototype,"secondary",void 0);_.O([_.Ij("#player-container"),_.a("design:type",HTMLElement)],ir.prototype,"playerContainer",void 0);_.O([_.Ij("#cinematics"),_.a("design:type",HTMLElement)],ir.prototype,"JSC$20306_cinematics",void 0);
_.O([_.b("theaterValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ir.prototype,"updateTheaterValue",null);_.O([_.b("fullscreenValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ir.prototype,"updateFullscreenValue",null);_.O([_.b("scrollTopValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ir.prototype,"updateScrollTopValue",null);
_.O([_.b("miniplayerIsActiveValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ir.prototype,"updateMiniplayerIsActiveValue",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ir.prototype,"cinematicLightTheme",null);ir=_.O([_.A({is:"ytd-watch-learning-journey"})],ir);_.oe.registerService(_.nZJ,ir);
_.o8();
}catch(e){_._DumpException(e)}
try{
_.JK("Tm0L3c");
var jaC;var YAC;var LK6=function(){return _.M.apply(this,arguments)||this};
_.t(LK6,_.M);var eRh=LK6;eRh=_.O([_.A({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],eRh);
_.u(eRh,"ytd-ghost-comments-renderer",function(){if(YAC===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);YAC=V}V=YAC;return V},{mode:1});var kuY;var FKO=function(){return _.M.apply(this,arguments)||this};
_.t(FKO,_.M);var XUx=FKO;XUx=_.O([_.A({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],XUx);
_.u(XUx,"ytd-ghost-watch-metadata-renderer",function(){if(kuY===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);kuY=V}V=kuY;return V},{mode:1});var m9=function(){var V=_.M.apply(this,arguments)||this;V.ghostGridRenderer={rows:6};V.roundedInfoPanel=!0;V.hideOfferModules=!0;V.smallerChatMinHeight=_.z("live_chat_smaller_min_height");V.cinematicTheaterMode=_.z("web_cinematic_theater_mode");V.transparentTheaterMode=_.z("web_transparent_theater_mode");V.darkerPanels=_.z("web_watch_darker_panels");V.cinematicFullscreen=_.z("web_cinematic_fullscreen");V.cinematicFullscreenV2=_.z("web_cinematic_fullscreen_v2");V.isDarkTheme=document.documentElement.hasAttribute("dark");
return V};
_.t(m9,_.M);_.B=m9.prototype;_.B.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.B.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.B.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.B.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.B.ready=function(){var V=this,l=function(){V.onColumnScroll()};
this.primary.addEventListener("scroll",l);this.secondary.addEventListener("scroll",l)};
_.B.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.B.updateIsTwoColumnsFromBinding=function(V){this.ytdWatchBehavior.isTwoColumns_=V.detail.value};
_.B.updateFlexySmallWindowFromBinding=function(V){this.ytdWatchBehavior.flexySmallWindow_=V.detail.value};
_.B.updateFlexyLargeWindowFromBinding=function(V){this.ytdWatchBehavior.flexyLargeWindow_=V.detail.value};
_.B.updateWatchWhileWindowSizeSufficientFromBinding=function(V){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=V.detail.value};
_.B.updateWatchNextCanShowMoreFromBinding=function(V){this.ytdWatchBehavior.watchNextCanShowMore=V.detail.value};
_.B.updateShownItemsFromBinding=function(V){_.z("swatcheroo_direct_use_rich_grid")||(V.detail.path?this.set(V.detail.path,V.detail.value):this.ytdWatchBehavior.watchNextShownItems=V.detail.value)};
_.B.getElement=function(V){switch(V){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20297_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20297_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vI.Object.defineProperties(m9.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.pageVisualEffects)return!1;for(var l=0;l<this.data.pageVisualEffects.length;l++)if(V=_.y(this.data.pageVisualEffects[l],_.DG))return l=void 0,(l=V.config)==null?void 0:l.enableInLightTheme;return!1}}});
m9.prototype.updateMiniplayerIsActiveValue=m9.prototype.updateMiniplayerIsActiveValue;m9.prototype.updateScrollTopValue=m9.prototype.updateScrollTopValue;m9.prototype.updateFullscreenValue=m9.prototype.updateFullscreenValue;m9.prototype.updateTheaterValue=m9.prototype.updateTheaterValue;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],m9.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.wUM.YtdWatchBehavior),_.a("design:type",Object)],m9.prototype,"ytdWatchBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],m9.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],m9.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],m9.prototype,"ghostGridRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],m9.prototype,"playerData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"roundedInfoPanel",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"hideOfferModules",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"smallerChatMinHeight",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"cinematicTheaterMode",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"transparentTheaterMode",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"darkerPanels",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"cinematicFullscreen",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"cinematicFullscreenV2",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"isDarkTheme",void 0);_.O([_.q({selector:_.tk}),_.a("design:type",Object)],m9.prototype,"theaterValue",void 0);
_.O([_.q({selector:_.S8}),_.a("design:type",Object)],m9.prototype,"fullscreenValue",void 0);_.O([_.q({selector:_.R4}),_.a("design:type",Object)],m9.prototype,"scrollTopValue",void 0);_.O([_.q({selector:_.h5}),_.a("design:type",Object)],m9.prototype,"miniplayerIsActiveValue",void 0);_.O([_.Ij("#ytd-player"),_.a("design:type",HTMLElement)],m9.prototype,"ytdPlayer",void 0);_.O([_.Ij("#playlist"),_.a("design:type",HTMLElement)],m9.prototype,"JSC$20297_ytdPlaylistPanelRenderer",void 0);
_.O([_.Ij("#ytd-comments"),_.a("design:type",HTMLElement)],m9.prototype,"ytdComments",void 0);_.O([_.Ij("#primary"),_.a("design:type",HTMLElement)],m9.prototype,"primary",void 0);_.O([_.Ij("#secondary"),_.a("design:type",HTMLElement)],m9.prototype,"secondary",void 0);_.O([_.Ij("#player-container"),_.a("design:type",HTMLElement)],m9.prototype,"playerContainer",void 0);_.O([_.Ij("#cinematics"),_.a("design:type",HTMLElement)],m9.prototype,"JSC$20297_cinematics",void 0);
_.O([_.b("theaterValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],m9.prototype,"updateTheaterValue",null);_.O([_.b("fullscreenValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],m9.prototype,"updateFullscreenValue",null);_.O([_.b("scrollTopValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],m9.prototype,"updateScrollTopValue",null);
_.O([_.b("miniplayerIsActiveValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],m9.prototype,"updateMiniplayerIsActiveValue",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],m9.prototype,"cinematicLightTheme",null);
_.u(m9,"ytd-watch-grid",function(){if(jaC===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);jaC=V}V=jaC;return V},{mode:2});_.oe.registerService(_.UgT,m9);
_.o8();
}catch(e){_._DumpException(e)}
try{
_.JK("CF909");
var NSM;var KKd=function(){var V=_.M.apply(this,arguments)||this;V.flexy=!0;V.roundedInfoPanel=!0;V.viewTransitionEnabled=_.z("enable_player_resize_transition");V.smallerChatMinHeight=_.z("live_chat_smaller_min_height");V.cinematicTheaterMode=_.z("web_cinematic_theater_mode");V.transparentTheaterMode=_.z("web_transparent_theater_mode");V.cinematicFullscreen=_.z("web_cinematic_fullscreen");V.useLargerMaxPlayerValue=_.z("kevlar_flexy_use_larger_player_value");V.cinematicFullscreenV2=_.z("web_cinematic_fullscreen_v2");
V.isDarkTheme=document.documentElement.hasAttribute("dark");V.theaterLargerPlayer=_.z("web_watch_theater_larger_player");V.defaultCollapsePlaylist=_.z("web_watch_default_collapse_playlist");V.retroModeReduxValue=!1;return V};
_.t(KKd,_.M);_.B=KKd.prototype;_.B.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.B.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.B.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.B.updateRetroModeReduxValue=function(){_.z("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.B.ready=function(){var V=this,l=function(){V.onColumnScroll()};
this.primary.addEventListener("scroll",l);this.secondary.addEventListener("scroll",l)};
_.B.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.B.updateIsTwoColumnsFromBinding=function(V){_.z("web_watch_update_narrow_width_killswitch")||_.v4().dispatch(_.qqh(!V.detail.value));this.ytdWatchBehavior.isTwoColumns_=V.detail.value};
_.B.updateFlexySmallWindowFromBinding=function(V){this.ytdWatchBehavior.flexySmallWindow_=V.detail.value};
_.B.updateFlexyLargeWindowFromBinding=function(V){this.ytdWatchBehavior.flexyLargeWindow_=V.detail.value};
_.B.updateWatchWhileWindowSizeSufficientFromBinding=function(V){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=V.detail.value};
_.B.updateWatchNextCanShowMoreFromBinding=function(V){this.ytdWatchBehavior.watchNextCanShowMore=V.detail.value};
_.B.updateShownItemsFromBinding=function(V){V.detail.path?this.set(V.detail.path,V.detail.value):this.ytdWatchBehavior.watchNextShownItems=V.detail.value};
_.B.getElement=function(V){switch(V){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20292_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20292_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vI.Object.defineProperties(KKd.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.pageVisualEffects)return!1;for(var l=0;l<this.data.pageVisualEffects.length;l++)if(V=_.y(this.data.pageVisualEffects[l],_.DG))return l=void 0,(l=V.config)==null?void 0:l.enableInLightTheme;return!1}}});
_.vI.Object.defineProperties(KKd,{template:{configurable:!0,enumerable:!0,get:function(){if(NSM===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);NSM=V}V=NSM;return V}}});
var gI=KKd;gI.prototype.updateRetroModeReduxValue=gI.prototype.updateRetroModeReduxValue;gI.prototype.updateScrollTopValue=gI.prototype.updateScrollTopValue;gI.prototype.updateFullscreenValue=gI.prototype.updateFullscreenValue;gI.prototype.updateTheaterValue=gI.prototype.updateTheaterValue;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],gI.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.wUM.YtdWatchBehavior),_.a("design:type",Object)],gI.prototype,"ytdWatchBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],gI.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],gI.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],gI.prototype,"playerData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"flexy",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"roundedInfoPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"viewTransitionEnabled",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"smallerChatMinHeight",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"cinematicTheaterMode",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"transparentTheaterMode",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"cinematicFullscreen",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"useLargerMaxPlayerValue",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"cinematicFullscreenV2",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"isDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gI.prototype,"theaterLargerPlayer",void 0);_.O([_.q(),_.a("design:type",Object)],gI.prototype,"defaultCollapsePlaylist",void 0);_.O([_.q({selector:_.tk}),_.a("design:type",Object)],gI.prototype,"theaterValue",void 0);_.O([_.q({selector:_.S8}),_.a("design:type",Object)],gI.prototype,"fullscreenValue",void 0);
_.O([_.q({selector:_.R4}),_.a("design:type",Object)],gI.prototype,"scrollTopValue",void 0);_.O([_.q({selector:_.h5}),_.a("design:type",Object)],gI.prototype,"miniplayerIsActive",void 0);_.O([_.q({selector:function(V){return V.watch.isWatchRetroMode}}),
_.a("design:type",Object)],gI.prototype,"retroModeReduxValue",void 0);_.O([_.f4("ytd-player"),_.a("design:type",HTMLElement)],gI.prototype,"ytdPlayer",void 0);_.O([_.Ij("#playlist"),_.a("design:type",HTMLElement)],gI.prototype,"JSC$20292_ytdPlaylistPanelRenderer",void 0);_.O([_.f4("ytd-comments"),_.a("design:type",HTMLElement)],gI.prototype,"ytdComments",void 0);_.O([_.Ij("#primary"),_.a("design:type",HTMLElement)],gI.prototype,"primary",void 0);
_.O([_.Ij("#secondary"),_.a("design:type",HTMLElement)],gI.prototype,"secondary",void 0);_.O([_.Ij("#player-container"),_.a("design:type",HTMLElement)],gI.prototype,"playerContainer",void 0);_.O([_.Ij("#cinematics"),_.a("design:type",HTMLElement)],gI.prototype,"JSC$20292_cinematics",void 0);_.O([_.b("theaterValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gI.prototype,"updateTheaterValue",null);
_.O([_.b("fullscreenValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gI.prototype,"updateFullscreenValue",null);_.O([_.b("scrollTopValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gI.prototype,"updateScrollTopValue",null);_.O([_.b("retroModeReduxValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gI.prototype,"updateRetroModeReduxValue",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],gI.prototype,"cinematicLightTheme",null);gI=_.O([_.A({is:"ytd-watch-flexy"})],gI);_.oe.registerService(_.xgy,gI);
_.o8();
}catch(e){_._DumpException(e)}
try{
_.JK("nmfa2d");
var PgY;var sV=function(){var V=_.M.apply(this,arguments)||this;V.hidden=!1;V.errorScreen=null;V.playlistData={};return V};
_.t(sV,_.M);_.B=sV.prototype;_.B.getPlayer=function(){return this.ytdPlayer};
_.B.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:_.hk(["aa","eocs"])}}};
_.B.onActiveChanged=function(){_.v4().dispatch(_.bd5(this.ytPageBehavior.active))};
_.B.playerDataChanged=function(){var V;(V=this.watchController)==null||_.br(V,this.playerData)};
_.B.dataChanged=function(){var V;(V=this.watchController)==null||_.qM(V,this.data)};
_.B.sizeChanged=function(){var V,l;(l=(V=this.metadata).resize)==null||l.call(V)};
_.B.attached=function(){this.watchController=new _.Wc(this);this.playerData&&_.br(this.watchController,this.playerData);this.data&&_.qM(this.watchController,this.data)};
_.B.detached=function(){_.ag(this.watchController);this.watchController=void 0};
_.B.getPlayerContainer=function(){return this.playerContainer};
_.B.getElement=function(V){switch(V){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20244_playlistPanel}};
_.B.provideRenderingData=function(V,l){switch(V){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=l;break;case "ERROR_SCREEN":this.errorScreen=l!=null?l:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=l;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=l;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=l;break;case "RICH_METADATA":this.richMetadataRowContainer=l;break;case "CLARIFICATION":this.clarificationData=l;break;case "PLAYLIST":this.playlistData=
l!=null?l:{};break;case "MERCH_SHELF":this.merchShelf=l;break;case "TICKET_SHELF":this.ticketShelf=l;break;case "LIMITED_STATE":this.limitedState=l;break;case "DONATION_SHELF":this.donationShelf=l;break;case "ALERTS":this.alerts=l}};
_.vI.Object.defineProperties(sV.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return!this.hidden&&!!((V=this.data)==null?0:(l=V.contents)==null?0:(I=l.twoColumnWatchNextResults)==null?0:I.conversationBar)}}});
sV.prototype.sizeChanged=sV.prototype.sizeChanged;sV.prototype.dataChanged=sV.prototype.dataChanged;sV.prototype.playerDataChanged=sV.prototype.playerDataChanged;sV.prototype.onActiveChanged=sV.prototype.onActiveChanged;_.O([_.R(_.Rb.YtPageBehavior),_.a("design:type",Object)],sV.prototype,"ytPageBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],sV.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],sV.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"playerData",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],sV.prototype,"hidden",void 0);_.O([_.Ij("#ytd-player"),_.a("design:type",HTMLElement)],sV.prototype,"ytdPlayer",void 0);_.O([_.Ij("#player-container"),_.a("design:type",HTMLElement)],sV.prototype,"playerContainer",void 0);_.O([_.Ij("#metadata"),_.a("design:type",Object)],sV.prototype,"metadata",void 0);_.O([_.Ij("#playlist"),_.a("design:type",HTMLElement)],sV.prototype,"JSC$20244_playlistPanel",void 0);
_.O([_.q({selector:_.qPV,reflectToAttribute:!0}),_.a("design:type",Object)],sV.prototype,"fixie",void 0);_.O([_.q({selector:_.bQV,reflectToAttribute:!0}),_.a("design:type",Object)],sV.prototype,"singleColumn",void 0);_.O([_.q({selector:function(V){return _.tk(V)&&!_.S8(V)},
reflectToAttribute:!0}),_.a("design:type",Object)],sV.prototype,"theater",void 0);_.O([_.q({selector:_.S8,reflectToAttribute:!0}),_.a("design:type",Object)],sV.prototype,"fullscreen",void 0);_.O([_.q({selector:_.WVp}),_.a("design:type",Object)],sV.prototype,"windowSize",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"singleColumnContents",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"errorScreen",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"playlistData",void 0);
_.O([_.q(),_.a("design:type",Object)],sV.prototype,"videoPrimaryInfoRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"videoSecondaryInfoRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"richMetadataRowContainer",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"clarificationData",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"commentsEntryPointHeaderRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"ticketShelf",void 0);
_.O([_.q(),_.a("design:type",Object)],sV.prototype,"merchShelf",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"donationShelf",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"limitedState",void 0);_.O([_.q(),_.a("design:type",Object)],sV.prototype,"alerts",void 0);_.O([_.Q("playlistData"),_.a("design:type",Object),_.a("design:paramtypes",[])],sV.prototype,"hasPlaylistData",null);
_.O([_.Q("data","hidden"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sV.prototype,"hasChat",null);_.O([_.b("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sV.prototype,"onActiveChanged",null);_.O([_.b("playerData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sV.prototype,"playerDataChanged",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sV.prototype,"dataChanged",null);_.O([_.b("windowSize","singleColumn"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sV.prototype,"sizeChanged",null);
_.u(sV,"ytd-watch-fixie",function(){if(PgY===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);PgY=V}V=PgY;return V},{mode:1});_.oe.registerService(_.BHJ,sV);
_.o8();
}catch(e){_._DumpException(e)}
try{
_.JK("xwEKAe");
var Xw6=function(V){var l=_.Fu();if(l.getFlag(202))l=l.getFlag(201);else{var I;l=(V==null?void 0:(I=V.config)==null?void 0:I.settingOnByDefault)!==void 0?V.config.settingOnByDefault:!_.z("web_shorts_cinematics_disabled_by_default")}return l},z3d=function(V){var l=_.Fu();
_.Xu(0,201,V);_.Xu(0,202,!0);l.save()},yB5=function(V){return(V=_.xWq(V))?_.nug(V):0},toh=function(V){return V.shorts.isSmallScreenSqueezeback},rBp=function(V){return V.shorts.isPlaybackStarted},JBd=function(V,l,I){for(var H=[],T=0,x=-1;T<V.length;T++)T%3===0&&(x++,H[x]=[]),H[x].push(V[T]);
V=new j8(H);H=new j8([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);H=V.multiply(H);V=new j8([[0,0],[0,0],[0,0],[0,0]]);for(T=0;T<H.getSize().width;T++){x=YZ(H,0,T);var n=YZ(H,1,T);if(x===null||n===null)throw Error("fm`"+(T+1).toString());GEn(V,T,0,x*l);GEn(V,T,1,n*I)}l=YZ(V,0,0);T=YZ(V,1,0);I=YZ(V,0,1);x=YZ(V,1,1);if(l===null||T===null||I===null||x===null)throw Error("dm");H=EJM(l,T,I,x);n=YZ(V,3,0);V=YZ(V,3,1);if(n===null||V===null)throw Error("em");V=EJM(l,n,I,V);x=(Number((x*-1).toFixed(2))-Number((I*-1).toFixed(2)))/
(Number(T.toFixed(2))-Number(l.toFixed(2)));n=Math.atan(x)*180/Math.PI;T=x===Number.POSITIVE_INFINITY?-90:x===Number.NEGATIVE_INFINITY?90:Object.is(x,-0)?180:x===0?0:x>0?n*-1:l<T?n*-1:Math.abs(n)+180;return{top:I,left:l,width:H,height:V,rotation:T}},EJM=function(V,l,I,H){V=l-V;
I=H-I;return Math.sqrt(V*V+I*I)},oJ6=function(V,l){V&&_.F().resolve(_.aw).resolveCommand(V,{forceClickLogging:!0,
form:{element:l}})},PZj=function(V){var l=V.data;
var I=V.parentContainerWidth;var H=V.parentContainerHeight;var T=_.sZ(),x;return _.Y("yt-player-overlay-video-interactions",{el:T,class:"yt-player-overlay-video-interactions__video-interactions-wrapper"},l==null?void 0:(x=l.regions)==null?void 0:x.map(function(n){return h35(T,l,n,I,H)}))},h35=function(V,l,I,H,T){function x(){var X,r,E,D,Z=(r=_.y((X=w)==null?void 0:X.command,_.Hgw))==null?void 0:(E=r.item)==null?void 0:(D=E.notificationTextRenderer)==null?void 0:D.successResponseText;
if(Z)_.xB(V.value,"yt-open-popup-action",[_.CW(Z),V.value]);else if(N)oJ6(N,n.value);else{var S;oJ6((S=w)==null?void 0:S.command,n.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var n=_.sZ();if(I==null||!I.transformationMatrix)throw Error("gm");l.trackingParams&&_.x7().graftServerVe(l.trackingParams);I=JBd(I==null?void 0:I.transformationMatrix,H,T);I="left:"+I.left+"px; top:"+(I.top+"px; width:")+(I.width+"px; height:")+(I.height+"px; transform:rotate(")+(I.rotation+"deg);");var w=_.y(l==null?void 0:l.popUp,DNC),N=l==null?void 0:l.command,L=_.y(N,_.jM)!==void 0;l=l==null?void 0:l.a11yString;H=_.Bu(function(){L&&n.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover");
n.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
T=_.Bu(function(){n.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover");n.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
_.AF(n,"focus",function(){L&&n.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover")});
_.AF(n,"blur",function(){L&&n.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover")});
var e=_.Bu(function(){x();return!1}),k=_.Bu(function(X){X.key==="Enter"&&x();
return!1});
return _.Y("svg",{"on:mouseover":H,"on:mouseout":T,"on:keydown":k,el:n,tabindex:0,"aria-label":l,id:"player-overlay-video-interaction-svg",class:"yt-player-overlay-video-interactions__interactions-svg",role:"button",style:I,"on:click":e})},ZZp=function(V){V.unsubscribeFromStore=_.Ln(V.storeWithShorts,_.n7V,function(l){V.initOrDisposeActiveModules(l);
!l&&V.storeWithShorts.getState().shorts.isFullscreen&&(_.Vg(document.documentElement),V.storeWithShorts.dispatch(_.wXB(!1)))});
V.initOrDisposeActiveModules(_.n7V(V.storeWithShorts.getState()))},SNY=function(V){var l=_.F().resolve(_.T4);
l.rootElement=V;ZZp(l)},R3f=function(){return _.F().resolve(_.T4).dismissedIndices},Qin=function(V,l){var I=_.Ul("/youtube/app/player_caption_language_entity_key","stringEntity",2);
if(l){var H;((H=_.dw(_.HBt,I)())==null?void 0:H.value)!==l.displayName&&V.store.dispatch(_.K6("stringEntity",I,{key:I,value:l.displayName||""}))}else V.store.dispatch(_.K6("stringEntity",I,{key:I,value:"CAPTIONS_UNAVAILABLE"}))},cBV=function(V){var l;
(l=V.currentCinematicEffect)==null||l.clear()},WWp=function(V){return _.IA({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:V}})},bZq=function(V){return _.IA({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:V}})},qNh=function(V){return _.IA({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:V}})},j8=function(V,l){if(V instanceof j8)this.array_=V.array_;
else{var I;if(I=_.vy(V))a:{for(var H=I=0;H<V.length;H++){if(!_.vy(V[H])||I>0&&V[H].length!=I){I=!1;break a}for(var T=0;T<V[H].length;T++)if(typeof V[H][T]!=="number"){I=!1;break a}I==0&&(I=V[H].length)}I=I!=0}if(I)this.array_=_.uN(V);else if(V instanceof _.Yp)this.array_=MoM(V.height,V.width);else if(typeof V==="number"&&typeof l==="number"&&V>0&&l>0)this.array_=MoM(V,l);else throw Error("Zl");}this.size_=new _.Yp(this.array_[0].length,this.array_.length)},sip=function(V,l,I){for(var H=0;H<V.getSize().height;H++)for(var T=
0;T<V.getSize().width;T++)l.call(I,V.array_[H][T],H,T,V)},pwO=function(V,l){var I=new j8(V.getSize());
sip(V,function(H,T,x){I.array_[T][x]=l.call(void 0,H,T,x,V)});
return I},MoM=function(V,l){for(var I=[],H=0;H<V;H++){I[H]=[];
for(var T=0;T<l;T++)I[H][T]=0}return I};
j8.prototype.add=function(V){if(!_.OKd(this.size_,V.getSize()))throw Error("$l");return pwO(this,function(l,I,H){return l+V.array_[I][H]})};
j8.prototype.equals=function(V,l){if(this.size_.width!=V.size_.width||this.size_.height!=V.size_.height)return!1;l=l||0;for(var I=0;I<this.size_.height;I++)for(var H=0;H<this.size_.width;H++)if(!_.vTh(this.array_[I][H],V.array_[I][H],l))return!1;return!0};
j8.prototype.getSize=function(){return this.size_};
var YZ=function(V,l,I){return l>=0&&l<V.size_.height&&I>=0&&I<V.size_.width?V.array_[l][I]:null};
j8.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var GEn=function(V,l,I,H){if(!(l>=0&&l<V.size_.height&&I>=0&&I<V.size_.width))throw Error("am`"+l+"`"+I+"`"+V.size_.height+"`"+V.size_.width);V.array_[l][I]=H};
j8.prototype.multiply=function(V){if(V instanceof j8){if(this.size_.width!=V.getSize().height)throw Error("bm");return ABf(this,V)}if(typeof V==="number")return u0d(this,V);throw Error("cm");};
var ABf=function(V,l){var I=new j8(V.size_.height,l.getSize().width);sip(I,function(H,T,x){for(var n=H=0;n<this.size_.width;n++)H+=YZ(this,T,n)*YZ(l,n,x);GEn(I,T,x,H)},V);
return I},u0d=function(V,l){return pwO(V,function(I){return I*l})};var vJO=new _.f("inlineSurveyRenderer");var OZ5=new _.f("interstitialViewModel");var CZj=new _.f("reelNavigateCommand");var avh=new _.f("reelNonVideoContentDismissalCommand");var fvV=new _.f("showReelsCommentsOverlayCommand");var DNC=new _.f("videoInteractionPopUpRenderer");var gJC;var mNp;var iZY;var Vbj=function(){var V=_.M.apply(this,arguments)||this;V.ctaVisualElement=null;V.currentCsn=null;return V};
_.t(Vbj,_.M);_.B=Vbj.prototype;_.B.onDataChanged=function(){this.maybeLogShows()};
_.B.computeButtonShape=function(){var V=this;if(this.data)return{buttonText:_.A5(this.data.text),state:"active",onTap:function(){V.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.B.maybeCreateCtaVe=function(){var V;if((V=this.data)!=null&&V.badgeInteractionLogging){var l;if(V=(l=this.data.badgeInteractionLogging)==null?void 0:l.trackingParams)this.ctaVisualElement=_.dj(V)}};
_.B.maybeLogClicks=function(){this.currentCsn=_.oa(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.uJ(this.currentCsn,this.ctaVisualElement)};
_.B.maybeLogShows=function(){this.currentCsn=_.oa(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.pT(this.currentCsn,[this.ctaVisualElement])};
_.B.onTap=function(){var V;if((V=this.data)!=null&&V.onClickCommand){var l;this.ytComponentBehavior.resolveCommand((l=this.data)==null?void 0:l.onClickCommand);this.maybeLogClicks()}};
var L9=Vbj;L9.prototype.onDataChanged=L9.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],L9.prototype,"ytComponentBehavior",void 0);_.O([_.q({}),_.a("design:type",Object)],L9.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L9.prototype,"onDataChanged",null);
L9=_.O([_.A({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],L9);
_.u(L9,"ytd-shopping-overlay-badge-renderer",function(){if(iZY!==void 0)return iZY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return iZY=V},{mode:1});_.MR(_.VNY,"reel-sound-metadata-view-model",{props:{data:_.qR,overlayDensity:_.qR}});_.MR(_.qhV,"player-disclosure-view-model",{props:{data:_.b9}});_.MR(_.d8B,"pivot-button-view-model",{props:{data:_.qR,className:_.qR}});_.MR(_.wrW,"reel-action-bar-view-model",{props:{data:_.b9,buttonShapeOverrideables:_.b9}});_.m5(PZj);_.aN(PZj,"yt-player-overlay-video-interactions",{propNames:["data","parentContainerWidth","parentContainerHeight"]});_.MR(_.ufB,"yt-reel-metapanel-view-model",{props:{data:_.b9,overlayDensity:_.b9}});var lrn=function(){var V=_.M.apply(this,arguments)||this;V.showScrubber=!1;V.isWatchWhileMode=!1;V.enableAnchoredPanel=_.z("desktop_shorts_v2_anchored_panel");V.anchoredPanelActive=!1;V.enableLivingroomLayout=_.z("reels_enable_livingroom_layout");V.enablePlayerMetadataContainer=_.z("reels_web_enable_metadata_container");V.enableSqueezebackPanels=_.z("web_shorts_enable_squeezeback_panels");V.isSqueezebackActive=!1;V.smallScreenSqueezeback=!1;V.isPlayerStarted=!1;V.overlayDensity=0;V.isOverlay=!1;V.isImmersive=
!1;V.isImmersiveHorizontal=!1;V.isFullscreen=!1;V.onWindowResized=function(){var l;V.set("isImmersive",((l=window.getComputedStyle(V.hostElement))==null?void 0:l.getPropertyValue("--immersive-mode-on"))==="1");V.set("isImmersiveHorizontal",V.isImmersive&&V.enableLivingroomLayout&&!V.isWatchWhileMode);V.setPlayerDimensions()};
return V};
_.t(lrn,_.M);_.B=lrn.prototype;_.B.updateIsOverlay=function(V){this.isOverlay=V.detail.value};
_.B.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.z("web_enable_flexible_overlay")||_.z("web_enable_format_first")||_.z("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.B.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.B.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.B.onDataChanged=function(){this.setPlayerDimensions()};
_.B.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.B.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.B.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.B.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",_.m_("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.m_("reels_action_justified_content")||"flex-start")};
_.B.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}}};
_.B.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.LT("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.LT("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.LT("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.LT("SHARE_LABEL",
void 0,"Share")}}});_.z("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.LT("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()};
_.B.setEmptyOverlayMetadata=function(){_.z("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}))};
_.B.setPlayerDimensions=function(){var V=document.getElementById("short-video-container"),l,I;V&&((l=this.data)==null?0:(I=l.videoInteractions)==null?0:I.interactions)&&(this.playerContainerHeight=V.getBoundingClientRect().height,this.playerContainerWidth=V.getBoundingClientRect().width)};
_.vI.Object.defineProperties(lrn.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.infoPanel)}}});
var e8=lrn;e8.prototype.onDataChanged=e8.prototype.onDataChanged;e8.prototype.onIsActiveChanged=e8.prototype.onIsActiveChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],e8.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],e8.prototype,"ytdReduxBehavior",void 0);
_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],e8.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],e8.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],e8.prototype,"isActive",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],e8.prototype,"hidden",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],e8.prototype,"useShortsIcon",void 0);
_.O([_.q({value:"left"}),_.a("design:type",String)],e8.prototype,"buttonTooltipPosition",void 0);_.O([_.q({value:_.z("reels_enable_livingroom_layout")?"top":"left"}),_.a("design:type",String)],e8.prototype,"likeButtonTooltipPosition",void 0);_.O([_.q({value:"none"}),_.a("design:type",String)],e8.prototype,"textTransform",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],e8.prototype,"showScrubber",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],e8.prototype,"isWatchWhileMode",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.infoPanel"),_.a("design:type",Object),_.a("design:paramtypes",[])],e8.prototype,"hasInfoPanel",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],e8.prototype,"enableAnchoredPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],e8.prototype,"anchoredPanelActive",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],e8.prototype,"enableLivingroomLayout",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],e8.prototype,"enablePlayerMetadataContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],e8.prototype,"enableSqueezebackPanels",void 0);_.O([_.q({selector:_.rSJ,reflectToAttribute:!0}),_.a("design:type",Object)],e8.prototype,"isSqueezebackActive",void 0);
_.O([_.q({selector:toh,reflectToAttribute:!0}),_.a("design:type",Object)],e8.prototype,"smallScreenSqueezeback",void 0);_.O([_.q({selector:rBp}),_.a("design:type",Object)],e8.prototype,"isPlayerStarted",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],e8.prototype,"overlayDensity",void 0);_.O([_.q(),_.a("design:type",Object)],e8.prototype,"isOverlay",void 0);
_.O([_.q({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.a("design:type",Boolean)],e8.prototype,"isShortsOverlay",void 0);_.O([_.q(),_.a("design:type",Object)],e8.prototype,"isImmersive",void 0);_.O([_.q(),_.a("design:type",Object)],e8.prototype,"isImmersiveHorizontal",void 0);_.O([_.q({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.a("design:type",Boolean)],e8.prototype,"isShortsImmersive",void 0);
_.O([_.q({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.a("design:type",Object)],e8.prototype,"buttonOverride",void 0);_.O([_.q(),_.a("design:type",Number)],e8.prototype,"playerContainerHeight",void 0);_.O([_.q(),_.a("design:type",Number)],e8.prototype,"playerContainerWidth",void 0);_.O([_.q({selector:_.Lv,reflectToAttribute:!0}),_.a("design:type",Object)],e8.prototype,"isFullscreen",void 0);
_.O([_.b("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e8.prototype,"onIsActiveChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e8.prototype,"onDataChanged",null);e8=_.O([_.A({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],e8);
_.u(e8,"ytd-reel-player-overlay-renderer",function(){if(mNp!==void 0)return mNp;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" parent-container-height="[[playerContainerHeight]]" parent-container-width="[[playerContainerWidth]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return mNp=V},{mode:1});var Irf;var kZ=function(){var V=_.M.apply(this,arguments)||this;V.videoDuration=0;V.playedTime=0;V.isActive=!1;V.JSC$19492_playerEvents=new Map;return V};
_.t(kZ,_.M);_.B=kZ.prototype;_.B.created=function(){this.JSC$19492_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19492_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.B.attached=function(){this.getPlayerAndInitializeListeners()};
_.B.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19492_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.VP(this,this.onPageChanged))};
_.B.getPlayerAndInitializeListeners=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return l=_.u8(),l?_.K(I,l.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.VP(V,V.onPageChanged)),I.jumpTo(0));V.player=I.yieldResult;V.initializePlayerListeners();_.FU(I)})};
_.B.onPageChanged=function(V){var l=this;return _.d(function(I){if(I.nextAddress==1)return V.detail.newPageType!=="ytd-shorts"?I.return():_.K(I,_.vu().getPlayerPromise(),2);l.player=I.yieldResult;l.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.VP(l,l.onPageChanged));_.FU(I)})};
_.B.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19492_playerEvents)};
_.B.onVideoDataChange=function(V){var l=this;return _.d(function(I){if(!l.player||V.type!=="newdata")return I.return();l.videoDuration=_.z("web_shorts_use_progress_state_for_gapless")?l.player.getProgressState(V.playertype).seekableEnd:l.player.getDuration(V.playertype);l.playedTime=0;_.FU(I)})};
_.B.onVideoProgress=function(V){var l=this,I,H;return _.d(function(T){if(!l.player)return T.return();I=l.player.getPresentingPlayerType();H=l.player.getPlayerState();l.videoDuration=_.z("web_shorts_use_progress_state_for_gapless")?l.player.getProgressState(I).seekableEnd:l.player.getDuration(I);l.playedTime=H===0?l.videoDuration:V;_.FU(T)})};
_.B.getPercentPlayed=function(V,l){return V?_.cA(l/V,0,1):0};
_.vI.Object.defineProperties(kZ.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 V="";return V=this.videoDuration&&this.playedTime?V+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):V+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],kZ.prototype,"componentBehavior",void 0);_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],kZ.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],kZ.prototype,"player",void 0);_.O([_.q(),_.a("design:type",Object)],kZ.prototype,"videoDuration",void 0);_.O([_.q(),_.a("design:type",Object)],kZ.prototype,"playedTime",void 0);_.O([_.q(),_.a("design:type",Object)],kZ.prototype,"isActive",void 0);
_.O([_.Q("videoDuration","playedTime"),_.a("design:type",Number),_.a("design:paramtypes",[])],kZ.prototype,"percentPlayed",null);_.O([_.Q("videoDuration","playedTime"),_.a("design:type",Object),_.a("design:paramtypes",[])],kZ.prototype,"percentPlayedStyle",null);_.O([_.Q("videoDuration","isActive"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kZ.prototype,"hideProgressBar",null);
_.u(kZ,"ytd-progress-bar-line",function(){if(Irf===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);Irf=V}V=Irf;return V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var HQq;_.aN(_.O3t,"desktop-shorts-volume-controls",{propNames:["noSlider"]});var Fn=function(){var V=_.M.apply(this,arguments)||this;V.playerState=null;V.isMuted=!1;V.shortsPipButtonEnabled=_.z("web_shorts_pip_button");V.JSC$19496_playerEvents=new Map;V.shortsPipButtonData={disabled:!1,iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal"};return V};
_.t(Fn,_.M);_.B=Fn.prototype;_.B.created=function(){this.JSC$19496_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19496_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.B.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.eU(28662);this.playPauseButtonClientVE=_.eU(36842);this.fullscreenButtonToggleOffClientVE=_.eU(222256);this.fullscreenButtonToggleOnClientVE=_.eU(222257);var V=_.oa(),l=_.JO();V&&l&&(_.z("combine_ve_grafts")?(_.Ug(_.x7(),this.muteButtonClientVE,l),_.Ug(_.x7(),this.playPauseButtonClientVE,l)):_.ah(V,l,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.B.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19496_playerEvents),this.player=null)};
_.B.getPlayerAndInitializeListeners=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return l=_.u8(),l?_.K(I,l.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.VP(V,V.onPageChanged)),I.jumpTo(0));V.player=I.yieldResult;V.initializePlayerListeners();_.FU(I)})};
_.B.onPageChanged=function(V){var l=this;return _.d(function(I){if(I.nextAddress==1)return V.detail.newPageType!=="ytd-shorts"?I.return():_.K(I,_.vu().getPlayerPromise(),2);l.player=I.yieldResult;l.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.VP(l,l.onPageChanged));_.FU(I)})};
_.B.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19496_playerEvents)};
_.B.onPlayerStateChange=function(V){this.playerState=V};
_.B.onPlayerVolumeChange=function(V){this.isMuted=V.muted};
_.B.onPlayPauseButtonClick=function(){var V=this,l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,_.vu().getPlayerPromise(),2);l=H.yieldResult;(I=_.oa())&&V.playPauseButtonClientVE&&_.uJ(I,V.playPauseButtonClientVE);l.getPlayerState()!==1?l.playVideo():l.pauseVideo();_.FU(H)})};
_.B.computePlayPauseIcon=function(V){return V===2||V===-1||V===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.B.computeFullscreenLabel=function(V){return V?_.LT("FULLSCREEN_EXIT_LABEL"):_.LT("FULLSCREEN_ENTER_LABEL")};
_.B.computePlayPauseLabel=function(V){return V===1||V===3?_.LT("PLAYER_LABEL_PAUSE"):_.LT("PLAYER_LABEL_PLAY")};
_.B.onMuteButtonClick=function(){var V=this,l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,_.vu().getPlayerPromise(),2);l=H.yieldResult;(I=_.oa())&&V.muteButtonClientVE&&_.uJ(I,V.muteButtonClientVE);l.isMuted()?l.unMute(!0):l.mute(!0);_.FU(H)})};
_.B.computeMuteIcon=function(V){return V?"miniplayer:volume-off":"miniplayer:volume-up"};
_.B.computeMuteLabel=function(V){return V?_.LT("PLAYER_LABEL_UNMUTE"):_.LT("PLAYER_LABEL_MUTE")};
_.B.onFullscreenButtonClick=function(){var V=_.oa();V&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.uJ(V,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.uJ(V,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.NjQ()};
_.B.onShortsPipButtonClick=function(){var V=_.F().resolve(_.T4);if(_.z("web_shorts_pip")){var l=_.F().resolve(_.sH);V.isShortsPipActive()?l.deactivate():l.isMiniplayerActive()||(_.jl().shortsPipActivation=!0,_.aBV(l))}};
_.vI.Object.defineProperties(Fn.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var V=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(){V.onPlayPauseButtonClick()}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Fn.prototype,"componentBehavior",void 0);_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],Fn.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Fn.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Fn.prototype,"player",void 0);_.O([_.q(),_.a("design:type",Object)],Fn.prototype,"playerState",void 0);_.O([_.q(),_.a("design:type",Object)],Fn.prototype,"isMuted",void 0);
_.O([_.q({computed:"computePlayPauseIcon(playerState)"}),_.a("design:type",String)],Fn.prototype,"playPauseIcon",void 0);_.O([_.q({computed:"computeMuteIcon(isMuted)"}),_.a("design:type",String)],Fn.prototype,"muteIcon",void 0);_.O([_.q({selector:_.Lv}),_.a("design:type",Boolean)],Fn.prototype,"isFullscreen",void 0);_.O([_.q({selector:_.en}),_.a("design:type",Boolean)],Fn.prototype,"isShortsPipActive",void 0);_.O([_.q(),_.a("design:type",Object)],Fn.prototype,"shortsPipButtonEnabled",void 0);
_.O([_.q(),_.a("design:type",Object)],Fn.prototype,"shortsPipButtonData",void 0);_.O([_.Q("playerState"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fn.prototype,"playPauseButtonData",null);_.O([_.Q("isFullscreen"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fn.prototype,"fullscreenButtonData",null);_.O([_.Q("isFullscreen"),_.a("design:type",String),_.a("design:paramtypes",[])],Fn.prototype,"fullscreenIcon",null);
_.O([_.Q("isShortsPipActive"),_.a("design:type",String),_.a("design:paramtypes",[])],Fn.prototype,"shortsPipIcon",null);
_.u(Fn,"ytd-shorts-player-controls",function(){if(HQq===void 0){var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n<yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);HQq=V}V=HQq;return V},{mode:1});var TgV;_.MR(_.AeQ,"yt-interstitial-view-model",{props:{data:_.b9}});var Bgp=_.W1(function(V){var l=V.data;return _.Y("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.Y("h1",{class:"reelWatchBreakViewModelHostTitle"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y("h2",{class:"reelWatchBreakViewModelHostBody"},_.Y(_.Ni,{text:function(){return l().body},
isOverlay:!0})),_.Y(_.rw,{data:function(){return l().buttons}},{buttonViewModel:function(I,H){return _.Y("div",{class:function(){return H()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.Y(_.Db,{data:I.data}))}}))},"Hh");
Bgp.idomCompat=!0;_.MR(Bgp,"reel-watch-break-view-model",{props:{data:_.b9}});var xEq=function(){return _.M.apply(this,arguments)||this};
_.t(xEq,_.M);xEq.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}}};
_.vI.Object.defineProperties(xEq.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var V;return!!_.y((V=this.data)==null?void 0:V.renderer,vJO)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var V;return!!_.y((V=this.data)==null?void 0:V.renderer,OZ5)}}});
var Xn=xEq;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Xn.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Xn.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Xn.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.renderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Xn.prototype,"isSurvey",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.renderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Xn.prototype,"isInterstitialViewModel",null);Xn=_.O([_.A({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Xn);
_.u(Xn,"ytd-reel-non-video-content-renderer",function(){if(TgV!==void 0)return TgV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return TgV=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var UEq;_.MR(_.b0E,"desktop-shorts-player-controls",{});var nh6=function(){var V=_.M.apply(this,arguments)||this;V.isPlayerPaused=!1;V.isPlayerStarted=!1;V.showPlayerControls=!1;V.showScrubber=!1;V.autoHideJobId=0;V.backgroundImageJobId=0;V.modern=_.z("web_button_rework");V.overlayType=_.m_("web_shorts_expanded_overlay_type");V.panelData=void 0;V.isWatchWhileMode=!1;V.hasError=!1;V.panelShowDelayMs=1;V.scrubberComponent={};V.useStamper=_.z("web_shorts_enable_title_deflation");V.isFullscreen=!1;V.shouldHideOverlay=!1;V.enableAnchoredPanel=_.z("desktop_shorts_v2_anchored_panel");
V.enablePersistentAnchoredPanel=_.z("desktop_shorts_v2_persistent_anchored_panel");V.hideWatchWhilePanel=_.z("web_shorts_hide_watch_while_panel");V.isPersistentPanelActive=!1;V.anchoredPanelActive=!1;V.enableNewCarousel=_.z("web_enable_shorts_new_carousel_single_instance");V.isShortsPipActive=!1;V.smallScreenSqueezeback=!1;V.enableFlexibleOverlay=_.z("web_enable_flexible_overlay");V.aspectRatio=.5625;V.overlayDensity=0;V.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand",
"yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};V.onWindowResized=function(){_.Go(V,"calculateOverlayDensity",function(){V.calculateOverlayDensity()},100)};
return V};
_.t(nh6,_.M);_.B=nh6.prototype;_.B.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.B.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.B.shouldRenderOverlayControl=function(V){return!this.useStamper&&this.isVideoContent(V)};
_.B.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var V=_.F().resolve(_.Eu);this.isWatchWhileMode&&(_.z("web_enable_shorts_new_carousel")?_.r0.addJob(function(){V.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):V.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.B.handleShowReelsCommentsOverlayCommand=function(V){V=_.y(V,fvV);this.isActive&&(V==null?0:V.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))};
_.B.updateEngagementPanelVisibility=function(V,l){V&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:l?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:V}})};
_.B.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.B.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.F().resolve(_.T4).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.B.handleWatchWhilePanelScrimClick=function(){var V=_.F().resolve(_.Eu);this.activeWatchWhilePanel&&(V.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.B.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.B.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:_.z("web_enable_shorts_new_carousel")?0:void 0}}};
_.B.handlePlayerClick=function(V){var l=this,I,H;if((H=(I=window).matchMedia)!=null&&H.call(I,"(any-pointer: coarse)").matches||!V)this.showPlayerControls=!0,_.r0.cancelJob(this.autoHideJobId),this.autoHideJobId=_.et(_.r0,function(){l.showPlayerControls=!1},4E3)};
_.B.isFirstReel=function(){return this.index===0};
_.B.handleMouseenter=function(){_.r0.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.B.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.B.handleScrubberEnter=function(){this.showScrubber=!0};
_.B.handleScrubberLeave=function(){this.showScrubber=!1};
_.B.onAspectRatioChange=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return V.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+V.aspectRatio),V.isActive?_.K(I,_.F().resolve(_.T4).playerApi,3):I.jumpTo(0);(l=I.yieldResult)&&l.setSize(NaN,NaN);_.FU(I)})};
_.B.updateBackgroundImage=function(){var V=this,l;if((l=this.data)!=null&&l.thumbnail){var I=(l=_.pt(this.data.thumbnail.thumbnails))?'background-image:url("'+l+'");':"",H;I.toString()!==((H=this.backgroundImage)==null?void 0:H.toString())&&(this.isActive?this.backgroundImage=I:(_.r0.cancelJob(this.backgroundImageJobId),this.backgroundImageJobId=_.et(_.r0,function(){V.isAttached&&(V.backgroundImage=I)},1E3)))}else this.backgroundImage=void 0};
_.B.setAspectRatio=function(){var V;(V=this.data)!=null&&V.thumbnail&&(this.isActive&&.5625!==yB5(this.data.thumbnail)&&_.jU("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO"),this.enableFormatFirst&&(this.aspectRatio=this.isPersistentPanelActive?.5625:yB5(this.data.thumbnail)))};
_.B.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var V=document.querySelector("#shorts-container");if(V){V=V.offsetWidth-96-this.playerContainer.offsetWidth-72;V=V>=720?1:V>=360?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&V===1&&(V=0);this.isPersistentPanelActive&&(V=0);this.overlayDensity=V;var l;(l=this.onOverlayDensityChanged)==null||l.call(this,this.index,this.overlayDensity)}}};
_.B.onOverlayDensityChange=function(){var V;(V=this.onOverlayDensityChanged)==null||V.call(this,this.index,this.overlayDensity);(V=_.h(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&V.set("overlayDensity",this.overlayDensity);if(V=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))V.overlayDensity=this.overlayDensity};
_.B.isVideoContent=function(V){_.F().resolve(_.T4);return!!_.y(V,_.YV)};
_.B.isNonVideoContent=function(V){_.F().resolve(_.T4);return!!_.y(V,_.Z0)};
_.B.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.vI.Object.defineProperties(nh6.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var V,l;return _.z("web_enable_format_first")||((V=this.data)==null?void 0:V.adsOverlay)&&_.z("web_enable_format_first_ads_only")||((l=this.data)==null?void 0:l.reelPlayerOverlayRenderer)&&_.z("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 V;return!this.isActive||!this.isPlayerStarted||(V=this.data)!=null&&V.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var V;if(this.useStamper&&((V=this.data)==null?0:V.command)&&this.isVideoContent(this.data.command)){var l,I;if(((l=this.data)==null?0:l.adsOverlay)&&Object.keys((I=this.data)==null?void 0:I.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var H,T;if(((H=this.data)==null?0:H.reelPlayerOverlayRenderer)&&Object.keys((T=this.data)==null?void 0:T.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
var zy=nh6;zy.prototype.onOverlayDensityChange=zy.prototype.onOverlayDensityChange;zy.prototype.calculateOverlayDensity=zy.prototype.calculateOverlayDensity;zy.prototype.setAspectRatio=zy.prototype.setAspectRatio;zy.prototype.updateBackgroundImage=zy.prototype.updateBackgroundImage;zy.prototype.onAspectRatioChange=zy.prototype.onAspectRatioChange;zy.prototype.onEngagementPanelsChanged=zy.prototype.onEngagementPanelsChanged;zy.prototype.onScrubberDataChange=zy.prototype.onScrubberDataChange;
zy.prototype.updateShouldHideOverlay=zy.prototype.updateShouldHideOverlay;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],zy.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],zy.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Number)],zy.prototype,"index",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],zy.prototype,"isActive",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],zy.prototype,"isHiddenInDom",void 0);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"isPlayerPaused",void 0);_.O([_.q({selector:rBp}),_.a("design:type",Object)],zy.prototype,"isPlayerStarted",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"showPlayerControls",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"showScrubber",void 0);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"autoHideJobId",void 0);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"backgroundImageJobId",void 0);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"backgroundImage",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"modern",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"overlayType",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],zy.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],zy.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"watchWhileEngagementPanels",void 0);
_.O([_.q(),_.a("design:type",Object)],zy.prototype,"panelData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"isWatchWhileMode",void 0);_.O([_.q(),_.a("design:type",String)],zy.prototype,"activeWatchWhilePanel",void 0);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"hasError",void 0);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"panelShowDelayMs",void 0);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"scrubberComponent",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"useStamper",void 0);_.O([_.q({selector:_.Lv,reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"isFullscreen",void 0);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"shouldHideOverlay",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"enableAnchoredPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"enablePersistentAnchoredPanel",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"hideWatchWhilePanel",void 0);_.O([_.q({selector:_.rSJ,reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"isPersistentPanelActive",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"anchoredPanelActive",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"enableNewCarousel",void 0);
_.O([_.q({selector:_.en,reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"isShortsPipActive",void 0);_.O([_.q({selector:toh,reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"smallScreenSqueezeback",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],zy.prototype,"enableFormatFirst",null);_.O([_.q(),_.a("design:type",Object)],zy.prototype,"enableFlexibleOverlay",void 0);
_.O([_.q(),_.a("design:type",Object)],zy.prototype,"aspectRatio",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zy.prototype,"overlayDensity",void 0);_.O([_.q(),_.a("design:type",Function)],zy.prototype,"onOverlayDensityChanged",void 0);_.O([_.q(),_.Q("isActive","hasError"),_.a("design:type",Object),_.a("design:paramtypes",[])],zy.prototype,"shouldRenderPlayerElements",null);
_.O([_.q(),_.Q("isActive","isWatchWhileMode"),_.a("design:type",Object),_.a("design:paramtypes",[])],zy.prototype,"watchWhileOrPersistentActive",null);_.O([_.b("isActive","hasError","showingExpandedOverlay"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zy.prototype,"updateShouldHideOverlay",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("isActive","isPlayerStarted","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],zy.prototype,"shouldRenderScrubber",null);_.O([_.b("shouldRenderScrubber"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zy.prototype,"onScrubberDataChange",null);_.O([_.Q("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],zy.prototype,"overlayComponent",null);
_.O([_.b("watchWhileEngagementPanels"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zy.prototype,"onEngagementPanelsChanged",null);_.O([_.Ij("#player-container"),_.a("design:type",HTMLElement)],zy.prototype,"playerContainer",void 0);_.O([_.Ij("#cinematic-container"),_.a("design:type",HTMLElement)],zy.prototype,"cinematicContainer",void 0);
_.O([_.b("aspectRatio"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],zy.prototype,"onAspectRatioChange",null);_.O([_.b("data.thumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zy.prototype,"updateBackgroundImage",null);_.O([_.b("isPersistentPanelActive","data.thumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zy.prototype,"setAspectRatio",null);
_.O([_.b("isPersistentPanelActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zy.prototype,"calculateOverlayDensity",null);_.O([_.b("overlayDensity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zy.prototype,"onOverlayDensityChange",null);zy=_.O([_.A({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],zy);
_.u(zy,"ytd-reel-video-renderer",function(){if(UEq!==void 0)return UEq;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave" style$="[[backgroundImage]]">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n        <div class="player-controls style-scope ytd-reel-video-renderer">\n          <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-reel-video-renderer">\n            <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n          </template>\n          <template is="dom-if" if="[[!enableNewCarousel]]" class="style-scope ytd-reel-video-renderer">\n            <ytd-shorts-player-controls class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n          </template>\n        </div>\n      </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return UEq=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var $Ed=function(){var V=_.M.apply(this,arguments)||this;V.isPreviousPageShorts=!1;V.index=0;V.delayedActiveIndex=0;V.playablePreviousIndex=null;V.isPlayerPaused=!1;V.isPlayerStarted=!1;V.intersectionObserverThreshold=.6;V.fitToVisibleBounds=!1;V.pageSubtype="shorts";V.panelShowDelayMs=_.g7("enable_shorts_panel_show_delay_ms");V.enablePreviousContinuation=_.z("shorts_in_playlists_web");V.shortsPipEnabled=_.z("web_shorts_pip");V.isDark=document.documentElement.hasAttribute("dark");V.shortsViewTransitions=
_.z("web_shorts_view_transitions");V.isFullscreen=!1;V.isShortsPipActive=!1;V.buttonOverride={iconPosition:"icon-only",size:"XL"};V.anchoredPanelActive=!1;V.isActive=!1;V.smallScreenPersistentPanel=!1;V.isPersistentPanelActive=!1;V.smallScreenSqueezeBack=!1;V.enableScrollIntoViewCenter=_.z("web_scroll_into_view_center");V.formatFirst=_.z("web_enable_format_first")||_.z("web_enable_format_first_ads_only")||_.z("web_enable_format_first_organic_only");V.enableFlexibleOverlay=_.z("web_enable_flexible_overlay");
V.enableNewCarousel=_.z("web_enable_shorts_new_carousel_single_instance");V.isShortsInitialized=!1;V.hidePreviousButtonImmediately=!1;V.showPreviousButtonImmediately=!1;V.currentPlayerIndex=0;V.nextReelVe=_.eU(56921);V.prevReelVe=_.eU(56922);V.loopToggleOffVe=_.eU(198013);V.loopToggleOnVe=_.eU(198014);V.ambientModeToggleVe=_.eU(227860);V.reelPlayerPausedStateRendererVe=_.eU(141313);V.storedPlaybackSpeed=null;V.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"};V.onOverlayDensityChanged=function(l,I){var H;(H=V.getActiveReelVideo(l))==null||H.setAttribute("overlay-density",String(I))};
return V};
_.t($Ed,_.M);_.B=$Ed.prototype;
_.B.deflateInactivePreviousSlides=function(){var V=_.g7("web_shorts_deflate_inactive_slides_aggressive_distance");if(V>0&&this.shortsProcessedSequence&&this.activeIndex){V=this.activeIndex-V;for(var l=0;l<=V;l++){var I=void 0;((I=this.shortsProcessedSequence[l].reelPlayerOverlayRenderer)==null?0:I.likeButton)&&this.set("shortsProcessedSequence."+l+".reelPlayerOverlayRenderer",{});I=void 0;((I=this.shortsProcessedSequence[l].adsOverlay)==null?0:I.adSlotMetadata)&&this.set("shortsProcessedSequence."+l+
".adsOverlay",{})}}};
_.B.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.B.onResize=function(){var V=_.v4(),l=V.dispatch,I=this.calculateIsSmallWidth();l.call(V,_.IA({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:I}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.B.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:_.z("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}}};
_.B.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var V=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,l=V,I=0;V<250&&(l=V+this.shortsInnerContainer.clientWidth,I=24);_.i3(this.hostElement,{"--ytd-shorts-header-width":l+"px","--ytd-shorts-top-spacing":I+"px"})}};
_.B.isFirstShorts=function(V){return V?this.index===-V.length:this.index===0};
_.B.isActiveReel=function(V,l,I){I&&(l=this.calculatePrevIndex(l,I));return V===l};
_.B.onFullscreenChange=function(){if(_.z("web_fullscreen_shorts")){var V;(V=this.getActiveReelVideo(this.activeIndex))==null||V.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.F().resolve(_.sH).close(!0)}};
_.B.engagementPanelsChanged=function(){var V;this.watchWhileEngagementPanels=(V=this.data)==null?void 0:V.engagementPanels};
_.B.unregisterPanels=function(){var V=_.F().resolve(_.Eu);if(this.watchWhileEngagementPanels)for(var l=_.U(this.watchWhileEngagementPanels),I=l.next();!I.done;I=l.next()){var H=void 0,T=void 0;I=(H=I.value.engagementPanelSectionListRenderer)==null?void 0:(T=H.identifier)==null?void 0:T.tag;V&&I&&V.panelMap.delete(I)}};
_.B.isVideoContent=function(V){return this.isVideoContentCommand(V==null?void 0:V.command)};
_.B.getActiveReelVideo=function(V){return _.z("web_enable_shorts_new_carousel_single_instance")?_.h(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+V+'"]'):_.h(this.hostElement).querySelector('ytd-reel-video-renderer[id="'+V+'"]')};
_.B.calculatePrevIndex=function(V,l){return l?V-((l==null?void 0:l.length)||0):-1};
_.B.onKeydown=function(V){var l=_.b3(V)||[];if(!_.dR6(l))if(V.code==="ArrowUp")V.preventDefault(),this.handlePrevButtonClick();else if(V.code==="ArrowDown")V.preventDefault(),this.handleNextButtonClick();else if(V.code==="KeyM")this.toggleMuteUnmuteVideo();else if(V.code==="KeyK"||V.code==="Space")this.togglePlayPauseVideo();else if((V.code==="KeyA"||V.code==="ArrowLeft")&&_.z("web_shorts_keyboard_enable_seek_shortcuts")){var I;(I=this.player)==null||I.seekBy(-5)}else if((V.code==="KeyD"||V.code===
"ArrowRight")&&_.z("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var H;(H=this.player)==null||H.seekBy(5)}};
_.B.onServiceRequestCompleted=function(V,l){V=l.data;V.continuationEndpoint&&V.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:V.entries,continuationEndpoint:V.continuationEndpoint}}):V.prevContinuationEndpoint&&V.prevEntries&&this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:V.prevEntries,prevContinuationEndpoint:V.prevContinuationEndpoint}})};
_.B.handleEngagementPanelVisibilityChanged=function(V,l){var I=_.F().resolve(_.Eu);if(V&&I){var H,T=((H=V.identifier)==null?void 0:H.tag)||V.panelIdentifier||V.targetId;if(l==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==T){I.hidePanel(this.activePanel);var x;this.activePanel=((x=V.identifier)==null?void 0:x.tag)||V.panelIdentifier}else this.isPersistentPanelActive=!0,_.v4().dispatch(WWp(!0)),this.anchoredPanelActive=!0,this.activePanel=T;else l==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===T&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.v4().dispatch(WWp(!1)))}};
_.B.handlePanelScrimClick=function(){var V=_.F().resolve(_.Eu);this.activePanel&&(V.hidePanel(this.activePanel),_.v4().dispatch(WWp(!1)))};
_.B.getShortsLoopSetting=function(){var V,l,I,H,T;return _.d(function(x){switch(x.nextAddress){case 1:return _.z("kevlar_shorts_auto_advance")?_.K(x,_.tt.getInstance(),2):x.return(!0);case 2:return(V=x.yieldResult)?_.K(x,V.get("sfvles"),3):x.return(!0);case 3:return I=(l=x.yieldResult)!=null?l:!1,_.K(x,V.get("sfvle"),4);case 4:return T=(H=x.yieldResult)!=null?H:!0,I?x.return(T):x.return(!0)}})};
_.B.handleSignalActionToggleLoopShortsOff=function(){var V=this,l,I,H;return _.d(function(T){switch(T.nextAddress){case 1:if(!V.player)return T.return();V.player.setLoopVideo(!1);l=_.x7();_.$g(l,V.loopToggleOffVe);return _.K(T,_.tt.getInstance(),2);case 2:return(I=T.yieldResult)?_.K(T,I.set("sfvle",!1),3):T.return();case 3:return _.K(T,I.set("sfvles",!0),4);case 4:H=_.Fu(),_.Xu(0,203,!1),_.Xu(0,204,!0),H.save(),_.FU(T)}})};
_.B.handleSignalActionToggleLoopShortsOn=function(){var V=this,l,I,H;return _.d(function(T){switch(T.nextAddress){case 1:if(!V.player)return T.return();V.player.setLoopVideo(!0);l=_.x7();_.$g(l,V.loopToggleOnVe);return _.K(T,_.tt.getInstance(),2);case 2:return(I=T.yieldResult)?_.K(T,I.set("sfvle",!0),3):T.return();case 3:return _.K(T,I.set("sfvles",!0),4);case 4:H=_.Fu(),_.Xu(0,203,!0),_.Xu(0,204,!0),H.save(),_.FU(T)}})};
_.B.handleSignalActionToggleCinematicShortsOn=function(){z3d(!0);var V;(V=this.JSC$19520_cinematicController)==null||_.e3p(V,!0);_.$g(_.x7(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.B.handleSignalActionToggleCinematicShortsOff=function(){z3d(!1);var V;(V=this.JSC$19520_cinematicController)==null||_.e3p(V,!1);_.$g(_.x7(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.B.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.B.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.B.unhideCurrentOverlay=function(){if(_.z("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer){var V=this.overlayContainer.querySelector("#experiment-overlay");V&&_.r0.addLowPriorityJob(function(){V.style.display="unset"},100)}};
_.B.getCurrentShort=function(){if(this.currentEndpoint){var V=this.currentEndpoint;if(this.isNonVideoContentCommand(V)){var l=_.y(V,_.Z0);return{reelNonVideoContentRenderer:_.y(l==null?void 0:l.renderer,_.oUa),command:V}}if(this.data){var I;l=(I=_.y(this.currentEndpoint,_.YV))==null?void 0:I.thumbnail;var H;I=(H=this.data.overlay)==null?void 0:H.reelPlayerOverlayRenderer;_.F().resolve(_.T4);var T,x;H=_.y((T=this.data.overlay)==null?void 0:(x=T.shortsAdsRenderer)==null?void 0:x.overlay,_.NRv);V=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.y(this.currentEndpoint,_.YV),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:I,thumbnail:l,command:V,adsOverlay:H}}}};
_.B.created=function(){var V=this;this.scrollToVideoThrottle=new _.le(function(l){var I;(I=V.getActiveReelVideo(l))==null||I.scrollIntoView({behavior:"smooth",block:"nearest",inline:V.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.le(function(l){var I;(I=V.getActiveReelVideo(l))==null||I.scrollIntoView({behavior:"auto",block:"nearest",inline:V.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.B.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.B.attached=function(){var V=this;SNY(this);this.pageScrollElement=_.h(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.VP(this,this.processResetAction));_.z("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.z("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var l=V.getActiveReelVideo(V.activeIndex);
V.maybeCreateIntersectionObserver();l==null||l.scrollIntoView({behavior:"instant",block:"nearest",inline:V.enableScrollIntoViewCenter?"center":"start"});V.shortsContainer.style.overflowY="scroll"}))};
_.B.calculateSqueezebackPanelSize=function(){var V=this,l=window.innerWidth-456-(window.innerHeight-106)*.5625;_.r0.addLowPriorityJob(function(){l<360?_.v4().dispatch(bZq(!0)):(V.hostElement.style.setProperty("--anchored-panel-width",Math.min(l,480)+"px"),_.v4().dispatch(bZq(!1)))})};
_.B.detached=function(){var V=_.F().resolve(_.T4);V.rootElement=void 0;var l;(l=V.unsubscribeFromStore)==null||l.call(V);V.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.VP(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.B.onResizeFinished=function(V,l){var I=this,H=new ResizeObserver(function(){I.shortsContainer.style.overflowY="hidden";_.r0.addLowPriorityJob(function(){l()},100)});
H.observe(V);return H};
_.B.resetDocumentScrollTop=function(){var V,l;if((V=document)==null?0:(l=V.scrollingElement)==null?0:l.scrollTop)document.scrollingElement.scrollTop=0};
_.B.loadPage_=function(V){var l=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),V){var I;if((I=_.y(this.currentEndpoint,_.YV))==null?0:I.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=V;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){l.isPlayerStarted&&
(l.handleOnPlaybackCommand(),l.afterPlayerStarted=function(){})};
this.registerPanel(V)}};
_.B.afterPlayerStarted=function(){};
_.B.handleOnPlaybackCommand=function(){if(_.z("web_shorts_comment_stickers")&&this.isPlayerStarted){var V,l=(V=_.y(this.currentEndpoint,_.YV))==null?void 0:V.onPlaybackCommand;l&&this.ytComponentBehavior.resolveCommand(l)}};
_.B.maybeCreateIntersectionObserver=function(){var V=this,l=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==l){this.intersectionObserverThreshold=l;var I={rootMargin:"0px",threshold:l},H;(H=this.intersectionObserver)==null||H.disconnect();this.intersectionObserver=new IntersectionObserver(function(T){T=_.U(T);for(var x=T.next();!x.done;x=T.next())if(x=x.value,x.intersectionRatio>l){x=Number(x.target.id);if(isNaN(x))break;if(x===V.index)break;
_.aEt();V.loadVideo(x);_.Rz("r_vtc")}},I);
this.observeShorts()}};
_.B.observeShorts=function(){var V=_.z("web_enable_shorts_new_carousel_single_instance")?".reel-video-in-sequence-new":"ytd-reel-video-renderer.reel-video-in-sequence";V=[].concat(_.oI(_.h(this.hostElement).querySelectorAll(V)));V=_.U(V);for(var l=V.next();!l.done;l=V.next()){l=l.value;var I=void 0;(I=this.intersectionObserver)==null||I.observe(l)}};
_.B.initCsi=function(){_.s0g("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var V={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"}},l,I;if((l=this.playerData)==null?0:(I=l.cacheMetadata)==null?0:I.isCacheHit)V.isCacheHit=!0;var H;if(l=(H=_.y(this.currentEndpoint,_.YV))==null?void 0:
H.prefetchTaskId)V.prefetchInfo={taskId:l};_.P$(V)};
_.B.isAd=function(){var V,l;return!!((V=_.y(this.currentEndpoint,_.YV))==null?0:(l=V.adClientParams)==null?0:l.isAd)};
_.B.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.B.getPlayerContainer=function(){var V;return(V=_.z("web_enable_shorts_new_carousel_single_instance")?_.h(this.hostElement).querySelector("ytd-reel-video-renderer"):this.getActiveReelVideo(this.index))==null?void 0:V.playerContainer};
_.B.onPlayerStateChange=function(V){var l=this;this.isPlayerPaused=V===2;V!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?V===1&&this.index===0&&(this.isPlayerStarted||_.v4().dispatch(qNh(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.v4().dispatch(qNh(!0)));this.player&&!this.player.getLoopVideo()&&_.r0.addLowPriorityJob(function(){l.getShortsLoopSetting().then(function(H){var T;(T=l.player)==null||T.setLoopVideo(H)})});
if(V===0&&_.z("kevlar_shorts_auto_advance"))if(V=this.getActiveReelVideo(this.index),this.isInBackground()){var I=this.getPlayableNextIndex();if(I==null)return;this.gestureType="INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED";this.loadVideo(I,!0)}else V.isWatchWhileMode&&!_.z("shorts_aa_ignore_ww")?(I=this.player)==null||I.seekToStreamTime(0):this.handleNextButtonClick(void 0,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");this.isPlayerPaused&&_.z("web_shorts_paused_state_logging")&&_.pT(_.oa(),[this.reelPlayerPausedStateRendererVe])};
_.B.isInBackground=function(){var V=window.document.visibilityState;return!(!V||V==="visible")};
_.B.isShortPlayable=function(){if(_.z("kevlar_playable_short_killswitch"))return!0;var V;return(V=this.playerData)!=null&&V.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.B.setNormalPlaybackSpeed=function(){var V=this,l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,V.getPlayer().getPlayerPromise(),2);l=H.yieldResult;I=l.getPlaybackRate();I!==1&&(V.storedPlaybackSpeed=I,l.setPlaybackRate(1));_.FU(H)})};
_.B.restorePlaybackSpeed=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1)return V.storedPlaybackSpeed===null?I.jumpTo(0):_.K(I,V.getPlayer().getPlayerPromise(),3);l=I.yieldResult;l.setPlaybackRate(V.storedPlaybackSpeed);V.storedPlaybackSpeed=null;_.FU(I)})};
_.B.playerDataChanged=function(){var V=this,l,I,H,T,x,n,w,N,L;return _.d(function(e){if(e.nextAddress==1){l=V.getPlayer();_.z("web_shorts_dynamic_intersection_observer_threshold")&&((I=V.intersectionObserver)==null||I.disconnect());if(V.playerData){if(((H=V.playerData.videoDetails)==null?void 0:H.videoId)!==((T=l.getPlayer())==null?void 0:T.getVideoData().video_id)){x={};if(n=_.y(V.currentEndpoint,_.YV))x.watch_endpoint=n,n.endTimeSeconds&&(x.end=n.endTimeSeconds);l.loadVideoWithPlayerResponse(V.playerData,
x)}}else return e.return();return V.player?e.jumpTo(2):_.K(e,l.getPlayerPromise(),3)}e.nextAddress!=2&&(V.player=e.yieldResult,V.JSC$19520_playerStateChangeListener=V.onPlayerStateChange.bind(V),V.player.addEventListener("onStateChange",V.JSC$19520_playerStateChangeListener),_.z("kevlar_client_enable_shorts_player_bootstrap")&&_.ie(),V.scrollToVideoThrottle.fire(V.index),V.movePlayerToVideo(V.index),_.r0.addLowPriorityJob(function(){V.getShortsLoopSetting().then(function(k){var X;(X=V.player)==null||
X.setLoopVideo(k)})}),_.gri.resolve(V.player),V.player.syncVolume(),V.getPlayer().focusOnPlayer(),_.z("web_shorts_caption_language_entity_killswitch")||_.r0.addLowPriorityJob(function(){var k=_.F().resolve(_.T4),X,r=(X=V.player)==null?void 0:X.getOption("captions","track");
Qin(k,r)}));
_.r0.addLowPriorityJob(function(){V.observeShorts()},100);
w=V.player.getPlayerState(V.player.getPresentingPlayerType());w!==1||V.isPlayerStarted||_.v4().dispatch(qNh(!0));V.updateBackNavContainerWidth();N=_.y(V.currentEndpoint,_.YV);((L=N)==null?0:L.startTimeSeconds)&&V.player.seekTo(N.startTimeSeconds);if(V.JSC$19520_cinematicController||V.cinematicsInitializeJobId)return e.return();V.cinematicsInitializeJobId=_.r0.addLowPriorityJob(function(){V.initCinematicController();V.cinematicsInitializeJobId=void 0});
_.FU(e)})};
_.B.onShortUndoDismiss=function(){var V=this,l=R3f().pop();l!==void 0&&(_.Al(this,function(){V.showCardWithIndex(l)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.B.onShortsDismiss=function(V){if(V=V.detail.reelDismissalActionRenderer)(V=_.y(V.onDismissalCompletionRenderer,_.CNY))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:V}}}),this.scrollAndDismissCard()};
_.B.processReelNonVideoContentDismissalCommand=function(V){var l=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);V=_.y(V,avh);this.activeDimissalTimeout=setTimeout(function(){l.scrollAndDismissCard()},Number(V==null?void 0:V.delayMs))};
_.B.scrollAndDismissCard=function(){var V=this,l=this.index;R3f().push(l);_.Al(this,function(){var I=V.getPlayableNextIndex();I!==null&&(I=V.getActiveReelVideo(I),V.hideCardWithIndex(l),I==null||I.scrollIntoView({behavior:"smooth",block:"nearest",inline:V.enableScrollIntoViewCenter?"center":"start"}))})};
_.B.hideCardWithIndex=function(V){this.getActiveReelVideo(V).hidden=!0};
_.B.showCardWithIndex=function(V){this.getActiveReelVideo(V).hidden=!1};
_.B.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.B.activeChanged=function(V){_.v4().dispatch(_.IA({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:V}}));if(V)document.addEventListener("keydown",_.VP(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var l;(l=this.player)==null||l.sendAbandonmentPing()}var I;(I=this.player)==null||I.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.VP(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.B.graftClientVisualElements=function(){if(this.data){var V=_.x7();_.gk3(V,_.w6({response:this.reelWatchSequenceResponse}));_.Ug(V,this.nextReelVe);_.Ug(V,this.prevReelVe);_.z("kevlar_shorts_auto_advance")&&(_.Ug(V,this.loopToggleOffVe),_.Ug(V,this.loopToggleOnVe));_.Ug(V,this.ambientModeToggleVe);_.pT(_.oa(),[this.nextReelVe,this.prevReelVe]);_.z("web_shorts_paused_state_logging")&&_.Ug(V,this.reelPlayerPausedStateRendererVe)}};
_.B.graftNvcRenderer=function(){var V,l,I,H,T=this.index<0?(V=this.shortsProcessedPrevSequence)==null?void 0:(l=V[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:l.command:(I=this.shortsProcessedSequence)==null?void 0:(H=I[this.index])==null?void 0:H.command;if(T&&this.isNonVideoContentCommand(T)){V=_.y(T,_.Z0);var x,n;(V=(x=_.y(V==null?void 0:V.renderer,_.oUa))==null?void 0:(n=x.loggingDirectives)==null?void 0:n.trackingParams)&&_.x7().graftServerVe(V)}};
_.B.setActiveIndex=function(){_.F().resolve(_.T4).setActiveIndex(this.index)};
_.B.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.B.lazyUpdateMiniplayerData=function(){var V=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.r0.addLowPriorityJob(function(){V.updateMiniplayerData();V.updateMiniplayerDataJobId=void 0}))};
_.B.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.r0.cancelJob(this.updateMiniplayerDataJobId)};
_.B.updateMiniplayerData=function(){var V,l,I,H=_.F().resolve(_.sH),T={shortsData:this.getCurrentShort(),previousButtonDisabled:!((V=this.prevButtonData)==null||!V.isDisabled),nextButtonDisabled:!((l=this.nextButtonData)==null||!l.isDisabled),playabilityStatus:(I=this.playerData)==null?void 0:I.playabilityStatus};_.XP(H,T)};
_.B.resetPlayerLocation=function(){var V=this.getPlayer();this.initialPlayerContainer&&(V.appendTo(this.initialPlayerContainer,void 0,!0),_.z("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.B.movePlayerToVideo=function(V,l){var I=this;l=l===void 0?!0:l;var H=this.getActiveReelVideo(V),T=this.getPlayer();if(H){if(_.z("web_enable_shorts_new_carousel_single_instance")){this.overlayContainer||(this.overlayContainer=_.h(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||T.appendTo(this.overlayContainer.playerContainer,void 0,!0));H.appendChild(this.overlayContainer);var x;(x=this.player)==null||x.setSize(NaN,NaN);_.et(_.r0,function(){I.isActive=
!0})}else this.isShortsMiniplayerActive()||T.appendTo(H.playerContainer,void 0,!0);
T.style.visibility="visible";_.z("reels_web_disable_rtr_tick")||_.z("reels_web_use_pbs_first_shorts")&&V===0||_.Z8("r_tr");this.currentPlayerIndex=V;_.z("web_enable_shorts_new_carousel_single_instance")?H.appendChild(this.errorScreenContainer):H.playerContainer.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else l?_.r0.addLowPriorityJob(function(){I.movePlayerToVideo(I.index,!1)}):Math.random()<=_.g7("web_shorts_error_logging_threshold")&&_.oV(new _.Yd("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:l,
index:V}))};
_.B.enableFormatFirst=function(V){return _.z("web_enable_format_first")||V.adsOverlay&&_.z("web_enable_format_first_ads_only")||V.reelPlayerOverlayRenderer&&_.z("web_enable_format_first_organic_only")};
_.B.getAspectRatio=function(V){if(V!=null&&V.thumbnail&&this.enableFormatFirst(V))return"--ytd-shorts-player-ratio: "+yB5(V.thumbnail)};
_.B.getBackgroundImage=function(V){if(V!=null&&V.thumbnail){if(_.z("web_enable_format_first")){var l=yB5(V.thumbnail);this.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+l)}return(V=_.pt(V.thumbnail.thumbnails))?'background-image:url("'+V+'");':"background-color:black;"}};
_.B.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.B.maybeMoveCinematicsToVideo=function(){var V=this;this.cinematicTransitionJobId&&_.r0.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.r0.addLowPriorityJob(function(){V.moveCinematicsToVideo()},500)};
_.B.moveCinematicsToVideo=function(){var V;(V=this.JSC$19520_cinematicController)!=null&&(V=V.currentCinematicEffect)!=null&&(V=V.storyboardManager,V.paused=!1,_.iK6(V),V.update());V=_.z("web_enable_shorts_new_carousel_single_instance")?_.h(this.hostElement).querySelector("ytd-reel-video-renderer"):this.getActiveReelVideo(this.index);(V==null?0:V.cinematicContainer)&&V.cinematicContainer!==this.shortsCinematicContainer.parentElement&&V.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.B.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.B.updatePrevButtonData=function(){var V=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(V){var l;this.prevButtonData=V=Object.assign({},V,{accessibility:{label:_.LT("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:V.isDisabled||this.index===-(((l=this.shortsProcessedPrevSequence)==null?void 0:l.length)||0),tooltip:this.isUpArrowHidden?"":_.LT("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=V=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.B.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.B.updateNextButtonData=function(){var V=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(V){var l;this.nextButtonData=V=Object.assign({},V,{accessibility:{label:_.LT("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:V.isDisabled||this.index===((l=this.shortsProcessedSequence)==null?void 0:l.length),tooltip:_.LT("NEXT_VIDEO_LABEL")||""})}};
_.B.getPlayablePreviousIndex=function(){for(var V,l=this.index-1;l>=-(((V=this.prevShortsSequence)==null?void 0:V.length)||0);l--)if(!R3f().includes(l))return l;return null};
_.B.getIndexInSequence=function(V,l){return V.findIndex(function(I){var H;return((H=_.y(I.command,_.YV))==null?void 0:H.videoId)===l})};
_.B.handlePrevButtonClick=function(V){var l=this,I,H;return _.d(function(T){I=l.getPlayablePreviousIndex();if(I===null)return T.return();l.gestureType=((H=V)==null?void 0:H.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";I===0&&(l.hidePreviousButtonImmediately=!0);if(l.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){l.transitionToVideoThrottle.fire(I)}),T.return();
l.scrollToVideoThrottle.fire(I);_.FU(T)})};
_.B.getPlayableNextIndex=function(){for(var V,l=this.index+1;l<(((V=this.shortsProcessedSequence)==null?void 0:V.length)||0);l++)if(!R3f().includes(l))return l;return null};
_.B.handleNextButtonClick=function(V,l){var I=this,H,T;return _.d(function(x){H=I.getPlayableNextIndex();if(H===null)return x.return();H===1&&(I.showPreviousButtonImmediately=!0);I.gestureType=((T=V)==null?void 0:T.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";l&&(I.gestureType=l);if(I.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){I.transitionToVideoThrottle.fire(H)}),x.return();
I.scrollToVideoThrottle.fire(H);_.FU(x)})};
_.B.handleReelNavigateCommand=function(V,l,I){(V=_.y(V,CZj))&&l&&V.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(I)};
_.B.loadVideo=function(V,l){var I=this;l=l===void 0?!1:l;if(V!==this.currentPlayerIndex){_.v4().dispatch(qNh(!1));if(this.isAd()&&!l){var H;(H=this.player)==null||H.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.r0.cancelJob(this.cinematicTransitionJobId);var T;(T=this.JSC$19520_cinematicController)==null||_.FWh(T);var x;(x=this.JSC$19520_cinematicController)==null||cBV(x);H=V>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(H));
this.getPlayer().style.visibility="hidden";_.z("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var n,w,N,L;l=V<0?(n=this.shortsProcessedPrevSequence)==null?void 0:(w=n[this.shortsProcessedPrevSequence.length+V])==null?void 0:w.command:(N=this.shortsProcessedSequence)==null?void 0:(L=N[V])==null?void 0:L.command;this.index=V;this.gestureType||(this.gestureType=H?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");l&&this.isVideoContentCommand(l)&&(this.ytComponentBehavior.resolveCommand(l,{form:{createScreenConfig:{clickedVisualElement:H?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(l&&this.isNonVideoContentCommand(l)){this.currentEndpoint=l;this.data=void 0;n=_.x7();w=_.y(l,_.Z0);var e,k;(w=(e=_.y(w==null?void 0:w.renderer,_.oUa))==null?void 0:(k=e.screenLoggingData)==null?void 0:k.screenVeType)&&_.xg(n,
w);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}e=_.g7("reels_enable_early_continuation_offset")<=0?1:_.g7("reels_enable_early_continuation_offset");var X,r;if(((X=this.reelWatchSequenceResponse)==null?0:X.continuationEndpoint)&&((r=this.reelWatchSequenceResponse)==null?0:r.entries)&&V===this.reelWatchSequenceResponse.entries.length-e){var E,D;X={contentPlaybackContext:_.LY({},(D=_.y((E=this.currentEndpoint)==null?void 0:E.commandMetadata,_.mK))==null?void 0:
D.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:X})}var Z,S,p;((Z=this.reelWatchSequenceResponse)==null?0:Z.prevContinuationEndpoint)&&V===-(((S=this.reelWatchSequenceResponse)==null?void 0:(p=S.prevEntries)==null?void 0:p.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint);!_.z("web_shorts_caption_language_entity_killswitch")&&this.player&&_.r0.addLowPriorityJob(function(){var Vf=
_.F().resolve(_.T4),C,By=(C=I.player)==null?void 0:C.getOption("captions","track");Qin(Vf,By)})}};
_.B.setMiniplayerPreview=function(V){V=(V===void 0?0:V)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var l,I,H=_.F().resolve(_.sH),T={shortsData:void 0,shortsPreviewThumbnail:V?(l=this.shortsProcessedSequence)==null?void 0:(I=l[V])==null?void 0:I.thumbnail:void 0};_.XP(H,T)};
_.B.updateTitle=function(V){var l,I;V=(V==null?0:V.adPlacements)?"":(I=V==null?void 0:(l=V.videoDetails)==null?void 0:l.title)!=null?I:"";_.B$(this.hostElement,"yt-update-title",V)};
_.B.registerPanel=function(V){var l=_.F().resolve(_.Eu);if(l){V=_.U(V.engagementPanels||[]);for(var I=V.next();!I.done;I=V.next()){I=I.value;var H=I.engagementPanelSectionListRenderer,T=void 0,x=void 0,n=void 0,w=void 0,N=((T=H)==null?void 0:T.targetId)||((x=H)==null?void 0:x.panelIdentifier)||((n=H)==null?void 0:(w=n.identifier)==null?void 0:w.tag);T=H=void 0;(T=(H=l).registerPanelContent)==null||T.call(H,N,I)}}};
_.B.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.v4().dispatch(qNh(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.v4().dispatch(WWp(!1));var V=_.F().resolve(_.T4);V.dismissedIndices=[];V.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.F().resolve(_.sH).close(!0)};
_.B.processAppendReelWatchSequenceContinuationEntriesAction=function(V){var l=this,I;(I=this.intersectionObserver)==null||I.disconnect();V=V.appendReelWatchSequenceContinuationEntriesAction;if(V==null?0:V.entries){var H;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.oI(((H=this.reelWatchSequenceResponse)==null?void 0:H.entries)||[]),_.oI(V.entries)),continuationEndpoint:V.continuationEndpoint})}else if(V==null?0:V.prevEntries){var T;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.oI(((T=this.reelWatchSequenceResponse)==null?void 0:T.prevEntries)||[]),_.oI(V.prevEntries)),prevContinuationEndpoint:V.prevContinuationEndpoint});_.r0.addLowPriorityJob(function(){l.movePlayerToVideo(l.index);var x;(x=l.getActiveReelVideo(l.index))==null||x.scrollIntoView({block:"nearest",inline:l.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.r0.addLowPriorityJob(function(){l.observeShorts()},100)};
_.B.processWatchSequence=function(V){var l=this;return V.map(function(I){I=I.command;if(l.isVideoContentCommand(I)){var H=_.y(I,_.YV);return{reelPlayerOverlayRenderer:_.y(H==null?void 0:H.overlay,_.hpW),thumbnail:H.thumbnail,command:I}}return l.isNonVideoContentCommand(I)?(H=_.y(I,_.Z0),{reelNonVideoContentRenderer:_.y(H==null?void 0:H.renderer,_.oUa),command:I}):{command:I}})};
_.B.calculateIntersectionObserverThreshold=function(){if(!_.z("web_shorts_dynamic_intersection_observer_threshold"))return.6;var V=_.h(this.hostElement).querySelector("ytd-reel-video-renderer"),l=1;(V==null?0:V.offsetHeight)&&(V==null?0:V.offsetWidth)&&(l=Math.min(V.offsetHeight,this.shortsContainer.offsetHeight)/V.offsetHeight*(Math.min(V.offsetWidth,this.shortsContainer.offsetWidth)/V.offsetWidth));return Math.round(l*.6*10)/10};
_.B.isVideoContentCommand=function(V){_.F().resolve(_.T4);return!!_.y(V,_.YV)};
_.B.isNonVideoContentCommand=function(V){_.F().resolve(_.T4);return!!_.y(V,_.Z0)};
_.B.initCinematicController=function(){var V=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19520_cinematicController=new _.K9(this.shortsCinematicContainer,this.player);var l,I=_.y((l=this.data)==null?void 0:l.background,_.DG);_.kEV(this.JSC$19520_cinematicController,I);_.e3p(this.JSC$19520_cinematicController,Xw6(I));_.LWn(this.JSC$19520_cinematicController);_.r0.addLowPriorityJob(function(){V.moveCinematicsToVideo()})}};
_.B.handleMiniplayerNavigateShorts=function(V){V==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():V==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.B.shouldDisplayReelVideoOverlay=function(V,l){return _.z("web_enable_shorts_new_carousel")?Math.abs(V-l)<2:!0};
_.vI.Object.defineProperties($Ed.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.reelWatchSequenceResponse)!=null&&V.prevEntries)return this.processWatchSequence([].concat(_.oI(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var V=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!V)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var l=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.oI(this.prevShortsSequence.slice(0,l)),[V],_.oI(this.prevShortsSequence.slice(l+
1)))}l=this.index+this.shortsProcessedPrevSequence.length;V.thumbnail=this.shortsProcessedPrevSequence[l].thumbnail;return[].concat(_.oI(this.shortsProcessedPrevSequence.slice(0,l)),[V],_.oI(this.shortsProcessedPrevSequence.slice(l+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.reelWatchSequenceResponse)!=null&&V.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var V=this.getCurrentShort();if(!V||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[V];if(V==null||!V.reelNonVideoContentRenderer){var l=this.getIndexInSequence(this.shortsSequence,_.y(this.currentEndpoint,_.YV).videoId);if(this.index===0&&l!==-1)return this.currentPlayerIndex=this.index=l,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.oI(this.shortsSequence.slice(0,this.index)),[V],_.oI(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){V.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var I,H,T,x;l=((H=_.y((I=this.shortsProcessedSequence[0])==null?void 0:I.command,_.YV))==null?void 0:H.videoId)===((x=_.y((T=this.shortsSequence[0])==null?void 0:T.command,_.YV))==null?void 0:x.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.oI(this.shortsProcessedSequence.slice(0,
this.index)),[V],_.oI(this.shortsSequence.slice(l)))}return[V].concat(_.oI(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var V=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;V&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(V)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.reelWatchSequenceResponse)==null?0:V.entries)}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var V;(V=this.delayedActiveIndexUpdateDebouncer)==null||V.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return this.isShortPlayable()||((l=_.y((V=this.data)==null?void 0:V.watchStatus,_.b7N))==null?void 0:(I=l.style)==null?void 0:I.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var V=this,l=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),I;if((this.data||l)&&(((I=this.data)==null?0:I.engagementPanels)||this.isAd()||l)){l=!1;this.activePanel="shorts-comments-panel";var H;I=_.U(((H=this.data)==null?void 0:H.engagementPanels)||[]);for(H=I.next();!H.done;H=I.next()){H=H.value.engagementPanelSectionListRenderer;var T=void 0,x=void 0,n=void 0,w=void 0;if((((T=H)==null?void 0:(x=T.identifier)==
null?void 0:x.tag)||((n=H)==null?void 0:n.targetId)||((w=H)==null?void 0:w.panelIdentifier))===this.activePanel){l=!0;break}}if(this.isPersistentPanelActive){var N=_.F().resolve(_.Eu);_.z("web_enable_shorts_new_carousel_single_instance")?_.et(_.r0,function(){N.showPanel(V.activePanel,void 0,void 0,void 0,null)},100):_.r0.addJob(function(){N.showPanel(V.activePanel,void 0,void 0,void 0,null)},0)}I=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
H=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(I===void 0&&H===void 0||(I==null?0:I.isDisabled)||(H==null?void 0:H.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!l){var L,e,k=(L=this.data)==null?void 0:(e=L.engagementPanels)==null?void 0:e.findIndex(function(D){var Z,S;return((Z=D.engagementPanelSectionListRenderer)==null?void 0:(S=
Z.identifier)==null?void 0:S.tag)==="shorts-comments-panel"});
if(k!==-1&&k!==void 0){var X,r;(X=this.data)==null||(r=X.engagementPanels)==null||r.splice(k,1)}var E;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.LT("COMMENTS",void 0,"Comments")}]},visibilityButton:_.IV({buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.LT("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:_.LT("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.LT("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(_.oI(Object.values(((E=this.data)==null?void 0:E.engagementPanels)||{})))}return(k=this.data)==null?void 0:k.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.shortsProcessedSequence)==null?void 0:V[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var V=this,l,I,H;if((l=this.playerData)==null?0:(I=l.playabilityStatus)==null?0:(H=I.errorScreen)==null?0:H.playerInterstitialRenderer)return _.r0.addLowPriorityJob(function(){V.movePlayerToVideo(V.index)}),this.playerData.playabilityStatus.errorScreen;
var T,x;return((T=this.data)==null?void 0:T.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((x=this.data)==null?0:x.watchStatus)&&_.y(this.data.watchStatus,_.MJN)?(_.r0.addLowPriorityJob(function(){V.movePlayerToVideo(V.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.vI.Object.defineProperties($Ed,{template:{configurable:!0,enumerable:!0,get:function(){if(gJC===void 0){var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[!enableNewCarousel]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <ytd-reel-video-renderer class="reel-video-in-sequence style-scope ytd-shorts" data="[[item]]" disable-upgrade$="[[!shouldDisplayReelVideoOverlay(activeIndex, index)]]" has-error="[[errorScreen]]" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" index="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" is-active="[[isActiveReel(activeIndex,index,shortsProcessedPrevSequence)]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]">\n            </ytd-reel-video-renderer>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <ytd-reel-video-renderer class="reel-video-in-sequence style-scope ytd-shorts" data="[[item]]" disable-upgrade$="[[!shouldDisplayReelVideoOverlay(activeIndex, index)]]" has-error="[[hasError]]" id$="[[index]]" index="[[index]]" is-active="[[isActiveReel(activeIndex,index)]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]">\n          </ytd-reel-video-renderer>\n        </template>\n      </dom-repeat>\n    </template>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-shorts">\n      <ytd-reel-video-renderer id="reel-video-renderer" data="[[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    </template>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);gJC=V}V=gJC;return V}}});
var yE=$Ed;yE.prototype.onNextButtonDataChange=yE.prototype.onNextButtonDataChange;yE.prototype.onPrevButtonDataChange=yE.prototype.onPrevButtonDataChange;yE.prototype.lazyUpdateMiniplayerData=yE.prototype.lazyUpdateMiniplayerData;yE.prototype.onShortsPipActiveChanged=yE.prototype.onShortsPipActiveChanged;yE.prototype.setActiveIndex=yE.prototype.setActiveIndex;yE.prototype.graftNvcRenderer=yE.prototype.graftNvcRenderer;yE.prototype.graftClientVisualElements=yE.prototype.graftClientVisualElements;
yE.prototype.onActiveChanged=yE.prototype.onActiveChanged;yE.prototype.onShortsDismiss=yE.prototype.onShortsDismiss;yE.prototype.onShortUndoDismiss=yE.prototype.onShortUndoDismiss;yE.prototype.playerDataChanged=yE.prototype.playerDataChanged;yE.prototype.afterPlayerStarted=yE.prototype.afterPlayerStarted;yE.prototype.unhideCurrentOverlay=yE.prototype.unhideCurrentOverlay;yE.prototype.onServiceRequestCompleted=yE.prototype.onServiceRequestCompleted;yE.prototype.engagementPanelsChanged=yE.prototype.engagementPanelsChanged;
yE.prototype.onFullscreenChange=yE.prototype.onFullscreenChange;yE.prototype.onResize=yE.prototype.onResize;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],yE.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Rb.YtPageBehavior),_.a("design:type",Object)],yE.prototype,"ytPageBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],yE.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Da),_.a("design:type",Object)],yE.prototype,"ironResizableBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],yE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],yE.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],yE.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],yE.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],yE.prototype,"playerData",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"reelWatchSequenceResponse",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"cachedReelWatchSequenceResponse",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"currentEndpoint",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"nextButtonData",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"prevButtonData",void 0);
_.O([_.q(),_.a("design:type",Object)],yE.prototype,"isPreviousPageShorts",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"index",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"delayedActiveIndex",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"playablePreviousIndex",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"player",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"isPlayerPaused",void 0);
_.O([_.q({selector:rBp}),_.a("design:type",Object)],yE.prototype,"isPlayerStarted",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"intersectionObserver",void 0);_.O([_.q(),_.a("design:type",Number)],yE.prototype,"cinematicsInitializeJobId",void 0);_.O([_.q(),_.a("design:type",Number)],yE.prototype,"cinematicTransitionJobId",void 0);_.O([_.q(),_.a("design:type",Number)],yE.prototype,"updateMiniplayerDataJobId",void 0);
_.O([_.q(),_.a("design:type",Object)],yE.prototype,"fitToVisibleBounds",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"pageSubtype",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"panelShowDelayMs",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],yE.prototype,"enablePreviousContinuation",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"shortsPipEnabled",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"isDark",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"shortsViewTransitions",void 0);_.O([_.q({selector:_.Lv,reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"isFullscreen",void 0);_.O([_.q({selector:_.en,reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"isShortsPipActive",void 0);
_.O([_.Ij("#shorts-inner-container"),_.a("design:type",HTMLElement)],yE.prototype,"shortsInnerContainer",void 0);_.O([_.Ij("#back-nav-button ytd-button-renderer"),_.a("design:type",_.Of)],yE.prototype,"backNavButton",void 0);_.O([_.Ij("#shorts-container"),_.a("design:type",HTMLElement)],yE.prototype,"shortsContainer",void 0);_.O([_.f4("error-screen"),_.a("design:type",HTMLElement)],yE.prototype,"errorScreenContainer",void 0);
_.O([_.f4("player"),_.a("design:type",Object)],yE.prototype,"playerElement",void 0);_.O([_.f4("shorts-cinematic-container"),_.a("design:type",HTMLElement)],yE.prototype,"shortsCinematicContainer",void 0);_.O([_.f4("initial-player-container"),_.a("design:type",HTMLElement)],yE.prototype,"initialPlayerContainer",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"buttonOverride",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"anchoredPanelActive",void 0);
_.O([_.q(),_.a("design:type",String)],yE.prototype,"activePanel",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"isActive",void 0);_.O([_.q({selector:toh,reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"smallScreenPersistentPanel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"isPersistentPanelActive",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"smallScreenSqueezeBack",void 0);
_.O([_.q(),_.a("design:type",Object)],yE.prototype,"enableScrollIntoViewCenter",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"formatFirst",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"enableFlexibleOverlay",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"panelContainer",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yE.prototype,"enableNewCarousel",void 0);
_.O([_.q(),_.a("design:type",Object)],yE.prototype,"overlayContainer",void 0);_.O([_.q(),_.a("design:type",Object)],yE.prototype,"isShortsInitialized",void 0);_.O([_.Q("reelWatchSequenceResponse"),_.a("design:type",Object),_.a("design:paramtypes",[])],yE.prototype,"prevShortsSequence",null);_.O([_.Q("data","prevShortsSequence"),_.a("design:type",Object),_.a("design:paramtypes",[])],yE.prototype,"shortsProcessedPrevSequence",null);
_.O([_.Q("reelWatchSequenceResponse"),_.a("design:type",Object),_.a("design:paramtypes",[])],yE.prototype,"shortsSequence",null);_.O([_.Q("data","shortsSequence"),_.a("design:type",Object),_.a("design:paramtypes",[])],yE.prototype,"shortsProcessedSequence",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],yE.prototype,"isUpArrowHidden",null);_.O([_.q({reflectToAttribute:!0}),_.Q("reelWatchSequenceResponse"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],yE.prototype,"isDownArrowHidden",null);
_.O([_.q(),_.Q("index"),_.a("design:type",Number),_.a("design:paramtypes",[])],yE.prototype,"activeIndex",null);_.O([_.Q("isShortPlayable","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],yE.prototype,"shouldRenderOfflineContent",null);_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"onResize",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],yE.prototype,"anchoredEngagementPanels",null);
_.O([_.q(),_.a("design:type",Object)],yE.prototype,"watchWhileEngagementPanels",void 0);_.O([_.b("isFullscreen"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"onFullscreenChange",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"engagementPanelsChanged",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],yE.prototype,"onServiceRequestCompleted",null);_.O([_.Q("data","shortsSequence","index"),_.a("design:type",Object),_.a("design:paramtypes",[])],yE.prototype,"activeReel",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"unhideCurrentOverlay",null);
_.O([_.b("isPlayerStarted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"afterPlayerStarted",null);_.O([_.Q("playerData","reelWatchSequenceResponse","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],yE.prototype,"errorScreen",null);_.O([_.Q("errorScreen"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],yE.prototype,"hasError",null);
_.O([_.b("playerData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],yE.prototype,"playerDataChanged",null);_.O([_.W("yt-dismissible-item-undo-feedback"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"onShortUndoDismiss",null);_.O([_.W("yt-disable-lockup-interaction"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],yE.prototype,"onShortsDismiss",null);
_.O([_.xs("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"onActiveChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"graftClientVisualElements",null);_.O([_.b("currentPlayerIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"graftNvcRenderer",null);
_.O([_.b("index"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"setActiveIndex",null);_.O([_.b("isShortsPipActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"onShortsPipActiveChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"lazyUpdateMiniplayerData",null);
_.O([_.q(),_.a("design:type",Object)],yE.prototype,"onOverlayDensityChanged",void 0);_.O([_.b("index","data","isUpArrowHidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"onPrevButtonDataChange",null);_.O([_.b("index","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yE.prototype,"onNextButtonDataChange",null);yE=_.O([_.A({is:"ytd-shorts"})],yE);_.oe.registerService(_.THg,yE);
_.o8();
}catch(e){_._DumpException(e)}
try{
_.JK("JzFVk");
var gcQ=function(V){return _.Y("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},fqP(V.data.ctaButton,{buttonViewModel:{}}),_.Y(_.Ni,{text:V.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var mMI;var i5E;var VcC=function(){return _.M.apply(this,arguments)||this};
_.t(VcC,_.M);VcC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
VcC.prototype.computeBlueBottomLink=function(V){return V};
var O0=VcC;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],O0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],O0.prototype,"data",void 0);_.O([_.q({computed:"computeIcon_(data.bottomIcon)"}),_.a("design:type",String)],O0.prototype,"bottomIcon",void 0);
_.O([_.q({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.a("design:type",Boolean)],O0.prototype,"enableBlueBottomLink",void 0);O0=_.O([_.A({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],O0);
_.u(O0,"ytd-web-answer-renderer",function(){if(i5E!==void 0)return i5E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return i5E=V},{mode:_.Cm("kevlar_poly_si_batch_j035")?1:2});var lgf;var IgC=function(){var V=_.M.apply(this,arguments)||this;V.hasChipBar=!1;return V};
_.t(IgC,_.M);IgC.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}}};
IgC.prototype.computeHasChipBar=function(V){return!(V==null||!V.chipBar)};
var C3=IgC;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],C3.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.a("design:type",Object)],C3.prototype,"hasChipBar",void 0);
C3=_.O([_.A({is:"ytd-search-header-renderer",disableElementRegistration:!0})],C3);
_.u(C3,"ytd-search-header-renderer",function(){if(lgf!==void 0)return lgf;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return lgf=V},{mode:1});var HKV;var TWn=function(){return _.M.apply(this,arguments)||this};
_.t(TWn,_.M);TWn.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var a0=TWn;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],a0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],a0.prototype,"data",void 0);a0=_.O([_.A({disableElementRegistration:!0,is:"ytd-page-continuation"})],a0);
_.u(a0,"ytd-page-continuation",function(){if(HKV!==void 0)return HKV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return HKV=V},{mode:1});var BW5;var xqV;var UqV;var nTq=function(){return _.M.apply(this,arguments)||this};
_.t(nTq,_.M);var $q6=nTq;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$q6.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$q6.prototype,"data",void 0);$q6=_.O([_.A({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],$q6);
_.u($q6,"ytd-watch-card-one-vs-one-event",function(){if(UqV!==void 0)return UqV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return UqV=V},{mode:1});var dqd=function(){return _.M.apply(this,arguments)||this};
_.t(dqd,_.M);var wyj=dqd;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],wyj.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],wyj.prototype,"data",void 0);wyj=_.O([_.A({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],wyj);
_.u(wyj,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(xqV!==void 0)return xqV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return xqV=V},{mode:1});var NWj;var K36=function(){return _.M.apply(this,arguments)||this};
_.t(K36,_.M);var j1V=K36;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],j1V.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],j1V.prototype,"data",void 0);j1V=_.O([_.A({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],j1V);
_.u(j1V,"ytd-banner-and-box-hero-image-renderer",function(){if(NWj!==void 0)return NWj;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return NWj=V},{mode:1});var Ytp;var L3Y=function(){var V=_.M.apply(this,arguments)||this;V.modern=_.z("web_modern_buttons");return V};
_.t(L3Y,_.M);L3Y.prototype.computeIcon=function(){var V,l,I=(V=this.data)==null?void 0:(l=V.icon)==null?void 0:l.iconType;if(I)return _.mj(I)};
L3Y.prototype.computeButtonShape=function(){var V;return{buttonText:_.A5((V=this.data)==null?void 0:V.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.vI.Object.defineProperties(L3Y.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
var f3=L3Y;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],f3.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],f3.prototype,"modern",void 0);_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Q("data.style"),_.a("design:type",Object),_.a("design:paramtypes",[])],f3.prototype,"buttonColor",null);
f3=_.O([_.A({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],f3);
_.u(f3,"ytd-call-to-action-button-renderer",function(){if(Ytp!==void 0)return Ytp;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Ytp=V},{mode:1});var etn;var kwq=function(){return _.M.apply(this,arguments)||this};
_.t(kwq,_.M);kwq.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.h(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.sI(this.data.leftThumbnail.thumbnails,216)+")")};
var gD=kwq;gD.prototype.onLeftThumbnailChanged=gD.prototype.onLeftThumbnailChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],gD.prototype,"data",void 0);_.O([_.b("data.leftThumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gD.prototype,"onLeftThumbnailChanged",null);gD=_.O([_.A({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],gD);
_.u(gD,"ytd-collage-hero-image-renderer",function(){if(etn!==void 0)return etn;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return etn=V},{mode:1});var F3f;var Xy6=function(){return _.M.apply(this,arguments)||this};
_.t(Xy6,_.M);Xy6.prototype.computeStyle=function(V){return V};
var mv=Xy6;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],mv.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],mv.prototype,"componentStyle",void 0);mv=_.O([_.A({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],mv);
_.u(mv,"ytd-single-hero-image-renderer",function(){if(F3f!==void 0)return F3f;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return F3f=V},{mode:1});var ztY;var y1j=function(){return _.M.apply(this,arguments)||this};
_.t(y1j,_.M);_.B=y1j.prototype;
_.B.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:_.z("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.B.computeSubtitle=function(V){if(this.data){var l;if(this.data.upcomingEventData){V=_.A5(V.subtitle);var I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(l=_.pW(_.Zb(V,I)))}else l=V.subtitle;return l}};
_.B.onHeroTap=function(V){V.preventDefault();var l=this.data&&this.data.navigationEndpoint;!l||!_.qi(_.b3(V),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.qi(_.b3(V),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.z("kevlar_watchcard_hero_video_renderer_killswitch")?_.B$(this.hostElement,"yt-navigate",{navigationEndpoint:l}):this.ytComponentBehavior.resolveCommand(l))};
_.B.computeHeroTabIndex=function(V){return V&&V.simpleText?-1:0};
_.B.computeHeroRole=function(V){return V&&V.simpleText?"":"link"};
_.B.computeIsReminderButtonPresent=function(V){return!(!V||!V.reminderButton)};
_.B.computeHideBottomItems=function(V){return!(this.computeIsReminderButtonPresent(V)||V.subtitle)};
_.B.dataChanged=function(){var V=this.get("data.buttons.buttonRenderer.serviceEndpoint"),l;((l=_.y(V==null?void 0:V.commandMetadata,_.Jr))==null?0:l.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(V)};
var ik=y1j;ik.prototype.dataChanged=ik.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ik.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ik.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ik.prototype,"data",void 0);
_.O([_.q({computed:"computeSubtitle(data)"}),_.a("design:type",String)],ik.prototype,"subtitle",void 0);_.O([_.q({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],ik.prototype,"isReminderButtonPresent",void 0);_.O([_.q({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],ik.prototype,"hideBottomItems",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ik.prototype,"dataChanged",null);ik=_.O([_.A({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],ik);
_.u(ik,"ytd-watch-card-hero-video-renderer",function(){if(ztY!==void 0)return ztY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ztY=V},{mode:1});var tcV;var r1p=function(){return _.M.apply(this,arguments)||this};
_.t(r1p,_.M);_.B=r1p.prototype;_.B.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"}}}};
_.B.computeTitleBadges=function(V){return V?[V]:[]};
_.B.computeHeaderStyle=function(V){return V?V.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.B.computeAvatarAriaLabel=function(V){if(V){var l,I,H,T;return(T=(l=V.avatar)==null?void 0:(I=l.accessibility)==null?void 0:(H=I.accessibilityData)==null?void 0:H.label)!=null?T:_.A5(V==null?void 0:V.title)}};
_.B.computeAvatarHeight=function(V){return V==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.B.computeBadgeRowClass=function(V){return(V==null?0:V[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
var VE=r1p;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],VE.prototype,"data",void 0);_.O([_.q({computed:"computeTitleBadges(data.titleBadge)"}),_.a("design:type",Array)],VE.prototype,"titleBadges",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.a("design:type",String)],VE.prototype,"headerStyle",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.a("design:type",String)],VE.prototype,"badgeRowClass",void 0);VE=_.O([_.A({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],VE);
_.u(VE,"ytd-watch-card-rich-header-renderer",function(){if(tcV!==void 0)return tcV;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return tcV=V},{mode:1});var Gw6;var ET5;var J1h=function(){return _.M.apply(this,arguments)||this};
_.t(J1h,_.M);J1h.prototype.onMetadataTap=function(V){var l=this.data&&this.data.navigationEndpoint;l&&!_.qi(_.b3(V),this.hostElement,["A".toString()])&&_.B$(this.hostElement,"yt-navigate",{endpoint:l})};
_.vI.Object.defineProperties(J1h.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 V;if(this.data.upcomingEventData){var l=_.A5(this.data.subtitle),I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(V=_.pW(_.Zb(l,I)))}else V=this.data.subtitle;return V}}}});
var lq=J1h;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],lq.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data.style"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],lq.prototype,"isCondensed",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],lq.prototype,"subtitle",null);
lq=_.O([_.A({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],lq);
_.u(lq,"ytd-watch-card-compact-video-renderer",function(){if(ET5!==void 0)return ET5;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ET5=V},{mode:1});var oT5;var htV=function(){return _.M.apply(this,arguments)||this};
_.t(htV,_.M);var PN6=htV;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],PN6.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],PN6.prototype,"data",void 0);PN6=_.O([_.A({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],PN6);
_.u(PN6,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(oT5!==void 0)return oT5;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return oT5=V},{mode:1});var DqO=function(){return _.M.apply(this,arguments)||this};
_.t(DqO,_.M);DqO.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
var I4=DqO;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],I4.prototype,"ytRendererStamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],I4.prototype,"data",void 0);I4=_.O([_.A({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],I4);
_.u(I4,"ytd-vertical-watch-card-list-renderer",function(){if(Gw6!==void 0)return Gw6;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Gw6=V},{mode:1});var ZKh;var StM=function(){var V=_.M.apply(this,arguments)||this;V.ariaExpanded="false";return V};
_.t(StM,_.M);_.B=StM.prototype;_.B.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.B.dataChanged=function(){var V;this.currentSeasonIndex=((V=this.data)==null?void 0:V.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.B.computeEpisodesInfo=function(V,l,I){if(V!==void 0&&l.length===V.length)return V[I]};
_.B.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.B.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.B.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.B.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.B.getUppercaseSimpleString=function(V){return this.ytRendererBehavior.getSimpleString(V).toUpperCase()};
_.B.updateCurrentSeasonIndexFromBinding=function(V){this.currentSeasonIndex=V.detail.value};
var HW=StM;HW.prototype.onIronOverlayClosed=HW.prototype.onIronOverlayClosed;HW.prototype.currentSeasonIndexChanged=HW.prototype.currentSeasonIndexChanged;HW.prototype.dataChanged=HW.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],HW.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",String)],HW.prototype,"label",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],HW.prototype,"currentSeasonIndex",void 0);_.O([_.q({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.a("design:type",Object)],HW.prototype,"episodesInfo",void 0);_.O([_.q({value:"false"}),_.a("design:type",Object)],HW.prototype,"ariaExpanded",void 0);_.O([_.Ij("#lists"),_.a("design:type",Object)],HW.prototype,"lists",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HW.prototype,"dataChanged",null);_.O([_.xs("currentSeasonIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HW.prototype,"currentSeasonIndexChanged",null);_.O([_.W("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],HW.prototype,"onIronOverlayClosed",null);
HW=_.O([_.A({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],HW);
_.u(HW,"ytd-watch-card-section-dropdown-renderer",function(){if(ZKh!==void 0)return ZKh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ZKh=V},{mode:1});var Rtj;var Q1q=function(){var V=_.M.apply(this,arguments)||this;V.isSearch=!1;return V};
_.t(Q1q,_.M);Q1q.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
var Ty=Q1q;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ty.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Ty.prototype,"isSearch",void 0);Ty=_.O([_.A({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Ty);
_.u(Ty,"ytd-watch-card-section-sequence-renderer",function(){if(Rtj!==void 0)return Rtj;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return Rtj=V},{mode:1});var fqP=_.FR({buttonViewModel:_.Db});_.m5(gcQ);_.aN(gcQ,"ytd-button-banner-view-model",{propNames:["data"]});var c1O=function(){var V=_.M.apply(this,arguments)||this;V.isSearch=!1;return V};
_.t(c1O,_.M);
c1O.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
var BW=c1O;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],BW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],BW.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],BW.prototype,"rounded",void 0);_.O([_.q(),_.a("design:type",Object)],BW.prototype,"isSearch",void 0);
BW=_.O([_.A({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],BW);
_.u(BW,"ytd-universal-watch-card-renderer",function(){if(BW5!==void 0)return BW5;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return BW5=V},{mode:1});var W3h;_.MR(_.W1(function(V){var l=V.data;var I;V=!((I=_.F().resolve(_.Cs(_.DA)))==null||!I());I={};return _.Y("overview-message-view-model",{class:_.ii("ytwOverviewMessageViewModelHost",(I.ytwOverviewMessageViewModelDarkBackground=V,I.ytwOverviewMessageViewModelLightBackground=!V,I))},_.Y(_.NS,{cond:function(){return l().primaryImage},
then:function(H){return _.Y(_.cX,{data:H,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.Y(_.NS,{cond:function(){return l().primaryText},
then:function(){return _.Y("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.Y(_.Ni,{text:function(){return l().primaryText}}))}}),_.Y(_.NS,{cond:function(){return l().secondaryText},
then:function(){return _.Y("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.Y(_.Ni,{text:function(){return l().secondaryText}}))}}))},"Gh"),"overview-message-view-model",{props:{data:_.b9}});_.aN(_.Gwb,"ytd-overview-answer-view-model",{propNames:["data"]});var bKh=function(){return _.M.apply(this,arguments)||this};
_.t(bKh,_.M);bKh.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"}}}};
bKh.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
var xZ=bKh;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],xZ.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],xZ.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],xZ.prototype,"isSearch",void 0);
xZ=_.O([_.A({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],xZ);
_.u(xZ,"ytd-secondary-search-container-renderer",function(){if(W3h!==void 0)return W3h;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return W3h=V},{mode:1});var qtf;var McO=function(){var V=_.M.apply(this,arguments)||this;V.renderSecondarySearchContainer=!1;V.isSearch=!1;V.isSearchDova=_.z("dova_on_search");return V};
_.t(McO,_.M);_.B=McO.prototype;_.B.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"}}}};
_.B.created=function(){var V=this;this.boundStampSecondarySearchContainerIfFits=function(){V.stampSecondarySearchContainerIfFits()};
_.ow("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.B.computeIsSearchFrictionPage=function(V){var l,I,H,T,x;V=V==null?void 0:(l=V.primaryContents)==null?void 0:(I=l.sectionListRenderer)==null?void 0:(H=I.contents)==null?void 0:(T=H[0])==null?void 0:(x=T.itemSectionRenderer)==null?void 0:x.contents;if(!V)return!1;l=_.U(V);for(I=l.next();!I.done;I=l.next())if(H=void 0,(H=I.value)==null?0:H.searchFrictionViewModel)return!0;return!1};
_.B.computeShowSecondaryColumn=function(V,l){return!!(l&&l.secondaryContents&&V)};
_.B.activeChanged=function(){var V=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.VP(this,this.debounceStampSecondarySearchContainerIfFits)),_.r_(function(){V.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.VP(this,this.debounceStampSecondarySearchContainerIfFits))};
_.B.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.B.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.B.debounceStampSecondarySearchContainerIfFits=function(){_.Go(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.B.onRetrieveLocation=function(V,l){l.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);V.stopPropagation()};
_.B.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
var UG=McO;UG.prototype.dataChanged=UG.prototype.dataChanged;UG.prototype.onRetrieveLocation=UG.prototype.onRetrieveLocation;UG.prototype.persistentGuideChanged=UG.prototype.persistentGuideChanged;UG.prototype.activeChanged=UG.prototype.activeChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],UG.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.R(_.Da),_.a("design:type",Object)],UG.prototype,"ironResizableBehavior",void 0);_.O([_.q(),_.a("design:type",Boolean)],UG.prototype,"active",void 0);_.O([_.q(),_.a("design:type",Object)],UG.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.z("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],UG.prototype,"useBiggerThumbs",void 0);_.O([_.q({reflectToAttribute:!0,value:function(){return _.m_("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],UG.prototype,"biggerThumbsStyle",void 0);_.O([_.q(),_.a("design:type",Object)],UG.prototype,"renderSecondarySearchContainer",void 0);_.O([_.q({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.a("design:type",Boolean)],UG.prototype,"showSecondaryColumn",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.a("design:type",Boolean)],UG.prototype,"isSearchFrictionPage",void 0);
_.O([_.q(),_.a("design:type",Object)],UG.prototype,"isSearch",void 0);_.O([_.q(),_.a("design:type",Object)],UG.prototype,"isSearchDova",void 0);_.O([_.b("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UG.prototype,"activeChanged",null);_.O([_.b("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UG.prototype,"persistentGuideChanged",null);
_.O([_.W("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],UG.prototype,"onRetrieveLocation",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UG.prototype,"dataChanged",null);UG=_.O([_.A({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],UG);
_.u(UG,"ytd-two-column-search-results-renderer",function(){if(qtf!==void 0)return qtf;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return qtf=V},{mode:1});var s1p=function(){var V=_.M.apply(this,arguments)||this;V.hasSearchHeader=!1;V.hasSecondaryContent=!1;V.hasBiggerThumbs=_.z("enable_desktop_search_bigger_thumbs");V.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return V};
_.t(s1p,_.M);_.B=s1p.prototype;_.B.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:_.hk(["aa","eocs"])}}};
_.B.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.B.loadPage_=function(V){this.initCsi();V&&(this.data=V,_.ow("REFINEMENTS_TUPLE",["FromSearchResponse",V.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.MD(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.B.initCsi=function(){_.s0g("results",["ol","cpt"])};
_.B.updateTitle=function(){var V=_.Qo(window.location.href,"q");V||(V=_.Qo(window.location.href,"search_query"));_.B$(this.hostElement,"yt-update-title",V||"")};
_.B.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.B.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.z("web_srp_data_changed_terminate_imp_killswitch")||_.xB(this.hostElement,"yt-terminate-video-preview-action")};
_.B.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.B.computeHasSearchHeader=function(V){var l;V=V==null?void 0:(l=V.header)==null?void 0:l.searchHeaderRenderer;return!!V&&(!!V.searchFilterButton||!!V.chipBar)};
_.B.computeHasSecondaryContent=function(V){var l,I;return!!(V==null?0:(l=V.contents)==null?0:(I=l.twoColumnSearchResultsRenderer)==null?0:I.secondaryContents)};
_.vI.Object.defineProperties(s1p,{template:{configurable:!0,enumerable:!0,get:function(){if(mMI===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);mMI=V}V=mMI;return V}}});
var n9=s1p;n9.prototype.onReloadContinuationFinish=n9.prototype.onReloadContinuationFinish;n9.prototype.dataChanged=n9.prototype.dataChanged;_.O([_.R(_.Rb.YtPageBehavior),_.a("design:type",Object)],n9.prototype,"ytPageBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],n9.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],n9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],n9.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],n9.prototype,"data",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],n9.prototype,"monitorScroll",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],n9.prototype,"hasSearchHeader",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],n9.prototype,"hasSecondaryContent",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],n9.prototype,"hasBiggerThumbs",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],n9.prototype,"dataChanged",null);
_.O([_.W("yt-reload-continuation-finish"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],n9.prototype,"onReloadContinuationFinish",null);n9=_.O([_.A({is:"ytd-search"})],n9);_.oe.registerService(_.H91,n9);
_.o8();
}catch(e){_._DumpException(e)}
try{
_.JK("h8y2qb");
var AEE=function(V){if(V=_.xWq(V)){var l;(l=V.sources)!=null&&l[0]?(l=_.nug(V),l=l<1?"VERTICAL":l>1?"HORIZONTAL":"SQUARE"):l=void 0;return l}},QU=function(V){_.tu.call(this,"upload");
this.opts.query=V},vP6=function(V,l){return _.Y(uSQ,{data:V,
onYtNavigate:l})},CkE=function(V,l){return V.map(function(I){if(I.tabRenderer)return O3B(I.tabRenderer);
if(I.expandableTabRenderer&&l){var H=I.expandableTabRenderer;return{customTabRenderable:function(){return l(H)}}}return{}})},O3B=function(V){return{identifier:V.tabIdentifier,
aTagConfig:_.GG({innertubeCommand:V.endpoint,forceNewState:!0}),title:V.title,selected:V.selected,disabled:V.unselectable}},aF2=function(V,l){return _.nW(V.entities,"pageHeaderEntity",l)},mGY=function(V){var l=V.data;
var I=V.noPadding===void 0?!1:V.noPadding;var H=V.enableBanner===void 0?!1:V.enableBanner;var T=V.cinematicContainerTopbarOffset;var x=V.allowCinematicContainerOverflow===void 0?!1:V.allowCinematicContainerOverflow;V=V.displayAsSidebar===void 0?!1:V.displayAsSidebar;if(l==null?0:l.tagManagerId)_.k6(l.tagManagerId,_.h6("GL")),fFE(l.tagManagerId);a:{if(l.pageHeaderEntityKey){var n=_.n6(aF2,l.pageHeaderEntityKey);if(n==null?0:n.header){n=n==null?void 0:n.header;break a}}n=V&&l.sidebarContent?l.sidebarContent:
l.content}return _.Y("yt-page-header-renderer",{class:"page-header-renderer-wiz"},gPE(n,{pageHeaderViewModel:{noPadding:I,enableBanner:H,cinematicContainerTopbarOffset:T,allowCinematicContainerOverflow:x,displayAsSidebar:V&&l.enableSidebarView}}))},i3Y=function(V){return _.IA({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:V})},fFE=function(V){if(!_.Ox(document,"gtm-noscript")){var l=document.createElement("noscript");
l.id="gtm-noscript";l.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+V+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(l)}};_.Uk(QU,_.tu);QU.prototype.JSC$7941_setLabel=function(V){QU.superClass_.JSC$7941_setLabel.call(this,V);return this};
QU.prototype.addUploadMetadata=function(V,l){QU.superClass_.addUploadMetadata.call(this,V,l);return this};var V8V=function(V){if(V!=="youtubebanner"&&V!=="youtube-channel-banner")throw Error("Vl");QU.call(this,V)};
_.t(V8V,QU);V8V.prototype.JSC$7941_setLabel=function(V){QU.prototype.JSC$7941_setLabel.call(this,V);return this};
V8V.prototype.addUploadMetadata=function(V,l){QU.prototype.addUploadMetadata.call(this,V,l);return this};var lyh=[_.Da,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(V){_.Xb(V).path[0]!==this&&(this.resetLayout(),V.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var V=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.nD(this._layoutDebouncer,_.Kt,V);_.$b(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var V=this;requestAnimationFrame(function(){V.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(V){this.resizerShouldNotify(V)&&this._notifyDescendant(V)},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 IyP=[_.fbN,{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(V,l){var I=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[V];if(!I)throw new ReferenceError(this._getUndefinedMsg(V));V=this._boundEffect(I,l||{});V.setUp();return V},
_effectsChanged:function(V,l,I){this._tearDownEffects();V&&I&&(V.split(" ").forEach(function(H){var T;H!==""&&((T=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[H])?this._effects.push(this._boundEffect(T,l[H])):console.warn(this._getUndefinedMsg(H)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(V,l){l=l||{};var I=parseFloat(l.startsAt||0),H=parseFloat(l.endsAt||1),T=H-I,x=function(){};
H=I===0&&H===1?V.run:function(n,w){V.run.call(this,Math.max(0,(n-I)/T),w)};
return{setUp:V.setUp?V.setUp.bind(this,l):x,run:V.run?H.bind(this):x,tearDown:V.tearDown?V.tearDown.bind(this):x}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(V){V.setUp()!==!1&&this._effectsRunFn.push(V.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(V){V.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(V,l){this._effectsRunFn&&this._effectsRunFn.forEach(function(I){I(V,l)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var V=this._clampedScrollTop;this._updateScrollState(V);this.threshold>0&&this._setThresholdTriggered(V>=this.threshold)}},
_getDOMRef:function(V){console.warn("_getDOMRef","`"+V+"` is undefined")},
_getUndefinedMsg:function(V){return"Scroll effect `"+V+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+V+".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(V){var l={};V=parseFloat(V.scalar);l.background=this._getDOMRef("background");l.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");l.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");l.deltaBg=l.backgroundFrontLayer.offsetHeight-l.background.offsetHeight;l.deltaBg===0?(isNaN(V)&&(V=.8),l.deltaBg=(this._dHeight||0)*V):(isNaN(V)&&(V=
1),l.deltaBg*=V);this._fxParallaxBackground=l},
run:function(V){var l=this._fxParallaxBackground;this.transform("translate3d(0px, "+l.deltaBg*Math.min(1,V)+"px, 0px)",l.backgroundFrontLayer);l.backgroundRearLayer&&this.transform("translate3d(0px, "+l.deltaBg*Math.min(1,V)+"px, 0px)",l.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var H9u;var THr;var BHE=function(){};
_.B=BHE.prototype;_.B._scrollTargetChanged=function(){};
_.B.scroll=function(){};
_.B._isValidScrollTarget=function(){};
_.B._toggleScrollListener=function(){};
_.B.toggleScrollListener=function(){};
_.B.createEffect=function(){};
_.B._effectsChanged=function(){};
_.B._layoutIfDirty=function(){};
_.B._boundEffect=function(){};
_.B._setUpEffect=function(){};
_.B._tearDownEffects=function(){};
_.B._runEffects=function(){};
_.B._scrollHandler=function(){};
_.B._scrollStateChanged=function(){};
_.B._getUndefinedMsg=function(){};
_.B.notifyResize=function(){};
_.B.assignParentResizable=function(){};
_.B.stopResizeNotificationsFor=function(){};
_.B._subscribeIronResize=function(){};
_.B._unsubscribeIronResize=function(){};
_.B.resizerShouldNotify=function(){};
_.B._onDescendantIronResize=function(){};
_.B._fireResize=function(){};
_.B._onIronRequestResizeNotifications=function(){};
_.B._parentResizableChanged=function(){};
_.B._notifyDescendant=function(){};
_.B._requestResizeNotifications=function(){};
_.B._findParent=function(){};
_.B._appResetLayoutHandler=function(){};
_.B.resetLayout=function(){};
_.B._notifyLayoutChanged=function(){};
_.B._notifyDescendantResize=function(){};
_.B._setThresholdTriggered=function(){};
BHE=_.Ne({_template:function(){if(THr!==void 0)return THr;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;H9u===void 0&&(H9u=document.createElement("template"));var H=H9u;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return THr=V},
is:"tp-yt-app-header",behaviors:[IyP,lyh],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 V=_.Xb(this.$.slot).getDistributedNodes(),l=0,I;I=V[l];l++)if(I.nodeType===Node.ELEMENT_NODE)if(I.hasAttribute("sticky")){this._stickyElRef=I;break}else this._stickyElRef||(this._stickyElRef=I);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var V=this._clampedScrollTop,l=this._height===0||V===0,I=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;l||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();l?this._updateScrollState(V,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=I}},
_updateScrollState:function(V,l){if(this._height!==0){var I=0,H=this._top;var T=this._maxHeaderTop;var x=V-this._lastScrollTop,n=Math.abs(x),w=V>this._lastScrollTop,N=performance.now();this._mayMove()&&(I=this._clamp(this.reveals?H+x:V,0,T));V>=this._dHeight&&(I=this.condenses&&!this.fixed?Math.max(this._dHeight,I):I,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&n<100){if(N-this._initTimestamp>300||this._wasScrollingDown!==w)this._initScrollTop=V,this._initTimestamp=N;V>=T&&
(Math.abs(this._initScrollTop-V)>30||n>10?(w&&V>=T?I=T:!w&&V>=this._dHeight&&(I=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((I-H)/(x/(N-this._lastTimestamp)),0,300)+"ms"):I=this._top)}T=this._dHeight===0?V>0?1:0:I/this._dHeight;l||(this._lastScrollTop=V,this._top=I,this._wasScrollingDown=w,this._lastTimestamp=N);if(l||T!==this._progress||H!==I||V===0)this._progress=T,this._runEffects(T,I),this._transformHeader(I)}},
_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(V){this.translate3d(0,-V+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&V>=this._stickyElTop?Math.min(V,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(V,l,I){return Math.min(I,Math.max(l,V))},
_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),_.Xb(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(V){switch(V){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Xb(this).querySelector("[main-title]");case "condensedTitle":return _.Xb(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var xgY;var Ugh;_.Ne({_template:function(){if(Ugh!==void 0)return Ugh;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;xgY===void 0&&(xgY=document.createElement("template"));var H=xgY;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return Ugh=V},
is:"tp-yt-app-header-layout",behaviors:[lyh],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Xb(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var V=this.header;if(this.isAttached&&V){this.$.wrapper.classList.remove("initializing");V.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)V.style.left=
"",V.style.right="";else{var l=this.getBoundingClientRect(),I=document.documentElement.clientWidth-l.right;V.style.left=l.left+"px";V.style.right=I+"px"}l=this.$.contentContainer.style;I=V.offsetHeight;V.fixed&&!V.condenses&&this.hasScrollingRegion?(l.marginTop=I+"px",l.paddingTop=""):(l.paddingTop=I+"px",l.marginTop="")}}});var nZE=new _.f("replaceFeedContentAction");var $gu=new _.f("alertCommand");var dgP=new _.f("manageLabsStateCommand");var wW6=new _.f("channelBannerEditorRenderer");var NHu=new _.f("inlineFormRenderer");var KtE=new _.f("playlistSidebarPrimaryInfoRenderer");var j4Y=new _.f("productDetailsThumbnailRenderer"),YGh=new _.f("productDetailsVariantRenderer"),LtP=new _.f("productDetailsVariantOptionRenderer"),eCb=new _.f("productDetailsOffersContainerRenderer"),kyb=new _.f("productDetailsOfferRenderer");var FtE=new _.f("shoppingFlaggingRenderer");var XW6=new _.f("playlistBylineRenderer");var zCP=new _.f("insertChannelTabCommand");var yWB=function(){return _.To.apply(this,arguments)||this};
_.t(yWB,_.To);_.B=yWB.prototype;_.B.activeChanged=function(){if(this.active){var V=_.h(this.hostElement).querySelector("#header");V&&_.B$(V,"iron-resize");window.addEventListener("scroll",_.VP(this,this.onScroll))}else window.removeEventListener("scroll",_.VP(this,this.onScroll)),_.B$(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.B.guideVisibleChanged=function(){var V=_.h(this.hostElement).querySelector("#header");V&&_.B$(V,"iron-resize")};
_.B.onScroll=function(){var V=this;_.Go(this,"onScroll",function(){var l=_.h(V.hostElement).querySelector("#header");l&&l.polymerController&&(l=l.polymerController.getScrollState().progress===1?"standard":"seamed",_.B$(V.hostElement,"yt-request-panel-mode-change",{mode:l}))},10)};
_.B.tabsChanged=function(){if(this.tabs){for(var V=null,l=0,I=this.tabs.length;l<I;++l){var H=this.tabs[l].tabRenderer;if(H&&H.selected){V=l;break}}this.selected=V}};
_.B.onTabsActivate=function(V){_.B$(this.hostElement,"yt-navigate",{endpoint:this.tabs[V.detail.selected].tabRenderer.endpoint})};
var cR=yWB;cR.prototype.tabsChanged=cR.prototype.tabsChanged;cR.prototype.guideVisibleChanged=cR.prototype.guideVisibleChanged;cR.prototype.activeChanged=cR.prototype.activeChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],cR.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.q(),_.a("design:type",Array)],cR.prototype,"tabs",void 0);
_.O([_.q(),_.a("design:type",Object)],cR.prototype,"selected",void 0);_.O([_.q(),_.a("design:type",Boolean)],cR.prototype,"active",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],cR.prototype,"disableHeaderFluidWidth",void 0);_.O([_.b("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cR.prototype,"activeChanged",null);
_.O([_.b("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cR.prototype,"guideVisibleChanged",null);_.O([_.b("tabs"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cR.prototype,"tabsChanged",null);cR=_.O([_.B1()],cR);var t8E=[_.m.YtRendererBehavior,_.bM.YtdGuideStateAwareBehavior,cR.prototype];var rWV=2/3,GyQ=_.eU(130749),EZ6=function(V,l){var I=this;this.element=V;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){I.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:rWV,moveAction:function(H){I.moveAction(H)},
triggerAction:function(){I.element.isReloading=!0;_.Dt(_.x7(),{visualElement:GyQ});_.li.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:I.element}})}}}};
_.nn(_.x7(),GyQ,this.layer);this.gesture=new _.yU(V,l,this.refreshConfig,"pan-down");this.attach()};
_.B=EZ6.prototype;_.B.attach=function(){this.gesture.attach()};
_.B.detach=function(){this.gesture.detach()};
_.B.reset=function(){this.element.close()};
_.B.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.B.moveAction=function(V){this.element.rotation=V*360};var JWE=_.eU(130750),WR=function(V,l,I,H,T){var x=this;this.element=V;this.parent=I;this.channelHeader=H;this.ytdReduxDispatch=T;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){x.tabsStartAtInPx=x.channelHeader.clientHeight-48;var n;(n=x.selectedTab)!=null&&n.title&&(n=_.F().resolve(_.Cs(_.pa)))&&(n=n.getCurrentPage(),x.lastVisitedTabScrollPosition=n.getScrollTop(),x.previousTab&&
((x.lastVisitedTabScrollPosition===void 0?0:x.lastVisitedTabScrollPosition<x.channelHeader.clientHeight-48)?x.scrollPositionForTabs.has(x.selectedTab.title)&&x.scrollPositionForTabs.delete(x.selectedTab.title):x.scrollPositionForTabs.set(x.selectedTab.title,n.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:oZE(),triggerAction:function(){x.navigate(x.previousTab)},
moveAction:function(n,w){x.moveAction(n,w)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-oZE(),triggerAction:function(){x.navigate(x.nextTab)},
moveAction:function(n,w){x.moveAction(n,w)}}}};
_.nn(_.x7(),JWE,this.layer);this.gesture=new _.yU(V,l,this.tabConfig);this.attach()};
WR.prototype.attach=function(){this.gesture.attach()};
WR.prototype.detach=function(){this.gesture.detach()};
WR.prototype.tabsChanged=function(V){if(V){var l=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;V=_.U(V);for(var I=V.next();!I.done;I=V.next()){I=I.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=I);var H=void 0;if((H=I)==null?0:H.selected)this.previousTab=l,this.selectedTab=I;l=I}l=this.gesture;V=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}});
l.config=V;this.scrollPositionNeedsUpdate=!0}};
WR.prototype.moveAction=function(V,l){if(!this.tabsElement){var I;this.tabsElement=(I=this.parent.header)==null?void 0:I.tabsElement;l==="right"&&this.previousTab?_.cx3(_.x6.instance,this.previousTab.endpoint,{},""):l==="left"&&this.nextTab&&_.cx3(_.x6.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}I=this.tabsElement._pos;l==="right"&&(V*=-1);this.tabsElement._positionBar(I.width,I.left*1+I.width*V)};
var oZE=function(){var V,l;return(l=(V=_.F().resolve(_.pa).getCurrentPage())==null?void 0:V.clientWidth)!=null?l:0};
WR.prototype.navigate=function(V){this.element.data=void 0;if(V=V==null?void 0:V.endpoint)this.ytdReduxDispatch(i3Y(!0)),_.Dt(_.x7(),{visualElement:JWE}),_.li.instance.resolveCommand({navigateAction:{endpoint:V}},{form:{element:this.element}})};var hCE;var PqE;var Dgu=function(){return _.M.apply(this,arguments)||this};
_.t(Dgu,_.M);Dgu.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var bI=Dgu;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],bI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],bI.prototype,"data",void 0);bI=_.O([_.A({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],bI);
_.u(bI,"ytd-labs-edit-renderer",function(){if(PqE!==void 0)return PqE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return PqE=V},{mode:1});var Z9V;var qm=function(){var V=_.M.apply(this,arguments)||this;V.dark=!1;V.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";V.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(qm,_.M);qm.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qm.prototype.ready=function(){var V=document.documentElement.hasAttribute("dark");this.setBackgroundImage(V);this.dark=V};
qm.prototype.onDarkModeToggledAction=function(V){this.setBackgroundImage(V);this.dark=V};
qm.prototype.setBackgroundImage=function(V){_.i3(this.hostElement,{"--yt-labs-header-background":"url("+(V?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
var Mm=qm;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Mm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Mm.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Mm.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Mm.prototype,"dark",void 0);
Mm=_.O([_.A({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Mm);
_.u(Mm,"ytd-labs-header-renderer",function(){if(Z9V!==void 0)return Z9V;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Z9V=V},{mode:1});var SGr;var sr=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return V};
_.t(sr,_.M);sr.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"}}}}}};
sr.prototype.onYtToggleButton=function(V){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",V.detail.toggled)};
sr.prototype.onManageLabsState=function(V){if(V=_.y(V,dgP))V.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?V.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&V.labsItemId===this.data.labsItemId&&(V.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.xB(this.hostElement,"yt-check-labs-opted-in-state").some(function(l){return l})&&this.data.confirmationDialogCommand?_.d6(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.z("web_ytd_labs_item_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.optInCommand]):_.F().resolve(_.aw).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&V.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.z("web_ytd_labs_item_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.optOutCommand]):
_.F().resolve(_.aw).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
sr.prototype.onCheckLabsOptedInState=function(){var V=this.get("data.primaryButton.toggleButtonRenderer");return V?V.isToggled:!1};
_.vI.Object.defineProperties(sr.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
var pc=sr;pc.prototype.onYtToggleButton=pc.prototype.onYtToggleButton;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],pc.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pc.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],pc.prototype,"itemStyle",null);_.O([_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pc.prototype,"onYtToggleButton",null);pc=_.O([_.A({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],pc);
_.u(pc,"ytd-labs-item-renderer",function(){if(SGr!==void 0)return SGr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return SGr=V},{mode:1});var RCb;var Q4g;var cW6=function(){return _.M.apply(this,arguments)||this};
_.t(cW6,_.M);var Wtg=cW6;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Wtg.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Wtg.prototype,"data",void 0);Wtg=_.O([_.A({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Wtg);
_.u(Wtg,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Q4g!==void 0)return Q4g;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Q4g=V},{mode:1});var b9h;var qGb=function(){return _.M.apply(this,arguments)||this};
_.t(qGb,_.M);qGb.prototype.observeSuperchatChip=function(){if(this.data){var V={"--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)};_.i3(this.hostElement,V)}};
qGb.prototype.colorFromDecimal=function(V){return _.rP(Number(V||0))};
var AJ=qGb;AJ.prototype.observeSuperchatChip=AJ.prototype.observeSuperchatChip;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],AJ.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AJ.prototype,"observeSuperchatChip",null);AJ=_.O([_.A({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],AJ);
_.u(AJ,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(b9h!==void 0)return b9h;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return b9h=V},{mode:1});var M8P=function(){return _.M.apply(this,arguments)||this};
_.t(M8P,_.M);M8P.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"}}}};
_.vI.Object.defineProperties(M8P.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
var uI=M8P;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.SE),_.a("design:type",Object)],uI.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],uI.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uI.prototype,"hideMessageBlock",null);
uI=_.O([_.A({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],uI);
_.u(uI,"ytd-live-chat-history-entry-renderer",function(){if(RCb!==void 0)return RCb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return RCb=V},{mode:1});var s4Q;var pWB=function(){return _.M.apply(this,arguments)||this};
_.t(pWB,_.M);var AWE=pWB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],AWE.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],AWE.prototype,"data",void 0);AWE=_.O([_.A({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],AWE);
_.u(AWE,"ytd-channel-options-renderer",function(){if(s4Q!==void 0)return s4Q;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return s4Q=V},{mode:1});var unb;var vZB=function(){return _.M.apply(this,arguments)||this};
_.t(vZB,_.M);vZB.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
var vR=vZB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],vR.prototype,"data",void 0);vR=_.O([_.A({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],vR);
_.u(vR,"ytd-settings-email-item-renderer",function(){if(unb!==void 0)return unb;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return unb=V},{mode:1});var O96;var Or=function(){return _.M.apply(this,arguments)||this};
_.t(Or,_.M);Or.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"}}}};
Or.prototype.getExpansionIcon=function(V){return V?"arrow_drop_up":"arrow_drop_down"};
Or.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.vI.Object.defineProperties(Or.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
var Cc=Or;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Cc.prototype,"data",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Cc.prototype,"expanded",void 0);
_.O([_.Q("expanded"),_.a("design:type",String),_.a("design:paramtypes",[])],Cc.prototype,"emailListExpanded",null);_.O([_.Ij("#options"),_.a("design:type",Object)],Cc.prototype,"options",void 0);Cc=_.O([_.A({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Cc);
_.u(Cc,"ytd-settings-email-list-renderer",function(){if(O96!==void 0)return O96;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return O96=V},{mode:1});var CqE;var ayY=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return V};
_.t(ayY,_.M);ayY.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"}}}};
ayY.prototype.handleSignalActionSubmitForm=function(){var V,l=(V=this.formRenderer)==null?void 0:V.getForm();l&&this.data.serviceEndpoint&&(_.z("web_ytd_settings_gaia_link_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.serviceEndpoint,l]):_.F().resolve(_.aw).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},l,{element:this.hostElement})}))};
var ab=ayY;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ab.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ab.prototype,"data",void 0);_.O([_.Ij("yt-form-renderer"),_.a("design:type",Object)],ab.prototype,"formRenderer",void 0);
ab=_.O([_.A({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],ab);
_.u(ab,"ytd-settings-gaia-link-renderer",function(){if(CqE!==void 0)return CqE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return CqE=V},{mode:1});var fyb;var fc=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return V};
_.t(fc,_.M);fc.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.Jlu()&&this.set("data.hidden",!1)};
fc.prototype.onSwitchReady=function(){var V=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.z("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.EzI().then(function(l){l&&(Notification.permission==="default"?V.set("data.hidden",!1):Notification.permission==="granted"&&_.mi("NotificationsDisabled").then(function(I){I||_.xB(V.hostElement,"yt-toggle-settings-switch",[V.data.id,!I]);V.set("data.hidden",!1)}).catch(function(){}))})})};
fc.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}}}}};
fc.prototype.handleUpdateOptionsCommand=function(V){(V=_.y(V,_.ENZ))&&this.data&&this.data.id===V.id&&(this.set("data.hidden",V.hidden),V.text!==void 0&&this.set("data.text",V.text),V.clearOptions&&this.set("data.options",[]))};
var g8=fc;g8.prototype.onSwitchReady=g8.prototype.onSwitchReady;g8.prototype.dataChanged=g8.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],g8.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],g8.prototype,"data",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g8.prototype,"dataChanged",null);_.O([_.W("yt-settings-switch-ready"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g8.prototype,"onSwitchReady",null);g8=_.O([_.A({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],g8);
_.u(g8,"ytd-settings-options-renderer",function(){if(fyb!==void 0)return fyb;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return fyb=V},{mode:1});var gZg;var mgE=function(){return _.M.apply(this,arguments)||this};
_.t(mgE,_.M);mgE.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
mgE.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
var mH=mgE;mH.prototype.onYtExpanderMoreTapped=mH.prototype.onYtExpanderMoreTapped;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],mH.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],mH.prototype,"data",void 0);
_.O([_.W("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mH.prototype,"onYtExpanderMoreTapped",null);mH=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],mH);
_.u(mH,"ytd-product-details-description-renderer",function(){if(gZg!==void 0)return gZg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return gZg=V},{mode:1});var i9E;var VrV=function(){var V=_.M.apply(this,arguments)||this;V.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";V.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";V.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";V.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return V};
_.t(VrV,_.M);VrV.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vI.Object.defineProperties(VrV.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:(l=V.offerData)==null?void 0:l.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?void 0:V.purchaseButtonRenderers)!==void 0&&((l=this.data)==null?void 0:l.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var V,l;return!((V=this.data)==null||!V.formattedFromMerchantText)&&(!((l=this.data)==null||!l.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
var iI=VrV;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],iI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],iI.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],iI.prototype,"data",void 0);
_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],iI.prototype,"shippingIcon",void 0);_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],iI.prototype,"shippingAddressIcon",void 0);_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],iI.prototype,"googleGuaranteeIcon",void 0);
_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],iI.prototype,"returnPolicyIcon",void 0);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],iI.prototype,"showAdditionalFees",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],iI.prototype,"showMultiPurchaseButtons",null);
_.O([_.Q("data","showMultiPurchaseButtons"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],iI.prototype,"showPurchaseData",null);iI=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],iI);
_.u(iI,"ytd-product-details-hero-offer-renderer",function(){if(i9E!==void 0)return i9E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return i9E=V},{mode:1});var lJh;var IJb;var Hr6=function(){return _.M.apply(this,arguments)||this};
_.t(Hr6,_.M);_.B=Hr6.prototype;_.B.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.B.onKeyDown=function(V){V=V.keyCode;V!==13&&V!==32||this.handleSelection()};
_.B.onMouseEnterImage=function(){var V;((V=this.data)==null?void 0:V.thumbnailDetails)!==void 0&&_.U4(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.B.onMouseLeaveImage=function(){_.U4(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.B.handleSelection=function(){this.data&&_.B$(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.vI.Object.defineProperties(Hr6.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.isSelected)}}});
var VK=Hr6;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],VK.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],VK.prototype,"isSelected",null);VK=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],VK);
_.u(VK,"ytd-product-details-thumbnail-renderer",function(){if(IJb!==void 0)return IJb;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return IJb=V},{mode:1});var ThI=function(){var V=_.M.apply(this,arguments)||this;var l={};V.actionMap=(l["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",l["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",l);V.selectedThumbnailIndex=0;V.selectItem=function(I){I.target.onKeyDown(I)};
return V};
_.t(ThI,_.M);_.B=ThI.prototype;_.B.handlePreviewImageSelect=function(V){this.hoverThumbnail=V};
_.B.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.B.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.B.onThumbnailSelected=function(V,l){this.selectedThumbnailIndex=l};
_.B.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.B.updateOffset=function(){var V=_.h(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-V));this.ytdHorizontalListBehavior.reposition_()};
_.vI.Object.defineProperties(ThI.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null?0:V.imageRenderer){var l,I;return((l=this.data)==null?void 0:(I=l.imageRenderer)==null?void 0:I.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var V;if((V=this.data)==null?0:V.imageRenderer){var l;return(l=_.y(this.data.imageRenderer[this.selectedThumbnailIndex],j4Y))==null?void 0:l.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var V=this,l,I,H,T=(H=(l=this.data)==null?void 0:(I=l.imageRenderer)==null?void 0:I.map(function(x,n){return{productDetailsThumbnailRenderer:Object.assign({},_.y(x,j4Y),{index:n,isSelected:n===V.selectedThumbnailIndex})}}))!=null?H:[];
return Object.assign({},this.data,{imageRenderer:T})}}});
var lk=ThI;lk.prototype.updateOffset=lk.prototype.updateOffset;lk.prototype.dataChanged=lk.prototype.dataChanged;lk.prototype.onThumbnailSelected=lk.prototype.onThumbnailSelected;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],lk.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.ID.YtdHorizontalListBehavior),_.a("design:type",Object)],lk.prototype,"ytdHorizontalListBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],lk.prototype,"componentBehavior",void 0);_.O([_.R([_.aU.YtActionHandlerBehavior]),_.a("design:type",Object)],lk.prototype,"actionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],lk.prototype,"data",void 0);_.O([_.q({value:"$.items.children"}),_.a("design:type",String)],lk.prototype,"itemsPath",void 0);
_.O([_.q({value:3}),_.a("design:type",Number)],lk.prototype,"initialCount",void 0);_.O([_.Ij("#items"),_.a("design:type",Object)],lk.prototype,"items",void 0);_.O([_.q(),_.a("design:type",Object)],lk.prototype,"selectedThumbnailIndex",void 0);_.O([_.q(),_.a("design:type",Object)],lk.prototype,"hoverThumbnail",void 0);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],lk.prototype,"showThumbnails",null);
_.O([_.W("ytd-product-details-thumbnail-renderer-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Number]),_.a("design:returntype")],lk.prototype,"onThumbnailSelected",null);_.O([_.Q("data","selectedThumbnailIndex","hoverThumbnail"),_.a("design:type",Object),_.a("design:paramtypes",[])],lk.prototype,"thumbnailDetails",null);_.O([_.Q("data","selectedThumbnailIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],lk.prototype,"populatedData",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lk.prototype,"dataChanged",null);_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lk.prototype,"updateOffset",null);lk=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],lk);
_.u(lk,"ytd-product-details-image-carousel-renderer",function(){if(lJh!==void 0)return lJh;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return lJh=V},{mode:_.Cm("kevlar_poly_si_batch_j079")?1:2});var BhE;var xc2=function(){return _.M.apply(this,arguments)||this};
_.t(xc2,_.M);var I0=xc2;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],I0.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],I0.prototype,"data",void 0);I0=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],I0);
_.u(I0,"ytd-product-details-offer-renderer",function(){if(BhE!==void 0)return BhE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return BhE=V},{mode:1});var UcI;var nOB=function(){var V=_.M.apply(this,arguments)||this;V.isOffersHidden=!0;return V};
_.t(nOB,_.M);nOB.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var V,l=_.y((V=this.data)==null?void 0:V.viewOffersButton,_.RG);l&&this.ytRendererBehavior.logExplicitClick(l)};
nOB.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.vI.Object.defineProperties(nOB.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H;return(I=_.y((V=this.data)==null?void 0:(l=V.offers)==null?void 0:l[0],kyb))==null?void 0:(H=I.offerData)==null?void 0:H.vendorLogoUrl}}});
var H5=nOB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],H5.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],H5.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],H5.prototype,"isOffersHidden",void 0);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],H5.prototype,"firstOfferVendorLogoUrl",null);H5=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],H5);
_.u(H5,"ytd-product-details-offers-container-renderer",function(){if(UcI!==void 0)return UcI;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return UcI=V},{mode:1});var $cE;var dcQ;var T5=function(){return _.M.apply(this,arguments)||this};
_.t(T5,_.M);T5.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
T5.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.U4(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
T5.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.U4(this,"ytd-product-details-variant-image-unselect")};
_.vI.Object.defineProperties(T5.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 V;return((V=this.data)==null?void 0:V.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((V=this.data)==null?void 0:V.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((l=this.data)==null?void 0:l.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((I=this.data)==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var V;if(((V=this.data)==null?void 0:V.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var V,l;return this.isUnavailable?(V=this.data)==null?void 0:V.variantOptionUnavailableAccessibilityLabel:(l=this.data)==null?void 0:l.variantOptionAccessibilityLabel}}});
var B5=T5;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],B5.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],B5.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],B5.prototype,"displayType",void 0);
_.O([_.Q("displayType","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],B5.prototype,"isImageButton",null);_.O([_.Q("displayType","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],B5.prototype,"isPillButton",null);_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],B5.prototype,"isActive",null);
_.O([_.Q("data"),_.q({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],B5.prototype,"isUnavailable",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],B5.prototype,"thumbnailDetails",null);_.O([_.Q("isUnavailable","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],B5.prototype,"accessibilityLabel",null);B5=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],B5);
_.u(B5,"ytd-product-details-variant-option-renderer",function(){if(dcQ!==void 0)return dcQ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return dcQ=V},{mode:1});var w3E;var Nhr=function(){var V=_.M.apply(this,arguments)||this;V.variantsExpanded=!1;V.hideShowMoreLessVariantButton=!0;V.initialized=!1;V.computeVariantsDebouncer=null;V.computeVariants=function(l){l=l===void 0?!1:l;V.variantsExpanded||V.showOptions()||!l||(V.variantsExpanded=!0);if(V.variantsExpanded){l=_.U(V.items.children);for(var I=l.next();!I.done;I=l.next())I.value.hidden=!1}V.initialized=!0};
return V};
_.t(Nhr,_.M);_.B=Nhr.prototype;_.B.ready=function(){var V=this;setTimeout(function(){V.computeVariants(!0)})};
_.B.showOptions=function(){for(var V=_.U(this.items.children),l=V.next();!l.done;l=V.next())l.value.hidden=!0;var I=this.container.getBoundingClientRect().width,H=0,T=V=0;l=!1;for(var x=_.U(this.items.children),n=x.next();!n.done;n=x.next()){n=n.value;n.hidden=!1;var w=n.getBoundingClientRect().width;if(H+w<I)H+=w;else if(++T<2)H=w;else break;V+=1;n.hasAttribute("is-active")&&(l=!0)}for(I=V;I<this.items.children.length;I++)this.items.children[I].hidden=!0;this.hideShowMoreLessVariantButton=V===this.items.children.length;
return l};
_.B.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.nD(this.computeVariantsDebouncer,_.fh.after(100),this.computeVariants)};
_.B.onShowMoreLessVariantsButtonClick=function(){var V;(V=this.data)!=null&&V.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.B.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.vI.Object.defineProperties(Nhr.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(V=this.data)==null?void 0:(l=V.variantOptionRenderers)==null?void 0:l.find(function(x){return _.y(x,LtP).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),H,T;
return(T=(H=_.y(I,LtP))==null?void 0:H.name)!=null?T:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
var xP=Nhr;xP.prototype.debouncedComputeVariants=xP.prototype.debouncedComputeVariants;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],xP.prototype,"componentBehavior",void 0);_.O([_.R(_.Da),_.a("design:type",Object)],xP.prototype,"ironResizableBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],xP.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],xP.prototype,"variantsExpanded",void 0);_.O([_.q(),_.a("design:type",Object)],xP.prototype,"hideShowMoreLessVariantButton",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xP.prototype,"initialized",void 0);_.O([_.Ij("#items"),_.a("design:type",HTMLDivElement)],xP.prototype,"items",void 0);_.O([_.Ij("#container"),_.a("design:type",HTMLDivElement)],xP.prototype,"container",void 0);
_.O([_.Ij("#more-variants-button"),_.a("design:type",HTMLElement)],xP.prototype,"moreVariantsButton",void 0);_.O([_.Q("data"),_.a("design:type",String),_.a("design:paramtypes",[])],xP.prototype,"selectedOptionName",null);_.O([_.b("data","variantsExpanded"),_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xP.prototype,"debouncedComputeVariants",null);
_.O([_.Q("data"),_.a("design:type",String),_.a("design:paramtypes",[])],xP.prototype,"displayType",null);_.O([_.Q("displayType"),_.a("design:type",Object),_.a("design:paramtypes",[])],xP.prototype,"variantItemsClassname",null);xP=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],xP);
_.u(xP,"ytd-product-details-variant-renderer",function(){if(w3E!==void 0)return w3E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return w3E=V},{mode:1});var K7E=function(){return _.M.apply(this,arguments)||this};
_.t(K7E,_.M);
K7E.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"}}}};
_.vI.Object.defineProperties(K7E.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(l=_.y((V=this.data)==null?void 0:V.offersContainerRenderer,eCb))==null?void 0:l.offers;return I!==void 0&&(I==null?void 0:I.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 V,l,I;return((I=(V=this.data)==null?void 0:(l=V.variants)==null?void 0:l.map(function(H){var T,x;H=(x=(T=_.y(H,YGh))==null?void 0:T.variantOptionRenderers)==null?void 0:x.find(function(w){var N;return((N=_.y(w,LtP))==null?void 0:N.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var n;return(n=_.y(H,LtP))==null?void 0:n.name}).filter(function(H){return typeof H==="string"}))!=null?I:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H=(l=_.y((V=this.data)==null?void 0:V.shoppingFlaggingRenderer,FtE))==null?void 0:(I=l.reportButton)==null?void 0:I.buttonRenderer;if(H)return{text:H.text,command:H.command,icon:{iconType:"FLAG"},accessibilityData:H.accessibilityData,trackingParams:H.trackingParams,loggingDirectives:H.loggingDirectives}}}});
var U0=K7E;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],U0.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],U0.prototype,"data",void 0);
_.O([_.Ij("#image-carousel-renderer"),_.a("design:type",Object)],U0.prototype,"imageCarouselRenderer",void 0);_.O([_.Ij("#hero-offer-renderer"),_.a("design:type",Object)],U0.prototype,"productDetailsHeroOfferRenderer",void 0);_.O([_.Ij("#variants"),_.a("design:type",Object)],U0.prototype,"productDetailsVariantRenderer",void 0);_.O([_.Ij("#offers"),_.a("design:type",Object)],U0.prototype,"productDetailsOffersContainerRenderer",void 0);
_.O([_.Ij("#description-renderer"),_.a("design:type",Object)],U0.prototype,"productDetailsDescriptionRenderer",void 0);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],U0.prototype,"showPurchaseData",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],U0.prototype,"showHeroOfferRenderer",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],U0.prototype,"showBrandText",null);
_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],U0.prototype,"showOffers",null);_.O([_.Q("showOffers","showPurchaseData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],U0.prototype,"showBuySeparator",null);_.O([_.Q("showOffers","showPurchaseData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],U0.prototype,"showBuyCard",null);_.O([_.Q("data"),_.a("design:type",String),_.a("design:paramtypes",[])],U0.prototype,"selectedVariantsText",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],U0.prototype,"shoppingReportingButtonData",null);U0=_.O([_.A({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],U0);
_.u(U0,"ytd-product-details-renderer",function(){if($cE!==void 0)return $cE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return $cE=V},{mode:1});var joI;var YU6;var L7I;var eUb=function(){return _.M.apply(this,arguments)||this};
_.t(eUb,_.M);eUb.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.vI.Object.defineProperties(eUb.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
var n3=eUb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],n3.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],n3.prototype,"formattedAmount",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],n3.prototype,"ariaLabel",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.style"),_.a("design:type",String),_.a("design:paramtypes",[])],n3.prototype,"vcBalanceWidgetStyle",null);n3=_.O([_.Lm({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],n3);
_.u(n3,"yt-vc-balance-renderer",function(){if(L7I===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;YU6===void 0&&(YU6=document.createElement("template"));var H=YU6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);L7I=V}V=L7I;return V},{mode:2});_.yN("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var kl2=function(){return _.M.apply(this,arguments)||this};
_.t(kl2,_.M);_.vI.Object.defineProperties(kl2.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
var $P=kl2;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],$P.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$P.prototype,"data",void 0);_.O([_.q({selectorArgs:["data.vcBalanceEntityKey"],selector:function(V,l){return _.nW(V.entities,"vcBalanceEntity",l)}}),
_.a("design:type",Object)],$P.prototype,"vcBalanceEntity",void 0);_.O([_.Q("vcBalanceEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],$P.prototype,"formattedAmount",null);_.O([_.Q("vcBalanceEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],$P.prototype,"vcBalanceAriaLabel",null);$P=_.O([_.A({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],$P);
_.u($P,"ytd-vc-balance-renderer",function(){if(joI!==void 0)return joI;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return joI=V},{mode:1});var F7E;var X3V=function(){var V=_.M.apply(this,arguments)||this;V.rotation=0;V.isReloading=!1;return V};
_.t(X3V,_.M);X3V.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
X3V.prototype.reset=function(){this.hostElement.style.opacity=""};
X3V.prototype.close=function(){var V=this;return _.d(function(l){if(l.nextAddress==1)return _.K(l,V.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);V.hostElement.style.opacity="0";_.FU(l)})};
var dD=X3V;dD.prototype.rotationChanged=dD.prototype.rotationChanged;_.O([_.q(),_.a("design:type",Object)],dD.prototype,"rotation",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],dD.prototype,"isReloading",void 0);_.O([_.Ij("#icon"),_.a("design:type",HTMLElement)],dD.prototype,"icon",void 0);_.O([_.b("rotation"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dD.prototype,"rotationChanged",null);
dD=_.O([_.A({disableElementRegistration:!0,is:"ytd-refresh"})],dD);
_.u(dD,"ytd-refresh",function(){if(F7E!==void 0)return F7E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return F7E=V},{mode:1});var zUE;var ybP;var tru=function(V,l,I,H,T,x,n,w){this.minWidth=V;this.minHeight=l;this.recommendedWidth=I;this.recommendedHeight=H;this.JSC$19224_maxFileSize=T;this.title=x;this.bannerGalleryTitle=n;this.channelId=w;this.picker_=null;V=_.JNN("yt-banner");l=V.addView;I=(new V8V("youtubebanner")).addUploadMetadata("silo_id","19");I.opts.ytMaxFileSize=this.JSC$19224_maxFileSize;H=this.recommendedHeight;I.opts.ytRecWidth=this.recommendedWidth;I.opts.ytRecHeight=H;l.call(V,I);V.addView(new _.EO);l=V.addView;I=new _.EO;
I.opts.type="ytbanner";l.call(V,I.JSC$7941_setLabel(this.bannerGalleryTitle));l=V.setTitle(this.title).setSize(1E3);l.urlParamMap_.set("thumbs","orig");I=this.minWidth;H=this.minHeight;if(isNaN(I)||isNaN(H))throw Error("lb`"+I+"`"+H);l.urlParamMap_.set("minSize",I+"x"+H);l.urlParamMap_.set("cropMode","ytcb");this.builder_=V};
tru.prototype.open=function(){var V=this;return new _.UZ(function(l,I){_.iAN(V.builder_,function(H){H.action=="picked"?l(H):H.action=="cancel"&&I(Error("Xl"))});
V.picker_&&V.picker_.dispose();V.picker_=V.builder_.build();V.picker_.setVisible(!0)})};
tru.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var rbE=function(V){this.channelId=V},GlQ=function(V,l){var I="";
l.viewToken&&(I=l.viewToken[2].type);var H=l.docs[0];l=H.crop;V={channel_id:V.channelId,fife_url:H.thumbnails[0].url,photo_id:H.id,is_gallery_image:I=="ytbanner"};l&&(V.crop_top=l.top,V.crop_right=l.right,V.crop_bottom=l.bottom,V.crop_left=l.left);return _.VmK("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:V})};var EOE=function(){var V=_.M.apply(this,arguments)||this;V.ariaLabel=null;return V};
_.t(EOE,_.M);_.B=EOE.prototype;_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.B.detached=function(){this.picker&&this.picker.dispose()};
_.B.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.B.computeAriaLabel=function(V){return V};
_.B.onTap=function(){var V=this,l;if((l=this.data)==null||!l.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new tru(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 I;(I=this.picker)==null||I.open().then(function(H){V.handleBannerPicked(H)},function(){})}};
_.B.handleBannerPicked=function(V){var l=this;this.uploader||(this.uploader=new rbE(this.data.channelId||""));this.message=this.data.uploadingText;GlQ(this.uploader,V).then(function(I){l.handleBannerUploadSucceeded(I)},function(I){l.handleBannerUploadFailed(I)})};
_.B.handleBannerUploadSucceeded=function(V){V&&V.errors?this.handleBannerUploadFailed(V):(_.B$(this.hostElement,"yt-banner-updated",V),this.message=null)};
_.B.handleBannerUploadFailed=function(V){this.message=V&&V.errors&&V.errors.length?V.errors[0]:null};
var wD=EOE;wD.prototype.dataChanged=wD.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],wD.prototype,"componentBehavior",void 0);_.O([_.R(_.Sq),_.a("design:type",Object)],wD.prototype,"ironButtonState",void 0);_.O([_.q(),_.a("design:type",Object)],wD.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.a("design:type",Object)],wD.prototype,"ariaLabel",void 0);
_.O([_.q(),_.a("design:type",Object)],wD.prototype,"message",void 0);_.O([_.q(),_.a("design:type",Object)],wD.prototype,"picker",void 0);_.O([_.q(),_.a("design:type",Object)],wD.prototype,"uploader",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wD.prototype,"dataChanged",null);wD=_.O([_.A({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],wD);
_.u(wD,"ytd-channel-banner-editor-renderer",function(){if(ybP!==void 0)return ybP;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return ybP=V},{mode:1});var JbE;var oOE=_.fl(["#"]),hUE=function(){return _.M.apply(this,arguments)||this};
_.t(hUE,_.M);hUE.prototype.computeHrefWithDefault=function(V){return this.ytComponentBehavior.computeHref_(V,!0)||_.ch(oOE)};
hUE.prototype.dataChanged=function(){var V=this.data;V&&V.targetId&&_.iPW(_.$6(),V.targetId,this.moreIcon)};
var NG=hUE;NG.prototype.dataChanged=NG.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],NG.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],NG.prototype,"data",void 0);_.O([_.Ij("#more-icon"),_.a("design:type",Object)],NG.prototype,"moreIcon",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],NG.prototype,"dataChanged",null);
NG=_.O([_.A({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],NG);
_.u(NG,"ytd-channel-tagline-renderer",function(){if(JbE!==void 0)return JbE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return JbE=V},{mode:1});var P0Q;var Dcr=function(){return _.M.apply(this,arguments)||this};
_.t(Dcr,_.M);_.B=Dcr.prototype;_.B.ready=function(){var V=this;_.h(this.hostElement).querySelector("#form").addEventListener("submit",function(l){V.onSubmit(l)})};
_.B.onDataChanged=function(){var V;((V=this.data)==null?0:V.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.B.onIconButtonKeydown=function(V){V.keyCode===13&&this.iconButton.click()};
_.B.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.B.openOnClickHandler=function(){this.input.focus()};
_.B.onSubmit=function(V){V.preventDefault();return!1};
_.B.submitOnEnterKeyUp=function(V){var l;if(V.keyCode===13&&((l=this.data)==null?0:l.expandedText)){V=this.data.endpoint;l=_.EL.unsafeClone(V);var I;((I=_.y(l==null?void 0:l.commandMetadata,_.mK))==null?0:I.url)?(_.y(l.commandMetadata,_.mK).url=_.Z1(_.y(l.commandMetadata,_.mK).url,"query",this.data.expandedText),_.y(l,_.$V)&&(_.y(l,_.$V).query=this.data.expandedText),_.B$(this.hostElement,"yt-navigate",{endpoint:l,tempData:{disableCache:!0}})):(I=new _.Yd("Error: Trying to navigate to an endpoint without url",
V),_.Gr(I))}};
_.B.updateDataExpandedTextFromBinding=function(V){this.set("data.expandedText",V.detail.value)};
var K3=Dcr;K3.prototype.onDataChanged=K3.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.cl6),_.a("design:type",Object)],K3.prototype,"ytdExpandableInputBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],K3.prototype,"data",void 0);_.O([_.Ij("#input"),_.a("design:type",Object)],K3.prototype,"input",void 0);_.O([_.Ij("#icon-button"),_.a("design:type",HTMLElement)],K3.prototype,"iconButton",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],K3.prototype,"onDataChanged",null);K3=_.O([_.A({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],K3);
var uSQ=_.O7()(K3,"ytd-expandable-tab-renderer",function(){if(P0Q===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);P0Q=V}V=P0Q;return V},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var ZrV;var SUu=_.fl(["#"]),RUI=function(){return _.M.apply(this,arguments)||this};
_.t(RUI,_.M);RUI.prototype.computeHrefWithDefault=function(V){return this.ytComponentBehavior.computeHref_(V,!0)||_.ch(SUu)};
_.vI.Object.defineProperties(RUI.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var V;return _.to((V=this.data)==null?void 0:V.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var V;return _.to((V=this.data)==null?void 0:V.moreOnTap)}}});
var je=RUI;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],je.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],je.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],je.prototype,"usePageHeaderStyle",void 0);_.O([_.Q("data.primaryOnTap"),_.a("design:type",Object),_.a("design:paramtypes",[])],je.prototype,"primaryLinkEndpoint",null);
_.O([_.Q("data.moreOnTap"),_.a("design:type",Object),_.a("design:paramtypes",[])],je.prototype,"moreEndpoint",null);je=_.O([_.A({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],je);
_.u(je,"ytd-channel-header-links-view-model",function(){if(ZrV!==void 0)return ZrV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ZrV=V},{mode:1});var QoB;var cbY=function(){var V=_.M.apply(this,arguments)||this;V.avatarSize=80;V.ariaLabel=_.LT("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return V};
_.t(cbY,_.M);cbY.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
cbY.prototype.computeHref=function(V){var l;return((l=_.y(V,_.cF))==null?0:l.url)?this.componentBehavior.computeHref_(V):null};
cbY.prototype.onTap=function(){var V,l;(V=this.data)==null||!V.editAvatarServiceEndpoint||((l=_.y(this.data.editAvatarServiceEndpoint,_.cF))==null?0:l.url)||(_.z("web_ytd_channel_avatar_editor_command_resolver_ks")?_.$B(this.hostElement,[this.data.editAvatarServiceEndpoint]):_.F().resolve(_.aw).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}}))};
var YP=cbY;_.O([_.R(_.Sq),_.a("design:type",Object)],YP.prototype,"ironButtonState",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],YP.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],YP.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],YP.prototype,"avatarSize",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],YP.prototype,"ariaLabel",void 0);
YP=_.O([_.A({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],YP);
_.u(YP,"ytd-channel-avatar-editor",function(){if(QoB!==void 0)return QoB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return QoB=V},{mode:1});_.MR(_.c1u,"yt-tab-group-shape",{props:{shape:_.b9}});var W7b=function(){var V=_.M.apply(this,arguments)||this;V.expandableCustomTabRenderable=function(l){return vP6(l,function(){return void V.onSearchNavigate()})};
V.isRichGrid=!1;V.richGridMiniMode=!1;V.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 V};
_.t(W7b,_.M);_.B=W7b.prototype;_.B.areAllFalse=function(V,l,I){return!V&&!l&&!I};
_.B.updateJoinButtonOverrides=function(){var V;(V=_.h(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||V.set("overrides",this.joinButtonOverrides)};
_.B.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]]"}}}}}};
_.B.attached=function(){this.data&&this.dataChanged()};
_.B.computeHeaderDisabled=function(V,l){return l||!V};
_.B.handleButtonRefreshAction=function(V){(V=_.y(V,_.BRN))&&this.set("data.sponsorButton",V.membershipButton)};
_.B.handleInsertTabCommand=function(V){var l=_.y(V,zCP);l&&l.externalChannelId===this.data.channelId&&(l.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(I){return I.tabRenderer&&I.tabRenderer.tabIdentifier===l.tabIdentifier})||this.splice("tabs",l.tabIndex||-1,0,l.tab))};
_.B.handleRefreshChannelTabAction=function(V){var l,I=(l=this.tabs)==null?void 0:l.filter(function(x){var n;return(n=x.tabRenderer)==null?void 0:n.selected});
l=(I==null?void 0:I.length)===1?I[0]:void 0;var H;if((l==null?void 0:(H=l.tabRenderer)==null?void 0:H.tabIdentifier)===V){var T;_.B$(this.hostElement,"yt-navigate",{endpoint:(T=l.tabRenderer)==null?void 0:T.endpoint,tempData:{disableCache:!0}})}};
_.B.onWindowResize=function(){_.h(this.hostElement).querySelector("#header").fire("iron-resize")};
_.B.dataChanged=function(){var V=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var l=_.sI(this.data.banner.thumbnails,this.hostElement.clientWidth);l&&(l.indexOf("//")===0&&(l="https:"+l),this.hasChannelArt=!0,_.i3(this.hostElement,{"--yt-channel-banner":"url("+l+")"}))}this.hasChannelArt!==V&&_.h(this.hostElement).querySelector("#header").fire("iron-resize")};
_.B.onBannerUpdated=function(V,l){V=window.devicePixelRatio>1?l.hq_url:l.url;V.indexOf("//")===0&&(V="https:"+V);this.hasChannelArt=!0;_.i3(this.hostElement,{"--yt-channel-banner":"url("+V+")"})};
_.B.observeLightsourcePalette=function(){var V,l,I=(V=this.data)==null?void 0:(l=V.headerColorPalette)==null?void 0:l.lightsourceColorPaletteData;I&&_.Xp(this.hostElement,I)};
_.B.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.i3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.B.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.B.handleUnsubscribeAction=function(){var V,l;((l=_.y((V=this.data)==null?void 0:V.sponsorButton,_.RG))==null?void 0:l.style)==="STYLE_PRIMARY"&&_.h(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.B.onFocusedChanged=function(V){(V=_.qv(V))&&V.is==="tp-yt-paper-tab"&&V.hasRipple()&&(V.getRipple().holdDown=!V.pointerDown&&V.focused)};
_.B.updateSelectedFromBinding=function(V){this.ytdTabbedHeaderBehavior.selected=V.detail.value};
_.vI.Object.defineProperties(W7b.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:CkE(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var V,l;return!!((V=this.data)==null?0:(l=V.headerLinks)==null?0:l.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.subscriptionStateEntity)==null||!V.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.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 V=this.channelHandleDisplayStyle;return V==="MODERN"||V==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var V;return this.usePageHeaderStyle||!((V=this.data)==null?0:V.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var V;return this.usePageHeaderStyle||!((V=this.data)==null||!V.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var V;return!!_.y((V=this.data)==null?void 0:V.bannerEditor,wW6)}},
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 V;return!((V=this.data)==null||!V.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 V;return _.z("enable_view_pronouns_on_main_app")&&!((V=this.data)==null||!V.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var V;return(this.useModernStyle||this.usePageHeaderStyle)&&!((V=this.data)==null||!V.videosCountText)}}});
var L3=W7b;L3.prototype.observerRichGridItemsPerRow=L3.prototype.observerRichGridItemsPerRow;L3.prototype.observeLightsourcePalette=L3.prototype.observeLightsourcePalette;L3.prototype.onBannerUpdated=L3.prototype.onBannerUpdated;L3.prototype.dataChanged=L3.prototype.dataChanged;L3.prototype.updateJoinButtonOverrides=L3.prototype.updateJoinButtonOverrides;_.O([_.R(_.c0),_.a("design:type",Object)],L3.prototype,"ytdGridStateAwareBehavior",void 0);
_.O([_.R(t8E),_.a("design:type",Object)],L3.prototype,"ytdTabbedHeaderBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],L3.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],L3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],L3.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],L3.prototype,"ytdReduxBehavior",void 0);_.O([_.Ij("#tabs"),_.a("design:type",Object)],L3.prototype,"tabsElement",void 0);_.O([_.q(),_.a("design:type",Array)],L3.prototype,"tabs",void 0);_.O([_.Q("tabs.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],L3.prototype,"tabGroupShape",null);_.O([_.q(),_.a("design:type",Object)],L3.prototype,"expandableCustomTabRenderable",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],L3.prototype,"isRichGrid",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Object)],L3.prototype,"richGridMiniMode",void 0);_.O([_.q({selector:_.oA}),_.a("design:type",Number)],L3.prototype,"richGridItemsPerRow",void 0);_.O([_.q(),_.a("design:type",Object)],L3.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],L3.prototype,"hasChannelArt",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"hasChannelHeaderLinks",null);_.O([_.q({selector:_.zwB,reflectToAttribute:!0}),_.a("design:type",Boolean)],L3.prototype,"guideIsVisibleButNotPersistent",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],L3.prototype,"subscribeKey",null);
_.O([_.q({selectorArgs:["subscribeKey"],selector:_.V1}),_.a("design:type",Object)],L3.prototype,"subscriptionStateEntity",void 0);_.O([_.Q("subscriptionStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],L3.prototype,"subscribed",null);_.O([_.Q("subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],L3.prototype,"joinButtonOverrides",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"useModernStyle",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"usePageHeaderStyle",null);_.O([_.Q("useModernStyle","usePageHeaderStyle"),_.a("design:type",Number),_.a("design:paramtypes",[])],L3.prototype,"avatarSize",null);
_.O([_.Q("channelHandleDisplayStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"shouldInlineChannelName",null);_.O([_.Q("data","usePageHeaderStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"hideBannerEndpoint",null);_.O([_.Q("data","usePageHeaderStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"hideBannerVisibleArea",null);
_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"showBannerEditor",null);_.O([_.Q("usePageHeaderStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],L3.prototype,"bannerEffects",null);_.O([_.Q("usePageHeaderStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],L3.prototype,"effectsConfig",null);_.O([_.Q("usePageHeaderStyle","hasChannelArt"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"shouldShowPageHeaderBanner",null);
_.O([_.Q("data.channelHandleText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"isChannelHandlePresent",null);_.O([_.Q("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.a("design:type",String),_.a("design:paramtypes",[])],L3.prototype,"channelHandleDisplayStyle",null);_.O([_.Q("data.channelPronouns"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"shouldShowChannelPronouns",null);
_.O([_.Q("data.subscriberCountText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"shouldShowSubscriberCount",null);_.O([_.Q("useModernStyle","data.videosCountText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],L3.prototype,"shouldShowVideosCount",null);_.O([_.b("joinButtonOverrides"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L3.prototype,"updateJoinButtonOverrides",null);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L3.prototype,"dataChanged",null);_.O([_.W("yt-banner-updated"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],L3.prototype,"onBannerUpdated",null);_.O([_.b("data.headerColorPalette.lightsourceColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L3.prototype,"observeLightsourcePalette",null);
_.O([_.b("richGridItemsPerRow","isRichGrid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L3.prototype,"observerRichGridItemsPerRow",null);L3=_.O([_.A({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],L3);
_.u(L3,"ytd-c4-tabbed-header-renderer",function(){if(zUE!==void 0)return zUE;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return zUE=V},{mode:1});var brB;var qUE=function(){return _.M.apply(this,arguments)||this};
_.t(qUE,_.M);qUE.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"}}}};
qUE.prototype.dataChanged=function(){if(this.data){var V=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var l=_.sI(this.data.banner.thumbnails,this.hostElement.clientWidth);l&&(l.indexOf("//")===0&&(l="https:"+l),this.hasBannerArt=!0,_.i3(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+l+")"}))}this.hasBannerArt!==V&&_.h(this.hostElement).querySelector("#header").fire("iron-resize")}};
qUE.prototype.updateSelectedFromBinding=function(V){this.selected=V.detail.value};
var ee=qUE;ee.prototype.dataChanged=ee.prototype.dataChanged;_.O([_.R(t8E),_.a("design:type",Object)],ee.prototype,"ytdTabbedHeaderBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.c0),_.a("design:type",Object)],ee.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],ee.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ee.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ee.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Number)],ee.prototype,"selected",void 0);_.O([_.q(),_.a("design:type",Boolean)],ee.prototype,"active",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],ee.prototype,"hasBannerArt",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ee.prototype,"dataChanged",null);ee=_.O([_.A({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],ee);
_.u(ee,"ytd-interactive-tabbed-header-renderer",function(){if(brB!==void 0)return brB;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return brB=V},{mode:1});var MrE;var so2=function(){return _.M.apply(this,arguments)||this};
_.t(so2,_.M);so2.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
so2.prototype.computeActionsAlignment=function(V){return(V==null?void 0:V.actionsAlignment)||""};
var kP=so2;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],kP.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.a("design:type",String)],kP.prototype,"actionsAlignment",void 0);
kP=_.O([_.A({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],kP);
_.u(kP,"ytd-page-footer-renderer",function(){if(MrE!==void 0)return MrE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return MrE=V},{mode:1});var p3B;var AbV;var u2Y=function(){var V=_.M.apply(this,arguments)||this;V.isEditing=!1;V.useSlot=!1;V.isMultiline=!1;return V};
_.t(u2Y,_.M);_.B=u2Y.prototype;_.B.onKeydown=function(V){if(V.keyCode===13&&!this.isMultiline)this.onSave();else if(V.keyCode===27)this.onCancel()};
_.B.computeComponentStyle=function(V){return(V==null?0:V.style)?V.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.B.computeisMultiline=function(V){if(this.multilineOverride!==void 0)return this.multilineOverride;var l,I;return!!(V==null?0:(l=V.formField)==null?0:(I=l.textInputFormFieldRenderer)==null?0:I.isMultiline)};
_.B.computeTextDisplayed=function(V,l){if(V)return V;if(l)return l};
_.B.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.B.onSave=function(){if(this.textForm.validate()){this.textForm.save();var V=this.textForm.value;if(V)this.set("data.textDisplayed",_.pW(V));else{var l;((l=this.data)==null?0:l.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.qX("inline-form-changed",this.data));this.isEditing=!1}};
_.B.onCancel=function(){var V=_.A5(this.data.textDisplayed);V===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(V);this.isEditing=!1};
var FS=u2Y;FS.prototype.onKeydown=FS.prototype.onKeydown;_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],FS.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],FS.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],FS.prototype,"isEditing",void 0);_.O([_.q(),_.a("design:type",Object)],FS.prototype,"useSlot",void 0);_.O([_.q(),_.a("design:type",Boolean)],FS.prototype,"multilineOverride",void 0);_.O([_.q(),_.a("design:type",Boolean)],FS.prototype,"enableOverlayTheme",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.a("design:type",String)],FS.prototype,"componentStyle",void 0);
_.O([_.q({computed:"computeisMultiline(data)"}),_.a("design:type",Object)],FS.prototype,"isMultiline",void 0);_.O([_.Ij("#text-form"),_.a("design:type",Object)],FS.prototype,"textForm",void 0);_.O([_.W("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],FS.prototype,"onKeydown",null);FS=_.O([_.A({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],FS);
_.u(FS,"ytd-inline-form-renderer",function(){if(AbV!==void 0)return AbV;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return AbV=V},{mode:1});var vOh;var OrE=function(){var V=_.M.apply(this,arguments)||this;V.previousSelectValue=void 0;V.selectedItemMessage=void 0;return V};
_.t(OrE,_.M);OrE.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
OrE.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var V,l,I,H,T=(V=this.data)==null?void 0:(l=V.dropdown)==null?void 0:(I=l.dropdownRenderer)==null?void 0:(H=I.entries)==null?void 0:H.map(function(w){return w.privacyDropdownItemRenderer});
V=_.U(T!=null?T:[]);for(l=V.next();!l.done;l=V.next())if((l=l.value)&&l.int32Value===this.selectedValue){this.selectedItemMessage=l.itemMessage;break}}else this.selectedItemMessage=void 0;var x;(x=this.onValueChanged)==null||x.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var n;(n=this.data)!=null&&n.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
OrE.prototype.onValueChangedForSelectedValue=function(V){this.selectedValue=V.detail.value};
var XS=OrE;XS.prototype.selectedValueChanged=XS.prototype.selectedValueChanged;_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],XS.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],XS.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],XS.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],XS.prototype,"theme",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Number)],XS.prototype,"selectedValue",void 0);_.O([_.q(),_.a("design:type",Function)],XS.prototype,"onValueChanged",void 0);
_.O([_.xs("selectedValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XS.prototype,"selectedValueChanged",null);XS=_.O([_.A({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],XS);
_.u(XS,"ytd-dropdown-form-field-renderer",function(){if(vOh!==void 0)return vOh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return vOh=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var C0E;var aJP=function(){return _.M.apply(this,arguments)||this};
_.t(aJP,_.M);_.vI.Object.defineProperties(aJP.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var V=[],l=_.U(this.data||[]),I=l.next();!I.done;I=l.next())(I=_.y(I.value,XW6))&&V.push(I);return V}}});
var fJb=aJP;_.O([_.q(),_.a("design:type",Array)],fJb.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],fJb.prototype,"byline",null);fJb=_.O([_.A({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],fJb);
_.u(fJb,"ytd-playlist-byline-renderer",function(){if(C0E!==void 0)return C0E;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return C0E=V},{mode:1});var gOu;var mcg=function(){var V=_.M.apply(this,arguments)||this;V.rtlBullet=_.z("web_playlist_stats_rtl_bullet_icon_killswitch");V.modern=_.z("web_modern_buttons");V.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return V};
_.t(mcg,_.M);_.B=mcg.prototype;_.B.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"}}}}};
_.B.attached=function(){};
_.B.computeIsCustomThumbnail=function(V){return V?!!V.playlistCustomThumbnailRenderer:!1};
_.B.onYtNavigate=function(V,l){if(l&&l.actions&&l.actions.indexOf("shuffle")>-1){V=_.F().resolve(_.cV);var I=l.tempData||{};I.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);l.tempData=I;V.isShuffleNextPlaylist=!0}};
_.B.onUpdatePlaylistAction=function(V){var l;V=(l=_.y(V,_.x_i))==null?void 0:l.updatedRenderer;if(l=_.y(V,KtE))this.data=l};
_.B.computeStyleType=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.B.computeThumbnailWidth=function(V){return V==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.B.computeHideThumbnailAria=function(V){if(V==null?0:V.thumbnailOverlays)for(var l=0;l<V.thumbnailOverlays.length;l++){var I=void 0;if((I=V.thumbnailOverlays[l])==null?0:I.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
var z5=mcg;z5.prototype.onYtNavigate=z5.prototype.onYtNavigate;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],z5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],z5.prototype,"ytComponentBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],z5.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],z5.prototype,"rtlBullet",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.a("design:type",String)],z5.prototype,"styleType",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.a("design:type",Number)],z5.prototype,"thumbnailWidth",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],z5.prototype,"modern",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.a("design:type",Boolean)],z5.prototype,"isCustomThumbnail",void 0);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Object]),_.a("design:returntype")],z5.prototype,"onYtNavigate",null);z5=_.O([_.A({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],z5);
_.u(z5,"ytd-playlist-sidebar-primary-info-renderer",function(){if(gOu!==void 0)return gOu;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return gOu=V},{mode:1});var irb;var VYE=function(){return _.M.apply(this,arguments)||this};
_.t(VYE,_.M);VYE.prototype.computeOwnerVisibility=function(V){return!(!V.videoOwner&&!V.button)};
VYE.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
var yK=VYE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yK.prototype,"data",void 0);yK=_.O([_.A({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],yK);
_.u(yK,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(irb!==void 0)return irb;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return irb=V},{mode:1});var lqQ;var Iq6=function(){var V=_.M.apply(this,arguments)||this;V.expanded=!1;V.isCompact=!1;return V};
_.t(Iq6,_.M);_.B=Iq6.prototype;_.B.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.B.dataChanged=function(){this.data&&_.iY(_.h(this.text),_.DEZ(_.RBE,_.A5(this.data.text||null)))};
_.B.computeAutoScrollEnabled=function(V,l){return V&&!l};
_.B.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.B.toggleOnTap=function(){this.expanded=!this.expanded};
var tE=Iq6;tE.prototype.expandedChanged=tE.prototype.expandedChanged;tE.prototype.dataChanged=tE.prototype.dataChanged;_.O([_.R(_.mmb),_.a("design:type",Object)],tE.prototype,"ytdAutoScrollBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tE.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],tE.prototype,"expanded",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],tE.prototype,"isCompact",void 0);_.O([_.q({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.a("design:type",Boolean)],tE.prototype,"autoScrollEnabled",void 0);_.O([_.Ij("#text"),_.a("design:type",Object)],tE.prototype,"text",void 0);_.O([_.Ij("#expander-icon"),_.a("design:type",Object)],tE.prototype,"expanderIcon",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tE.prototype,"dataChanged",null);_.O([_.b("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tE.prototype,"expandedChanged",null);tE=_.O([_.A({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],tE);
_.u(tE,"ytd-channel-legal-info-renderer",function(){if(lqQ!==void 0)return lqQ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return lqQ=V},{mode:1});var H5E;var TIE=_.LT("DOWNLOAD",{},"Download"),BI6=_.LT("DOWNLOADING",{},"Downloading"),xMb=_.LT("DOWNLOADED",{},"Downloaded"),UMP=function(){var V=_.M.apply(this,arguments)||this;V.downloadProgress=0;V.isDownloadComplete=!1;V.transferState="TRANSFER_STATE_UNKNOWN";return V};
_.t(UMP,_.M);_.B=UMP.prototype;_.B.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.B.dataChanged=function(){var V;(V=this.data)!=null&&V.tooltip||(V=_.Zw(_.v4().getState(),this.playlistId),this.updateButtonState(V))};
_.B.computePlaylistId=function(V){return V};
_.B.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.B.updateButtonState=function(V){if(this.data&&(this.data.tooltip!==BI6||!_.kf(V))){this.isDownloadComplete=!1;switch(V){case "TRANSFER_STATE_UNKNOWN":V=TIE;var l="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":V=xMb;l="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":V=BI6;l="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";
break;default:V=TIE,l="OFFLINE_DOWNLOAD",I="ACTION_ADD"}var H=Object.assign({},this.data);H.tooltip=V;H.accessibilityData={accessibilityData:{label:V}};H.icon={iconType:l};H.size="SIZE_DEFAULT";_.y(H.command,_.UB)&&(_.y(H.command,_.UB).action=I);this.set("data",H)}};
_.B.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var V="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?V="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?V="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?V="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?V="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?V="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(V="OFFLINE_PIN",this.isDownloadComplete=!0);var l;V!==((l=this.data.icon)==null?void 0:l.iconType)&&(l=Object.assign({},this.data),l.tooltip=BI6,l.accessibilityData={accessibilityData:{label:BI6}},l.icon={iconType:V},_.y(l.command,_.UB)&&(_.y(l.command,_.UB).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",l))}};
var rD=UMP;rD.prototype.updateProgress=rD.prototype.updateProgress;rD.prototype.onTransferStateChanged=rD.prototype.onTransferStateChanged;rD.prototype.dataChanged=rD.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],rD.prototype,"ytdReduxBehavior",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],rD.prototype,"forceIconButton",void 0);
_.O([_.q({value:!0}),_.a("design:type",Boolean)],rD.prototype,"forceIconOnly",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],rD.prototype,"overrides",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],rD.prototype,"buttonTooltipPosition",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],rD.prototype,"styleActionButton",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],rD.prototype,"disableTextTransform",void 0);
_.O([_.q({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.a("design:type",String)],rD.prototype,"playlistId",void 0);_.O([_.q(),_.a("design:type",Object)],rD.prototype,"data",void 0);_.O([_.q({selector:_.bnT,selectorArgs:["playlistId"]}),_.a("design:type",Object)],rD.prototype,"downloadProgress",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],rD.prototype,"isDownloadComplete",void 0);
_.O([_.q({selector:_.Zw,selectorArgs:["playlistId"]}),_.a("design:type",String)],rD.prototype,"transferState",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],rD.prototype,"showTooltips",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],rD.prototype,"sendCommandWhenDisabled",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],rD.prototype,"disabled",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rD.prototype,"dataChanged",null);_.O([_.xs("transferState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rD.prototype,"onTransferStateChanged",null);_.O([_.xs("downloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rD.prototype,"updateProgress",null);
rD=_.O([_.A({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],rD);
_.u(rD,"ytd-download-playlist-button-renderer",function(){if(H5E!==void 0)return H5E;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return H5E=V},{mode:1});var nc6;_.MR(_.B2,"thumbnail-overlay-button-view-model",{props:{data:_.b9,lockupExperiments:_.b9}});var $M2=function(){var V=_.M.apply(this,arguments)||this;V.isSquare=!1;V.isVertical=!1;return V};
_.t($M2,_.M);$M2.prototype.computeIsSquare=function(V){return V!=null&&V.thumbnail?AEE(V.thumbnail)==="SQUARE":!1};
$M2.prototype.computeIsVertical=function(V){return V!=null&&V.thumbnail?AEE(V.thumbnail)==="VERTICAL":!1};
$M2.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
var G5=$M2;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.a("design:type",Object)],G5.prototype,"isSquare",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.a("design:type",Object)],G5.prototype,"isVertical",void 0);
_.O([_.q(),_.a("design:type",Object)],G5.prototype,"data",void 0);G5=_.O([_.A({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],G5);
_.u(G5,"ytd-hero-playlist-thumbnail-renderer",function(){if(nc6!==void 0)return nc6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return nc6=V},{mode:1});var dMQ=function(){var V=_.M.apply(this,arguments)||this;V.isDarkTheme=!1;V.isUltraWide=!1;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return V};
_.t(dMQ,_.M);_.B=dMQ.prototype;_.B.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.F();var V;(V=_.F().resolve(_.Cs(_.m$)))!=null&&(V.headerElement=this.hostElement)};
_.B.detached=function(){var V;(V=_.F().resolve(_.Cs(_.m$)))!=null&&(V.headerElement=void 0)};
_.B.onUpdateHeader=function(V){(V=V.detail)&&this.set("data",V)};
_.B.computeTextDisplayed=function(V){if(V)return V.textDisplayed?V.textDisplayed:V.placeholder};
_.B.gradientColorToLinearGradientStop=function(V){var l=this.isDarkTheme?V.darkThemeColor:V.lightThemeColor;return l?_.rP(l)+" "+((V==null?void 0:V.startLocation)||0)*100+"%":"transparent"};
_.B.onWindowResize=function(){var V;((V=this.data)==null?0:V.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.B.onIronResize=function(V){this.isUltraWide=!V.detail.value};
_.B.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.B.onUpdatePlaylistName=function(V){var l=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},V.detail.value));_.Al(this,function(){var I;(I=l.editableTitle)==null||I.resize()})};
_.B.onUpdatePlaylistDescription=function(V){var l=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},V.detail.value));_.Al(this,function(){var I;(I=l.editableDescriptionInlineExpander)==null||I.resize()})};
_.B.getCinematicData=function(V){return _.y(V==null?void 0:V.cinematicContainer,_.DG)};
_.vI.Object.defineProperties(dMQ.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 V,l=(V=this.getCinematicData(this.data))==null?void 0:V.config;return(V=this.isDarkTheme?l==null?void 0:l.darkThemeBackgroundColor:l==null?void 0:l.lightThemeBackgroundColor)?"background-color:"+_.tv(V)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var V;return _.y((V=this.data)==null?void 0:V.descriptionForm,NHu)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var V=this,l,I,H;return"background:linear-gradient(to bottom, "+(((H=(l=this.getCinematicData(this.data))==null?void 0:(I=l.gradientColorConfig)==null?void 0:I.map(function(T){return V.gradientColorToLinearGradientStop(T)}))==null?void 0:H.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var V;return _.A5((V=this.data)==null?void 0:V.descriptionTapText)}}});
var E0=dMQ;E0.prototype.onUpdateHeader=E0.prototype.onUpdateHeader;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],E0.prototype,"actionHandlerBehavior",void 0);_.O([_.Ij("#description-inline-expander"),_.a("design:type",Object)],E0.prototype,"descriptionInlineExpander",void 0);
_.O([_.Ij("#editable-description-inline-expander"),_.a("design:type",Object)],E0.prototype,"editableDescriptionInlineExpander",void 0);_.O([_.q(),_.a("design:type",Object)],E0.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],E0.prototype,"isUltraWide",void 0);_.O([_.Ij("#editable-title-display"),_.a("design:type",Object)],E0.prototype,"editableTitle",void 0);_.O([_.Q("isUltraWide"),_.a("design:type",Object),_.a("design:paramtypes",[])],E0.prototype,"maxDescriptionLines",null);
_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],E0.prototype,"noCinematicData",null);_.O([_.W("yt-new-playlist-header"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],E0.prototype,"onUpdateHeader",null);_.O([_.Q("data","isDarkTheme"),_.a("design:type",Object),_.a("design:paramtypes",[])],E0.prototype,"backgroundStyle",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],E0.prototype,"descriptionFormData",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],E0.prototype,"getDropdownTheme",null);_.O([_.Q("data","isDarkTheme"),_.a("design:type",String),_.a("design:paramtypes",[])],E0.prototype,"gradientStyle",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],E0.prototype,"descriptionTapText",null);
E0=_.O([_.A({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],E0);
_.u(E0,"ytd-playlist-header-renderer",function(){if(p3B!==void 0)return p3B;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return p3B=V},{mode:_.Cm("kevlar_poly_si_batch_j078")?1:2});var wcu;var NI6;var K9g=function(){return _.M.apply(this,arguments)||this};
_.t(K9g,_.M);K9g.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
var JE=K9g;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],JE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],JE.prototype,"data",void 0);JE=_.O([_.A({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],JE);
_.u(JE,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(NI6!==void 0)return NI6;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return NI6=V},{mode:1});var jng=function(){return _.M.apply(this,arguments)||this};
_.t(jng,_.M);
jng.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}}}}};
jng.prototype.computeUsePremiumShowStyle=function(V){if(!V||!V.items)return!1;for(var l=0;l<V.items.length;l++)if(_.y(V.items[l],KtE)){var I=void 0;return((I=_.y(V.items[l],KtE))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
var o0=jng;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],o0.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.a("design:type",Boolean)],o0.prototype,"usePremiumShowStyle",void 0);
o0=_.O([_.A({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],o0);
_.u(o0,"ytd-playlist-sidebar-renderer",function(){if(wcu!==void 0)return wcu;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return wcu=V},{mode:1});var YVV;var gPE=_.FR({pageHeaderViewModel:_.H_c});_.m5(mGY);_.aN(mGY,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar".split(" ")});_.MR(_.F32,"yt-image-banner-view-model",{props:{data:_.b9,isPositionRelative:_.b9}});var L9E=function(){var V=_.M.apply(this,arguments)||this;V.expandableCustomTabRenderable=function(l){return vP6(l,function(){return void V.onSearchNavigate()})};
V.isRichGrid=!1;V.isConstrainedList=!1;V.richGridMiniMode=!1;V.richGridStyle="RICH_GRID_STYLE_UNKNOWN";V.isRichGridShorts=!1;V.responsiveSizing="COMPACT";V.disableGridStateAware=!1;V.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return V};
_.t(L9E,_.M);_.B=L9E.prototype;_.B.computeHeaderDisabled=function(V,l){return l||!V||this.tabsHidden};
_.B.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.B.computeIsRichGridShorts=function(V){return V==="RICH_GRID_STYLE_SHORTS_GRID"||V==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.B.computeImageBannerViewModel=function(){var V,l;return _.y((l=_.y((V=this.data)==null?void 0:V.content,_.RdE))==null?void 0:l.banner,_.I9T)};
_.B.computeHasCinematicContainer=function(){var V,l;return!((l=_.y((V=this.data)==null?void 0:V.content,_.RdE))==null||!l.background)};
_.B.handleHeaderResize=function(){var V=_.h(this.hostElement).querySelector("#header");V&&_.B$(V,"iron-resize")};
_.B.handleInsertTabCommand=function(V){var l=_.y(V,zCP);l&&(l.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(I){return I.tabRenderer&&I.tabRenderer.tabIdentifier===l.tabIdentifier})||this.splice("tabs",l.tabIndex||-1,0,l.tab))};
_.B.handleRefreshChannelTabAction=function(V){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===V&&_.B$(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.B.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.i3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.B.observerRichGridSlimItemsPerRow=function(){_.i3(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.B.updateCssVars=function(){this.richGridItemsPerRow&&_.i3(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.g7("rich_grid_max_item_width",500))+16)-16+"px"})};
_.B.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.i3(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.B.onDataChanged=function(){this.handleHeaderResize()};
_.B.onWindowResize=function(){this.handleHeaderResize()};
_.B.onFocusedChanged=function(V){(V=_.qv(V))&&V.is==="tp-yt-paper-tab"&&V.hasRipple()&&(V.getRipple().holdDown=!V.pointerDown&&V.focused)};
_.B.updateSelectedFromBinding=function(V){this.ytdTabbedHeaderBehavior.selected=V.detail.value};
_.B.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.vI.Object.defineProperties(L9E.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:CkE(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.imageBannerViewModel)==null?void 0:V.style)==="IMAGE_BANNER_STYLE_INSET"}}});
var hE=L9E;hE.prototype.onDataChanged=hE.prototype.onDataChanged;hE.prototype.updateCssVarsForResponsiveGrid=hE.prototype.updateCssVarsForResponsiveGrid;hE.prototype.updateCssVars=hE.prototype.updateCssVars;hE.prototype.observerRichGridSlimItemsPerRow=hE.prototype.observerRichGridSlimItemsPerRow;hE.prototype.observerRichGridItemsPerRow=hE.prototype.observerRichGridItemsPerRow;_.O([_.R(_.c0),_.a("design:type",Object)],hE.prototype,"ytdGridStateAwareBehavior",void 0);
_.O([_.R(t8E),_.a("design:type",Object)],hE.prototype,"ytdTabbedHeaderBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],hE.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],hE.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],hE.prototype,"ytdReduxBehavior",void 0);_.O([_.Ij("#tabs"),_.a("design:type",Object)],hE.prototype,"tabsElement",void 0);_.O([_.q(),_.a("design:type",Array)],hE.prototype,"tabs",void 0);_.O([_.q(),_.a("design:type",Object)],hE.prototype,"expandableCustomTabRenderable",void 0);_.O([_.Q("tabs.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],hE.prototype,"tabGroupShape",null);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hE.prototype,"isRichGrid",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hE.prototype,"isConstrainedList",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Object)],hE.prototype,"richGridMiniMode",void 0);_.O([_.q({selector:function(V){return V.ui.richGridStyle}}),
_.a("design:type",Object)],hE.prototype,"richGridStyle",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.a("design:type",Object)],hE.prototype,"isRichGridShorts",void 0);_.O([_.q({selector:_.oA}),_.a("design:type",Number)],hE.prototype,"richGridItemsPerRow",void 0);_.O([_.q({selector:function(V){return V.ui.richGridContainerWidth}}),
_.a("design:type",Number)],hE.prototype,"richGridContainerWidth",void 0);_.O([_.q({selector:_.rtc}),_.a("design:type",Number)],hE.prototype,"richGridSlimItemsPerRow",void 0);_.O([_.q(),_.a("design:type",Object)],hE.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hE.prototype,"responsiveSizing",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hE.prototype,"disableGridStateAware",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeImageBannerViewModel(data)"}),_.a("design:type",Object)],hE.prototype,"imageBannerViewModel",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.a("design:type",Boolean)],hE.prototype,"hasCinematicContainer",void 0);_.O([_.q({selector:_.zwB,reflectToAttribute:!0}),_.a("design:type",Boolean)],hE.prototype,"guideIsVisibleButNotPersistent",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("imageBannerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],hE.prototype,"hasBanner",null);_.O([_.q({reflectToAttribute:!0}),_.Q("imageBannerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],hE.prototype,"hasInsetBanner",null);_.O([_.q({computed:"computeTabsHidden(tabs)",value:!0}),_.a("design:type",Boolean)],hE.prototype,"tabsHidden",void 0);
_.O([_.b("richGridItemsPerRow","isRichGrid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hE.prototype,"observerRichGridItemsPerRow",null);_.O([_.b("richGridSlimItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hE.prototype,"observerRichGridSlimItemsPerRow",null);
_.O([_.b("richGridItemsPerRow","richGridMiniMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hE.prototype,"updateCssVars",null);_.O([_.b("richGridContainerWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hE.prototype,"updateCssVarsForResponsiveGrid",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hE.prototype,"onDataChanged",null);
hE=_.O([_.A({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],hE);
_.u(hE,"ytd-tabbed-page-header",function(){if(YVV!==void 0)return YVV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return YVV=V},{mode:1});var eIQ;var kT2=function(){return _.M.apply(this,arguments)||this};
_.t(kT2,_.M);kT2.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.i3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.vI.Object.defineProperties(kT2.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var V,l;return this.componentBehavior.computeIcon_(((l=_.y((V=this.data)==null?void 0:V.badge,_.WRZ))==null?void 0:l.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=_.y((V=this.data)==null?void 0:V.badge,_.WRZ))==null?void 0:l.label}}});
var P5=kT2;P5.prototype.observerRichGridItemsPerRow=P5.prototype.observerRichGridItemsPerRow;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],P5.prototype,"componentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],P5.prototype,"ytdReduxBehavior",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.J5}),_.a("design:type",Boolean)],P5.prototype,"richGridMiniMode",void 0);
_.O([_.q({selector:_.oA}),_.a("design:type",Number)],P5.prototype,"richGridItemsPerRow",void 0);_.O([_.q(),_.a("design:type",Object)],P5.prototype,"data",void 0);_.O([_.b("richGridItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],P5.prototype,"observerRichGridItemsPerRow",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],P5.prototype,"badgeIconName",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],P5.prototype,"badgeLabel",null);P5=_.O([_.A({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],P5);
_.u(P5,"ytd-member-hub-profile-renderer",function(){if(eIQ!==void 0)return eIQ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return eIQ=V},{mode:1});var F9b;var XcB=function(){return _.M.apply(this,arguments)||this};
_.t(XcB,_.M);XcB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
var DF=XcB;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],DF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],DF.prototype,"data",void 0);DF=_.O([_.A({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],DF);
_.u(DF,"ytd-settings-sidebar-renderer",function(){if(F9b!==void 0)return F9b;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return F9b=V},{mode:1});var zIE;var ZF=function(){return _.M.apply(this,arguments)||this};
_.t(ZF,_.M);ZF.prototype.shouldHideHashtagInfo_=function(V){return!(V==null?0:V.hashtagInfoText)};
ZF.prototype.onFocusedChanged=function(V){(V=_.qv(V))&&V.is==="tp-yt-paper-tab"&&V.hasRipple()&&(V.getRipple().holdDown=!V.pointerDown&&V.focused)};
ZF.prototype.updateSelectedFromBinding=function(V){this.selected=V.detail.value};
_.vI.Object.defineProperties(ZF.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var Se=ZF;_.O([_.R(t8E),_.a("design:type",Object)],Se.prototype,"ytdTabbedHeaderBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Se.prototype,"rendererBehaviors",void 0);_.O([_.q(),_.a("design:type",Object)],Se.prototype,"data",void 0);_.O([_.Ij("#tabs"),_.a("design:type",Object)],Se.prototype,"tabsElement",void 0);_.O([_.q(),_.a("design:type",Array)],Se.prototype,"tabs",void 0);_.O([_.q(),_.a("design:type",Object)],Se.prototype,"selected",void 0);
_.O([_.Q("tabs"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Se.prototype,"tabsEnabled",null);Se=_.O([_.A({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],Se);
_.u(Se,"ytd-hashtag-header-renderer",function(){if(zIE!==void 0)return zIE;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-hashtag-header-renderer">\n  <tp-yt-app-header id="header" slot="header" condenses="" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-hashtag-header-renderer">\n    <div id="hashtag-info-container" class="style-scope ytd-hashtag-header-renderer">\n      <yt-formatted-string id="hashtag" dir="auto" text="[[data.hashtag]]" class="style-scope ytd-hashtag-header-renderer">\n      </yt-formatted-string>\n      <div id="hashtag-info" hidden="[[shouldHideHashtagInfo_(data)]]" class="style-scope ytd-hashtag-header-renderer">\n        <yt-formatted-string id="hashtag-info-text" hidden="[[!data.hashtagInfoText]]" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-header-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <tp-yt-app-toolbar hidden="[[!tabsEnabled]]" sticky="" class="style-scope ytd-hashtag-header-renderer">\n      <div id="tabs-container" class="style-scope ytd-hashtag-header-renderer">\n        \n        <div id="tabs-inner-container" class="style-scope ytd-hashtag-header-renderer">\n          <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-hashtag-header-renderer">\n            <template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-hashtag-header-renderer">\n              <tp-yt-paper-tab disable-upgrade$="[[!item.tabRenderer]]" hidden="[[!item.tabRenderer]]" on-focused-changed="onFocusedChanged" class="style-scope ytd-hashtag-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab>\n            </template>\n          </tp-yt-paper-tabs>\n        </div>\n        <div id="tabs-divider" class="style-scope ytd-hashtag-header-renderer"></div>\n      </div>\n    </tp-yt-app-toolbar>\n  </tp-yt-app-header>\n</tp-yt-app-header-layout>\n');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return zIE=V},{mode:_.Cm("kevlar_poly_si_batch_j078")?1:2});var yYr;var R0=function(){var V=_.M.apply(this,arguments)||this;V.expandableCustomTabRenderable=function(l){return vP6(l,function(){return void V.onSearchNavigate()})};
return V};
_.t(R0,_.M);R0.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
R0.prototype.onSearchNavigate=function(){this.selected=void 0};
R0.prototype.onTabsChange=function(){var V,l=(V=this.tabs)==null?void 0:V.findIndex(function(I){var H;return I==null?void 0:(H=I.tabRenderer)==null?void 0:H.selected});
l!==void 0&&(this.selected=l)};
R0.prototype.onTabsActive=function(V){if(this.tabs!==void 0){var l,I;(V=(l=this.tabs[V.detail.selected])==null?void 0:(I=l.tabRenderer)==null?void 0:I.endpoint)&&_.B$(this.hostElement,"yt-navigate",{endpoint:V})}};
_.vI.Object.defineProperties(R0.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:CkE(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var QK=R0;QK.prototype.onTabsChange=QK.prototype.onTabsChange;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.c0),_.a("design:type",Object)],QK.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],QK.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],QK.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Array)],QK.prototype,"tabs",void 0);_.O([_.q(),_.a("design:type",Number)],QK.prototype,"selected",void 0);_.O([_.Q("tabs.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],QK.prototype,"tabGroupShape",null);_.O([_.q(),_.a("design:type",Object)],QK.prototype,"expandableCustomTabRenderable",void 0);
_.O([_.Q("tabs"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],QK.prototype,"tabsEnabled",null);_.O([_.xs("tabs"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QK.prototype,"onTabsChange",null);QK=_.O([_.A({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],QK);
_.u(QK,"ytd-topic-channel-details-renderer",function(){if(yYr!==void 0)return yYr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return yYr=V},{mode:1});var tYI;var rYg=function(){var V=_.M.apply(this,arguments)||this;V.disableGridStateAware=!1;return V};
_.t(rYg,_.M);rYg.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]]"}}}}}};
rYg.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
rYg.prototype.updateCssVars=function(){_.i3(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.g7("rich_grid_max_item_width",500))+16)-16+"px"})};
var c5=rYg;c5.prototype.updateCssVars=c5.prototype.updateCssVars;c5.prototype.activeChanged=c5.prototype.activeChanged;_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],c5.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],c5.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],c5.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Array)],c5.prototype,"tabs",void 0);_.O([_.q(),_.a("design:type",Boolean)],c5.prototype,"active",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],c5.prototype,"disableGridStateAware",void 0);
_.O([_.q({selector:_.oA}),_.a("design:type",Number)],c5.prototype,"richGridItemsPerRow",void 0);_.O([_.q({selector:_.J5}),_.a("design:type",Boolean)],c5.prototype,"richGridMiniMode",void 0);_.O([_.Ij("ytd-carousel-item-renderer"),_.a("design:type",Object)],c5.prototype,"carousel",void 0);_.O([_.b("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],c5.prototype,"activeChanged",null);
_.O([_.b("richGridItemsPerRow","richGridMiniMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],c5.prototype,"updateCssVars",null);c5=_.O([_.A({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],c5);
_.u(c5,"ytd-carousel-header-renderer",function(){if(tYI!==void 0)return tYI;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return tYI=V},{mode:1});var GTV;var EcB=_.fl(["https://www.google-analytics.com/analytics.js"]),JY2=function(){var V=_.M.apply(this,arguments)||this;V.scriptAnalyticsAdded=!1;return V};
_.t(JY2,_.M);JY2.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var V,l=(V=this.data)==null?void 0:V.tagManagerId;l&&(_.k6(l,_.h6("GL")),fFE(l))};
JY2.prototype.sendGoogleAnalyticsPageview=function(V){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var I=_.Q5.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(I)};
var l=window.ga;l("set","page",window.location.pathname);l.l=+new Date;l("set","forceSSL",!0);l("create",V,"'auto'");l("send","pageview")};
JY2.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var V=_.jk("SCRIPT");V.name="ga-analytics";var l=_.TP(EcB);_.gp(V,l);V.async=!0;_.h(this.hostElement).appendChild(V)};
var W5=JY2;W5.prototype.dataChanged=W5.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],W5.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],W5.prototype,"dataChanged",null);W5=_.O([_.A({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],W5);
_.u(W5,"ytd-channel-metadata-renderer",function(){if(GTV!==void 0)return GTV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return GTV=V},{mode:1});var ocb;var hIE;var PrI=function(){return _.M.apply(this,arguments)||this};
_.t(PrI,_.M);var DMg=PrI;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],DMg.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],DMg.prototype,"data",void 0);DMg=_.O([_.A({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],DMg);
_.u(DMg,"ytd-sub-feed-option-renderer",function(){if(hIE!==void 0)return hIE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return hIE=V},{mode:1});var Z5u;var SVr=function(){return _.M.apply(this,arguments)||this};
_.t(SVr,_.M);SVr.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
var bk=SVr;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],bk.prototype,"ytRendererStamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],bk.prototype,"data",void 0);bk=_.O([_.A({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],bk);
_.u(bk,"ytd-sub-feed-selector-renderer",function(){if(Z5u!==void 0)return Z5u;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Z5u=V},{mode:1});var RIB=function(){return _.M.apply(this,arguments)||this};
_.t(RIB,_.M);
RIB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
var qG=RIB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],qG.prototype,"data",void 0);qG=_.O([_.A({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],qG);
_.u(qG,"ytd-browse-feed-actions-renderer",function(){if(ocb!==void 0)return ocb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return ocb=V},{mode:1});var QnE;var cYE;var W9Y=function(){return _.M.apply(this,arguments)||this};
_.t(W9Y,_.M);W9Y.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
var MG=W9Y;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],MG.prototype,"data",void 0);MG=_.O([_.A({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],MG);
_.u(MG,"ytd-mini-channel-renderer",function(){if(cYE!==void 0)return cYE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return cYE=V},{mode:1});var b5Q;var qVY=function(){return _.M.apply(this,arguments)||this};
_.t(qVY,_.M);qVY.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
var s0=qVY;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],s0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],s0.prototype,"data",void 0);s0=_.O([_.A({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],s0);
_.u(s0,"ytd-vertical-channel-section-renderer",function(){if(b5Q!==void 0)return b5Q;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return b5Q=V},{mode:1});var MYB=function(){return _.M.apply(this,arguments)||this};
_.t(MYB,_.M);MYB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
var p3=MYB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],p3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],p3.prototype,"data",void 0);p3=_.O([_.A({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],p3);
_.u(p3,"ytd-browse-secondary-contents-renderer",function(){if(QnE!==void 0)return QnE;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return QnE=V},{mode:1});var snu;var pcg=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};V.notActive=!1;V.isConstrainedList=!1;return V};
_.t(pcg,_.M);_.B=pcg.prototype;
_.B.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}}}},"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",
noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.B.getPath=function(V,l){var I="data.tabs.#"+l+".";V.tabs[l].tabRenderer?I+="tabRenderer.":V.tabs[l].expandableTabRenderer&&(I+="expandableTabRenderer.");return I+"content.sectionListRenderer"};
_.B.computeDisplayedContent=function(V){this.unlinkPaths("content");if(V&&V.tabs)for(var l=V.tabs.length,I=0;I<l;I++){var H=V.tabs[I].tabRenderer||V.tabs[I].expandableTabRenderer;if(H.selected&&H.content)return this.linkPaths("content",this.getPath(V,I)),H.content}return null};
_.B.computeHasSecondaryColumnData=function(V){return!!V&&!!V.secondaryContents};
_.B.onRetrieveLocation=function(V,l){l.locationRetrieved(l.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);V.stopPropagation()};
_.B.onYtServiceRequestSent=function(V,l){_.z("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(l)};
_.B.onYtServiceRequestCompleted=function(V,l){_.z("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(l)};
_.B.onReplaceFeedContentAction=function(V){if(!_.z("replace_feed_content_action_killswitch")&&!this.notActive){var l;(V=(l=_.y(V,nZE))==null?void 0:l.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(V)}};
_.B.handleServiceRequestActions=function(V){if(V=V.actions){V=_.U(V);for(var l=V.next();!l.done;l=V.next()){l=l.value;var I=void 0;((I=_.y(l,nZE))==null?0:I.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.y(l,nZE).items)}}};
var AE=pcg;AE.prototype.onYtServiceRequestCompleted=AE.prototype.onYtServiceRequestCompleted;AE.prototype.onYtServiceRequestSent=AE.prototype.onYtServiceRequestSent;AE.prototype.onRetrieveLocation=AE.prototype.onRetrieveLocation;_.O([_.R(_.c0),_.a("design:type",Object)],AE.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],AE.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],AE.prototype,"data",void 0);_.O([_.q({computed:"computeDisplayedContent(data)"}),_.a("design:type",Object)],AE.prototype,"content",void 0);
_.O([_.q({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],AE.prototype,"hasSecondaryColumnData",void 0);_.O([_.q({value:function(){return window.outerHeight>1024?3:2}}),
_.a("design:type",Number)],AE.prototype,"initialCount",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],AE.prototype,"pageSubtype",void 0);_.O([_.Ij("ytd-section-list-renderer"),_.a("design:type",Object)],AE.prototype,"listRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],AE.prototype,"notActive",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],AE.prototype,"isConstrainedList",void 0);
_.O([_.q(),_.a("design:type",String)],AE.prototype,"responsiveSizing",void 0);_.O([_.W("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],AE.prototype,"onRetrieveLocation",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],AE.prototype,"onYtServiceRequestSent",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],AE.prototype,"onYtServiceRequestCompleted",null);AE=_.O([_.A({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],AE);
_.u(AE,"ytd-two-column-browse-results-renderer",function(){if(snu!==void 0)return snu;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return snu=V},{mode:2});var AYE;var uOh;var vcV=function(){var V=_.M.apply(this,arguments)||this;V.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"]);V.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"]);V.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return V};
_.t(vcV,_.M);_.B=vcV.prototype;_.B.attached=function(){this.requestElementsPerRow()};
_.B.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_]]"}}}}}};
_.B.onUpdateElementsPerRowAction=function(V){V&&this.elementsPerRow!==V&&(this.elementsPerRow=V)};
_.B.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.B.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.B.computeAlertStyle_=function(V){return V};
_.B.observerElementsPerRow=function(){this.elementsPerRow&&_.i3(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.B.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.B.requestElementsPerRow=function(){_.B$(this.hostElement,"yt-request-elements-per-row")};
var uk=vcV;uk.prototype.onIsVisibleChanged_=uk.prototype.onIsVisibleChanged_;uk.prototype.observerElementsPerRow=uk.prototype.observerElementsPerRow;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],uk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],uk.prototype,"actionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],uk.prototype,"data",void 0);_.O([_.q({value:6,reflectToAttribute:!0}),_.a("design:type",Number)],uk.prototype,"elementsPerRow",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],uk.prototype,"wrapButtons",void 0);_.O([_.q({value:_.h6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.a("design:type",Boolean)],uk.prototype,"isMusic",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.a("design:type",String)],uk.prototype,"alertStyle",void 0);_.O([_.q({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.a("design:type",Function)],uk.prototype,"dismissBoundButtonTap_",void 0);_.O([_.q({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.a("design:type",Function)],uk.prototype,"acceptBoundButtonTap_",void 0);_.O([_.b("elementsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uk.prototype,"observerElementsPerRow",null);_.O([_.b("data.isVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uk.prototype,"onIsVisibleChanged_",null);uk=_.O([_.Lm({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],uk);
_.u(uk,"yt-alert-with-actions-renderer",function(){if(uOh===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;AYE===void 0&&(AYE=document.createElement("template"));var H=AYE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);uOh=V}V=uOh;return V},{mode:2});_.MR(_.W1(function(V){var l=_.sZ(),I=function(){return V.data().canvasPromoData},H=function(){var x;
return(x=V.data().bannerHeight)!=null?x:48};
_.A9(l,function(){var x;return(x=V.data())==null?void 0:x.rendererContext},void 0,void 0,void 0,!0);
var T={};return _.Y("yt-personal-greeting-view-model",{el:l,class:_.ii("ytPersonalGreetingViewModelHost",V.className),style:_.na({height:(0,_.kR)(function(){return H()})})},_.Y(_.rw,{data:function(){return V.data().avatar}},{decoratedAvatarViewModel:function(x){return _.Y(_.R_,{data:x.data,
className:_.ii("ytPersonalGreetingViewModelAvatar")})}}),_.Y(_.Ni,{text:function(){var x;
return(I==null?void 0:(x=I())==null?void 0:x.headline)||V.data().greeting},
className:_.ii("ytPersonalGreetingViewModelHeadline",(T.ytPersonalGreetingViewModelHeadlineSmall=function(){return H()===48},T))}))},"Fh"),"yt-personal-greeting-view-model",{props:{data:_.b9,
className:_.b9}});var O5Q=function(){var V=_.M.apply(this,arguments)||this;V.hidden=!1;V.isConstrainedList=!1;V.darkerDarkTheme=_.z("web_darker_dark_theme");V.responsiveSizing="COMPACT";V.attachedPlayers=_.z("kevlar_channel_trailer_multi_attach")?[]:void 0;V.player=null;V.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return V};
_.t(O5Q,_.M);_.B=O5Q.prototype;
_.B.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",
isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",
tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},hashtagHeaderRenderer:{component:"ytd-hashtag-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.B.created=function(){var V=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){V.disposeMastheadAd()}]};
_.B.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new EZ6(this.refresh,this.contents))};
_.B.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.B.activeChanged=function(){var V=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=V)};
_.B.tabsChanged=function(){var V=this,l,I,H,T;if(this.pageSubtype==="channels"||_.z("kevlar_tab_gestures_for_tabbed_header_data")&&(((l=this.data)==null?0:(I=l.header)==null?0:I.c4TabbedHeaderRenderer)||((H=this.data)==null?0:(T=H.header)==null?0:T.carouselHeaderRenderer)))this.tabGestures=new WR(this.contents,this.contents,this.hostElement,this.header,function(N){V.ytdReduxBehavior.dispatch(N)});
var x,n,w;l=(x=this.data)==null?void 0:(n=x.contents)==null?void 0:(w=n.twoColumnBrowseResultsRenderer)==null?void 0:w.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=l);this.tabGestures&&this.tabGestures.tabsChanged(l)};
_.B.channelIdChanged=function(){if(this.tabGestures){var V,l,I,H=this.tabGestures,T=(V=this.data)==null?void 0:(l=V.header)==null?void 0:(I=l.c4TabbedHeaderRenderer)==null?void 0:I.channelId;T&&T!==H.currentChannelId&&(H.scrollPositionForTabs.clear(),H.currentChannelId=T,H.lastVisitedTabScrollPosition=void 0,H.tabsStartAtInPx=0)}};
_.B.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.B.engagementPanelsChanged=function(){var V=_.F().resolve(_.Eu);if(V){if(this.engagementPanels)for(var l=_.U(this.engagementPanels),I=l.next();!I.done;I=l.next()){var H=void 0;(I=(H=I.value.identifier)==null?void 0:H.tag)&&V.panelMap.delete(I)}this.engagementPanels=[];var T;l=_.U(((T=this.data)==null?void 0:T.panels)||[]);for(T=l.next();!T.done;T=l.next()){T=_.y(T.value,_.AJI);var x=I=void 0,n=void 0,w=void 0;if(H=((I=T)==null?void 0:I.targetId)||((x=T)==null?void 0:x.panelIdentifier)||((n=T)==null?
void 0:(w=n.identifier)==null?void 0:w.tag))x=I=void 0,(x=(I=V).registerPanelContent)==null||x.call(I,H,{engagementPanelSectionListRenderer:T}),this.engagementPanels.push(T)}}};
_.B.onStampFinished=function(){var V=this;_.Al(this,function(){if(V.tabGestures){var l=V.tabGestures;if(l.scrollPositionNeedsUpdate){var I=_.F().resolve(_.Cs(_.pa)),H;if((H=l.selectedTab)!=null&&H.title&&I&&(H=I.getCurrentPage())){if(l.scrollPositionForTabs.has(l.selectedTab.title)){var T,x;I=(x=(T=I.getCurrentPage())==null?void 0:T.clientHeight)!=null?x:0;T=l.scrollPositionForTabs.get(l.selectedTab.title);H.setScrollTop(T);I>T+100&&(l.scrollPositionNeedsUpdate=!1)}else H.setScrollTop(Math.min(l.lastVisitedTabScrollPosition!==
void 0?l.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,l.tabsStartAtInPx)),l.scrollPositionNeedsUpdate=!1;l.ytdReduxDispatch(i3Y(!1))}}}})};
_.B.loadPage_=function(V){this.initCsi();V&&(this.data=V);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.B.getTitle=function(V){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",V))return this.get("microformat.microformatDataRenderer.title",V);if(this.get("header.c4TabbedHeaderRenderer.title",V))return this.get("header.c4TabbedHeaderRenderer.title",V);if(this.get("header.feedTabbedHeaderRenderer.title",V))return _.A5(this.get("header.feedTabbedHeaderRenderer.title",V));if(this.get("header.interactiveTabbedHeaderRenderer.title",V))return this.get("header.interactiveTabbedHeaderRenderer.title",
V);if(this.get("header.hashtagHeaderRenderer.hashtag",V))return _.A5(this.get("header.hashtagHeaderRenderer.hashtag",V));if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",V))return _.A5(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
V));var l,I;return _.z("enable_page_header_page_title")&&(V==null?0:(l=V.header)==null?0:(I=l.pageHeaderRenderer)==null?0:I.pageTitle)?V.header.pageHeaderRenderer.pageTitle:""};
_.B.updateTitle=function(V){_.B$(this.hostElement,"yt-update-title",this.getTitle(V))};
_.B.initCsi=function(){_.s0g(this.pageSubtype||"browse",["ol","cpt"])};
_.B.getPlayer=function(){if(_.z("kevlar_channel_trailer_multi_attach")){for(var V=_.U(this.attachedPlayers),l=V.next();!l.done;l=V.next())if(l=l.value,l.isConnected||_.R8(this.hostElement,l))return l;return null}return this.player};
_.B.getPlayerContainer=function(){return null};
_.B.onPlayerAttached=function(V,l){_.z("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(l):this.player=l};
_.B.onPlayerDetached=function(V,l){_.z("kevlar_channel_trailer_multi_attach")?(V=this.attachedPlayers.indexOf(l),V<0||this.attachedPlayers.splice(V,1)):this.player=null};
_.B.getServiceTrackingParams=function(){var V,l;return((V=this.data)==null?void 0:(l=V.responseContext)==null?void 0:l.serviceTrackingParams)||[]};
_.B.setMastheadAd=function(V){V&&V.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=V&&V.mastheadAd};
_.B.dataChanged=function(){var V=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.DGV();_.Al(this,function(){_.U4(V.hostElement,"ytd-update-grid-state-action")})};
_.B.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.B.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var V=this.data.alerts;return V&&V.find(function(l){return!!l.alertWithActionsRenderer})}};
_.B.computeGreetingData=function(){if(this.data&&this.data.alerts){var V=this.data.alerts;return V&&V.find(function(l){return!!l.personalGreetingViewModel})}};
_.B.computeHasC4TabbedHeaderRenderer=function(V){var l;return!!(V==null?0:(l=V.header)==null?0:l.c4TabbedHeaderRenderer)};
_.B.computeHasMemberHubProfileRenderer=function(V){var l;return!!(V==null?0:(l=V.header)==null?0:l.memberHubProfileRenderer)};
_.B.handleAlertCommand=function(V){this.get("alertCommand.alert.alertWithActionsRenderer",V)&&(V=_.y(V,$gu),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",V.alert))};
_.B.handleYtPlaylistDeletionRedirect=function(V){V=this.get("playlistDeletionRedirectCommand.redirectEndpoint",V);_.B$(this.hostElement,"yt-navigate",{endpoint:V})};
_.B.computeFluidWidth=function(V,l,I){if(l==="mini_app"||I)return!0;var H,T,x;V=V==null?void 0:(H=V.contents)==null?void 0:(T=H.twoColumnBrowseResultsRenderer)==null?void 0:(x=T.tabs)==null?void 0:x.find(function(N){var L;return N==null?void 0:(L=N.tabRenderer)==null?void 0:L.selected});
if(!V)return!1;var n,w;return!!((n=V.tabRenderer)==null?0:(w=n.content)==null?0:w.richGridRenderer)&&!["channel","channels","playables"].includes(l)};
_.B.computeHeaderFluidWidth=function(V){return V==="hashtag-landing-page"};
_.B.computeHasSidebar=function(V){var l;return!!(V.sidebar||((l=V.header)==null?0:l.playlistHeaderRenderer))};
_.B.computeHasPageHeaderSidebar=function(V){var l,I;return!!((l=V.header)==null?0:(I=l.pageHeaderRenderer)==null?0:I.enableSidebarView)};
_.B.computeUseUnifiedShowPageLayout=function(V){if(!V||this.pageSubtype!=="show"||!V.sidebar||!V.sidebar.playlistSidebarRenderer)return!1;V=V.sidebar.playlistSidebarRenderer;if(!V.items)return!1;for(var l=0;l<V.items.length;l++)if(_.y(V.items[l],KtE)){var I=void 0;return((I=_.y(V.items[l],KtE))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.B.computeIsConstrainedList=function(V){return _.z("web_enable_constrained_list_subscriptions_channels")&&V==="subscriptions-channels"};
_.B.computeResponsiveSizing=function(V){return V==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.vI.Object.defineProperties(O5Q.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var V,l;return((V=this.data)==null?0:(l=V.header)==null?0:l.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var V,l;if(!((V=this.data)==null?0:(l=V.sidebar)==null?0:l.playlistSidebarRenderer))return!1;var I;return(I=this.data)!=null&&I.header?!1:!0}}});
_.vI.Object.defineProperties(O5Q,{template:{configurable:!0,enumerable:!0,get:function(){if(hCE===void 0){var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" disable-upgrade$="[[!hasPageHeaderSidebar]]" display-as-sidebar="" hidden="[[!hasPageHeaderSidebar]]">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);hCE=V}V=hCE;return V}}});
var v5=O5Q;v5.prototype.dataChanged=v5.prototype.dataChanged;v5.prototype.onPlayerDetached=v5.prototype.onPlayerDetached;v5.prototype.onPlayerAttached=v5.prototype.onPlayerAttached;v5.prototype.onStampFinished=v5.prototype.onStampFinished;v5.prototype.engagementPanelsChanged=v5.prototype.engagementPanelsChanged;v5.prototype.scrollAtTopChanged=v5.prototype.scrollAtTopChanged;v5.prototype.channelIdChanged=v5.prototype.channelIdChanged;v5.prototype.tabsChanged=v5.prototype.tabsChanged;
v5.prototype.activeChanged=v5.prototype.activeChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],v5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],v5.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],v5.prototype,"ytdReduxBehavior",void 0);
_.O([_.R(_.Rb.YtPageBehavior),_.a("design:type",Object)],v5.prototype,"ytPageBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],v5.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],v5.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],v5.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],v5.prototype,"hidden",void 0);_.O([_.q(),_.a("design:type",Object)],v5.prototype,"mastheadAdData",void 0);_.O([_.q({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.a("design:type",Object)],v5.prototype,"alertBannerData",void 0);_.O([_.q({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.a("design:type",Object)],v5.prototype,"greetingData",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],v5.prototype,"pageSubtype",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.a("design:type",Boolean)],v5.prototype,"hasC4TabbedHeaderRenderer",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.a("design:type",Boolean)],v5.prototype,"hasMemberHubProfileRenderer",void 0);
_.O([_.q({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],v5.prototype,"hasSidebar",void 0);_.O([_.q({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],v5.prototype,"hasPageHeaderSidebar",void 0);_.O([_.q({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],v5.prototype,"roundedContainer",void 0);
_.O([_.q({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],v5.prototype,"useUnifiedShowPageLayout",void 0);_.O([_.q({computed:"computeIsConstrainedList(pageSubtype)"}),_.a("design:type",Object)],v5.prototype,"isConstrainedList",void 0);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v5.prototype,"usePlaylistHeaderRenderer",null);
_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v5.prototype,"useOldPlaylistSidebarRenderer",null);_.O([_.q({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.a("design:type",Boolean)],v5.prototype,"fluidWidth",void 0);_.O([_.q({selector:function(V){return V.ui.scrollAtTop}}),
_.a("design:type",Boolean)],v5.prototype,"scrollAtTop",void 0);_.O([_.q({selector:_.ylI}),_.a("design:type",Boolean)],v5.prototype,"tabGesturesIsActive",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],v5.prototype,"darkerDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.a("design:type",Boolean)],v5.prototype,"disableHeaderFluidWidth",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.a("design:type",String)],v5.prototype,"responsiveSizing",void 0);_.O([_.Ij("ytd-two-column-browse-results-renderer"),_.a("design:type",HTMLElement)],v5.prototype,"contents",void 0);_.O([_.Ij("#header"),_.a("design:type",HTMLElement)],v5.prototype,"header",void 0);_.O([_.Ij("ytd-refresh"),_.a("design:type",Object)],v5.prototype,"refresh",void 0);
_.O([_.b("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v5.prototype,"activeChanged",null);_.O([_.b("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v5.prototype,"tabsChanged",null);_.O([_.b("data.header.c4TabbedHeaderRenderer.channelId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v5.prototype,"channelIdChanged",null);
_.O([_.b("scrollAtTop"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v5.prototype,"scrollAtTopChanged",null);_.O([_.q(),_.a("design:type",Object)],v5.prototype,"engagementPanels",void 0);_.O([_.b("data.panels"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v5.prototype,"engagementPanelsChanged",null);
_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v5.prototype,"onStampFinished",null);_.O([_.W("yt-player-attached"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Element]),_.a("design:returntype")],v5.prototype,"onPlayerAttached",null);_.O([_.W("yt-player-detached"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Element]),_.a("design:returntype")],v5.prototype,"onPlayerDetached",null);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v5.prototype,"dataChanged",null);v5=_.O([_.A({is:"ytd-browse"})],v5);_.oe.registerService(_.Iyt,v5);
_.o8();
}catch(e){_._DumpException(e)}
try{
_.JK("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 LcQ=function(V,l){return V<l?-1:V>l?1:0},IF=function(V,l){var I=0;
V=(0,_.nj)(String(V)).split(".");l=(0,_.nj)(String(l)).split(".");for(var H=Math.max(V.length,l.length),T=0;I==0&&T<H;T++){var x=V[T]||"",n=l[T]||"";do{x=/(\d*)(\D*)(.*)/.exec(x)||["","","",""];n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""];if(x[0].length==0&&n[0].length==0)break;I=LcQ(x[1].length==0?0:parseInt(x[1],10),n[1].length==0?0:parseInt(n[1],10))||LcQ(x[2].length==0,n[2].length==0)||LcQ(x[2],n[2]);x=x[3];n=n[3]}while(I==0)}return I},Hp=function(V){if(!V)return"browse";
var l=V.page,I=V.url,H,T,x,n=(H=V.response)==null?void 0:(T=H.responseContext)==null?void 0:(x=T.webResponseContextExtensionData)==null?void 0:x.pageTheme;if(n)l=n.toLowerCase().replace(/_/g,"-");else if(l!=="watch"){var w,N;if((l==="browse"||l==="settings")&&((w=V.response)==null?0:(N=w.sidebar)==null?0:N.settingsSidebarRenderer))l="WEB_PAGE_TYPE_SETTINGS";else{var L,e;l==="browse"&&((L=V.response)==null?0:(e=L.metadata)==null?0:e.channelMetadataRenderer)?l="channel":I&&(l=_.YEf(I)||l)}}return l},
enI=function(){var V=_.SN("yt.aba.att");
return V?V:_.nq.instance!==void 0?_.nq.instance.eFB.bind(_.nq.instance):null},kGE=function(V,l){var I;
return _.d(function(H){return(I=enI())?H.return(I(V,l,6E4)):H.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},Fc2=function(V,l,I,H,T){l=l===void 0?[]:l;
T=T?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:T}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.iJ(V),dialogMessages:l.map(function(x){return _.iJ(x)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iJ(I),serviceEndpoint:T}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iJ(H)}}}}}},XXE=function(V){var l=!!_.sg().queueProxy;
var I,H,T;V=V==null?void 0:(I=V.response)==null?void 0:(H=I.currentVideoEndpoint)==null?void 0:(T=H.watchEndpoint)==null?void 0:T.playlistId;return!(!l&&!V)},znQ=function(V,l){var I=_.jl();
if(XXE(V))return I.playlistWatchPageActivation=!0;switch(Hp(l)){case "yts-products":return I.productDetailsPageActivation=!0;case "mini_app":return I.miniAppPageActivation=!0;case "playables":return I.playablesDestPageActivation=!0;default:return!1}},yoQ=function(V,l,I){for(var H=typeof V==="string"?V.split(""):V,T=V.length-1;T>=0;--T)T in H&&l.call(I,H[T],T,V)},tzQ=function(V,l){l=_.F3w(V,l);
l>=0&&_.y1J(V,l)},rog=function(V){return Array.prototype.concat.apply([],arguments)},GGE=function(V){var l=0;
l=l===void 0?0:l;if(!_.mW(V))throw _.Bw("uint64");var I=typeof V;switch(l){case 512:switch(I){case "string":return _.JBK(V);case "bigint":return String((0,_.NE)(64,V));default:return _.GET(V)}case 1024:switch(I){case "string":return _.oJc(V);case "bigint":return _.cw((0,_.NE)(64,V));default:return _.EJt(V)}case 0:switch(I){case "string":return _.JBK(V);case "bigint":return _.cw((0,_.NE)(64,V));default:return _.rBW(V)}default:return _.AB(l,"Unknown format requested type for int64")}},E7u=function(V){if(V==
null)return V;
if(typeof V==="bigint")return V>=0&&(0,_.tI)(V)?V=Number(V):(V=(0,_.NE)(64,V),V=(0,_.tI)(V)?Number(V):String(V)),V;if(_.mW(V))return typeof V==="number"?_.rBW(V):_.JBK(V)},Jor=function(V){V!=null&&(V=V.JSC$6680_value_||"",V=typeof V==="string"?V:new Uint8Array(V));
return V},o7E=function(V){for(var l=_.Q5.apply(1,arguments),I=V[0],H=0;H<V.length-1;H++)I+=String(l[H]),I+=V[H+1];
l=document.implementation.createHTMLDocument("");H=l.createElement("style");l.head.appendChild(H);l=H.sheet;l.insertRule(I,0);if(l.cssRules.length===1&&(I=l.cssRules[0],I instanceof CSSStyleRule))return new _.II(I.cssText.replace(/</g,"\\3C "))},hnb=function(V,l){if(/-[a-z]/.test(l))return null;
if(_.JVN&&V.dataset){if(_.dqK()&&!(l in V.dataset))return null;V=V.dataset[l];return V===void 0?null:V}return V.getAttribute("data-"+_.Nz(l))},DRY=function(){var V=Pir;
_.SN("yt.ads.biscotti.getId_")||_.Aq("yt.ads.biscotti.getId_",V)},ZtY=function(V){_.Aq("yt.ads.biscotti.lastId_",V)},RnI=function(){var V={};
for(_.Xi=new SIY(V.handleError===void 0?_.oV:V.handleError,V.logEvent===void 0?_.tF:V.logEvent);_.zU.length>0;)switch(V=_.zU.shift(),V.type){case "ERROR":_.Xi.logError(V.payload);break;case "EVENT":_.Xi.logEvent(V.eventType,V.payload)}},QNu=function(V,l,I){return _.hZW(function(H){return I?H.userIdentifier!==void 0&&!V.includes(H.userIdentifier)&&I.includes(H.publicName):H.userIdentifier!==void 0&&!V.includes(H.userIdentifier)},l)},coY=function(V){var l,I;
return _.d(function(H){if(H.nextAddress==1)return l=_.KA("YtIdbMeta hasAnyMeta other"),_.K(H,_.hZW(function(T){return T.userIdentifier!==void 0&&T.userIdentifier!==l},V),2);
I=H.yieldResult;return H.return(I.length>0)})},btV=function(V,l){Wcg||(Wcg=_.r0.addLowPriorityJob(function(){var I,H,T,x,n;
return _.d(function(w){switch(w.nextAddress){case 1:return _.K(w,_.u2(),2);case 2:I=w.yieldResult;if(!I)return w.return();H=!0;_.jd(w,3);return _.K(w,QNu(V,I,l),5);case 5:T=w.yieldResult;if(!T.length){H=!1;w.jumpTo(6);break}x=T[0];return _.K(w,_.Q7(x.actualName),7);case 7:return _.K(w,_.b2(x.actualName,I),6);case 6:_.Rv(w,4);break;case 3:n=_.kE(w),_.y7(n),H=!1;case 4:_.r0.cancelJob(Wcg),Wcg=0,H&&btV(V,l),_.FU(w)}})}))},qIP=function(){var V;
return _.d(function(l){return l.nextAddress==1?_.K(l,_.u2(),2):(V=l.yieldResult)?l.return(coY(V)):l.return(!1)})},MzI=function(V){var l=100;
l=l===void 0?500:l;var I,H,T,x,n,w;return _.d(function(N){return N.nextAddress==1?(I=_.h6("INNERTUBE_CONTEXT_CLIENT_NAME",0),H=[I,(0,_.O_)()-2592E6],T=[I,(0,_.O_)()],x=IDBKeyRange.bound(H,T),_.K(N,_.IAJ(V),2)):N.nextAddress!=3?(n=N.yieldResult,w=[],_.K(N,_.Wx(n,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(L){w.length=0;return _.CA(L.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:x,direction:"prev"},function(e){if(e.getValue()&&w.length<l)return w.push(e.getValue()),
e.delete().then(function(){return e.continue()})})}),3)):N.return(w)})},sNY=function(){var V;
return _.d(function(l){if(l.nextAddress==1)return _.K(l,_.u2(),2);V=l.yieldResult;if(!V||!_.jO()&&!_.z("nwl_init_require_datasync_id_killswitch")||!_.znK())return l.jumpTo(0);_.tzK=!0;_.yoK.isNwlInitialized=_.tzK;return _.K(l,_.qAZ().awaitInitialization(),0)})},Tg=function(V,l){_.qIt[V]=!0;
var I=_.g0();I&&I.publish.apply(I,arguments);_.qIt[V]=!1},AoQ=function(){if(_.ee1()&&!pXg){var V=function(I){I=I.data;
if(I.op==="serializedGelBatch"){var H=_.s2t.get(I.key);H&&(_.AUT(I.serializedBatch,H.client,H.resolve,H.networklessOptions,H.isIsolated,H.useVSSEndpoint,H.dangerousLogToVisitorSession,H.requestsOutstanding),_.s2t.delete(I.key))}},l=_.Ljc();
l&&(l.addEventListener("message",V),l.onerror=function(){_.s2t.clear()});
pXg=!0}},Bp=function(){this.relativeTimeStart_=_.xv()},uoY=function(V,l){V!=null&&this.append.apply(this,arguments)},v7b=function(){return _.Zh("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},OtE=function(V,l,I){I=I===void 0?!1:I;
var H,T,x,n,w;return _.d(function(N){switch(N.nextAddress){case 1:_.wm("SOCS",V,34128E3,"youtube.com",!0);if(_.Yv)return T=fetch(l,{method:"POST",mode:_.sA(l),credentials:_.Mz(l),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),x=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.sA("/upgrade_visitor_cookie?eom=1"),credentials:_.Mz("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.K(N,Promise.all([T,x]).then(function(L){return L[1]}),5);
fetch(l,{method:"POST",mode:_.sA(l),credentials:_.Mz(l),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.K(N,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.sA("/upgrade_visitor_cookie?eom=1"),credentials:_.Mz("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:H=N.yieldResult;N.jumpTo(3);break;case 5:H=n=N.yieldResult;case 3:if(!H.ok)throw Error("pf");return _.K(N,H.text(),7);case 7:w=N.yieldResult,
!w.includes('"state_switch":true')&&!I||w.includes("skip_reload_for_test")||window.location.reload(),_.FU(N)}})},Ci2=function(V){return _.d(function(l){return l.nextAddress==1?_.K(l,OtE(V.socsCookie,V.savePreferenceUrl,!0),2):l.return()})},aAP=function(V){return _.d(function(l){return l.nextAddress==1?_.K(l,OtE(V.socsCookie,V.savePreferenceUrl),2):l.return()})},g7E=function(V){V=V.xhr.responseText;
if(!_.Nq(V,")]}'"))throw new x2;V=JSON.parse(V.substr(4));if((V.type||1)>1)throw new x2;V=V.id;ZtY(V);UD=_.Ar(V);fAQ(18E5,2);return V},itE=function(V,l){l=new mRg(l);
ZtY("");UD=_.pfi(l);V>0&&fAQ(12E4,V-1);throw l;},fAQ=function(V,l){_.Iv(function(){_.bhg().then(g7E,function(I){return itE(l,I)}).thenCatch(_.XX)},V)},Pir=function(){var V=_.ajt();
if(V!==void 0)return _.bK(V);UD||(UD=_.bhg().then(g7E).thenCatch(function(l){return itE(2,l)}));
return UD},VUV=function(){var V=document;
return _.cy(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(l){return"on"+l.toLowerCase()in V})},lt2=function(V){V.addEventListener("click",function(l){var I=l.target;
I&&I.getAttribute("href")&&(I=I.getAttribute("href"),_.uY(window,I,"_blank"),l.preventDefault(),l.stopImmediatePropagation())})},ItE=function(V){var l,I,H,T=(H=(I=((l=V.mainDownloadsListEntity)!=null?l:{})[_.ksq])==null?void 0:I.refresh)!=null?H:"",x;
V=(x=V.refresh)==null?void 0:x[T];T=V!=null?V:{};return(T==null?0:T.refreshTime)?Number(T==null?void 0:T.refreshTime):0},HaE=function(V,l){var I=_.t5(V);
return l.every(function(H){var T;H=H==null?void 0:(T=H.playbackDataEntity)==null?void 0:T.key;if(!H)return!1;T=_.Ul(_.TV(H).entityId,"mainVideoEntity");return!!I[T]})},TqY=function(V){V=_.X3(V.entities);
return _.D$W(V).length},Bqg=function(V,l){if(l){var I;
V=(I=_.nW(V.entities,"downloadQualityPickerEntity",l))!=null?I:void 0}else V=void 0;return V},nFV=function(){xiB||(_.sl=_.Ypt,xiB=new UiP);
return xiB},$iE=function(V){var l=document.getElementsByTagName("ytd-enforcement-message-view-model");
l.length===0||getComputedStyle(l[0]).display==="none"?V(0,"p.h_"):V(1,"p.h_")},np=function(V){var l,I;
(V=(I=_.y(V==null?void 0:V.commandMetadata,_.mK))==null?void 0:I.url)&&(l=_.YEf(V));return l},dib=function(){$2=0;
var V=[_.jD(!0)];dK&&_.U4(dK,"yt-window-resized",V)},wuE=function(){$2||($2=_.r0.addLowPriorityJob(dib,200))},Ks2=function(){wK=0;
Nqu=_.BpZ(document);var V=[Nqu];dK&&_.U4(dK,"yt-window-scrolled",V)},j2Y=function(){wK||(wK=_.r0.addLowPriorityJob(Ks2,200))},LsE=function(V){V=V===void 0?null:V;
Yxg.push(_.Oh(window,"resize",wuE));Yxg.push(_.Oh(window,"scroll",j2Y));V&&(dK=V)},eLE=function(V){_.d(function(l){if(l.nextAddress==1)return _.K(l,V.delete("yt-appshell-assets"),2);
_.FU(l)})},kS6=function(V){return _.cx((0,_.dQw)(),V)},Xu6=function(){var V;
_.d(function(l){return l.nextAddress==1?_.K(l,Nd.getInstance(),2):(V=l.yieldResult)?_.K(l,FsE(V),0):l.jumpTo(0)})},yU2=function(){var V;
_.d(function(l){return l.nextAddress==1?_.K(l,Kp.getInstance(),2):(V=l.yieldResult)?_.K(l,zLY(V),0):l.jumpTo(0)})},tUE=function(V){eLE(V);
Xu6();yU2()},rUE=function(V){var l,I;
return _.d(function(H){if(H.nextAddress==1)return _.K(H,_.AN1(V),2);if(l=H.yieldResult){var T;a:{if(l.headers&&(T=l.headers.get("date"))&&(T=Date.parse(T),!isNaN(T))){T=Math.round((0,_.O_)()-T);break a}T=-1}I=T;if(I>-1)return H.return(I)}return H.return(-1)})},GSP=function(){var V=_.nK.caches,l=_.PO("IS_SHELL_LOAD"),I,H;
_.d(function(T){if(T.nextAddress==1)return I=-1,l?_.K(T,rUE(V),3):(H=_.Gq(),I=Math.round((0,_.O_)()-H),T.jumpTo(2));T.nextAddress!=2&&(I=T.yieldResult);I>=0&&I<2147483648&&_.P$({appInstallDataAgeMs:I});_.FU(T)})},EF2=function(V){var l=_.Wv(_.nK.location.href),I={};
"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(H){var T=l.JSC$7896_queryData_.getValues(H);if(T==null?0:T.length)I[H]=T});
return _.UL(V,new Map(Object.entries(I)))},JUB=function(V){V=V.match(/(.*)::.*::.*/);
if(V!==null)return V[1]},oFY=function(V){if(_.nr1()){var l=Object.keys(window.localStorage);
l=_.U(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var H=JUB(I);H===void 0||V.includes(H)||self.localStorage.removeItem(I)}}},hLY=function(){if(!_.nr1())return!1;
var V=_.KA(),l=Object.keys(window.localStorage);l=_.U(l);for(var I=l.next();!I.done;I=l.next())if(I=JUB(I.value),I!==void 0&&I!==V)return!0;return!1},P8P=function(V){return _.OK("NotificationsDisabled",V)},DiE=function(){return Notification.permission!="granted"?Promise.resolve():_.thB().then(function(V){return V?V.pushManager.getSubscription().then(function(l){if(l)return Promise.resolve();
l={userVisibleOnly:!0,applicationServerKey:_.TE("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return V.pushManager.subscribe(l).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},Zag=function(V){return _.thB().then(function(l){if(!l||!l.active)return Promise.reject(new _.Yd("serviceworker.postMessage",V,l));
try{return l.active.postMessage(V),Promise.resolve()}catch(I){return Promise.reject(I)}})},SxE=function(){Zag({type:"notifications_register",
data:_.h6("ID_TOKEN")})},Q2I=function(){var V={isWide:_.dm.get("wide","0")==="1"},l=_.Fu();
if(l=l.getFlag(165)||l.getFlag(174))V.theme=_.Pb(!0);if(_.Er1()){var I=_.hv()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";V.systemTheme=I}!l&&_.z("parent_tools_enable_app_settings")&&_.bt(window.location.href).theme!==void 0&&(V.theme=_.Pb());if((l=j9)?!_.EL.equals(l,V):V)l={currentValue:V},RLQ&&(l.timeSinceLastSnapshotSecs=Math.round(((0,_.O_)()-RLQ)/1E3)),j9&&(l.previousValue=j9),_.tF("appSettingsCaptured",l),j9=V,RLQ=(0,_.O_)()},cU2=function(){if(!_.PO("LOGGED_IN"))return Promise.resolve(!1);
var V=_.m_("service_worker_push_force_notification_prompt_tag");return V?_.mi("PromptTags").then(function(l){if(!l)return!0;var I=[];try{I=JSON.parse(l)}catch(H){return!1}return I&&I.indexOf(V)==-1}):Promise.resolve(!1)},WsV=function(){var V=_.g7("service_worker_push_prompt_delay_microseconds");
return V?_.mi("PromptTime").then(function(l){return Promise.resolve(Date.now()-V>(l||0))}):Promise.resolve(!0)},baV=function(){var V=_.g7("service_worker_push_logged_out_prompt_watches");
return V==-1?Promise.resolve(!1):_.mi("WatchCount").then(function(l){return l>=V})},qxE=function(){var V=_.Ox(document,"yt-push-prompt-modal-bg");
V&&_.Yw(V)},MUE=function(){return _.g7("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.mi("PromptCount").then(function(V){V||(V=0);
return Promise.resolve(V<_.g7("service_worker_push_prompt_cap"))})},s2P=function(V){return _.PO("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.PO("LOGGED_IN")&&(V===void 0?0:V)?cU2().then(function(l){if(l)return!0;
l=[MUE(),WsV()];_.PO("LOGGED_IN")||l.push(baV());return Promise.all(l).then(function(I){return I.every(function(H){return H})})}):Promise.resolve(!1)},pu6=function(){_.mi("PromptCount").then(function(V){return _.OK("PromptCount",V+1)}).then(function(){return _.OK("PromptTime",Date.now())}).then(function(){var V=_.m_("service_worker_push_force_notification_prompt_tag");
if(V)return _.mi("PromptTags").then(function(l){var I=[];if(l)try{I=JSON.parse(l)}catch(H){return!1}I||(I=[]);I.push(V);return _.OK("PromptTags",JSON.stringify(I))})})},uph=function(){AUh||qxE()},vFB=function(V){V.style.zIndex=2147483648;
V.style.pointerEvents="auto";V.style.backgroundColor="rgba(0, 0, 0, 0.6)";V.style.width="100%";V.style.height="100vh";V.style.position="absolute";V.style.top="0";V.style.left="0";V.style.border="none"},OaQ=function(){var V=_.Ox(document,"yt-push-prompt-modal-bg");
AUh=_.z("service_worker_push_prompt_modal_ignore_click");V?vFB(V):(V=_.Su("div",{id:"yt-push-prompt-modal-bg"}),vFB(V),document.body.appendChild(V),_.QN1(document,"click",uph))},C82=function(){var V=arguments;
_.z("service_worker_push_prompt_modal_enable")&&OaQ();return Notification.requestPermission().then(function(l){qxE();var I=document.getElementById("ticker");I&&(I.className=I.classList.remove("show"));if(l=="granted")return DiE().then(function(){P8P(!1);SxE();return Promise.resolve(!0)});
l=="denied"&&SxE();return Promise.resolve(!1)}).catch(function(){qxE();
return Promise.reject.apply(Promise,_.oI(V))})},atQ=function(V){V=V===void 0?!1:V;
var l=_.D6N().client;if(l&&l.browserVersion){var I=l.browserVersion,H=l.browserName=="CHROME"&&IF(I,"50.0.0")<0;l=l.browserName=="OPERA"&&IF(I,"42.0.0")<0;if(H||l)return Promise.resolve()}return _.EzI().then(function(T){if(!T)return Promise.resolve();T=DiE().then(function(){return Zag({type:"notifications_check_registration",data:_.h6("ID_TOKEN")})});
return Notification.permission!="default"?T.catch(function(){}):T.then(function(){return s2P(V)}).then(function(x){if(x)return pu6(),C82().then(function(){})}).catch(function(){})})},ftY=function(V){return _.rlh(V)?atQ():Promise.resolve()},gFr=function(V){var l=V.installing||V.waiting;
return V.active||!l?Promise.resolve(V):new Promise(function(I){var H=function(T){T=T.target;if(T.state==="activated"||T.state==="redundant")l.removeEventListener("statechange",H),I(V)};
l.addEventListener("statechange",H)})},mir=function(){var V=new _.X6t("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.e7(V,{mainAppWeb:_.RQ()});var l=_.Ppv;_.z("service_worker_forward_exp_params")&&(l=EF2(l));try{var I=_.RS1(l).catch(function(){_.k_(V,"FAILURE");return new Promise(function(){})});
_.z("service_worker_push_enabled")&&I.then(function(H){_.k_(V,"SUCCESS");return H}).then(gFr).then(ftY)}catch(H){if(_.k_(V,"FAILURE"),H.name!=="SecurityError")throw H;
}},iag=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&mir()},VME=function(V,l){var I={};
l&&(I.serializedYpcFamilyCreateLoggingParams=l);_.tF(V,I);_.rT()},lbV=function(V,l){var I={};
I.serializedYpcRefundFlowLoggingParams=l;V&&(I.eventType=V);_.tF("ypcRefundFlowEvent",I);_.rT()},IbQ=function(V){V&&_.c7W("transactionFlowSucceeded",V)},H6Q=function(V){V&&_.Jk("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",V,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},TwE=function(V){var l,I,H,T,x,n,w;
_.d(function(N){if(N.nextAddress==1)return _.K(N,_.xLK(),2);if(N.nextAddress!=3){if(!N.yieldResult)return N.return(!1);l=[];return _.K(N,_.OI.keys(),3)}I=N.yieldResult;H=_.U(I);for(T=H.next();!T.done;T=H.next())x=T.value,n=_.TLt(x),w=n.datasyncId,!w||V.includes(w)||l.push(_.OI.delete(x));return N.return(Promise.all(l).then(function(L){return L.some(function(e){return e})}))})},Bwu=function(){var V,l,I,H,T,x,n;
return _.d(function(w){if(w.nextAddress==1)return _.K(w,_.xLK(),2);if(w.nextAddress!=3){if(!w.yieldResult)return w.return(!1);V=_.KA("cache contains other");return _.K(w,_.OI.keys(),3)}l=w.yieldResult;I=_.U(l);for(H=I.next();!H.done;H=I.next())if(T=H.value,x=_.TLt(T),(n=x.datasyncId)&&n!==V)return w.return(!0);return w.return(!1)})},x7Q=function(){var V=_.F().resolve(_.Cs(_.MvW));
return V?V.getCurrentTime():0},U7V=function(){var V,l,I,H,T,x,n,w,N,L,e,k,X,r;
return _.d(function(E){switch(E.nextAddress){case 1:V={},l=_.Iow(),I=_.U(Object.entries(l)),H=I.next();case 4:if(H.done){E.jumpTo(3);break}T=H.value;x=_.U(T);n=x.next().value;w=x.next().value;N=n;L=w;if(!L){E.jumpTo(5);break}return _.K(E,L(),8);case 8:V[N]=E.yieldResult;case 5:H=I.next();E.jumpTo(4);break;case 2:e=_.U(void 0),k=e.next();case 9:if(k.done){E.jumpTo(3);break}X=k.value;r=l[X];if(!r){E.jumpTo(10);break}return _.K(E,r(),13);case 13:V[X]=E.yieldResult;case 10:k=e.next();E.jumpTo(9);break;
case 3:return E.return(V)}})},njr=function(){var V;
_.d(function(l){if(l.nextAddress==1)return _.K(l,U7V(),2);V=l.yieldResult;return _.K(l,navigator.clipboard.writeText(JSON.stringify(V,null,2)),0)})},$7E=function(V,l){return _.nW(V.entities,"superThanksSelectedTierEntity",l)},d7E=function(V){var l;
return(l=V.sharedUi)==null?void 0:l.currentPageType},wK6=function(V,l){return{popup:{searchSuggestionReportDialog:{searchQuery:V,
title:_.LT("SBOX_INAPPROPRIATE_TITLE"),suggestions:l,categoryLabel:_.LT("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.LT("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.LT("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.LT("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.LT("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.LT("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.LT("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.LT("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.LT("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.LT("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},Nw6=function(V){var l,I,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf;
return _.d(function(C){switch(C.nextAddress){case 1:return _.K(C,_.Nr(),2);case 2:return(l=C.yieldResult)?_.K(C,_.ARt(l),3):C.return();case 3:I=C.yieldResult;if(!I)return C.return();T=((H=I.offlineVideos)==null?void 0:H.length)||0;n=((x=I.offlinePlaylists)==null?void 0:x.length)||0;if(T===0&&n===0)return C.return();w=0;if(I.offlineVideos)for(N=_.U(I.offlineVideos),L=N.next();!L.done;L=N.next())e=L.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===e.videoState&&(w+=1);V.offline_videos_count=T.toString();_.z("kevlar_log_offline_current_network_type_ks")||
(V.offline_current_network_type=(k=_.HWK())!=null?k:"CONN_INVALID");_.z("kevlar_log_updated_time_for_smart_downloads")&&(X=_.v4().getState().entities,r=_.El(X),E=ItE(X),V.offline_smart_downloads_last_sync_time_ms=r.toString(),V.offline_smart_downloads_next_sync_time_ms=E.toString());V.offline_videos_playable=w.toString();V.offline_playlists_count=n.toString();if(!_.z("woffle_used_state_report")){C.jumpTo(4);break}I.offlineVideos&&(D=I.offlineVideos.reduce(function(By,lN){lN.downloadedBytes&&(By+=
Number(lN.downloadedBytes));return By},0).toString())&&(V.offline_used_disk_space_bytes=D);
if(!((Z=navigator)==null?0:(S=Z.storage)==null?0:S.estimate)){C.jumpTo(4);break}return _.K(C,navigator.storage.estimate(),6);case 6:p=C.yieldResult,V.offline_free_disk_space_bytes=(((Vf=p)==null?void 0:Vf.quota)||0).toString();case 4:V.offline_client_state=JSON.stringify(I),_.FU(C)}})},KwP=function(V){V=V.match(/(.*)::.*::.*/);
if(V!==null)return V[1]},j6E=function(V){if(_.WH3()){var l=Object.keys(window.sessionStorage);
l=_.U(l);for(var I=l.next();!I.done;I=l.next()){I=I.value;var H=KwP(I);H===void 0||V.includes(H)||self.sessionStorage.removeItem(I)}}},YBE=function(){if(!_.WH3())return!1;
var V=_.KA(),l=Object.keys(window.sessionStorage);l=_.U(l);for(var I=l.next();!I.done;I=l.next())if(I=KwP(I.value),I!==void 0&&I!==V)return!0;return!1},Y2=function(V,l,I){(_.z("desktop_keyboard_shortcut_usage_log")||I&&_.z("web_shorts_keyboard_shortcut_usage_log"))&&(l?_.io.get(V):_.mZ.get(V))&&(V=l?_.lm.get(V):_.VB.get(V))&&_.uJ(_.oa(),V)},LwY=function(V,l){l.stack&&(V.stack+="\n"+l.stack);
return V},Fwb=function(V){var l=Lp(V,"Content-Type");
if(!l)return null;l=l.toLowerCase();if(l.startsWith("application/json"))return l.startsWith("application/json+protobuf")?new eJE:new _.xY;if(l.startsWith("application/x-protobuf")){V=Lp(V,"Content-Transfer-Encoding");if(!V)return new e9;if(V.toLowerCase()=="base64")return new kbQ}return null},ojP=function(V,l,I,H){var T=new XKh(function(w,N){return zJ2.has(N)?w.sentinel==="gal"&&w.event!==void 0:!1},function(w){w.event?(w=y9Q(w.event),w=!w||tME(H,w)?!0:_.zp(V.lastEvent,k2,2,FC)?!_.zp(w,XC,1,FC)&&
!_.zp(w,k2,2,FC):!_.zp(w,XC,1,FC)&&!_.zp(w,k2,3,FC)):w=!0;
return w});
I=_.UL(V.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",r9V(I)]]));if(V.nestedOrigins!==void 0)for(var x=_.U(V.nestedOrigins),n=x.next();!n.done;n=x.next())I=_.UL(I,new Map([["origin",n.value]]));return GbI(T,I,l).then(function(w){w=EjY(w.event);if(_.zp(w,XC,1,FC)){var N,L=(N=_.bQ(w,XC,1,FC))==null?void 0:_.Qh(N,2);L&&H.JSC$16942_logErrorEvent(J92(L));N=_.bQ(w,XC,1,FC);_.Qh(N,2)===4?(w=_.bQ(w,XC,1,FC),w={statusCode:11,statusMessage:_.Rt(w,
3)}):(w=_.bQ(w,XC,1,FC),w={statusCode:12,statusMessage:_.Rt(w,3)});return w}_.zp(w,k2,3,FC)?(w=_.bQ(w,k2,3,FC),w={statusCode:1,consentLanguageKeys:_.Rt(w,2)}):w={statusCode:1};return w}).catch(function(w){return w.errorCode!==void 0?{statusCode:w.errorCode,
statusMessage:w.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},Z66=function(V){var l={};
if(V===void 0||V===null)return l;V.getToken()!==void 0&&hJQ(V.getToken())&&hJQ(V.getToken()).length>0&&(l.scopes=new Set(hJQ(V.getToken())));V.getToken()!==void 0&&PPr(V.getToken())&&PPr(V.getToken()).length>0&&(l.capabilities=new Set(PPr(V.getToken())));_.Rt(V,3)!==void 0&&(l.consistencyKey=_.Rt(V,3));V.getName()!==void 0&&V.getName()!==""&&(l.linkName=V.getName());_.Xr(V,D7E,4)&&(V=_.fA(V,D7E,4),V=Object.assign({},_.Rt(V,1)&&{userId:_.Rt(V,1)},_.Rt(V,2)&&{displayName:_.Rt(V,2)},_.Rt(V,3)&&{email:_.Rt(V,
3)},_.Rt(V,5)&&{username:_.Rt(V,5)},_.Rt(V,4)&&{profilePicture:_.Rt(V,4)}),l.profile=V);return l},SBh=function(V,l){var I=V.flowParams;
return{serviceId:I.serviceId,sessionId:I.sessionId,currentFlow:V.currentFlow,googleScopesString:l,linkingSessionSerialized:V.session.serialize(),consentLanguageKeys:I.consentLanguageKeys,callerState:V.callerState,dynamicUrlParameters:I.dynamicUrlParameters,partnerConfigMinReadTimestamp:I.partnerConfigMinReadTimestamp}},b6Y=function(V){var l=V.googleScopes!==void 0?Array.from(V.googleScopes).join(","):"";
RJu(SBh(V,l));l=Q6V(V);return l===null?Promise.resolve(c9B):l.start().then(function(I){var H,T=(H=I.link)==null?void 0:H.consistencyKey;return I.statusCode===1&&V.googleScopes!==void 0&&V.googleScopes.size>0&&T!==void 0?(H=V.flowParams,Wwr(H.serviceId,H.sessionId,V.googleScopes,T,H.galService,V.config,I)):I})},qBI=function(V){var l=Q6V(V);
return l===null?Promise.resolve(zg({statusCode:7,statusMessage:"Failed to create flow object"},V.callerState)):l.complete().then(function(I){var H,T=(H=I.link)==null?void 0:H.consistencyKey;return I.statusCode===1&&V.googleScopes!==void 0&&V.googleScopes.size>0&&T!==void 0?(H=V.flowParams,Wwr(H.serviceId,H.sessionId,V.googleScopes,T,H.galService,V.config,I)):zg(I,V.callerState)},function(I){return zg({statusCode:12,
statusMessage:"Failed to complete the flow: "+I.message},V.callerState)})},Wwr=function(V,l,I,H,T,x,n){return MMg(T,{serviceId:V,
sessionId:l,googleScopes:I,consistencyKey:H}).then(function(){return n},function(w){return T.deleteLink({serviceId:V,
sessionId:l,accountLinkingEntryPoint:x.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+w.message}},function(N){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+N.message}})})},Q6V=function(V){switch(V.currentFlow){case 1:var l=V.flowParams;
V=_.fA(V.session,s6h,1);return yB.createOAuthFlow(l,V);case 2:case 3:return l=V.flowParams,V=_.fA(V.session,pKg,6),tg.createStreamlinedFlow(l,V);default:return null}},A9V=function(V,l){V===2&&(V=3);
var I=0;rK.indexOf(V)!==-1&&(I=rK.indexOf(V)+1);for(V=I;V<rK.length;V++)if(l.has(rK[V]))return rK[V]},O6E=function(V){var l=V.serviceId;
var I=V.sessionId;var H=V.config;var T=V.galService;var x=V.capabilities;var n=V.scopes;var w=V.loginHint;var N=V.callerState;var L=V.consentLanguageKeys;var e=V.linkName;var k=V.dynamicUrlParameters;var X=V.partnerConfigMinReadTimestamp;V=H.dataUsageNoticeConfig?H.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return T.startLinkingSession({serviceId:l,sessionId:I,capabilities:x,scopes:n,loginHint:w,callerState:N,supportedFlows:uRg(H.supportedFlows),completionUrl:H.completionUrl,accountLinkingEntryPoint:H.accountLinkingEntryPoint,
consentLanguageKeys:L,dataUsageNoticeConfig:V,linkName:e,dynamicUrlParameters:k,partnerConfigMinReadTimestamp:X}).then(function(r){return new vjP(l,I,H,T,r,void 0,N,L,k,X)})},m7u=function(V,l,I){a:{var H=new CPP;
if(H.storage!==null)try{var T=H.storage.get("SAVED_SESSION");if(T===void 0){var x=null;break a}if(T.serviceId===V){x=T;break a}}catch(n){}x=null}if(x===null)return Promise.resolve({statusCode:2});abV(V);H=fbP(x.linkingSessionSerialized);return gjr(new vjP(V,x.sessionId,l,I,H,x.googleScopesString!==""&&x.googleScopesString!==void 0?new Set(x.googleScopesString.split(",")):void 0,x.callerState,x.consentLanguageKeys,x.dynamicUrlParameters,x.partnerConfigMinReadTimestamp),x.currentFlow,x.consentLanguageKeys)},
RJu=function(V){var l=new CPP;
l.storage!==null&&l.storage.set("SAVED_SESSION",V)},abV=function(V){var l=new CPP;
if(l.storage!==null){var I=l.storage.get("SAVED_SESSION");I!==void 0&&I.serviceId===V&&l.storage.remove("SAVED_SESSION")}},uRg=function(V){var l=new Set;
V=_.U(V);for(var I=V.next();!I.done;I=V.next())I=I.value,I!==1&&i6E.has(I)&&l.add(i6E.get(I));return l},zg=function(V,l){l!==void 0&&(V.callerState=l);
return V},VnE=function(V){switch(V){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},Hvr=function(){var V={timeout:5E3};
V=V===void 0?{}:V;return lLE!=null?lLE:lLE=ILE(V)},TvE=function(){return new Promise(function(V,l){window.gapi.load("client",{callback:V,
onerror:l})})},ILE=function(V){V=V===void 0?{}:V;
var l;return _.d(function(I){if(I.nextAddress==1){if((l=window.gapi)&&l.client&&l.client.load)I=I.return(l);else{var H=_.Xj("https://apis.google.com/js/api.js");I=_.K(I,_.Z4(H,V),2)}return I}if(I.nextAddress!=3){l=window.gapi;if(!l)throw Error("$j");return l.client&&l.client.load?I.jumpTo(3):_.K(I,TvE(),3)}return I.return(l)})},xZ6=function(V,l){l=l===void 0?0:l;
var I=V.auth2.getAuthInstance().currentUser.get(),H=I.getAuthResponse(!0);if(H&&H.expires_at-Date.now()<l){if(BvQ.has(V))return BvQ.get(V);l=Promise.resolve(I.reloadAuthResponse()).finally(function(){BvQ.delete(V)});
BvQ.set(V,l);return l}return Promise.resolve()},UZu=function(V,l){var I;
return V.client.init({apiKey:l.apiKey,clientId:l.clientId,scope:l.scope,discoveryDocs:l.discoveryDocs,hostedDomain:l.hostedDomain,fetchBasicProfile:(I=l.fetchBasicProfile)!=null?I:!0})},n9P=function(V){if(V.queryParams!=null){var l={},I;
for(I in V.queryParams)V.queryParams[I]!==void 0&&(l[I]=V.queryParams[I]);V.queryParams=l}},wlB=function(V){return new $ZB(V,new dZr(V))},jJY=function(V,l){l=l===void 0?!1:l;
var I=document.createElement("div");V&&(I.style.transform="scaleX(-1)");I.style.backgroundColor=l?"rgba(138,180,248,.24)":"#e8f0fe";I.style.height="4px";I.style.overflow="hidden";I.style.position="absolute";I.style.top="0";I.style.width="100%";I.style.zIndex="1500";I.setAttribute("aria-label","Loading");I.setAttribute("aria-live","polite");V=document.createElement("style");V.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  }";
I.appendChild(V);V=Nvr();V.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";V.style.left="-145.166611%";var H=KlI(l);H.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";V.appendChild(H);I.appendChild(V);V=Nvr();V.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";V.style.left="-54.888891%";l=KlI(l);l.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
V.appendChild(l);I.appendChild(V);return I},Nvr=function(){var V=document.createElement("div");
V.style.height="100%";V.style.position="absolute";V.style.transformOrigin="top left";V.style.width="100%";return V},KlI=function(V){var l=document.createElement("span");
l.style.borderTop=V?"4px solid #669df6":"4px solid #4285f4";l.style.display="inline-block";l.style.position="absolute";l.style.width="100%";return l},YJ2=function(V){return V==null?void 0:_.CYB(V).valueOf()},FlE=function(V){var l=document.body,I=!1,H=function(){I||(I=!0,Llh(T,x),setTimeout(function(){l.removeChild(x);
l.removeChild(T)},150))},T=egr(V,getComputedStyle(l).direction==="rtl",H),x=kKE(H);
Llh(T,x);l.appendChild(x);l.appendChild(T);window.requestAnimationFrame(function(){x.style.opacity="1";T.style.opacity="1";T.style.transform="translate(-50%, -50%) scale(1)";T.children[0].focus()})},egr=function(V,l,I){var H=document.createElement("div");
H.style.position="fixed";H.style.alignItems="center";H.style.backgroundColor=V?"rgb(32, 33, 36)":"white";H.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";H.style.display="flex";H.style.flexDirection="column";H.style.justifyContent="center";H.style.left="50%";H.style.top="50%";H.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";H.style.zIndex="2002";document.body.clientWidth>=660?(H.style.borderRadius="8px",H.style.minHeight="220px",
H.style.maxHeight="90%",H.style.maxWidth="90%",H.style.minWidth="540px"):(H.style.height="100%",H.style.width="100%");H.setAttribute("aria-label","Error");H.setAttribute("aria-modal","true");H.setAttribute("role","alertdialog");H.addEventListener("keydown",function(x){x.key==="Escape"&&I()});
l=XlP(V,l,I);H.appendChild(zgh(l));H.appendChild(l);var T=document.createElement("img");T.src=V?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";T.style.height="72px";T.style.width="72px";T.style.color="#9aa0a6";T.setAttribute("alt","");H.appendChild(T);T=document.createElement("h1");T.textContent="Something went wrong.  Try again.";
T.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";T.style.lineHeight="24px";T.style.fontSize="16px";T.style.textAlign="center";T.style.letterSpacing="0.1px";T.style.color=V?"rgb(232,234,237)":"#3c4043";H.appendChild(T);H.appendChild(zgh(l));return H},XlP=function(V,l,I){var H=document.createElement("button");
H.style.backgroundColor="transparent";H.style.border="none";H.style.borderRadius="50%";H.style.cursor="pointer";H.style.outline="none";H.style.padding="12px";H.setAttribute("aria-label","Close dialog");H.style.position="absolute";H.style.top="0";l?H.style.right="0":H.style.left="0";H.addEventListener("focus",function(){H.style.backgroundColor=V?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
H.addEventListener("blur",function(){H.style.backgroundColor="transparent"});
H.addEventListener("mouseenter",function(){H.style.backgroundColor=V?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
H.addEventListener("mouseleave",function(){H.style.backgroundColor="transparent"});
H.addEventListener("click",I);H.addEventListener("keydown",function(T){T.key!=="Enter"&&T.key!=="Space"||I()});
l=document.createElement("img");l.src=V?"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";l.style.display="block";l.style.height="24px";l.style.width="24px";l.setAttribute("alt","");H.appendChild(l);return H},zgh=function(V){var l=document.createElement("div");
l.setAttribute("tabindex","0");l.setAttribute("aria-hidden","true");l.addEventListener("focus",function(){return void V.focus()});
return l},kKE=function(V){var l=document.createElement("div");
l.style.backgroundColor="rgba(32,33,36,0.6)";l.style.bottom="0";l.style.left="0";l.style.position="fixed";l.style.right="0";l.style.top="0";l.style.transition=" opacity 150 ms linear";l.style.zIndex="2001";l.addEventListener("click",V);return l},Llh=function(V,l){l.style.opacity="0";
V.style.opacity="0";V.style.transform="translate(-50%, -50%) scale(0.8)"},yyE=function(V,l){V.sandbox&&V.sandbox.add&&(V.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),V.sandbox.add("allow-downloads"));
V.src=l},Gg=function(V){tng.call(this,V)},ED=function(V,l){l=l===void 0?!1:l;
this.parsedImageUrl_=null;V instanceof ryu||(GKQ==void 0&&(GKQ=new E92),V=GKQ.parse(V.toString(),l));V=this.parsedImageUrl_=V;V.JSC$17173_parsedOptions_==void 0&&((l=V.getOptions())||(l=""),V.JSC$17173_parsedOptions_=(new JyE).parse(l));tng.call(this,V.JSC$17173_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;V=this.parsedImageUrl_;l=V.uri_.JSC$7896_port_;this.JSC$17175_domain_=V.uri_.JSC$7896_domain_+(l?":"+l:"");this.JSC$17175_query_=this.parsedImageUrl_.uri_.JSC$7896_queryData_.toString()},
o96=function(V){this.mode=4;
this.data=V;this.parsedData=[];V=0;for(var l=this.data.length;V<l;V++){var I=[],H=this.data.charCodeAt(V);H>65536?(I[0]=240|(H&1835008)>>>18,I[1]=128|(H&258048)>>>12,I[2]=128|(H&4032)>>>6,I[3]=128|H&63):H>2048?(I[0]=224|(H&61440)>>>12,I[1]=128|(H&4032)>>>6,I[2]=128|H&63):H>128?(I[0]=192|(H&1984)>>>6,I[1]=128|H&63):I[0]=H;this.parsedData.push(I)}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))},hgV=function(V){this.typeNumber=0;
this.errorCorrectLevel=V===void 0?2:V;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Jg=function(V,l){if(V.length==void 0)throw Error("uk`"+V.length+"`"+l);
for(var I=0;I<V.length&&V[I]==0;)I++;this.num=Array(V.length-I+l);for(l=0;l<V.length-I;l++)this.num[l]=V[l+I]},PeB=function(V,l){this.totalCount=V;
this.dataCount=l},DZu=function(){this.buffer=[];
this.length=0},ZvE=function(){var V=!1;
if(_.j11()){V=_.zw();var l="";_.etT()?(l=/Windows (?:NT|Phone) ([0-9.]+)/,l=(V=l.exec(V))?V[1]:"0.0"):_.R1()?(l=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,l=(V=l.exec(V))&&V[1].replace(/_/g,".")):_.L3N()?(l=/Mac OS X ([0-9_.]+)/,l=(V=l.exec(V))?V[1].replace(/_/g,"."):"10"):_.XJ(_.zw(),"KaiOS")?(l=/(?:KaiOS)\/(\S+)/i,l=(V=l.exec(V))&&V[1]):_.j11()?(l=/Android\s+([^\);]+)(\)|;)/,l=(V=l.exec(V))&&V[1]):_.kwt()&&(l=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,l=(V=l.exec(V))&&V[1]);V=l||""}return V},bv6=function(V,
l){this.JSC$17198__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(l)for(var I in l)this.JSC$17198__htOption[I]=l[I];this.JSC$17198__htOption.useSVG&&(SJY=Rgb);this.JSC$17198__android=ZvE();this.JSC$17198__el=V;this._oQRCode=null;this._oDrawing=new SJY(this.JSC$17198__el,this.JSC$17198__htOption);this.JSC$17198__htOption.text&&(V=this.JSC$17198__htOption.text,this._oQRCode=new hgV(this.JSC$17198__htOption.correctLevel),QJP(this._oQRCode,V),l=this._oQRCode,cyY(l,!1,WlQ(l)),this.JSC$17198__el.title=
V,this._oDrawing.draw(this._oQRCode),this.makeImage())},qJh=function(V,l,I,H,T){V.save();
var x=new Path2D;x.roundRect(l,I,H*7,H*7,H*2);x.roundRect(l+H,I+H,H*5,H*5,H*1.3);x.roundRect(l+2*H,I+2*H,H*3,H*3,H);V.clip(x,"evenodd");V.fillStyle=T;V.fillRect(0,0,V.canvas.width,V.canvas.height);V.restore()},oF=function(V,l){if(typeof V!=="function")throw Error("xk");
return _.nK.setTimeout(function(){V()},l)},hg=function(){},sJE=function(V,l,I,H,T){(new hg).debug("TestLoadImageWithRetries: "+T);
if(H==0)I(!1);else{var x=T||0;H--;MnE(V,l,function(n){n?I(!0):_.nK.setTimeout(function(){sJE(V,l,I,H,x)},x)})}},MnE=function(V,l,I){var H=new hg;
H.debug("TestLoadImage: loading "+V);var T=new Image;T.onload=function(){try{H.debug("TestLoadImage: loaded"),plE(T),I(!0)}catch(x){}};
T.onerror=function(){try{H.debug("TestLoadImage: error"),plE(T),I(!1)}catch(x){}};
T.onabort=function(){try{H.debug("TestLoadImage: abort"),plE(T),I(!1)}catch(x){}};
T.ontimeout=function(){try{H.debug("TestLoadImage: timeout"),plE(T),I(!1)}catch(x){}};
_.nK.setTimeout(function(){if(T.ontimeout)T.ontimeout()},l);
T.src=V},plE=function(V){V.onload=null;
V.onerror=null;V.onabort=null;V.ontimeout=null},AyY=function(){this.front_=[];
this.back_=[]},uxu=function(V,l){_.XG.call(this);
this.delay_=new _.yo(this.JSC$17324_onTick_,0,this);_.$w(this,this.delay_);this.JSC$17322_interval_=5E3;this.nextTickTime_=0;if(typeof V==="function")l&&(V=(0,_.zN)(V,l));else if(V&&typeof V.handleEvent==="function")V=(0,_.zN)(V.handleEvent,V);else throw Error("Ca");this.JSC$17324_listener_=V},Pp=function(V,l,I,H,T,x,n,w,N,L,e,k,X,r){I=I===void 0?!1:I;
H=H===void 0?function(){return""}:H;
T=T===void 0?!1:T;x=x===void 0?!1:x;n=n===void 0?!1:n;w=w===void 0?function(){return _.w6({})}:w;
N=N===void 0?!1:N;e=e===void 0?!1:e;k=k===void 0?!1:k;X=X===void 0?!1:X;r=r===void 0?!1:r;this.JSC$17325_pathPrefix_=V;this.defaultQueryParams_=l;this.pubsub_=new _.nA;this.reconnectTimer_=new uxu(this.safeReconnect_,this);this.JSC$17325_channel_=null;this.JSC$17325_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17325_pendingMessages_=[];this.enableAsyncTest_=I;this.JSC$17325_getXsrfToken_=H;this.useAsyncBrowserChannelHandler_=x;this.getAuthorizationHeader_=
w;this.getAuthorizationHeaderSync_=L;this.enableCachedUpdateAuthorizationHeader_=n;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.w6();this.enableLoungeTokenRefresh_=T;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=N;this.disableMdxAuthForNonPlaybackMessages_=e;this.disableMdxAuthForAdMessages_=k;this.enableMdxAuthForConnectionOnly_=X;this.disableMdxAuthForShortsMessages_=r;this.JSC$17325_channelOpenedCounter=new v9h;this.JSC$17325_channelClosedCounter=new Ov6;this.channelMessageSentCounter=
new Ceb;this.JSC$17325_channelMessageReceivedCounter=new aLV;this.JSC$17325_channelErrorCounter=new fLB;this.pendingMapsOnClosedCounter=new g9I;this.undeliveredMapsOnClosedCounter=new mZ2},DP=function(V){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;V=V||document.location.href;var l=Number(_.so(V)[4]||null)||"";l&&(this.port=":"+l);this.domain=_.ps(V)||"";V=_.zw();V.search("MSIE")>=0&&IF(V.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},ZP=function(V){V=V||{};
this.name=V.name||"";this.id=V.id||V.screenId||"";this.token=V.token||V.loungeToken||"";this.uuid=V.uuid||V.dialId||"";this.idType=V.screenIdType||"normal"},ivr=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(V){var l=Math.random()*16|0;
return(V=="x"?l:l&3|8).toString(16)})},V7V=function(V){return _.JH(V,function(l){return{key:l.id,
name:l.name}})},lkh=function(V,l){return _.cy(V,function(I){return I||l?!I!=!l?!1:I.id==l.id:!0})},RF=function(V,l){return _.cy(V,function(I){return S9(I,l)})},xY2=function(){var V=Ikh(),l=Hlu();
if(TEh()){var I=V,H=_.J1y(I,l);H<0&&_.r1W(I,-(H+1),0,l)}V=BE2(V);if(V.length==0)try{_.iTN("remote_sid")}catch(T){}else try{_.wm("remote_sid",V.join(","),-1)}catch(T){}},Ikh=function(){var V=_.N9("yt-remote-connected-devices")||[];
V.sort(_.ETf);return V},BE2=function(V){if(V.length==0)return[];
var l=V[0].indexOf("#"),I=l==-1?V[0]:V[0].substring(0,l);return _.JH(V,function(H,T){return T==0?H:H.substring(I.length)})},UYE=function(V){_.wd("yt-remote-connected-devices",V,86400)},Hlu=function(){if(n_6)return n_6;
var V=_.N9("yt-remote-device-id");V||(V=ivr(),_.wd("yt-remote-device-id",V,31536E3));for(var l=Ikh(),I=1,H=V;_.Mq(l,H);)I++,H=V+"#"+I;return n_6=H},$Y6=function(){return _.N9("yt-remote-session-browser-channel")},TEh=function(){return _.N9("yt-remote-session-screen-id")},NEg=function(V){V.length>5&&(V=V.slice(V.length-5));
var l=_.JH(dYB(),function(H){return H.loungeToken}),I=_.JH(V,function(H){return H.loungeToken});
_.Bcg(I,function(H){return!_.Mq(l,H)})&&wAE();
_.wd("yt-remote-local-screens",V,31536E3)},dYB=function(){return _.N9("yt-remote-local-screens")||[]},wAE=function(){_.wd("yt-remote-lounge-token-expiration",!0,86400)},QB=function(V){V||(_.Kb("yt-remote-session-screen-id"),_.Kb("yt-remote-session-video-id"));
xY2();V=Ikh();_.A1(V,Hlu());UYE(V)},jKr=function(){KSr();
return cp?!!cp.get("yt-remote-use-staging-server"):!1},KSr=function(){if(!cp){var V=_.nfN();
V&&(cp=new _.LA(V))}},kaI=function(V,l,I,H,T){I=I===void 0?function(){return""}:I;
var x=function(){return new Pp(Wp(V,"/bc"),l,!1,I,H)};
return _.z("enable_mdx_web_channel_desktop")?new YHE(function(){return new LSr(Wp(V,"/wc"),l,I)}):new ejP(x,T)},yiQ=function(){var V=FSh;
XAB();bm.push(V);zjr()},qd=function(V,l){XAB();
var I=t7V(V,String(l));bm.length==0?ri2(I):(zjr(),_.cO(bm,function(H){H(I)}))},Md=function(V){qd("CP",V)},XAB=function(){bm||(bm=_.SN("yt.mdx.remote.debug.handlers_")||[],_.Aq("yt.mdx.remote.debug.handlers_",bm))},ri2=function(V){var l=(sD+1)%50;
sD=l;Gab[l]=V;E_b||(E_b=l==49)},zjr=function(){var V=bm;
if(Gab[0]){var l=E_b?sD:-1,I={};do I={record$jscomp$13:void 0},l=(l+1)%50,I.record$jscomp$13=Gab[l],_.cO(V,function(H){return function(T){T(H.record$jscomp$13)}}(I));
while(l!=sD);Gab=Array(50);sD=-1;E_b=!1}},t7V=function(V,l){var I=(Date.now()-JiY)/1E3;
I.toFixed&&(I=I.toFixed(3));var H=[];H.push("[",I+"s","] ");H.push("[","yt.mdx.remote","] ");H.push(V+": "+l,"\n");return H.join("")},pp=function(V){_.gi.call(this);
this.JSC$17349_logName_=V;this.screens=[]},um=function(V){pp.call(this,"LocalScreenService");
this.JSC$17356_http_=V;this.loungeTokenRefreshTimer_=NaN;Ag(this);this.info("Initializing with "+o_E(this.screens))},vp=function(V,l){l=l===void 0?!1:l;
pp.call(this,"ScreenService");this.JSC$17362_http_=V;this.disableAutomaticScreenCache_=l;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};hjQ(this)},OD=function(V,l,I){_.gi.call(this);
this.JSC$17366_logName_=I;this.JSC$17366_screenService_=V;this.receiver_=l;this.screen_=null},uzE=function(V,l,I){I.disableCastApi?Cp("Cannot initialize because disabled by Mdx config."):PR2()?DYg(V,I)&&(ZlI(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?SHE(l):(window.__onGCastApiAvailable=function(H,T){H?SHE(l):(aF("Failed to load cast API: "+T),Rjb(!1),ZlI(!1),_.Kb("yt-remote-cast-available"),_.Kb("yt-remote-cast-receiver"),QKE(),l(!1))},I.loadCastApiSetupScript?_.Ra("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?cib()>=60&&WSu():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?blY():cib()>=89?qHr():(M7Q(),sKI(pAQ.map(Aig))))):Cp("Cannot initialize because not running Chrome")},QKE=function(){Cp("dispose");
var V=fp();V&&V.dispose();_.Aq("yt.mdx.remote.cloudview.instance_",null);v_r(!1);_.Mz1(OlB);OlB.length=0},CRI=function(){return!!_.N9("yt-remote-cast-installed")},akg=function(){var V=_.N9("yt-remote-cast-receiver");
return V?V.friendlyName:null},fkP=function(){Cp("clearCurrentReceiver");
_.Kb("yt-remote-cast-receiver")},g_E=function(){return CRI()?fp()?fp().getCastSession():(aF("getCastSelector: Cast is not initialized."),null):(aF("getCastSelector: Cast API is not installed!"),null)},ilI=function(V,l){mYP()?fp().setConnectedScreenStatus(V,l):aF("setConnectedScreenStatus called before ready.")},PR2=function(){var V=_.zw().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.Lj||V},DYg=function(V,l){var I=!1;
fp()||(V=new gK(V,l),V.subscribe("yt-remote-cast2-availability-change",function(H){_.wd("yt-remote-cast-available",H);Tg("yt-remote-cast2-availability-change",H)}),V.subscribe("yt-remote-cast2-receiver-selected",function(H){Cp("onReceiverSelected: "+H.friendlyName);
_.wd("yt-remote-cast-receiver",H);Tg("yt-remote-cast2-receiver-selected",H)}),V.subscribe("yt-remote-cast2-receiver-resumed",function(H){Cp("onReceiverResumed: "+H.friendlyName);
_.wd("yt-remote-cast-receiver",H);Tg("yt-remote-cast2-receiver-resumed",H)}),V.subscribe("yt-remote-cast2-session-change",function(H){Cp("onSessionChange: "+VaE(H));
H||_.Kb("yt-remote-cast-receiver");Tg("yt-remote-cast2-session-change",H)}),_.Aq("yt.mdx.remote.cloudview.instance_",V),I=!0);
Cp("cloudview.createSingleton_: "+I);return I},fp=function(){return _.SN("yt.mdx.remote.cloudview.instance_")},SHE=function(V){Rjb(!0);
ZlI(!1);fp().init(!1,function(l){l?(v_r(!0),_.sNy("yt-remote-cast2-api-ready")):(aF("Failed to initialize cast API."),Rjb(!1),_.Kb("yt-remote-cast-available"),_.Kb("yt-remote-cast-receiver"),QKE());V(l)})},Cp=function(V){qd("cloudview",V)},aF=function(V){qd("cloudview",V)},Rjb=function(V){Cp("setCastInstalled_ "+V);
_.wd("yt-remote-cast-installed",V)},mYP=function(){return!!_.SN("yt.mdx.remote.cloudview.apiReady_")},v_r=function(V){Cp("setApiReady_ "+V);
_.Aq("yt.mdx.remote.cloudview.apiReady_",V)},ZlI=function(V){_.Aq("yt.mdx.remote.cloudview.initializing_",V)},me=function(V){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(V)},lVP=function(){var V,l;
return _.d(function(I){if(I.nextAddress==1)return(_.roW()||_.z("use_new_nwl"))&&_.XXJ().isNetworkAvailable()?_.K(I,_.u2(),2):I.return();if(I.nextAddress!=3)return(V=I.yieldResult)?_.K(I,MzI(V),3):I.return();l=I.yieldResult;if(!l.length)return I.return();l.forEach(function(H){var T={timestamp:H.timestamp};H=H.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:H.appShellAssetLoadReport,options:T}:H.clientError?{payloadName:"clientError",payload:H.clientError,options:T}:void 0;H&&
_.tF(H.payloadName,H.payload,H.options)});
l.length===100&&_.r0.addLowPriorityJob(lVP);_.FU(I)})},IVP=function(V){if(V.playerResponse){if(V=V.playerResponse,V.messages&&V.messages.length>0&&(V=V.messages.find(function(l){return!(!l||!l.mealbarPromoRenderer)}))&&V.mealbarPromoRenderer)return V.mealbarPromoRenderer}else if(V.response&&(V=V.response)&&V.overlay&&V.overlay.mealbarPromoRenderer)return V.overlay.mealbarPromoRenderer},HjI=function(V){if(V.response){var l=V.response;
if(l&&l.overlay&&l.overlay.tooltipRenderer)return l.overlay.tooltipRenderer}if(V.playerResponse&&(V=V.playerResponse,V.messages&&V.messages.length>0&&(V=V.messages.find(function(I){return!(!I||!I.tooltipRenderer)}))&&V.tooltipRenderer))return V.tooltipRenderer},Blr=function(V){if(!TlI&&(V=V||_.h6("ZWIEBACK_PING_URLS"))&&V.length){TlI=!0;
for(var l=0;l<V.length;l++)_.RS(V[l])}},UU2=function(V){if(_.EL.get(_.h6("PLAYER_VARS",{}),"privembed",!1)!="1"){V&&DRY();
try{xU6().then(function(){},function(){}),_.Iv(UU2,18E5)}catch(l){_.Dp(l)}}},nvh=function(){var V=_.Fu(),l=V.getFlag(119),I=window.devicePixelRatio>1;
document.body&&_.Am(document.body,"exp-invert-logo")&&(I&&!_.Am(document.body,"inverted-hdpi")?_.WX(document.body,"inverted-hdpi"):!I&&_.Am(document.body,"inverted-hdpi")&&_.QI(document.body,"inverted-hdpi"));l!=I&&(_.Xu(0,119,I),V.save())},$UB=function(V){return V.filter(function(l){return"ypcGetCartEndpoint"in l||"ypcFixInstrumentEndpoint"in l})},dUg=function(V){return V.filter(function(l){return!_.y(l,_.E6B)})},NlE=function(V){V=_.U(V);
for(var l=V.next(),I={};!l.done;I={setter$jscomp$7:void 0},l=V.next()){var H=l.value;l=H.params;H=H.service;l&&H&&(I.setter$jscomp$7=wnh[H],I.setter$jscomp$7&&l.forEach(function(T){return function(x){var n=x.key;x=x.value;n&&x&&(0,T.setter$jscomp$7)(n,x)}}(I)))}},jtE=function(V,l){var I,H,T,x,n,w,N;
_.d(function(L){switch(L.nextAddress){case 1:I=_.SD.getInstance();H=_.li.instance;T=_.Zt.instance;if(!T)return KMP(V,H,l),L.return();_.jd(L,2);V.onLoadingCommand&&H.resolveCommand(V.onLoadingCommand);return _.K(L,I.getCurrentPositionFromGeolocation(),4);case 4:x=L.yieldResult;if(!V.resolveLocationCommand){L.jumpTo(5);break}n=I.createLocationInfo(x);return _.K(L,_.R2(T,V.resolveLocationCommand,{locationInfo:n}),6);case 6:w=L.yieldResult;if(!w||"error"in w&&w.error||w.errorMetadata)return KMP(V,H,l),
L.return();var e;if(w==null?0:(e=w.onResponseReceivedActions)==null?0:e.length){e=_.U(w.onResponseReceivedActions);for(var k=e.next();!k.done;k=e.next())H.resolveCommand(k.value)}(_.y(V.onSuccessCommand,_.vU)||_.y(V.onSuccessCommand,_.$V))&&_.B$(l.hostElement,"yt-navigate",{endpoint:V.onSuccessCommand,reload:!0});case 5:_.Rv(L,0);break;case 2:N=_.kE(L);if(N instanceof GeolocationPositionError&&N.code===GeolocationPositionError.PERMISSION_DENIED)return V.onDeniedCommand&&H.resolveCommand(V.onDeniedCommand),
L.return();KMP(V,H,l);_.FU(L)}})},KMP=function(V,l,I){V.onFailureCommand&&(l.resolveCommand(V.onFailureCommand),_.xB(I.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},LMP=function(V,l){var I=_.y(V,_.U_Z);
if(I&&l){V=I.videoIds||[I.videoId];var H;l=(H=_.B$(l,"yt-lockup-requested",{videoIds:V}).detail)==null?void 0:H.returnValue;var T;I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?T=l?l:V.map(function(x){return{videoId:x,navigationEndpoint:I.videoCommand}}):l&&(T=l);
T&&(H=T.map(function(x){var n=Object,w=n.assign;var N=x.navigationEndpoint;if(!_.y(N,_.YV)){var L=_.y(N,_.vU);if(L){if(delete L.index,delete L.playlistId,L=_.y(N==null?void 0:N.commandMetadata,_.mK),L==null?0:L.url){var e=L.url;e=_.gS(e,"list");e=_.gS(e,"index");L.url=e}}else N=void 0}return w.call(n,{},x,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:N})}),YkV(H,I))}},efI=function(V){var l=_.sg();
if(V=_.y(V,_.nNJ))V.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&l.clearQueue(),V.closeMiniplayer&&_.F().resolve(_.sH).close(!0)},FMP=function(V){kpE(_.sg(),V)},Xnu=function(V){var l;
(V=(l=_.y(V,_.BYN))==null?void 0:l.setVideoIds)&&V.forEach(function(I){_.cDN(_.sg(),I)})},y3g=function(V){zfI(_.sg(),V)},tau=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(V){return!1}},r3Y=function(V,l,I){return{horizontalAlignment:V.x+I.width/2<l.width/2?"west":"east",
verticalAlignment:V.y+I.height/2<l.height/2?"north":"south"}},J3I=function(V,l,I,H,T){T=T===void 0?new _.og(0,0):T;
return Gp2(Evu(V,l,I,H),T)},Evu=function(V,l,I,H){return new _.og(V==="west"?16:I.width-H.width-16,l==="north"?16:I.height-H.height-16)},ovQ=function(V,l){var I=0;
V&&(I+=76);l&&(I+=285);return I},hfu=function(V){var l=["h",
"m","s"],I=_.uN(l);I.reverse();var H={};V=(V.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(n){var w=(n.match(/[hms]/)||[""])[0];return w?(H[w]=parseInt(n.match(/\d+/)[0],10),!1):!0});
for(V.reverse();V.length&&I.length;){var T=I.shift();T in H||(H[T]=parseInt(V.shift(),10))}if(V.length||H.s>59||H.m>59||H.h>9)return null;var x="";l.forEach(function(n){H[n]&&(x+=""+H[n]+n)});
return x||null},PQg=function(V){V=V.data;
return _.Y("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.Y("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.Y(_.cX,{data:{thumbnails:[{url:V.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.Y("div",{class:"profile-badge-view-model-wiz__content"},_.Y("div",{class:"profile-badge-view-model-wiz__badge-description"},V.badgeDesc),V.badgeSubtitle?_.Y("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},V.badgeSubtitle):null))},DUI=function(V){V=
V.data;
var l=_.sZ();_.p6(l,V.rendererContext);return _.Y("yt-comment-interaction-view-model",{el:l,class:"yt-comment-interaction-view-model-wiz"},_.Y("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":V.onTapA11yLabel,"on:keydown":_.Q1(),tabindex:0},_.Y("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.Y("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},V.headerPrefix,' "',V.videoTitle),_.Y("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.Y("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.Y("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},V.commentContent),_.Y("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.Y(_.cX,{data:{thumbnails:[{url:V.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},SkQ=function(V){V=V.data;
return _.Y("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},ZjE(V.avatar),_.Y("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},V.channelName))},Qt2=function(V){V=V.data;
var l;return _.Y("div",{class:"yt-profile-info-view-model-wiz__activity"},_.Y("div",{class:"yt-profile-info-view-model-wiz__header"},_.Y("div",{class:"yt-profile-info-view-model-wiz__section-title"},V.commentsInteractionTitle)),(l=V.comments)==null?void 0:l.map(function(I){return _.Y("div",{class:"yt-profile-info-view-model-wiz__activity"},Rfu(I))}))},c3E=function(V){V=V.data;
var l=_.GG({elementsCommand:V.subscriptionsAccessButtonCommand}),I=_.sZ();_.xjf(I,_.to(V.subscriptionsAccessButtonCommand));var H=_.Bu(function(x){if(l==null?0:l.onclick)l.onclick(x);return!1}),T;
return _.Y("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.Y("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.Y("a",{el:I,"on:click":H,class:"yt-profile-info-view-model-wiz__another-header"},_.Y("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},V.sharedSubscriptionsTitle),_.Y("div",null,Rfu(V.subscriptionsAccessButton)))),_.Y("div",{class:"yt-profile-info-view-model-wiz__subs"},(T=V.sharedSubscriptions)==null?void 0:T.slice(0,5).map(function(x){return _.Y("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",Rfu(x))})))},WMY=function(V){V=V.data;
var l;return _.Y("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.Y("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.Y("h2",{class:"yt-profile-info-view-model-wiz__section-title"},V.sharedSubscriptionsTitle)),_.Y("div",{class:"yt-profile-info-view-model-wiz__subs"},(l=V.sharedSubscriptions)==null?void 0:l.slice(0,5).map(function(I){return _.Y("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",Rfu(I))})))},bjg=function(V){V=V.data;
return _.Y("div",{class:"yt-profile-info-view-model-wiz__activity"},[V.profileBadgeInfoYtWide,V.profileBadgeInfoChannelWide].map(function(l){var I,H,T,x,n;return l?_.Y(_.CN,null,_.Y("div",{class:"yt-profile-info-view-model-wiz__header"},_.Y("div",{class:"yt-profile-info-view-model-wiz__section-title"},l==null?void 0:l.profileSectionTitle),_.Y("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.Y("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},l==null?void 0:(I=l.commentBadge)==
null?void 0:I.commentDesc),(l==null?0:(H=l.commentBadge)==null?0:H.blackHeartDesc)?_.Y("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.Y("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.Y(_.cX,{data:{thumbnails:[{url:l==null?void 0:(T=l.commentBadge)==null?void 0:T.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.Y("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},l==null?void 0:(x=
l.commentBadge)==null?void 0:x.blackHeartDesc))),_.Y("div",{class:"yt-profile-info-view-model-wiz__badge"},l==null?void 0:(n=l.badges)==null?void 0:n.map(function(w){return _.Y(PQg,{data:w})}))):null}))},qkg=function(V){V=V.data;
return _.Y("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.Y(bjg,{data:V}),V.comments?_.Y(Qt2,{data:V}):null,V.sharedSubscriptionsTitle?V.subscriptionsAccessButtonCommand?_.Y(c3E,{data:V}):_.Y(WMY,{data:V}):null)},stE=function(V){var l=V.data;
V=l?MaP(l.profileIdentityInfo):void 0;l=l?MaP(l.profileInfo):void 0;return _.Y("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},V,l)},pnE=function(V,l){var I=_.Mui(l,{},V,!0);
return new Promise(function(H,T){I.listenOnce("n",function(){T(Error("hl`"+I.JSC$25590_getErrorDescription()))});
I.listenOnce("l",function(){var x=I.getResponseCode();if(x!==200)T(Error("il`"+l+"`"+V.type+"`"+V.size+"`"+x));else try{H(JSON.parse(I.getResponseText()).encryptedBlobId)}catch(n){T(n)}});
I.run()})},A36=function(V){return V.substring(V.indexOf(":")+1,V.indexOf(";"))},ur6=function(V){return new Promise(function(l,I){var H=new FileReader;
H.onloadend=function(){try{var T=new Uint8Array(H.result);T.length<8&&I(void 0);var x=T.subarray(0,8);T="";for(var n=0;n<x.length;n++)T+=("0"+x[n].toString(16)).substr(-2);T.startsWith("ffd8ff")?l("image/jpeg"):T.startsWith("47494638")?l("image/gif"):T.startsWith("89504e470d0a1a0a")?l("image/png"):T.startsWith("424d")?l("image/bmp"):l(void 0)}catch(w){I(w)}};
H.onerror=I;H.readAsArrayBuffer(V)})},vvI=function(V){return new Promise(function(l,I){var H=new Image;
H.crossOrigin="anonymous";H.onload=function(){var T=document.createElement("canvas");T.width=H.naturalWidth;T.height=H.naturalHeight;var x=T.getContext("2d");if(!x)throw Error("jl");x.drawImage(H,0,0);x=A36(V);T.toBlob(function(n){n?l(n):I()},x)};
H.src=V})},CQu=function(V,l){var I;
if(((I=_.y(V,_.YV))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var H;_.B$((H=l.hostElement)!=null?H:l,"yt-shorts-reset");_.ZPa(_.F().resolve(_.T4),V).then(function(x){OjI(x,l,V)})}else{var T;
_.$B((T=l.hostElement)!=null?T:l,[V]).then(function(x){x&&OjI(x.data,l,V)})}},OjI=function(V,l,I){if(V){var H=_.y(V.replacementEndpoint,_.YV);
if(H){V.sequenceContinuation&&(H.sequenceParams=V.sequenceContinuation);var T;_.B$((T=l.hostElement)!=null?T:l,"yt-navigate",{endpoint:V.replacementEndpoint})}else if((V==null?void 0:V.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(V==null?0:V.watchStatus)&&_.y(V.watchStatus,_.MJN)){var x;_.B$((x=l.hostElement)!=null?x:l,"yt-navigate",{endpoint:I})}}},aVB=function(){var V=_.F().resolve(_.oU),l=d7E(V.getState())||"";
V=_.KXy(V.getState())||"";return{disableCache:l==="ytd-browse"&&V==="home"}},fVB=function(V){if(!V)return!1;
try{if(V.host&&V.host.tagName==="YT-FORMATTED-STRING"&&V.host.id==="contenteditable-textarea"||V.nodeType===Node.ELEMENT_NODE&&V.tagName==="YTD-COMMENT-INPUT")return!0}catch(l){return!1}return fVB(V.parentNode)},im=function(V){return V?V.tagName==="A"&&V.href&&V.classList.contains("yt-simple-endpoint"):!1},gvP=function(V){return V?V.tagName==="IMG"&&V.classList.contains("emoji"):!1},mUP=function(V,l,I){if(!V)return null;
var H=im(V);if(H&&I)return l=V.pathname.substring(V.pathname.indexOf("/channel/")+9),document.createTextNode("@"+l);if(H&&!I)return document.createTextNode("");if(gvP(V))return I=V.alt,V=V.dataset.emojiId,!V&&l&&(l=_.Fx(l,I))&&l.isCustomEmoji&&(V=l.emojiId),V?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+V+">"):document.createTextNode(I);H=V.cloneNode(!1);for(var T=0;T<V.childNodes.length;++T){var x=mUP(V.childNodes[T],l,I);x&&H.appendChild(x)}return H},Vv=function(V){return V?im(V)?V:Vv(V.lastChild):
null},iju=function(V){return V?im(V)?V:iju(V.firstChild):null},Vu2=function(V){if(!V)return null;
for(var l=V.previousSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.previousSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.previousSibling;else break;(l=Vv(l))?V=l:V=(V=V.parentNode)?Vv(V.previousElementSibling):null;return V},lNE=function(V){if(!V)return null;
for(var l=V.nextSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.nextSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.nextSibling;else break;return(l=iju(l))?l:lNE(V.parentNode)},INV=function(V){var l=_.zK(),I=l.JSC$9102_getStartNode();
if(!fVB(I.parentNode))return null;l=l.JSC$9102_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var H=_.Rg(I,im);if(H){if(V&&l===0||!V&&l===I.length)return H}else{if(V&&l===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.yO(I.nextElementSibling,"display")==="block"?null:iju(I.nextElementSibling);if(!V&&l===0)return I?Vv(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(V){if(0<=l&&l<I.childNodes.length)return iju(I.childNodes[l])}else if(0<l&&l<=I.childNodes.length)return Vv(I.childNodes[l-
1]);return null},Hu2=function(V,l,I){if(!V)return null;
if(V.nodeType===Node.TEXT_NODE)if(I){var H=Vu2(V);if(H&&!/^\s+\S/.test(V.wholeText.substr(0,l)))return H}else if((H=lNE(V))&&!/\S\s+/.test(V.wholeText.substr(l,V.wholeText.length)))return H;return V.nodeType===Node.ELEMENT_NODE?I?Vu2(V.childNodes[l]):lNE(V.childNodes[l]):Hu2(V.parentNode,l,I)},TUb=function(V){if(V.hasChildNodes())switch(V.tagName){case "DIV":case "A":case "SPAN":var l="";
for(V=V.firstChild;V;V=V.nextSibling)l+=TUb(V);return l;default:return""}else switch(V.nodeType){case 3:return V.textContent;default:return""}},BUg=function(V){V=V.data;
return _.Y("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.Y("div",null,_.Y(_.Ni,{text:V.title})),V.subtitle?_.Y("div",{class:"ytd-menu-title-renderer__subtitle"},_.Y(_.Ni,{text:V.subtitle})):null)},xaI=function(V){switch(V){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"}},UaE=function(V){return V.map(function(l){return{settingsRadioOptionRenderer:{title:_.lB(l.name),
asideText:_.lB(l.approximateSize),id:xaI(l.format)}}})},$ag=function(V){if(V&&V.length!==0)return V.filter(nD6()).map(function(l){return{settingsRadioOptionRenderer:{title:l.name,
asideText:l.approximateSize,id:xaI(l.formatType)}}})},daQ=function(V){if(V)return V.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},wih=function(V){var l=V.indexOf("(");
return l!==-1?V.substring(l+1,V.length-1):V},NUb=function(V){switch(V){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},jkE=function(V,l,I,H,T,x){var n=_.EL.clone(KJE);
n.locale=_.h6("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;n.report={description:T||"<empty>"};T=_.h6("SBOX_SETTINGS",{});l=l.join(",");var w=Date.now();V={choice_cc:H,choice_id_cc:I,choices_sc:l,gl:T.REQUEST_DOMAIN,hl:T.REQUEST_LANGUAGE,query:V,time:w};x&&(V.choice_additional_comment_cc=x);_.Oub(n,V)},YYg=function(V){var l=new Map;
l.set("authuser",_.h6("SESSION_INDEX","0"));return _.UL(V,l)},eKB=function(V){var l;
return _.d(function(I){switch(I.nextAddress){case 1:if(!V||!LJB(V))return I.return(null);l=null;switch(_.h6("INNERTUBE_CLIENT_NAME")){case "WEB":return I.jumpTo(2);case "WEB_REMIX":l=V.getPlayer()}I.jumpTo(3);break;case 2:return _.K(I,V.getPlayerPromise(),4);case 4:l=I.yieldResult;I.jumpTo(3);break;case 3:return I.return(l)}})},LJB=function(V){return["ytd-player",
"ytmusic-player"].includes(String(V.tagName||"").toLowerCase())},keE=function(V){V=Math.round(V);
return V%2?V-1:V},FJP=function(V){V=Math.round(V);
return V%2===0?V-1:V},XiI=function(V){var l,I,H;
if(V=(l=V.createPlaylistDialogFormSchema)==null?void 0:(I=l.fieldSchemas)==null?void 0:(H=I.title)==null?void 0:H.validationSchema)for(l=[V.syncStep,V.asyncStep].filter(function(T){return T!==void 0}),l=_.U(l),I=l.next();!I.done;I=l.next()){I=I.value.rules;
if(!I)break;I=_.U(I);for(I=I.next();!I.done;I=I.next())return _.y(I.value,_.mz2)}},yP6=function(V){var l,I,H;
if(V=(l=V.createPlaylistDialogFormSchema)==null?void 0:(I=l.fieldSchemas)==null?void 0:(H=I.visibility)==null?void 0:H.validationSchema)for(l=[V.syncStep,V.asyncStep].filter(function(T){return T!==void 0}),l=_.U(l),I=l.next();!I.done;I=l.next()){I=I.value.rules;
if(!I)break;I=_.U(I);for(H=I.next();!H.done;H=I.next())if(H=_.y(H.value,zK2))return l=void 0,(l=H.translations)==null?void 0:l.visibilityNotValidErrorMessage}},tur=function(){var V,l;
return(l=(V=_.F().resolve(_.Cs(_.DA)))==null?void 0:V())!=null?l:!1},rPE=function(V,l){a:switch(l){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":l="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:l="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:V,style:l,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Geh=function(V){_.xB(V,"yt-refit-popups-action")},JPB=function(V){var l=V.data;
var I=V.disablePadding;var H=V.className;var T=_.sZ(),x=rPE(l.banner,l.assetContainerPaddingStyle),n=rPE(l.imageBanner,l.assetContainerPaddingStyle),w=l.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",N=l.assetContainerMaxHeight;_.XW(function(){var L;(L=T.value)==null||L.addEventListener("image-loaded",function(){Geh(T.value)})});
_.rx(function(){var L;(L=T.value)==null||L.removeEventListener("image-loaded",function(){Geh(T.value)})});
V={};return _.Y("yt-dialog-header-view-model",{el:T,class:_.l8(H,(V.ytDialogHeaderViewModelHost=!0,V.ytDialogHeaderViewModelHostDisablePadding=!!I,V))},_.uO(l.banner,function(){var L={};return _.Y("div",{class:_.l8(H,(L.ytDialogHeaderViewModelBanner=!0,L.ytDialogHeaderViewModelBannerFullBleed=!!w,L)),style:"max-height: "+(N?N+"px":"")},_.Y(_.wn,{data:x,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.uO(l.imageBanner,function(){var L={};
return _.Y("div",{class:_.l8(H,(L.ytDialogHeaderViewModelBanner=!0,L.ytDialogHeaderViewModelBannerFullBleed=!!w,L)),style:_.na({"max-height":function(){return N!==void 0?N+"px":void 0}})},_.Y(_.wn,{data:n,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.uO(l.customAssetContainer,function(){return _.Y("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},ED6(l.customAssetContainer))}),_.uO(l.customBanner,function(){return _.Y("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},ED6(l.customBanner))}),_.uO(l.headline,function(){return _.Y("h2",null,_.Y(_.Ni,{text:l.headline,
className:"ytDialogHeaderViewModelText"}))}))},oD2=function(V){var l=21;
if(!V)return l;l+=V.headerTitle?27:0;l+=V.headerTitle&&V.hasHeaderActionHeader?4:0;return l+=V.headerTitle&&V.headerSubtitle?16:0},hKg=function(V){var l=0;
if(!V)return l;l+=V.hasFooterPrimaryButton||V.hasFooterSecondaryButton?48:0;l+=V.footerTrailingLabel||V.footerLeadingLabel?30:0;return l+=V.hasFooterPrimaryButton||V.hasFooterSecondaryButton||!V.footerTrailingLabel&&!V.footerLeadingLabel?0:12},P_I=function(V){var l=new _.nA,I=V;
return{subscribe:function(H){l.subscribe("changed",H)},
dispatch:function(H,T){var x=I;H==="Touch Start"?I=Object.assign({},x,{isAnimating:!1,initialY:T.event.touches[0].clientY}):H==="Touch Move"?(H=Math.min(T.fullContentWrapperHeight,T.contentHeightMap[T.contentWrapperId]+oD2(T.header)-hKg(T.footer)),I=Object.assign({},x,{currentY:Math.max(T.contentScrollable?-1*(x.initialY-24):0,T.event.touches[0].clientY-x.initialY),maxHeightForContentWrapper:Math.min(H,Math.max(0,(x.isFullScreen?H:T.contentWrapperHeight)-x.currentY))})):I=H==="Snap To Full Screen"?
Object.assign({},x,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:T.maxHeight}):H==="Snap To Neutral Position"?Object.assign({},x,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:T.maxHeight}):H==="Close Sheet"?Object.assign({},x,{isAnimating:!0,currentY:T.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:T.maxHeight}):x;l.publish("changed",I)}}},Dag=function(V){return _.Bu(function(l){V(l);
return!1})},ZuQ=function(){_.F().resolve(_.J7).closeSheet()},SYP=function(V){var l,I,H,T,x,n,w,N,L,e,k;
return{headerTitle:(l=V.headerTitle)==null?void 0:l.call(V),headerSubtitle:(I=V.headerSubtitle)==null?void 0:I.call(V),headerActionHeader:V.headerActionHeader,footerPrimaryButton:V.footerPrimaryButton,footerSecondaryButton:V.footerSecondaryButton,footerButtonType:(H=V.footerButtonType)==null?void 0:H.call(V),footerLeadingLabel:(T=V.footerLeadingLabel)==null?void 0:T.call(V),footerTrailingLabel:(x=V.footerTrailingLabel)==null?void 0:x.call(V),shouldShowIcons:(n=V.shouldShowIcons)==null?void 0:n.call(V),
skipContentClick:(w=V.skipContentClick)==null?void 0:w.call(V),additionalClassName:(N=V.additionalClassName)==null?void 0:N.call(V),onClosedCallback:V.onClosedCallback,focusOnClose:(L=V.focusOnClose)==null?void 0:L.call(V),isDisabled:(e=V.isDisabled)==null?void 0:e.call(V),disabledCommand:(k=V.disabledCommand)==null?void 0:k.call(V),headerFn:V.headerFn,contentFn:V.contentFn,footerFn:V.footerFn,hasHeaderFn:V.hasHeaderFn(),hasContentFn:V.hasContentFn(),hasFooterFn:V.hasFooterFn(),hasFooterPrimaryButton:V.hasFooterPrimaryButton(),
hasFooterSecondaryButton:V.hasFooterSecondaryButton(),hasHeaderActionHeader:V.hasHeaderActionHeader()}},RKP=function(V){switch(V){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""}},Qk2=function(V){switch(V){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""}},cP2=function(V){switch(V){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""}},WJV=function(V,l,I){l.forEach(function(H){_.dF(_.F().resolve(_.ef),H)});
_.xB(V,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",I])},skP=function(V,l,I,H){var T=_.y(I,_.q$).commandLifeCycleConfig;
T&&T.onStartCommand&&_.d6(V,[T.onStartCommand],l);_.gv(l);var x=_.Zt.instance;x&&_.SU(x,I)?_.R2(x,I,H).then(function(n){if(!n||(n==null?0:n.error))return n=_.y(I,_.q$).serializedTransactionFlowLoggingParams,_.ml(l),_.bK(new lC("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",n));_.ml(l);return{data:n}}).then(function(n){_.ml(l);
bu6(n.data);var w=n.data.command;w&&_.d6(V,[w],l);w=qYV(I,n.data);if(!w){var N=n.data;n=!1;if(N&&N.command&&_.y(N.command,_.NJ)){var L;N=((L=_.y(N.command,_.NJ))==null?void 0:L.commands)||[];for(L=0;L<N.length;L++)if(_.y(N[L],_.$9a)){n=!0;break}}n||_.FB('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!w&&T&&T.onSuccessCommand?_.d6(V,[T.onSuccessCommand],l):w&&T&&T.onFailureCommand&&_.d6(V,[T.onFailureCommand],l)},function(){_.ml(l);
T&&T.onFailureCommand&&_.d6(V,[T.onFailureCommand],l);Muu(I)}):_.Gr(Error("Al"),"ERROR")},piY=function(V,l,I){var H=[l];
I&&H.push(I);return _.$B(V,H).then(function(T){var x=_.y(l,_.q$).serializedTransactionFlowLoggingParams,n=T.data,w=qYV(l,n);w?T=_.bK(new lC(w,x)):bu6(n);return T},function(){var T=_.y(l,_.q$).serializedTransactionFlowLoggingParams;
Muu(l);return _.bK(new lC("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",T))})},qYV=function(V,l){V=_.y(V,_.q$).serializedTransactionFlowLoggingParams;
var I=null;switch(l.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":I="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":I="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":I="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}I?_.cb(I,V):IbQ(V);return I},Muu=function(V){_.cb("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.y(V,_.q$).serializedTransactionFlowLoggingParams)},
bu6=function(V){if(V.trackingParams){var l=_.oa(),I=_.JO();
l&&I&&_.MJ(l,I,_.dj(V.trackingParams))}},APh=function(V,l,I){var H=_.Zt.instance,T=_.jP1(_.h6("YPC_MB_URL")),x=(new _.Nf1).init(),n=_.KDg(),w=_.y(I,_.BdZ).languageCode;
w===void 0?_.Gr(Error("Fi"),"ERROR"):_.ER([x,T]).then(function(){var N={ctk:payments.business.integration.ClientTokenFactory.createClientToken(w,n)};H&&_.SU(H,I)?_.R2(H,I,N).then(function(L){return{data:L}}).then(function(L){_.B$(l,"yt-service-request-completed",L);
L.code!=="ERROR"&&(L=L.data.command)&&_.d6(V,[L],l)}):_.Gr(Error("Al"),"ERROR")})},Oug=function(V,l,I,H){var T=_.Zt.instance;
T&&_.SU(T,I)?_.R2(T,I,H).then(function(x){return{data:x}}).then(function(x){uX2(V,l,I,x)},function(){vDr(I)}):(T=_.F().resolve(_.Cs(_.kV)))&&T.requestDataForServiceEndpoint(I,H).then(function(x){uX2(V,l,I,x)},function(){vDr(I)})},uX2=function(V,l,I,H){_.B$(l,"yt-service-request-completed",H);
if(H.code&&H.code=="ERROR")vDr(I);else{(H=H.data.commands)&&_.d6(V,H,l);var T;(V=(T=_.y(I,_.wfJ))==null?void 0:T.serializedYpcPauseFlowLoggingParams)&&V&&_.Jk("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",V)}},vDr=function(V){var l;
(V=(l=_.y(V,_.wfJ))==null?void 0:l.serializedYpcPauseFlowLoggingParams)&&V&&_.Jk("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",V,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},fNh=function(V,l,I){var H=_.Zt.instance;
H&&_.SU(H,I)?_.R2(H,I).then(function(T){return{data:T}}).then(function(T){C_r(V,l,I,T)},function(){aNY(I)}):(H=_.F().resolve(_.Cs(_.kV)))&&H.requestDataForServiceEndpoint(I).then(function(T){C_r(V,l,I,T)},function(){aNY(I)})},C_r=function(V,l,I,H){_.B$(l,"yt-service-request-completed",H);
H.code&&H.code=="ERROR"?aNY(I):((H=H.data.commands)&&_.d6(V,H,l),(V=_.y(I,_.NdW).serializedYpcResumeFlowLoggingParams)&&V&&_.Jk("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",V))},aNY=function(V){(V=_.y(V,_.NdW).serializedYpcResumeFlowLoggingParams)&&V&&_.Jk("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",V,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},gDE=function(V){V=V===void 0?{}:V;
_.F().resolve(_.QIV).showFeedbackDialog(V.customProductData,V.feedbackContent,V.onFeedbackSubmitted,V.bucket)},mab=function(V){V=V===void 0?{}:V;
_.F().resolve(_.QIV).showHelpDialog(V.helpContext,V.articleId,V.productData)},iu2=function(){mab()},V36=function(){gDE()},Ixh=function(V,l,I){var H,T,x,n,w,N,L;
return _.d(function(e){switch(e.nextAddress){case 1:H=_.y(V,lx6);if((T=H)==null?0:T.productId){N={productId:H.productId,bucket:H.bucket,enableAnonymousFeedback:(w=H.enableAnonymousFeedback)!=null?w:!0,allowNonLoggedInFeedback:!0};L={feedbackChoice:I.feedbackChoice};if(!_.z("web_collect_offline_state")){e.jumpTo(8);break}_.jd(e,9);return _.K(e,Nw6(L),11)}n={bucket:(x=H)==null?void 0:x.bucket};if(!_.z("web_collect_offline_state")){e.jumpTo(4);break}n.customProductData={};_.jd(e,5);return _.K(e,Nw6(n.customProductData),
7);case 7:_.Rv(e,4);break;case 5:_.kE(e);case 4:gDE(n);e.jumpTo(0);break;case 11:_.Rv(e,8);break;case 9:_.kE(e);case 8:_.UuJ(L),_.xuq("GFEEDBACK",L),H.productId==="5295751"&&(L.client_attestation=Number(_.h6("CATSTAT",0))),H.productId==="5295751"&&(L.client_time=Date.now()/1E3/3600),H.productId==="5295751"&&(L.original_playback_id=_.Owb||""),_.Oub(N,L),_.FU(e)}})},HgY=function(V){if(V=_.y(V,_.sMT)){var l={bucket:V.bucketIdentifier};
V.additionalDatas&&(l.customProductData={},V.additionalDatas.forEach(function(I){if(I=I.userFeedbackEndpointProductSpecificValueData)l.customProductData[I.key]=I.value}));
gDE(l)}},TRQ=function(V){var l=_.WF.getInstance(),I=_.LT("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?"),H=_.LT("DELETE",void 0,"Delete"),T=_.LT("CANCEL",void 0,"Cancel");
I={openPopupAction:Fc2(I,void 0,H,T,{signal:"DELETE_ALL_DOWNLOADS"})};_.RC(l,[I],V)},xIY=function(){return _.d(function(V){return V.nextAddress==1?_.K(V,_.F().resolve(_.fE),2):_.K(V,BRE(),0)})},UIY=function(V){var l,I;
return _.d(function(H){return H.nextAddress==1?(I=(l=_.y(V,_.RV))==null?void 0:l.targetId)?_.K(H,_.F().resolve(_.fE),3):H.jumpTo(0):_.K(H,_.F().resolve(_.al).deleteVideo(I),0)})},$IB=function(V){var l,I;
return _.d(function(H){return H.nextAddress==1?(I=(l=_.y(V,_.RV))==null?void 0:l.targetId)?_.K(H,_.F().resolve(_.fE),3):H.jumpTo(0):_.K(H,nLI(_.F().resolve(_.al),I),0)})},wHu=function(V){var l,I;
return _.d(function(H){return(I=(l=_.y(V,_.RV))==null?void 0:l.targetId)?_.K(H,dIE(I),0):H.jumpTo(0)})},KCr=function(){_.z("kevlar_woffle_refresh_dl_load_killswitch")||NRr()},YRP=function(){_.z("kevlar_woffle")&&_.Zf.instance&&jmE()},eqr=function(V){var l;
if((l=_.y(V,_.xj))==null||!l.videoId)return!1;LCP(_.F().resolve(_.al),_.y(V,_.xj),V.clickTrackingParams);return!0},FCE=function(V){var l;
if((l=_.y(V,_.UB))==null||!l.playlistId)return!1;k1I(_.F().resolve(_.al),_.y(V,_.UB),V.clickTrackingParams);return!0},zqP=function(V){var l=_.y(V,_.j7a);
(l==null?void 0:l.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(l==null?void 0:l.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||XHP(_.F().resolve(_.al),_.y(V,_.j7a))},t3u=function(V){V=_.y(V,_.OiZ);
var l;(V==null?0:(l=V.actions)==null?0:l.length)&&ymE(V)},ELE=function(V){var l,I;
return _.d(function(H){l=_.y(V,rmB);return(I=l)!=null&&I.localWatchHistoryCommandType?_.K(H,G1V(l),0):H.return()})},JmE=function(V){setTimeout(function(){requestAnimationFrame(V)},80)},oLu=function(V){return Object.entries(V).map(function(l){return l.join(":")}).join(";")},PUI=function(V){var l,I,H;
_.d(function(T){if(T.nextAddress==1)return _.K(T,hqE(),2);l=T.yieldResult;I=_.li.instance;switch(l){case "granted":H=V.getLocationCommand;break;case "denied":H=V.openDeniedDialogAction;break;case "prompt":H=V.openCollectionDialogAction;break;default:H=V.openCollectionDialogAction}H&&I.resolveCommand(H);_.FU(T)})},hqE=function(){var V,l;
return _.d(function(I){if(I.nextAddress==1)return V="prompt",navigator.permissions?_.K(I,navigator.permissions.query({name:"geolocation"}),3):I.jumpTo(2);I.nextAddress!=2&&(l=I.yieldResult,V=l.state);return I.return(V)})},ZgB=function(){_.d(function(V){return _.K(V,_.DIr(),0)})},SRQ=function(){var V,l,I;
return _.d(function(H){if(H.nextAddress==1)return V=_.F().resolve(_.FM),V?_.K(H,_.R2(V,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.hF(Error("Dl")),H.return(void 0));if(l=H.yieldResult){if(l.errorMetadata)return _.hF(Error("El`"+l.errorMetadata.status+"`"+l.error)),H.return(void 0);I=l.datasyncIds;_.W2P=I.length;return H.return(I)}_.hF(Error("Fl"));return H.return(void 0)})},Rqh=function(){SRQ().then(function(V){V&&(btV(V),TwE(V),oFY(V),j6E(V))})},QmB=function(V){_.r0.addLowPriorityJob(function(){var l,
I,H,T,x;
return _.d(function(n){switch(n.nextAddress){case 1:if(_.z("ytidb_clear_optimizations_killswitch")){n.jumpTo(2);break}l=_.KA("clear");if(l.startsWith("V")&&l.endsWith("||")){var w=[l];btV(w);TwE(w);oFY(w);j6E(w);return n.return()}I=hLY();H=YBE();return _.K(n,Bwu(),3);case 3:return T=n.yieldResult,_.K(n,qIP(),4);case 4:if(x=n.yieldResult,!(I||H||T||x))return n.return();case 2:V.isNetworkAvailable()?Rqh():V.listenOnce("publicytnetworkstatus-online",Rqh),_.FU(n)}})})},If=function(V){V={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.pW(V)}}}};_.li.instance&&_.li.instance.resolveCommand(V)},cm2=function(V){if(V){var l=_.x7();
_.xg(l,3854,void 0,{layer:0,parentLayer:4});switch(V){case 1:var I=238708;break;case 2:I=238715;break;case 3:I=238710;break;case 6:I=238709}I&&(V=_.BX(l,{veType:I}))&&_.$g(l,V)}},WCr=function(V){if(V){var l=_.x7();
_.xg(l,3854,void 0,{layer:0,parentLayer:4});switch(V){case 1:var I=238714;break;case 2:I=238711;break;case 8:I=238709;break;case 7:I=238713;break;case 3:case 4:case 5:I=238712}I&&(V=_.BX(l,{veType:I}))&&_.$g(l,V)}},bgE=function(V){switch(V.latencyType){case 0:_.D8("consent_primitive_flow");
_.Z8("cpit",V.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Z8("cpist",V.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Z8("cprtif",V.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Z8("cprtli",V.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Z8("cprt",V.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Z8("cpdt",V.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Z8("cpjct",V.timestampEpochMillis,"consent_primitive_flow")}},
ax6=function(V,l){var I,H,T,x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf,C,By;
return _.d(function(lN){switch(lN.nextAddress){case 1:_.jd(lN,2);(H=(I=_.y(V,qRg))==null?void 0:I.serializedConsentRequest)||(H=(T=_.y(V,M3E))==null?void 0:T.serializedConsentRequest);H&&(x=smE(_.TE(H)));if(x===void 0)return lN.return();n=pHg(x);n.latencyCallback=bgE;l&&AmQ(n,function(){l.then(function(wW){wW.pauseVideo();(new uth).increment()})});
return((w=_.y(V,qRg))==null?void 0:w.consentAction)==="CONSENT_ACTION_PREWARM"||((N=_.y(V,M3E))==null?void 0:N.consentAction)==="CONSENT_ACTION_PREWARM"?_.K(lN,vLV(n),5):_.K(lN,Ogh(n),6);case 6:L=lN.yieldResult;e=_.Gp(L,H8);if(e===1){if(((k=_.bQ(L,T7,1,H8))==null?void 0:_.Qh(k,1))===1||((X=_.bQ(L,T7,1,H8))==null?void 0:_.Qh(X,1))===2||((r=_.bQ(L,T7,1,H8))==null?void 0:_.Qh(r,1))===3)_.y(V,M3E)?If(_.LT("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
If(_.LT("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));cm2((E=_.bQ(L,T7,1,H8))==null?void 0:_.Qh(E,1),_.m2(L,CUh,3,_.i4()))}else e===2?(((D=B8(L))==null?void 0:_.Qh(D,1))===5?_.y(V,M3E)?If(_.LT("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):If(_.LT("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((Z=B8(L))==null?void 0:_.Qh(Z,1))===1||((S=B8(L))==null?void 0:_.Qh(S,1))===4?If(_.LT("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((p=B8(L))==null?void 0:_.Qh(p,1))===7&&((Vf=x)==null?void 0:(C=_.fA(Vf,xW,4))==null?void 0:_.Qh(C,4))!==1&&If(_.LT("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),WCr((By=B8(L))==null?void 0:_.Qh(By,1))):If(_.LT("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));lN.jumpTo(5);break;case 5:_.Rv(lN,0);break;case 2:_.kE(lN),If(_.LT("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.FU(lN)}})},gLY=
function(){if(!fxE.has("Worker")){fxE.set("Worker",!0);
var V={api:"BROWSER_API_WEB_WORKER"};V.available="Worker"in window?!0:!1;_.tF("apiTest",V)}},mI2=function(V){return typeof V==="undefined"?"-1":String(Math.ceil(V/1048576))},I4V=function(V,l){igQ(new VTu(_.y(l,l46).addToken,_.y(l,l46).commonToken)).then(function(){_.B$(V,"yt-invoke-instrument-manager-action-completed")},function(I){_.B$(V,"yt-invoke-instrument-manager-action-error",I)})},HH2={},TYI=function(V){return _.gdK(HH2,V,function(){return IF(_.cby,V)>=0})},BYE=function(V){return _.A3(V)},
x_u=function(V){var l=1;
V=V.split(":");for(var I=[];l>0&&V.length;)I.push(V.shift()),l--;V.length&&I.push(V.join(":"));return I},U_E=function(V,l){l=V.aspectRatio()<=l.aspectRatio()?l.width/V.width:l.height/V.height;
V.scale(l)},nNh=function(V,l){l=V.aspectRatio()>l.aspectRatio()?l.width/V.width:l.height/V.height;
return V.scale(l)},$_B=function(V){var l=new _.wR;
return _.qU(l,11,V)},d_B=function(V){var l={};
V=V.getAllResponseHeaders().split("\r\n");for(var I=0;I<V.length;I++)if(!_.jc(V[I])){var H=x_u(V[I]),T=H[0];H=H[1];if(typeof H==="string"){H=H.trim();var x=l[T]||[];l[T]=x;x.push(H)}}return _.EL.map(l,function(n){return n.join(", ")})},Lp=function(V,l){return V.JSC$7662_xhr_?V.JSC$7662_xhr_.getResponseHeader(l):null},Ui=function(V,l,I){Array.isArray(I)||(I=[String(I)]);
_.R1w(V.JSC$7896_queryData_,l,I);return V},jmE=function(){var V=_.Zf.instance;
_.d(function(l){return V.deferredInstallPrompt?_.K(l,V.deferredInstallPrompt.prompt(),0):l.jumpTo(0)})},w_B=function(V,l,I){if(_.vy(V))_.cO(V,l,I);
else for(V=_.bCN(V);;){var H=V.next();if(H.done)break;l.call(I,H.value,void 0,V)}},NYh={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}"]},UOI,nCP,$OY,dO6,w6Q,N3u,Kqg,jCE,Ymu,dIE,nLI,BRE,Lqu,eNQ,kAg,FqB,X6B,k1I,LCP,zN2,y4h,tJV,NRr,XHP,r4h,ymE,GAV,G1V,ECE,J4g,oCh,hNQ,PDE,DOE,ZhQ,KJ,SmB,RN2,
kpE,YkV,QCE,c4b,WqE,bhr,qm6,MJE,sCE,p6B,A4E,uQE,vCV;NYh={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 KRu=function(V,l){var I=[];w_B(l,function(H){try{var T=_.Ia.prototype.getWrapper.call(this,H,!0)}catch(x){if(x=="Storage: Invalid value was encountered")return;throw x;}T===void 0?I.push(H):_.W4o(T)&&I.push(H)},V);
return I},jBI=function(V,l){KRu(V,l).forEach(function(I){_.Ia.prototype.remove.call(this,I)},V)},YOE=function(V){var l=_.Aw;
l._minimumZ=Math.max(l._minimumZ,V)},LRh=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],eXY=function(V,l){_.ag(V.wl);V.wl=l},kdb=function(V,l,I,H){V.setState(5);
var T=!!V.cwN&&LRh.includes(_.ps(V.cwN)||"");try{var x=new _.Q$({program:l,globalName:I,nx:{disable:!_.z("att_web_record_metrics")||!_.z("att_skip_metrics_for_cookieless_domains_ks")&&T,k6:"aGIf"}});x.uGF.then(function(){V.setState(6);H&&H(l)});
eXY(V,x)}catch(n){V.setState(7),n instanceof Error&&_.hF(n)}},FRE=function(V,l,I,H,T,x){var n=n===void 0?"trayride":n;
I?(V.setState(2),_.Ra(I,function(){if(window[n])kdb(V,H,n,T);else{V.setState(3);var w=_.RNw(I),N=document.getElementById(w);N&&(_.AoK(w),N.parentNode.removeChild(N));_.hF(new _.Yd("BL:ULB",I))}},x)):l?(x=_.jk("SCRIPT"),l instanceof _.Cd?_.fd(x,l):x.textContent=l,x.nonce=_.vh(document),document.head.appendChild(x),document.head.removeChild(x),window[n]?kdb(V,H,n,T):(V.setState(4),_.hF(new _.Yd("BL:ULBJ")))):_.hF(new _.Yd("BL:ULV"))},X_V=function(){this.state=1;
this.wl=null;this.cwN=void 0};
_.B=X_V.prototype;_.B.initialize=function(V,l,I,H){this.cwN=H;if(V.program){var T;H=(T=V.interpreterUrl)!=null?T:null;if(V.interpreterSafeScript)T=_.N_J(V.interpreterSafeScript);else{var x;T=(x=V.interpreterScript)!=null?x:null}V.interpreterSafeUrl&&(H=_.GQ(V.interpreterSafeUrl).toString());FRE(this,T,H,V.program,l,I)}else _.hF(Error("nf"))};
_.B.isInitialized=function(){return!!this.wl};
_.B.getState=function(){return this.state};
_.B.isLoading=function(){return this.state===2};
_.B.invoke=function(V){V=V===void 0?{}:V;var l;this.wl?l=_.tkv(this.wl,{vo:V}):l=null;return l};
_.B.dispose=function(){eXY(this,null);this.setState(8)};
_.B.setState=function(V){this.state=V};
var zXE=function(V,l){return V.wl.snapshot(l)},yuI=function(V,l){var I=_.g7("botguard_async_snapshot_timeout_ms",3E3);
l=l===void 0?{}:l;I=I===void 0?3E3:I;return V.wl?new Promise(function(H,T){var x=!1,n=_.r0.addJob(function(){x=!0;T(Error("of"))},1,I);
V.wl?zXE(V,{vo:l}).then(function(w){_.r0.cancelJob(n);x||H(w)}).catch(function(w){_.r0.cancelJob(n);
x||T(w)}):(_.r0.cancelJob(n),H(null))}):Promise.resolve(null)},tTP=["att/log"],ruE;
ruE={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var GdY={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},ENE=function(V,l){return _.Yf(V,{mode:"readwrite",enableRetries:!0},function(I){return _.L1w(I,l,"settingEntity")})},JuE=function(V,l,I){return _.Yf(V,{mode:"readonly",
enableRetries:!0},function(H){return _.RSi(H,l,I)})},oNE=function(V){if(!V.storage)return!1;
a:{if(V.storage){try{var l=V.storage.get("TLPQtimestamp")}catch(I){}V=Number(l);if(!isNaN(V))break a}V=void 0}return V?Date.now()-V<864E5:!1},hXP=function(V,l){V.queueProxy&&l.forEach(function(I){if(I.videoId&&I.trackingParams&&V.queueProxy instanceof _.Z$){var H=_.oa();
V.queueProxy.attributionData.set(I.videoId,{enqueueingVe:_.dj(I.trackingParams).getAsJson(),enqueueingCsn:H?H:void 0,clientEnqueueingTimeMs:Math.floor((0,_.O_)()).toString()})}})},Pnr=function(V){var l=_.NnB(V);
l!=V.currentSnapState_&&(V.currentSnapState_=l,V.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},nJ=function(V){this.JSC$10809_networkManager_=V;
this.partCallbacks_=[]};
nJ.prototype.getCacheKeyForEndpoint=function(V){return _.X0K(V,!1)};
nJ.prototype.onPartsCallback_=function(V){this.partCallbacks_.forEach(function(l){V&&l(V)})};
var $W=function(V,l,I){nJ.call(this,V);this.player_=l;this.autoplayData_=I};
_.t($W,nJ);$W.prototype.getCacheKeyForEndpoint=function(V){return _.X0K(V,!!this.autoplayData_)};
$W.prototype.getTempData=function(V,l){l=l.timeBeforeNextVideo;V={itct:V.clickTrackingParams,lact:_.f0(),pbis:l,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(V.autonav=1);return V};
$W.prototype.getXhrParams=function(V){return Object.assign({pbj:"prefetch"},V)};
$W.prototype.getParams=function(V){V={frags:V.fragmentsRequested.join(",")};_.z("kevlar_droppable_prefetchable_requests")&&(V.prefetch=1);return V};
var D_P=function(V){V.playerEvents_.forEach(function(l){V.player.removeEventListener(l.eventName,l.callback)});
V.playerEvents_.length=0},da=function(V,l,I){this.player=V;
this.JSC$10819_taskManager=l;this.prefetchDelay=I;this.completionResolver_=null;this.playerEvents_=[]};
da.prototype.start=function(){var V=this;this.completionResolver_=_.QN();_.Jm(this.completionResolver_.promise,function(){D_P(V);V.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var ZH2=function(V,l,I){V.player.addEventListener(l,I);V.playerEvents_.push({eventName:l,callback:I})},SOh={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},RXg={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},QBg=function(V,l,I){da.call(this,V,l,I);this.cueId_="playbackTrigger-"+Math.random()};
_.t(QBg,da);
QBg.prototype.prepareTrigger=function(V){var l=this,I=this.player.getDuration(),H=this.player.getVideoData(),T=H.isLive&&H.hasProgressBarBoundaries;if(T&&H.progressBarEndPositionUtcTimeMillis){var x=H.progressBarEndPositionUtcTimeMillis/1E3;isNaN(x)||(I=x)}var n=0;this.prefetchDelay>=0?T?H.progressBarStartPositionUtcTimeMillis&&(H=H.progressBarStartPositionUtcTimeMillis/1E3,isNaN(H)||(n=H+this.prefetchDelay)):n=this.prefetchDelay:n=I+this.prefetchDelay;T?this.player.addUtcCueRange(this.cueId_,n,I):
this.player.addCueRange(this.cueId_,n,I);_.Jm(V.promise,function(){l.player.removeCueRange(l.cueId_)});
ZH2(this,"onCueRangeEnter",function(w){w==l.cueId_&&V.resolve(I-n)})};
var cuE=function(V,l){V.fragmentConfiguration_[l].requiredKeys.every(function(I){return!!V.prefetchedData_[I]})&&(V.validatedFragments_.push(l),l=V.missingFragments_.indexOf(l),l!==-1&&V.missingFragments_.splice(l,1))},WRE=function(V){V.prefetchedFragments_.forEach(function(l){cuE(V,l)})},bHI=function(V,l,I){this.pageFragments_=V;
this.prefetchedFragments_=l;this.fragmentConfiguration_=RXg;this.prefetchedData_=I;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;WRE(this)},qOE=function(){},MTE=function(V){this.JSC$10833_playlistManager_=V};
_.t(MTE,qOE);MTE.prototype.getPrefetchEndpoint=function(){return this.JSC$10833_playlistManager_.getAutoplayEndpoint()};
var sBE=function(V){this.autonavEndpoints_=V};
_.t(sBE,qOE);sBE.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var p_g=function(V,l,I,H,T){this.autonavEndpoints=V;this.foregroundTrigger=l;this.backgroundTrigger=I;this.pageType=H;this.isInPlaylist=T},AuV=function(V,l){if(V.webPrefetchData&&V.webPrefetchData.navigationEndpoints&&V.webPrefetchData.navigationEndpoints.length){V=V.webPrefetchData.navigationEndpoints;
var I=_.y(V[0],_.vU);if(I.watchEndpointSupportedPrefetchConfig&&I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var H=I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;I=H.playbackRelativeSecondsPrefetchCondition;I=typeof I==="number"&&Math.abs(I)<l.videoDuration?I:void 0;H=H.countdownUiRelativeSecondsPrefetchCondition;H=typeof H!=="number"||_.z("prefetch_job_config_cleanup_ks")&&l.inPlaylist?void 0:H;if(typeof H==="number")return new p_g(V,l.makeUpNextTrigger(H),l.makePlaybackTrigger(H),
"watch",l.inPlaylist);if(typeof I==="number")return new p_g(V,l.makePlaybackTrigger(I),null,"watch",l.inPlaylist)}}},uFh=function(V){return V.prefetchJobConfig_.backgroundTrigger?_.Zp(_.Wf3)()==0?V.prefetchJobConfig_.backgroundTrigger:V.prefetchJobConfig_.foregroundTrigger:V.prefetchJobConfig_.foregroundTrigger},vNQ=function(V){_.y$(document,"visibilitychange",V.onVisibilityChange_,!1,V)},wa=function(V){nJ.call(this,V)};
_.t(wa,nJ);wa.prototype.getCacheKeyForEndpoint=function(V){return nJ.prototype.getCacheKeyForEndpoint.call(this,V)};
wa.prototype.getTempData=function(){return{}};
wa.prototype.getXhrParams=function(V){return V};
wa.prototype.getParams=function(){return{}};
var OHP=function(V,l,I){var H=V.prefetchDelay*1E3;if(Math.abs(H)>l)I.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var T=H,x=l-H;H<0&&(T=l+H,x=Math.abs(H));var n=V.JSC$10819_taskManager.addJob(function(){I.resolve(x/1E3)},10,T);
I.promise.thenCatch(function(){V.JSC$10819_taskManager.cancelJob(n)})}},CnE=function(V,l,I){da.call(this,V,l,I)};
_.t(CnE,da);CnE.prototype.prepareTrigger=function(V){var l=this;ZH2(this,"onAutonavCoundownStarted",function(I){OHP(l,I,V)})};
var a46=function(V){V.pendingPrefetchJob_&&(V.pendingPrefetchJob_.cancel(),V.pendingPrefetchJob_=null)},f4h=function(V,l,I){if(!V.triggeredTargets.has(l)){var H=_.msw(V,l);
H.action=I;_.fW3(V,l,H)}},gNg=function(V){_.HIW();
_.mA3("cpt")&&_.hF(Error("nh"));_.nK.requestAnimationFrame(function(){_.nK.setTimeout(function(){_.Z8("cpt");var l=_.Qg("vpl"),I=_.Qg("cpt");l&&I&&_.Z8("ol",Math.max(l,I))})});
try{_.Z8("fr_s"),V()}catch(l){_.Gr(l)}_.nK.requestAnimationFrame(function(){_.Z8("bcp")})},m_I=function(V,l){V.serviceEndpointHandlers.push(l)},iHI=function(V,l){l=V.pendingPages_.indexOf(l);
l>-1&&V.pendingPages_.splice(l,1)},VJE=function(V,l){var I=_.XZZ.indexOf(l);
I>-1&&_.XZZ.splice(I,1);V.targetPage_==l?(V.abort(),_.yaa(V)):iHI(V,l)},ljE=function(V,l,I,H){l={challenge:l};
I&&(l.webResponse=I);return _.R7(V.innertubeTransportService,l,_.Ol(tTP),H)},IjI=function(V,l,I){if(!l.challenge)throw Error("pi");
if(l.botguardData&&l.botguardData.program){var H=new X_V;H.initialize(l.botguardData,function(){yuI(H,{atr_challenge:l.challenge}).then(function(T){if(!T)throw Error("qi");return ljE(V,l.challenge,T,I)}).catch(function(T){_.hF(T);
return ljE(V,l.challenge,void 0,I)})},void 0)}else ljE(V,l.challenge,void 0,I)},HhP=function(V,l,I){var H={};
l.ids&&(H.ids=[].concat(_.oI(l.ids)));l.engagementType&&(H.engagementType=l.engagementType);return _.R7(V.innertubeTransportService,H,_.Ol(_.m9Z),I).then(function(T){if(!T)throw new _.Yd("GetAttestationChallenge returned falsy");IjI(V,T,I)}).thenCatch(function(T){_.Gr(T)})},T3E=function(V,l,I){return new _.UZ(function(H,T){var x;
return _.d(function(n){if(n.nextAddress==1){var w=l.engagementType,N=l.ids,L={};N=_.U(N!=null?N:[]);for(var e=N.next();!e.done;e=N.next())e=e.value,e.encryptedVideoId?L.encryptedVideoId=e.encryptedVideoId:e.externalChannelId?L.externalChannelId=e.externalChannelId:e.commentId?L.commentId=e.commentId:e.externalOwnerId?L.externalOwnerId=e.externalOwnerId:e.artistId?L.artistId=e.artistId:e.playlistId?L.playlistId=e.playlistId:e.externalPostId?L.externalPostId=e.externalPostId:e.shareId&&(L.shareId=e.shareId);
return _.K(n,kGE(w,L),2)}x=n.yieldResult;if(!x.challenge)return _.hF(Error("ri")),HhP(V,l,I).then(H,T),n.return();w=x;L={challenge:w.challenge};L.webResponse=w.webResponse;L.engagementType=l.engagementType;L.ids=l.ids;_.R7(V.innertubeTransportService,L,_.Ol(tTP),I).then(H,T);_.FU(n)})})},zfI=function(V,l){var I,H,T,x;
_.d(function(n){if(n.nextAddress==1){I=_.y(l,_.d_3);if(!(I&&I.listId&&V.response&&V.response.playingVideoId)||V.listId!==I.listId)return n.return();V.index===void 0&&(V.index=0);return _.K(n,_.Y5w(V.JSC$10644_playlistNetworkManager,I.listId,V.index,V.response.playingVideoId),2)}H=n.yieldResult;if(!H)return n.return();T=H.playlistId;x=H.playlistPanelRenderer;V.setPlaylistData(T,x,H.autoplayRenderer);_.FU(n)})},B3E=function(V,l,I){var H=V.getParams(I),T=_.r93(l,H),x=V.getTempData(l,I);
x.endpoint=JSON.stringify(l);_.z("enable_unknown_lact_fix_on_html5")&&(_.F().resolve(_.Fp),x.lact=_.f0());var n={headers:{"X-YouTube-STS":_.h6("STS"),"x-youtube-csoc":1}};_.f8(T,x);return new _.UZ(function(w,N){var L=V.getXhrParams(H),e;_.z("kevlar_cache_on_ttl_player")&&(e=_.x6.instance);e&&_.o3E(e,l)?_.cx3(e,l,x,window.location.href).then(function(k){k?w(k):N()},N):_.ouJ(V.JSC$10809_networkManager_,l,L,V.onPartsCallback_.bind(V),n).then(function(k){k?w(k):N()},N)})},xOI=function(V,l){V.triggerPromise_=
l.start();
V.triggerPromise_.then(function(I){var H=V.prefetchEndpointProvider_.getPrefetchEndpoint();if(H){var T=SOh[V.prefetchJobConfig_.pageType].prefetchedFragments;V.prefetchRequestPromise_=B3E(V.JSC$10845_networkPrefetchRequest_,H,{fragmentsRequested:T,timeBeforeNextVideo:I});V.prefetchResponseCacheKey_=V.JSC$10845_networkPrefetchRequest_.getCacheKeyForEndpoint(H);vNQ(V);V.prefetchRequestPromise_.then(function(x){V.storePrefetchedDataCallback_(V.prefetchResponseCacheKey_,x);if(_.z("web_prefetch_preload_video")&&
T.length===1&&T[0]==="pl"&&x&&!x.playerAds&&!x.adPlacements){var n=_.y(H,_.YV),w=n!=null,N={raw_player_response:x,watch_endpoint:n};(x=_.F().resolve(w?_.m6N:_.fa))&&H&&x.then(function(L){w&&_.z("web_queue_preload_video")?(N.prefer_gapless=!0,L.queueNextVideo(N)):L.preloadVideoByPlayerVars(N)})}})}})},Nj=function(V,l,I,H){this.prefetchEndpointProvider_=V;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=l;this.prefetchJobConfig_=I;this.JSC$10845_networkPrefetchRequest_=H;this.prefetchResponseCacheKey_=null};
Nj.prototype.enqueue=function(){this.triggerPromise_||(xOI(this,uFh(this)),_.NR(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Nj.prototype.resolve=function(){this.cancel()};
Nj.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.");vNQ(this)};
Nj.prototype.onVisibilityChange_=function(){var V=this;_.Zp(_.Wf3)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){V.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||xOI(this,uFh(this))};
UOI=function(V,l,I,H,T){l&&(l==null?0:l.videoId)&&I&&I.entries&&_.z("kevlar_enable_shorts_prefetch_in_sequence")&&(a46(V),l=I.entries.map(function(x){var n;return(n=_.y(x.command,_.YV))==null?void 0:n.videoId}).indexOf(l.videoId),I=I.entries[l+1],I!=null&&I.command&&!_.y(I==null?void 0:I.command,_.Z0)&&(H=new p_g([I.command],new QBg(H,_.r0,1),null,"shorts",!1),V.pendingPrefetchJob_=new Nj(new sBE(H.autonavEndpoints),function(){return!1},H,new wa(T)),V.pendingPrefetchJob_.enqueue()))};
nCP=function(V,l,I,H,T,x){var n=_.f7.getInstance();if(!_.z("block_all_player_prefetch_requests")){a46(V);var w=!!I.getPlaylistId(),N=I.getVideoData().isLive&&I.getVideoData().hasProgressBarBoundaries;if((n.getState()==2||w||N)&&(!I.getVideoData().isLive||N)){n={inPlaylist:w,videoDuration:I.getDuration(),makeUpNextTrigger:function(e){return new CnE(I,_.r0,e)},
makePlaybackTrigger:function(e){return new QBg(I,_.r0,e)}};
var L=AuV(l,n);L&&(V.pendingPrefetchJob_=new Nj(L.isInPlaylist?new MTE(T):new sBE(L.autonavEndpoints),function(e,k){k=new bHI(SOh[L.pageType].pageFragments,SOh[L.pageType].prefetchedFragments,k);return _.MGW(k)?(V.prefetchCache_.set(e,k),!0):!1},L,new $W(H,I,x,T)),V.pendingPrefetchJob_.enqueue())}}};
$OY=function(){var V=_.sg();V.signals.parkOrScheduleJob(function(){var l=V.storage;if(l.storage)if(oNE(l)){var I=l.getPlaylistId();l=l.getIndex();I=!!I&&l!==void 0}else l.clear(),I=!1;else I=!1;if(I){I=V.pageManager.isOnWatch();a:{var H=V.storage;if(H.storage&&oNE(H)&&(l=H.getPlaylistId(),H=H.getIndex(),l&&H!==void 0)){I={recoverPlaylistCommand:{listId:l,index:H,openMiniplayer:!I,openListPanel:I,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}I=void 0}I&&_.RC(V.JSC$10644_actionRouter,[I],null)}},
0,"ma")};
dO6=function(V,l,I,H,T,x){var n=_.eU(7111);_.Ug(V.JSC$15959_screenManager,n,x?_.dj(x):void 0);_.$g(V.JSC$15959_screenManager,n,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:H,offlineId:l,offlineabilityFormatType:I,isDefaultFormatType:T==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:T}})};
w6Q=function(V,l,I,H,T){var x,n,w,N,L;return _.d(function(e){if(e.nextAddress==1)return _.K(e,V.JSC$15959_playerApiPromise,2);x=e.yieldResult;dO6(V,l,I,"OFFLINE_OBJECT_TYPE_PLAYLIST",H,T);if(w=_.sDB[V.entityTypeMap.listEntityType])L={},n=(L[w]={maximumDownloadQuality:(N=I)!=null?N:void 0},L);return _.K(e,x.queueOfflineAction(l,V.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",n),0)})};
N3u=function(V,l){var I,H,T,x;return _.d(function(n){if(n.nextAddress==1)return _.K(n,V.JSC$15959_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3){I=n.yieldResult;if(!I)return _.hF(new _.Yd("PES is undefined")),n.return();H=_.Ul(l,"downloadStatusEntity");return _.K(n,JuE(I,H,"downloadStatusEntity"),3)}T=n.yieldResult;return n.return((x=T)==null?void 0:x.downloadState)})};
Kqg=function(V,l,I,H,T){var x,n,w,N,L,e;return _.d(function(k){switch(k.nextAddress){case 1:return _.K(k,V.JSC$15959_playerApiPromise,2);case 2:x=k.yieldResult;dO6(V,l,I,"OFFLINE_OBJECT_TYPE_VIDEO",H,T);if(w=_.sDB[V.entityTypeMap.singleEntityType])L={},n=(L[w]={maximumDownloadQuality:(N=I)!=null?N:void 0},L);return _.K(k,N3u(V,l),3);case 3:e=k.yieldResult;if(e!=="DOWNLOAD_STATE_USER_DELETED"){k.jumpTo(4);break}return _.K(k,V.deleteVideo(l),4);case 4:return _.K(k,x.queueOfflineAction(l,V.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",n),0)}})};
jCE=function(V,l,I,H,T){return _.d(function(x){return x.nextAddress==1?_.K(x,V.deleteVideo(l,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.K(x,Kqg(V,l,I,H,T),0)})};
Ymu=function(V,l,I){var H,T;return _.d(function(x){if(x.nextAddress==1)return _.K(x,V.JSC$15959_playerApiPromise,2);H=x.yieldResult;T=_.Ul(l,"mainVideoDownloadStateEntity");return _.K(x,H.updateDownloadState(T,I),0)})};
dIE=function(V){var l=_.F().resolve(_.al);return _.d(function(I){if(I.nextAddress==1)return l.previousDownloadStateForVideo[V]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&l.previousDownloadStateForVideo[V]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?I.jumpTo(2):_.K(I,l.resumeVideoDownload(V),2);if(I.nextAddress!=4)return _.K(I,Ymu(l,V,l.previousDownloadStateForVideo[V]),4);delete l.previousDownloadStateForVideo[V];_.FU(I)})};
nLI=function(V,l){var I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$15959_playerApiPromise,2);I=H.yieldResult;return _.K(H,I.queueOfflineAction(l,V.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
BRE=function(){var V=_.F().resolve(_.al),l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$15959_playerApiPromise,2);if(H.nextAddress!=3)return l=H.yieldResult,I={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.K(H,l.queueOfflineAction("!*$_ALL_ENTITIES_!*$",V.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",I),3);var T=V.JSC$15959_commandHandler,x=T.resolveCommand,n=_.LT("DELETING_ALL",void 0,"Downloads are being deleted");
x.call(T,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iJ(n)}},popupType:"TOAST"}});_.FU(H)})};
Lqu=function(V){var l,I;return _.d(function(H){if(H.nextAddress==1)return _.K(H,V.JSC$15959_prefStorage,2);l=H.yieldResult;return H.return((I=l)==null?void 0:I.get("sdois"))})};
eNQ=function(V){var l,I,H,T,x,n;return _.d(function(w){if(w.nextAddress==1)return _.K(w,V.JSC$15959_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3){l=w.yieldResult;if(!l)return _.hF(new _.Yd("PES is undefined")),w.return();I=_.Ul("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.K(w,JuE(l,I,"settingEntity"),3)}H=w.yieldResult;return w.return((n=(T=H)==null?void 0:(x=T.settingOptionValue)==null?void 0:x.boolValue)!=null?n:!1)})};
kAg=function(V,l){var I,H,T,x;return _.d(function(n){switch(n.nextAddress){case 1:return((I=l)==null?void 0:I.formatType)===void 0?n.return():_.K(n,V.JSC$15959_prefStorage,2);case 2:H=n.yieldResult;if(H===void 0)return n.return();if(((T=l)==null?void 0:T.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.K(n,H.set("lmqf",l.formatType),8);if(((x=l)==null?void 0:x.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){n.jumpTo(0);break}return _.K(n,H.set("lmqf",l.formatType),
6);case 6:return _.K(n,H.set("lmqflst",Math.floor((0,_.O_)())),0);case 8:return _.K(n,H.remove("lmqflst"),0)}})};
FqB=function(V){var l,I;return _.d(function(H){switch(H.nextAddress){case 1:return _.K(H,V.JSC$15959_prefStorage,2);case 2:l=H.yieldResult;if(!l){H.jumpTo(3);break}return _.K(H,l.get("lmqflst"),4);case 4:if(I=H.yieldResult,I!==void 0)return H.return(I);case 3:return H.return(0)}})};
X6B=function(V){var l,I;return _.d(function(H){switch(H.nextAddress){case 1:return _.K(H,V.JSC$15959_prefStorage,2);case 2:l=H.yieldResult;if(l===void 0){H.jumpTo(3);break}return _.K(H,l.get("lmqf"),4);case 4:if(I=H.yieldResult,I!==void 0)return H.return(I);case 3:return H.return("SD")}})};
k1I=function(V,l,I){var H,T,x,n,w,N,L,e;_.d(function(k){switch(k.nextAddress){case 1:return _.K(k,kAg(V,(H=l)==null?void 0:H.actionParams),2);case 2:T=l.playlistId;if(!T)return k.return();if(l.action==="ACTION_ADD")return((n=l.actionParams)==null?0:n.formatType)?_.K(k,w6Q(V,T,l.actionParams.formatType,(e=l.actionParams)==null?void 0:e.settingsAction,I),0):_.K(k,V.offlineWebClientEligibility,14);if(l.action==="ACTION_REMOVE_WITH_PROMPT"){var X=V.JSC$15959_commandHandler,r=X.resolveCommand,E=_.h6("INNERTUBE_CLIENT_NAME"),
D=E==="WEB_REMIX"?_.LT("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.LT("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),Z=E==="WEB_REMIX"?[_.LT("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];E=E==="WEB_REMIX"?_.LT("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.LT("DELETE",void 0,"Delete");var S=_.LT("CANCEL",void 0,"Cancel");D={openPopupAction:Fc2(D,Z,E,S,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:T})};r.call(X,D);
return k.return()}if(l.action==="ACTION_REMOVE")return _.K(k,nLI(V,T),0);if(l.action!=="ACTION_SYNC"){k.jumpTo(0);break}return _.K(k,V.JSC$15959_playerApiPromise,9);case 9:return x=k.yieldResult,_.K(k,x.queueOfflineAction(T,V.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return w=k.yieldResult,_.K(k,X6B(V),15);case 15:return N=k.yieldResult,_.K(k,FqB(V),16);case 16:L=k.yieldResult,l.onAddCommand&&V.JSC$15959_commandHandler.resolveCommand(l.onAddCommand,{form:{preferredFormatType:N,
offlineWebClientEligibility:w,lastOfflineQualitySettingsSavedMs:L.toString()}}),k.jumpTo(0)}})};
LCP=function(V,l,I){var H,T,x,n,w,N,L,e,k,X,r,E,D,Z;_.d(function(S){switch(S.nextAddress){case 1:return _.K(S,kAg(V,(H=l)==null?void 0:H.actionParams),2);case 2:T=l.videoId;if(!T)return S.return();if(l.action==="ACTION_REMOVE_WITH_PROMPT"){var p=V.JSC$15959_commandHandler,Vf=p.resolveCommand,C=_.h6("INNERTUBE_CLIENT_NAME"),By=C==="WEB_REMIX"?_.LT("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.LT("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),lN=C==="WEB_REMIX"?[_.LT("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];C=C==="WEB_REMIX"?_.LT("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.LT("DELETE",void 0,"Delete");var wW=_.LT("CANCEL",void 0,"Cancel");By={openPopupAction:Fc2(By,lN,C,wW,{signal:"DELETE_DOWNLOAD",targetId:T})};Vf.call(p,By);return S.return()}if(l.action==="ACTION_ADD")return((X=l.actionParams)==null?0:X.formatType)?_.K(S,Kqg(V,T,l.actionParams.formatType,(Z=l.actionParams)==null?void 0:Z.settingsAction,I),0):_.K(S,V.offlineWebClientEligibility,
23);if(l.action==="ACTION_RETRY")return _.K(S,X6B(V),19);if(l.action==="ACTION_PAUSE")return _.K(S,V.pauseVideoDownload(T),0);if(l.action==="ACTION_RESUME")return _.K(S,V.resumeVideoDownload(T),0);if(l.action!=="ACTION_REMOVE"){S.jumpTo(0);break}return _.K(S,N3u(V,T),13);case 13:return x=S.yieldResult,V.previousDownloadStateForVideo[T]=(n=x)!=null?n:"DOWNLOAD_STATE_UNKNOWN",_.K(S,Ymu(V,T,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(V.previousDownloadStateForVideo[T]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
V.previousDownloadStateForVideo[T]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){S.jumpTo(15);break}return _.K(S,V.pauseVideoDownload(T),15);case 15:p=_.LT("DELETED_VIDEO",void 0,"Video deleted from downloads.");Vf=_.LT("UNDO_ACTION",void 0,"Undo");By=_.LT("CLOSE",void 0,"Close");w={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iJ(p),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.iJ(Vf),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:T}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:p+" "+Vf}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:T}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:By}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};V.JSC$15959_commandHandler.resolveCommand(w);
S.jumpTo(0);break;case 19:N=S.yieldResult;N==="UNKNOWN_FORMAT_TYPE"&&(N="SD");L="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((e=l.actionParams)==null?0:e.formatType)N=l.actionParams.formatType,L=(k=l.actionParams)==null?void 0:k.settingsAction;return _.K(S,jCE(V,T,N,L,I),20);case 20:return S.return();case 23:return r=S.yieldResult,_.K(S,X6B(V),24);case 24:return E=S.yieldResult,_.K(S,FqB(V),25);case 25:D=S.yieldResult,l.onAddCommand&&V.JSC$15959_commandHandler.resolveCommand(l.onAddCommand,
{form:{preferredFormatType:E,offlineWebClientEligibility:r,lastOfflineQualitySettingsSavedMs:D.toString()}}),S.jumpTo(0)}})};
zN2=function(V,l){var I,H,T,x,n,w,N;return _.d(function(L){if(L.nextAddress==1)return _.K(L,V.JSC$15959_persistentStorePromiseAccessor(),2);I=L.yieldResult;if(!I)return _.hF(new _.Yd("PES is undefined")),L.return();if((H=l)==null||!H.settingItemId)return L.return();T=l;x=T.settingItemId;n=T.boolValue;w=_.Ul(x,"settingEntity");N={key:w,settingOptionValue:{boolValue:n}};return _.K(L,ENE(I,N),0)})};
y4h=function(V,l){var I,H,T,x,n,w,N;return _.d(function(L){switch(L.nextAddress){case 1:return _.K(L,V.JSC$15959_prefStorage,2);case 2:return I=L.yieldResult,H=_.Fu(),_.K(L,V.JSC$15959_persistentStorePromiseAccessor(),3);case 3:return T=L.yieldResult,I?T?_.K(L,I.get("sdois"),4):(_.hF(new _.Yd("PES is undefined")),L.return()):(_.hF(new _.Yd("prefStorage is undefined")),L.return());case 4:x=L.yieldResult;w=(n=l)==null?void 0:n.boolValue;w===void 0||_.z("kevlar_set_sd_enabled_flag_killswitch")||_.Xu(0,
197,!0);x===void 0&&w===void 0&&(w=!1);if(w===void 0){L.jumpTo(0);break}return _.K(L,I.set("sdois",w),6);case 6:return _.z("kevlar_set_sd_enabled_flag_killswitch")||(_.Xu(0,196,w),H.save()),N={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:w},_.K(L,zN2(V,N),0)}})};
tJV=function(V,l,I){var H,T,x,n,w;return _.d(function(N){switch(N.nextAddress){case 1:return _.K(N,Lqu(V),2);case 2:return H=N.yieldResult,_.K(N,y4h(V,I),3);case 3:return _.K(N,Lqu(V),4);case 4:return T=N.yieldResult,x=T!==H,_.K(N,eNQ(V),5);case 5:n=N.yieldResult&&!_.z("kevlar_modern_downloads_page");if((w=!T&&!n)||x)return _.K(N,l.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);N.jumpTo(0)}})};
NRr=function(){var V=_.F().resolve(_.al),l;_.d(function(I){switch(I.nextAddress){case 1:return _.K(I,V.JSC$15959_playerApiPromise,2);case 2:l=I.yieldResult;if(!_.z("kevlar_force_refresh_smart_downloads")){I.jumpTo(3);break}return _.K(I,l.refreshAllStaleEntities(0),4);case 4:return I.return();case 3:return _.K(I,l.refreshAllStaleEntities(),5);case 5:return _.K(I,tJV(V,l),0)}})};
XHP=function(V,l){var I,H;_.d(function(T){switch(T.nextAddress){case 1:return _.K(T,V.JSC$15959_playerApiPromise,2);case 2:I=T.yieldResult;switch((H=l)==null?void 0:H.settingItemId){case "SMART_DOWNLOADS_ENABLED":return T.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return T.jumpTo(4)}T.jumpTo(0);break;case 3:return _.K(T,tJV(V,I,l),6);case 6:T.jumpTo(0);break;case 4:return _.K(T,zN2(V,l),7);case 7:T.jumpTo(0)}})};
r4h=function(V,l){var I,H,T;return _.d(function(x){if(x.nextAddress==1)return _.K(x,V.JSC$15959_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3){I=x.yieldResult;if(!I)return _.hF(new _.Yd("PES is undefined")),x.return(!1);if(!l)return x.return(!1);H=_.Ul(l,"mainVideoEntity");return _.K(x,JuE(I,H,"mainVideoEntity"),3)}T=x.yieldResult;return x.return(T!==void 0)})};
ymE=function(V){var l=_.F().resolve(_.al),I,H,T,x,n,w,N,L,e,k,X;_.d(function(r){switch(r.nextAddress){case 1:return _.K(r,l.JSC$15959_playerApiPromise,2);case 2:I=r.yieldResult;T=(H=V)==null?void 0:H.actions;if(!T)return r.return();x=_.U(T);n=x.next();case 3:if(n.done){r.jumpTo(0);break}w=n.value;L=N=void 0;if(!(((N=w)==null?0:N.entityKey)&&((L=w)==null?0:L.actionType))){r.jumpTo(4);break}e=_.TV(w.entityKey);k=e.entityId;X=e.entityType;return _.K(r,I.queueOfflineAction(k,X,w.actionType),4);case 4:n=
x.next(),r.jumpTo(3)}})};
GAV=function(V,l){var I,H,T,x,n;return _.d(function(w){if(w.nextAddress==1)return _.K(w,V.JSC$15959_prefStorage,2);if(w.nextAddress!=3)return(I=w.yieldResult)?_.K(w,I.get("psi"),3):w.return();H=w.yieldResult;n={isPaused:l,lastSyncTimestamp:(x=(T=H)==null?void 0:T.lastSyncTimestamp)!=null?x:"0"};return _.K(w,I.set("psi",n),0)})};
G1V=function(V){var l=_.F().resolve(_.al),I,H,T,x,n,w,N,L;return _.d(function(e){switch(e.nextAddress){case 1:return _.K(e,l.JSC$15959_playerApiPromise,2);case 2:I=e.yieldResult;T=((H=V)==null?void 0:H.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((w=V)==null?void 0:w.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":x="!*$_ALL_ENTITIES_!*$";n="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return e.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return e.jumpTo(4)}e.jumpTo(5);break;case 3:return _.K(e,GAV(l,T),6);case 6:e.jumpTo(5);break;case 4:return _.K(e,r4h(l,(N=V)==null?void 0:N.videoId),7);case 7:e.yieldResult&&(x=(L=V)==null?void 0:L.videoId,n="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");e.jumpTo(5);break;case 5:if(x&&n)return _.K(e,I.queueOfflineAction(x,"videoPlaybackPositionEntity",n),0);e.jumpTo(0)}})};
ECE=function(V,l){var I;l!==1||((I=V.currentPersistentToast)==null?0:I.opened)?V.openToast():V.currentPersistentToast=void 0};
J4g=function(){var V,l,I,H;return _.d(function(T){if(T.nextAddress==1)return V=navigator,(l=V.storage)!=null&&l.persisted?_.K(T,(I=V.storage)==null?void 0:I.persisted(),2):T.return("PERSISTED_STATE_NOT_SUPPORTED");H=T.yieldResult;return T.return(H?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
oCh=function(){var V,l,I,H;return _.d(function(T){if(T.nextAddress==1)return V=navigator,(l=V.storage)!=null&&l.persist?_.K(T,(I=V.storage)==null?void 0:I.persist(),2):T.return("PERSISTED_STATE_NOT_SUPPORTED");H=T.yieldResult;return T.return(H?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
hNQ=function(){var V,l;return _.d(function(I){switch(I.nextAddress){case 1:return V="PERSISTED_STATE_NOT_SUPPORTED",_.jd(I,2),_.K(I,J4g(),4);case 4:V=I.yieldResult;if(V!=="PERSISTED_STATE_NOT_GRANTED"){I.jumpTo(5);break}return _.K(I,oCh(),6);case 6:V=I.yieldResult;case 5:_.Rv(I,3);break;case 2:l=_.kE(I),l instanceof Error&&_.Gr(l);case 3:return _.tF("persistentStorageStateChecked",{persistedState:V}),I.return(V)}})};
PDE=function(V,l){var I=[],H=!1;l=_.U(l);for(var T=l.next();!T.done;T=l.next()){T=V.moduleRegistry[T.value];var x=void 0,n=void 0;((x=T)==null?0:x.isFetching)&&((n=T)==null?0:n.resolver)?(I.push(T.resolver.promise),H=!0):(T=new _.IQ,T.resolve(void 0),I.push(T.promise))}return H?Promise.all(I):void 0};
DOE=function(V,l,I){I=I===void 0?{}:I;var H=V.defaultViewTransitionOptions,T=l.map(function(n){return n.beforeTransition}),x=l.map(function(n){return n.afterTransition});
return Object.assign({},H,I,{beforeTransition:function(){var n;(n=H.beforeTransition)==null||n.call(H);var w,N;(N=(w=I).beforeTransition)==null||N.call(w);n=_.U(T);for(w=n.next();!w.done;w=n.next())w=w.value,w()},
afterTransition:function(){var n;(n=H.afterTransition)==null||n.call(H);var w,N;(N=(w=I).afterTransition)==null||N.call(w);n=_.U(x);for(w=n.next();!w.done;w=n.next())w=w.value,w()}})};
ZhQ=function(V,l,I){var H,T,x,n,w,N,L;_.d(function(e){if(V.config.disableAllTransitions)return e.return(l());if((H=I)==null||!H.transitionName)return e.return(_.vlg(l,(T=I)==null?void 0:T.viewTransitionOptions));x=I;n=x.transitionName;w=x.viewTransitionOptions;N=V.config.transitionConfigs.get(n);if(!N)return e.return(l());var k;L=(k=V.transitionTasksMap.get(n))!=null?k:[];return e.return(_.vlg(l,DOE(N,L,w)))})};
KJ=function(V,l,I){V.transitionTasksMap.has(l)?V.transitionTasksMap.get(l).push(I):(V=new _.Yd("Transition task registered for unknown transition name",l),_.Gr(V))};
SmB=function(V,l,I){if(V.isInitialized()){var H=Hp(I),T=H==="watch";H=H==="shorts";var x=Hp(l)==="watch";if(T)x||(V.backgroundPageData=l),V.watchPipMode&&x||V.deactivate(I.endpoint);else if(H){if(Hp(l)!=="shorts"){var n;(n=V.getPlayerElement())==null||n.pause()}}else x&&!V.watchPipMode&&(znQ(l,I)?(V.watchWhileMode&&_.VtE(V,!1),_.CG2(V,l)):V.isMiniplayerActive()&&V.watchWhileMode&&V.deactivate());x&&_.I1I(V);V.shortsPipMode&&!H&&(window.focus(),V.deactivate());if(H&&V.shortsPipEnabled||T&&V.watchPipEnabled)_.m1c(V.handleMediaSessionPipActivation);
else if(!V.isMiniplayerActive()&&(V.shortsPipEnabled||V.watchPipEnabled)&&_.Py()&&_.K3c("Chromium")>=120){V=_.g8c().mediaSession;try{V.setActionHandler("enterpictureinpicture",null)}catch(w){}}}};
RN2=function(V,l){var I,H;_.d(function(T){if(T.nextAddress==1){if(!V||!V.navigationEndpoint)return T.return();_.jl().lockupActivation=!0;var x;l?x=_.pW(_.LT("QUEUE",void 0,"Queue")):x=V.longBylineText;H=(I=x)&&V.title?{miniplayerTitle:V.title,miniplayerSubtitle:I,playlistData:null}:void 0;return _.K(T,_.K7N(_.F().resolve(_.sH),V.navigationEndpoint,!0,H),2)}_.jl().userActivation=!0;_.FU(T)})};
kpE=function(V,l){var I,H,T,x,n,w;_.d(function(N){if(N.nextAddress==1){I=_.y(l,_.$_3);if(!I||!I.listId)return N.return();V.index=I.index||V.index||0;H=V.response&&V.response.playingVideoId||void 0;return _.K(N,_.Y5w(V.JSC$10644_playlistNetworkManager,I.listId,V.index,H),2)}T=N.yieldResult;if(!T)return N.return();x=T.playlistId;n=T.playlistPanelRenderer;!V.queueProxy&&x&&n&&x.startsWith("TLPQ")&&(V.queueProxy=new _.Z$(V.JSC$10644_playlistNetworkManager,x,V.setPlaylistData.bind(V),V.clearQueue.bind(V),
_.Kbt(n),V.storage));if(I.openMiniplayer&&(w=_.jeN(n))&&!V.pageManager.isOnWatch()){var L=w,e=I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";V.isMiniplayerActive()?V.openToast(L):RN2(L,e)}V.setPlaylistData(x,n,T.autoplayRenderer);_.FU(N)})};
YkV=function(V,l){var I=_.sg();I.index===void 0&&(I.index=0);I.temporaryItems.push.apply(I.temporaryItems,_.oI(V));if((l.videoId||l.videoIds)&&I.index!==void 0&&l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!I.queueProxy){var H=[];if(I.response){var T=_.F().resolve(_.sH).isMiniplayerActive();if(I.response.playlistPanelRenderer&&I.response.playlistId&&!I.response.playlistId.startsWith("TLPQ")){if(I.pageManager.isOnWatch()||T)H=_.Kbt(I.response.playlistPanelRenderer)}else I.response.playingVideoId&&
!l.openMiniplayer?H.push(I.response.playingVideoId):T&&I.response.playingVideoId&&l.openMiniplayer&&H.push(I.response.playingVideoId)}I.queueProxy=new _.Z$(I.JSC$10644_playlistNetworkManager,"",I.setPlaylistData.bind(I),I.clearQueue.bind(I),H,I.storage);I.queueProxy.JSC$10590_setCurrentIndex(I.index)}I.queueProxy.addVideos(l.videoIds||[l.videoId],l)}hXP(I,V);I.response&&_.pn(I,_.At(I,I.response.autoplayRenderer));I.pageManager.isOnWatch()?I.isMiniplayerActive()&&I.openToast(V[0]):(V=V[0],l=l.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",I.isMiniplayerActive()?I.openToast(V):RN2(V,l))};
QCE=function(V){var l=_.$Nf(V);if(l=="object"||l=="array"){if(typeof V.clone==="function")return V.clone();if(typeof Map!=="undefined"&&V instanceof Map)return new Map(V);if(typeof Set!=="undefined"&&V instanceof Set)return new Set(V);l=l=="array"?[]:{};for(var I in V)l[I]=QCE(V[I]);return l}return V};
c4b=_.V5(function(V,l,I){if(V.nextWireType_!==0)return!1;_.lY(l,I,_.pj(V.decoder_,_.xNK));return!0},_.Uq,_.vn);
WqE=_.V5(function(V,l,I,H){if(V.nextWireType_!==0)return!1;_.rl(l,I,H,_.pj(V.decoder_,_.xNK));return!0},_.Uq,_.vn);
bhr=_.V5(function(V,l,I){if(V.nextWireType_!==1)return!1;var H=V.decoder_;V=_.uQ(H);H=_.uQ(H);V=_.MN(V,H);_.lY(l,I,V);return!0},_.eMW,_.cYq);
qm6=_.V5(function(V,l,I){if(V.nextWireType_!==5)return!1;_.lY(l,I,_.uQ(V.decoder_));return!0},function(V,l,I){l=_.jic(l);
l!=null&&(_.IO(V,I,5),_.Hh(V.encoder_,l))},_.CQ());
MJE=_.V5(function(V,l,I){if(V.nextWireType_!==0)return!1;V=_.eIK(V.decoder_);_.lY(l,I,V===!1?void 0:V);return!0},_.kft,_.SVg);
sCE=_.V5(function(V,l,I){if(V.nextWireType_!==2)return!1;V=_.tY1(V);_.lY(l,I,V===""?void 0:V);return!0},_.Xh3,_.RIt);
p6B=_.V5(function(V,l,I){if(V.nextWireType_!==2)return!1;V=_.rYW(V);_.lY(l,I,V===_.GE()?void 0:V);return!0},_.yVK,_.b5K);
A4E=_.nng(function(V,l,I){if(V.nextWireType_!==0&&V.nextWireType_!==2)return!1;l=_.k2t(l,l[_.NN]|0,I);V.nextWireType_==2?_.GT3(V,BYE,l):l.push(_.A3(V.decoder_));return!0},function(V,l,I){l=_.UV1(_.Iu,l,!0);
if(l!=null&&l.length){I=_.ZQK(V,I);for(var H=0;H<l.length;H++)_.jO1(V.encoder_,l[H]);_.SPt(V,I)}},_.qVy);
uQE=_.V5(function(V,l,I){if(V.nextWireType_!==0)return!1;V=_.A3(V.decoder_);_.lY(l,I,V===0?void 0:V);return!0},_.t61,_.qVy);
vCV=_.V5(function(V,l,I,H){if(V.nextWireType_!==0)return!1;_.rl(l,I,H,_.A3(V.decoder_));return!0},_.t61,_.qVy);
_.II=function(V){this.privateDoNotAccessOrElseWrappedStyleSheet=V};
_.II.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var Ohg=function(V,l){var I=[];for(l=l||0;l<V.length;l+=2)_.k2N(V[l],V[l+1],I);return I.join("&")},CDg=function(V,l){var I=arguments.length==2?Ohg(arguments[1],0):Ohg(arguments,1);
return _.eBZ(V,I)},ajB=function(V){var l=_.YP3(window.location.href),I=l[1],H=[];
I&&I.split("&").forEach(function(T){var x=T.indexOf("=");x=x>=0?T.slice(0,x):T;V.hasOwnProperty(x)||H.push(T)});
l[1]=_.LV0(H.join("&"),_.U_(V));return l[0]+(l[1]?"?"+l[1]:"")+l[2]},Gp2=function(V,l){return new _.og(V.x+l.x,V.y+l.y)},fjE=function(V){return V.previousElementSibling!==void 0?V.previousElementSibling:_.Npa(V.previousSibling,!1)},gCI=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(gCI,_.mV);gCI.prototype.getValue=function(){var V=_.Fr(this,2);if(Array.isArray(V)||V instanceof _.mV)throw Error("aa");return _.t3(this,2)};
var mOQ=function(){var V=_.TR();this.JSC$7777_streamzService=V;V.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",_.I8("cookie_enabled"),_.I8("cookie_3p_enabled"),_.TN("browser"))};
mOQ.prototype.increment=function(V,l,I){this.JSC$7777_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",V,l,I)};
var v9h=function(){var V=_.TR();this.JSC$7780_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.TN("channel_type"))};
v9h.prototype.increment=function(V){this.JSC$7780_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",V)};
var Ov6=function(){var V=_.TR();this.JSC$7783_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.TN("channel_type"))};
Ov6.prototype.increment=function(V){this.JSC$7783_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",V)};
var aLV=function(){var V=_.TR();this.JSC$7786_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.TN("channel_type"))};
aLV.prototype.increment=function(V){this.JSC$7786_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",V)};
var Ceb=function(){var V=_.TR();this.JSC$7789_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Ceb.prototype.increment=function(){this.JSC$7789_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var fLB=function(){var V=_.TR();this.JSC$7792_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.TN("channel_type"),_.TN("error_type"))};
fLB.prototype.increment=function(V,l){this.JSC$7792_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",V,l)};
var g9I=function(){var V=_.TR();this.JSC$7795_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
g9I.prototype.increment=function(){this.JSC$7795_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var mZ2=function(){var V=_.TR();this.JSC$7798_streamzService=V;V.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
mZ2.prototype.increment=function(){this.JSC$7798_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var uth=function(){var V=_.TR();this.JSC$7804_streamzService=V;V.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
uth.prototype.increment=function(){this.JSC$7804_streamzService.JSC$7653_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var ihu=function(V){return V.getCount&&typeof V.getCount=="function"?V.getCount():_.vy(V)||typeof V==="string"?V.length:_.EL.getCount(V)},VSE=function(V,l){if(typeof V.every=="function")return V.every(l,void 0);
if(_.vy(V)||typeof V==="string")return Array.prototype.every.call(V,l,void 0);for(var I=_.r6N(V),H=_.iU(V),T=H.length,x=0;x<T;x++)if(!l.call(void 0,H[x],I&&I[x],V))return!1;return!0},lE2=function(V,l,I,H){var T=new _.OA(null);
V&&_.Vu(T,V);l&&_.ln(T,l);I&&_.IB(T,I);H&&_.H_(T,H);return T},IEB=function(){var V=_.ov&&IF(_.qhW,10)>=0,l;
if(l=_.P0K)l=IF(_.b0Z,10)>=0;var I=_.Lj&&IF(_.qhW,85)>=0;return _.Kj||V||l||I},HDE=function(V){var l=_.Wx0(V);
return l&&IEB()?-V.scrollLeft:l&&_.Sk(V,"overflowX")!="visible"?V.scrollWidth-V.clientWidth-V.scrollLeft:V.scrollLeft},TQB=function(V,l){l=Math.max(l,0);
_.Wx0(V)?IEB()?V.scrollLeft=-l:V.scrollLeft=V.scrollWidth-l-V.clientWidth:V.scrollLeft=l},Wcg=0,pXg=!1;
Bp.prototype.set=function(V){this.relativeTimeStart_=V};
Bp.prototype.reset=function(){this.set(_.xv())};
Bp.prototype.get=function(){return this.relativeTimeStart_};
var BQP=null,xAI=function(){BQP||(BQP=new Bp)},UAE=function(){BQP||(BQP=new Bp)};
_.Uk(UAE,xAI);_.B=uoY.prototype;_.B.JSC$9111_buffer_="";_.B.set=function(V){this.JSC$9111_buffer_=""+V};
_.B.append=function(V,l,I){this.JSC$9111_buffer_+=String(V);if(l!=null)for(var H=1;H<arguments.length;H++)this.JSC$9111_buffer_+=arguments[H];return this};
_.B.clear=function(){this.JSC$9111_buffer_=""};
_.B.getLength=function(){return this.JSC$9111_buffer_.length};
_.B.toString=function(){return this.JSC$9111_buffer_};
var nbE=function(){var V={type:"unit",style:"narrow"};this.listType_=V&&V.type?V.type:"conjunction";this.listStyle_=V&&V.style?V.style:"long";this.listSymbols_=NYh;V=0;switch(this.listStyle_){case "short":V=1;break;case "narrow":V=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[V];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[V];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[V];this.listEndPattern_=
this.listSymbols_.AND_END[V];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[V];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[V];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[V];this.listEndPattern_=this.listSymbols_.OR_END[V];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[V],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[V],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[V],this.listEndPattern_=this.listSymbols_.UNIT_END[V]}};
nbE.prototype.format=function(V){return $AQ(this,V)};
var $AQ=function(V,l){var I=l.length;switch(I){case 0:return"";case 1:return String(l[0]);case 2:return V.listTwoPattern_.replace("{0}",String(l[0])).replace("{1}",String(l[1]))}for(var H=V.listStartPattern_.replace("{0}",String(l[0])).replace("{1}",String(l[1])),T=2;T<I-1;++T)H=V.listMiddlePattern_.replace("{0}",H).replace("{1}",String(l[T]));return V.listEndPattern_.replace("{0}",H).replace("{1}",String(l[I-1]))},UiP=function(){var V={style:1};
this.style_=(V==null?void 0:V.style)||0;this.durationSymbols_=_.A7Z||_.Kc0},dAE=function(V,l){switch(l){default:case "years":return V.durationSymbols_.YEAR;
case "months":return V.durationSymbols_.MONTH;case "weeks":return V.durationSymbols_.WEEK;case "days":return V.durationSymbols_.DAY;case "hours":return V.durationSymbols_.HOUR;case "minutes":return V.durationSymbols_.MINUTE;case "seconds":return V.durationSymbols_.SECOND}},jp=function(V,l,I){a:{I=dAE(V,I);
switch(V.style_){case 1:if(I.LONG!=void 0){V=I.LONG;break a}case 2:if(I.NARROW!=void 0){V=I.NARROW;break a}default:V=I.SHORT;break a}V=void 0}return V?(new _.QNi("{DURATION_VALUE,plural,"+V+"}")).format({DURATION_VALUE:l}):""};
UiP.prototype.format=function(V){var l=[],I=V.years,H=V.months,T=V.weeks,x=V.days,n=V.hours,w=V.minutes;V=V.seconds;I!=null&&l.push(jp(this,I,"years"));H!=null&&l.push(jp(this,H,"months"));T!=null&&l.push(jp(this,T,"weeks"));x!=null&&l.push(jp(this,x,"days"));n!=null&&l.push(jp(this,n,"hours"));w!=null&&l.push(jp(this,w,"minutes"));V!=null&&l.push(jp(this,V,"seconds"));return(new nbE).format(l)};
var wJE=!1,mRg=function(V){_.I1.call(this,V.message||V.description||V.name);this.isMissing=V instanceof x2;this.isTimeout=V instanceof _.cU&&V.errorCode=="net.timeout";this.isCanceled=V instanceof _.WU};
_.t(mRg,_.I1);mRg.prototype.name="BiscottiError";var x2=function(){_.I1.call(this,"Biscotti ID is missing from server")};
_.t(x2,_.I1);x2.prototype.name="BiscottiMissingError";var UD=null,xU6=function(){try{var V=_.SN("yt.ads.biscotti.getId_");return V?V():Pir()}catch(l){return _.bK(l)}},xiB,NQI=function(V){return _.IA({type:"SET_GUIDE_IS_EXPANDED",
payload:V})},KfB=function(V){return _.IA({type:"SET_ONLINE_STATUS",
payload:V})},jYr=function(V,l){return _.IA({type:"SET_TRANSCRIPTION_STATE",
payload:{high:V,low:l}})},YnB=function(V){return _.IA({type:"SET_OVERLAY_STATE",
payload:V})},LfE=0,eD2=function(V,l,I){var H=this;
this.priority=l;this.delay=I;this.jobId=0;this.completionCallback=_.XX;this.wrappedJob=function(){V();H.completionCallback()};
this.id=++LfE};
eD2.prototype.enqueue=function(V){this.completionCallback=V;this.jobId=_.r0.addJob(this.wrappedJob,this.priority,this.delay)};
var YW=function(){_.H6.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.t(YW,_.H6);YW.prototype.addJob=function(V,l,I){V=new eD2(V,l,I);this.taskIdToTask.set(V.id,V);this.isActive?km6(this,V):this.suspendedTasks.add(V);return V.id};
var km6=function(V,l){V.scheduledTasks.add(l);l.enqueue(function(){V.scheduledTasks.delete(l)})};
YW.prototype.cancelJob=function(V){(V=this.taskIdToTask.get(V))&&(this.scheduledTasks.delete(V)?_.r0.cancelJob(V.jobId):this.suspendedTasks.delete(V))};
YW.prototype.pause=function(){var V=this;this.isActive=!1;this.scheduledTasks.forEach(function(l){_.r0.cancelJob(l.jobId);V.suspendedTasks.add(l)});
this.scheduledTasks.clear()};
YW.prototype.start=function(){var V=this;this.isActive=!0;this.suspendedTasks.forEach(function(l){km6(V,l)});
this.suspendedTasks.clear()};
YW.prototype.reset=function(){this.scheduledTasks.forEach(function(V){_.r0.cancelJob(V.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var LJ=function(V,l){this.JSC$10768_networkService_=V;this.pageRequestPromise=l};
LJ.prototype.fetchData=function(V){Ffu(this,this.JSC$10768_networkService_.fetchData(V))};
LJ.prototype.postData=function(V,l){Ffu(this,this.JSC$10768_networkService_.postData(V,l))};
LJ.prototype.requestDataForServiceEndpoint=function(V,l){Ffu(this,this.JSC$10768_networkService_.requestDataForServiceEndpoint(V,l))};
var Ffu=function(V,l){l.then(V.pageRequestPromise.onSuccess,V.pageRequestPromise.onFailure,V.pageRequestPromise)};
LJ.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var ep=function(V){this.buildNetworkRequest_=V;this.pendingRequests_=new Set};
ep.prototype.reset=function(){this.pendingRequests_.forEach(function(V){V.cancel()});
this.pendingRequests_.clear()};
ep.prototype.fetchData=function(V){var l=XJI(this);l.fetchData(V);return l.pageRequestPromise};
ep.prototype.postData=function(V,l){var I=XJI(this);I.postData(V,l);return I.pageRequestPromise};
ep.prototype.requestDataForServiceEndpoint=function(V,l){var I=XJI(this);I.requestDataForServiceEndpoint(V,l);return I.pageRequestPromise};
var XJI=function(V){var l=V.buildNetworkRequest_();V.pendingRequests_.add(l);var I=function(){V.pendingRequests_.delete(l)};
l.pageRequestPromise.then(I,I);return l},zDY=function(V){var l=new YW;
this.JSC$10775_networkService_=V;this.JSC$10775_taskManager_=l;this.JSC$10775_networkManager_=new ep(this.networkRequestFactory_.bind(this))};
_.B=zDY.prototype;_.B.networkRequestFactory_=function(){return new LJ(this.JSC$10775_networkService_,new _.Hf(this.JSC$10775_taskManager_))};
_.B.reset=function(){this.JSC$10775_taskManager_.reset();this.JSC$10775_networkManager_.reset()};
_.B.start=function(){this.JSC$10775_taskManager_.start()};
_.B.pause=function(){this.JSC$10775_taskManager_.pause()};
_.B.getTaskManager=function(){return this.JSC$10775_taskManager_};
_.B.getNetworkManager=function(){return this.JSC$10775_networkManager_};
var Nqu=null,Yxg=[],$2=0,wK=0,dK=null,yz2=function(){var V=(0,_.xQN)();V&&jBI(V,V.mechanism.__iterator__(!0))},Kp=function(V){this.token=V};
Kp.getInstance=function(){var V;return _.d(function(l){if(l.nextAddress==1)return _.K(l,_.u2(),2);V=l.yieldResult;if(!V)return l.return();Kp.instance||(Kp.instance=new Kp(V));return l.return(Kp.instance)})};
var zLY=function(V){var l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,kS6(V.token),2);l=I.yieldResult;return I.return(l.clear("resource-manifest-assets"))})},Nd=function(V){this.token=V};
Nd.getInstance=function(){var V;return _.d(function(l){if(l.nextAddress==1)return _.K(l,_.u2(),2);V=l.yieldResult;if(!V)return l.return();Nd.instance||(Nd.instance=new Nd(V));return l.return(Nd.instance)})};
var FsE=function(V){var l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,kS6(V.token),2);l=I.yieldResult;return _.K(I,l.clear("auth"),0)})},tSh=!1,j9=null,RLQ=void 0,AUh=!1,rzP=function(V){_.I1.call(this,V)};
_.t(rzP,_.poN);var cib=function(){var V=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return V?parseInt(V[1],10):0},Gm6=function(V){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+V)!=-1||document.currentScript.src.indexOf("&"+V)!=-1)},Ebh=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},sKI=function(V){V.length?Jzu(V.shift(),function(){sKI(V)}):blY()},Aig=function(V){return"chrome-extension://"+V+"/cast_sender.js"},Jzu=function(V,
l,I){var H=document.createElement("script");
H.onerror=l;I&&(H.onload=I);_.gp(H,_.tK(V));(document.head||document.documentElement).appendChild(H)},obE=function(){var V=cib(),l=[];
if(V>1){var I=V-1;l.push("//www.gstatic.com/eureka/clank/"+V+"/cast_sender.js");l.push("//www.gstatic.com/eureka/clank/"+I+"/cast_sender.js")}return l},blY=function(){var V=Ebh();
V&&V(!1,"No cast extension found")},M7Q=function(){if(hDr){var V=2,l=Ebh(),I=function(){V--;
V==0&&l&&l(!0)};
window.__onGCastApiAvailable=I;Jzu("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",blY,I)}},WSu=function(){M7Q();
var V=obE();V.push("//www.gstatic.com/eureka/clank/cast_sender.js");sKI(V)},qHr=function(){M7Q();
var V=obE();V.push.apply(V,_.oI(pAQ.map(Aig)));V.push("//www.gstatic.com/eureka/clank/cast_sender.js");sKI(V)},hDr=Gm6("loadCastFramework")||Gm6("loadCastApplicationFramework"),pAQ=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Pcg=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Pcg,_.mV);var DAr=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(DAr,_.mV);var ZDB=function(){var V=new DAr;return _.MU(V,1,3)};var kW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(kW,_.mV);var D7E=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(D7E,_.mV);var Sn6=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Sn6,_.mV);Sn6.prototype.getToken=function(){return _.Rt(this,1)};
Sn6.prototype.setToken=function(V){return _.lR(this,1,V)};
var hJQ=function(V){return _.WY(V,3,_.LQ,_.i4())},PPr=function(V){return _.WY(V,6,_.LQ,_.i4())};var Fq=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Fq,_.mV);Fq.prototype.getToken=function(){return _.fA(this,Sn6,2)};
Fq.prototype.setToken=function(V){return _.j6(this,2,V)};
Fq.prototype.getName=function(){return _.Rt(this,6)};
var RD6=_.wp(Fq);var QYB=function(V,l,I){this.requestMessage=V;this.methodDescriptor=l;this.metadata=I};
QYB.prototype.getMetadata=function(){return this.metadata};var czE=function(V,l){l=l===void 0?{}:l;this.responseMessage=V;this.metadata=l;this.status=null};
czE.prototype.getMetadata=function(){return this.metadata};
czE.prototype.getStatus=function(){return this.status};var Xq=function(V,l,I,H,T){this.name=V;this.methodType="unary";this.requestType=l;this.responseType=I;this.requestSerializeFn=H;this.responseDeserializeFn=T},WfV=function(V,l,I){I=I===void 0?{}:I;
return new QYB(l,V,I)};
Xq.prototype.getName=function(){return this.name};var z7=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(z7,_.mV);z7.prototype.setHeader=function(V){return _.j6(this,1,V)};
z7.prototype.hasHeader=function(){return _.Xr(this,kW,1)};var bDu=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(bDu,_.mV);var qnI=new Xq("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",z7,bDu,function(V){return V.serialize()},_.wp(bDu));var yv=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(yv,_.mV);yv.prototype.setHeader=function(V){return _.j6(this,1,V)};
yv.prototype.hasHeader=function(){return _.Xr(this,kW,1)};var MSB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(MSB,_.mV);var sYb=new Xq("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",yv,MSB,function(V){return V.serialize()},_.wp(MSB));var ts=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(ts,_.mV);ts.prototype.setHeader=function(V){return _.j6(this,1,V)};
ts.prototype.hasHeader=function(){return _.Xr(this,kW,1)};var pJ2=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(pJ2,_.mV);pJ2.prototype.getLink=function(){return _.fA(this,Fq,1)};var AzV=new Xq("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",ts,pJ2,function(V){return V.serialize()},_.wp(pJ2));var ra=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(ra,_.mV);ra.prototype.setHeader=function(V){return _.j6(this,1,V)};
ra.prototype.hasHeader=function(){return _.Xr(this,kW,1)};var u5Q=new Xq("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",ra,Fq,function(V){return V.serialize()},RD6);var vbI=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(vbI,_.mV);var ODE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(ODE,_.mV);ODE.prototype.getUrl=function(){return _.Rt(this,2)};
ODE.prototype.setUrl=function(V){return _.lR(this,2,V)};var CcE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(CcE,_.mV);var aEP=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(aEP,_.mV);var fEV=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(fEV,_.mV);var pKg=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(pKg,_.mV);var s6h=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(s6h,_.mV);var gbb=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(gbb,_.mV);var fbP=_.wp(gbb);var mAV=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(mAV,_.mV);var G7=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(G7,_.mV);G7.prototype.setHeader=function(V){return _.j6(this,1,V)};
G7.prototype.hasHeader=function(){return _.Xr(this,kW,1)};
G7.prototype.getCompletionUrl=function(){return _.Rt(this,6)};
G7.prototype.getDeviceId=function(){return _.Rt(this,11)};var iDV=new Xq("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",G7,gbb,function(V){return V.serialize()},fbP);var VqB=new Set(["SAPISIDHASH","APISIDHASH"]);var laV=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(laV,_.mV);laV.prototype.getMessage=function(){return _.Rt(this,2)};
var Iah=_.wp(laV);var Ei=function(V,l){this.xhrNodeReadableStream_=V.nodeReadableStream;this.grpcResponseDeserializeFn_=l;this.JSC$16869_xhr_=V.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16869_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&HiP(this)},$hE=function(V,l){var I=new TNu;
_.NR(V.JSC$16869_xhr_,"complete",function(){if(V.JSC$16869_xhr_.isSuccess()){var H=V.JSC$16869_xhr_.getResponseText();var T;if(T=l)T=V.JSC$16869_xhr_,T.JSC$7662_xhr_&&T.isComplete()?(T=T.JSC$7662_xhr_.getResponseHeader("Content-Type"),T=T===null?void 0:T):T=void 0,T=T==="text/plain";if(T){if(!atob)throw Error("Lj");H=atob(H)}try{var x=V.grpcResponseDeserializeFn_(H)}catch(w){Js(V,LwY(new _.hm(13,"Error when deserializing response data; error: "+w+(", response: "+H)),I));return}H=_.qoT(V.JSC$16869_xhr_.getStatus());
BN2(V,xh2(V));H==0?Uh6(V,x):Js(V,LwY(new _.hm(H,"Xhr succeeded but the status code is not 200"),I))}else{H=V.JSC$16869_xhr_.getResponseText();x=xh2(V);if(H){var n=nYu(V,H);H=n.code;T=n.details;n=n.metadata}else H=2,T="Rpc failed due to xhr error. uri: "+String(V.JSC$16869_xhr_.JSC$7662_lastUri_)+", error code: "+V.JSC$16869_xhr_.JSC$7662_lastErrorCode_+", error: "+V.JSC$16869_xhr_.getLastError(),n=x;BN2(V,x);Js(V,LwY(new _.hm(H,T,n),I))}})},HiP=function(V){V.xhrNodeReadableStream_.on("data",function(l){if("1"in
l){var I=l["1"];
try{var H=V.grpcResponseDeserializeFn_(I)}catch(T){Js(V,new _.hm(13,"Error when deserializing response data; error: "+T+(", response: "+I)))}H&&Uh6(V,H)}if("2"in l)for(l=nYu(V,l["2"]),I=0;I<V.onStatusCallbacks_.length;I++)V.onStatusCallbacks_[I](l)});
V.xhrNodeReadableStream_.on("end",function(){BN2(V,xh2(V));for(var l=0;l<V.onEndCallbacks_.length;l++)V.onEndCallbacks_[l]()});
V.xhrNodeReadableStream_.on("error",function(){if(V.JSC$16869_onErrorCallbacks_.length!=0){var l=V.JSC$16869_xhr_.JSC$7662_lastErrorCode_;l!==0||V.JSC$16869_xhr_.isSuccess()||(l=6);var I=-1;switch(l){case 0:var H=2;break;case 7:H=10;break;case 8:H=4;break;case 6:I=V.JSC$16869_xhr_.getStatus();H=_.qoT(I);break;default:H=14}BN2(V,xh2(V));l=_.ToB(l)+", error: "+V.JSC$16869_xhr_.getLastError();I!=-1&&(l+=", http status code: "+I);Js(V,new _.hm(H,l))}})},xh2=function(V){var l={},I=d_B(V.JSC$16869_xhr_);
Object.keys(I).forEach(function(H){l[H]=I[H]});
return l},nYu=function(V,l){var I=2,H={};
try{var T=Iah(l);I=_.lO(T,1);var x=T.getMessage();_.m2(T,gCI,3,_.i4()).length&&(H["grpc-web-status-details-bin"]=l)}catch(n){V.JSC$16869_xhr_&&V.JSC$16869_xhr_.getStatus()===404?(I=5,x="Not Found: "+String(V.JSC$16869_xhr_.JSC$7662_lastUri_)):(I=14,x="Unable to parse RpcStatus: "+n)}return{code:I,details:x,metadata:H}};
Ei.prototype.on=function(V,l){V=="data"?this.onDataCallbacks_.push(l):V=="metadata"?this.onMetadataCallbacks_.push(l):V=="status"?this.onStatusCallbacks_.push(l):V=="end"?this.onEndCallbacks_.push(l):V=="error"&&this.JSC$16869_onErrorCallbacks_.push(l);return this};
var of=function(V,l){l=V.indexOf(l);l>-1&&V.splice(l,1)};
Ei.prototype.removeListener=function(V,l){V=="data"?of(this.onDataCallbacks_,l):V=="metadata"?of(this.onMetadataCallbacks_,l):V=="status"?of(this.onStatusCallbacks_,l):V=="end"?of(this.onEndCallbacks_,l):V=="error"&&of(this.JSC$16869_onErrorCallbacks_,l);return this};
Ei.prototype.cancel=function(){this.JSC$16869_xhr_.abort()};
var Uh6=function(V,l){for(var I=0;I<V.onDataCallbacks_.length;I++)V.onDataCallbacks_[I](l)},BN2=function(V,l){for(var I=0;I<V.onMetadataCallbacks_.length;I++)V.onMetadataCallbacks_[I](l)},Js=function(V,l){for(var I=0;I<V.JSC$16869_onErrorCallbacks_.length;I++)V.JSC$16869_onErrorCallbacks_[I](l)};
Ei.prototype.cancel=Ei.prototype.cancel;Ei.prototype.removeListener=Ei.prototype.removeListener;Ei.prototype.on=Ei.prototype.on;var TNu=function(){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.t(TNu,Error);var hs=function(V){this.JSC$16878_worker_=V.worker||null;this.JSC$16878_streamBinaryChunks_=V.streamBinaryChunks||!1;this.JSC$16878_credentialsMode_=void 0};
_.Uk(hs,_.swq);hs.prototype.createInstance=function(){var V=new P8(this.JSC$16878_worker_,this.JSC$16878_streamBinaryChunks_);this.JSC$16878_credentialsMode_&&V.setCredentialsMode(this.JSC$16878_credentialsMode_);return V};
hs.prototype.setCredentialsMode=function(V){this.JSC$16878_credentialsMode_=V};
var P8=function(V,l){_.tm.call(this);this.JSC$16882_worker_=V;this.JSC$16882_streamBinaryChunks_=l;this.JSC$16882_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$16882_responseHeaders_=null;this.JSC$16882_method_="GET";this.JSC$16882_url_="";this.inProgress_=!1;this.JSC$16882_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.Uk(P8,_.tm);P8.prototype.open=function(V,l){if(this.readyState!=0)throw this.abort(),Error("Mj");this.JSC$16882_method_=V;this.JSC$16882_url_=l;this.readyState=1;D_(this)};
P8.prototype.send=function(V){if(this.readyState!=1)throw this.abort(),Error("Nj");this.inProgress_=!0;var l={headers:this.requestHeaders_,method:this.JSC$16882_method_,credentials:this.JSC$16882_credentialsMode_,cache:void 0};V&&(l.body=V);(this.JSC$16882_worker_||_.nK).fetch(new Request(this.JSC$16882_url_,l)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
P8.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,Z_(this));this.readyState=0};
P8.prototype.handleResponse_=function(V){if(this.inProgress_&&(this.fetchResponse_=V,this.JSC$16882_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16882_responseHeaders_=V.headers,this.readyState=2,D_(this)),this.inProgress_&&(this.readyState=3,D_(this),this.inProgress_)))if(this.responseType==="arraybuffer")V.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.nK.ReadableStream!==
"undefined"&&"body"in V){this.currentReader_=V.body.getReader();if(this.JSC$16882_streamBinaryChunks_){if(this.responseType)throw Error("Oj");this.response=[]}else this.response=this.responseText="",this.JSC$16882_textDecoder_=new TextDecoder;dhY(this)}else V.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var dhY=function(V){V.currentReader_.read().then(V.handleDataFromStream_.bind(V)).catch(V.handleSendFailure_.bind(V))};
P8.prototype.handleDataFromStream_=function(V){if(this.inProgress_){if(this.JSC$16882_streamBinaryChunks_&&V.value)this.response.push(V.value);else if(!this.JSC$16882_streamBinaryChunks_){var l=V.value?V.value:new Uint8Array(0);if(l=this.JSC$16882_textDecoder_.decode(l,{stream:!V.done}))this.response=this.responseText+=l}V.done?Z_(this):D_(this);this.readyState==3&&dhY(this)}};
P8.prototype.handleResponseText_=function(V){this.inProgress_&&(this.response=this.responseText=V,Z_(this))};
P8.prototype.handleResponseArrayBuffer_=function(V){this.inProgress_&&(this.response=V,Z_(this))};
P8.prototype.handleSendFailure_=function(){this.inProgress_&&Z_(this)};
var Z_=function(V){V.readyState=4;V.fetchResponse_=null;V.currentReader_=null;V.JSC$16882_textDecoder_=null;D_(V)};
P8.prototype.setRequestHeader=function(V,l){this.requestHeaders_.append(V,l)};
P8.prototype.getResponseHeader=function(V){return this.JSC$16882_responseHeaders_?this.JSC$16882_responseHeaders_.get(V.toLowerCase())||"":""};
P8.prototype.getAllResponseHeaders=function(){if(!this.JSC$16882_responseHeaders_)return"";for(var V=[],l=this.JSC$16882_responseHeaders_.entries(),I=l.next();!I.done;)I=I.value,V.push(I[0]+": "+I[1]),I=l.next();return V.join("\r\n")};
P8.prototype.setCredentialsMode=function(V){this.JSC$16882_credentialsMode_=V};
var D_=function(V){V.onreadystatechange&&V.onreadystatechange.call(V)};
Object.defineProperty(P8.prototype,"withCredentials",{get:function(){return this.JSC$16882_credentialsMode_==="include"},
set:function(V){this.setCredentialsMode(V?"include":"same-origin")}});var wdr=function(V){var l="";_.EL.forEach(V,function(I,H){l+=H;l+=":";l+=I;l+="\r\n"});
return l},NNP=function(V,l,I){if(_.EL.isEmpty(I))return V;
I=wdr(I);if(typeof V==="string")return _.tP(V,_.Q0(l),I);_.qx(V,l,I);return V};var KkI=function(){this.isInputValid_=!0;this.JSC$16888_streamPos_=0;this.leftoverInput_=""};
KkI.prototype.isInputValid=function(){return this.isInputValid_};var e9=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16891_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
e9.prototype.isInputValid=function(){return this.state_!=3};
var Sp=function(V,l,I,H){V.state_=3;V.errorMessage_="The stream is broken @"+V.JSC$16891_streamPos_+"/"+I+". Error: "+H+". With input:\n"+l;throw Error(V.errorMessage_);};
e9.prototype.acceptsBinaryInput=function(){return!0};
e9.prototype.parse=function(V){function l(N){N&128&&Sp(x,n,w,"invalid tag");(N&7)!=2&&Sp(x,n,w,"invalid wire type");x.tag_=N>>>3;x.tag_!=1&&x.tag_!=2&&x.tag_!=15&&Sp(x,n,w,"unexpected tag");x.state_=1;x.length_=0;x.countLengthBytes_=0}
function I(N){x.countLengthBytes_++;x.countLengthBytes_==5&&N&240&&Sp(x,n,w,"message length too long");x.length_|=(N&127)<<(x.countLengthBytes_-1)*7;N&128||(x.state_=2,x.countMessageBytes_=0,typeof Uint8Array!=="undefined"?x.messageBuffer_=new Uint8Array(x.length_):x.messageBuffer_=Array(x.length_),x.length_==0&&T())}
function H(N){x.messageBuffer_[x.countMessageBytes_++]=N;x.countMessageBytes_==x.length_&&T()}
function T(){if(x.tag_<15){var N={};N[x.tag_]=x.messageBuffer_;x.result_.push(N)}x.state_=0}
for(var x=this,n=V instanceof Array?V:new Uint8Array(V),w=0;w<n.length;){switch(x.state_){case 3:Sp(x,n,w,"stream already broken");break;case 0:l(n[w]);break;case 1:I(n[w]);break;case 2:H(n[w]);break;default:throw Error("Qj`"+x.state_);}x.JSC$16891_streamPos_++;w++}V=x.result_;x.result_=[];return V.length>0?V:null};var kbQ=function(){this.errorMessage_=null;this.JSC$16894_streamPos_=0;this.base64Decoder_=new KkI;this.pbParser_=new e9};
kbQ.prototype.isInputValid=function(){return this.errorMessage_===null};
var jRY=function(V,l,I){V.errorMessage_="The stream is broken @"+V.JSC$16894_streamPos_+". Error: "+I+". With input:\n"+l;throw Error(V.errorMessage_);};
kbQ.prototype.acceptsBinaryInput=function(){return!1};
kbQ.prototype.parse=function(V){this.errorMessage_!==null&&jRY(this,V,"stream already broken");var l=null;try{var I=this.base64Decoder_;if(!I.isInputValid_)throw I.isInputValid_=!1,Error("Pj`"+I.JSC$16888_streamPos_+"`stream already broken`"+V);I.leftoverInput_+=V;var H=Math.floor(I.leftoverInput_.length/4);if(H==0)var T=null;else{try{var x=_.z4t(I.leftoverInput_.slice(0,H*4))}catch(N){var n=I.leftoverInput_,w=N.message;I.isInputValid_=!1;throw Error("Pj`"+I.JSC$16888_streamPos_+"`"+w+"`"+n);}I.JSC$16888_streamPos_+=
H*4;I.leftoverInput_=I.leftoverInput_.slice(H*4);T=x}l=T===null?null:this.pbParser_.parse(T)}catch(N){jRY(this,V,N.message)}this.JSC$16894_streamPos_+=V.length;return l};var eJE=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16897_streamPos_=0;this.result_=[];this.statusParsed_=!1};
eJE.prototype.isInputValid=function(){return this.errorMessage_===null};
eJE.prototype.acceptsBinaryInput=function(){return!1};
eJE.prototype.parse=function(V){function l(N){x.state_=6;x.errorMessage_="The stream is broken @"+x.JSC$16897_streamPos_+"/"+n+". Error: "+N+". With input:\n";throw Error(x.errorMessage_);}
function I(){x.jsonStreamParser_=new _.xY({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function H(N){if(N)for(var L=0;L<N.length;L++){var e={};e[1]=N[L];x.result_.push(e)}}
function T(N){if(N){(x.statusParsed_||N.length>1)&&l("extra status: "+N);x.statusParsed_=!0;var L={};L[2]=N[0];x.result_.push(L)}}
for(var x=this,n=0;n<V.length;){var w;if(w=x.state_!==2){a:{for(;n<V.length;){if(!_.Bd(V[n])){w=!0;break a}n++;x.JSC$16897_streamPos_++}w=!1}w=!w}if(w)return null;switch(x.state_){case 6:l("stream already broken");break;case 0:V[n]==="["?(x.state_=1,n++,x.JSC$16897_streamPos_++):l("unexpected input token");break;case 1:V[n]==="["?(x.state_=2,I()):V[n]===","||V.slice(n,n+5)=="null,"?x.state_=3:V[n]==="]"?(x.state_=5,n++,x.JSC$16897_streamPos_++):l("unexpected input token");break;case 2:w=x.jsonStreamParser_.parse(V.substring(n));
H(w);x.jsonStreamParser_.done()?(x.state_=3,w=x.jsonStreamParser_.JSC$9238_buffer_,x.JSC$16897_streamPos_+=V.length-n-w.length,V=w,n=0):(x.JSC$16897_streamPos_+=V.length-n,n=V.length);break;case 3:V[n]===","||V.slice(n,n+5)=="null,"?(x.state_=4,I(),x.jsonStreamParser_.parse("["),n+=V[n]===","?1:5,x.JSC$16897_streamPos_++):V[n]==="]"&&(x.state_=5,n++,x.JSC$16897_streamPos_++);break;case 4:w=x.jsonStreamParser_.parse(V.substring(n));T(w);x.jsonStreamParser_.done()?(x.state_=5,w=x.jsonStreamParser_.JSC$9238_buffer_,
x.JSC$16897_streamPos_+=V.length-n-w.length,V=w,n=0):(x.JSC$16897_streamPos_+=V.length-n,n=V.length);break;case 5:l("extra input after stream end")}}return x.result_.length>0?(V=x.result_,x.result_=[],V):null};var YME=function(V){this.JSC$16900_xhr_=V;this.JSC$16900_parser_=null;this.status_=this.JSC$16900_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16900_textDecoder_=null;this.JSC$16900_eventHandler_=new _.ig(this);this.JSC$16900_eventHandler_.listen(this.JSC$16900_xhr_,"readystatechange",this.JSC$16902_readyStateChangeHandler_)},Rf=function(V,l){V.status_!=l&&(V.status_=l,V.statusHandler_&&V.statusHandler_())},Qv=function(V){V.JSC$16900_eventHandler_.removeAll();
if(V.JSC$16900_xhr_){var l=V.JSC$16900_xhr_;V.JSC$16900_xhr_=null;l.abort();l.dispose()}};
YME.prototype.getStatus=function(){return this.status_};
YME.prototype.JSC$16902_readyStateChangeHandler_=function(V){V=V.target;try{if(V==this.JSC$16900_xhr_)a:{var l=_.Zx(this.JSC$16900_xhr_),I=this.JSC$16900_xhr_.JSC$7662_lastErrorCode_,H=this.JSC$16900_xhr_.getStatus(),T=this.JSC$16900_xhr_.getResponseText();V=[];if(this.JSC$16900_xhr_.getResponse()instanceof Array){var x=this.JSC$16900_xhr_.getResponse();x.length>0&&x[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,V=x)}if(!(l<3||l==3&&!T&&V.length==0))if(H=H==200||H==206,l==4&&(I==8?Rf(this,
7):I==7?Rf(this,8):H||Rf(this,3)),this.JSC$16900_parser_||(this.JSC$16900_parser_=Fwb(this.JSC$16900_xhr_),this.JSC$16900_parser_==null&&Rf(this,5)),this.status_>2)Qv(this);else{if(V.length>this.JSC$16900_pos_){var n=V.length;I=[];try{if(this.JSC$16900_parser_.acceptsBinaryInput())for(var w=0;w<n;w++){var N=this.JSC$16900_parser_.parse(Array.from(V[w]));N&&(I=I.concat(N))}else{N="";if(!this.JSC$16900_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Rj");this.JSC$16900_textDecoder_=new TextDecoder}for(w=
0;w<n;w++)N+=this.JSC$16900_textDecoder_.decode(V[w],{stream:l==4&&w==n-1});I=this.JSC$16900_parser_.parse(N)}V.splice(0,n);I&&this.dataHandler_(I)}catch(e){Rf(this,5);Qv(this);break a}}else if(T.length>this.JSC$16900_pos_){w=T.slice(this.JSC$16900_pos_);this.JSC$16900_pos_=T.length;try{var L=this.JSC$16900_parser_.parse(w);L!=null&&this.dataHandler_&&this.dataHandler_(L)}catch(e){Rf(this,5);Qv(this);break a}}l==4?(T.length!=0||this.hasStreamingResponseData_?Rf(this,2):Rf(this,4),Qv(this)):Rf(this,
1)}}}catch(e){Rf(this,6),Qv(this)}};var Lku=function(V){V=this.xhrReader_=V;var l=(0,_.zN)(this.onData_,this);V.dataHandler_=l;V=this.xhrReader_;l=(0,_.zN)(this.onStatusChange_,this);V.statusHandler_=l;this.JSC$16904_callbackMap_={};this.callbackOnceMap_={}};
_.B=Lku.prototype;_.B.on=function(V,l){var I=this.JSC$16904_callbackMap_[V];I||(I=[],this.JSC$16904_callbackMap_[V]=I);I.push(l);return this};
_.B.addListener=function(V,l){this.on(V,l);return this};
_.B.removeListener=function(V,l){var I=this.JSC$16904_callbackMap_[V];I&&_.A1(I,l);(V=this.callbackOnceMap_[V])&&_.A1(V,l);return this};
_.B.once=function(V,l){var I=this.callbackOnceMap_[V];I||(I=[],this.callbackOnceMap_[V]=I);I.push(l);return this};
_.B.onData_=function(V){var l=this.JSC$16904_callbackMap_.data;l&&eiQ(V,l);(l=this.callbackOnceMap_.data)&&eiQ(V,l);this.callbackOnceMap_.data=[]};
var eiQ=function(V,l){for(var I={},H=0;H<V.length;I={message$jscomp$950:void 0},H++)I.message$jscomp$950=V[H],l.forEach(function(T){return function(x){try{x(T.message$jscomp$950)}catch(n){}}}(I))};
Lku.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:kZ6(this,"readable");break;case 5:case 6:case 4:case 7:case 3:kZ6(this,"error");break;case 8:kZ6(this,"close");break;case 2:kZ6(this,"end")}};
var kZ6=function(V,l){var I=V.JSC$16904_callbackMap_[l];I&&I.forEach(function(H){try{H()}catch(T){}});
(I=V.callbackOnceMap_[l])&&I.forEach(function(H){H()});
V.callbackOnceMap_[l]=[]};var Fk6=function(){var V={format:"jspb"};V=V===void 0?{}:V;this.suppressCorsPreflight_=V.suppressCorsPreflight||_.SN("suppressCorsPreflight",V)||!1;this.JSC$16907_withCredentials_=V.withCredentials||_.SN("withCredentials",V)||!1;this.streamInterceptors_=V.streamInterceptors||[];this.unaryInterceptors_=V.unaryInterceptors||[];this.workerScope_=V.workerScope;this.chunkedServerStreaming_=V.useFetchDownloadStreams||!1},ywV=function(V,l,I,H,T,x){x=x===void 0?{}:x;
var n=l.substring(0,l.length-T.name.length),w,N=(w=x)==null?void 0:w.signal;return Xdh(function(L){return new Promise(function(e,k){if(N==null?0:N.aborted){var X=new _.hm(1,"Aborted");X.cause=N.reason;k(X)}else{var r={},E=ziu(V,L,n);E.on("error",function(D){return k(D)});
E.on("metadata",function(D){r=D});
E.on("data",function(D){var Z=r;Z=Z===void 0?{}:Z;e(new czE(D,Z))});
N&&N.addEventListener("abort",function(){E.cancel();var D=new _.hm(1,"Aborted");D.cause=N.reason;k(D)})}})},V.unaryInterceptors_).call(V,WfV(T,I,H)).then(function(L){return L.responseMessage})},c8=function(V,l,I,H,T){var x=x===void 0?{}:x;
return ywV(V,l,I,H,T,x)};
Fk6.prototype.serverStreaming=function(V,l,I,H){var T=this,x=V.substring(0,V.length-H.name.length);return Xdh(function(n){var w=n.methodDescriptor,N=n.getMetadata(),L=tqQ(T,!1);N=rwu(T,N,L,x+w.getName());var e=GZE(L,w.responseDeserializeFn,!0);n=w.requestSerializeFn(n.requestMessage);L.send(N,"POST",n);return e},this.streamInterceptors_).call(this,WfV(H,l,I))};
var ziu=function(V,l,I){var H=l.methodDescriptor,T=l.getMetadata(),x=tqQ(V,!0);V=rwu(V,T,x,I+H.getName());I=GZE(x,H.responseDeserializeFn,!1);$hE(I,T["X-Goog-Encode-Response-If-Executable"]=="base64");l=H.requestSerializeFn(l.requestMessage);x.send(V,"POST",l);return I},tqQ=function(V,l){l=V.chunkedServerStreaming_&&!l;
return V.workerScope_||l?new _.Dx(new hs({worker:V.workerScope_,streamBinaryChunks:l})):new _.Dx},rwu=function(V,l,I,H){l["Content-Type"]="application/json+protobuf";
l["X-User-Agent"]="grpc-web-javascript/0.1";var T=l.Authorization;if(T&&VqB.has(T.split(" ")[0])||V.JSC$16907_withCredentials_)I.JSC$7662_withCredentials_=!0;if(V.suppressCorsPreflight_)H=NNP(H,"$httpHeaders",l);else for(var x in l)I.headers.set(x,l[x]);return H},GZE=function(V,l,I){if(I){I=new YME(V);
var H=new Lku(I)}return new Ei({xhr:V,nodeReadableStream:H},l)},Xdh=function(V,l){return l.reduce(function(I,H){return function(T){return H.intercept(T,I)}},V)};var EYr=function(V){this.client_=new Fk6;this.hostname_=V==void 0?V:V.replace(/\/+$/,"")};
_.B=EYr.prototype;_.B.JSC$16921_depositGoogleCredential=function(V,l){return c8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",V,l||{},sYb)};
_.B.deleteLink=function(V,l){return c8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",V,l||{},qnI)};
_.B.JSC$16921_finishOAuth=function(V,l){return c8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",V,l||{},AzV)};
_.B.getLink=function(V,l){return c8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",V,l||{},u5Q)};
_.B.startLinkingSession=function(V,l){return c8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",V,l||{},iDV)};var JwE=[0,MJE,1,A4E,[0,_.gl,[0,sCE,-1]],[0,p6B],[0,uQE,-1]];var oYB=function(){this.storage=new Map},PWr=function(V,l,I,H,T){if(!V.storage.has(l))return null;
V=_.U(V.storage.get(l));for(l=V.next();!l.done;l=V.next())if(l=l.value,!T||l.linkName===T)if(I&&l.scopes&&hig(l.scopes,I)||H&&l.capabilities&&hig(l.capabilities,H))return l;return null},DhE=function(V,l,I){if(!I)V.storage.delete(l);
else if(V.storage.has(l)){var H=V.storage.get(l).filter(function(T){return T.linkName!==I});
H.length>0?V.storage.set(l,H):V.storage.delete(l)}},hig=function(V,l){l=_.U(l);
for(var I=l.next();!I.done;I=l.next())if(!V.has(I.value))return!1;return!0};var ZiE=function(){var V=_.h6("LINK_GAL_DOMAIN");this.alsDomain1p=_.h6("LINK_GAL_DOMAIN");this.alsDomain3p=V;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},SMV=function(V,l){V.apiKey=l;
return V};
ZiE.prototype.build=function(){var V={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Sj");V.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Tj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Uj");V.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(V.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)V.apiKey=
this.apiKey,V.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Vj");V.oauthToken=this.oauthToken;V.alsDomain=this.alsDomain3p}V.clientXd3=this.clientXd3;V.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(V.authUser=this.authUser);this.bucket!==void 0&&(V.bucket=this.bucket);this.completionUrl!==void 0&&(V.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(V.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(V.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(V.locale=this.locale);V.loggerType=this.loggerType;V.clientEnvironment=this.clientEnvironment;V.colorScheme=this.colorScheme;V.showCloseOption=this.showCloseOption;return V};var k2=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(k2,_.mV);var Rib=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(Rib,_.mV);var QRB=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(QRB,_.mV);var XC=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(XC,_.mV);var cwY=function(V){return _.Qh(V,1)};var WkQ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(WkQ,_.mV);var EjY=_.wp(WkQ),FC=[1,2,3,4,5];var y9Q=function(V){try{return EjY(V)}catch(l){return null}},bib=function(){},tME=function(V,l){switch(_.Gp(l,FC)){case 4:return(l=_.bQ(l,QRB,4,FC))&&V.logStateTransition(_.Qh(l,1)),!0;
case 5:return(l=_.bQ(l,Rib,5,FC))&&V.logInternalEvent(_.Qh(l,1)),!0}return!1},J92=function(V){switch(V){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.AB(V)}};var XKh=function(V,l){var I=this;this.validator=V;this.messageListener=l;this.dismissCallback=function(){qMB(I,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16950_receiveMessage=function(H){H.type==="message"&&(H=H.event_,H!==null&&(new URL(I.iframe.src)).origin===H.origin&&I.validator(H.data,H.origin)&&!I.messageListener(H.data)&&(I.JSC$16950_resolveCb!==void 0&&I.JSC$16950_resolveCb(H.data),MqB(I)))}},GbI=function(V,l,I){V.uiHandler!==void 0&&qMB(V,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(H,T){V.JSC$16950_resolveCb=H;V.JSC$16950_rejectCb=T;V.iframe=document.createElement("iframe");_.AV(V.iframe,l);V.uiHandler=I.displayContent(V.iframe,V.dismissCallback);_.NR(window,"message",V.JSC$16950_receiveMessage,!1,V)})},qMB=function(V,l){V.JSC$16950_rejectCb!==void 0&&V.JSC$16950_rejectCb(l);
MqB(V)},MqB=function(V){V.uiHandler!==void 0&&V.uiHandler.hideContent();
_.y$(window,"message",V.JSC$16950_receiveMessage,!1,V);V.JSC$16950_resolveCb=void 0;V.JSC$16950_rejectCb=void 0;V.uiHandler=void 0;V.iframe=void 0};var sRb=function(V){if(V===2){var l;V=((l=window)==null?0:l.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return V},r9V=function(V){V=sRb(V);
switch(V){case 0:return"light";case 1:return"dark";default:_.AB(V)}};var zJ2=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),pdP=function(V,l){this.JSC$16962_linkingSession=V;this.noticeConfig=l;this.displayInfoMap=new Map;var I=new Map;if(_.Xr(this.JSC$16962_linkingSession,CcE,7))for(V=_.fA(this.JSC$16962_linkingSession,CcE,7),V=_.m2(V,ODE,1,_.i4()),V=_.U(V),l=V.next();!l.done;l=V.next())l=l.value,I.set(_.Qh(l,1),_.dly(_.fA(l,_.EmN,3)));if(I.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){l=this.noticeConfig.enabledDataUsageNoticeUis;V=l.has(0)?I.get(1):void 0;l=l.has(1)?I.get(2):void 0;I=V!==void 0&&l!==void 0?I.get(3):void 0;var H=this.noticeConfig.nestedOrigins;var T=new WkQ;var x=new k2;T=_.Yn(T,2,FC,x);x=new WkQ;var n=new k2;x=_.Yn(x,3,FC,n);n=[];V!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:V,lastEvent:T,nestedOrigins:H}]),n.push({trustedUrl:V,lastEvent:T,nestedOrigins:H}));l!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:l,lastEvent:x,nestedOrigins:H}]),n.push({trustedUrl:l,lastEvent:x,nestedOrigins:H}));I!==void 0?this.displayInfoMap.set(3,[{trustedUrl:I,lastEvent:x,nestedOrigins:H}]):this.displayInfoMap.set(3,n)}};var Awb=function(V){var l=new oYB;this.galService=V;this.galCache=l};
Awb.prototype.getLink=function(V){var l=V.serviceId;var I=V.scopes;var H=V.capabilities;var T=V.linkName;var x=this,n;return _.d(function(w){if(H!==void 0&&I!==void 0)throw Error("Wj");n=PWr(x.galCache,l,I,H,T);return n!==null?w.return(n):w.return(x.galService.getLink({serviceId:l,sessionId:Math.floor(Math.random()*2147483648),scopes:I,capabilities:H,linkName:T}).then(function(N){N=Z66(N);var L=x.galCache;L.storage.has(l)?L.storage.get(l).push(N):L.storage.set(l,[N]);return N}))})};
Awb.prototype.deleteLink=function(V,l,I){var H=this;return _.d(function(T){DhE(H.galCache,V,I);return T.return(H.galService.deleteLink({serviceId:V,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:l,linkName:I}).then(function(){return!0}))})};var vY6=function(V,l){var I=this;this.validator=V;this.msgHandler=l;this.closedPopupTimeout=this.JSC$16984_rejectCb=this.JSC$16984_resolveCb=this.popup=null;this.JSC$16984_receiveMessage=function(H){if(H!==null&&(H=H.event_,H.source===I.popup)){var T=H.data;if(I.validator(T,H.origin)){var x;(x=I.msgHandler)!=null&&x.call(I,T)||(I.JSC$16984_resolveCb!==null&&I.JSC$16984_resolveCb(T),uab(I))}}}};
vY6.prototype.open=function(V,l){var I=this;this.popup!==null&&OiE(this);return new Promise(function(H,T){I.JSC$16984_resolveCb=H;I.JSC$16984_rejectCb=T;I.popup=_.uY(window,V,"",l);_.NR(window,"message",I.JSC$16984_receiveMessage,!1,I);CWI(I)})};
var OiE=function(V,l){V.JSC$16984_rejectCb!==null&&V.JSC$16984_rejectCb(l);uab(V)},uab=function(V){V.closedPopupTimeout&&(V.closedPopupTimeout.cancel(),V.closedPopupTimeout=null);
V.popup&&V.popup.close();_.y$(window,"message",V.JSC$16984_receiveMessage,!1,V);V.popup=null;V.JSC$16984_resolveCb=null;V.JSC$16984_rejectCb=null},CWI=function(V){V.closedPopupTimeout=_.iGa(100).then(function(){V.popup?V.popup.closed?aaE(V):CWI(V):OiE(V,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},aaE=function(V){V.closedPopupTimeout=_.iGa(100).then(function(){OiE(V,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var faI=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),gYY=function(V,l,I,H,T,x,n,w,N,L){var e=this;this.serviceId=V;this.sessionId=l;this.galService=I;this.oauthDetails=H;this.galLogger=T;this.interactionMode=x;this.redirectServiceUrl=n;this.consentLanguageKeys=w;this.dynamicUrlParameters=N;this.partnerConfigMinReadTimestamp=L;this.started=!1;this.JSC$16990_dataValidator=function(k,
X){var r=faI.has(X);r||e.redirectServiceUrl===void 0||(r=e.redirectServiceUrl===X);return r?k.sentinel==="gdi":!1}};
gYY.prototype.complete=function(){var V=this,l;return _.d(function(I){if(V.interactionMode!==1)return I.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));l=yB.getRedirectStateFromUri();return l===null?I.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):I.return(mhP(V,l))})};
gYY.prototype.start=function(){var V=this,l;return _.d(function(I){if(V.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Rt(V.oauthDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(V.interactionMode===1)return yB.setLocation(_.Rt(V.oauthDetails,1)),I.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));V.started=!0;V.galLogger.logStateTransition(5);
l=yB.getPostMessagePopup(V.JSC$16990_dataValidator);return I.return(l.open(_.Rt(V.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(H){V.started=!1;var T=V.galLogger;if((H==null?void 0:H.error)!==void 0)throw T.logInternalEvent(59),Error("Xj");if((H==null?void 0:H.redirect_state)===void 0)throw T.logInternalEvent(131),Error("Yj");return mhP(V,H.redirect_state)}).catch(function(H){V.started=
!1;
return H.errorCode!==void 0?{statusCode:H.errorCode,statusMessage:H.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var mhP=function(V,l){return _.d(function(I){return I.return(iiE(V.galService,{serviceId:V.serviceId,sessionId:V.sessionId,dynamicUrlParameters:V.dynamicUrlParameters,redirectState:l,consentLanguageKeys:V.consentLanguageKeys,partnerConfigMinReadTimestamp:V.partnerConfigMinReadTimestamp}).then(function(H){var T=H.getLink();T={statusCode:1,link:Z66(T)};Jor(_.t3(H,3))!==void 0&&(T.callerState=Jor(_.t3(H,3)));V.galLogger.logInternalEvent(134);return T}))})},yB={getPostMessagePopup:function(V){return new vY6(V)},
getRedirectStateFromUri:function(){var V=_.Wv(yB.getLocation()).fragment_;return(new _.UO(V)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(V){_.idK(window.location,_.S6(V))},
createOAuthFlow:function(V,l){return new gYY(V.serviceId,V.sessionId,V.galService,l,V.galLogger,V.interactionMode,V.redirectServiceUrl,V.consentLanguageKeys,V.dynamicUrlParameters,V.partnerConfigMinReadTimestamp)}};var VKg=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(VKg,_.mV);var l0E=_.wp(VKg);var I0b=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),H76=function(V,l,I,H,T,x,n,w,N){var L=this;this.serviceId=V;this.sessionId=l;this.galService=I;this.gsiWebFlowDetails=H;this.colorScheme=T;this.showCloseOption=x;this.galLogger=n;this.interactionMode=w;this.redirectServiceUrl=N;this.started=!1;this.JSC$17002_dataValidator=function(e,k){var X=I0b.has(k);X||L.redirectServiceUrl===
void 0||(X=L.redirectServiceUrl===k);return X?e.sentinel==="gal":!1};
this.logEventProcessor=function(e){return e.result?(e=y9Q(e.result))?tME(L.galLogger,e):!1:!1}};
H76.prototype.complete=function(){var V=this,l,I;return _.d(function(H){if(V.interactionMode!==1)return H.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));l=tg.getRedirectStateFromUri();if(l===void 0)return V.galLogger.JSC$16942_logErrorEvent(131),H.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return I=TtI(V,l),H.return(BtE(V,I))}catch(T){return H.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
H76.prototype.start=function(){var V=this,l;return _.d(function(I){if(V.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Rt(V.gsiWebFlowDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(V.interactionMode===1)return tg.setLocation(x$Y(V,_.Rt(V.gsiWebFlowDetails,1))),I.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
V.started=!0;l=tg.getPostMessagePopup(V.JSC$17002_dataValidator,V.logEventProcessor);return I.return(l.open(x$Y(V,_.Rt(V.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(H){V.started=!1;if((H==null?void 0:H.result)===void 0)throw V.galLogger.JSC$16942_logErrorEvent(131),Error("Yj");H=TtI(V,H.result);return BtE(V,H)}).catch(function(H){V.started=!1;
return H.errorCode!==void 0?{statusCode:H.errorCode,statusMessage:H.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var x$Y=function(V,l){V=["result_channel",V.interactionMode===1?"2":"1","color_scheme",r9V(V.colorScheme),"show_close_option",V.showCloseOption];return CDg(l,V)},BtE=function(V,l){if(l!==null&&_.Xr(l,XC,2)){var I,H=l==null?void 0:(I=_.fA(l,XC,2))==null?void 0:_.Qh(I,2);
H&&V.galLogger.JSC$16942_logErrorEvent(J92(H));return cwY(_.fA(l,XC,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 V.galService.getLink({serviceId:V.serviceId,sessionId:V.sessionId,consistencyKey:_.Rt(l,1)}).then(function(T){T=Z66(T);V.galLogger.logInternalEvent(134);return{statusCode:1,link:T}})},TtI=function(V,l){l=l0E(l);
if(!_.Xr(l,XC,2)&&_.Rt(l,1)==="")throw V.galLogger.JSC$16942_logErrorEvent(5),Error("Zj");return l},tg={getPostMessagePopup:function(V,l){return new vY6(V,l)},
getRedirectStateFromUri:function(){return _.bO(_.Wv(tg.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(V){_.idK(window.location,_.S6(V))},
createStreamlinedFlow:function(V,l){return new H76(V.serviceId,V.sessionId,V.galService,l,V.colorScheme,V.showCloseOption,V.galLogger,V.interactionMode,V.redirectServiceUrl)}};var CPP=function(){var V=_.$rt("GAL");this.storage=V?new _.LA(V):null};var W8=function(){};
_.t(W8,bib);W8.prototype.logStateTransition=function(){};
W8.prototype.logInternalEvent=function(){};
W8.prototype.JSC$16942_logErrorEvent=function(){};var U$b=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(U$b,_.mV);U$b.prototype.getCompletionUrl=function(){return _.Rt(this,15)};var bC=function(V,l,I,H,T,x){this.serviceId=V;this.environment=l;this.sessionId=I;this.colorSchemeSelected=H;this.colorThemeDisplayed=T;this.JSC$17015_transport=x;this.currentState=1};
_.t(bC,bib);bC.prototype.logStateTransition=function(V){var l=nUP(this);l=_.gm(l,3,this.currentState);l=_.gm(l,1,V);this.currentState=V;V=$_B(1);this.dispatch(l,V)};
bC.prototype.logInternalEvent=function(V){V=$_B(V);this.dispatch(nUP(this),V)};
bC.prototype.JSC$16942_logErrorEvent=function(V){var l=nUP(this);l=_.gm(l,1,10);V=$_B(V);this.dispatch(l,V)};
var nUP=function(V){var l=new U$b;l=_.gm(l,1,V.currentState);l=_.Fm(l,7,V.serviceId);var I,H,T;((I=window)==null?0:(H=I.location)==null?0:H.href)?T=_.Wv(window.location.href).JSC$7896_domain_:T="NO_PACKAGE_NAME";I=_.Fm(l,8,T);I=_.gm(I,6,V.environment);I=_.Fm(I,5,"100");I=_.gm(I,11,V.colorSchemeSelected);return _.gm(I,12,V.colorThemeDisplayed)};
bC.prototype.dispatch=function(V,l){l===void 0&&(l=new _.wR);var I=l;V=V.serialize();I=_.Fm(I,8,V);_.Yl(I,12,this.sessionId);this.JSC$17015_transport.dispatch(l)};var $$h=function(V,l){this.loggerType=V;this.sessionIndex=l!=null?l:0},d$V;
$$h.prototype.create=function(V,l,I,H,T){switch(this.loggerType){case 0:return new W8;case 1:return d$V||(d$V=(new _.nS(555,this.sessionIndex.toString())).build()),new bC(V,l,I,H,T,d$V);default:_.AB(this.loggerType,"unknown logger type")}};var rK=[6,2,3,1],i6E=new Map([[4,1],[1,6],[2,2],[3,3]]),c9B={statusCode:7,statusMessage:"Failed to create flow object"},vjP=function(V,l,I,H,T,x,n,w,N,L){this.serviceId=V;this.sessionId=l;this.config=I;this.galService=H;this.JSC$17022_linkingSession=T;this.googleScopes=x;this.callerState=n;this.consentLanguageKeys=w;this.dynamicUrlParameters=N;this.partnerConfigMinReadTimestamp=L;this.currentFlow=0;H=this.JSC$17022_linkingSession;T=new Set;_.Xr(H,s6h,1)&&T.add(1);_.Xr(H,fEV,2)&&_.Xr(H,pKg,6)&&T.add(2);
_.Xr(H,aEP,3)&&_.Xr(H,pKg,6)&&T.add(3);_.Xr(H,vbI,4)&&T.add(6);this.supportedFlows=T;H=I.loggerType;T=I.clientEnvironment;a:{x=I.colorScheme;switch(x){case 0:x=1;break a;case 1:x=2;break a;case 2:x=3;break a;default:_.AB(x)}x=void 0}a:{n=I.colorScheme;n=sRb(n);switch(n){case 0:n=1;break a;case 1:n=2;break a;default:_.AB(n)}n=void 0}this.galLogger=(new $$h(H,I.authUser)).create(V,T,l,x,n)},NtB=function(V){return new Promise(function(l){var I,H,T,x,n,w,N,L,e,k;
return _.d(function(X){switch(X.nextAddress){case 1:I=A9V(V.currentFlow,V.supportedFlows),H=!1,T=new pdP(V.JSC$17022_linkingSession,V.config.dataUsageNoticeConfig);case 2:if(I===void 0){X.jumpTo(4);break}_.jd(X,5);var r=T,E=I,D=void 0;H?E===1&&(D=r.displayInfoMap.get(2)):E===2||E===3?D=r.displayInfoMap.get(1):E===1&&(D=r.displayInfoMap.get(3));x=D?D:[];n=V.consentLanguageKeys;w=_.U(x);N=w.next();case 7:if(N.done)return V.currentFlow=I,_.K(X,b6Y(wqE(V,n)),11);L=N.value;return _.K(X,ojP(L,V.config.dataUsageNoticeConfig.uiAdapter,
V.config.colorScheme,V.galLogger),10);case 10:e=X.yieldResult;if(e.statusCode!==1)return abV(V.serviceId),V.currentFlow=0,l(zg({statusCode:e.statusCode,statusMessage:e.statusMessage},V.callerState)),X.return();e.consentLanguageKeys!==void 0&&(n=e.consentLanguageKeys);N=w.next();X.jumpTo(7);break;case 11:k=X.yieldResult;if(k.statusCode!==10)return k.statusCode!==6&&(abV(V.serviceId),V.currentFlow=0),k.statusCode!==1&&V.callerState!==void 0&&(k.callerState=V.callerState),l(k),X.return();_.Rv(X,6);break;
case 5:_.kE(X);case 6:I=A9V(V.currentFlow,V.supportedFlows);H=!0;X.jumpTo(2);break;case 4:abV(V.serviceId),V.currentFlow=0,l(zg({statusCode:12,statusMessage:"Linking failed"},V.callerState)),_.FU(X)}})})},gjr=function(V,l,I){V.currentFlow=l;
return qBI(wqE(V,I)).then(function(H){return H.statusCode===10&&V.config.interactionMode===1&&A9V(V.currentFlow,V.supportedFlows)!==void 0?NtB(V):H})},wqE=function(V,l){return{flowParams:{serviceId:V.serviceId,
sessionId:V.sessionId,galService:V.galService,galLogger:V.galLogger,interactionMode:V.config.interactionMode,redirectServiceUrl:V.config.redirectServiceUrl,colorScheme:V.config.colorScheme,consentLanguageKeys:l,dynamicUrlParameters:V.dynamicUrlParameters,showCloseOption:V.config.showCloseOption,partnerConfigMinReadTimestamp:V.partnerConfigMinReadTimestamp},currentFlow:V.currentFlow,config:V.config,session:V.JSC$17022_linkingSession,googleScopes:V.googleScopes,callerState:V.callerState}};var $ZB=function(V,l){this.config=V;this.galService=l.getService();this.JSC$17035_galRepository=l.JSC$17072_galRepository};
$ZB.prototype.getLink=function(V,l){return K1b(this,V,l)};
var K1b=function(V,l,I){return V.JSC$17035_galRepository.getLink({serviceId:l,scopes:void 0,capabilities:void 0,linkName:I}).then(function(H){return{statusCode:1,link:H}}).catch(function(H){return{statusCode:VnE(H.code),
statusMessage:H.message}})};
$ZB.prototype.deleteLink=function(V,l){return this.JSC$17035_galRepository.deleteLink(V,this.config.accountLinkingEntryPoint,l).then(function(){return{statusCode:1}}).catch(function(I){return{statusCode:VnE(I.code),
statusMessage:I.message}})};
$ZB.prototype.startLinkingSession=function(V){var l=V.serviceId;var I=V.sessionId;return O6E({serviceId:l,sessionId:I!==void 0?I:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:V.loginHint,callerState:V.callerState,consentLanguageKeys:V.consentLanguageKeys,linkName:V.linkName,dynamicUrlParameters:V.dynamicUrlParameters,partnerConfigMinReadTimestamp:V.partnerConfigMinReadTimestamp})};var lLE=null,BvQ=new WeakMap;var jGY=function(){};
jGY.prototype.send=function(V,l){n9P(V);return this.makeRequest(V).then(function(I){if(l){var H=new l;if(I!=null){if(l==null)throw Error("ak");new l;throw Error("ck");}I=H}return I})};var YdP=function(V,l,I,H,T){this.gapiUrl=V;this.gapiKey=l;this.gapiConfigUpdates=I||{};this.gapiAuthParams=H||{};this.defaultApiId=T};
_.t(YdP,jGY);var epY=function(V){return Hvr().then(function(l){l=l||window.gapi;L12(V,l);return UZu(l,{apiKey:V.gapiKey,clientId:V.gapiAuthParams.clientId,scope:V.gapiAuthParams.scope,hostedDomain:V.gapiAuthParams.hostedDomain,fetchBasicProfile:V.gapiAuthParams.fetchBasicProfile}).then(function(){return l})})};
YdP.prototype.makeRequest=function(V){var l=this;return epY(this).then(function(I){return _.d(function(H){if(H.nextAddress==1)return l.gapiAuthParams.minAuthTokenTimeRemaining===void 0?H.jumpTo(2):_.K(H,xZ6(I,l.gapiAuthParams.minAuthTokenTimeRemaining),2);L12(l,I);return H.return(kjB(I.client.request({root:l.gapiUrl,path:V.path,method:V.httpMethod,body:V.body,params:V.queryParams,headers:V.headers,authType:V.authType,apiId:V.apiId||l.defaultApiId})))})})};
var kjB=function(V){return new Promise(function(l,I){V.then(function(H){l(H.result===!1&&H.body!=null?{data:H.body}:H.result)},function(H){I(H.result===!1&&H.body!=null?{data:H.body}:H.result)})})},L12=function(V,l){for(var I in V.gapiConfigUpdates)if(V.gapiConfigUpdates.hasOwnProperty(I)){var H=l,T=I,x=V.gapiConfigUpdates[I],n=H.config.get(T);
x!==n&&H.config.update(T,x)}};
YdP.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var qj=function(V,l,I,H,T,x,n,w){this.apiKey=l;this.authUser=I;this.oauthToken=H;this.bucket=T;this.locale=n;this.galSdkEventHandler=w;if(H===void 0){if(l===void 0)throw Error("dk");this.requestService=new YdP(V,l,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":x===void 0||x===!1,"client/xd3":x===!0})}this.galServiceClient=new EYr(V)};
qj.prototype.deleteLink=function(V){var l=V.serviceId;var I=V.sessionId;var H=V.accountLinkingEntryPoint;var T=V.linkName;var x=this,n;return _.d(function(w){var N=(new z7).setHeader(Mj(x,I));var L=F1P({serviceId:l,linkName:T});N=_.j6(N,2,L);n=_.MU(N,3,H);return w.return(x.makeRequest(x.galServiceClient.deleteLink,n,[1,3],[2,4]))})};
var iiE=function(V,l){var I=l.serviceId;var H=l.sessionId;var T=l.dynamicUrlParameters;var x=l.redirectState;var n=l.consentLanguageKeys;var w=l.partnerConfigMinReadTimestamp;var N;return _.d(function(L){var e=(new ts).setHeader(Mj(V,H,T));e=_.lR(e,2,I);N=_.lR(e,4,x);n!==void 0&&_.lR(N,5,n);w!==void 0&&_.j6(N,6,w);return L.return(V.makeRequest(V.galServiceClient.JSC$16921_finishOAuth,N,[1,3],[2,4]))})};
qj.prototype.getLink=function(V){var l=V.serviceId;var I=V.sessionId;var H=V.scopes;var T=V.capabilities;var x=V.consistencyKey;var n=V.linkName;var w=this,N;return _.d(function(L){var e=(new ra).setHeader(Mj(w,I)),k=F1P({serviceId:l,scopes:H,capabilities:T,linkName:n});N=_.j6(e,2,k);x!==void 0&&(e=ZDB(),e=_.lR(e,2,x),_.j6(N,3,e));return L.return(w.makeRequest(w.galServiceClient.getLink,N,[1,3],[2,4]))})};
var MMg=function(V,l){var I=l.serviceId;var H=l.sessionId;var T=l.googleScopes;var x=l.consistencyKey;var n;return _.d(function(w){var N=(new yv).setHeader(Mj(V,H));N=_.lR(N,2,I);var L=Array.from(T.values());N=_.pQ(N,3,L,_.jb);L=ZDB();L=_.lR(L,2,x);n=_.j6(N,4,L);return w.return(V.makeRequest(V.galServiceClient.JSC$16921_depositGoogleCredential,n,[1,3],[2,4]))})};
qj.prototype.startLinkingSession=function(V){var l=V.serviceId;var I=V.sessionId;var H=V.scopes;var T=V.capabilities;var x=V.loginHint;var n=V.supportedFlows;var w=V.completionUrl;var N=V.usePingPong;var L=V.twoWayLinking;var e=V.accountLinkingEntryPoint;var k=V.callerState;var X=V.consentLanguageKeys;var r=V.googleScopes;var E=V.dataUsageNoticeConfig;var D=V.linkName;var Z=V.dynamicUrlParameters;var S=V.partnerConfigMinReadTimestamp;var p=this,Vf,C;return _.d(function(By){if(T!==void 0&&H!==void 0)throw Error("Wj");
var lN=(new G7).setHeader(Mj(p,I,Z));Vf=_.lR(lN,2,l);D!==void 0&&_.lR(Vf,14,D);if(T!==void 0){lN=Vf;var wW=Array.from(T.values());_.pQ(lN,5,wW,_.jb)}else H!==void 0&&(lN=Vf,wW=Array.from(H.values()),_.pQ(lN,3,wW,_.jb));w!==void 0&&_.lR(Vf,6,w);N!==void 0&&_.rS(Vf,15,N);n!==void 0&&(lN=Vf,wW=Array.from(n.values()),_.pQ(lN,4,wW,_.iZ));if(L!==void 0){if(L&&(!r||r.size===0))throw Error("ek");_.rS(Vf,8,L)}e!==void 0&&_.MU(Vf,9,e);x!==void 0&&_.lR(Vf,13,x);k!==void 0&&(lN=Vf,wW=(new TextEncoder).encode(k),
_.AI(lN,12,_.hB(wW,!1),_.GE()));X!==void 0&&_.lR(Vf,16,X);S!==void 0&&_.j6(Vf,18,S);if(E!==void 0&&E.size>0||r!==void 0&&r.size>0)C=new mAV,r!==void 0&&r.size>0&&(lN=C,wW=Array.from(r.values()),_.pQ(lN,1,wW,_.jb)),E!==void 0&&(E.has(0)&&_.G2g(C,2,_.iZ,1,_.V6),E.has(1)&&_.G2g(C,2,_.iZ,2,_.V6)),_.j6(Vf,17,C);return By.return(p.makeRequest(p.galServiceClient.startLinkingSession,Vf,[1],[2]))})};
qj.prototype.getMetadata=function(){var V=this,l,I,H;return _.d(function(T){if(T.nextAddress==1)return l={},V.requestService?_.K(T,epY(V.requestService),3):(l.Authorization="Bearer "+V.oauthToken,T.jumpTo(2));T.nextAddress!=2&&(I=T.yieldResult,l["X-Goog-Api-Key"]=V.apiKey,l["X-Goog-AuthUser"]=V.authUser!==void 0?V.authUser.toString():"0",(H=I.auth.getAuthHeaderValueForFirstParty([]))&&(l.Authorization=H));V.locale&&(l["accept-language"]=V.locale);return T.return(l)})};
qj.prototype.makeRequest=function(V,l,I,H){var T=this,x;return _.d(function(n){if(n.nextAddress==1)return _.K(n,T.getMetadata(),2);x=n.yieldResult;Xqh(T,I);return n.return(V.bind(T.galServiceClient)(l,x).finally(function(){Xqh(T,H)}))})};
var Xqh=function(V,l){V.galSdkEventHandler!==void 0&&l.forEach(function(I){V.galSdkEventHandler.onEvent(I)})},Mj=function(V,l,I){var H=new kW;
l=_.AI(H,2,_.lE(l),0);l=_.MU(l,5,3);I=_.pQ(l,8,I,_.jb);V.bucket!==void 0&&_.lR(I,1,V.bucket);return I},F1P=function(V){var l=V.serviceId;
var I=V.scopes;var H=V.capabilities;V=V.linkName;if(H!==void 0&&I!==void 0)throw Error("Wj");var T=new Pcg;l=_.lR(T,1,l);H!==void 0?(I=Array.from(H.values()),_.pQ(l,5,I,_.jb)):I!==void 0&&(I=Array.from(I.values()),_.pQ(l,3,I,_.jb));V!==void 0&&_.lR(l,6,V);return l};var dZr=function(V){this.galService=new qj(V.alsDomain,V.apiKey,V.authUser,V.oauthToken,V.bucket,V.clientXd3,V.locale,V.galSdkEventHandler);this.JSC$17072_galRepository=new Awb(this.galService)};
dZr.prototype.getService=function(){return this.galService};var zpI=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(zpI,_.mV);var yrE=function(V){var l=new zpI;return _.gm(l,1,V)};
zpI.prototype.setErrorMessage=function(V){return _.Fm(this,2,V)};var tKB=[0,_.iQ,_.fj,_.iQ];var si=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(si,_.mV);var rrY=[0,[1,2,3],_.mM,[0,c4b,qm6,-1],_.mM,[0,bhr,-1],_.gcK];var Gjr=[0,_.Cj,1,_.iQ,_.fj,-1,1,_.Vcv,_.Ok,_.iQ,-1,rrY];var EUV=[0,_.iQ,[0,_.Vcv,_.Ok,[0,_.fj]],_.at,[0,_.iQ,-1]];var xW=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(xW,_.mV);var JrP=[0,_.fj,_.iQ,-2,_.Cj,_.iQ,_.Cj,_.iQ,-2,1,_.at];var oU6=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(oU6,_.mV);var hpV=[0,_.Cj];var PFE=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(PFE,_.mV);var D$g=[0,_.iQ,EUV,hpV,JrP,Gjr];var smE=_.nd(PFE,D$g);var Z7b=[0,JwE];var CUh=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(CUh,_.mV);var Sdg=[0,[1,3],vCV,_.iQ,vCV];var T7=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(T7,_.mV);var Rpb=[0,_.iQ];var QGY=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(QGY,_.mV);var B8=function(V){return _.bQ(V,zpI,2,H8)},crE=function(V){var l=new QGY;
return _.Yn(l,2,H8,V)},H8=[1,
2];var W1I=[0,H8,_.mM,Rpb,_.mM,tKB,_.gl,Sdg,1,_.iQ,Z7b];var b7E=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(b7E,_.mV);var MK6=function(V){var l=new b7E;return _.Yn(l,3,qdu,V)},qdu=[2,
3];var pJ=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(pJ,_.mV);var sGI=function(V,l){return _.j6(V,2,l)},pqQ=function(V,l){return _.j6(V,8,l)},Ar2=function(V,l){return _.j6(V,3,l)};var ueu=[0,_.iQ,W1I,D$g,_.x0i,[0,[5,6],[0,_.iQ,-2],[0,_.Cj,_.iQ,_.fj],[0,rrY],[0,_.fj,_.iQ,-1,_.B4o],_.mM,[0,[0,_.Cj],_.iQ,-1],_.mM,[0,[3,4],_.iQ,-1,_.mM,[0,[0,_.iQ,_.at]],_.mM,[0]]],_.x0i,-1,[0,qdu,_.iQ,_.mM,Rpb,_.mM,tKB,_.gl,Sdg,[0,JwE]]];var vUr=_.nd(pJ,ueu),O7r=_.$n(ueu);var CFY=function(){_.XG.call(this)};
_.t(CFY,_.XG);CFY.prototype.init=function(){};
new CFY;var a0P=_.fl(["data-"]),f0B=_.fl(["aria-"]),gUg=_.fl(["aria-"]),As=function(V,l){this.isLatencyMeasurementExperiment=V===void 0?!1:V;this.enableDialogA11yFix=l===void 0?!1:l;this.JSC$17101_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.KVa(_.nK.location.href)},AmQ=function(V,l){V.onConsentPrimitiveShownCallback=l},m$V=function(V,l){return V.overriddenIframeLoadTimeout?V.overriddenIframeLoadTimeout:l!==void 0?l:5E3},vLV=function(V){if(V.prewarmPromise!==void 0)return V.prewarmPromise;
V.prewarmPromise=new Promise(function(l,I){uC(V,1);i7u(V,Vlb(V,!0),l$b(V));V.iframe?V.prewarmChannel||I$P(V,V.iframe,l):I(Error("fk"))});
V.prewarmPromise.finally(function(){V.prewarmPromise=void 0});
return V.prewarmPromise};
As.prototype.showPrimitive=function(){var V=this;if(this.consentPromise!==void 0)return this.consentPromise;var l=Date.now();Hng(this,l);this.consentPromise=new Promise(function(I,H){uC(V,0,l);var T=V.isDarkTheme();V.isLatencyMeasurementExperiment||V.initialLoadingStrategy===1||V.initialLoadingStrategy===2||(V.loadingBar||(V.loadingBar=jJY(getComputedStyle(document.body).direction==="rtl",T),V.loadingBar.style.position="fixed",V.loadingBar.style.zIndex="15000"),document.body.appendChild(V.loadingBar));
i7u(V,Vlb(V),l$b(V));V.iframe?V.channel||TFg(V,V.iframe,I,H):(BFQ(V),H(Error("fk")))});
this.consentPromise.finally(function(){V.consentPromise=void 0});
return this.consentPromise};
var TFg=function(V,l,I,H){var T,x;_.d(function(n){switch(n.nextAddress){case 1:uC(V,3);T=!1;setTimeout(function(){if(!T){BFQ(V);xBE(V);UB2();var w=yrE(7).setErrorMessage("Timeout connecting to iframe");I(pqQ(sGI(new pJ,crE(w)),MK6(w)))}},m$V(V,ngE(V)));
if(!V.prewarmPromise){n.jumpTo(2);break}_.jd(n,3);return _.K(n,V.prewarmPromise,5);case 5:_.Rv(n,2);break;case 3:_.kE(n),x=yrE(4).setErrorMessage("Error while prewarming."),I(pqQ(sGI(new pJ,crE(x)),MK6(x)));case 2:V.prewarmChannel&&V.prewarmChannel.send(O7r(Ar2(new pJ,V.consentPrimitiveRequest))),V.channel=_.Ik({destination:V.JSC$17101_win,iframe:l,origin:$BI(V),channelName:"cpw",onEstablished:function(){T=!0;BFQ(V);V.isLatencyMeasurementExperiment||(V.JSC$17101_previousBodyOverflow=document.body.style.overflow,
V.JSC$17101_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,V.JSC$17101_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",V.enableDialogA11yFix&&window.addEventListener("blur",V.focusChangeListener));var w=V.iframe;w.style.bottom="0";w.style.position="fixed";w.style.right="0";w.style.border="none";w.style.left="0";w.style.top=
"0";w.style.zIndex="5000";w.style.pointerEvents="";w.style.visibility="";V.initialLoadingStrategy===2||V.initialLoadingStrategy===3?uC(V,4):uC(V,6);var N;(N=V.onConsentPrimitiveShownCallback)==null||N.call(V)},
onMessage:function(w){w=vUr(w.data);switch(_.Qh(w,1)){case 1:xBE(V);var N=YJ2(_.fA(w,_.Ay,7));N&&(V.initialLoadingStrategy!==2&&V.initialLoadingStrategy!==3||uC(V,6,N),uC(V,5,N));if(N=YJ2(_.fA(w,_.Ay,6)))uC(V,7,N),uC(V,8);var L,e;((L=_.fA(w,QGY,2))==null?void 0:_.Gp(L,H8))!==0&&((e=_.fA(w,b7E,8))==null?void 0:_.Gp(e,qdu))!==0||H(Error("gk"));I(w);break;case 2:UB2()}}}),_.FU(n)}})},I$P=function(V,l,I){V.prewarmChannel=_.Ik({destination:V.JSC$17101_win,
iframe:l,origin:$BI(V),channelName:"pwcp",onEstablished:function(){uC(V,2);I()}})},$BI=function(V){var l=_.tV(V.src).toString();
return l&&l.indexOf("://")<0&&l.indexOf("//")!==0?V.origin:_.KVa(l)},Vlb=function(V,l){l=l===void 0?!1:l;
var I,H=new Map([["origin",V.origin],["hl",(I=dBE(V))!=null?I:null]]);l&&H.set("pw","1");l=_.U([["cpr",V.consentPrimitiveRequest.serialize()]]);for(I=l.next();!I.done;I=l.next()){var T=_.U(I.value);I=T.next().value;T=T.next().value;H.set(I,T)}V.isDarkTheme()&&H.set("color_scheme","dark");return _.UL(V.src,H)},BFQ=function(V){V.isLatencyMeasurementExperiment||V.loadingBar&&document.body.removeChild(V.loadingBar)};
As.prototype.getSrc=function(){var V=_.ps(this.origin),l;var I=(l=_.fA(this.consentPrimitiveRequest,oU6,3))==null?void 0:_.lO(l,1);l="consent.google.com";I=I?"/u/"+encodeURIComponent(I.toString()):"";(V==null?0:V.endsWith("youtube.com"))?l="consent.youtube.com":(V=V==null?void 0:V.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(l="consent.google."+((V[1]?"co.":"")+encodeURIComponent(V[2])));return _.Xj("https://"+l+"/signedin"+I+"/landing")};
var i7u=function(V,l,I){V.iframe||(V.iframe=document.createElement("iframe"),V.iframe.style.width="100%",V.iframe.style.height="100%",I!==112496729&&(V.iframe.style.colorScheme="auto"),V.isLatencyMeasurementExperiment&&(V.iframe.style.display="none"),_.AV(V.iframe,l),V.iframe.setAttribute("jsname","C5o1O"),wVY(V.iframe),document.body.appendChild(V.iframe))},wVY=function(V){V.style.bottom="-200vh";
V.style.position="fixed";V.style.right="-200vw";V.style.border="";V.style.left="";V.style.top="";V.style.zIndex="";V.style.pointerEvents="none";V.style.visibility="hidden"},xBE=function(V){V.iframe&&(V.isLatencyMeasurementExperiment||(V.JSC$17101_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=V.JSC$17101_previousHtmlOverscroll),V.JSC$17101_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=V.JSC$17101_previousBodyOverscroll),V.JSC$17101_previousBodyOverflow!==
void 0&&(document.body.style.overflow=V.JSC$17101_previousBodyOverflow),V.enableDialogA11yFix&&NFb(V,!1)),wVY(V.iframe))};
As.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(NFb(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var NFb=function(V,l){var I,H,T=(I=V.iframe)==null?void 0:(H=I.parentElement)==null?void 0:H.children;if(T)for(I=0;I<T.length;I++)H=T[I],H!==V.iframe&&(l?(H.hasAttribute("aria-hidden")&&_.VJ([_.Ig(a0P)],H,"data-old-aria-hidden",H.getAttribute("aria-hidden")),_.VJ([_.Ig(f0B)],H,"aria-hidden","true")):(H.removeAttribute("aria-hidden"),H.hasAttribute("data-old-aria-hidden")&&(_.VJ([_.Ig(gUg)],H,"aria-hidden",H.getAttribute("data-old-aria-hidden")),H.removeAttribute("data-old-aria-hidden"))))},uC=function(V,
l,I){var H;
(H=V.latencyCallback)==null||H.call(V,{latencyType:l,timestampEpochMillis:I!=null?I:Date.now()})};var K8P=function(V,l,I){As.call(this,l,I===void 0?!1:I);this.consentPrimitiveRequest=V;V=dBE(this);if(!(0,_.irc)(V))throw Error("H``"+String(V));this.src=this.getSrc();var H;this.initialLoadingStrategy=(H=_.fA(this.consentPrimitiveRequest,xW,4))==null?void 0:_.Qh(H,4)},v8;
_.t(K8P,As);var pHg=function(V){var l=_.z("enable_primitive_dialog_aria_hide_siblings");V={request:V,enableDialogA11yFix:l===void 0?!1:l};v8||(v8=new K8P(V.request,V.isLatencyMeasurementExperiment||_.Qh(V.request,1)===2,V.enableDialogA11yFix));return v8},UB2=function(){v8&&(v8.channel=void 0,v8.prewarmChannel=void 0,v8.iframe&&(document.body.contains(v8.iframe)&&document.body.removeChild(v8.iframe),v8.iframe=void 0),v8=void 0)},dBE=function(V){var l;
return(l=_.fA(V.consentPrimitiveRequest,xW,4))==null?void 0:_.Rt(l,1)},Hng=function(V,l){if(!_.Xr(V.consentPrimitiveRequest,si,5)){var I=V.consentPrimitiveRequest,H=new si;
_.j6(I,5,H)}var T;if((T=_.fA(V.consentPrimitiveRequest,si,5))==null||_.ot(T,8)==null){var x;(x=_.fA(V.consentPrimitiveRequest,si,5))!=null&&_.Yl(x,8,l)}},l$b=function(V){var l;
return(l=_.fA(V.consentPrimitiveRequest,si,5))==null?void 0:_.lO(l,1)};
K8P.prototype.isDarkTheme=function(){var V;return((V=_.fA(this.consentPrimitiveRequest,xW,4))==null?void 0:_.Qh(V,2))===2};
var ngE=function(V){var l;return((l=_.fA(V.consentPrimitiveRequest,xW,4))==null?void 0:_.lO(l,5))||void 0},Ogh=function(V){return As.prototype.showPrimitive.call(V).then(function(l){return _.fA(l,QGY,2)})};for(var Oi={},j76=(Oi[64]="ma",Oi[73]="ogb",Oi[89]="cr",Oi[21]="test",Oi[0]="unkn",Oi[137]="con",Oi[155]="hl",Oi[78]="yt",Oi[171]="lp",Oi[172]="ap",Oi[177]="amo",Oi[178]="pqe",Oi[74]="gg",Oi[1]="gm",Oi[140]="am",Oi),Yg6=_.U(Object.keys(j76)),L8h=Yg6.next();!L8h.done;L8h=Yg6.next());var edV=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(edV,_.mV);var ksE=[0,[2,3,4],_.iQ,WqE,vCV,_.gcK];var F8b=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(F8b,_.mV);var XVr=_.nd(F8b,[0,uQE,_.fj,_.iQ,_.fj,_.iQ,ksE]);var zdb=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(zdb,_.mV);zdb.prototype.getCommand=function(){return _.Qh(this,1)};
var ytE=function(){var V=new zdb;return _.MU(V,1,0)};var tlr=_.$n([0,uQE,_.fj,[0,_.iQ,_.fj,-1]]);var rtb=new _.e3("s"),Gsb=new _.e3("t"),Eg2=new _.e3("u"),Jt6=new _.e3("v"),ogh=function(V,l,I){_.kL.call(this,rtb);this.mediaKey=V;this.photoUrl=l;this.photoSource=I};
_.t(ogh,_.kL);var hdr=function(){_.kL.call(this,Gsb)};
_.t(hdr,_.kL);var P1E=function(V){V=V===void 0?!1:V;_.kL.call(this,Eg2);this.isError=V};
_.t(P1E,_.kL);var DBE=function(){_.kL.call(this,Jt6)};
_.t(DBE,_.kL);var ZnE=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,ctY=function(V){if(typeof V=="string"){if(V.charAt(0)==".")return Sgh(V.substr(1));if(V.charAt(0)=="["){var l=ZnE.exec(V);V=V.indexOf("=")==-1?void 0:l[3];return Rd2(l[1],V)}return Q7h(V)}return V},Sgh=function(V){return function(l){return l.getAttribute&&_.Am(l,V)}},Rd2=function(V,l){return function(I){return l!==void 0?I.getAttribute&&I.getAttribute(V)==l:I.hasAttribute&&I.hasAttribute(V)}},Q7h=function(V){V=V.toUpperCase();
return function(l){return(l=l.tagName)&&l.toUpperCase()==V}},W8g=function(){return!0};var CJ=function(V,l){this.JSC$17129_key_=V;this.JSC$17129_value_=l},af=function(V){throw Error("hk`"+V.JSC$17129_key_);
},bnh=function(V,l){return new TypeError("ik`"+l+"`"+V.JSC$17129_key_+"`"+V.JSC$17129_value_+"`"+typeof V.JSC$17129_value_)};
CJ.prototype.string=function(V){if(arguments.length==0)var l=qgP(this);else{var I;l=(I=MlE(this))!=null?I:V}return l};
var qgP=function(V){var l=MlE(V);l===null&&af(V);return l},MlE=function(V){var l=V.JSC$17129_value_;
if(l==null)return null;if(typeof l==="string")return l;throw bnh(V,"string");};
CJ.prototype.bool=function(V){if(arguments.length==0){var l=this.optionalBool();l===null&&af(this)}else{var I;l=(I=this.optionalBool())!=null?I:V}return l};
CJ.prototype.optionalBool=function(){var V=this.JSC$17129_value_;if(V==null)return null;if(typeof V==="boolean")return V;if(typeof V==="string"){V=V.toLowerCase();if(V==="true"||V==="1")return!0;if(V==="false"||V==="0")return!1}throw bnh(this,"boolean");};
CJ.prototype.number=function(V){if(arguments.length==0){var l=s7g(this);l===null&&af(this)}else{var I;l=(I=s7g(this))!=null?I:V}return l};
var s7g=function(V){var l=V.JSC$17129_value_;if(l==null)return null;if(typeof l==="number")return l;if(typeof l==="string"){var I=Number(l);if(!isNaN(I)&&(I!==0||l.trim().length!==0))return I}throw bnh(V,"number");};
CJ.prototype.toString=function(){return qgP(this)};
CJ.prototype.array=function(V){if(arguments.length==0){var l=pVB(this);l===null&&af(this);return l}l=pVB(this);return l==null?V:l};
var pVB=function(V){var l=V.JSC$17129_value_;if(l==null)return null;Array.isArray(l)||(typeof l!=="string"?l=[l]:(l=l.trim(),l=l==""?[]:l.split(",").map(function(I){return I.trim()})));
return AtB(V,l)},AtB=function(V,l){var I=V.JSC$17129_key_+"[";
return Array.from(l,function(H,T){return new CJ(I+T+"]",H)})};
CJ.prototype.object=function(V){var l=this.JSC$17129_value_;if(l==null)return V===void 0&&af(this),V;if(typeof l==="object"&&l.constructor===Object){V={};var I=this.JSC$17129_key_+".",H;for(H in l)V[H]=new CJ(I+H,l[H]);return V}throw bnh(this,"object");};var fJ=function(V){this.list_=ucu(V)},ucu=function(V){if(V instanceof fJ)V=V.list_;
else if(V[0]instanceof fJ){for(var l=new Set,I=0;I<V.length;I++)for(var H=_.U(V[I].list_),T=H.next();!T.done;T=H.next())l.add(T.value);V=l}return[].concat(_.oI(V))};
_.B=fJ.prototype;_.B.each=function(V,l,I){((I===void 0?0:I)?yoQ:_.cO)(this.list_,V,l);return this};
_.B.size=function(){return this.list_.length};
_.B.isEmpty=function(){return this.list_.length===0};
_.B.get=function(V){return this.list_[V]||null};
_.B.el=function(){return this.list_[0]||null};
_.B.map=function(V,l){return _.JH(this.list_,V,l)};
_.B.equals=function(V){return this===V||_.Ii(this.list_,V.list_)};
_.B.first=function(){return this.list_.length==0?null:new mX(this.list_[0])};
_.B.find=function(V){var l=[];this.each(function(I){I=I.querySelectorAll(String(V));for(var H=0;H<I.length;H++)l.push(I[H])});
return new fJ(l)};
_.B.parent=function(){var V=[];this.each(function(l){(l=l.parentElement||null)&&!_.Mq(V,l)&&V.push(l)});
return new fJ(V)};
_.B.children=function(){var V=[];this.each(function(l){l=_.qa(l);for(var I=0;I<l.length;I++)V.push(l[I])});
return new fJ(V)};
_.B.filter=function(V){V=_.dl(this.list_,ctY(V));return new fJ(V)};
_.B.closest=function(V){var l=[],I=ctY(V),H=function(T){return _.sh(T)&&I(T)};
this.each(function(T){(T=_.Rg(T,H,!0))&&!_.Mq(l,T)&&l.push(T)});
return new fJ(l)};
_.B.next=function(V){return vgP(this,_.Kxo,V)};
_.B.prev=function(V){return vgP(this,fjE,V)};
var vgP=function(V,l,I){var H=[];var T=I?ctY(I):W8g;V.each(function(x){(x=l(x))&&T(x)&&H.push(x)});
return new fJ(H)};
fJ.prototype.setClass=function(V){return this.each(function(l){_.pg(l,V)})};
var OnQ=function(V,l){return V.each(function(I){_.WX(I,l)})},C1Y=function(V,l){return V.each(function(I){_.QI(I,l)})};
fJ.prototype.toggleClass=function(V,l){return l===!0?OnQ(this,V):l===!1?C1Y(this,V):this.each(function(I){_.Am(I,V)?_.QI(I,V):_.WX(I,V)})};
fJ.prototype.setText=function(V){return this.each(function(l){_.Ma(l,V)})};
var a$E=function(V){V.each(function(l){l.removeAttribute("aria-hidden")})};
fJ.prototype.getStyle=function(V){if(this.list_.length>0){var l=this.list_[0],I=l.style[_.K8(V)];return typeof I!=="undefined"?I:l.style[_.hMN(l,V)]||""}};
fJ.prototype.getData=function(V){if(this.list_.length===0)return new CJ(V,null);var l=hnb(this.list_[0],V);return new CJ(V,l)};
fJ.prototype.focus=function(V){try{V?this.el().focus(V):this.el().focus()}catch(l){}return this};
fJ.prototype.click=function(){var V=_.Z3(this.el());if(V.createEvent){var l=V.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,V.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(l)}else V=V.createEventObject(),V.clientX=0,V.clientY=0,V.screenX=0,V.screenY=0,V.altKey=!1,V.ctrlKey=!1,V.shiftKey=!1,V.button=0,this.el().fireEvent("onclick",V)};
var iC=function(V,l,I,H){function T(w,N,L){var e=N;N&&N.parentNode&&(e=N.cloneNode(!0));w(e,L)}
H=H===void 0?!1:H;if(V.list_.length==1){var x=V.list_[0],n=function(w){return l(w,x)};
I instanceof fJ?I.each(n,void 0,H):Array.isArray(I)?(H?yoQ:_.cO)(I,n):n(I);return V}return V.each(function(w){I instanceof fJ?I.each(function(N){T(l,N,w)}):Array.isArray(I)?_.cO(I,function(N){T(l,N,w)}):T(l,I,w)})};
_.B=fJ.prototype;_.B.append=function(V){return iC(this,function(l,I){l&&I.appendChild(l)},V)};
_.B.appendTo=function(V){(new fJ([V])).append(this);return this};
_.B.remove=function(){return iC(this,function(V,l){_.Yw(l)},null)};
_.B.empty=function(){return iC(this,function(V,l){_.ci(l)},null)};
_.B.after=function(V,l){return iC(this,function(I,H){I&&_.b_(I,H)},V,!(l===void 0||l))};
_.B.before=function(V){return iC(this,function(l,I){l&&_.Wi(l,I)},V)};
_.B.replaceWith=function(V){return iC(this,function(l,I){l&&_.dVW(l,I)},V)};
_.B.toggle=function(V){return this.each(function(l){_.Mx(l,V)})};
_.B.show=function(){return this.toggle(!0)};
_.B.hide=function(){return this.toggle(!1)};
_.B.trigger=function(V,l,I,H){return f$g(this,V,l,I,H)};
var f$g=function(V,l,I,H,T){return V.each(function(x){_.lBW(_.Z3(x)).triggerWizEventInternal(x,l,I,H,T)})},mX=function(V,l){V instanceof fJ&&(l=V.list_,V=null);
this.list_=ucu(V!=null?[V]:l)};
_.Uk(mX,fJ);_.B=mX.prototype;_.B.children=function(){return new fJ(Array.prototype.slice.call(_.qa(this.list_[0])))};
_.B.each=function(V,l){V.call(l,this.list_[0],0);return this};
_.B.size=function(){return 1};
_.B.el=function(){return this.list_[0]};
_.B.first=function(){return this};var Vq=function(V,l){l=l===void 0?window:l;this.hostId=V;this.JSC$17140_win=l;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$17140_previousHtmlOverscroll=this.JSC$17140_previousBodyOverscroll=this.JSC$17140_previousBodyOverflow="";this.eventTarget=new _.tm;this.JSC$17140_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
inP=function(V){var l=ggr(ggr(ggr(new mB2(78),"po"),"hppp"),"hhc");
l.authUser=Number(_.h6("SESSION_INDEX","0"));l.colorScheme=V;return l};
Vq.prototype.getOrigin=function(){return this.origin?this.origin:_.IB(_.ln(_.Vu(new _.OA,this.JSC$17140_win.location.protocol),this.JSC$17140_win.location.hostname),this.JSC$17140_win.location.port).toString()};
Vq.prototype.getTargetOrigin=function(){return _.IB(_.ln(_.Vu(new _.OA,this.scheme),this.domain),this.port)};
Vq.prototype.preloadIframe=function(V){var l=this;if(this.iframeLoadPromise===void 0){var I=document.createElement("iframe");this.iframe=I;yyE(I,V);this.iframeLoadPromise=new Promise(function(H,T){var x=!1,n=function(w){w.stopPropagation();I.removeEventListener("error",n);I.removeEventListener("securitypolicyviolation",n);T(Error("jk",{cause:w}))};
I.addEventListener("error",n);I.addEventListener("securitypolicyviolation",n);setTimeout(function(){x||T(Error("kk"))},3E4);
VWE(l,I,function(){x=!0;I.removeEventListener("error",n);I.removeEventListener("securitypolicyviolation",n);H()})});
lXg(this);V=this.getTargetOrigin().toString();I.setAttribute("allow","camera "+V+"; display-capture "+V);this.parentElement.appendChild(I)}return this.iframeLoadPromise};
var Td6=function(V,l){var I,H;return _.d(function(T){if(T.nextAddress==1)return I=jJY(getComputedStyle(V.parentElement).direction==="rtl"),V.parentElement.appendChild(I),document.activeElement instanceof HTMLElement&&(V.elementToFocusAfterClose=document.activeElement),_.jd(T,2),_.K(T,V.preloadIframe(l),4);if(T.nextAddress!=2){V.parentElement.removeChild(I);V.JSC$17140_previousBodyOverflow=V.parentElement.style.overflow;V.JSC$17140_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
V.JSC$17140_previousBodyOverscroll=V.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";V.parentElement.style.overscrollBehavior="contain";V.parentElement.style.overflow="hidden";var x=V.iframe;x.style.bottom="0";x.style.border="none";x.style.height="100%";x.style.left="0";x.style.position=V.iframePosition;x.style.right="0";x.style.top="0";x.style.width="100%";x.style.zIndex="2202";x.setAttribute("aria-hidden","false");x.setAttribute("aria-modal","true");
V.opened=!0;IXr(V);return _.Rv(T,0)}H=_.kE(T);V.parentElement.removeChild(I);FlE(V.isDarkTheme());HbV(V,!1);throw Error("lk",{cause:H});})},HbV=function(V,l){l=l===void 0?!0:l;
V.iframe!==void 0&&(BdQ(V),document.documentElement.style.overscrollBehavior=V.JSC$17140_previousHtmlOverscroll,V.parentElement.style.overscrollBehavior=V.JSC$17140_previousBodyOverscroll,V.parentElement.style.overflow=V.JSC$17140_previousBodyOverflow,V.elementToFocusAfterClose!==void 0&&(V.elementToFocusAfterClose.focus(),V.elementToFocusAfterClose=void 0),l?lXg(V):(V.parentElement.removeChild(V.iframe),V.iframe=void 0,V.iframeLoadPromise=void 0,V.mainChannel=void 0),V.opened=!1)},BdQ=function(V){V.backgroundElementsAriaHiddenIsNull&&
(a$E(V.backgroundElementsAriaHiddenIsNull),V.backgroundElementsAriaHiddenIsNull=void 0);
V.backgroundElementsAriaHiddenIsFalse&&(V.backgroundElementsAriaHiddenIsFalse.each(function(l){l.setAttribute("aria-hidden","false")}),V.backgroundElementsAriaHiddenIsFalse=void 0);
V.backgroundElementsWithoutInert&&(V.backgroundElementsWithoutInert.each(function(l){l.removeAttribute("inert")}),V.backgroundElementsWithoutInert=void 0)},IXr=function(V){V.backgroundElementsAriaHiddenIsNull=(new mX(V.iframe.parentElement)).children().filter(function(l){return l.getAttribute("aria-hidden")===null&&l!==V.iframe});
V.backgroundElementsAriaHiddenIsNull.each(function(l){l.setAttribute("aria-hidden","true")});
V.backgroundElementsAriaHiddenIsFalse=(new mX(V.iframe.parentElement)).children().filter(function(l){return l.getAttribute("aria-hidden")==="false"&&l!==V.iframe});
V.backgroundElementsAriaHiddenIsFalse.each(function(l){l.setAttribute("aria-hidden","true")});
V.backgroundElementsWithoutInert=(new mX(V.iframe.parentElement)).children().filter(function(l){return!l.hasAttribute("inert")&&l!==V.iframe});
V.backgroundElementsWithoutInert.each(function(l){l.setAttribute("inert","true")})},lXg=function(V){V=V.iframe;
V.style.bottom="-1000px";V.style.position="fixed";V.style.right="-1000px";V.style.border="";V.style.height="";V.style.left="";V.style.top="";V.style.width="";V.style.zIndex="";V.setAttribute("aria-hidden","true");V.setAttribute("aria-modal","false")};
Vq.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var mB2=function(V,l){Vq.call(this,j76[V],l);this.options=[];this.style=""};
_.t(mB2,Vq);var x96=function(V){V.style="youtube";return V},U9V=function(V,l){V.eventTarget.listen(Eg2,l);
return V},n6E=function(V,l){V.eventTarget.listen(rtb,l);
return V},ggr=function(V,l){V.options.push(l);
return V},$96=function(V){var l=[V.getOrigin()];
V.ancestorOrigins&&l.push.apply(l,_.oI(V.ancestorOrigins));var I=new _.OA(V.JSC$17140_win.location.href),H=V.startUrl?V.startUrl:V.options.includes("po")?"profile-picture/art":"profile-picture";l=Ui(_.H_(V.getTargetOrigin(),H),"origin",l);V.startUrl&&_.qx(l,"startPath",V.startUrl);V.authUser>0&&_.qx(l,"authuser",V.authUser);V.pageId!==void 0&&_.qx(l,"pageId",V.pageId);_.qx(l,"hostId",V.hostId);V.jsMode!==void 0&&_.qx(l,"jsmode",V.jsMode);V.options.length>0&&_.qx(l,"opts",V.options.join(","));try{for(var T=
_.U(["utm_source","utm_medium","utm_campaign","utm_content"]),x=T.next();!x.done;x=T.next()){var n=x.value;_.bO(I,n)&&_.qx(l,n,_.bO(I,n))}var w,N=(w=V.hl)!=null?w:_.bO(I,"hl");N!==void 0&&_.qx(l,"hl",N)}catch(L){if(!(L instanceof URIError))throw L;}V.colorScheme&&_.qx(l,"theme",V.colorScheme);V.style&&_.qx(l,"style",V.style);return l},d9Q=function(V,l){V.mainChannel=_.Ik({destination:V.JSC$17140_win,
iframe:l,origin:V.getTargetOrigin().toString(),channelName:"ow",onMessage:function(I){I=XVr(I.data);if(l===V.iframe)switch(_.Qh(I,1)){case 1:V.eventTarget.dispatchEvent(new P1E);HbV(V);break;case 2:V.eventTarget.dispatchEvent(new ogh(_.Ri(_.Rt(I,4)),_.Ri(_.Rt(I,2)),_.Ri(_.Qh(I,5)),_.Ri(_.fA(I,edV,6))));break;case 0:var H;V.eventTarget.dispatchEvent(new hdr(_.Ri(_.Rt(I,2)),(H=_.Qh(I,3))!=null?H:0));break;case 3:V.eventTarget.dispatchEvent(new P1E(!0));HbV(V,!1);break;case 4:V.eventTarget.dispatchEvent(new DBE)}}})},
VWE=function(V,l,I){_.Ik({destination:V.JSC$17140_win,
iframe:l,origin:_.IB(_.ln(_.Vu(new _.OA,V.scheme),V.domain),V.port).toString(),channelName:"owi",onMessage:function(H){l===V.iframe&&(I!==void 0&&I(),d9Q(V,l),V.opened&&V.mainChannel.send(tlr(ytE())),H.reply(),VWE(V,l))}})};
mB2.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Vq.prototype.preloadIframe.call(this,$96(this).toString()):this.iframeLoadPromise};
mB2.prototype.openPicker=function(V){var l=this;return _.d(function(I){if(I.nextAddress==1)return l.startUrl=V?V:l.options.includes("po")?"profile-picture/art":"profile-picture",_.K(I,Td6(l,$96(l).toString()),2);if(l.mainChannel){var H=l.mainChannel,T=H.send;var x=ytE();x=_.Fm(x,2,l.startUrl);T.call(H,tlr(x))}_.FU(I)})};var wfh=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(wfh,_.mV);_.B=wfh.prototype;_.B.getSize=function(){return _.Pn(this,1)};
_.B.setSize=function(V){return _.qU(this,1,V)};
_.B.getWidth=function(){return _.Pn(this,12)};
_.B.getHeight=function(){return _.Pn(this,13)};
_.B.setCenterCrop=function(V){return _.Bv(this,20,V)};
_.B.getHtml=function(){return _.DV(this,4)};
_.B.getToken=function(){return _.KS(this,24)};
_.B.setToken=function(V){return _.Fm(this,24,V)};
_.B.getBackgroundColor=function(){return _.Pn(this,87)};
_.B.hasBackgroundColor=function(){return _.Pn(this,87)!=null};
_.B.getStoryboardLevel=function(){return _.Pn(this,109)};var lX=function(V){this.JSC$17148_value_=void 0;this.childNodes_={};if(V){var l=_.r6N(V);V=_.iU(V);for(var I=0;I<l.length;I++)this.set(l[I],V[I])}};
lX.prototype.set=function(V,l){NdV(this,V,l,!1)};
lX.prototype.add=function(V,l){NdV(this,V,l,!0)};
var NdV=function(V,l,I,H){for(var T=0;T<l.length;T++){var x=l.charAt(T);V.childNodes_[x]||(V.childNodes_[x]=new lX);V=V.childNodes_[x]}if(H&&V.JSC$17148_value_!==void 0)throw Error("mk`"+l);V.JSC$17148_value_=I},Khh=function(V,l){for(var I=0;I<l.length;I++)if(V=V.childNodes_[l.charAt(I)],!V)return;
return V};
lX.prototype.get=function(V){return(V=Khh(this,V))?V.JSC$17148_value_:void 0};
lX.prototype.getValues=function(){var V=[];jUb(this,V);return V};
var jUb=function(V,l){V.JSC$17148_value_!==void 0&&l.push(V.JSC$17148_value_);for(var I in V.childNodes_)jUb(V.childNodes_[I],l)};
lX.prototype.getKeys=function(V){var l=[];if(V){for(var I=this,H=0;H<V.length;H++){var T=V.charAt(H);if(!I.childNodes_[T])return[];I=I.childNodes_[T]}YpP(I,V,l)}else YpP(this,"",l);return l};
var YpP=function(V,l,I){V.JSC$17148_value_!==void 0&&I.push(l);for(var H in V.childNodes_)YpP(V.childNodes_[H],l+H,I)};
_.B=lX.prototype;_.B.containsKey=function(V){return this.get(V)!==void 0};
_.B.containsValue=function(V){if(this.JSC$17148_value_===V)return!0;for(var l in this.childNodes_)if(this.childNodes_[l].containsValue(V))return!0;return!1};
_.B.clear=function(){this.childNodes_={};this.JSC$17148_value_=void 0};
_.B.remove=function(V){for(var l=this,I=[],H=0;H<V.length;H++){var T=V.charAt(H);if(!l.childNodes_[T])throw Error("nk`"+V);I.push([l,T]);l=l.childNodes_[T]}V=l.JSC$17148_value_;for(delete l.JSC$17148_value_;I.length>0;)if(H=I.pop(),l=H[0],H=H[1],l.childNodes_[H].isEmpty())delete l.childNodes_[H];else break;return V};
_.B.clone=function(){return new lX(this)};
_.B.getCount=function(){return ihu(this.getValues())};
_.B.isEmpty=function(){return this.JSC$17148_value_===void 0&&_.EL.isEmpty(this.childNodes_)};var JyE=function(){if(!LhQ){var V=LhQ=new lX,l;for(l in el6)V.add(l,el6[l])}},LhQ,IT=function(V,l){this.types=V;
this.setters=l},el6={a:new IT([3,
0],[function(V,l){_.Bv(V,21,l)},
function(V,l){_.qU(V,56,l)}]),
al:new IT([3],[function(V,l){_.Bv(V,74,l)}]),
b:new IT([3,0],[function(V,l){_.Bv(V,23,l)},
function(V,l){_.qU(V,38,l)}]),
ba:new IT([0],[function(V,l){_.qU(V,85,l)}]),
bc:new IT([0],[function(V,l){_.qU(V,87,l)}]),
br:new IT([0],[function(V,l){_.qU(V,86,l)}]),
c:new IT([3,0],[function(V,l){_.Bv(V,2,l)},
function(V,l){_.qU(V,39,l)}]),
cc:new IT([3],[function(V,l){_.Bv(V,51,l)}]),
ci:new IT([3],[function(V,l){_.Bv(V,32,l)}]),
ckm:new IT([3],[function(V,l){_.Bv(V,104,l)}]),
cp:new IT([0],[function(V,l){_.qU(V,92,l)}]),
cr:new IT([3],[function(V,l){_.Bv(V,108,l)}]),
cv:new IT([0],[function(V,l){_.qU(V,94,l)}]),
d:new IT([3],[function(V,l){_.Bv(V,3,l)}]),
dc:new IT([5],[function(V,l){_.Fm(V,99,l)}]),
df:new IT([3],[function(V,l){_.Bv(V,80,l)}]),
dv:new IT([3],[function(V,l){_.Bv(V,90,l)}]),
e:new IT([0],[function(V,l){_.qU(V,15,l)}]),
em:new IT([0],[function(V,l){_.qU(V,107,l)}]),
f:new IT([4],[function(V,l){_.Fm(V,16,l)}]),
fg:new IT([3],[function(V,l){_.Bv(V,34,l)}]),
fh:new IT([3],[function(V,l){_.Bv(V,30,l)}]),
fm:new IT([3],[function(V,l){_.Bv(V,84,l)}]),
fo:new IT([2],[function(V,l){_.m6(V,79,_.ai(l))}]),
ft:new IT([3],[function(V,l){_.Bv(V,50,l)}]),
fv:new IT([3],[function(V,l){_.Bv(V,31,l)}]),
g:new IT([3],[function(V,l){_.Bv(V,14,l)}]),
gce:new IT([4],[function(V,l){_.Fm(V,112,l)}]),
gd:new IT([3],[function(V,l){_.Bv(V,83,l)}]),
gm:new IT([3],[function(V,l){_.Bv(V,105,l)}]),
h:new IT([3,0],[function(V,l){_.Bv(V,4,l)},
function(V,l){_.qU(V,13,l)}]),
i:new IT([3],[function(V,l){_.Bv(V,22,l)}]),
ic:new IT([0],[function(V,l){_.qU(V,71,l)}]),
id:new IT([3],[function(V,l){_.Bv(V,70,l)}]),
il:new IT([3],[function(V,l){_.Bv(V,96,l)}]),
ip:new IT([3],[function(V,l){_.Bv(V,54,l)}]),
iv:new IT([0],[function(V,l){_.Yl(V,75,l)}]),
j:new IT([1],[function(V,l){l=l==null?l:GGE(l);_.m6(V,29,l)}]),
k:new IT([3,0],[function(V,l){_.Bv(V,17,l)},
function(V,l){_.qU(V,42,l)}]),
l:new IT([0],[function(V,l){_.qU(V,44,l)}]),
lf:new IT([3],[function(V,l){_.Bv(V,65,l)}]),
lo:new IT([3],[function(V,l){_.Bv(V,97,l)}]),
m:new IT([0],[function(V,l){_.qU(V,63,l)}]),
md:new IT([3],[function(V,l){_.Bv(V,91,l)}]),
mm:new IT([4],[function(V,l){_.Fm(V,81,l)}]),
mo:new IT([3],[function(V,l){_.Bv(V,73,l)}]),
mv:new IT([3],[function(V,l){_.Bv(V,66,l)}]),
n:new IT([3],[function(V,l){V.setCenterCrop(l)}]),
nc:new IT([3],[function(V,l){_.Bv(V,55,l)}]),
nd:new IT([3],[function(V,l){_.Bv(V,53,l)}]),
ng:new IT([3],[function(V,l){_.Bv(V,95,l)}]),
ngm:new IT([3],[function(V,l){_.Bv(V,106,l)}]),
no:new IT([3],[function(V,l){_.Bv(V,37,l)}]),
ns:new IT([3],[function(V,l){_.Bv(V,40,l)}]),
nt0:new IT([4],[function(V,l){_.Fm(V,36,l)}]),
ntm:new IT([3],[function(V,l){_.Bv(V,114,l)}]),
nu:new IT([3],[function(V,l){_.Bv(V,46,l)}]),
nw:new IT([3],[function(V,l){_.Bv(V,48,l)}]),
o:new IT([1,3],[function(V,l){l=l==null?l:GGE(l);_.m6(V,7,l)},
function(V,l){_.Bv(V,27,l)}]),
p:new IT([3,0],[function(V,l){_.Bv(V,19,l)},
function(V,l){_.qU(V,43,l)}]),
pa:new IT([3],[function(V,l){_.Bv(V,61,l)}]),
pc:new IT([0],[function(V,l){_.qU(V,88,l)}]),
pd:new IT([3],[function(V,l){_.Bv(V,60,l)}]),
pf:new IT([3],[function(V,l){_.Bv(V,67,l)}]),
pg:new IT([3],[function(V,l){_.Bv(V,72,l)}]),
pi:new IT([2],[function(V,l){_.m6(V,76,_.ai(l))}]),
pp:new IT([3],[function(V,l){_.Bv(V,52,l)}]),
pt:new IT([4],[function(V,l){_.Fm(V,111,l)}]),
q:new IT([4],[function(V,l){_.Fm(V,28,l)}]),
r:new IT([3,0],[function(V,l){_.Bv(V,6,l)},
function(V,l){_.qU(V,26,l)}]),
ra:new IT([3],[function(V,l){_.Bv(V,103,l)}]),
rf:new IT([3],[function(V,l){_.Bv(V,100,l)}]),
rg:new IT([3],[function(V,l){_.Bv(V,59,l)}]),
rh:new IT([3],[function(V,l){_.Bv(V,49,l)}]),
rj:new IT([3],[function(V,l){_.Bv(V,57,l)}]),
ro:new IT([2],[function(V,l){_.m6(V,78,_.ai(l))}]),
rp:new IT([3],[function(V,l){_.Bv(V,58,l)}]),
rw:new IT([3],[function(V,l){_.Bv(V,35,l)}]),
rwa:new IT([3],[function(V,l){_.Bv(V,64,l)}]),
rwu:new IT([3],[function(V,l){_.Bv(V,41,l)}]),
s:new IT([3,0],[function(V,l){_.Bv(V,33,l)},
function(V,l){V.setSize(l)}]),
sb:new IT([0],[function(V,l){_.qU(V,110,l)}]),
sc:new IT([0],[function(V,l){_.qU(V,89,l)}]),
sg:new IT([3],[function(V,l){_.Bv(V,82,l)}]),
sl:new IT([0],[function(V,l){_.qU(V,109,l)}]),
sm:new IT([3],[function(V,l){_.Bv(V,93,l)}]),
t:new IT([4],[function(V,l){V.setToken(l)}]),
tm:new IT([3],[function(V,l){_.Bv(V,113,l)}]),
u:new IT([3],[function(V,l){_.Bv(V,18,l)}]),
ut:new IT([3],[function(V,l){_.Bv(V,45,l)}]),
v:new IT([0],[function(V,l){_.qU(V,62,l)}]),
vb:new IT([0],[function(V,l){_.Yl(V,68,l)}]),
vf:new IT([4],[function(V,l){_.Fm(V,102,l)}]),
vl:new IT([0],[function(V,l){_.Yl(V,69,l)}]),
vm:new IT([3],[function(V,l){_.Bv(V,98,l)}]),
w:new IT([0],[function(V,l){_.qU(V,12,l)}]),
x:new IT([0],[function(V,l){_.qU(V,9,l)}]),
y:new IT([0],[function(V,l){_.qU(V,10,l)}]),
ya:new IT([2],[function(V,l){_.m6(V,77,_.ai(l))}]),
z:new IT([0],[function(V,l){_.qU(V,11,l)}])};
JyE.prototype.parse=function(V){var l=new wfh,I=new wfh;if(V=="")V=!0;else{V=V.split("-");for(var H=!0,T=0;T<V.length;T++){var x=V[T];if(x.length==0)H=!1;else{var n=x,w=!1;var N=n;var L=n.charAt(0);L!=L.toLowerCase()&&(w=!0,N=n.charAt(0).toLowerCase()+n.substring(1));var e=LhQ;for(L=1;L<=N.length;++L){var k=e,X=N.substring(0,L);if(X.length==0?k.isEmpty():!Khh(k,X))break}N=L==1?null:(N=e.get(N.substring(0,L-1)))?{option:n.substring(0,L-1),value:n.substring(L-1),signed:w,attributes:N}:null;if(N){n=
[];w=[];L=!1;for(e=0;e<N.attributes.types.length;e++){k=N.attributes.types[e];var r=N.value;X=T;if(N.signed&&k==1)for(var E=r.length;E<12&&X<V.length-1;)r+="-"+V[X+1],E=r.length,++X;else if(k==2)for(;X<V.length-1&&V[X+1].match(/^[\d\.]/);)r+="-"+V[X+1],++X;E=N.attributes.setters[e];r=k4h(this,k)(N.option,r,l,I,E);if(r===null){L=!0;T=X;break}else n.push(k),w.push(r)}if(!L)for(N=0;N<w.length;N++)e=n[N],r=w[N],FhE(this,e)(x,r);H=H&&L}else H=!1}}V=H}return new XfV(l,I,V)};
var HL=function(V,l,I,H,T,x){T(I,l);V=V.charAt(0);x=x(V==V.toUpperCase());T(H,x)};
_.B=JyE.prototype;_.B.parseAndSetIntOption_=function(V,l,I,H,T){if(l=="")return 0;isFinite(l)&&(l=String(l));l=typeof l==="string"?/^\s*-?0x/i.test(l)?parseInt(l,16):parseInt(l,10):NaN;if(isNaN(l))return 1;HL(V,l,I,H,T,Number);return null};
_.B.logIntParseError_=function(){};
_.B.parseAndSetFloatOption_=function(V,l,I,H,T){if(l=="")return 0;var x=Number(l);l=x==0&&_.jc(l)?NaN:x;if(isNaN(l))return 1;HL(V,l,I,H,T,Number);return null};
_.B.logFloatParseError_=function(){};
_.B.parseAndSetBoolOption_=function(V,l,I,H,T){if(l!="")return 2;HL(V,!0,I,H,T,Boolean);return null};
_.B.logBoolParseError_=function(){};
_.B.parseAndSetStringOption_=function(V,l,I,H,T){if(l=="")return 0;HL(V,l,I,H,T,function(x){return x?"1":""});
return null};
_.B.logStringParseError_=function(){};
_.B.parseAndSetUint64Base64Option_=function(V,l,I,H,T){if(l=="")return 0;HL(V,l,I,H,T,function(x){return x?1:0});
return null};
var k4h=function(V,l){switch(l){case 0:return(0,_.zN)(V.parseAndSetIntOption_,V);case 2:return(0,_.zN)(V.parseAndSetFloatOption_,V);case 3:return(0,_.zN)(V.parseAndSetBoolOption_,V);case 4:return(0,_.zN)(V.parseAndSetStringOption_,V);case 1:return(0,_.zN)(V.parseAndSetUint64Base64Option_,V);default:return function(){}}},FhE=function(V,l){switch(l){case 0:return(0,_.zN)(V.logIntParseError_,V);
case 2:return(0,_.zN)(V.logFloatParseError_,V);case 3:return(0,_.zN)(V.logBoolParseError_,V);case 4:case 1:return(0,_.zN)(V.logStringParseError_,V);default:return function(){}}},XfV=function(V,l,I){this.valueProto_=V;
this.signatureFlagProto_=l;this.JSC$17160_valid_=I};
XfV.prototype.isValid=function(){return this.JSC$17160_valid_};var tng=function(V){this.JSC$17161_parser_=null;this.JSC$17161_components_=[];this.JSC$17161_parsedOptions_=null;zlg(this,V)},yMV=function(V){V.JSC$17161_parser_==null&&(V.JSC$17161_parser_=new JyE);
return V.JSC$17161_parser_},zlg=function(V,l){V.JSC$17161_parsedOptions_=l?typeof l==="string"?yMV(V).parse(l):l:yMV(V).parse("")},T_=function(V,l){return V==l?!1:!0};
_.B=tng.prototype;_.B.JSC$17163_setCrop=function(V){V=V||void 0;var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,_.DV(I,2),_.DV(l.signatureFlagProto_,2))&&_.Bv(I,2,V);return this};
_.B.JSC$17163_setCircleCrop=function(V){V=V||void 0;var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,_.h3(I,51),_.h3(l.signatureFlagProto_,51))&&_.Bv(I,51,V);return this};
_.B.JSC$17163_setImageCrop=function(V){V=V||void 0;var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,_.h3(I,32),_.h3(l.signatureFlagProto_,32))&&_.Bv(I,32,V);return this};
_.B.JSC$17163_setHeight=function(V){var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,I.getHeight(),l.signatureFlagProto_.getHeight())&&_.qU(I,13,V);return this};
_.B.setCenterCrop=function(V){V=V||void 0;var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,_.DV(I,20),_.DV(l.signatureFlagProto_,20))&&I.setCenterCrop(V);return this};
_.B.JSC$17163_setSmartCrop=function(V){V=V||void 0;var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,_.DV(I,19),_.DV(l.signatureFlagProto_,19))&&_.Bv(I,19,V);return this};
_.B.JSC$17163_setPad=function(V){V=V||void 0;var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,_.h3(I,60),_.h3(l.signatureFlagProto_,60))&&_.Bv(I,60,V);return this};
_.B.JSC$17163_setSmartCropUseFace=function(V){V=V||void 0;var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,_.DV(I,67),_.DV(l.signatureFlagProto_,67))&&_.Bv(I,67,V);return this};
_.B.JSC$17163_setSmartCropNoClip=function(V){V=V||void 0;var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,_.DV(I,52),_.DV(l.signatureFlagProto_,52))&&_.Bv(I,52,V);return this};
_.B.setSize=function(V){var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,I.getSize(),l.signatureFlagProto_.getSize())&&I.setSize(V);return this};
_.B.setToken=function(V){V=V||void 0;var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,I.getToken(),l.signatureFlagProto_.getToken())&&I.setToken(V);return this};
_.B.JSC$17163_setWidth=function(V){var l=this.JSC$17161_parsedOptions_,I=l.valueProto_;T_(V,I.getWidth(),l.signatureFlagProto_.getWidth())&&_.qU(I,12,V);return this};
_.B.clearOptions=function(){zlg(this,"");return this};
_.B.build=function(){this.JSC$17161_components_.length=0;var V=this.JSC$17161_parsedOptions_,l=V.valueProto_;V=V.signatureFlagProto_;BL(this,"s",l.getSize(),V.getSize());BL(this,"w",l.getWidth(),V.getWidth());xx(this,"c",_.DV(l,2),_.DV(V,2));xx(this,"d",_.DV(l,3),_.DV(V,3));BL(this,"h",l.getHeight(),V.getHeight());xx(this,"s",_.h3(l,33),_.h3(V,33));xx(this,"h",l.getHtml(),V.getHtml());xx(this,"p",_.DV(l,19),_.DV(V,19));xx(this,"pp",_.DV(l,52),_.DV(V,52));xx(this,"pf",_.DV(l,67),_.DV(V,67));xx(this,
"n",_.DV(l,20),_.DV(V,20));BL(this,"r",_.Pn(l,26),_.Pn(V,26));xx(this,"r",_.DV(l,6),_.DV(V,6));xx(this,"o",_.h3(l,27),_.h3(V,27));var I=E7u(_.Fr(l,7));UW(this,"o",I,E7u(_.Fr(V,7)));I=E7u(_.Fr(l,29));UW(this,"j",I,E7u(_.Fr(V,29)));BL(this,"x",_.Pn(l,9),_.Pn(V,9));BL(this,"y",_.Pn(l,10),_.Pn(V,10));BL(this,"z",_.Pn(l,11),_.Pn(V,11));xx(this,"g",_.DV(l,14),_.DV(V,14));BL(this,"e",_.Pn(l,15),_.Pn(V,15));UW(this,"f",_.KS(l,16),_.KS(V,16));xx(this,"k",_.h3(l,17),_.h3(V,17));xx(this,"u",_.h3(l,18),!0);xx(this,
"ut",_.h3(l,45),!0);xx(this,"i",_.h3(l,22),!0);xx(this,"a",_.h3(l,21),_.h3(V,21));xx(this,"b",_.DV(l,23),_.DV(V,23));BL(this,"b",_.Pn(l,38),_.Pn(V,38));BL(this,"c",_.Pn(l,39),_.Pn(V,39),16,8);UW(this,"q",_.KS(l,28),_.KS(V,28));xx(this,"fh",_.h3(l,30),_.h3(V,30));xx(this,"fv",_.h3(l,31),_.h3(V,31));xx(this,"fg",_.DV(l,34),_.DV(V,34));xx(this,"ci",_.h3(l,32),_.h3(V,32));UW(this,"t",l.getToken(),V.getToken());UW(this,"nt0",_.KS(l,36),_.KS(V,36));xx(this,"rw",_.DV(l,35),_.DV(V,35));xx(this,"rwu",_.DV(l,
41),_.DV(V,41));xx(this,"rwa",_.DV(l,64),_.DV(V,64));xx(this,"nw",_.DV(l,48),_.DV(V,48));xx(this,"rh",_.DV(l,49),_.DV(V,49));xx(this,"no",_.DV(l,37),_.DV(V,37));xx(this,"ns",_.h3(l,40),_.h3(V,40));BL(this,"k",_.Pn(l,42),_.Pn(V,42));BL(this,"p",_.Pn(l,43),_.Pn(V,43));BL(this,"l",_.Pn(l,44),_.Pn(V,44));BL(this,"v",_.Pn(l,62),_.Pn(V,62));xx(this,"nu",_.h3(l,46),_.h3(V,46));xx(this,"ft",_.h3(l,50),_.h3(V,50));xx(this,"cc",_.h3(l,51),_.h3(V,51));xx(this,"nd",_.h3(l,53),_.h3(V,53));xx(this,"ip",_.h3(l,
54),_.h3(V,54));xx(this,"nc",_.h3(l,55),_.h3(V,55));BL(this,"a",_.Pn(l,56),_.Pn(V,56));xx(this,"rj",_.h3(l,57),_.h3(V,57));xx(this,"rp",_.h3(l,58),_.h3(V,58));xx(this,"rg",_.h3(l,59),_.h3(V,59));xx(this,"pd",_.h3(l,60),_.h3(V,60));xx(this,"pa",_.h3(l,61),_.h3(V,61));BL(this,"m",_.Pn(l,63),_.Pn(V,63));BL(this,"vb",_.ot(l,68),_.ot(V,68));BL(this,"vl",_.ot(l,69),_.ot(V,69));xx(this,"lf",_.h3(l,65),_.h3(V,65));xx(this,"mv",_.h3(l,66),_.h3(V,66));xx(this,"id",_.h3(l,70),_.h3(V,70));BL(this,"ic",_.Pn(l,
71),!0);xx(this,"pg",_.DV(l,72),_.DV(V,72));xx(this,"mo",_.h3(l,73),_.h3(V,73));xx(this,"al",_.h3(l,74),_.h3(V,74));BL(this,"iv",_.ot(l,75),_.ot(V,75));BL(this,"pi",_.yh(l,76),_.yh(V,76));BL(this,"ya",_.yh(l,77),_.yh(V,77));BL(this,"ro",_.yh(l,78),_.yh(V,78));BL(this,"fo",_.yh(l,79),_.yh(V,79));xx(this,"df",_.h3(l,80),_.h3(V,80));UW(this,"mm",_.KS(l,81),_.KS(V,81));xx(this,"sg",_.h3(l,82),_.h3(V,82));xx(this,"gd",_.h3(l,83),_.h3(V,83));xx(this,"fm",_.h3(l,84),_.h3(V,84));BL(this,"ba",_.Pn(l,85),_.Pn(V,
85));BL(this,"br",_.Pn(l,86),_.Pn(V,86));BL(this,"bc",l.getBackgroundColor(),V.getBackgroundColor(),16,8);BL(this,"pc",_.Pn(l,88),_.Pn(V,88),16,8);BL(this,"sc",_.Pn(l,89),_.Pn(V,89),16,8);xx(this,"dv",_.h3(l,90),_.h3(V,90));xx(this,"md",_.h3(l,91),_.h3(V,91));BL(this,"cp",_.Pn(l,92),_.Pn(V,92));xx(this,"sm",_.h3(l,93),_.h3(V,93));BL(this,"cv",_.Pn(l,94),_.Pn(V,94));xx(this,"ng",_.h3(l,95),_.h3(V,95));xx(this,"il",_.h3(l,96),_.h3(V,96));xx(this,"lo",_.h3(l,97),_.h3(V,97));xx(this,"vm",_.h3(l,98),_.h3(V,
98));UW(this,"dc",_.KS(l,99),_.KS(V,99));xx(this,"rf",_.h3(l,100),_.h3(V,100));UW(this,"vf",_.KS(l,102),_.KS(V,102));xx(this,"ra",_.DV(l,103),_.DV(V,103));xx(this,"ckm",_.h3(l,104),_.h3(V,104));xx(this,"gm",_.h3(l,105),_.h3(V,105));xx(this,"ngm",_.h3(l,106),_.h3(V,106));BL(this,"em",_.Pn(l,107),_.Pn(V,107));xx(this,"cr",_.h3(l,108),_.h3(V,108));BL(this,"sl",l.getStoryboardLevel(),V.getStoryboardLevel());BL(this,"sb",_.Pn(l,110),_.Pn(V,110));UW(this,"pt",_.KS(l,111),_.KS(V,111));UW(this,"gce",_.KS(l,
112),_.KS(V,112));xx(this,"tm",_.h3(l,113),_.h3(V,113));xx(this,"ntm",_.h3(l,114),_.h3(V,114));return this.JSC$17161_components_.join("-")};
var BL=function(V,l,I,H,T,x){if(I!=null){var n=T==void 0||T!=10&&T!=16?10:T;I=I.toString(n);T=new uoY;T.append(n==16?"0x":"");n=T.append;x==void 0?x="":(x-=I.length,x=x<=0?"":(0,_.oJo)("0",x));n.call(T,x);T.append(I);tWP(V,l,T.toString(),!!H)}},xx=function(V,l,I,H){I&&tWP(V,l,"",!!H)},UW=function(V,l,I,H){I&&tWP(V,l,I,!!H)},tWP=function(V,l,I,H){H&&(l=l.charAt(0).toUpperCase()+l.substring(1));
V.JSC$17161_components_.push(l+I)};_.Uk(Gg,tng);_.B=Gg.prototype;_.B.JSC$17163_setCrop=function(V){V&&no(this);return Gg.superClass_.JSC$17163_setCrop.call(this,V)};
_.B.JSC$17163_setHeight=function(V){V=V==null||V<0?void 0:V;V!=null&&this.setSize();return Gg.superClass_.JSC$17163_setHeight.call(this,V)};
_.B.JSC$17163_setImageCrop=function(V){V&&no(this);return Gg.superClass_.JSC$17163_setImageCrop.call(this,V)};
_.B.JSC$17163_setCircleCrop=function(V){V&&no(this);return Gg.superClass_.JSC$17163_setCircleCrop.call(this,V)};
_.B.setSize=function(V){_.m3(V)&&(V=Math.max(V.width,V.height));V=V==null||V<0?void 0:V;V!=null&&(this.JSC$17163_setWidth(),this.JSC$17163_setHeight());return Gg.superClass_.setSize.call(this,V)};
_.B.JSC$17163_setSmartCrop=function(V){V&&no(this);return Gg.superClass_.JSC$17163_setSmartCrop.call(this,V)};
_.B.JSC$17163_setSmartCropNoClip=function(V){V&&no(this);return Gg.superClass_.JSC$17163_setSmartCropNoClip.call(this,V)};
_.B.JSC$17163_setSmartCropUseFace=function(V){V&&no(this);return Gg.superClass_.JSC$17163_setSmartCropUseFace.call(this,V)};
_.B.setCenterCrop=function(V){V&&no(this);return Gg.superClass_.setCenterCrop.call(this,V)};
_.B.JSC$17163_setPad=function(V){V&&no(this);return Gg.superClass_.JSC$17163_setPad.call(this,V)};
_.B.JSC$17163_setWidth=function(V){V=V==null||V<0?void 0:V;V!=null&&this.setSize();return Gg.superClass_.JSC$17163_setWidth.call(this,V)};
var rMr=function(V){V.clearOptions();var l=V.JSC$17161_parsedOptions_,I=l.valueProto_;T_(!0,_.DV(I,3),_.DV(l.signatureFlagProto_,3))&&_.Bv(I,3,!0);return V},no=function(V){V.setCenterCrop();
V.JSC$17163_setCircleCrop();V.JSC$17163_setCrop();V.JSC$17163_setImageCrop();V.JSC$17163_setPad();V.JSC$17163_setSmartCrop();V.JSC$17163_setSmartCropNoClip();V.JSC$17163_setSmartCropUseFace()};
Gg.prototype.build=function(){var V=this.JSC$17161_parsedOptions_.valueProto_;_.h3(V,18)||_.h3(V,45)?V.getSize()||this.setSize(0):(V=this.JSC$17161_parsedOptions_.valueProto_,V.getSize()||V.getWidth()||V.getHeight()||(this.setSize(),this.JSC$17163_setHeight(),this.JSC$17163_setWidth(),no(this)));return Gg.superClass_.build.call(this)};var G4V=/^[^\/]*\/\//,$x=function(V,l){l=l===void 0?!1:l;this.original_=V;this.originalPrefix_="";(V=this.original_.match(G4V))&&V[0]?(this.originalPrefix_=V[0],V=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):V="http://"+this.original_;this.uri_=_.Wv(V,!0);this.isFreeformUrl_=l;this.JSC$17167_valid_=!0;this.obfuscated_=!1},E6I=function(V,l){V.JSC$17169_pathPrefix_=V.JSC$17169_pathPrefix_?V.JSC$17169_pathPrefix_+("/"+l):l},dB=function(V){if(V.JSC$17169_components_==
void 0){var l=V.uri_.getPath().substring(1);
V.JSC$17169_pathPrefix_=null;if(V.isFreeformUrl_){V.JSC$17169_components_=[];if((l.match(/=/g)||[]).length>1)return V.JSC$17167_valid_=!1,V.JSC$17169_components_;var I=l.indexOf("=");I!=-1?(V.JSC$17169_components_.push(l.substr(0,I)),V.JSC$17169_components_.push(l.substr(I+1))):V.JSC$17169_components_.push(l);return V.JSC$17169_components_}V.JSC$17169_components_=l.split("/");l=V.JSC$17169_components_.length;l>2&&V.JSC$17169_components_[0]=="u"&&(E6I(V,V.JSC$17169_components_[0]+"/"+V.JSC$17169_components_[1]),
V.JSC$17169_components_.shift(),V.JSC$17169_components_.shift(),l-=2);if(l==0||l==4||l>7)return V.JSC$17167_valid_=!1,V.JSC$17169_components_;if(l==2)E6I(V,V.JSC$17169_components_[0]);else if(V.JSC$17169_components_[0]=="image")E6I(V,V.JSC$17169_components_[0]);else if(l==7||l==3)return V.JSC$17167_valid_=!1,V.JSC$17169_components_;if(l<=3){V.obfuscated_=!0;l==3&&(E6I(V,V.JSC$17169_components_[1]),V.JSC$17169_components_.shift(),--l);--l;I=V.JSC$17169_components_[l];var H=I.indexOf("=");H!=-1&&(V.JSC$17169_components_[l]=
I.substr(0,H),V.JSC$17169_components_.push(I.substr(H+1)))}}return V.JSC$17169_components_};
$x.prototype.isValid=function(){dB(this);return this.JSC$17167_valid_};
$x.prototype.isObfuscated=function(){dB(this);return this.obfuscated_};
var JMh=function(V){dB(V);return V.isFreeformUrl_},wB=function(V){dB(V);
V.JSC$17169_pathPrefix_==void 0&&(V.JSC$17169_pathPrefix_=null);return V.JSC$17169_pathPrefix_},o6P=function(V){switch(dB(V).length){case 7:return!0;
case 6:return wB(V)==null;case 5:return!1;case 3:return!0;case 2:return wB(V)==null;case 1:return!1;default:return!1}},N5=function(V,l){if(JMh(V))a:{switch(l){case 7:l=0;
break;case 4:if(!o6P(V)){V=null;break a}l=1;break;default:V=null;break a}V=dB(V)[l]}else if(V.isObfuscated())a:{var I=wB(V)!=null?1:0;switch(l){case 6:l=I;break;case 4:if(!o6P(V)){V=null;break a}l=1+I;break;default:V=null;break a}V=dB(V)[l]}else a:{I=wB(V)!=null?1:0;switch(l){case 0:l=I;break;case 1:l=1+I;break;case 2:l=2+I;break;case 3:l=3+I;break;case 4:if(!o6P(V)){V=null;break a}l=4+I;break;case 5:l=o6P(V)?1:0;l=4+I+l;break;default:V=null;break a}V=dB(V)[l]}return V};
$x.prototype.getOptions=function(){this.options_==void 0&&(this.options_=N5(this,4));return this.options_};var E92=function(){};
E92.prototype.parse=function(V,l){return new ryu(V,l===void 0?!1:l)};
var ryu=function(V,l){$x.call(this,V,l===void 0?!1:l)};
_.t(ryu,$x);_.Uk(ED,Gg);var GKQ;ED.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
ED.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var V=ED.superClass_.build.call(this),l=[];wB(this.parsedImageUrl_)!=null&&l.push(wB(this.parsedImageUrl_));var I=JMh(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var H=this.parsedImageUrl_;H.obfuscatedData_==void 0&&(H.obfuscatedData_=N5(H,6));l.push(H.obfuscatedData_+(V?"="+V:""))}else if(I){H=l.push;var T=this.parsedImageUrl_;T.freeformUrlPath_===void 0&&(T.freeformUrlPath_=N5(T,
7));H.call(l,T.freeformUrlPath_);V&&l.push(V)}else H=l.push,T=this.parsedImageUrl_,T.obfuscatedGaiaId_==void 0&&(T.obfuscatedGaiaId_=N5(T,0)),H.call(l,T.obfuscatedGaiaId_),H=l.push,T=this.parsedImageUrl_,T.photoId_==void 0&&(T.photoId_=N5(T,1)),H.call(l,T.photoId_),H=l.push,T=this.parsedImageUrl_,T.imageVersion_==void 0&&(T.imageVersion_=N5(T,2)),H.call(l,T.imageVersion_),H=l.push,T=this.parsedImageUrl_,T.signature_==void 0&&(T.signature_=N5(T,3)),H.call(l,T.signature_),V&&l.push(V),V=l.push,H=this.parsedImageUrl_,
H.filename_==void 0&&(H.filename_=N5(H,5)),V.call(l,H.filename_);l=I?l.join("="):l.join("/");l=_.Wv(this.protocolPrefix_+this.JSC$17175_domain_+"/"+l+(this.JSC$17175_query_?"?"+this.JSC$17175_query_:"")).toString();l.startsWith("%3a//")&&(l=l.replace("%3a//","://"));return l};var hlI=_.fl(["viewBox"]),P9b=_.fl(["width"]),D9P=_.fl(["height"]),ZbE=_.fl(["fill"]),Sp6=_.fl(["id"]),RlI=_.fl(["x"]),QUY=_.fl(["y"]);o96.prototype.getLength=function(){return this.parsedData.length};
o96.prototype.write=function(V){for(var l=0,I=this.parsedData.length;l<I;l++)V.put(this.parsedData[l],8)};
var QJP=function(V,l){var I=new o96(l);V.dataList.push(I);I=V.errorCorrectLevel;var H=1,T=encodeURI(l).toString().replace(/%[0-9a-fA-F]{2}/g,"a");l=T.length+(T.length!=l?3:0);T=0;for(var x=Ko.length;T<=x;T++){var n=0;switch(I){case 1:n=Ko[T][0];break;case 0:n=Ko[T][1];break;case 3:n=Ko[T][2];break;case 2:n=Ko[T][3]}if(l<=n)break;else H++}if(H>Ko.length)throw Error("wk");V.typeNumber=H;V.dataCache=null};
hgV.prototype.isDark=function(V,l){if(V<0||this.moduleCount<=V||l<0||this.moduleCount<=l)throw Error("ok`"+V+"`"+l);return this.modules[V][l]};
for(var cyY=function(V,l,I){V.moduleCount=V.typeNumber*4+17;V.modules=Array(V.moduleCount);for(var H=0;H<V.moduleCount;H++){V.modules[H]=Array(V.moduleCount);for(var T=0;T<V.moduleCount;T++)V.modules[H][T]=null}cMr(V,0,0);cMr(V,V.moduleCount-7,0);cMr(V,0,V.moduleCount-7);H=WhY[V.typeNumber-1];for(T=0;T<H.length;T++)for(var x=0;x<H.length;x++){var n=H[T],w=H[x];if(V.modules[n][w]==null)for(var N=-2;N<=2;N++)for(var L=-2;L<=2;L++)V.modules[n+N][w+L]=N==-2||N==2||L==-2||L==2||N==0&&L==0?!0:!1}for(H=
8;H<V.moduleCount-8;H++)V.modules[H][6]==null&&(V.modules[H][6]=H%2==0);for(H=8;H<V.moduleCount-8;H++)V.modules[6][H]==null&&(V.modules[6][H]=H%2==0);H=V.errorCorrectLevel<<3|I;for(T=H<<10;jI(T)-jI(1335)>=0;)T^=1335<<jI(T)-jI(1335);H=(H<<10|T)^21522;for(T=0;T<15;T++)x=!l&&(H>>T&1)==1,T<6?V.modules[T][8]=x:T<8?V.modules[T+1][8]=x:V.modules[V.moduleCount-15+T][8]=x;for(T=0;T<15;T++)x=!l&&(H>>T&1)==1,T<8?V.modules[8][V.moduleCount-T-1]=x:T<9?V.modules[8][15-T-1+1]=x:V.modules[8][15-T-1]=x;V.modules[V.moduleCount-
8][8]=!l;if(V.typeNumber>=7){H=V.typeNumber;for(T=H<<12;jI(T)-jI(7973)>=0;)T^=7973<<jI(T)-jI(7973);H=H<<12|T;for(T=0;T<18;T++)x=!l&&(H>>T&1)==1,V.modules[Math.floor(T/3)][T%3+V.moduleCount-8-3]=x;for(T=0;T<18;T++)x=!l&&(H>>T&1)==1,V.modules[T%3+V.moduleCount-8-3][Math.floor(T/3)]=x}if(V.dataCache==null){T=V.typeNumber;x=V.dataList;l=V.errorCorrectLevel;H=bbY(T,l);if(H==void 0)throw Error("vk`"+T+"`"+l);n=H.length/3;l=[];for(w=0;w<n;w++){N=H[w*3];L=H[w*3+1];for(var e=H[w*3+2],k=0;k<N;k++)l.push(new PeB(L,
e))}H=new DZu;for(n=0;n<x.length;n++)w=x[n],H.put(w.mode,4),H.put(w.getLength(),qpu(w.mode,T)),w.write(H);for(n=T=0;n<l.length;n++)T+=l[n].dataCount;if(H.length>T*8)throw Error("pk`"+H.length+"`"+T*8);for(H.length+4<=T*8&&H.put(0,4);H.length%8!=0;)MWP(H,!1);for(;!(H.length>=T*8);){H.put(236,8);if(H.length>=T*8)break;H.put(17,8)}x=T=L=0;n=Array(l.length);w=Array(l.length);for(N=0;N<l.length;N++){k=l[N].dataCount;var X=l[N].totalCount-k;T=Math.max(T,k);x=Math.max(x,X);n[N]=Array(k);for(e=0;e<n[N].length;e++)n[N][e]=
255&H.buffer[e+L];L+=k;e=X;k=new Jg([1],0);for(X=0;X<e;X++)k=k.multiply(new Jg([1,sUV(X)],0));e=k;k=(new Jg(n[N],e.getLength()-1)).mod(e);w[N]=Array(e.getLength()-1);for(e=0;e<w[N].length;e++)X=e+k.getLength()-w[N].length,w[N][e]=X>=0?k.get(X):0}for(e=H=0;e<l.length;e++)H+=l[e].totalCount;H=Array(H);for(e=L=0;e<T;e++)for(N=0;N<l.length;N++)e<n[N].length&&(H[L++]=n[N][e]);for(e=0;e<x;e++)for(N=0;N<l.length;N++)e<w[N].length&&(H[L++]=w[N][e]);V.dataCache=H}l=V.dataCache;H=-1;T=V.moduleCount-1;x=7;n=
0;for(w=V.moduleCount-1;w>0;w-=2)for(w==6&&w--;;){for(N=0;N<2;N++)V.modules[T][w-N]==null&&(L=!1,n<l.length&&(L=(l[n]>>>x&1)==1),pfu(I,T,w-N)&&(L=!L),V.modules[T][w-N]=L,x--,x==-1&&(n++,x=7));T+=H;if(T<0||V.moduleCount<=T){T-=H;H=-H;break}}},cMr=function(V,l,I){for(var H=-1;H<=7;H++)if(!(l+H<=-1||V.moduleCount<=l+H))for(var T=-1;T<=7;T++)I+T<=-1||V.moduleCount<=I+T||(V.modules[l+H][I+T]=0<=H&&H<=6&&(T==0||T==6)||0<=T&&T<=6&&(H==0||H==6)||2<=H&&H<=4&&2<=T&&T<=4?!0:!1)},WlQ=function(V){for(var l=0,
I=0,H=0;H<8;H++){cyY(V,!0,H);
var T=V;for(var x=T.moduleCount,n=0,w=0;w<x;w++)for(var N=0;N<x;N++){for(var L=0,e=T.isDark(w,N),k=-1;k<=1;k++)if(!(w+k<0||x<=w+k))for(var X=-1;X<=1;X++)N+X<0||x<=N+X||(k!=0||X!=0)&&e==T.isDark(w+k,N+X)&&L++;L>5&&(n+=3+L-5)}for(w=0;w<x-1;w++)for(N=0;N<x-1;N++)if(L=0,T.isDark(w,N)&&L++,T.isDark(w+1,N)&&L++,T.isDark(w,N+1)&&L++,T.isDark(w+1,N+1)&&L++,L==0||L==4)n+=3;for(w=0;w<x;w++)for(N=0;N<x-6;N++)T.isDark(w,N)&&!T.isDark(w,N+1)&&T.isDark(w,N+2)&&T.isDark(w,N+3)&&T.isDark(w,N+4)&&!T.isDark(w,N+5)&&
T.isDark(w,N+6)&&(n+=40);for(N=0;N<x;N++)for(w=0;w<x-6;w++)T.isDark(w,N)&&!T.isDark(w+1,N)&&T.isDark(w+2,N)&&T.isDark(w+3,N)&&T.isDark(w+4,N)&&!T.isDark(w+5,N)&&T.isDark(w+6,N)&&(n+=40);for(N=L=0;N<x;N++)for(w=0;w<x;w++)T.isDark(w,N)&&L++;T=n+=Math.abs(100*L/x/x-50)/5*10;if(H==0||l>T)l=T,I=H}return I},WhY=[[],
[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]],jI=function(V){for(var l=0;V!=0;)l++,V>>>=1;return l},pfu=function(V,l,I){switch(V){case 0:return(l+I)%2==0;
case 1:return l%2==0;case 2:return I%3==0;case 3:return(l+I)%3==0;case 4:return(Math.floor(l/2)+Math.floor(I/3))%2==0;case 5:return l*I%2+l*I%3==0;case 6:return(l*I%2+l*I%3)%2==0;case 7:return(l*I%3+(l+I)%2)%2==0;default:throw Error("qk`"+V);}},qpu=function(V,l){if(1<=l&&l<10)switch(V){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("rk`"+V);}else if(l<27)switch(V){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("rk`"+V);}else if(l<41)switch(V){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("rk`"+V);}else throw Error("sk`"+l);},Yx=function(V){if(V<1)throw Error("tk`"+V);
return AME[V]},sUV=function(V){for(;V<0;)V+=255;
for(;V>=256;)V-=255;return Lo[V]},Lo=Array(256),AME=Array(256),uBI=0;uBI<8;uBI++)Lo[uBI]=1<<uBI;
for(var eI=8;eI<256;eI++)Lo[eI]=Lo[eI-4]^Lo[eI-5]^Lo[eI-6]^Lo[eI-8];for(var v6V=0;v6V<255;v6V++)AME[Lo[v6V]]=v6V;Jg.prototype.get=function(V){return this.num[V]};
Jg.prototype.getLength=function(){return this.num.length};
Jg.prototype.multiply=function(V){for(var l=Array(this.getLength()+V.getLength()-1),I=0;I<this.getLength();I++)for(var H=0;H<V.getLength();H++)l[I+H]^=sUV(Yx(this.get(I))+Yx(V.get(H)));return new Jg(l,0)};
Jg.prototype.mod=function(V){if(this.getLength()-V.getLength()<0)return this;for(var l=Yx(this.get(0))-Yx(V.get(0)),I=Array(this.getLength()),H=0;H<this.getLength();H++)I[H]=this.get(H);for(H=0;H<V.getLength();H++)I[H]^=sUV(Yx(V.get(H))+l);return(new Jg(I,0)).mod(V)};
var Obr=[[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]],bbY=function(V,l){switch(l){case 1:return Obr[(V-1)*4];case 0:return Obr[(V-1)*4+1];case 3:return Obr[(V-1)*4+2];case 2:return Obr[(V-1)*4+3]}};
DZu.prototype.get=function(V){return(this.buffer[Math.floor(V/8)]>>>7-V%8&1)==1};
DZu.prototype.put=function(V,l){for(var I=0;I<l;I++)MWP(this,(V>>>l-I-1&1)==1)};
var MWP=function(V,l){var I=Math.floor(V.length/8);V.buffer.length<=I&&V.buffer.push(0);l&&(V.buffer[I]|=128>>>V.length%8);V.length++},Ko=[[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]],Rgb=function(){var V=function(l,I){this.JSC$17195__el=l;this.JSC$17195__htOption=I};
V.prototype.draw=function(l){function I(e,k){e=document.createElementNS("http://www.w3.org/2000/svg",e);for(var X in k)k.hasOwnProperty(X)&&(X==="href"?_.lhg(e,k[X]):_.VJ([_.Ig(hlI),_.Ig(P9b),_.Ig(D9P),_.Ig(ZbE),_.Ig(Sp6),_.Ig(RlI),_.Ig(QUY)],e,X,k[X]));return e}
var H=this.JSC$17195__htOption,T=this.JSC$17195__el,x=l.moduleCount;this.clear();var n=I("svg",{viewBox:"0 0 "+String(x)+" "+String(x),width:"100%",height:"100%",fill:H.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});T.appendChild(n);n.appendChild(I("rect",{fill:H.colorLight,width:"100%",height:"100%"}));n.appendChild(I("rect",{fill:H.colorDark,width:"1",height:"1",id:"template"}));for(var w=0;w<x;w++)for(var N=0;N<x;N++)if(l.isDark(w,N)){var L=I("use",{x:String(w),y:String(N),href:"#template"});
n.appendChild(L)}};
V.prototype.clear=function(){for(;this.JSC$17195__el.hasChildNodes();)this.JSC$17195__el.removeChild(this.JSC$17195__el.lastChild)};
return V}(),SJY=document.documentElement.tagName.toLowerCase()==="svg"?Rgb:typeof CanvasRenderingContext2D!="undefined"?function(){var V=function(l,I){this._bIsPainted=!1;
ZvE();this.JSC$17195__htOption=I;this._elCanvas=document.createElement("canvas");this._elCanvas.width=I.width;this._elCanvas.height=I.height;l.appendChild(this._elCanvas);this.JSC$17195__el=l;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$17195__el.appendChild(this._elImage);this._bSupportDataURI=null};
V.prototype._onMakeImage=function(){var l=this._elCanvas.toDataURL("image/png");this._elImage.src=l;this._elImage.style.display="block";this._elCanvas.style.display="none"};
V.prototype._safeSetDataURI=function(l,I){var H=this;H._fFail=I;H._fSuccess=l;H._bSupportDataURI===null?(l=_.jk("IMG"),I=function(){H._bSupportDataURI=!1;H._fFail&&H._fFail.call(H)},l.onabort=I,l.onerror=I,l.onload=function(){H._bSupportDataURI=!0;
H._fSuccess&&H._fSuccess.call(H)},l.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):H._bSupportDataURI===!0&&H._fSuccess?H._fSuccess.call(H):H._bSupportDataURI===!1&&H._fFail&&H._fFail.call(H)};
V.prototype.draw=function(l){var I=this._oContext,H=this.JSC$17195__htOption,T=l.moduleCount,x=H.width/T,n=H.height/T,w=Math.round(x),N=Math.round(n);this._elImage.style.display="none";this.clear();for(var L=0;L<T;L++)for(var e=0;e<T;e++){var k=l.isDark(L,e),X=e*x,r=L*n;I.strokeStyle=k?H.colorDark:H.colorLight;I.lineWidth=1;I.fillStyle=k?H.colorDark:H.colorLight;I.fillRect(X,r,x,n);I.strokeRect(Math.floor(X)+.5,Math.floor(r)+.5,w,N);I.strokeRect(Math.ceil(X)-.5,Math.ceil(r)-.5,w,N)}this._bIsPainted=
!0};
V.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
V.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
V.prototype.round=function(l){return l?Math.floor(l*1E3)/1E3:l};
return V}():function(){var V=function(l,I){this.JSC$17195__el=l;
this.JSC$17195__htOption=I};
V.prototype.draw=function(l){for(var I=this.JSC$17195__htOption,H=this.JSC$17195__el,T=l.moduleCount,x=Math.floor(I.width/T),n=Math.floor(I.height/T),w=['<table style="border:0;border-collapse:collapse;">'],N=0;N<T;N++){w.push("<tr>");for(var L=0;L<T;L++)w.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+x+"px;height:"+n+"px;background-color:"+(l.isDark(N,L)?I.colorDark:I.colorLight)+';"></td>');w.push("</tr>")}w.push("</table>");l=w.join("");l=_.DEZ(_.SP3,l);_.iY(H,l);
l=H.childNodes[0];T=(I.width-l.offsetWidth)/2;x=(I.height-l.offsetHeight)/2;T>0&&x>0&&(l.style.margin=x+"px "+T+"px")};
V.prototype.clear=function(){this.JSC$17195__el.textContent=""};
return V}();
bv6.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17198__android||this.JSC$17198__android>=3)&&this._oDrawing.makeImage()};
bv6.prototype.clear=function(){this._oDrawing.clear()};
_.nK.QRCode=bv6;var C9E={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var kx=function(){};
kx.prototype.stringify=function(V){return _.nK.JSON.stringify(V,void 0)};
kx.prototype.parse=function(V){return _.nK.JSON.parse(V,void 0)};var aXu=function(){_.kL.call(this,"z")};
_.Uk(aXu,_.kL);var fXh=function(){_.kL.call(this,"y")};
_.Uk(fXh,_.kL);var g6b=null,m9E=function(){return g6b=g6b||new _.tm},ibb=function(V){_.kL.call(this,"serverreachability",V)};
_.Uk(ibb,_.kL);var F9=function(V){var l=m9E();l.dispatchEvent(new ibb(l,V))},VfI=function(V){_.kL.call(this,"statevent",V)};
_.Uk(VfI,_.kL);var X9=function(V){var l=m9E();l.dispatchEvent(new VfI(l,V))},l6u=function(V,l,I,H){_.kL.call(this,"timingevent",V);
this.size=l;this.rtt=I;this.retries=H};
_.Uk(l6u,_.kL);var I6Y=function(V,l,I){var H=m9E();H.dispatchEvent(new l6u(H,V,l,I))},z_=function(V,l){if(typeof V!=="function")throw Error("xk");
return _.nK.setTimeout(function(){V()},l)};var yq=function(){this.redactEnabled_=!0};
yq.prototype.disableRedact=function(){this.redactEnabled_=!1};
var HRg=function(V,l,I,H,T,x){V.info(function(){if(V.redactEnabled_)if(x){var n="";for(var w=x.split("&"),N=0;N<w.length;N++){var L=w[N].split("=");if(L.length>1){var e=L[0];L=L[1];var k=e.split("_");n=k.length>=2&&k[1]=="type"?n+(e+"="+L+"&"):n+(e+"=redacted&")}}}else n=null;else n=x;return"XMLHTTP REQ ("+H+") [attempt "+T+"]: "+l+"\n"+I+"\n"+n})},Te2=function(V,l,I,H,T,x,n){V.info(function(){return"XMLHTTP RESP ("+H+") [ attempt "+T+"]: "+l+"\n"+I+"\n"+x+" "+n})},th=function(V,l,I,H){V.info(function(){return"XMLHTTP TEXT ("+
l+"): "+BeV(V,I)+(H?" "+H:"")})},xXu=function(V,l){V.info(function(){return"TIMEOUT: "+l})};
yq.prototype.debug=function(){};
yq.prototype.info=function(){};
yq.prototype.warning=function(){};
var BeV=function(V,l){if(!V.redactEnabled_)return l;if(!l)return null;try{var I=JSON.parse(l);if(I)for(var H=0;H<I.length;H++)if(Array.isArray(I[H])){var T=I[H];if(!(T.length<2)){var x=T[1];if(Array.isArray(x)&&!(x.length<1)){var n=x[0];if(n!="noop"&&n!="stop"&&n!="close")for(var w=1;w<x.length;w++)x[w]=""}}}return(0,_.PH)(I)}catch(N){return V.debug("Exception parsing expected JS array - probably was not JS"),l}};var rB=function(V,l,I,H,T){this.JSC$17220_channel_=V;this.JSC$17220_channelDebug_=l;this.sid_=I;this.JSC$17220_rid_=H;this.JSC$17220_retryId_=T||1;this.JSC$17220_eventHandler_=new _.ig(this);this.timeout_=45E3;this.JSC$17220_extraHeaders_=null;this.JSC$17220_successful_=!1;this.JSC$17220_postData_=this.JSC$17220_requestUri_=this.JSC$17220_baseUri_=this.JSC$17220_type_=this.JSC$17220_requestStartTime_=this.JSC$17220_watchDogTimeoutTime_=this.JSC$17220_watchDogTimerId_=null;this.JSC$17220_pendingMessages_=
[];this.JSC$17220_xmlHttp_=null;this.JSC$17220_xmlHttpChunkStart_=0;this.JSC$17220_lastError_=this.JSC$17220_verb_=null;this.JSC$17220_lastStatusCode_=-1;this.JSC$17220_cancelled_=!1;this.JSC$17220_readyStateChangeThrottleMs_=0;this.JSC$17220_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new UXY},UXY=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},n4Q=function(V,l){switch(V){case 0:return"Non-200 return code ("+l+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},$Xr={},dXB={};
rB.prototype.setTimeout=function(V){this.timeout_=V};
var Neh=function(V,l,I){V.JSC$17220_type_=1;V.JSC$17220_baseUri_=_.$N(l.clone());V.JSC$17220_postData_=I;V.decodeChunks_=!0;wQg(V,null)},wQg=function(V,l){V.JSC$17220_requestStartTime_=Date.now();
KbP(V);V.JSC$17220_requestUri_=V.JSC$17220_baseUri_.clone();Ui(V.JSC$17220_requestUri_,"t",V.JSC$17220_retryId_);V.JSC$17220_xmlHttpChunkStart_=0;var I=V.JSC$17220_channel_.JSC$17239_supportsCrossDomainXhrs_;V.fetchResponseState_=new UXY;V.JSC$17220_xmlHttp_=jeE(V.JSC$17220_channel_,I?l:null,!V.JSC$17220_postData_);V.JSC$17220_readyStateChangeThrottleMs_>0&&(V.JSC$17220_readyStateChangeThrottle_=new _.le((0,_.zN)(V.JSC$17224_xmlHttpHandler_,V,V.JSC$17220_xmlHttp_),V.JSC$17220_readyStateChangeThrottleMs_));
V.JSC$17220_eventHandler_.listen(V.JSC$17220_xmlHttp_,"readystatechange",V.JSC$17224_readyStateChangeHandler_);l=V.JSC$17220_extraHeaders_?_.EL.clone(V.JSC$17220_extraHeaders_):{};V.JSC$17220_postData_?(V.JSC$17220_verb_||(V.JSC$17220_verb_="POST"),l["Content-Type"]="application/x-www-form-urlencoded",V.JSC$17220_xmlHttp_.send(V.JSC$17220_requestUri_,V.JSC$17220_verb_,V.JSC$17220_postData_,l)):(V.JSC$17220_verb_="GET",V.JSC$17220_xmlHttp_.send(V.JSC$17220_requestUri_,V.JSC$17220_verb_,null,l));F9(1);
HRg(V.JSC$17220_channelDebug_,V.JSC$17220_verb_,V.JSC$17220_requestUri_,V.JSC$17220_rid_,V.JSC$17220_retryId_,V.JSC$17220_postData_)};
rB.prototype.JSC$17224_readyStateChangeHandler_=function(V){V=V.target;var l=this.JSC$17220_readyStateChangeThrottle_;l&&_.Zx(V)==3?(this.JSC$17220_channelDebug_.debug("Throttling readystatechange."),l.fire()):this.JSC$17224_xmlHttpHandler_(V)};
rB.prototype.JSC$17224_xmlHttpHandler_=function(V){try{V==this.JSC$17220_xmlHttp_?YfI(this):this.JSC$17220_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(l){this.JSC$17220_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),LbP(this)}finally{}};
var YfI=function(V){var l=_.Zx(V.JSC$17220_xmlHttp_),I=V.JSC$17220_xmlHttp_.JSC$7662_lastErrorCode_,H=V.JSC$17220_xmlHttp_.getStatus();if(!(l<3||l==3&&!LbP(V))){V.JSC$17220_cancelled_||l!=4||I==7||(I==8||H<=0?F9(3):F9(2));eGE(V);var T=V.JSC$17220_xmlHttp_.getStatus();V.JSC$17220_lastStatusCode_=T;I=kFP(V);LbP(V)||V.JSC$17220_channelDebug_.debug(function(){return"No response text for uri "+V.JSC$17220_requestUri_+" status "+T});
V.JSC$17220_successful_=T==200;Te2(V.JSC$17220_channelDebug_,V.JSC$17220_verb_,V.JSC$17220_requestUri_,V.JSC$17220_rid_,V.JSC$17220_retryId_,l,T);if(V.JSC$17220_successful_){if(V.decodeInitialResponse_&&!V.initialResponseDecoded_)if(H=Fb2(V))th(V.JSC$17220_channelDebug_,V.JSC$17220_rid_,H,"Initial handshake response via X-HTTP-Initial-Response"),V.initialResponseDecoded_=!0,XQE(V,H);else{V.JSC$17220_successful_=!1;V.JSC$17220_lastError_=3;X9(12);V.JSC$17220_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
V.JSC$17220_rid_+")");G_(V);EW(V);return}V.decodeChunks_?zGY(V,l,I):(th(V.JSC$17220_channelDebug_,V.JSC$17220_rid_,I,null),XQE(V,I));l==4&&G_(V);V.JSC$17220_successful_&&!V.JSC$17220_cancelled_&&(l==4?yfQ(V.JSC$17220_channel_,V):(V.JSC$17220_successful_=!1,KbP(V)))}else d_B(V.JSC$17220_xmlHttp_),T==400&&I.indexOf("Unknown SID")>0?(V.JSC$17220_lastError_=3,X9(12),V.JSC$17220_channelDebug_.warning("XMLHTTP Unknown SID ("+V.JSC$17220_rid_+")")):(V.JSC$17220_lastError_=0,X9(13),V.JSC$17220_channelDebug_.warning("XMLHTTP Bad status "+
T+" ("+V.JSC$17220_rid_+")")),G_(V),EW(V)}},Fb2=function(V){return V.JSC$17220_xmlHttp_&&(V=Lp(V.JSC$17220_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.jc(V)?V:null},kFP=function(V){if(!tfE(V))return V.JSC$17220_xmlHttp_.getResponseText();
var l=V.JSC$17220_xmlHttp_.getResponse();if(l==="")return"";var I="",H=l.length,T=_.Zx(V.JSC$17220_xmlHttp_)==4;if(!V.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return G_(V),EW(V),"";V.fetchResponseState_.textDecoder=new _.nK.TextDecoder}for(var x=0;x<H;x++)V.fetchResponseState_.responseArrivedForFetch=!0,I+=V.fetchResponseState_.textDecoder.decode(l[x],{stream:!(T&&x==H-1)});l.length=0;V.fetchResponseState_.responseBuffer+=I;V.JSC$17220_xmlHttpChunkStart_=0;return V.fetchResponseState_.responseBuffer},
LbP=function(V){return V.JSC$17220_xmlHttp_?V.fetchResponseState_.responseArrivedForFetch?!0:!(!V.JSC$17220_xmlHttp_.getResponseText()&&!V.JSC$17220_xmlHttp_.getResponse()):!1},tfE=function(V){return V.JSC$17220_xmlHttp_?V.JSC$17220_verb_=="GET"&&V.JSC$17220_type_!=2&&V.JSC$17220_channel_.usesFetchStreams_:!1},zGY=function(V,l,I){for(var H=!0,T;!V.JSC$17220_cancelled_&&V.JSC$17220_xmlHttpChunkStart_<I.length;)if(T=rfE(V,I),T==dXB){l==4&&(V.JSC$17220_lastError_=4,X9(14),H=!1);
th(V.JSC$17220_channelDebug_,V.JSC$17220_rid_,null,"[Incomplete Response]");break}else if(T==$Xr){V.JSC$17220_lastError_=4;X9(15);th(V.JSC$17220_channelDebug_,V.JSC$17220_rid_,I,"[Invalid Chunk]");H=!1;break}else th(V.JSC$17220_channelDebug_,V.JSC$17220_rid_,T,null),XQE(V,T);tfE(V)&&V.JSC$17220_xmlHttpChunkStart_!=0&&(V.fetchResponseState_.responseBuffer=V.fetchResponseState_.responseBuffer.slice(V.JSC$17220_xmlHttpChunkStart_),V.JSC$17220_xmlHttpChunkStart_=0);l!=4||I.length!=0||V.fetchResponseState_.responseArrivedForFetch||
(V.JSC$17220_lastError_=1,X9(16),H=!1);V.JSC$17220_successful_=V.JSC$17220_successful_&&H;H?I.length>0&&!V.firstByteReceived_&&(V.firstByteReceived_=!0,l=V.JSC$17220_channel_,l.JSC$17239_backChannelRequest_==V&&l.detectBufferingProxy_&&!l.bpDetectionDone_&&(l.JSC$17239_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+I.length),GFu(l),l.bpDetectionDone_=!0,X9(11))):(th(V.JSC$17220_channelDebug_,V.JSC$17220_rid_,I,"[Invalid Chunked Response]"),G_(V),EW(V))},rfE=function(V,l){var I=
V.JSC$17220_xmlHttpChunkStart_,H=l.indexOf("\n",I);
if(H==-1)return dXB;I=Number(l.substring(I,H));if(isNaN(I))return $Xr;H+=1;if(H+I>l.length)return dXB;l=l.slice(H,H+I);V.JSC$17220_xmlHttpChunkStart_=H+I;return l};
rB.prototype.cancel=function(){this.JSC$17220_cancelled_=!0;G_(this)};
var KbP=function(V){V.JSC$17220_watchDogTimeoutTime_=Date.now()+V.timeout_;E42(V,V.timeout_)},E42=function(V,l){if(V.JSC$17220_watchDogTimerId_!=null)throw Error("yk");
V.JSC$17220_watchDogTimerId_=z_((0,_.zN)(V.JSC$17224_onWatchDogTimeout_,V),l)},eGE=function(V){V.JSC$17220_watchDogTimerId_&&(_.nK.clearTimeout(V.JSC$17220_watchDogTimerId_),V.JSC$17220_watchDogTimerId_=null)};
rB.prototype.JSC$17224_onWatchDogTimeout_=function(){this.JSC$17220_watchDogTimerId_=null;var V=Date.now();V-this.JSC$17220_watchDogTimeoutTime_>=0?(xXu(this.JSC$17220_channelDebug_,this.JSC$17220_requestUri_),this.JSC$17220_type_!=2&&(F9(3),X9(17)),G_(this),this.JSC$17220_lastError_=2,EW(this)):(this.JSC$17220_channelDebug_.warning("WatchDog timer called too early"),E42(this,this.JSC$17220_watchDogTimeoutTime_-V))};
var EW=function(V){V.JSC$17220_channel_.state_==0||V.JSC$17220_cancelled_||yfQ(V.JSC$17220_channel_,V)},G_=function(V){eGE(V);
_.ag(V.JSC$17220_readyStateChangeThrottle_);V.JSC$17220_readyStateChangeThrottle_=null;V.JSC$17220_eventHandler_.removeAll();if(V.JSC$17220_xmlHttp_){var l=V.JSC$17220_xmlHttp_;V.JSC$17220_xmlHttp_=null;l.abort();l.dispose()}};
rB.prototype.getLastError=function(){return this.JSC$17220_lastError_};
var XQE=function(V,l){try{var I=V.JSC$17220_channel_;if(I.state_!=0&&(I.JSC$17239_backChannelRequest_==V||Jf2(I.forwardChannelRequestPool_,V)))if(!V.initialResponseDecoded_&&Jf2(I.forwardChannelRequestPool_,V)&&I.state_==3){try{var H=I.wireCodec_.JSC$17234_parser_.parse(l)}catch(w){H=null}if(Array.isArray(H)&&H.length==3){l=H;if(l[0]==0)a:if(I.JSC$17239_channelDebug_.debug("Server claims our backchannel is missing."),I.JSC$17239_backChannelTimerId_)I.JSC$17239_channelDebug_.debug("But we are currently starting the request.");
else{if(I.JSC$17239_backChannelRequest_)if(I.JSC$17239_backChannelRequest_.JSC$17220_requestStartTime_+3E3<V.JSC$17220_requestStartTime_)o4V(I),hGP(I);else break a;else I.JSC$17239_channelDebug_.warning("We do not have a BackChannel established");P5E(I);X9(18)}else{I.JSC$17239_lastPostResponseArrayId_=l[1];var T=I.JSC$17239_lastPostResponseArrayId_-I.JSC$17239_lastArrayId_;if(0<T){var x=l[2];I.JSC$17239_channelDebug_.debug(x+" bytes (in "+T+" arrays) are outstanding on the BackChannel");x<37500&&
I.enableStreaming_&&I.JSC$17239_backChannelRetryCount_==0&&!I.JSC$17239_deadBackChannelTimerId_&&(I.JSC$17239_deadBackChannelTimerId_=z_((0,_.zN)(I.JSC$17241_onBackChannelDead_,I),6E3))}}if(DXh(I.forwardChannelRequestPool_)<=1&&I.forwardChannelFlushedCallback_){try{I.forwardChannelFlushedCallback_()}catch(w){}I.forwardChannelFlushedCallback_=void 0}}else I.JSC$17239_channelDebug_.debug("Bad POST response data returned"),Jh(I,11)}else if((V.initialResponseDecoded_||I.JSC$17239_backChannelRequest_==
V)&&o4V(I),!_.jc(l)){var n=I.wireCodec_.JSC$17234_parser_.parse(l);I.onInput_(n,V)}F9(4)}catch(w){}};var ZRE=function(V,l){this.JSC$17227_mapId=V;this.map=l;this.context=null};var Sf6=function(V){this.maxPoolSizeConfigured_=V||10;_.nK.PerformanceNavigationTiming?(V=_.nK.performance.getEntriesByType("navigation"),V=V.length>0&&(V[0].nextHopProtocol=="hq"||V[0].nextHopProtocol=="h2")):V=!!(_.nK.chrome&&_.nK.chrome.loadTimes&&_.nK.chrome.loadTimes()&&_.nK.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17230_maxSize_=V?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17230_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17230_request_=null;this.JSC$17230_pendingMessages_=
[]},RGb=function(V){return V.JSC$17230_request_?!0:V.requestPool_?V.requestPool_.size>=V.JSC$17230_maxSize_:!1},DXh=function(V){return V.JSC$17230_request_?1:V.requestPool_?V.requestPool_.size:0},Jf2=function(V,l){return V.JSC$17230_request_?V.JSC$17230_request_==l:V.requestPool_?V.requestPool_.has(l):!1},QeE=function(V,l){V.requestPool_?V.requestPool_.add(l):V.JSC$17230_request_=l},cfu=function(V,l){V.JSC$17230_request_&&V.JSC$17230_request_==l?V.JSC$17230_request_=null:V.requestPool_&&V.requestPool_.has(l)&&
V.requestPool_.delete(l)};
Sf6.prototype.cancel=function(){this.JSC$17230_pendingMessages_=WbB(this);if(this.JSC$17230_request_)this.JSC$17230_request_.cancel(),this.JSC$17230_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var V=_.U(this.requestPool_.values()),l=V.next();!l.done;l=V.next())l.value.cancel();this.requestPool_.clear()}};
Sf6.prototype.hasPendingRequest=function(){return this.JSC$17230_request_!=null||this.requestPool_!=null&&this.requestPool_.size!==0};
var WbB=function(V){if(V.JSC$17230_request_!=null)return V.JSC$17230_pendingMessages_.concat(V.JSC$17230_request_.JSC$17220_pendingMessages_);if(V.requestPool_!=null&&V.requestPool_.size!==0){var l=V.JSC$17230_pendingMessages_;V=_.U(V.requestPool_.values());for(var I=V.next();!I.done;I=V.next())l=l.concat(I.value.JSC$17220_pendingMessages_);return l}return _.uN(V.JSC$17230_pendingMessages_)},bRP=function(V,l){V.JSC$17230_pendingMessages_=V.JSC$17230_pendingMessages_.concat(l)};var qfV=function(V,l){var I=new yq;I.debug("TestLoadImage: loading "+V);if(_.nK.Image){var H=new Image;H.onload=_.kB(oT,I,"TestLoadImage: loaded",!0,l,H);H.onerror=_.kB(oT,I,"TestLoadImage: error",!1,l,H);H.onabort=_.kB(oT,I,"TestLoadImage: abort",!1,l,H);H.ontimeout=_.kB(oT,I,"TestLoadImage: timeout",!1,l,H);_.nK.setTimeout(function(){if(H.ontimeout)H.ontimeout()},1E4);
H.src=V}else l(!1)},MfE=function(V,l){var I=new yq,H=new AbortController,T=setTimeout(function(){H.abort();
oT(I,"TestPingServer: timeout",!1,l)},1E4);
fetch(V,{signal:H.signal}).then(function(x){clearTimeout(T);x.ok?oT(I,"TestPingServer: ok",!0,l):oT(I,"TestPingServer: server error",!1,l)}).catch(function(){clearTimeout(T);
oT(I,"TestPingServer: error",!1,l)})},oT=function(V,l,I,H,T){try{V.debug(l),T&&(T.onload=null,T.onerror=null,T.onabort=null,T.ontimeout=null),H(I)}catch(x){}};var ser=function(){this.JSC$17234_parser_=new kx},pQ6=function(V,l,I){var H=I||"";
try{_.GYv(V,function(T,x){var n=T;_.m3(T)&&(n=(0,_.PH)(T));l.push(H+x+"="+encodeURIComponent(n))})}catch(T){throw l.push(H+"type="+encodeURIComponent("_badmap")),T;
}};var hh=function(V,l,I){return I&&I.internalChannelParams?I.internalChannelParams[V]||l:l},PL=function(V){this.serverVersion_=0;
this.JSC$17239_outgoingMaps_=[];this.JSC$17239_channelDebug_=new yq;this.JSC$17239_hostPrefix_=this.JSC$17239_backChannelUri_=this.JSC$17239_forwardChannelUri_=this.JSC$17239_path_=this.JSC$17239_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17239_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17239_extraHeaders_=null;this.JSC$17239_nextMapId_=this.JSC$17239_nextRid_=0;this.JSC$17239_failFast_=hh("failFast",!1,V);this.enableStreaming_=this.JSC$17239_deadBackChannelTimerId_=
this.JSC$17239_backChannelTimerId_=this.JSC$17239_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17239_lastPostResponseArrayId_=this.JSC$17239_lastArrayId_=-1;this.JSC$17239_backChannelAttemptId_=this.JSC$17239_backChannelRetryCount_=this.JSC$17239_forwardChannelRetryCount_=0;this.JSC$17239_baseRetryDelayMs_=hh("baseRetryDelayMs",5E3,V);this.JSC$17239_retryDelaySeedMs_=hh("retryDelaySeedMs",1E4,V);this.JSC$17239_forwardChannelMaxRetries_=
hh("forwardChannelMaxRetries",2,V);this.JSC$17239_forwardChannelRequestTimeoutMs_=hh("forwardChannelRequestTimeoutMs",2E4,V);this.JSC$17239_xmlHttpFactory_=V&&V.xmlHttpFactory||void 0;this.networkTestUrl_=V&&V.networkTestUrl||void 0;this.usesFetchStreams_=V&&V.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17239_supportsCrossDomainXhrs_=V&&V.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new Sf6(V&&V.concurrentRequestLimit);this.wireCodec_=new ser;this.fastHandshake_=
V&&V.fastHandshake||!1;this.encodeInitMessageHeaders_=V&&V.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17239_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=V&&V.blockingHandshake||!1;V&&V.disableRedact&&this.JSC$17239_channelDebug_.disableRedact();V&&V.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
V&&V.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;V&&V.longPollingTimeout&&V.longPollingTimeout>0&&(this.longPollingTimeout_=V.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
PL.prototype.JSC$17241_channelVersion_=8;PL.prototype.state_=1;
PL.prototype.connect=function(V,l,I,H){this.JSC$17239_channelDebug_.debug("connect()");X9(0);this.JSC$17239_path_=V;this.JSC$17239_extraParams_=l||{};I&&H!==void 0&&(this.JSC$17239_extraParams_.OSID=I,this.JSC$17239_extraParams_.OAID=H);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17239_channelDebug_.debug("connectChannel_()");V=AfV(this,null,this.JSC$17239_path_);this.JSC$17239_channelDebug_.debug("GetForwardChannelUri: "+V);this.JSC$17239_forwardChannelUri_=V;uIE(this)};
PL.prototype.disconnect=function(){this.JSC$17239_channelDebug_.debug("disconnect()");v4E(this);if(this.state_==3){var V=this.JSC$17239_nextRid_++,l=this.JSC$17239_forwardChannelUri_.clone();_.qx(l,"SID",this.sid_);_.qx(l,"RID",V);_.qx(l,"TYPE","terminate");DO(this,l);V=new rB(this,this.JSC$17239_channelDebug_,this.sid_,V);V.JSC$17220_type_=2;V.JSC$17220_baseUri_=_.$N(l.clone());l=!1;if(_.nK.navigator&&_.nK.navigator.sendBeacon)try{l=_.nK.navigator.sendBeacon(V.JSC$17220_baseUri_.toString(),"")}catch(I){}!l&&
_.nK.Image&&((new Image).src=V.JSC$17220_baseUri_,l=!0);l||(V.JSC$17220_xmlHttp_=jeE(V.JSC$17220_channel_,null),V.JSC$17220_xmlHttp_.send(V.JSC$17220_baseUri_));V.JSC$17220_requestStartTime_=Date.now();KbP(V)}ORb(this)};
var hGP=function(V){V.JSC$17239_backChannelRequest_&&(GFu(V),V.JSC$17239_backChannelRequest_.cancel(),V.JSC$17239_backChannelRequest_=null)},v4E=function(V){hGP(V);
V.JSC$17239_backChannelTimerId_&&(_.nK.clearTimeout(V.JSC$17239_backChannelTimerId_),V.JSC$17239_backChannelTimerId_=null);o4V(V);V.forwardChannelRequestPool_.cancel();V.JSC$17239_forwardChannelTimerId_&&(typeof V.JSC$17239_forwardChannelTimerId_==="number"&&_.nK.clearTimeout(V.JSC$17239_forwardChannelTimerId_),V.JSC$17239_forwardChannelTimerId_=null)};
PL.prototype.getState=function(){return this.state_};
var uIE=function(V){RGb(V.forwardChannelRequestPool_)||V.JSC$17239_forwardChannelTimerId_||(V.JSC$17239_forwardChannelTimerId_=!0,_.G1(V.JSC$17241_onStartForwardChannelTimer_,V),V.JSC$17239_forwardChannelRetryCount_=0)},a6P=function(V,l){if(DXh(V.forwardChannelRequestPool_)>=V.forwardChannelRequestPool_.JSC$17230_maxSize_-(V.JSC$17239_forwardChannelTimerId_?1:0))return!1;
if(V.JSC$17239_forwardChannelTimerId_)return V.JSC$17239_channelDebug_.debug("Use the retry request that is already scheduled."),V.JSC$17239_outgoingMaps_=l.JSC$17220_pendingMessages_.concat(V.JSC$17239_outgoingMaps_),!0;if(V.state_==1||V.state_==2||V.JSC$17239_forwardChannelRetryCount_>=(V.JSC$17239_failFast_?0:V.JSC$17239_forwardChannelMaxRetries_))return!1;V.JSC$17239_channelDebug_.debug("Going to retry POST");V.JSC$17239_forwardChannelTimerId_=z_((0,_.zN)(V.JSC$17241_onStartForwardChannelTimer_,
V,l),C5g(V,V.JSC$17239_forwardChannelRetryCount_));V.JSC$17239_forwardChannelRetryCount_++;return!0};
PL.prototype.JSC$17241_onStartForwardChannelTimer_=function(V){if(this.JSC$17239_forwardChannelTimerId_)if(this.JSC$17239_forwardChannelTimerId_=null,this.JSC$17239_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!V){this.JSC$17239_channelDebug_.debug("open_()");this.JSC$17239_nextRid_=Math.floor(Math.random()*1E5);V=this.JSC$17239_nextRid_++;var l=new rB(this,this.JSC$17239_channelDebug_,"",V),I=this.JSC$17239_extraHeaders_;this.initHeaders_&&(I?(I=_.EL.clone(I),_.EL.extend(I,this.initHeaders_)):
I=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(l.JSC$17220_extraHeaders_=I,I=null);var H;if(this.fastHandshake_)a:{for(var T=H=0;T<this.JSC$17239_outgoingMaps_.length;T++){b:{var x=this.JSC$17239_outgoingMaps_[T];if("__data__"in x.map&&(x=x.map.__data__,typeof x==="string")){x=x.length;break b}x=void 0}if(x===void 0)break;H+=x;if(H>4096){H=T;break a}if(H===4096||T===this.JSC$17239_outgoingMaps_.length-1){H=T+1;break a}}H=1E3}else H=1E3;H=f6E(this,l,H);
T=this.JSC$17239_forwardChannelUri_.clone();_.qx(T,"RID",V);_.qx(T,"CVER",22);this.httpSessionIdParam_&&_.qx(T,"X-HTTP-Session-Id",this.httpSessionIdParam_);DO(this,T);I&&(this.encodeInitMessageHeaders_?H="headers="+_.Q0(wdr(I))+"&"+H:this.httpHeadersOverwriteParam_&&NNP(T,this.httpHeadersOverwriteParam_,I));QeE(this.forwardChannelRequestPool_,l);this.blockingHandshake_&&_.qx(T,"TYPE","init");this.fastHandshake_?(_.qx(T,"$req",H),_.qx(T,"SID","null"),l.decodeInitialResponse_=!0,Neh(l,T,null)):Neh(l,
T,H);this.state_=2}}else this.state_==3&&(V?g46(this,V):this.JSC$17239_outgoingMaps_.length==0?this.JSC$17239_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):RGb(this.forwardChannelRequestPool_)||(g46(this),this.JSC$17239_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var g46=function(V,l){var I;l?I=l.JSC$17220_rid_:I=V.JSC$17239_nextRid_++;var H=V.JSC$17239_forwardChannelUri_.clone();_.qx(H,"SID",V.sid_);_.qx(H,"RID",I);_.qx(H,"AID",V.JSC$17239_lastArrayId_);DO(V,H);V.httpHeadersOverwriteParam_&&V.JSC$17239_extraHeaders_&&NNP(H,V.httpHeadersOverwriteParam_,V.JSC$17239_extraHeaders_);I=new rB(V,V.JSC$17239_channelDebug_,V.sid_,I,V.JSC$17239_forwardChannelRetryCount_+1);V.httpHeadersOverwriteParam_===null&&(I.JSC$17220_extraHeaders_=V.JSC$17239_extraHeaders_);l&&
(V.JSC$17239_outgoingMaps_=l.JSC$17220_pendingMessages_.concat(V.JSC$17239_outgoingMaps_));l=f6E(V,I,1E3);I.setTimeout(Math.round(V.JSC$17239_forwardChannelRequestTimeoutMs_*.5)+Math.round(V.JSC$17239_forwardChannelRequestTimeoutMs_*.5*Math.random()));QeE(V.forwardChannelRequestPool_,I);Neh(I,H,l)},DO=function(V,l){V.JSC$17239_extraParams_&&_.EL.forEach(V.JSC$17239_extraParams_,function(I,H){_.qx(l,H,I)});
V.handler_&&_.GYv({},function(I,H){_.qx(l,H,I)})},f6E=function(V,l,I){I=Math.min(V.JSC$17239_outgoingMaps_.length,I);
var H=V.handler_?(0,_.zN)(V.handler_.JSC$17245_badMapError,V.handler_,V):null;a:{for(var T=V.JSC$17239_outgoingMaps_,x=-1;;){var n=["count="+I];x==-1?I>0?(x=T[0].JSC$17227_mapId,n.push("ofs="+x)):x=0:n.push("ofs="+x);for(var w=!0,N=0;N<I;N++){var L=T[N].JSC$17227_mapId,e=T[N].map;L-=x;if(L<0)x=Math.max(0,T[N].JSC$17227_mapId-100),w=!1;else try{pQ6(e,n,"req"+L+"_")}catch(k){H&&H(e)}}if(w){H=n.join("&");break a}}H=void 0}V=V.JSC$17239_outgoingMaps_.splice(0,I);l.JSC$17220_pendingMessages_=V;return H},
mX2=function(V){V.JSC$17239_backChannelRequest_||V.JSC$17239_backChannelTimerId_||(V.JSC$17239_backChannelAttemptId_=1,_.G1(V.JSC$17241_onStartBackChannelTimer_,V),V.JSC$17239_backChannelRetryCount_=0)},P5E=function(V){if(V.JSC$17239_backChannelRequest_||V.JSC$17239_backChannelTimerId_||V.JSC$17239_backChannelRetryCount_>=3)return!1;
V.JSC$17239_channelDebug_.debug("Going to retry GET");V.JSC$17239_backChannelAttemptId_++;V.JSC$17239_backChannelTimerId_=z_((0,_.zN)(V.JSC$17241_onStartBackChannelTimer_,V),C5g(V,V.JSC$17239_backChannelRetryCount_));V.JSC$17239_backChannelRetryCount_++;return!0};
PL.prototype.JSC$17241_onStartBackChannelTimer_=function(){this.JSC$17239_backChannelTimerId_=null;iRY(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17239_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17239_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17239_backChannelRequest_+" "+this.handshakeRttMs_);else{var V=2*this.handshakeRttMs_;this.JSC$17239_channelDebug_.info("BP detection timer enabled: "+V);this.bpDetectionTimerId_=z_((0,_.zN)(this.onBpDetectionTimer_,
this),V)}};
PL.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17239_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17239_backChannelRequest_.JSC$17220_xmlHttp_!=null){var V=this.JSC$17239_backChannelRequest_.JSC$17220_xmlHttp_.getResponseText();V&&this.JSC$17239_channelDebug_.warning("Timer should have been cancelled : "+V)}this.JSC$17239_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;X9(10);hGP(this);iRY(this)}else this.JSC$17239_channelDebug_.warning("Invalid operation.")};
var GFu=function(V){V.bpDetectionTimerId_!=null&&(V.JSC$17239_channelDebug_.debug("Cancel the BP detection timer."),_.nK.clearTimeout(V.bpDetectionTimerId_),V.bpDetectionTimerId_=null)},iRY=function(V){V.JSC$17239_channelDebug_.debug("Creating new HttpRequest");
V.JSC$17239_backChannelRequest_=new rB(V,V.JSC$17239_channelDebug_,V.sid_,"rpc",V.JSC$17239_backChannelAttemptId_);V.httpHeadersOverwriteParam_===null&&(V.JSC$17239_backChannelRequest_.JSC$17220_extraHeaders_=V.JSC$17239_extraHeaders_);V.JSC$17239_backChannelRequest_.JSC$17220_readyStateChangeThrottleMs_=0;var l=V.JSC$17239_backChannelUri_.clone();_.qx(l,"RID","rpc");_.qx(l,"SID",V.sid_);_.qx(l,"AID",V.JSC$17239_lastArrayId_);_.qx(l,"CI",V.enableStreaming_?"0":"1");!V.enableStreaming_&&V.longPollingTimeout_&&
_.qx(l,"TO",V.longPollingTimeout_);_.qx(l,"TYPE","xmlhttp");DO(V,l);V.httpHeadersOverwriteParam_&&V.JSC$17239_extraHeaders_&&NNP(l,V.httpHeadersOverwriteParam_,V.JSC$17239_extraHeaders_);V.backChannelRequestTimeoutMs_&&V.JSC$17239_backChannelRequest_.setTimeout(V.backChannelRequestTimeoutMs_);var I=V.JSC$17239_backChannelRequest_,H=V.JSC$17239_hostPrefix_;I.JSC$17220_type_=1;I.JSC$17220_baseUri_=_.$N(l.clone());I.JSC$17220_postData_=null;I.decodeChunks_=!0;wQg(I,H);V.JSC$17239_channelDebug_.debug("New Request created")};
PL.prototype.JSC$17241_onBackChannelDead_=function(){this.JSC$17239_deadBackChannelTimerId_!=null&&(this.JSC$17239_deadBackChannelTimerId_=null,hGP(this),P5E(this),X9(19))};
var o4V=function(V){V.JSC$17239_deadBackChannelTimerId_!=null&&(_.nK.clearTimeout(V.JSC$17239_deadBackChannelTimerId_),V.JSC$17239_deadBackChannelTimerId_=null)},yfQ=function(V,l){V.JSC$17239_channelDebug_.debug("Request complete");
var I=null;if(V.JSC$17239_backChannelRequest_==l){o4V(V);GFu(V);V.JSC$17239_backChannelRequest_=null;var H=2}else if(Jf2(V.forwardChannelRequestPool_,l))I=l.JSC$17220_pendingMessages_,cfu(V.forwardChannelRequestPool_,l),H=1;else return;if(V.state_!=0)if(l.JSC$17220_successful_)H==1?(I6Y(l.JSC$17220_postData_?l.JSC$17220_postData_.length:0,Date.now()-l.JSC$17220_requestStartTime_,V.JSC$17239_forwardChannelRetryCount_),uIE(V)):mX2(V);else{var T=l.JSC$17220_lastStatusCode_,x=l.getLastError();if(x==3||
x==0&&T>0)V.JSC$17239_channelDebug_.debug("Not retrying due to error type"),T>200&&(V.errorResponseStatusCode_=l.JSC$17220_lastStatusCode_);else{V.JSC$17239_channelDebug_.debug(function(){return"Maybe retrying, last error: "+n4Q(x,V.errorResponseStatusCode_)});
if(H==1&&a6P(V,l)||H==2&&P5E(V))return;V.JSC$17239_channelDebug_.debug("Exceeded max number of retries")}I&&I.length>0&&bRP(V.forwardChannelRequestPool_,I);V.JSC$17239_channelDebug_.debug("Error: HTTP request failed");switch(x){case 1:Jh(V,5);break;case 4:Jh(V,10);break;case 3:Jh(V,6);break;default:Jh(V,2)}}},C5g=function(V,l){var I=V.JSC$17239_baseRetryDelayMs_+Math.floor(Math.random()*V.JSC$17239_retryDelaySeedMs_);
V.isActive()||(V.JSC$17239_channelDebug_.debug("Inactive channel"),I*=2);return I*l};
PL.prototype.onInput_=function(V,l){for(var I=0;I<V.length;I++){var H=V[I];this.JSC$17239_lastArrayId_=H[0];H=H[1];if(this.state_==2)if(H[0]=="c"){this.sid_=H[1];this.JSC$17239_hostPrefix_=H[2];var T=H[3];T!=null&&(this.JSC$17241_channelVersion_=T,this.JSC$17239_channelDebug_.info("VER="+this.JSC$17241_channelVersion_));T=H[4];T!=null&&(this.serverVersion_=T,this.JSC$17239_channelDebug_.info("SVER="+this.serverVersion_));H=H[5];H!=null&&typeof H==="number"&&H>0&&(this.backChannelRequestTimeoutMs_=
H*=1.5,this.JSC$17239_channelDebug_.info("backChannelRequestTimeoutMs_="+H));if(H=l.JSC$17220_xmlHttp_){var x=Lp(H,"X-Client-Wire-Protocol");x&&(T=this.forwardChannelRequestPool_,!T.requestPool_&&(_.kT(x,"spdy")||_.kT(x,"quic")||_.kT(x,"h2"))&&(T.JSC$17230_maxSize_=T.maxPoolSizeConfigured_,T.requestPool_=new Set,T.JSC$17230_request_&&(QeE(T,T.JSC$17230_request_),T.JSC$17230_request_=null)));this.httpSessionIdParam_&&((H=Lp(H,"X-HTTP-Session-Id"))?(this.httpSessionId_=H,_.qx(this.JSC$17239_forwardChannelUri_,
this.httpSessionIdParam_,H)):this.JSC$17239_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17245_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-l.JSC$17220_requestStartTime_,this.JSC$17239_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));H=l;T=AfV(this,this.JSC$17239_supportsCrossDomainXhrs_?this.JSC$17239_hostPrefix_:null,this.JSC$17239_path_);this.JSC$17239_channelDebug_.debug("GetBackChannelUri: "+
T);this.JSC$17239_backChannelUri_=T;H.initialResponseDecoded_?(this.JSC$17239_channelDebug_.debug("Upgrade the handshake request to a backchannel."),cfu(this.forwardChannelRequestPool_,H),T=H,(x=this.backChannelRequestTimeoutMs_)&&T.setTimeout(x),T.JSC$17220_watchDogTimerId_&&(eGE(T),KbP(T)),this.JSC$17239_backChannelRequest_=H):mX2(this);this.JSC$17239_outgoingMaps_.length>0&&uIE(this)}else H[0]!="stop"&&H[0]!="close"||Jh(this,7);else this.state_==3&&(H[0]=="stop"||H[0]=="close"?H[0]=="stop"?Jh(this,
7):this.disconnect():H[0]!="noop"&&this.handler_&&this.handler_.JSC$17245_channelHandleArray(H),this.JSC$17239_backChannelRetryCount_=0)}};
var Jh=function(V,l){V.JSC$17239_channelDebug_.info("Error code "+l);if(l==2){var I=(0,_.zN)(V.testNetworkCallback_,V),H=V.networkTestUrl_,T=!H;H=new _.OA(H||"//www.google.com/images/cleardot.gif");_.nK.location&&_.nK.location.protocol=="http"||_.Vu(H,"https");_.$N(H);T?qfV(H.toString(),I):MfE(H.toString(),I)}else X9(2);V.onError_(l)};
PL.prototype.testNetworkCallback_=function(V){V?(this.JSC$17239_channelDebug_.info("Successfully pinged google.com"),X9(2)):(this.JSC$17239_channelDebug_.info("Failed to ping google.com"),X9(1))};
PL.prototype.onError_=function(V){this.JSC$17239_channelDebug_.debug("HttpChannel: error - "+V);this.state_=0;this.handler_&&this.handler_.JSC$17245_channelError(V);ORb(this);v4E(this)};
var ORb=function(V){V.state_=0;V.nonAckedMapsAtChannelClose_=[];if(V.handler_){var l=WbB(V.forwardChannelRequestPool_);if(l.length!=0||V.JSC$17239_outgoingMaps_.length!=0)V.JSC$17239_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+l.length+", outgoing: "+V.JSC$17239_outgoingMaps_.length}),_.fK(V.nonAckedMapsAtChannelClose_,l),_.fK(V.nonAckedMapsAtChannelClose_,V.JSC$17239_outgoingMaps_),V.forwardChannelRequestPool_.JSC$17230_pendingMessages_.length=0,_.uN(V.JSC$17239_outgoingMaps_),
V.JSC$17239_outgoingMaps_.length=0;
V.handler_.JSC$17245_channelClosed()}},VEh=function(V){if(V.state_==0)return V.nonAckedMapsAtChannelClose_;
var l=[];_.fK(l,WbB(V.forwardChannelRequestPool_));_.fK(l,V.JSC$17239_outgoingMaps_);return l},AfV=function(V,l,I){var H=_.Wv(I);
H.JSC$7896_domain_!=""?(l&&_.ln(H,l+"."+H.JSC$7896_domain_),_.IB(H,H.JSC$7896_port_)):(H=_.nK.location,H=lE2(H.protocol,l?l+"."+H.hostname:H.hostname,+H.port,I));l=V.httpSessionIdParam_;I=V.httpSessionId_;l&&I&&_.qx(H,l,I);_.qx(H,"VER",V.JSC$17241_channelVersion_);DO(V,H);return H},jeE=function(V,l,I){if(l&&!V.JSC$17239_supportsCrossDomainXhrs_)throw Error("zk");
l=V.usesFetchStreams_&&!V.JSC$17239_xmlHttpFactory_?new _.Dx(new hs({streamBinaryChunks:I})):new _.Dx(V.JSC$17239_xmlHttpFactory_);l.JSC$7662_withCredentials_=V.JSC$17239_supportsCrossDomainXhrs_;return l};
PL.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var lSI=function(){};
_.B=lSI.prototype;_.B.JSC$17245_channelOpened=function(){};
_.B.JSC$17245_channelHandleArray=function(){};
_.B.JSC$17245_channelError=function(){};
_.B.JSC$17245_channelClosed=function(){};
_.B.isActive=function(){return!0};
_.B.JSC$17245_badMapError=function(){};var ISh=function(){},SI=function(V,l){_.tm.call(this);
this.JSC$17248_channel_=new PL(l);this.JSC$17248_url_=V;this.messageUrlParams_=l&&l.messageUrlParams||null;V=l&&l.messageHeaders||null;l&&l.clientProtocolHeaderRequired&&(V?_.EL.set(V,"X-Client-Protocol","webchannel"):V=_.EL.create("X-Client-Protocol","webchannel"));this.JSC$17248_channel_.JSC$17239_extraHeaders_=V;V=l&&l.initMessageHeaders||null;l&&l.messageContentType&&(V?_.EL.set(V,"X-WebChannel-Content-Type",l.messageContentType):V=_.EL.create("X-WebChannel-Content-Type",l.messageContentType));
l&&l.clientProfile&&(V?_.EL.set(V,"X-WebChannel-Client-Profile",l.clientProfile):V=_.EL.create("X-WebChannel-Client-Profile",l.clientProfile));this.JSC$17248_channel_.initHeaders_=V;(V=l&&l.httpHeadersOverwriteParam)&&!_.jc(V)&&(this.JSC$17248_channel_.httpHeadersOverwriteParam_=V);this.supportsCrossDomainXhr_=l&&l.supportsCrossDomainXhr||!1;this.sendRawJson_=l&&l.sendRawJson||!1;(l=l&&l.httpSessionIdParam)&&!_.jc(l)&&(this.JSC$17248_channel_.httpSessionIdParam_=l,_.EL.containsKey(this.messageUrlParams_,
l)&&_.EL.remove(this.messageUrlParams_,l));this.channelHandler_=new ZO(this)};
_.Uk(SI,_.tm);SI.prototype.open=function(){this.JSC$17248_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17248_channel_.JSC$17239_supportsCrossDomainXhrs_=!0);this.JSC$17248_channel_.connect(this.JSC$17248_url_,this.messageUrlParams_||void 0)};
SI.prototype.close=function(){this.JSC$17248_channel_.disconnect()};
SI.prototype.send=function(V){var l=this.JSC$17248_channel_;if(typeof V==="string"){var I={};I.__data__=V;V=I}else this.sendRawJson_&&(I={},I.__data__=(0,_.PH)(V),V=I);l.JSC$17239_outgoingMaps_.push(new ZRE(l.JSC$17239_nextMapId_++,V));l.state_==3&&uIE(l)};
SI.prototype.disposeInternal=function(){this.JSC$17248_channel_.handler_=null;delete this.channelHandler_;this.JSC$17248_channel_.disconnect();delete this.JSC$17248_channel_;SI.superClass_.disposeInternal.call(this)};
var HMQ=function(V){aXu.call(this);V.__headers__&&(this.headers=V.__headers__,this.statusCode=V.__status__,delete V.__headers__,delete V.__status__);var l=V.__sm__;l?this.data=(this.metadataKey=_.EL.getAnyKey(l))?_.EL.get(l,this.metadataKey):l:this.data=V};
_.Uk(HMQ,aXu);var T9P=function(V){fXh.call(this);this.status=1;this.errorCode=V};
_.Uk(T9P,fXh);var ZO=function(V){this.JSC$17255_channel_=V};
_.Uk(ZO,lSI);ZO.prototype.JSC$17245_channelOpened=function(){this.JSC$17255_channel_.dispatchEvent("w")};
ZO.prototype.JSC$17245_channelHandleArray=function(V){this.JSC$17255_channel_.dispatchEvent(new HMQ(V))};
ZO.prototype.JSC$17245_channelError=function(V){this.JSC$17255_channel_.dispatchEvent(new T9P(V))};
ZO.prototype.JSC$17245_channelClosed=function(){this.JSC$17255_channel_.dispatchEvent("x")};
var B92=function(V,l){this.transportChannel_=V;this.JSC$17258_channel_=l},xoV=function(V){return VEh(V.JSC$17258_channel_).map(function(l){var I=V.transportChannel_;
l=l.map;"__data__"in l?(l=l.__data__,I=I.sendRawJson_?(0,_.HSi)(l):l):I=l;return I})};var RT=function(V){UoE.dispatchEvent(new nkg(UoE,V))},UoE=new _.tm,nkg=function(V){_.kL.call(this,"statevent",V)};
_.t(nkg,_.kL);var Qq=function(V,l,I,H,T){this.JSC$17263_channel_=V;this.JSC$17263_channelDebug_=l;this.sid_=I;this.JSC$17263_rid_=H;this.JSC$17263_retryId_=T||1;this.timeout_=45E3;this.JSC$17263_eventHandler_=new _.ig(this);this.pollingTimer_=new _.m4;this.pollingTimer_.setInterval(250)};
_.B=Qq.prototype;_.B.JSC$17265_extraHeaders_=null;_.B.JSC$17265_successful_=!1;_.B.JSC$17265_watchDogTimerId_=null;_.B.JSC$17265_watchDogTimeoutTime_=null;_.B.JSC$17265_requestStartTime_=null;_.B.JSC$17265_type_=null;_.B.JSC$17265_baseUri_=null;_.B.JSC$17265_requestUri_=null;_.B.JSC$17265_postData_=null;_.B.JSC$17265_xmlHttp_=null;_.B.JSC$17265_xmlHttpChunkStart_=0;_.B.trident_=null;_.B.JSC$17265_verb_=null;_.B.JSC$17265_lastError_=null;_.B.JSC$17265_lastStatusCode_=-1;_.B.sendClose_=!0;
_.B.JSC$17265_cancelled_=!1;_.B.JSC$17265_readyStateChangeThrottleMs_=0;_.B.JSC$17265_readyStateChangeThrottle_=null;var $oQ=function(V,l){switch(V){case 0:return"Non-200 return code ("+l+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},do2={},w02={};
Qq.prototype.setTimeout=function(V){this.timeout_=V};
var KGQ=function(V,l,I){V.JSC$17265_type_=1;V.JSC$17265_baseUri_=_.$N(l.clone());V.JSC$17265_postData_=I;V.decodeChunks_=!0;N9u(V,null)},jHI=function(V,l,I,H,T){V.JSC$17265_type_=1;
V.JSC$17265_baseUri_=_.$N(l.clone());V.JSC$17265_postData_=null;V.decodeChunks_=I;T&&(V.sendClose_=!1);N9u(V,H)},N9u=function(V,l){V.JSC$17265_requestStartTime_=Date.now();
YE6(V);V.JSC$17265_requestUri_=V.JSC$17265_baseUri_.clone();Ui(V.JSC$17265_requestUri_,"t",V.JSC$17263_retryId_);V.JSC$17265_xmlHttpChunkStart_=0;V.JSC$17265_xmlHttp_=V.JSC$17263_channel_.JSC$17272_createXhrIo(V.JSC$17263_channel_.JSC$17272_shouldUseSecondaryDomains()?l:null);V.JSC$17265_readyStateChangeThrottleMs_>0&&(V.JSC$17265_readyStateChangeThrottle_=new _.le((0,_.zN)(V.JSC$17265_xmlHttpHandler_,V,V.JSC$17265_xmlHttp_),V.JSC$17265_readyStateChangeThrottleMs_));V.JSC$17263_eventHandler_.listen(V.JSC$17265_xmlHttp_,
"readystatechange",V.JSC$17265_readyStateChangeHandler_);l=V.JSC$17265_extraHeaders_?_.EL.clone(V.JSC$17265_extraHeaders_):{};V.JSC$17265_postData_?(V.JSC$17265_verb_="POST",l["Content-Type"]="application/x-www-form-urlencoded",V.JSC$17265_xmlHttp_.send(V.JSC$17265_requestUri_,V.JSC$17265_verb_,V.JSC$17265_postData_,l)):(V.JSC$17265_verb_="GET",V.sendClose_&&!_.ja&&(l.Connection="close"),V.JSC$17265_xmlHttp_.send(V.JSC$17265_requestUri_,V.JSC$17265_verb_,null,l));V.JSC$17263_channel_.notifyServerReachabilityEvent(1);
l=V.JSC$17263_channelDebug_;var I=V.JSC$17265_postData_;if(I){var H="";I=I.split("&");for(var T=0;T<I.length;T++){var x=I[T].split("=");if(x.length>1){var n=x[0];x=x[1];var w=n.split("_");H=w.length>=2&&w[1]=="type"?H+(n+"="+x+"&"):H+(n+"=redacted&")}}}else H=null;l.info("XMLHTTP REQ ("+V.JSC$17263_rid_+") [attempt "+V.JSC$17263_retryId_+"]: "+V.JSC$17265_verb_+"\n"+V.JSC$17265_requestUri_+"\n"+H)};
Qq.prototype.JSC$17265_readyStateChangeHandler_=function(V){V=V.target;var l=this.JSC$17265_readyStateChangeThrottle_;l&&_.Zx(V)==3?(this.JSC$17263_channelDebug_.debug("Throttling readystatechange."),l.fire()):this.JSC$17265_xmlHttpHandler_(V)};
Qq.prototype.JSC$17265_xmlHttpHandler_=function(V){try{if(V==this.JSC$17265_xmlHttp_)a:{var l=_.Zx(this.JSC$17265_xmlHttp_),I=this.JSC$17265_xmlHttp_.JSC$7662_lastErrorCode_,H=this.JSC$17265_xmlHttp_.getStatus();if(_.ja&&!TYI("420+")){if(l<4)break a}else if(l<3||l==3&&!this.JSC$17265_xmlHttp_.getResponseText())break a;this.JSC$17265_cancelled_||l!=4||I==7||(I==8||H<=0?this.JSC$17263_channel_.notifyServerReachabilityEvent(3):this.JSC$17263_channel_.notifyServerReachabilityEvent(2));LGr(this);var T=
this.JSC$17265_xmlHttp_.getStatus();this.JSC$17265_lastStatusCode_=T;var x=this.JSC$17265_xmlHttp_.getResponseText();x||this.JSC$17263_channelDebug_.debug("No response text for uri "+this.JSC$17265_requestUri_+" status "+T);this.JSC$17265_successful_=T==200;this.JSC$17263_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17263_rid_+") [ attempt "+this.JSC$17263_retryId_+"]: "+this.JSC$17265_verb_+"\n"+this.JSC$17265_requestUri_+"\n"+l+" "+T);if(this.JSC$17265_successful_){l==4&&cL(this);if(this.decodeChunks_){for(V=
!0;!this.JSC$17265_cancelled_&&this.JSC$17265_xmlHttpChunkStart_<x.length;){var n=eHE(this,x);if(n==w02){l==4&&(this.JSC$17265_lastError_=4,RT(15),V=!1);WL(this.JSC$17263_channelDebug_,this.JSC$17263_rid_,null,"[Incomplete Response]");break}else if(n==do2){this.JSC$17265_lastError_=4;RT(16);WL(this.JSC$17263_channelDebug_,this.JSC$17263_rid_,x,"[Invalid Chunk]");V=!1;break}else WL(this.JSC$17263_channelDebug_,this.JSC$17263_rid_,n,null),k8E(this,n)}l==4&&x.length==0&&(this.JSC$17265_lastError_=1,
RT(17),V=!1);this.JSC$17265_successful_=this.JSC$17265_successful_&&V;V||(WL(this.JSC$17263_channelDebug_,this.JSC$17263_rid_,x,"[Invalid Chunked Response]"),cL(this),FGE(this))}else WL(this.JSC$17263_channelDebug_,this.JSC$17263_rid_,x,null),k8E(this,x);this.JSC$17265_successful_&&!this.JSC$17265_cancelled_&&(l==4?this.JSC$17263_channel_.JSC$17272_onRequestComplete(this):(this.JSC$17265_successful_=!1,YE6(this)))}else T==400&&x.indexOf("Unknown SID")>0?(this.JSC$17265_lastError_=3,RT(13),this.JSC$17263_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17263_rid_+")")):(this.JSC$17265_lastError_=0,RT(14),this.JSC$17263_channelDebug_.warning("XMLHTTP Bad status "+T+" ("+this.JSC$17263_rid_+")")),cL(this),FGE(this)}else this.JSC$17263_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(w){this.JSC$17263_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var eHE=function(V,l){var I=V.JSC$17265_xmlHttpChunkStart_,H=l.indexOf("\n",I);if(H==-1)return w02;I=Number(l.substring(I,H));if(isNaN(I))return do2;H+=1;if(H+I>l.length)return w02;l=l.slice(H,H+I);V.JSC$17265_xmlHttpChunkStart_=H+I;return l};
Qq.prototype.cancel=function(){this.JSC$17265_cancelled_=!0;cL(this)};
var YE6=function(V){V.JSC$17265_watchDogTimeoutTime_=Date.now()+V.timeout_;X0Q(V,V.timeout_)},X0Q=function(V,l){if(V.JSC$17265_watchDogTimerId_!=null)throw Error("yk");
V.JSC$17265_watchDogTimerId_=oF((0,_.zN)(V.JSC$17265_onWatchDogTimeout_,V),l)},LGr=function(V){V.JSC$17265_watchDogTimerId_&&(_.nK.clearTimeout(V.JSC$17265_watchDogTimerId_),V.JSC$17265_watchDogTimerId_=null)};
Qq.prototype.JSC$17265_onWatchDogTimeout_=function(){this.JSC$17265_watchDogTimerId_=null;var V=Date.now();V-this.JSC$17265_watchDogTimeoutTime_>=0?(this.JSC$17263_channelDebug_.info("TIMEOUT: "+this.JSC$17265_requestUri_),this.JSC$17265_type_!=2&&this.JSC$17263_channel_.notifyServerReachabilityEvent(3),cL(this),this.JSC$17265_lastError_=2,RT(18),FGE(this)):(this.JSC$17263_channelDebug_.warning("WatchDog timer called too early"),X0Q(this,this.JSC$17265_watchDogTimeoutTime_-V))};
var FGE=function(V){V.JSC$17263_channel_.JSC$17272_isClosed()||V.JSC$17265_cancelled_||V.JSC$17263_channel_.JSC$17272_onRequestComplete(V)},cL=function(V){LGr(V);
_.ag(V.JSC$17265_readyStateChangeThrottle_);V.JSC$17265_readyStateChangeThrottle_=null;V.pollingTimer_.stop();V.JSC$17263_eventHandler_.removeAll();if(V.JSC$17265_xmlHttp_){var l=V.JSC$17265_xmlHttp_;V.JSC$17265_xmlHttp_=null;l.abort();l.dispose()}V.trident_&&(V.trident_=null)};
Qq.prototype.getLastError=function(){return this.JSC$17265_lastError_};
var k8E=function(V,l){try{V.JSC$17263_channel_.JSC$17272_onRequestData(V,l),V.JSC$17263_channel_.notifyServerReachabilityEvent(4)}catch(I){}};var WL=function(V,l,I,H){var T=V.info;a:if(I&&I!="y2f%"){try{var x=JSON.parse(I);if(x)for(var n=0;n<x.length;n++)if(Array.isArray(x[n])){var w=x[n];if(!(w.length<2)){var N=w[1];if(Array.isArray(N)&&!(N.length<1)){var L=N[0];if(L!="noop"&&L!="stop")for(var e=1;e<N.length;e++)N[e]=""}}}var k=(0,_.PH)(x);break a}catch(X){V.debug("Exception parsing expected JS array - probably was not JS");k=I;break a}k=void 0}else k=I;T.call(V,"XMLHTTP TEXT ("+l+"): "+k+(H?" "+H:""))};
hg.prototype.debug=function(V){this.info(V)};
hg.prototype.info=function(){};
hg.prototype.warning=function(){};var zHI=function(V,l){this.JSC$17270_channel_=V;this.JSC$17270_channelDebug_=l;this.JSC$17270_parser_=new kx};
_.B=zHI.prototype;_.B.JSC$17272_extraHeaders_=null;_.B.JSC$17272_request_=null;_.B.receivedIntermediateResult_=!1;_.B.JSC$17272_path_=null;_.B.state_=null;_.B.JSC$17272_lastStatusCode_=-1;_.B.JSC$17272_hostPrefix_=null;_.B.blockedPrefix_=null;
_.B.connect=function(V){this.JSC$17272_path_=V;V=yNb(this.JSC$17270_channel_,this.JSC$17272_path_);RT(3);Date.now();var l=this.JSC$17270_channel_.firstTestResults_;l!=null?(this.JSC$17272_hostPrefix_=l[0],(this.blockedPrefix_=l[1])?(this.state_=1,tEE(this)):(this.state_=2,rNE(this))):(Ui(V,"MODE","init"),this.JSC$17272_request_=new Qq(this,this.JSC$17270_channelDebug_),this.JSC$17272_request_.JSC$17265_extraHeaders_=this.JSC$17272_extraHeaders_,jHI(this.JSC$17272_request_,V,!1,null,!0),this.state_=
0)};
var tEE=function(V){var l=G8E(V.JSC$17270_channel_,V.blockedPrefix_,"/mail/images/cleardot.gif");_.$N(l);sJE(l.toString(),5E3,(0,_.zN)(V.checkBlockedCallback_,V),3,2E3);V.notifyServerReachabilityEvent(1)};
zHI.prototype.checkBlockedCallback_=function(V){if(V)this.state_=2,rNE(this);else{RT(4);var l=this.JSC$17270_channel_;l.JSC$17273_channelDebug_.debug("Test Connection Blocked");l.JSC$17277_lastStatusCode_=l.connectionTest_.JSC$17272_lastStatusCode_;bX(l,9)}V&&this.notifyServerReachabilityEvent(2)};
var rNE=function(V){V.JSC$17270_channelDebug_.debug("TestConnection: starting stage 2");var l=V.JSC$17270_channel_.secondTestResults_;l!=null?(V.JSC$17270_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+l?"Buffered":"Unbuffered"),RT(5),l?(RT(11),q5(V.JSC$17270_channel_,V,!1)):(RT(12),q5(V.JSC$17270_channel_,V,!0))):(V.JSC$17272_request_=new Qq(V,V.JSC$17270_channelDebug_),V.JSC$17272_request_.JSC$17265_extraHeaders_=V.JSC$17272_extraHeaders_,l=EkQ(V.JSC$17270_channel_,
V.JSC$17272_hostPrefix_,V.JSC$17272_path_),RT(5),Ui(l,"TYPE","xmlhttp"),jHI(V.JSC$17272_request_,l,!1,V.JSC$17272_hostPrefix_,!1))};
_.B=zHI.prototype;_.B.JSC$17272_createXhrIo=function(V){return this.JSC$17270_channel_.JSC$17272_createXhrIo(V)};
_.B.abort=function(){this.JSC$17272_request_&&(this.JSC$17272_request_.cancel(),this.JSC$17272_request_=null);this.JSC$17272_lastStatusCode_=-1};
_.B.JSC$17272_isClosed=function(){return!1};
_.B.JSC$17272_onRequestData=function(V,l){this.JSC$17272_lastStatusCode_=V.JSC$17265_lastStatusCode_;if(this.state_==0)if(this.JSC$17270_channelDebug_.debug("TestConnection: Got data for stage 1"),l){try{var I=this.JSC$17270_parser_.parse(l)}catch(H){JNE(this.JSC$17270_channel_,this);return}this.JSC$17272_hostPrefix_=I[0];this.blockedPrefix_=I[1]}else this.JSC$17270_channelDebug_.debug("TestConnection: Null responseText"),JNE(this.JSC$17270_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(RT(7),Date.now()):l=="11111"?(RT(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17272_lastStatusCode_=200,this.JSC$17272_request_.cancel(),this.JSC$17270_channelDebug_.debug("Test connection succeeded; using streaming connection"),RT(12),q5(this.JSC$17270_channel_,this,!0)):(RT(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.B.JSC$17272_onRequestComplete=function(){this.JSC$17272_lastStatusCode_=this.JSC$17272_request_.JSC$17265_lastStatusCode_;this.JSC$17272_request_.JSC$17265_successful_?this.state_==0?(this.JSC$17270_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,tEE(this)):(this.state_=2,rNE(this))):this.state_==2&&(this.JSC$17270_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17270_channelDebug_.debug("Test connection succeeded; using streaming connection"),
RT(12),q5(this.JSC$17270_channel_,this,!0)):(this.JSC$17270_channelDebug_.debug("Test connection failed; not using streaming"),RT(11),q5(this.JSC$17270_channel_,this,!1))):(this.JSC$17270_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?RT(9):this.state_==2&&RT(10),JNE(this.JSC$17270_channel_,this,this.JSC$17272_request_.getLastError()))};
_.B.JSC$17272_shouldUseSecondaryDomains=function(){return this.JSC$17270_channel_.JSC$17272_shouldUseSecondaryDomains()};
_.B.isActive=function(){return this.JSC$17270_channel_.isActive()};
_.B.notifyServerReachabilityEvent=function(V){this.JSC$17270_channel_.notifyServerReachabilityEvent(V)};var M5=function(V,l,I){this.state_=1;this.JSC$17273_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17273_channelDebug_=new hg;this.JSC$17273_parser_=new kx;this.firstTestResults_=V||null;this.secondTestResults_=l!=null?l:null;this.asyncTest_=I||!1},okh=function(V,l){this.JSC$17275_mapId=V;
this.map=l;this.context=null};
_.B=M5.prototype;_.B.JSC$17277_extraHeaders_=null;_.B.JSC$17277_extraParams_=null;_.B.forwardChannelRequest_=null;_.B.JSC$17277_backChannelRequest_=null;_.B.JSC$17277_path_=null;_.B.JSC$17277_forwardChannelUri_=null;_.B.JSC$17277_backChannelUri_=null;_.B.JSC$17277_hostPrefix_=null;_.B.JSC$17277_nextRid_=0;_.B.JSC$17277_nextMapId_=0;_.B.handler_=null;_.B.JSC$17277_forwardChannelTimerId_=null;_.B.JSC$17277_backChannelTimerId_=null;_.B.JSC$17277_deadBackChannelTimerId_=null;_.B.connectionTest_=null;
_.B.useChunked_=null;_.B.JSC$17277_lastArrayId_=-1;_.B.JSC$17277_lastPostResponseArrayId_=-1;_.B.JSC$17277_lastStatusCode_=-1;_.B.JSC$17277_forwardChannelRetryCount_=0;_.B.JSC$17277_backChannelRetryCount_=0;_.B.JSC$17277_channelVersion_=8;var hHV={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},PM6=function(V,l,I,H){_.kL.call(this,"timingevent",V);this.size=l;this.rtt=I;this.retries=H};
_.Uk(PM6,_.kL);var Doh=function(V){_.kL.call(this,"serverreachability",V)};
_.Uk(Doh,_.kL);M5.prototype.connect=function(V,l,I,H,T){this.JSC$17273_channelDebug_.debug("connect()");RT(0);this.JSC$17277_path_=l;this.JSC$17277_extraParams_=I||{};H&&T!==void 0&&(this.JSC$17277_extraParams_.OSID=H,this.JSC$17277_extraParams_.OAID=T);this.asyncTest_?(oF((0,_.zN)(this.connectTest_,this,V),100),ZM6(this)):this.connectTest_(V)};
M5.prototype.disconnect=function(){this.JSC$17273_channelDebug_.debug("disconnect()");SEP(this);if(this.state_==3){var V=this.JSC$17277_nextRid_++,l=this.JSC$17277_forwardChannelUri_.clone();_.qx(l,"SID",this.sid_);_.qx(l,"RID",V);_.qx(l,"TYPE","terminate");sW(this,l);V=new Qq(this,this.JSC$17273_channelDebug_,this.sid_,V);V.JSC$17265_type_=2;V.JSC$17265_baseUri_=_.$N(l.clone());(new Image).src=V.JSC$17265_baseUri_.toString();V.JSC$17265_requestStartTime_=Date.now();YE6(V)}RHI(this)};
M5.prototype.connectTest_=function(V){this.JSC$17273_channelDebug_.debug("connectTest_()");this.connectionTest_=new zHI(this,this.JSC$17273_channelDebug_);this.connectionTest_.JSC$17272_extraHeaders_=this.JSC$17277_extraHeaders_;this.connectionTest_.JSC$17270_parser_=this.JSC$17273_parser_;this.connectionTest_.connect(V)};
var ZM6=function(V){V.JSC$17273_channelDebug_.debug("connectChannel_()");V.JSC$17277_ensureInState_(1,0);V.JSC$17277_forwardChannelUri_=yNb(V,V.JSC$17277_path_);QHE(V)},SEP=function(V){V.connectionTest_&&(V.connectionTest_.abort(),V.connectionTest_=null);
V.JSC$17277_backChannelRequest_&&(V.JSC$17277_backChannelRequest_.cancel(),V.JSC$17277_backChannelRequest_=null);V.JSC$17277_backChannelTimerId_&&(_.nK.clearTimeout(V.JSC$17277_backChannelTimerId_),V.JSC$17277_backChannelTimerId_=null);cN2(V);V.forwardChannelRequest_&&(V.forwardChannelRequest_.cancel(),V.forwardChannelRequest_=null);V.JSC$17277_forwardChannelTimerId_&&(_.nK.clearTimeout(V.JSC$17277_forwardChannelTimerId_),V.JSC$17277_forwardChannelTimerId_=null)},WGI=function(V,l){if(V.state_==0)throw Error("Bk");
V.JSC$17273_outgoingMaps_.length==1E3&&V.JSC$17273_parser_.stringify(l);V.JSC$17273_outgoingMaps_.push(new okh(V.JSC$17277_nextMapId_++,l));V.state_!=2&&V.state_!=3||QHE(V)};
M5.prototype.JSC$17272_isClosed=function(){return this.state_==0};
M5.prototype.getState=function(){return this.state_};
var QHE=function(V){V.forwardChannelRequest_||V.JSC$17277_forwardChannelTimerId_||(V.JSC$17277_forwardChannelTimerId_=oF((0,_.zN)(V.JSC$17277_onStartForwardChannelTimer_,V),0),V.JSC$17277_forwardChannelRetryCount_=0)};
M5.prototype.JSC$17277_onStartForwardChannelTimer_=function(V){this.JSC$17277_forwardChannelTimerId_=null;bMg(this,V)};
var bMg=function(V,l){V.JSC$17273_channelDebug_.debug("startForwardChannel_");if(V.state_==1){if(!l){V.JSC$17273_channelDebug_.debug("open_()");V.JSC$17277_nextRid_=Math.floor(Math.random()*1E5);l=V.JSC$17277_nextRid_++;var I=new Qq(V,V.JSC$17273_channelDebug_,"",l);I.JSC$17265_extraHeaders_=V.JSC$17277_extraHeaders_;var H=qEE(V),T=V.JSC$17277_forwardChannelUri_.clone();_.qx(T,"RID",l);_.qx(T,"CVER","1");sW(V,T);KGQ(I,T,H);V.forwardChannelRequest_=I;V.state_=2}}else V.state_==3&&(l?MEP(V,l):V.JSC$17273_outgoingMaps_.length==
0?V.JSC$17273_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):V.forwardChannelRequest_||(MEP(V),V.JSC$17273_channelDebug_.debug("startForwardChannel_ finished, sent request")))},MEP=function(V,l){if(l)if(V.JSC$17277_channelVersion_>6){V.JSC$17273_outgoingMaps_=V.pendingMaps_.concat(V.JSC$17273_outgoingMaps_);
V.pendingMaps_.length=0;var I=V.JSC$17277_nextRid_-1;l=qEE(V)}else I=l.JSC$17263_rid_,l=l.JSC$17265_postData_;else I=V.JSC$17277_nextRid_++,l=qEE(V);var H=V.JSC$17277_forwardChannelUri_.clone();_.qx(H,"SID",V.sid_);_.qx(H,"RID",I);_.qx(H,"AID",V.JSC$17277_lastArrayId_);sW(V,H);I=new Qq(V,V.JSC$17273_channelDebug_,V.sid_,I,V.JSC$17277_forwardChannelRetryCount_+1);I.JSC$17265_extraHeaders_=V.JSC$17277_extraHeaders_;I.setTimeout(1E4+Math.round(1E4*Math.random()));V.forwardChannelRequest_=I;KGQ(I,H,l)},
sW=function(V,l){V.handler_&&(V=V.handler_.JSC$17284_getAdditionalParams())&&_.EL.forEach(V,function(I,H){_.qx(l,H,I)})},qEE=function(V){var l=Math.min(V.JSC$17273_outgoingMaps_.length,1E3),I=["count="+l];
if(V.JSC$17277_channelVersion_>6&&l>0){var H=V.JSC$17273_outgoingMaps_[0].JSC$17275_mapId;I.push("ofs="+H)}else H=0;for(var T={},x=0;x<l;T={mapId$jscomp$3:void 0},x++){T.mapId$jscomp$3=V.JSC$17273_outgoingMaps_[x].JSC$17275_mapId;var n=V.JSC$17273_outgoingMaps_[x].map;T.mapId$jscomp$3=V.JSC$17277_channelVersion_<=6?x:T.mapId$jscomp$3-H;try{_.EL.forEach(n,function(w){return function(N,L){I.push("req"+w.mapId$jscomp$3+"_"+L+"="+encodeURIComponent(N))}}(T))}catch(w){I.push("req"+T.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}V.pendingMaps_=V.pendingMaps_.concat(V.JSC$17273_outgoingMaps_.splice(0,l));
return I.join("&")},sHE=function(V){V.JSC$17277_backChannelRequest_||V.JSC$17277_backChannelTimerId_||(V.JSC$17277_backChannelAttemptId_=1,V.JSC$17277_backChannelTimerId_=oF((0,_.zN)(V.JSC$17277_onStartBackChannelTimer_,V),0),V.JSC$17277_backChannelRetryCount_=0)},ANu=function(V){if(V.JSC$17277_backChannelRequest_||V.JSC$17277_backChannelTimerId_||V.JSC$17277_backChannelRetryCount_>=3)return!1;
V.JSC$17273_channelDebug_.debug("Going to retry GET");V.JSC$17277_backChannelAttemptId_++;V.JSC$17277_backChannelTimerId_=oF((0,_.zN)(V.JSC$17277_onStartBackChannelTimer_,V),p02(V,V.JSC$17277_backChannelRetryCount_));V.JSC$17277_backChannelRetryCount_++;return!0};
M5.prototype.JSC$17277_onStartBackChannelTimer_=function(){this.JSC$17277_backChannelTimerId_=null;this.JSC$17273_channelDebug_.debug("Creating new HttpRequest");this.JSC$17277_backChannelRequest_=new Qq(this,this.JSC$17273_channelDebug_,this.sid_,"rpc",this.JSC$17277_backChannelAttemptId_);this.JSC$17277_backChannelRequest_.JSC$17265_extraHeaders_=this.JSC$17277_extraHeaders_;this.JSC$17277_backChannelRequest_.JSC$17265_readyStateChangeThrottleMs_=0;var V=this.JSC$17277_backChannelUri_.clone();_.qx(V,
"RID","rpc");_.qx(V,"SID",this.sid_);_.qx(V,"CI",this.useChunked_?"0":"1");_.qx(V,"AID",this.JSC$17277_lastArrayId_);sW(this,V);_.qx(V,"TYPE","xmlhttp");jHI(this.JSC$17277_backChannelRequest_,V,!0,this.JSC$17277_hostPrefix_,!1);this.JSC$17273_channelDebug_.debug("New Request created")};
var q5=function(V,l,I){V.JSC$17273_channelDebug_.debug("Test Connection Finished");V.useChunked_=V.secondTestResults_==null?I:!V.secondTestResults_;V.JSC$17277_lastStatusCode_=l.JSC$17272_lastStatusCode_;V.asyncTest_||ZM6(V)},JNE=function(V,l){V.JSC$17273_channelDebug_.debug("Test Connection Failed");
V.JSC$17277_lastStatusCode_=l.JSC$17272_lastStatusCode_;bX(V,2)};
M5.prototype.JSC$17272_onRequestData=function(V,l){if(this.state_!=0&&(this.JSC$17277_backChannelRequest_==V||this.forwardChannelRequest_==V))if(this.JSC$17277_lastStatusCode_=V.JSC$17265_lastStatusCode_,this.forwardChannelRequest_==V&&this.state_==3)if(this.JSC$17277_channelVersion_>7){try{var I=this.JSC$17273_parser_.parse(l)}catch(H){I=null}if(Array.isArray(I)&&I.length==3)if(l=I,l[0]==0)a:if(this.JSC$17273_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17277_backChannelTimerId_)this.JSC$17273_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17277_backChannelRequest_)if(this.JSC$17277_backChannelRequest_.JSC$17265_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17265_requestStartTime_)cN2(this),this.JSC$17277_backChannelRequest_.cancel(),this.JSC$17277_backChannelRequest_=null;else break a;else this.JSC$17273_channelDebug_.warning("We do not have a BackChannel established");ANu(this);RT(19)}else this.JSC$17277_lastPostResponseArrayId_=l[1],V=this.JSC$17277_lastPostResponseArrayId_-this.JSC$17277_lastArrayId_,0<
V&&(l=l[2],this.JSC$17273_channelDebug_.debug(l+" bytes (in "+V+" arrays) are outstanding on the BackChannel"),l<37500&&this.useChunked_&&this.JSC$17277_backChannelRetryCount_==0&&!this.JSC$17277_deadBackChannelTimerId_&&(this.JSC$17277_deadBackChannelTimerId_=oF((0,_.zN)(this.JSC$17277_onBackChannelDead_,this),6E3)));else this.JSC$17273_channelDebug_.debug("Bad POST response data returned"),bX(this,11)}else l!="y2f%"&&(this.JSC$17273_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
bX(this,11));else this.JSC$17277_backChannelRequest_==V&&cN2(this),_.jc(l)||(V=this.JSC$17273_parser_.parse(l),this.onInput_(V))};
M5.prototype.JSC$17277_onBackChannelDead_=function(){this.JSC$17277_deadBackChannelTimerId_!=null&&(this.JSC$17277_deadBackChannelTimerId_=null,this.JSC$17277_backChannelRequest_.cancel(),this.JSC$17277_backChannelRequest_=null,ANu(this),RT(20))};
var cN2=function(V){V.JSC$17277_deadBackChannelTimerId_!=null&&(_.nK.clearTimeout(V.JSC$17277_deadBackChannelTimerId_),V.JSC$17277_deadBackChannelTimerId_=null)};
M5.prototype.JSC$17272_onRequestComplete=function(V){this.JSC$17273_channelDebug_.debug("Request complete");if(this.JSC$17277_backChannelRequest_==V){cN2(this);this.JSC$17277_backChannelRequest_=null;var l=2}else if(this.forwardChannelRequest_==V)this.forwardChannelRequest_=null,l=1;else return;this.JSC$17277_lastStatusCode_=V.JSC$17265_lastStatusCode_;if(this.state_!=0)if(V.JSC$17265_successful_)if(l==1){l=V.JSC$17265_postData_?V.JSC$17265_postData_.length:0;V=Date.now()-V.JSC$17265_requestStartTime_;
var I=UoE;I.dispatchEvent(new PM6(I,l,V,this.JSC$17277_forwardChannelRetryCount_));QHE(this);this.handler_&&this.handler_.JSC$17284_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else sHE(this);else{I=V.getLastError();if(I==3||I==7||I==0&&this.JSC$17277_lastStatusCode_>0)this.JSC$17273_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17273_channelDebug_.debug("Maybe retrying, last error: "+$oQ(I,this.JSC$17277_lastStatusCode_));var H;if(H=l==1)this.forwardChannelRequest_||
this.JSC$17277_forwardChannelTimerId_||this.state_==1||this.JSC$17277_forwardChannelRetryCount_>=2?H=!1:(this.JSC$17273_channelDebug_.debug("Going to retry POST"),this.JSC$17277_forwardChannelTimerId_=oF((0,_.zN)(this.JSC$17277_onStartForwardChannelTimer_,this,V),p02(this,this.JSC$17277_forwardChannelRetryCount_)),this.JSC$17277_forwardChannelRetryCount_++,H=!0);if(H||l==2&&ANu(this))return;this.JSC$17273_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17273_channelDebug_.debug("Error: HTTP request failed");
switch(I){case 1:bX(this,5);break;case 4:bX(this,10);break;case 3:bX(this,6);break;case 7:bX(this,12);break;default:bX(this,2)}}};
var p02=function(V,l){var I=5E3+Math.floor(Math.random()*1E4);V.isActive()||(V.JSC$17273_channelDebug_.debug("Inactive channel"),I*=2);return I*l};
M5.prototype.onInput_=function(V){for(var l=0;l<V.length;l++){var I=V[l];this.JSC$17277_lastArrayId_=I[0];I=I[1];this.state_==2?I[0]=="c"?(this.sid_=I[1],this.JSC$17277_hostPrefix_=I[2],I=I[3],I!=null?this.JSC$17277_channelVersion_=I:this.JSC$17277_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17284_channelOpened(),this.JSC$17277_backChannelUri_=EkQ(this,this.JSC$17277_hostPrefix_,this.JSC$17277_path_),sHE(this)):I[0]=="stop"&&bX(this,7):this.state_==3&&(I[0]=="stop"?bX(this,7):
I[0]!="noop"&&this.handler_&&this.handler_.JSC$17284_channelHandleArray(I),this.JSC$17277_backChannelRetryCount_=0)}};
M5.prototype.JSC$17277_ensureInState_=function(V){if(!_.Mq(arguments,this.state_))throw Error("Ck`"+this.state_);};
var bX=function(V,l){V.JSC$17273_channelDebug_.info("Error code "+l);if(l==2||l==9){var I=null;V.handler_&&(I=null);var H=(0,_.zN)(V.testGoogleComCallback_,V);I||(I=new _.OA("//www.google.com/images/cleardot.gif"),_.$N(I));MnE(I.toString(),1E4,H)}else RT(2);V.onError_(l)};
M5.prototype.testGoogleComCallback_=function(V){V?(this.JSC$17273_channelDebug_.info("Successfully pinged google.com"),RT(2)):(this.JSC$17273_channelDebug_.info("Failed to ping google.com"),RT(1),this.onError_(8))};
M5.prototype.onError_=function(V){this.JSC$17273_channelDebug_.debug("HttpChannel: error - "+V);this.state_=0;this.handler_&&this.handler_.JSC$17284_channelError(V);RHI(this);SEP(this)};
var RHI=function(V){V.state_=0;V.JSC$17277_lastStatusCode_=-1;if(V.handler_)if(V.pendingMaps_.length==0&&V.JSC$17273_outgoingMaps_.length==0)V.handler_.JSC$17284_channelClosed();else{V.JSC$17273_channelDebug_.debug("Number of undelivered maps, pending: "+V.pendingMaps_.length+", outgoing: "+V.JSC$17273_outgoingMaps_.length);var l=_.uN(V.pendingMaps_),I=_.uN(V.JSC$17273_outgoingMaps_);V.pendingMaps_.length=0;V.JSC$17273_outgoingMaps_.length=0;V.handler_.JSC$17284_channelClosed(l,I)}},yNb=function(V,
l){l=G8E(V,null,l);
V.JSC$17273_channelDebug_.debug("GetForwardChannelUri: "+l);return l},EkQ=function(V,l,I){l=G8E(V,V.JSC$17272_shouldUseSecondaryDomains()?l:null,I);
V.JSC$17273_channelDebug_.debug("GetBackChannelUri: "+l);return l},G8E=function(V,l,I){var H=_.Wv(I);
if(H.JSC$7896_domain_!="")l&&_.ln(H,l+"."+H.JSC$7896_domain_),_.IB(H,H.JSC$7896_port_);else{var T=window.location;H=lE2(T.protocol,l?l+"."+T.hostname:T.hostname,+T.port,I)}V.JSC$17277_extraParams_&&_.EL.forEach(V.JSC$17277_extraParams_,function(x,n){_.qx(H,n,x)});
_.qx(H,"VER",V.JSC$17277_channelVersion_);sW(V,H);return H};
M5.prototype.JSC$17272_createXhrIo=function(V){if(V)throw Error("zk");V=new _.Dx;V.JSC$7662_withCredentials_=!1;return V};
M5.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
M5.prototype.notifyServerReachabilityEvent=function(V){var l=UoE;l.dispatchEvent(new Doh(l,V))};
M5.prototype.JSC$17272_shouldUseSecondaryDomains=function(){return!1};
new UAE;var uYE=function(){};
_.B=uYE.prototype;_.B.JSC$17284_channelOpened=function(){};
_.B.JSC$17284_channelHandleArray=function(){};
_.B.JSC$17284_channelSuccess=function(){};
_.B.JSC$17284_channelError=function(){};
_.B.JSC$17284_channelClosed=function(){};
_.B.JSC$17284_getAdditionalParams=function(){return{}};
_.B.isActive=function(){return!0};var vkP=function(V){V.front_.length===0&&(V.front_=V.back_,V.front_.reverse(),V.back_=[])};
_.B=AyY.prototype;_.B.enqueue=function(V){this.back_.push(V)};
_.B.peek=function(){vkP(this);return _.Qf(this.front_)};
_.B.getCount=function(){return this.front_.length+this.back_.length};
_.B.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.B.clear=function(){this.front_=[];this.back_=[]};
_.B.contains=function(V){return _.Mq(this.front_,V)||_.Mq(this.back_,V)};
_.B.remove=function(V){var l=this.front_;var I=Array.prototype.lastIndexOf.call(l,V,l.length-1);I>=0?(_.y1J(l,I),l=!0):l=!1;return l||_.A1(this.back_,V)};
_.B.getValues=function(){for(var V=[],l=this.front_.length-1;l>=0;--l)V.push(this.front_[l]);l=this.back_.length;for(var I=0;I<l;++I)V.push(this.back_[I]);return V};var po=function(V){this.JSC$17288_map_=new _.$Y;this.size=0;V&&this.addAll(V)},OM6=function(V){var l=typeof V;
return l=="object"&&V||l=="function"?"o"+_.iN(V):l.charAt(0)+V};
_.B=po.prototype;_.B.getCount=function(){return this.JSC$17288_map_.size};
_.B.add=function(V){this.JSC$17288_map_.set(OM6(V),V);this.size=this.JSC$17288_map_.size};
_.B.addAll=function(V){V=_.iU(V);for(var l=V.length,I=0;I<l;I++)this.add(V[I]);this.size=this.JSC$17288_map_.size};
_.B.removeAll=function(V){V=_.iU(V);for(var l=V.length,I=0;I<l;I++)this.remove(V[I]);this.size=this.JSC$17288_map_.size};
_.B.delete=function(V){V=this.JSC$17288_map_.remove(OM6(V));this.size=this.JSC$17288_map_.size;return V};
_.B.remove=function(V){return this.delete(V)};
_.B.clear=function(){this.JSC$17288_map_.clear();this.size=0};
_.B.isEmpty=function(){return this.JSC$17288_map_.size===0};
_.B.has=function(V){return this.JSC$17288_map_.containsKey(OM6(V))};
_.B.contains=function(V){return this.JSC$17288_map_.containsKey(OM6(V))};
_.B.getValues=function(){return this.JSC$17288_map_.getValues()};
_.B.values=function(){return this.JSC$17288_map_.values()};
_.B.clone=function(){return new po(this)};
_.B.equals=function(V){return this.getCount()==ihu(V)&&CME(this,V)};
var CME=function(V,l){var I=ihu(l);if(V.getCount()>I)return!1;!(l instanceof po)&&I>5&&(l=new po(l));return VSE(V,function(H){var T=l;return T.contains&&typeof T.contains=="function"?T.contains(H):T.containsValue&&typeof T.containsValue=="function"?T.containsValue(H):_.vy(T)||typeof T==="string"?_.Mq(T,H):_.EL.containsValue(T,H)})};
po.prototype.__iterator__=function(){return this.JSC$17288_map_.__iterator__(!1)};
po.prototype[Symbol.iterator]=function(){return this.values()};var aSB={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(V){return(this._clampValue(V)-this.min)/(this.max-this.min)},
_clampValue:function(V){return Math.min(this.max,Math.max(this.min,this._calcStep(V)))},
_calcStep:function(V){V=parseFloat(V);if(!this.step)return V;V=Math.round((V-this.min)/this.step);return this.step<1?V/(1/this.step)+this.min:V*this.step+this.min},
_validateValue:function(){var V=this._clampValue(this.value);this.value=this.oldValue=isNaN(V)?this.oldValue:V;return this.value!==V},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var fSr;var gkB;_.Ne({_template:function(){if(gkB!==void 0)return gkB;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;fSr===void 0&&(fSr=document.createElement("template"));var H=fSr;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return gkB=V},
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(){_.Al(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(V){V.keyCode===27&&(V.preventDefault(),this.close())},
_track:function(V){if(!this.persistent&&!this.disableSwipe)switch(V.preventDefault(),V.detail.state){case "start":this._trackStart(V);break;case "track":this._trackMove(V);break;case "end":this._trackEnd(V)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var V=this.$.contentContainer.getBoundingClientRect();this._savedWidth=V.width;this._translateOffset=this.position==="left"?V.left:V.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(V){this._trackDetails&&(this._translateDrawer(V.detail.dx+this._translateOffset),this._trackDetails.push({dx:V.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(V){if(this._trackDetails){var l=V.detail.dx+this._translateOffset,I=this.getWidth();l=this.position==="left"?l>=0||l<=-I:l<=0||l>=I;if(!l){var H=this._trackDetails;this._trackDetails=null;this._flingDrawer(V,H);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}I/=2;V.detail.dx<-I?this.opened=this.position==="right":V.detail.dx>I&&(this.opened=this.position==="left");l?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(V,l){for(var I=Date.now(),H=I-100,T,x=0,n=l.length-1;x<=n;){var w=x+n>>1,N=l[w];N.timeStamp>=H?(T=N,n=w-1):x=w+1}return T?(V.detail.dx-T.dx)/(I-T.timeStamp||1):0},
_flingDrawer:function(V,l){l=this._calculateVelocity(V,l);if(!(Math.abs(l)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;V=V.detail.dx+this._translateOffset;var I=this.getWidth(),H=this.position==="left",T=l>0;T?(l=Math.max(l,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(l=Math.min(l,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");l=this._FLING_INITIAL_SLOPE*(!T&&H?-(V+I):T&&!H?I-V:-V)/l;this._styleTransitionDuration(l);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,l)}},
_styleTransitionDuration:function(V){this.style.transitionDuration=V+"ms";this.$.contentContainer.style.transitionDuration=V+"ms";this.$.scrim.style.transitionDuration=V+"ms"},
_styleTransitionTimingFunction:function(V){this.$.contentContainer.style.transitionTimingFunction=V;this.$.scrim.style.transitionTimingFunction=V},
_translateDrawer:function(V){var l=this.getWidth();this.position==="left"?(V=Math.max(-l,Math.min(V,0)),this.$.scrim.style.opacity=1+V/l):(V=Math.max(0,Math.min(V,l)),this.$.scrim.style.opacity=1-V/l);this.translate3d(V+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var V=this._drawerState;V===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;V!==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=""),V!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var V=_.Xb(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"])');V.length>0?(this._firstTabStop=V[0],this._lastTabStop=V[V.length-1]):
this._lastTabStop=this._firstTabStop=null;(V=this.getAttribute("tabindex"))&&parseInt(V,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(V){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||V.keyCode!==9||(V.shiftKey?this._firstTabStop&&_.Xb(V).localTarget===this._firstTabStop&&(V.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Xb(V).localTarget===this._lastTabStop&&(V.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(V,l){this.toggleClass("visible",V&&!l,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 mou;var iME;_.Ne({_template:function(){if(iME!==void 0)return iME;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;mou===void 0&&(mou=document.createElement("template"));var H=mou;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return iME=V},
is:"tp-yt-paper-progress",behaviors:[aSB],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(V){this.toggleClass("indeterminate",V,this.$.primaryProgress)},
_transformProgress:function(V,l){V.style.transform=V.style.webkitTransform="scaleX("+l/100+")"},
_mainRatioChanged:function(V){this._transformProgress(this.$.primaryProgress,V)},
_progressChanged:function(V,l,I,H,T){V=this._clampValue(V);l=this._clampValue(l);var x=this._calcRatio(V)*100,n=this._calcRatio(l)*100;this._setSecondaryRatio(x);this._transformProgress(this.$.secondaryProgress,x);this._transformProgress(this.$.primaryProgress,n);this.secondaryProgress=V;T?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",l);this.setAttribute("aria-valuemin",I);this.setAttribute("aria-valuemax",H)},
_disabledChanged:function(V){this.setAttribute("aria-disabled",V?"true":"false")},
_hideSecondaryProgress:function(V){return V===0}});var Vyb;var lmb;var ImE=function(){};
_.B=ImE.prototype;_.B.registered=function(){};
_.B.addOwnKeyBinding=function(){};
_.B.removeOwnKeyBindings=function(){};
_.B.keyboardEventMatchesKeys=function(){};
_.B._collectKeyBindings=function(){};
_.B._prepKeyBindings=function(){};
_.B._addKeyBinding=function(){};
_.B._resetKeyEventListeners=function(){};
_.B._listenKeyEventListeners=function(){};
_.B._unlistenKeyEventListeners=function(){};
_.B._onKeyBindingEvent=function(){};
_.B._triggerKeyHandler=function(){};
_.B._tapHandler=function(){};
_.B._focusChanged=function(){};
_.B._detectKeyboardFocus=function(){};
_.B._userActivate=function(){};
_.B._upHandler=function(){};
_.B._spaceKeyDownHandler=function(){};
_.B._spaceKeyUpHandler=function(){};
_.B._asyncClick=function(){};
_.B._pressedChanged=function(){};
_.B._ariaActiveAttributeChanged=function(){};
_.B._activeChanged=function(){};
_.B._controlStateChanged=function(){};
_.B._changedButtonState=function(){};
_.B._focusBlurHandler=function(){};
_.B._disabledChanged=function(){};
_.B._changedControlState=function(){};
_.B._buttonStateChanged=function(){};
_.B._downHandler=function(){};
_.B.ensureRipple=function(){};
_.B.getRipple=function(){};
_.B.hasRipple=function(){};
_.B._noinkChanged=function(){};
_.B._calcRatio=function(){};
_.B._clampValue=function(){};
_.B._calcStep=function(){};
_.B._validateValue=function(){};
_.B._update=function(){};
_.B._setImmediateValue=function(){};
_.B._setExpand=function(){};
_.B._setDragging=function(){};
_.B._setTransiting=function(){};
_.B._setMarkers=function(){};
_.B._setPressed=function(){};
_.B._setPointerDown=function(){};
_.B._setReceivedFocusFromKeyboard=function(){};
_.B._setFocused=function(){};
_.B._setRatio=function(){};
ImE=_.Ne({_template:function(){if(lmb!==void 0)return lmb;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;Vyb===void 0&&(Vyb=document.createElement("template"));var H=Vyb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return lmb=V},
is:"tp-yt-paper-slider",behaviors:[_.yn,_.EM,_.Rjo,aSB],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,
value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}}},
observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&_.Jl(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(V,l,I){this.setAttribute("aria-valuemin",l);this.setAttribute("aria-valuemax",I);this.setAttribute("aria-valuenow",V);this._positionKnob(this._calcRatio(V)*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(V){this._setImmediateValue(this._calcStep(this._calcKnobPosition(V)));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(V){return(this.max-this.min)*V/100+this.min},
_onTrack:function(V){V.stopPropagation();switch(V.detail.state){case "start":this._trackStart(V);break;case "track":this._trackX(V);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(V){this.dragging||this._trackStart(V);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,V.detail.dx*(this._isRTL?-1:1)));V=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(V);V=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(V+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var V=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;V.transform=V.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(V){this._expandKnob();V.preventDefault();this.focus()},
_bartrack:function(V){this._allowBarEvent(V)&&this._onTrack(V)},
_barclick:function(V){this._w=this.$.sliderBar.offsetWidth;var l=this.$.sliderBar.getBoundingClientRect();l=(V.detail.x-l.left)/this._w*100;this._isRTL&&(l=100-l);var I=this.ratio;this._setTransiting(!0);this._positionKnob(l);I===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
V.preventDefault();this.focus()},
_bardown:function(V){this._allowBarEvent(V)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(V))},
_knobTransitionEnd:function(V){V.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(V,l,I,H){H||this._setMarkers([]);l=Math.round((I-l)/this.step);l>V&&(l=V);if(l<0||!isFinite(l))l=0;this._setMarkers(Array(l))},
_mergeClasses:function(V){return Object.keys(V).filter(function(l){return V[l]}).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(V){return!this.ignoreBarTouch||V.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(V){this._isRTL?this._incrementKey(V):this._decrementKey(V)},
_rightKey:function(V){this._isRTL?this._decrementKey(V):this._incrementKey(V)},
_incrementKey:function(V){this.disabled||(V.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),V.preventDefault())},
_decrementKey:function(V){this.disabled||(V.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),V.preventDefault())},
_changeValue:function(V){this.value=V.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(V){V.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.SHN._createRipple.call(this)},
_focusedChanged:function(V){V&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=V?"":"none",this._ripple.holdDown=V)}});var HzI;var TcI;var Ah=null,Bcr=function(){};
_.B=Bcr.prototype;_.B.fit=function(){};
_.B._discoverInfo=function(){};
_.B.resetFit=function(){};
_.B.refit=function(){};
_.B.position=function(){};
_.B.constrain=function(){};
_.B._sizeDimension=function(){};
_.B.__sizeDimension=function(){};
_.B.center=function(){};
_.B.__getNormalizedRect=function(){};
_.B.__getOffscreenArea=function(){};
_.B.__getPosition=function(){};
_.B.notifyResize=function(){};
_.B.assignParentResizable=function(){};
_.B.stopResizeNotificationsFor=function(){};
_.B._subscribeIronResize=function(){};
_.B._unsubscribeIronResize=function(){};
_.B.resizerShouldNotify=function(){};
_.B._onDescendantIronResize=function(){};
_.B._fireResize=function(){};
_.B._onIronRequestResizeNotifications=function(){};
_.B._parentResizableChanged=function(){};
_.B._notifyDescendant=function(){};
_.B._requestResizeNotifications=function(){};
_.B._findParent=function(){};
_.B.toggle=function(){};
_.B.open=function(){};
_.B.close=function(){};
_.B.cancel=function(){};
_.B.invalidateTabbables=function(){};
_.B._ensureSetup=function(){};
_.B._canceledChanged=function(){};
_.B._withBackdropChanged=function(){};
_.B._prepareRenderOpened=function(){};
_.B._finishRenderOpened=function(){};
_.B._finishRenderClosed=function(){};
_.B._preparePositioning=function(){};
_.B._finishPositioning=function(){};
_.B._applyFocus=function(){};
_.B._onCaptureClick=function(){};
_.B._onCaptureFocus=function(){};
_.B._onCaptureEsc=function(){};
_.B._onCaptureTab=function(){};
_.B._onIronResize=function(){};
_.B._onNodesChange=function(){};
_.B.__ensureFirstLastFocusables=function(){};
_.B.__openedChanged=function(){};
_.B.__deraf=function(){};
_.B.__updateScrollObservers=function(){};
_.B.__addScrollListeners=function(){};
_.B.__removeScrollListeners=function(){};
_.B.__isValidScrollAction=function(){};
_.B.__onCaptureScroll=function(){};
_.B.__saveScrollPosition=function(){};
_.B.__restoreScrollPosition=function(){};
_.B._setCanceled=function(){};
Bcr=_.Ne({_template:function(){if(TcI!==void 0)return TcI;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;HzI===void 0&&(HzI=document.createElement("template"));var H=HzI;I.call(l,H.content.cloneNode(!0),V.content.firstChild);return TcI=V},
is:"tp-yt-paper-toast",behaviors:[_.vd],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(){_.tz._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Mh.requestAvailability()},
show:function(V){typeof V=="string"&&(V={text:V});for(var l in V)l.indexOf("_")===0?_.tz._warn('The property "'+l+'" is private and was not set.'):l in this?this[l]=V[l]:_.tz._warn('The property "'+l+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(V){V&&V.target===this&&V.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Ah&&Ah!==this&&Ah.close(),Ah=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Ah===this&&(Ah=null);_.uW._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(V){this.positionTarget=V},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var x6P=new _.f("disablePersonalizationAction");var qRg=new _.f("showDmaConsentFlowCommand");var M3E=new _.f("showMmgNoticeCommand");var U6u=new _.f("saveConsentAction");var nru=function(V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ou(V)};
_.t(nru,_.mV);var $6E=_.EnT(nru);var d6g=new _.f("updateTopbarAvatarAction");var w7g=new _.f("channelHandleValidationResultRenderer");var NcB=new _.f("generateHandleFromNameResultRenderer");var Kah=new _.f("channelHandleInputRenderer");var jDh=new _.f("copyLinkRenderer");var YuE=new _.f("timedCommand");var LaE=new _.f("clearCookieAction");var eS6=new _.f("getMultiPageMenuAction");var k9I=new _.f("addToGuideSectionAction"),FaB=new _.f("removeFromGuideSectionAction");var X7V=new _.f("updateNotificationsUnseenCountAction");var zSh=new _.f("persistSubscriptionsDisplayPreferencesCommand");var y7I=new _.f("resetChannelUnreadCountCommand");var tyh=new _.f("resetSubscriptionsUnreadDotCommand");var r7E=new _.f("selectCountryCommand");var G9P=new _.f("selectLanguageCommand");var lx6=new _.f("sendFeedbackAction");var ErI=new _.f("uploadImageToScottyCommand");var J7E=new _.f("webNativeShareCommand");var org=new _.f("registerPromoCommand");var hSr=new _.f("setPushNotificationsEnabledCommand");var PLg=new _.f("desktopTopbarRenderer");var D6E=new _.f("surveyFollowUpRenderer");var ZzE=new _.f("handlesClaimingRadioOptionRenderer");var SuE=new _.f("hotkeyDialogRenderer");var RSu=new _.f("modifyReportFormCommand");var QDV=new _.f("accountLinkCommand");var c7g=new _.f("accountUnlinkCommand");var WaP=new _.f("logAccountLinkingEventCommand");var bzQ=new _.f("guideCollapsibleEntryRenderer");var qu6=new _.f("guideDownloadsEntryRenderer");var uX=new _.f("guideEntryRenderer");var MyE=new _.f("getLocationCommand");var sDI=new _.f("locationCollectionCommand");var p7h=new _.f("storiesItemViewModel");var A7E=new _.f("addToRemoteQueueAction");var uAQ=new _.f("insertInRemoteQueueAction");var vrV=new _.f("removeFromRemoteQueueAction");var OzI=new _.f("notificationRenderer");var rmB=new _.f("localWatchHistoryCommand");var CLE=new _.f("pdgBuyFlowHeaderRenderer");var amg=new _.f("pdgColorSliderRenderer");var fmE=new _.f("pdgCommentOptionRenderer");var gru=new _.f("pdgCommentPreviewRenderer");var m6P=new _.f("superVodSelectableItemButtonRenderer");var izV=new _.f("switchButtonRenderer");var VAV=new _.f("upsellDialogRenderer");var l5b=new _.f("feedbackQuestionRenderer"),I5h=new _.f("feedbackOptionRenderer");var Hw2=new _.f("sponsorshipsTierRenderer"),TMu=new _.f("sponsorshipsPromotionChannelRenderer");var BMY=new _.f("simpleSurveyMessageRenderer");var l46=new _.f("invokeInstrumentManagerAction");var xCE=new _.f("logYpcFlowDismissCommand");var UCQ=new _.f("logYpcFlowStartCommand");var nQP=new _.f("unlimitedCreateFamilyEndpoint");var $CI=new _.f("iconBadgeRenderer");var zK2=new _.f("collaborativePlaylistVisibilityValidationRule");var dCu=function(V){_.kL.call(this,"channelMessage");this.message=V};
_.t(dCu,_.kL);var wBE=function(V){_.kL.call(this,"channelError");this.error=V};
_.t(wBE,_.kL);var NMb={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",CAST_DIALOG_SIGN_IN:"cds",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",
DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc"},KQh={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},j_b={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
Y5Y={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},LQh={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var vL=function(V){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 _.$Y;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";V&&(this.id=V.id||V.name,this.name=V.name,this.clientName=V.clientName?V.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=V.app,this.type=V.type||"REMOTE_CONTROL",this.username=V.user||"",this.avatar=V.userAvatarUri||"",this.obfuscatedGaiaId=V.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=V.ownerObfuscatedGaiaId||"",this.theme=V.theme||"u",ec6(this,V.capabilities||""),kxE(this,V.compatibleSenderThemes||""),FQ2(this,V.experiments||""),
this.remoteControllerUrl=V.remoteControllerUrl||"",this.localChannelEncryptionKey=V.localChannelEncryptionKey||"",this.deviceContext=V.deviceContext,this.brand=V.brand||"",this.model=V.model||"",this.year=V.year||0,this.os=V.os||"",this.osVersion=V.osVersion||"",this.chipset=V.chipset||"",this.mdxDialServerType=V.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=V.pairingType||"unknown",V=V.deviceInfo)&&(V=JSON.parse(V),this.brand=V.brand||"",this.model=V.model||"",this.year=V.year||
0,this.os=V.os||"",this.osVersion=V.osVersion||"",this.chipset=V.chipset||"",this.clientName=V.clientName?V.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=V.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
vL.prototype.copy=function(){var V={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&&(V.brand=this.brand);
this.model&&(V.model=this.model);this.year&&(V.year=this.year);this.os&&(V.os=this.os);this.osVersion&&(V.osVersion=this.osVersion);this.chipset&&(V.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(V.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(V.mdxDialServerType=this.mdxDialServerType);V=new vL(V);V.connected=this.connected;V.remoteControllerUrl=this.remoteControllerUrl;V.localChannelEncryptionKey=this.localChannelEncryptionKey;V.deviceContext=
this.deviceContext;return V};
vL.prototype.equals=function(V){return V?this.id==V.id:!1};
var ec6=function(V,l){V.capabilities.clear();_.dl(l.split(","),_.kB(_.EL.contains,NMb)).forEach(function(I){V.capabilities.add(I)})},kxE=function(V,l){V.compatibleSenderThemes.clear();
_.dl(l.split(","),_.kB(_.EL.contains,KQh)).forEach(function(I){V.compatibleSenderThemes.add(I)})},FQ2=function(V,l){V.experiments.clear();
l.split(",").forEach(function(I){V.experiments.add(I)})};var XBP=function(V,l){this.action=V;this.params=l||{}};_.Uk(uxu,_.XG);_.B=uxu.prototype;_.B.JSC$17324_onTick_=function(){this.JSC$17322_interval_=Math.min(3E5,this.JSC$17322_interval_*2);this.JSC$17324_listener_();this.nextTickTime_&&this.start()};
_.B.start=function(){var V=this.JSC$17322_interval_+15E3*Math.random(),l=this.delay_;l.isActive()||l.start(V);this.nextTickTime_=Date.now()+V};
_.B.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.B.isActive=function(){return this.delay_.isActive()};
_.B.reset=function(){this.delay_.stop();this.JSC$17322_interval_=5E3};_.Uk(Pp,uYE);_.B=Pp.prototype;_.B.subscribe=function(V,l,I){return this.pubsub_.subscribe(V,l,I)};
_.B.unsubscribe=function(V,l,I){return this.pubsub_.unsubscribe(V,l,I)};
_.B.unsubscribeByKey=function(V){return this.pubsub_.unsubscribeByKey(V)};
_.B.publish=function(V,l){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.B.dispose=function(){this.JSC$17325_disposed_||(this.JSC$17325_disposed_=!0,_.ag(this.pubsub_),this.disconnect(),_.ag(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17325_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.w6({})})};
_.B.isDisposed=function(){return this.JSC$17325_disposed_};
_.B.connect=function(V,l,I){var H=this,T,x,n,w;return _.d(function(N){if(N.nextAddress==1)return _.Lk(N,2),H.useAsyncBrowserChannelHandler_?_.K(N,H.connectPromise_,2):N.jumpTo(2);_.YE(N);if(H.JSC$17325_disposed_||H.JSC$17325_channel_&&H.JSC$17325_channel_.getState()==2)return N.return();H.sCookie_="";H.reconnectTimer_.stop();H.connectionParams_=V||null;H.connectUi_=l||0;T=H.JSC$17325_pathPrefix_+"/test";x=H.JSC$17325_pathPrefix_+"/bind";n=new M5(I?I.firstTestResults:null,I?I.secondTestResults:null,
H.enableAsyncTest_);if(w=H.JSC$17325_channel_)w.handler_=null;n.handler_=H;H.JSC$17325_channel_=n;if(H.useAsyncBrowserChannelHandler_)return H.connectPromise_=zcB(H).then(function(){return yDQ(H,T,x,w,I)}),N.return(H.connectPromise_.then(function(){H.connectPromise_=_.w6()}));
yDQ(H,T,x,w,I);return _.ed(N,0)})};
var yDQ=function(V,l,I,H,T){tAu(V);if(V.JSC$17325_channel_){var x=_.h6("ID_TOKEN"),n=V.JSC$17325_channel_.JSC$17277_extraHeaders_||{};x?n["x-youtube-identity-token"]=x:delete n["x-youtube-identity-token"];V.JSC$17325_channel_.JSC$17277_extraHeaders_=n}rDY(V);H?(H.getState(),V.JSC$17325_channel_.connect(l,I,V.defaultQueryParams_,H.sid_,H.JSC$17277_lastArrayId_)):T?V.JSC$17325_channel_.connect(l,I,V.defaultQueryParams_,T.sessionId,T.arrayId):V.JSC$17325_channel_.connect(l,I,V.defaultQueryParams_)};
Pp.prototype.disconnect=function(V){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.w6())}finally{this.disconnectUi_=V||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),tAu(this),this.JSC$17325_channel_&&(this.JSC$17325_channel_.getState()==3&&bMg(this.JSC$17325_channel_),this.JSC$17325_channel_.disconnect()),this.disconnectUi_=0}};
Pp.prototype.sendMessage=function(V,l){var I=this,H;return _.d(function(T){switch(T.nextAddress){case 1:_.Lk(T,2);if(!I.useAsyncBrowserChannelHandler_){T.jumpTo(2);break}return _.K(T,I.connectPromise_,2);case 2:_.YE(T);if(I.JSC$17325_disposed_)return T.return();H={_sc:V};l&&_.EL.extend(H,l);if(I.reconnectTimer_.isActive()||(I.JSC$17325_channel_?I.JSC$17325_channel_.getState():0)==2){I.JSC$17325_pendingMessages_.push(H);T.jumpTo(6);break}if(!I.isChannelOpened()){T.jumpTo(6);break}_.Lk(T,8);if(!I.useAsyncBrowserChannelHandler_||
GxQ(I,V)){T.jumpTo(8);break}return _.K(T,zcB(I),8);case 8:_.YE(T,0,0,1);I.isChannelOpened()&&(GxQ(I,V)||rDY(I),tAu(I),WGI(I.JSC$17325_channel_,H));_.ed(T,6,1);break;case 6:_.ed(T,0)}})};
var GxQ=function(V,l){return V.enableMdxAuthForConnectionOnly_?!0:V.disableMdxAuthForAdMessages_?Object.values(j_b).includes(l):V.disableMdxAuthForNonPlaybackMessages_?!Object.values(Y5Y).includes(l):V.disableMdxAuthForShortsMessages_?Object.values(LQh).includes(l):!1};
Pp.prototype.JSC$17284_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17325_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)EQB(this);else{var V=this.JSC$17325_pendingMessages_;this.JSC$17325_pendingMessages_=[];var l=V.length;rDY(this);JDb(this,V,l);oQh(this)}else oQh(this)};
var EQB=function(V){var l,I;_.d(function(H){if(H.nextAddress==1)return _.Lk(H,2),_.K(H,zcB(V),2);_.YE(H);l=V.JSC$17325_pendingMessages_;V.JSC$17325_pendingMessages_=[];I=l.length;JDb(V,l,I);oQh(V);return _.ed(H,0)})},JDb=function(V,l,I){for(var H=0;H<I;++H)WGI(V.JSC$17325_channel_,l[H]);
oQh(V)},oQh=function(V){V.publish("handlerOpened");
V.JSC$17325_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.B=Pp.prototype;_.B.JSC$17284_channelError=function(V){var l=V==2&&this.JSC$17325_channel_.JSC$17277_lastStatusCode_==401;V==4||l||this.reconnectTimer_.start();this.publish("handlerError",V,l);l=Object.keys(hHV).find(function(I){return hHV[I]===V});
this.JSC$17325_channelErrorCounter.increment("BROWSER_CHANNEL",l!=null?l:"UNKNOWN")};
_.B.JSC$17284_channelClosed=function(V,l){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(l)for(var I=l.length,H=0;H<I;++H){var T=l[H].map;T&&this.JSC$17325_pendingMessages_.push(T)}this.JSC$17325_channelClosedCounter.increment("BROWSER_CHANNEL");V&&this.pendingMapsOnClosedCounter.JSC$7795_streamzService.JSC$7653_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",V.length);l&&this.undeliveredMapsOnClosedCounter.JSC$7798_streamzService.JSC$7653_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
l.length)};
_.B.JSC$17284_channelSuccess=function(V,l){l!=null&&V!=null&&this.channelMessageSentCounter.increment()};
_.B.JSC$17284_getAdditionalParams=function(){var V={v:2};this.sCookie_&&(V.gsessionid=this.sCookie_);this.connectUi_!=0&&(V.ui=""+this.connectUi_);this.disconnectUi_!=0&&(V.ui=""+this.disconnectUi_);this.connectionParams_&&_.EL.extend(V,this.connectionParams_);return V};
_.B.JSC$17284_channelHandleArray=function(V){V[0]=="S"?this.sCookie_=V[1]:V[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17325_channel_.disconnect()):this.publish("handlerMessage",new XBP(V[0],V[1]));this.JSC$17325_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.B.isChannelOpened=function(){return!!this.JSC$17325_channel_&&this.JSC$17325_channel_.getState()==3};
var tAu=function(V){if(V.JSC$17325_channel_){var l=V.JSC$17325_getXsrfToken_(),I=V.JSC$17325_channel_.JSC$17277_extraHeaders_||{};l?I["x-youtube-lounge-xsrf-token"]=l:delete I["x-youtube-lounge-xsrf-token"];V.JSC$17325_channel_.JSC$17277_extraHeaders_=I}},zcB=function(V){if(V.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.w6();
if(!V.enableCachedUpdateAuthorizationHeader_)return hc2(V);V.updateAuthorizationHeaderPromise_===null&&(V.updateAuthorizationHeaderPromise_=hc2(V));return V.updateAuthorizationHeaderPromise_},hc2=function(V){return _.Jm(V.getAuthorizationHeader_().then(function(l){PSh(V,l)}).thenCatch(function(){}),function(){V.updateAuthorizationHeaderPromise_=null})},PSh=function(V,l){if(V.JSC$17325_channel_){var I=V.JSC$17325_channel_.JSC$17277_extraHeaders_||{};
l&&Object.keys(l).length>0?I=Object.assign({},I,l):delete I.Authorization;V.JSC$17325_channel_.JSC$17277_extraHeaders_=I}},rDY=function(V){V.getAuthorizationHeaderSync_&&!V.useAsyncBrowserChannelHandler_&&PSh(V,V.getAuthorizationHeaderSync_())};
_.B=Pp.prototype;_.B.setLoungeToken=function(V){(this.defaultQueryParams_.loungeIdToken=V)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17325_channel_){var l=this.JSC$17325_channel_.JSC$17277_extraHeaders_||{};V?l["X-YouTube-LoungeId-Token"]=V:delete l["X-YouTube-LoungeId-Token"];this.JSC$17325_channel_.JSC$17277_extraHeaders_=l}};
_.B.getDeviceId=function(){return this.defaultQueryParams_.id};
_.B.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.B.reconnect=function(){var V=this.reconnectTimer_;V.delay_.fire();V.start()};
_.B.safeReconnect_=function(){var V=this.JSC$17325_channel_,l=0;V.JSC$17277_backChannelRequest_&&l++;V.forwardChannelRequest_&&l++;l==0&&this.connect(this.connectionParams_,this.connectUi_)};var Wp=function(V,l){var I=V.basePath;V.supportCors&&(I=V.scheme+"://"+V.domain+V.port+V.basePath);return _.MS(I+l,{})};
DP.prototype.sendRequest=function(V,l,I,H,T,x,n){V={format:x?"RAW":"JSON",method:V,context:this,timeout:5E3,withCredentials:!!n,onSuccess:_.kB(this.JSC$17330_onSuccess_,H,!x),onError:_.kB(this.onError_,T),onTimeout:_.kB(this.JSC$17330_onTimeout_,T)};I&&(V.postParams=I,V.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.xd(l,V)};
DP.prototype.JSC$17330_onSuccess_=function(V,l,I,H){l?V(H):V({text:I.responseText})};
DP.prototype.onError_=function(V,l){V(Error("Dk`"+l.status))};
DP.prototype.JSC$17330_onTimeout_=function(V){V(Error("Ek"))};var S9=function(V,l){return!!l&&(V.id==l||V.uuid==l)},DCE=function(V){return{name:V.name,
screenId:V.id,loungeToken:V.token,dialId:V.uuid,screenIdType:V.idType}},Zw2=function(V){return new ZP(V)},S5h=function(V){return Array.isArray(V)?_.JH(V,Zw2):[]},VaE=function(V){if(!V)return"null";
var l=V.token?".."+V.token.slice(-6):"-",I=V.uuid?".."+V.uuid.slice(-6):"-";return'{name:"'+V.name+'",id:'+V.id.substr(0,6)+"..,token:"+(l+",uuid:"+I+",idType:"+V.idType+"}")},o_E=function(V){return Array.isArray(V)?"["+_.JH(V,VaE).join(",")+"]":"null"};var n_6="",cp=null;var ejP=function(V,l){_.tm.call(this);var I=this;this.handler=V();this.handler.subscribe("handlerOpened",this.JSC$17337_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(H,T){I.onError(T)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=l};
_.t(ejP,_.tm);_.B=ejP.prototype;_.B.connect=function(V,l,I){this.handler.connect(V,l,I)};
_.B.disconnect=function(V){this.handler.disconnect(V)};
_.B.reconnect=function(){this.handler.reconnect()};
_.B.getDeviceId=function(){return this.handler.getDeviceId()};
_.B.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.B.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.B.JSC$17337_onOpened=function(){this.dispatchEvent("channelOpened");var V=this.handler,l=this.currentScreenId;_.wd("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!V.JSC$17325_channel_.useChunked_,sessionId:V.JSC$17325_channel_.sid_,arrayId:V.JSC$17325_channel_.JSC$17277_lastArrayId_});_.wd("yt-remote-session-screen-id",l);V=Ikh();l=Hlu();_.Mq(V,l)||V.push(l);UYE(V);xY2()};
_.B.onClosed=function(){this.dispatchEvent("channelClosed")};
_.B.onMessage=function(V){this.dispatchEvent(new dCu(V))};
_.B.onError=function(V){this.dispatchEvent(new wBE(V?1:0))};
_.B.sendMessage=function(V,l){this.handler.sendMessage(V,l)};
_.B.setLoungeToken=function(V){this.handler.setLoungeToken(V)};
_.B.dispose=function(){this.handler.dispose()};var LSr=function(V,l,I){var H=this;I=I===void 0?function(){return""}:I;
var T=T===void 0?new ISh:T;var x=x===void 0?new _.nA:x;this.pathPrefix=V;this.defaultQueryParams=l;this.getXsrfToken=I;this.JSC$17340_pubsub=x;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new uxu(function(){var n;((n=H.channel)==null?void 0:DXh((new B92(n,n.JSC$17248_channel_)).JSC$17258_channel_.forwardChannelRequestPool_))===0&&H.connect(H.connectionParams,H.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17340_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17340_channelOpenedCounter=new v9h;this.JSC$17340_channelClosedCounter=new Ov6;this.JSC$17340_channelMessageReceivedCounter=new aLV;this.JSC$17340_channelErrorCounter=new fLB};
LSr.prototype.connect=function(V,l){V=V===void 0?{}:V;l=l===void 0?0:l;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=V,this.connectUi=l,RcI(this),(V=_.h6("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=V: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 SI(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,Q_r(this))};
var Q_r=function(V){_.NR(V.channel,"w",function(){V.channelState=3;V.reconnectTimer.reset();V.connectionParams=null;V.connectUi=0;for(var l=_.U(V.nonAckedMessagesOnChannelClosed),I=l.next();!I.done;I=l.next())I=I.value,V.channel&&V.channel.send(I);V.nonAckedMessagesOnChannelClosed=[];V.publish("webChannelOpened");V.JSC$17340_channelOpenedCounter.increment("WEB_CHANNEL")});
_.NR(V.channel,"x",function(){V.channelState=0;V.reconnectTimer.isActive()||V.publish("webChannelClosed");var l,I=(l=V.channel)==null?void 0:xoV(new B92(l,l.JSC$17248_channel_));I&&(V.nonAckedMessagesOnChannelClosed=[].concat(_.oI(I)));V.JSC$17340_channelClosedCounter.increment("WEB_CHANNEL")});
_.NR(V.channel,"z",function(l){var I=l.data;I[0]==="gracefulReconnect"?(V.reconnectTimer.start(),V.channel&&V.channel.close()):V.publish("webChannelMessage",new XBP(I[0],I[1]));V.lastStatusCode=l.statusCode;V.JSC$17340_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.NR(V.channel,"y",function(){V.lastStatusCode===401||V.reconnectTimer.start();V.publish("webChannelError");V.JSC$17340_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.B=LSr.prototype;_.B.disconnect=function(V){this.disconnectUi=V===void 0?0:V;this.reconnectTimer.stop();RcI(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.B.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.B.reconnect=function(){var V=this.reconnectTimer;V.delay_.fire();V.start()};
_.B.sendMessage=function(V,l){this.channel&&(RcI(this),V=Object.assign({},{_sc:V},l),this.channel.send(V))};
_.B.setLoungeToken=function(V){V||this.reconnectTimer.stop();V?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=V:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var RcI=function(V){var l=V.getXsrfToken();l?V.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=l:delete V.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.B=LSr.prototype;_.B.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.B.publish=function(V){return this.JSC$17340_pubsub.publish.apply(this.JSC$17340_pubsub,[V].concat(_.oI(_.Q5.apply(1,arguments))))};
_.B.subscribe=function(V,l,I){return this.JSC$17340_pubsub.subscribe(V,l,I)};
_.B.unsubscribe=function(V,l,I){return this.JSC$17340_pubsub.unsubscribe(V,l,I)};
_.B.unsubscribeByKey=function(V){return this.JSC$17340_pubsub.unsubscribeByKey(V)};
_.B.dispose=function(){this.JSC$17340_disposed||(this.JSC$17340_disposed=!0,_.ag(this.JSC$17340_pubsub),this.disconnect(),_.ag(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.B.isDisposed=function(){return this.JSC$17340_disposed};var YHE=function(V){_.tm.call(this);this.webChannelService=V();this.webChannelService.subscribe("webChannelOpened",this.JSC$17348_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.t(YHE,_.tm);_.B=YHE.prototype;_.B.connect=function(V,l){this.webChannelService.connect(V,l)};
_.B.disconnect=function(V){this.webChannelService.disconnect(V)};
_.B.reconnect=function(){this.webChannelService.reconnect()};
_.B.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.B.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.B.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.B.JSC$17348_onOpened=function(){this.dispatchEvent("channelOpened")};
_.B.onClosed=function(){this.dispatchEvent("channelClosed")};
_.B.onMessage=function(V){this.dispatchEvent(new dCu(V))};
_.B.onError=function(){this.dispatchEvent(new wBE(this.webChannelService.lastStatusCode===401?1:0))};
_.B.sendMessage=function(V,l){this.webChannelService.sendMessage(V,l)};
_.B.setLoungeToken=function(V){this.webChannelService.setLoungeToken(V)};
_.B.dispose=function(){this.webChannelService.dispose()};var JiY=Date.now(),bm=null,Gab=Array(50),sD=-1,E_b=!1;_.Uk(pp,_.gi);pp.prototype.getScreens=function(){return this.screens};
pp.prototype.contains=function(V){return!!lkh(this.screens,V)};
pp.prototype.get=function(V){return V?RF(this.screens,V):null};
var cDP=function(V,l){var I=V.get(l.uuid)||V.get(l.id);if(I)return V=I.name,I.id=l.id||I.id,I.name=l.name,I.token=l.token,I.uuid=l.uuid||I.uuid,I.name!=V;V.screens.push(l);return!0},WQr=function(V,l){var I=V.screens.length!=l.length;
V.screens=_.dl(V.screens,function(x){return!!lkh(l,x)});
for(var H=l.length,T=0;T<H;T++)I=cDP(V,l[T])||I;return I},bwu=function(V,l){var I=V.screens.length;
V.screens=_.dl(V.screens,function(H){return!(H||l?!H!=!l?0:H.id==l.id:1)});
return V.screens.length<I};
pp.prototype.info=function(V){qd(this.JSC$17349_logName_,V)};var q5r=function(V,l,I,H,T){_.gi.call(this);this.JSC$17352_http_=V;this.pairingCode_=l;this.deviceId_=I;this.friendlyName_=H;this.enableShortLivedLoungeToken_=T;this.pollIndex_=0;this.JSC$17352_xhr_=null;this.JSC$17352_timer_=NaN};
_.t(q5r,_.gi);_.B=q5r.prototype;_.B.start=function(){!this.JSC$17352_xhr_&&isNaN(this.JSC$17352_timer_)&&this.poll_()};
_.B.stop=function(){this.JSC$17352_xhr_&&(this.JSC$17352_xhr_.abort(),this.JSC$17352_xhr_=null);isNaN(this.JSC$17352_timer_)||(_.TU(this.JSC$17352_timer_),this.JSC$17352_timer_=NaN)};
_.B.disposeInternal=function(){this.stop();_.gi.prototype.disposeInternal.call(this)};
_.B.poll_=function(){this.JSC$17352_timer_=NaN;this.JSC$17352_xhr_=_.xd(Wp(this.JSC$17352_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.zN)(this.JSC$17354_onSuccess_,this),onError:(0,_.zN)(this.onError_,this),onTimeout:(0,_.zN)(this.JSC$17354_onTimeout_,this)})};
_.B.JSC$17354_onSuccess_=function(V,l){this.JSC$17352_xhr_=null;V=l.screen||{};V.dialId=this.deviceId_;V.name=this.friendlyName_;l=-1;this.enableShortLivedLoungeToken_&&V.shortLivedLoungeToken&&V.shortLivedLoungeToken.value&&V.shortLivedLoungeToken.refreshIntervalMs&&(V.screenIdType="shortLived",V.loungeToken=V.shortLivedLoungeToken.value,l=V.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new ZP(V),l)};
_.B.onError_=function(V){this.JSC$17352_xhr_=null;V.status&&V.status==404?this.pollIndex_>=MAB.length?this.publish("pairingFailed",Error("Fk")):(V=MAB[this.pollIndex_],this.JSC$17352_timer_=_.Iv((0,_.zN)(this.poll_,this),V),this.pollIndex_++):this.publish("pairingFailed",Error("Gk`"+V.status))};
_.B.JSC$17354_onTimeout_=function(){this.JSC$17352_xhr_=null;this.publish("pairingFailed",Error("Hk"))};
var MAB=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Uk(um,pp);_.B=um.prototype;_.B.start=function(){Ag(this)&&this.publish("screenChange");!_.N9("yt-remote-lounge-token-expiration")&&s_h(this);_.TU(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Iv((0,_.zN)(this.start,this),1E4)};
_.B.add=function(V,l){Ag(this);cDP(this,V);pBE(this,!1);this.publish("screenChange");l(V);V.token||s_h(this)};
_.B.remove=function(V,l){var I=Ag(this);bwu(this,V)&&(pBE(this,!1),I=!0);l(V);I&&this.publish("screenChange")};
_.B.updateName=function(V,l,I,H){var T=Ag(this),x=this.get(V.id);x?(x.name!=l&&(x.name=l,pBE(this,!1),T=!0),I(V)):H(Error("Ik"));T&&this.publish("screenChange")};
_.B.disposeInternal=function(){_.TU(this.loungeTokenRefreshTimer_);um.superClass_.disposeInternal.call(this)};
var s_h=function(V){if(V.screens.length){var l=_.JH(V.screens,function(H){return H.id}),I=Wp(V.JSC$17356_http_,"/pairing/get_lounge_token_batch");
V.JSC$17356_http_.sendRequest("POST",I,{screen_ids:l.join(",")},(0,_.zN)(V.handleLoungeTokens_,V),(0,_.zN)(V.handleLoungeTokenError_,V))}};
um.prototype.handleLoungeTokens_=function(V){Ag(this);var l=this.screens.length;V=V&&V.screens||[];for(var I=V.length,H=0;H<I;++H){var T=V[H],x=this.get(T.screenId);x&&(x.token=T.loungeToken,--l)}pBE(this,!l);l&&qd(this.JSC$17349_logName_,"Missed "+l+" lounge tokens.")};
um.prototype.handleLoungeTokenError_=function(V){qd(this.JSC$17349_logName_,"Requesting lounge tokens failed: "+V)};
var Ag=function(V){if(_.z("deprecate_pair_servlet_enabled"))return WQr(V,[]);var l=S5h(dYB());l=_.dl(l,function(I){return!I.uuid});
return WQr(V,l)},pBE=function(V,l){NEg(_.JH(V.screens,DCE));
l&&wAE()};var OW=function(V,l){_.gi.call(this);this.getScreensToCheck_=l;l=(l=_.N9("yt-remote-online-screen-ids")||"")?l.split(","):[];for(var I={},H=this.getScreensToCheck_(),T=H.length,x=0;x<T;++x){var n=H[x].id;I[n]=_.Mq(l,n)}this.screenIdSet_=I;this.JSC$17359_http_=V;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;ADu("Initialized with "+(0,_.PH)(this.screenIdSet_))};
_.t(OW,_.gi);OW.prototype.isOnline=function(V){return!!this.screenIdSet_[V]};
OW.prototype.start=function(){var V=parseInt(_.N9("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.xv()-144E5<V?0:V)?u1g(this):(this.fastCheckEndTime_=_.xv()+3E5,_.wd("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
OW.prototype.isEmpty=function(){return _.EL.isEmpty(this.screenIdSet_)};
OW.prototype.update=function(){ADu("Updating availability on schedule.");var V=this.getScreensToCheck_(),l=_.EL.filter(this.screenIdSet_,function(I,H){return I&&!!RF(V,H)},this);
vQu(this,l)};
var Owg=function(V,l,I){var H=Wp(V.JSC$17359_http_,"/pairing/get_screen_availability");V.JSC$17359_http_.sendRequest("POST",H,{lounge_token:l.token},(0,_.zN)(function(T){T=T.screens||[];for(var x=T.length,n=0;n<x;++n)if(T[n].loungeToken==l.token){I(T[n].status=="online");return}I(!1)},V),(0,_.zN)(function(){I(!1)},V))};
OW.prototype.disposeInternal=function(){_.TU(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.gi.prototype.disposeInternal.call(this)};
var vQu=function(V,l){a:if(_.EL.getCount(l)!=_.EL.getCount(V.screenIdSet_))var I=!1;else{I=_.EL.getKeys(l);for(var H=I.length,T=0;T<H;++T)if(!V.screenIdSet_[I[T]]){I=!1;break a}I=!0}I||(ADu("Updated online screens: "+(0,_.PH)(V.screenIdSet_)),V.screenIdSet_=l,V.publish("screenChange"));CS6(V)},u1g=function(V){isNaN(V.refreshTimer_)||_.TU(V.refreshTimer_);
V.refreshTimer_=_.Iv((0,_.zN)(V.requestScreenAvailability_,V),V.fastCheckEndTime_>0&&V.fastCheckEndTime_<_.xv()?2E4:1E4)};
OW.prototype.requestScreenAvailability_=function(){_.TU(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var V=a5g(this);if(_.EL.getCount(V)){var l=Wp(this.JSC$17359_http_,"/pairing/get_screen_availability"),I={lounge_token:_.EL.getKeys(V).join(",")};this.currentRequest_=this.JSC$17359_http_.sendRequest("POST",l,I,(0,_.zN)(this.onScreenAvailability_,this,V),(0,_.zN)(this.onScreenAvailabilityError_,this))}else vQu(this,{}),u1g(this)};
OW.prototype.onScreenAvailability_=function(V,l){this.currentRequest_=null;var I=_.EL.getKeys(a5g(this));if(_.Ii(I,_.EL.getKeys(V))){l=l.screens||[];I={};for(var H=l.length,T=0;T<H;++T)I[V[l[T].loungeToken]]=l[T].status=="online";vQu(this,I);u1g(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
OW.prototype.onScreenAvailabilityError_=function(V){this.warn_("Screen availability failed: "+V);this.currentRequest_=null;u1g(this)};
var ADu=function(V){qd("OnlineScreenService",V)};
OW.prototype.warn_=function(V){qd("OnlineScreenService",V)};
var a5g=function(V){var l={};_.cO(V.getScreensToCheck_(),function(I){I.token?l[I.token]=I.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return l},CS6=function(V){V=_.EL.getKeys(_.EL.filter(V.screenIdSet_,function(l){return l}));
V.sort(_.ETf);V.length?_.wd("yt-remote-online-screen-ids",V.join(","),60):_.Kb("yt-remote-online-screen-ids")};_.Uk(vp,pp);_.B=vp.prototype;_.B.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.B.add=function(V,l,I){this.localScreenService_.add(V,l,I)};
_.B.remove=function(V,l,I){this.localScreenService_.remove(V,l,I);this.onlineScreenService_.update()};
_.B.updateName=function(V,l,I,H){this.localScreenService_.contains(V)?this.localScreenService_.updateName(V,l,I,H):(V="Updating name of unknown screen: "+V.name,qd(this.JSC$17349_logName_,V),H(Error(V)))};
_.B.getScreens=function(V){return V?this.screens:rog(this.screens,_.dl(this.automaticScreens_,function(l){return!this.contains(l)},this))};
_.B.JSC$17364_getOnlineScreens=function(){return _.dl(this.getScreens(!0),function(V){return this.onlineScreenService_.isOnline(V.id)},this)};
var gQP=function(V,l,I,H,T,x){V.info("getAutomaticScreenByIds "+I+" / "+l);I||(I=V.deviceToScreenId_[l]);var n=V.getScreens(),w=I?RF(n,I):null;I&&(V.disableAutomaticScreenCache_||w)||(w=RF(n,l));if(w){w.uuid=l;var N=Co(V,w);Owg(V.onlineScreenService_,N,function(L){T(L?N:null)})}else I?f5E(V,I,(0,_.zN)(function(L){var e=Co(this,new ZP({name:H,
screenId:I,loungeToken:L,dialId:l||""}));Owg(this.onlineScreenService_,e,function(k){T(k?e:null)})},V),x):T(null)};
vp.prototype.JSC$17364_getScreenByPollingPairingCode=function(V,l,I,H,T,x){var n=this;this.info("getDialScreenByPairingCode "+V+" / "+l);var w=new q5r(this.JSC$17362_http_,V,l,I,H);w.subscribe("pairingComplete",function(N,L){_.ag(w);T(Co(n,N),L)});
w.subscribe("pairingFailed",function(N){_.ag(w);x(N)});
w.start();return(0,_.zN)(w.stop,w)};
var mCE=function(V,l){for(var I=V.screens.length,H=0;H<I;++H)if(V.screens[H].name==l)return V.screens[H];return null};
vp.prototype.JSC$17364_getScreenByPairingCode=function(V,l,I,H){_.xd(Wp(this.JSC$17362_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:V},timeout:5E3,onSuccess:(0,_.zN)(function(T,x){T=new ZP(x.screen||{});if(!T.name||mCE(this,T.name)){a:{x=T.name;for(var n=2,w=l(x,n);mCE(this,w);){n++;if(n>20)break a;w=l(x,n)}x=w}T.name=x}I(Co(this,T))},this),
onError:(0,_.zN)(function(T){H(Error("Jk`"+T.status))},this),
onTimeout:(0,_.zN)(function(){H(Error("Kk"))},this)})};
var iwV=function(V,l,I){Owg(V.onlineScreenService_,l,I)};
vp.prototype.disposeInternal=function(){_.ag(this.localScreenService_);_.ag(this.onlineScreenService_);vp.superClass_.disposeInternal.call(this)};
var f5E=function(V,l,I,H){V.info("requestLoungeToken_ for "+l);var T={postParams:{screen_ids:l},method:"POST",context:V,onSuccess:function(x,n){x=n&&n.screens||[];x[0]&&x[0].screenId==l?I(x[0].loungeToken):H(Error("Lk"))},
onError:function(){H(Error("Mk"))}};
_.xd(Wp(V.JSC$17362_http_,"/pairing/get_lounge_token_batch"),T)},VGE=function(V){V.screens=V.localScreenService_.getScreens();
for(var l=_.EL.transpose(V.deviceToScreenId_),I=V.screens.length,H=0;H<I;++H){var T=V.screens[H];T.uuid=l[T.id]||""}V.info("Updated manual screens: "+o_E(V.screens))};
vp.prototype.handleScreenChange_=function(){VGE(this);this.publish("screenChange");this.onlineScreenService_.update()};
var hjQ=function(V){lWQ(V);V.localScreenService_=new um(V.JSC$17362_http_);V.localScreenService_.subscribe("screenChange",(0,_.zN)(V.handleScreenChange_,V));VGE(V);V.disableAutomaticScreenCache_||(V.automaticScreens_=S5h(_.N9("yt-remote-automatic-screen-cache")||[]));lWQ(V);V.info("Initializing automatic screens: "+o_E(V.automaticScreens_));V.onlineScreenService_=new OW(V.JSC$17362_http_,(0,_.zN)(V.getScreens,V,!0));V.onlineScreenService_.subscribe("screenChange",(0,_.zN)(function(){this.publish("onlineScreenChange")},
V))},Co=function(V,l){var I=V.get(l.id);
I?(I.uuid=l.uuid,l=I):((I=RF(V.automaticScreens_,l.uuid))?(I.id=l.id,I.token=l.token,l=I):V.automaticScreens_.push(l),V.disableAutomaticScreenCache_||IWr(V));lWQ(V);V.deviceToScreenId_[l.uuid]=l.id;_.wd("yt-remote-device-id-map",V.deviceToScreenId_,31536E3);return l},IWr=function(V){V=_.dl(V.automaticScreens_,function(l){return l.idType!="shortLived"});
_.wd("yt-remote-automatic-screen-cache",_.JH(V,DCE))},lWQ=function(V){V.deviceToScreenId_=_.N9("yt-remote-device-id-map")||{}};
vp.prototype.dispose=vp.prototype.dispose;_.Uk(OD,_.gi);var aT=function(V,l){V.screen_=l;V.publish("sessionScreen",V.screen_)},HP2=function(V,l){V.screen_&&(V.screen_.token=l,Co(V.JSC$17366_screenService_,V.screen_));
V.publish("sessionScreen",V.screen_)};
OD.prototype.onSessionStopped=function(V){this.isDisposed()||(V&&(fo(this,""+V),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
OD.prototype.info=function(V){qd(this.JSC$17366_logName_,V)};
var fo=function(V,l){qd(V.JSC$17366_logName_,l)};
OD.prototype.JSC$17368_getCastSession=function(){return null};
OD.prototype.setDisplayStatus=function(V){var l=this.receiver_;V?(l.displayStatus=new chrome.cast.ReceiverDisplayStatus(V,[]),l.displayStatus.showStop=!0):l.displayStatus=null;chrome.cast.setReceiverDisplayStatus(l,(0,_.zN)(function(){this.info("Updated receiver status for "+l.friendlyName+": "+V)},this),(0,_.zN)(function(){fo(this,"Failed to update receiver status for: "+l.friendlyName)},this))};
OD.prototype.disposeInternal=function(){this.setDisplayStatus("");OD.superClass_.disposeInternal.call(this)};var gB=function(V,l,I){OD.call(this,V,l,"CastSession");var H=this;this.config_=I;this.JSC$17371_session_=null;this.JSC$17371_boundSessionUpdate_=(0,_.zN)(this.JSC$17373_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.zN)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Iv(function(){TnE(H,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17371_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17371_isInitLoungeToken_=!1;this.JSC$17371_lastLoungeTokenRefreshError_="unknown"};
_.t(gB,OD);_.B=gB.prototype;
_.B.setCastSession=function(V){if(this.JSC$17371_session_){if(this.JSC$17371_session_==V)return;fo(this,"Overriding cast session with new session object");Bnh(this);this.JSC$17371_isInitLoungeToken_=!1;this.JSC$17371_lastLoungeTokenRefreshError_="unknown";this.JSC$17371_session_.removeUpdateListener(this.JSC$17371_boundSessionUpdate_);this.JSC$17371_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17371_session_=V;this.JSC$17371_session_.addUpdateListener(this.JSC$17371_boundSessionUpdate_);this.JSC$17371_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);xsE(this,"getMdxSessionStatus")};
_.B.launchWithParams=function(V){this.info("launchWithParams no-op for Cast: "+(0,_.PH)(V))};
_.B.stop=function(){if(this.JSC$17371_session_)this.JSC$17371_session_.stop((0,_.zN)(function(){this.onSessionStopped()},this),(0,_.zN)(function(){this.onSessionStopped(Error("Nk"))},this));
else this.onSessionStopped(Error("Ok"))};
_.B.setDisplayStatus=function(){};
_.B.disposeInternal=function(){this.info("disposeInternal");Bnh(this);this.JSC$17371_session_&&(this.JSC$17371_session_.removeUpdateListener(this.JSC$17371_boundSessionUpdate_),this.JSC$17371_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17371_session_=null;OD.prototype.disposeInternal.call(this)};
var n3h=function(V,l){_.TU(V.getLoungeTokenTimeoutKey_);V.getLoungeTokenTimeoutKey_=0;l==0?UsV(V):V.getLoungeTokenTimeoutKey_=_.Iv(function(){UsV(V)},l)},UsV=function(V){xsE(V,"getLoungeToken");
_.TU(V.onLoungeTokenTimeoutKey_);V.onLoungeTokenTimeoutKey_=_.Iv(function(){$su(V,null)},3E4)},xsE=function(V,l){V.info("sendYoutubeMessage_: "+l+" "+(0,_.PH)(void 0));
var I={};I.type=l;V.JSC$17371_session_?V.JSC$17371_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",I,function(){},(0,_.zN)(function(){fo(this,"Failed to send message: "+l+".")},V)):fo(V,"Sending yt message without session: "+(0,_.PH)(I))};
gB.prototype.onYoutubeMessage_=function(V,l){if(!this.isDisposed())if(l)if(l=(0,_.tO)(l),_.m3(l))switch(V=""+l.type,l=l.data||{},this.info("onYoutubeMessage_: "+V+" "+(0,_.PH)(l)),V){case "mdxSessionStatus":TnE(this,l);break;case "loungeToken":$su(this,l);break;default:fo(this,"Unknown youtube message: "+V)}else fo(this,"Unable to parse message.");else fo(this,"No data in message.")};
var ds6=function(V,l){if(l)V.info("onConnectedScreenId_: Received screenId: "+l),V.screen_&&V.screen_.id==l||V.getScreen_(l,function(I){aT(V,I)},function(){return V.onSessionStopped()},5);
else V.onSessionStopped(Error("Pk"))},NnI=function(V,l,I){V.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(l));
var H=new ZP(l);w2h(V,H,function(T){T?(V.JSC$17371_isInitLoungeToken_=!0,Co(V.JSC$17366_screenService_,H),aT(V,H),V.JSC$17371_lastLoungeTokenRefreshError_="unknown",n3h(V,I)):(_.Dp(Error("Qk`"+JSON.stringify(l))),V.onSessionStopped())},5)},TnE=function(V,l){_.TU(V.sessionStatusTimeoutKey_);
V.sessionStatusTimeoutKey_=0;if(l)V.config_.enableCastLoungeToken&&l.loungeToken?l.deviceId?V.screen_&&V.screen_.uuid==l.deviceId||(l.loungeTokenRefreshIntervalMs?NnI(V,{name:V.receiver_.friendlyName,screenId:l.screenId,loungeToken:l.loungeToken,dialId:l.deviceId,screenIdType:"shortLived"},l.loungeTokenRefreshIntervalMs):(_.Dp(Error("Sk`"+JSON.stringify(l))),ds6(V,l.screenId))):(_.Dp(Error("Rk`"+JSON.stringify(l))),ds6(V,l.screenId)):ds6(V,l.screenId);else V.onSessionStopped(Error("Pk"))},$su=function(V,
l){_.TU(V.onLoungeTokenTimeoutKey_);
V.onLoungeTokenTimeoutKey_=0;var I=null;if(l)if(l.loungeToken){var H;((H=V.screen_)==null?void 0:H.token)==l.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";else I="noLoungeTokenResponse";I?(V.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(l)+", error: "+I)),V.JSC$17371_lastLoungeTokenRefreshError_=I,n3h(V,3E4)):(HP2(V,l.loungeToken),V.JSC$17371_isInitLoungeToken_=!1,V.JSC$17371_lastLoungeTokenRefreshError_="unknown",n3h(V,l.loungeTokenRefreshIntervalMs))};
gB.prototype.getScreen_=function(V,l,I,H){_.TU(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;gQP(this.JSC$17366_screenService_,this.receiver_.label,V,this.receiver_.friendlyName,(0,_.zN)(function(T){T?l(T):H>=0?(fo(this,"Screen "+V+" appears to be offline. "+H+" retries left."),this.getScreenTimeoutKey_=_.Iv((0,_.zN)(this.getScreen_,this,V,l,I,H-1),300)):I(Error("Tk"))},this),I)};
var w2h=function(V,l,I,H){_.TU(V.JSC$17371_checkScreenAvailabilityTimeoutKey_);V.JSC$17371_checkScreenAvailabilityTimeoutKey_=0;iwV(V.JSC$17366_screenService_,l,function(T){T||H<0?I(T):V.JSC$17371_checkScreenAvailabilityTimeoutKey_=_.Iv(function(){w2h(V,l,I,H-1)},300)})};
gB.prototype.JSC$17368_getCastSession=function(){return this.JSC$17371_session_};
gB.prototype.JSC$17373_onSessionUpdate_=function(V){this.isDisposed()||V||(fo(this,"Cast session died."),this.onSessionStopped())};
var Bnh=function(V){_.TU(V.getScreenTimeoutKey_);V.getScreenTimeoutKey_=0;_.TU(V.JSC$17371_checkScreenAvailabilityTimeoutKey_);V.JSC$17371_checkScreenAvailabilityTimeoutKey_=0;_.TU(V.sessionStatusTimeoutKey_);V.sessionStatusTimeoutKey_=0;_.TU(V.onLoungeTokenTimeoutKey_);V.onLoungeTokenTimeoutKey_=0;_.TU(V.getLoungeTokenTimeoutKey_);V.getLoungeTokenTimeoutKey_=0};var mg=function(V,l,I,H){OD.call(this,V,l,"DialSession");this.config_=H;this.JSC$17375_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17375_theme_=I;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17375_deferredLaunchDeadlineTimer_=NaN;this.JSC$17375_boundSessionUpdate_=(0,_.zN)(this.JSC$17377_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17375_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17375_isInitLoungeToken_=!1;this.JSC$17375_lastLoungeTokenRefreshError_="unknown"};
_.t(mg,OD);mg.prototype.setCastSession=function(V){this.JSC$17375_session_=V;this.JSC$17375_session_.addUpdateListener(this.JSC$17375_boundSessionUpdate_)};
mg.prototype.launchWithParams=function(V){this.connectData_=V;this.deferredLaunch_()};
mg.prototype.stop=function(){KnQ(this);if(this.JSC$17375_session_)this.JSC$17375_session_.stop((0,_.zN)(this.onSessionStopped,this,null),(0,_.zN)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
mg.prototype.disposeInternal=function(){KnQ(this);this.JSC$17375_session_&&this.JSC$17375_session_.removeUpdateListener(this.JSC$17375_boundSessionUpdate_);this.JSC$17375_session_=null;OD.prototype.disposeInternal.call(this)};
var j5E=function(V){var l;return!!(V.config_.enableDialLoungeToken&&((l=V.JSC$17375_session_)==null?0:l.getDialAppInfo))},Y6h=function(V){V.cancelPolling_=V.JSC$17366_screenService_.JSC$17364_getScreenByPollingPairingCode(V.reversePairingCode_,V.receiver_.label,V.receiver_.friendlyName,j5E(V),function(l,I){V.cancelPolling_=function(){};
V.JSC$17375_isInitLoungeToken_=!0;aT(V,l);l.idType=="shortLived"&&I>0&&iX(V,I)},function(l){V.cancelPolling_=function(){};
V.onSessionStopped(l)})};
mg.prototype.JSC$17377_onSessionUpdate_=function(V){this.isDisposed()||V||(fo(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var LnE=function(V){var l={};l.pairingCode=V.reversePairingCode_;l.theme=V.JSC$17375_theme_;jKr()&&(l.env_useStageMdx=1);return _.U_(l)},eab=function(V){return new Promise(function(l){V.reversePairingCode_=ivr();
if(V.connectData_){var I=new chrome.cast.DialLaunchResponse(!0,LnE(V));l(I);Y6h(V)}else V.deferredLaunch_=function(){_.TU(V.JSC$17375_deferredLaunchDeadlineTimer_);V.deferredLaunch_=function(){};
V.JSC$17375_deferredLaunchDeadlineTimer_=NaN;var H=new chrome.cast.DialLaunchResponse(!0,LnE(V));l(H);Y6h(V)},V.JSC$17375_deferredLaunchDeadlineTimer_=_.Iv(function(){V.deferredLaunch_()},100)})},FnY=function(V,l,I){V.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(l));
var H=new ZP(l);return(new Promise(function(T){kMB(V,H,function(x){x?(V.JSC$17375_isInitLoungeToken_=!0,Co(V.JSC$17366_screenService_,H),aT(V,H),iX(V,I)):_.Dp(Error("Vk`"+JSON.stringify(l)));T(x)},5)})).then(function(T){return T?new chrome.cast.DialLaunchResponse(!1):eab(V)})},X2g=function(V,l){var I=V.launchData_.receiver.label,H=V.receiver_.friendlyName;
return(new Promise(function(T){gQP(V.JSC$17366_screenService_,I,l,H,function(x){x&&x.token&&aT(V,x);T(x)},function(x){fo(V,"Failed to get DIAL screen: "+x);
T(null)})})).then(function(T){return T&&T.token?new chrome.cast.DialLaunchResponse(!1):eab(V)})},kMB=function(V,l,I,H){_.TU(V.JSC$17375_checkScreenAvailabilityTimeoutKey_);
V.JSC$17375_checkScreenAvailabilityTimeoutKey_=0;iwV(V.JSC$17366_screenService_,l,function(T){T||H<0?I(T):V.JSC$17375_checkScreenAvailabilityTimeoutKey_=_.Iv(function(){kMB(V,l,I,H-1)},300)})},iX=function(V,l){V.info("getDialAppInfoWithTimeout_ "+l);
j5E(V)&&(_.TU(V.getDialAppInfoTimeoutKey_),V.getDialAppInfoTimeoutKey_=0,l==0?zaI(V):V.getDialAppInfoTimeoutKey_=_.Iv(function(){zaI(V)},l))},zaI=function(V){j5E(V)&&V.JSC$17375_session_.getDialAppInfo(function(l){V.info("getDialAppInfo dialLaunchData: "+JSON.stringify(l));
l=l.extraData||{};var I=null;if(l.loungeToken){var H;((H=V.screen_)==null?void 0:H.token)==l.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";I?(V.JSC$17375_lastLoungeTokenRefreshError_=I,iX(V,3E4)):(V.JSC$17375_isInitLoungeToken_=!1,V.JSC$17375_lastLoungeTokenRefreshError_="unknown",HP2(V,l.loungeToken),iX(V,l.loungeTokenRefreshIntervalMs))},function(l){V.info("getDialAppInfo error: "+l);
V.JSC$17375_lastLoungeTokenRefreshError_="noLoungeTokenResponse";iX(V,3E4)})},KnQ=function(V){_.TU(V.JSC$17375_checkScreenAvailabilityTimeoutKey_);
V.JSC$17375_checkScreenAvailabilityTimeoutKey_=0;_.TU(V.getDialAppInfoTimeoutKey_);V.getDialAppInfoTimeoutKey_=0;V.cancelPolling_();V.cancelPolling_=function(){};
_.TU(V.JSC$17375_deferredLaunchDeadlineTimer_)};var Vd=function(V,l){OD.call(this,V,l,"ManualSession");this.JSC$17379_deferredLaunchDeadlineTimer_=_.Iv((0,_.zN)(this.launchWithParams,this,null),150)};
_.t(Vd,OD);Vd.prototype.stop=function(){this.onSessionStopped()};
Vd.prototype.setCastSession=function(){};
Vd.prototype.launchWithParams=function(){_.TU(this.JSC$17379_deferredLaunchDeadlineTimer_);this.JSC$17379_deferredLaunchDeadlineTimer_=NaN;var V=RF(this.JSC$17366_screenService_.getScreens(),this.receiver_.label);if(V)aT(this,V);else this.onSessionStopped(Error("Wk"))};
Vd.prototype.disposeInternal=function(){_.TU(this.JSC$17379_deferredLaunchDeadlineTimer_);this.JSC$17379_deferredLaunchDeadlineTimer_=NaN;OD.prototype.disposeInternal.call(this)};var gK=function(V,l){_.gi.call(this);this.config_=l;this.JSC$17382_screenService_=V;this.JSC$17382_appId_=l.appId||"233637DE";this.JSC$17382_theme_=l.theme||"cl";this.disableDial_=l.disableCastApi||!1;this.forceMirroring_=l.forceMirroring||!1;this.JSC$17382_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.zN)(this.onReceiverAction_,this)};
_.t(gK,_.gi);
gK.prototype.init=function(V,l){chrome.cast.timeout.requestSession=3E4;var I=new chrome.cast.SessionRequest(this.JSC$17382_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.z("desktop_enable_cast_connect")&&(I.androidReceiverCompatible=!0);this.disableDial_||(I.dialRequest=new chrome.cast.DialRequest("YouTube"));var H=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;V=V||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var T=(0,_.zN)(this.onReceiverUpdated_,
this);I=new chrome.cast.ApiConfig(I,(0,_.zN)(this.onSessionEstablished_,this),T,H,V);I.customDialLaunchCallback=(0,_.zN)(this.onDialLaunchRequested_,this);chrome.cast.initialize(I,(0,_.zN)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),yiQ(),this.JSC$17382_screenService_.subscribe("onlineScreenChange",(0,_.zN)(this.JSC$17384_onScreenChange_,this)),this.customReceivers_=yxE(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.zN)(function(x){this.warn_("Failed to set initial custom receivers: "+(0,_.PH)(x))},this)),this.publish("yt-remote-cast2-availability-change",la(this)),l(!0))},this),(0,_.zN)(function(x){this.warn_("Failed to initialize API: "+(0,_.PH)(x));
l(!1)},this))};
gK.prototype.setConnectedScreenStatus=function(V,l){Ic("Setting connected screen ID: "+V+" -> "+l);if(this.JSC$17382_session_){var I=this.JSC$17382_session_.screen_;if(!V||I&&I.id!=V)Ic("Unsetting old screen status: "+this.JSC$17382_session_.receiver_.friendlyName),HD(this,null)}if(V&&l){if(!this.JSC$17382_session_){V=RF(this.JSC$17382_screenService_.getScreens(),V);if(!V){Ic("setConnectedScreenStatus: Unknown screen.");return}if(V.idType=="shortLived"){Ic("setConnectedScreenStatus: Screen with id type to be short lived.");
return}I=tGQ(this,V);I||(Ic("setConnectedScreenStatus: Connected receiver not custom..."),I=new chrome.cast.Receiver(V.uuid?V.uuid:V.id,V.name),I.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(I),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.zN)(function(H){this.warn_("Failed to set initial custom receivers: "+(0,_.PH)(H))},this)));
Ic("setConnectedScreenStatus: new active receiver: "+I.friendlyName);HD(this,new Vd(this.JSC$17382_screenService_,I),!0)}this.JSC$17382_session_.setDisplayStatus(l)}else Ic("setConnectedScreenStatus: no screen.")};
var tGQ=function(V,l){return l?_.cy(V.customReceivers_,function(I){return S9(l,I.label)},V):null};
gK.prototype.setLaunchParams=function(V){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17382_session_?this.JSC$17382_session_.launchWithParams(V):this.warn_("Setting connection data without a session")};
gK.prototype.JSC$17384_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17382_session_?(this.JSC$17382_session_.stop(),HD(this,null)):Ic("Stopping non-existing session")};
gK.prototype.requestSession=function(){chrome.cast.requestSession((0,_.zN)(this.onSessionEstablished_,this),(0,_.zN)(this.onSessionRequestFailed_,this))};
gK.prototype.disposeInternal=function(){this.JSC$17382_screenService_.unsubscribe("onlineScreenChange",(0,_.zN)(this.JSC$17384_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.A1(_.SN("yt.mdx.remote.debug.handlers_")||[],FSh);_.ag(this.JSC$17382_session_);_.gi.prototype.disposeInternal.call(this)};
var Ic=function(V){qd("Controller",V)};
gK.prototype.warn_=function(V){qd("Controller",V)};
var FSh=function(V){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(V)},la=function(V){return V.hasCastReceiver_||!!V.customReceivers_.length||!!V.JSC$17382_session_},HD=function(V,l,I){l!=V.JSC$17382_session_&&(_.ag(V.JSC$17382_session_),(V.JSC$17382_session_=l)?(I?V.publish("yt-remote-cast2-receiver-resumed",l.receiver_):V.publish("yt-remote-cast2-receiver-selected",l.receiver_),l.subscribe("sessionScreen",(0,_.zN)(V.onSessionScreen_,V,l)),l.subscribe("sessionFailed",
function(){return rxh(V,l)}),l.screen_?V.publish("yt-remote-cast2-session-change",l.screen_):I&&V.JSC$17382_session_.launchWithParams(null)):V.publish("yt-remote-cast2-session-change",null))},rxh=function(V,l){V.JSC$17382_session_==l&&V.publish("yt-remote-cast2-session-failed")};
_.B=gK.prototype;_.B.onSessionScreen_=function(V,l){this.JSC$17382_session_==V&&(l||HD(this,null),this.publish("yt-remote-cast2-session-change",l))};
_.B.onReceiverAction_=function(V,l){if(!this.isDisposed())if(V)switch(V.friendlyName=chrome.cast.unescape(V.friendlyName),Ic("onReceiverAction_ "+V.label+" / "+V.friendlyName+"-- "+l),l){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17382_session_)if(this.JSC$17382_session_.receiver_.label!=V.label)Ic("onReceiverAction_: Stopping active receiver: "+this.JSC$17382_session_.receiver_.friendlyName),this.JSC$17382_session_.stop();else{Ic("onReceiverAction_: Casting to active receiver.");this.JSC$17382_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17382_session_.screen_);break}switch(V.receiverType){case chrome.cast.ReceiverType.CUSTOM:HD(this,new Vd(this.JSC$17382_screenService_,V));break;case chrome.cast.ReceiverType.DIAL:HD(this,new mg(this.JSC$17382_screenService_,V,this.JSC$17382_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:HD(this,new gB(this.JSC$17382_screenService_,V,this.config_));break;default:this.warn_("Unknown receiver type: "+V.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17382_session_&&
this.JSC$17382_session_.receiver_.label==V.label?this.JSC$17382_session_.stop():this.warn_("Stopping receiver w/o session: "+V.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.B.onDialLaunchRequested_=function(V){if(this.isDisposed())return Promise.reject(Error("Xk"));var l=V.receiver;l.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+l.friendlyName),l.receiverType=chrome.cast.ReceiverType.DIAL);var I=this.JSC$17382_session_?this.JSC$17382_session_.receiver_:null;if(!I||I.label!=l.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+l.friendlyName),Promise.reject(Error("Yk"));if(I&&I.label==l.label&&I.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17382_session_.screen_)return Ic("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17382_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+I.receiverType+'" to "dial" for '+l.friendlyName);HD(this,new mg(this.JSC$17382_screenService_,l,this.JSC$17382_theme_,this.config_))}l=this.JSC$17382_session_;l.launchData_=V;l.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(V=l.launchData_.extraData||{},I=V.screenId||null,j5E(l)&&V.loungeToken?V.loungeTokenRefreshIntervalMs?V=FnY(l,{name:l.receiver_.friendlyName,screenId:V.screenId,loungeToken:V.loungeToken,dialId:l.launchData_.receiver.label,screenIdType:"shortLived"},V.loungeTokenRefreshIntervalMs):(_.Dp(Error("Uk`"+JSON.stringify(V))),V=X2g(l,I)):V=X2g(l,I)):V=eab(l);return V};
_.B.onSessionEstablished_=function(V){var l=this;if(!this.isDisposed()&&!this.forceMirroring_){Ic("New cast session ID: "+V.sessionId);var I=V.receiver;if(I.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17382_session_)if(I.receiverType==chrome.cast.ReceiverType.CAST)Ic("Got resumed cast session before resumed mdx connection."),I.friendlyName=chrome.cast.unescape(I.friendlyName),HD(this,new gB(this.JSC$17382_screenService_,I,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var H=this.JSC$17382_session_.receiver_,T=RF(this.JSC$17382_screenService_.getScreens(),H.label);T&&S9(T,I.label)&&H.receiverType!=chrome.cast.ReceiverType.CAST&&I.receiverType==chrome.cast.ReceiverType.CAST&&(Ic("onSessionEstablished_: manual to cast session change "+I.friendlyName),_.ag(this.JSC$17382_session_),this.JSC$17382_session_=new gB(this.JSC$17382_screenService_,I,this.config_),this.JSC$17382_session_.subscribe("sessionScreen",(0,_.zN)(this.onSessionScreen_,this,this.JSC$17382_session_)),
this.JSC$17382_session_.subscribe("sessionFailed",function(){return rxh(l,l.JSC$17382_session_)}),this.JSC$17382_session_.launchWithParams(null));
this.JSC$17382_session_.setCastSession(V)}}};
_.B.JSC$17384_getCastSession=function(){return this.JSC$17382_session_?this.JSC$17382_session_.JSC$17368_getCastSession():null};
_.B.onSessionRequestFailed_=function(V){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.PH)(V)),V.code!=chrome.cast.ErrorCode.CANCEL&&HD(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.B.onReceiverUpdated_=function(V){Ic("Receiver availability updated: "+V);if(!this.isDisposed()){var l=la(this);this.hasCastReceiver_=V==chrome.cast.ReceiverAvailability.AVAILABLE;la(this)!=l&&this.publish("yt-remote-cast2-availability-change",la(this))}};
var yxE=function(V){var l=V.JSC$17382_screenService_.JSC$17364_getOnlineScreens(),I=V.JSC$17382_session_&&V.JSC$17382_session_.receiver_;V=_.JH(l,function(H){I&&S9(H,I.label)&&(I=null);var T=H.uuid?H.uuid:H.id,x=tGQ(this,H);x?(x.label=T,x.friendlyName=H.name):(x=new chrome.cast.Receiver(T,H.name),x.receiverType=chrome.cast.ReceiverType.CUSTOM);return x},V);
I&&(I.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(I=new chrome.cast.Receiver(I.label,I.friendlyName),I.receiverType=chrome.cast.ReceiverType.CUSTOM),V.push(I));return V};
gK.prototype.JSC$17384_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=yxE(this),Ic("Updating custom receivers: "+(0,_.PH)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.zN)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",la(this)))};
gK.prototype.setLaunchParams=gK.prototype.setLaunchParams;gK.prototype.setConnectedScreenStatus=gK.prototype.setConnectedScreenStatus;gK.prototype.stopSession=gK.prototype.JSC$17384_stopSession;gK.prototype.getCastSession=gK.prototype.JSC$17384_getCastSession;gK.prototype.requestSession=gK.prototype.requestSession;gK.prototype.init=gK.prototype.init;gK.prototype.dispose=gK.prototype.dispose;var OlB=[];var GMQ=function(V){V.audioTrackId=null;V.trackData=null;V.playerState=-1;V.hasPrevious=!1;V.hasNext=!1;V.playerTime_=0;V.playerTimeAt_=_.xv();V.seekableStart_=0;V.seekableEnd_=0;V.duration_=0;V.loadedTime=0;V.liveIngestionTime_=NaN;V.isLive_=!1};
_.B=me.prototype;
_.B.reset=function(V){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;V&&(this.index=V.index,this.listId=V.listId,this.videoId=V.videoId,this.playerState=V.playerState,this.volume=V.volume,this.muted=V.muted,this.audioTrackId=V.audioTrackId,this.trackData=V.trackData,this.hasPrevious=V.hasPrevious,this.hasNext=V.hasNext,this.playerTime_=V.playerTime,this.playerTimeAt_=V.playerTimeAt,this.seekableStart_=V.seekableStart,this.seekableEnd_=V.seekableEnd,this.duration_=V.duration,this.loadedTime=
V.loadedTime,this.liveIngestionTime_=V.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.B.stopPlayer=function(){this.index=-1;this.videoId="";GMQ(this)};
_.B.isPlaying=function(){return this.playerState==1};
_.B.isBuffering=function(){return this.playerState==3};
_.B.isAdPlaying=function(){return this.playerState==1081};
var Tz=function(V,l){V.playerTime_=l;V.playerTimeAt_=_.xv()},E3Q=function(V){switch(V.playerState){case 1:case 1081:return(_.xv()-V.playerTimeAt_)/1E3+V.playerTime_;
case -1E3:return 0}return V.playerTime_};
me.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.xv()-this.playerTimeAt_)/1E3:0):this.duration_};
var Jx2=function(V,l,I){var H=V.videoId;V.videoId=l;V.index=I;l!=H&&GMQ(V)},o32=function(V){var l={};
l.index=V.index;l.listId=V.listId;l.videoId=V.videoId;l.playerState=V.playerState;l.volume=V.volume;l.muted=V.muted;l.audioTrackId=V.audioTrackId;l.trackData=_.EL.unsafeClone(V.trackData);l.hasPrevious=V.hasPrevious;l.hasNext=V.hasNext;l.playerTime=V.playerTime_;l.playerTimeAt=V.playerTimeAt_;l.seekableStart=V.seekableStart_;l.seekableEnd=V.seekableEnd_;l.duration=V.duration_;l.loadedTime=V.loadedTime;l.liveIngestionTime=V.liveIngestionTime_;return l};
me.prototype.clone=function(){return new me(o32(this))};var BD=function(V,l){_.gi.call(this);var I=this;this.state_=0;this.connection_=V;this.contextSubscriptions_=[];this.actionQueue_=new AyY;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.zN)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.zN)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.zN)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.zN)(this.onCloudviewAvailabilityChange_,this);var H=0;V?(H=V.getProxyState(),
H!=3&&(V.subscribe("proxyStateChange",this.setState_,this),haP(this))):H=3;H!=0&&(l?this.setState_(H):_.Iv(function(){I.setState_(H)},0));
(V=g_E())&&P6V(this,V);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.t(BD,_.gi);BD.prototype.getState=function(){return this.state_};
BD.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
BD.prototype.reconnect=function(){this.connection_.reconnect()};
var xa=function(V){return new me(V.connection_.getPlayerContextData())};
_.B=BD.prototype;_.B.play=function(){Uy(this)?(this.castMedia_?this.castMedia_.play(null,_.XX,Ds6(this,"play")):nL(this,"play"),ZP6(this,1,E3Q(xa(this))),this.publish("remotePlayerChange")):$a(this,this.play)};
_.B.pause=function(){Uy(this)?(this.castMedia_?this.castMedia_.pause(null,_.XX,Ds6(this,"pause")):nL(this,"pause"),ZP6(this,2,E3Q(xa(this))),this.publish("remotePlayerChange")):$a(this,this.pause)};
_.B.seekTo=function(V){if(Uy(this)){if(this.castMedia_){var l=xa(this),I=new chrome.cast.media.SeekRequest;I.currentTime=V;l.isPlaying()||l.isBuffering()?I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(I,_.XX,Ds6(this,"seekTo",{newTime:V}))}else nL(this,"seekTo",{newTime:V});ZP6(this,3,V);this.publish("remotePlayerChange")}else $a(this,_.kB(this.seekTo,V))};
_.B.stop=function(){if(Uy(this)){this.castMedia_?this.castMedia_.stop(null,_.XX,Ds6(this,"stopVideo")):nL(this,"stopVideo");var V=xa(this);V.stopPlayer();dr(this,V);this.publish("remotePlayerChange")}else $a(this,this.stop)};
_.B.setVolume=function(V,l){if(Uy(this)){var I=xa(this);if(this.castSession_){if(I.volume!=V){var H=Math.round(V)/100;this.castSession_.setReceiverVolumeLevel(H,(0,_.zN)(function(){Md("set receiver volume: "+H)},this),(0,_.zN)(function(){this.warn_("failed to set receiver volume.")},this))}I.muted!=l&&this.castSession_.setReceiverMuted(l,(0,_.zN)(function(){Md("set receiver muted: "+l)},this),(0,_.zN)(function(){this.warn_("failed to set receiver muted.")},this))}else{var T={volume:V,
muted:l};I.volume!=-1&&(T.delta=V-I.volume);nL(this,"setVolume",T)}I.muted=l;I.volume=V;dr(this,I)}else $a(this,_.kB(this.setVolume,V,l))};
_.B.setAudioTrack=function(V,l){Uy(this)?(l=l.getLanguageInfo().getId(),nL(this,"setAudioTrack",{videoId:V,audioTrackId:l}),V=xa(this),V.audioTrackId=l,dr(this,V)):$a(this,_.kB(this.setAudioTrack,V,l))};
_.B.addVideo=function(V){Uy(this)?nL(this,"addVideo",{videoId:V}):$a(this,_.kB(this.addVideo,V))};
_.B.addPlaylist=function(V){Uy(this)?nL(this,"addVideos",{listId:V}):$a(this,_.kB(this.addPlaylist,V))};
_.B.addVideos=function(V){V.length==0?this.warn_("Ignore add videos request due to empty list"):Uy(this)?nL(this,"addVideos",{videoIds:V.join(",")}):$a(this,_.kB(this.addVideos,V))};
_.B.JSC$17394_removeVideo=function(V){Uy(this)?nL(this,"removeVideo",{videoId:V}):$a(this,_.kB(this.JSC$17394_removeVideo,V))};
_.B.JSC$17394_insertVideo=function(V){Uy(this)?nL(this,"insertVideo",{videoId:V}):$a(this,_.kB(this.JSC$17394_insertVideo,V))};
_.B.playVideo=function(V,l,I,H,T,x,n){H=H===void 0?null:H;T=T===void 0?null:T;x=x===void 0?null:x;n=n===void 0?null:n;var w=xa(this),N={videoId:V};I!==void 0&&(N.currentIndex=I);Jx2(w,V,I||0);l!==void 0&&(Tz(w,l),N.currentTime=l);H&&(N.listId=H);T&&(N.playerParams=T);x&&(N.clickTrackingParams=x);n&&(N.locationInfo=(0,_.PH)(n));nL(this,"setPlaylist",N);H||dr(this,w)};
_.B.nextVideo=function(V,l){if(Uy(this)){if(V&&l){var I=xa(this);Jx2(I,V,l);dr(this,I)}nL(this,"next")}else $a(this,_.kB(this.nextVideo,V,l))};
_.B.clearPlaylist=function(){if(Uy(this)){nL(this,"clearPlaylist");var V=xa(this);V.reset();dr(this,V);this.publish("remotePlayerChange")}else $a(this,this.clearPlaylist)};
_.B.dispose=function(){if(this.state_!=3){var V=this.state_;this.state_=3;this.publish("proxyStateChange",V,this.state_)}_.gi.prototype.dispose.call(this)};
_.B.disposeInternal=function(){S6b(this);this.connection_=null;this.actionQueue_.clear();P6V(this,null);_.gi.prototype.disposeInternal.call(this)};
var haP=function(V){_.cO("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(l){this.contextSubscriptions_.push(this.connection_.subscribe(l,_.kB(this.onProxyEvent_,l),this))},V)},S6b=function(V){_.cO(V.contextSubscriptions_,function(l){this.connection_.unsubscribeByKey(l)},V);
V.contextSubscriptions_.length=0},Uy=function(V){return V.getState()==1},$a=function(V,l){V.actionQueue_.getCount()<50&&V.actionQueue_.enqueue(l)},ZP6=function(V,l,I){var H=xa(V);
Tz(H,I);H.playerState!=-1E3&&(H.playerState=l);dr(V,H)},nL=function(V,l,I){V.connection_.sendMessage(l,I)},dr=function(V,l){S6b(V);
V.connection_.setPlayerContextData(o32(l));haP(V)};
BD.prototype.setState_=function(V){if((V!=this.state_||V==2)&&this.state_!=3&&V!=0){var l=this.state_;this.state_=V;this.publish("proxyStateChange",l,V);if(V==1)for(;!this.actionQueue_.isEmpty();)V=this.actionQueue_,vkP(V),V.front_.pop().apply(this);else V==3&&this.dispose()}};
BD.prototype.onProxyEvent_=function(V,l){this.publish(V,l)};
var P6V=function(V,l){V.castSession_&&(V.castSession_.removeUpdateListener(V.boundCastStatusListener_),V.castSession_.removeMediaListener(V.boundCastMediaListener_),V.onCastMediaChange_(null));V.castSession_=l;if(V.castSession_&&(Md("Setting cast session: "+V.castSession_.sessionId),V.castSession_.addUpdateListener(V.boundCastStatusListener_),V.castSession_.addMediaListener(V.boundCastMediaListener_),V.castSession_.media.length))V.onCastMediaChange_(V.castSession_.media[0])};
BD.prototype.onCastStatusUpdate_=function(V){if(!V)this.onCastMediaChange_(null),P6V(this,null);else if(this.castSession_.receiver.volume){V=this.castSession_.receiver.volume;var l=xa(this),I=Math.round(100*V.level||0);if(l.volume!=I||l.muted!=V.muted)Md("Cast volume update: "+V.level+(V.muted?" muted":"")),l.volume=I,l.muted=!!V.muted,dr(this,l)}};
BD.prototype.onCastMediaChange_=function(V){Md("Cast media: "+!!V);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=V)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),RaV(this),this.publish("remotePlayerChange")};
var RaV=function(V){var l=V.castMedia_.media,I=V.castMedia_.customData;if(l&&I){var H=xa(V);l.contentId!=H.videoId&&Md("Cast changing video to: "+l.contentId);H.videoId=l.contentId;H.playerState=I.playerState;Tz(H,V.castMedia_.getEstimatedTime());dr(V,H)}else Md("No cast media video. Ignoring state update.")};
BD.prototype.onCastMediaUpdate_=function(V){if(V)RaV(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
BD.prototype.onCloudviewAvailabilityChange_=function(){var V=g_E();V&&P6V(this,V)};
BD.prototype.warn_=function(V){qd("CP",V)};
var Ds6=function(V,l,I){return(0,_.zN)(function(H){this.warn_("Failed to "+l+" with cast v2 channel. Error code: "+H.code);H.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+l+" using MDx browser channel."),nL(this,l,I))},V)};var Np=function(V,l,I,H){H=H===void 0?!1:H;_.gi.call(this);var T=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$17401_http_=V;this.enableConnectWithInitialState_=H;this.listeners_.push(_.Oh(window,"beforeunload",function(){T.JSC$17404_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new me;this.currentScreenId_=l.id;this.currentScreenIdType_=l.idType;this.channelService=kaI(this.JSC$17401_http_,I,this.JSC$17404_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Q5g(T)});
this.channelService.listen("channelClosed",function(){wr("Channel closed");isNaN(T.connectTimerId_)?QB(!0):QB();T.dispose()});
this.channelService.listen("channelError",function(x){QB();isNaN(T.getReconnectTimeout_())?(x==1&&T.currentScreenIdType_=="shortLived"&&T.publish("browserChannelAuthError",x),wr("Channel error: "+x+" without reconnection"),T.dispose()):(T.reconnecting_=!0,wr("Channel error: "+x+" with reconnection in "+T.getReconnectTimeout_()+" ms"),cxB(T,2))});
this.channelService.listen("channelMessage",function(x){WnP(T,x)});
this.channelService.setLoungeToken(l.token);this.subscribe("remoteQueueChange",function(){var x=T.playerContext_.videoId;TEh()&&_.wd("yt-remote-session-video-id",x)})};
_.t(Np,_.gi);
Np.prototype.connect=function(V,l){if(l){var I=l.listId,H=l.videoId,T=l.videoIds,x=l.playerParams,n=l.clickTrackingParams,w=l.index,N={videoId:H},L=l.currentTime,e=l.locationInfo;l=l.loopMode;L!==void 0&&(N.currentTime=L<=5?0:L);x&&(N.playerParams=x);e&&(N.locationInfo=e);n&&(N.clickTrackingParams=n);I&&(N.listId=I);T&&T.length>0&&(N.videoIds=T.join(","));w!==void 0&&(N.currentIndex=w);this.enableConnectWithInitialState_&&(N.loopMode=l||"LOOP_MODE_OFF");I&&(this.playerContext_.listId=I);this.playerContext_.videoId=
H;this.playerContext_.index=w||0;this.playerContext_.state=3;Tz(this.playerContext_,L);this.autoplayMode_="UNSUPPORTED";I=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";wr("Connecting with "+I+" and params: "+(0,_.PH)(N));this.channelService.connect({method:I,params:(0,_.PH)(N)},V,$Y6())}else wr("Connecting without params"),this.channelService.connect({},V,$Y6());bPV(this)};
Np.prototype.setLoungeToken=function(V){this.channelService.setLoungeToken(V)};
Np.prototype.dispose=function(){this.isDisposed()||(_.Aq("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),cxB(this,3));_.gi.prototype.dispose.call(this)};
Np.prototype.disposeInternal=function(){q6E(this);MGV(this);s5b(this);_.TU(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.TU(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Rn1(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.gi.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var p26=function(V){return _.cy(V.connectedDevices_,function(l){return l.type=="LOUNGE_SCREEN"})},wr=function(V){qd("conn",V)},cxB=function(V,l){V.publish("proxyStateChange",l)},bPV=function(V){V.connectTimerId_=_.Iv(function(){wr("Connecting timeout");
V.JSC$17404_disconnect_(1)},2E4)},q6E=function(V){_.TU(V.connectTimerId_);
V.connectTimerId_=NaN},s5b=function(V){_.TU(V.reconnectedCheckScreenTimeout_);
V.reconnectedCheckScreenTimeout_=NaN},Axb=function(V){MGV(V);
V.playingSyncTimerId_=_.Iv(function(){KL(V,"getNowPlaying")},2E4)},MGV=function(V){_.TU(V.playingSyncTimerId_);
V.playingSyncTimerId_=NaN},Q5g=function(V){wr("Channel opened");
V.reconnecting_&&(V.reconnecting_=!1,s5b(V),V.reconnectedCheckScreenTimeout_=_.Iv(function(){wr("Timing out waiting for a screen.");V.JSC$17404_disconnect_(1)},15E3))},v3I=function(V,l){var I=null;
if(l){var H=p26(V);H&&(I={clientName:H.clientName,deviceMake:H.brand,deviceModel:H.model,osVersion:H.osVersion})}_.Aq("yt.mdx.remote.remoteClient_",I);l&&(q6E(V),s5b(V));I=V.channelService.isChannelOpened()&&isNaN(V.connectTimerId_);l==I?l&&(cxB(V,1),KL(V,"getSubtitlesTrack")):l?(V.getOtherConnectedRemoteId_()&&V.playerContext_.reset(),cxB(V,1),KL(V,"getNowPlaying"),u42(V)):V.JSC$17404_disconnect_(1)},OPh=function(V,l){var I=l.params.videoId;
delete l.params.videoId;I==V.playerContext_.videoId&&(_.EL.isEmpty(l.params)?V.playerContext_.trackData=null:V.playerContext_.trackData=l.params,V.publish("remotePlayerChange"))},C6b=function(V,l,I){var H=l.params.videoId||l.params.video_id,T=parseInt(l.params.currentIndex,10);
V.playerContext_.listId=l.params.listId||V.playerContext_.listId;Jx2(V.playerContext_,H,T);V.publish("remoteQueueChange",I)},aWg=function(V,l){l.params=l.params||{};
C6b(V,l,"NOW_PLAYING_MAY_CHANGE");V.onStateChange_(l);V.publish("autoplayDismissed")};
Np.prototype.onStateChange_=function(V){var l=parseInt(V.params.currentTime||V.params.current_time,10);Tz(this.playerContext_,isNaN(l)?0:l);l=parseInt(V.params.state,10);l=isNaN(l)?-1:l;l==-1&&this.playerContext_.playerState==-1E3&&(l=-1E3);this.playerContext_.playerState=l;l=Number(V.params.loadedTime);this.playerContext_.loadedTime=isNaN(l)?0:l;l=Number(V.params.duration);this.playerContext_.duration_=isNaN(l)?0:l;l=this.playerContext_;var I=Number(V.params.liveIngestionTime);l.liveIngestionTime_=
I;l.isLive_=isNaN(I)?!1:!0;l=this.playerContext_;I=Number(V.params.seekableStartTime);V=Number(V.params.seekableEndTime);l.seekableStart_=isNaN(I)?0:I;l.seekableEnd_=isNaN(V)?0:V;this.playerContext_.playerState==1?Axb(this):MGV(this);this.publish("remotePlayerChange")};
Np.prototype.onAdStateChange_=function(V){if(this.playerContext_.playerState!=-1E3){var l=1085;switch(parseInt(V.params.adState,10)){case 1:l=1081;break;case 2:l=1084;break;case 0:l=1083}this.playerContext_.playerState=l;V=parseInt(V.params.currentTime,10);Tz(this.playerContext_,isNaN(V)?0:V);this.publish("remotePlayerChange")}};
var fWB=function(V,l){var I=l.params.muted=="true";V.playerContext_.volume=parseInt(l.params.volume,10);V.playerContext_.muted=I;V.publish("remotePlayerChange")},g3b=function(V,l){V.autoplayVideoId_=l.params.videoId;
V.publish("nowAutoplaying",parseInt(l.params.timeout,10))},msY=function(V,l){V.autoplayVideoId_=l.params.videoId||null;
V.publish("autoplayUpNext",V.autoplayVideoId_)},iPV=function(V,l){V.autoplayMode_=l.params.autoplayMode;
V.publish("autoplayModeChange",V.autoplayMode_);V.autoplayMode_=="DISABLED"&&V.publish("autoplayDismissed")},V0b=function(V,l){var I=l.params.hasNext=="true";
V.playerContext_.hasPrevious=l.params.hasPrevious=="true";V.playerContext_.hasNext=I;V.publish("previousNextChange")};
Np.prototype.isCapabilitySupportedOnConnectedDevices_=function(V){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var l=_.U(this.connectedDevices_),I=l.next();!I.done;I=l.next())if(!I.value.capabilities.has(V))return!1;return!0};
var WnP=function(V,l){l=l.message;l.params?wr("Received: action="+l.action+", params="+(0,_.PH)(l.params)):wr("Received: action="+l.action+" {}");switch(l.action){case "loungeStatus":l=(0,_.tO)(l.params.devices);V.connectedDevices_=_.JH(l,function(H){return new vL(H)});
l=!!_.cy(V.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"});
v3I(V,l);l=V.isCapabilitySupportedOnConnectedDevices_("mlm");V.publish("multiStateLoopEnabled",l);break;case "loungeScreenDisconnected":tzQ(V.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"});
v3I(V,!1);break;case "remoteConnected":var I=new vL((0,_.tO)(l.params.device));_.cy(V.connectedDevices_,function(H){return H.equals(I)})||_.ztN(V.connectedDevices_,I);
break;case "remoteDisconnected":I=new vL((0,_.tO)(l.params.device));tzQ(V.connectedDevices_,function(H){return H.equals(I)});
break;case "gracefulDisconnect":break;case "playlistModified":C6b(V,l,"QUEUE_MODIFIED");break;case "nowPlaying":aWg(V,l);break;case "onStateChange":V.onStateChange_(l);break;case "onAdStateChange":V.onAdStateChange_(l);break;case "onVolumeChanged":fWB(V,l);break;case "onSubtitlesTrackChanged":OPh(V,l);break;case "nowAutoplaying":g3b(V,l);break;case "autoplayDismissed":V.publish("autoplayDismissed");break;case "autoplayUpNext":msY(V,l);break;case "onAutoplayModeChanged":iPV(V,l);break;case "onHasPreviousNextChanged":V0b(V,
l);break;case "requestAssistedSignIn":V.publish("assistedSignInRequested",l.params.authCode);break;case "onLoopModeChanged":V.publish("loopModeChange",l.params.loopMode);break;default:wr("Unrecognized action: "+l.action)}};
_.B=Np.prototype;_.B.getProxyState_=function(){var V=3;this.isDisposed()||(V=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(V=1):V=2);return V};
_.B.JSC$17404_disconnect_=function(V){wr("Disconnecting with "+V);_.Aq("yt.mdx.remote.remoteClient_",null);q6E(this);this.publish("beforeDisconnect",V);V==1&&QB();this.channelService.disconnect(V);this.dispose()};
_.B.getPlayerContextData_=function(){var V=this.playerContext_;this.clientVideoId_&&(V=this.playerContext_.clone(),Jx2(V,this.clientVideoId_,V.index));return o32(V)};
_.B.setPlayerContextData_=function(V){var l=this,I=new me(V);I.videoId&&I.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=I.videoId,_.TU(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Iv(function(){if(l.clientVideoId_){var T=l.clientVideoId_;l.clientVideoId_=null;l.playerContext_.videoId!=T&&KL(l,"getNowPlaying")}},5E3));
var H=[];this.playerContext_.listId==I.listId&&this.playerContext_.videoId==I.videoId&&this.playerContext_.index==I.index||H.push("remoteQueueChange");this.playerContext_.playerState==I.playerState&&this.playerContext_.volume==I.volume&&this.playerContext_.muted==I.muted&&E3Q(this.playerContext_)==E3Q(I)&&(0,_.PH)(this.playerContext_.trackData)==(0,_.PH)(I.trackData)||H.push("remotePlayerChange");this.playerContext_.reset(V);_.cO(H,function(T){this.publish(T)},this)};
_.B.getOtherConnectedRemoteId_=function(){var V=this.channelService.getDeviceId(),l=_.cy(this.connectedDevices_,function(I){return I.type=="REMOTE_CONTROL"&&I.id!=V});
return l?l.id:""};
_.B.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.B.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.B.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.B.JSC$17404_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var u42=function(V){_.TU(V.idleDisconnectTimerId_);V.idleDisconnectTimerId_=_.Iv(function(){V.JSC$17404_disconnect_(1)},864E5)},KL=function(V,l,I){I?wr("Sending: action="+l+", params="+(0,_.PH)(I)):wr("Sending: action="+l);
V.channelService.sendMessage(l,I)};
Np.prototype.sendMessageWithUserAction_=function(V,l){KL(this,V,l);u42(this)};
Np.prototype.JSC$17404_getXsrfToken_=function(){var V=_.dm.get("SAPISID","")||_.dm.get("__Secure-1PAPISID",void 0)||"",l=_.dm.get("__Secure-3PAPISID","")||"";if(!V&&!l)return"";V=_.rg(_.FG(V),2);l=_.rg(_.FG(l),2);return _.rg(_.FG(","+V+","+l),2)};
Np.prototype.subscribe=Np.prototype.subscribe;Np.prototype.unsubscribeByKey=Np.prototype.unsubscribeByKey;Np.prototype.getProxyState=Np.prototype.getProxyState_;Np.prototype.disconnect=Np.prototype.JSC$17404_disconnect_;Np.prototype.getPlayerContextData=Np.prototype.getPlayerContextData_;Np.prototype.setPlayerContextData=Np.prototype.setPlayerContextData_;Np.prototype.getOtherConnectedRemoteId=Np.prototype.getOtherConnectedRemoteId_;Np.prototype.getReconnectTimeout=Np.prototype.getReconnectTimeout_;
Np.prototype.getAutoplayMode=Np.prototype.getAutoplayMode_;Np.prototype.getAutoplayVideoId=Np.prototype.getAutoplayVideoId_;Np.prototype.reconnect=Np.prototype.JSC$17404_reconnect_;Np.prototype.sendMessage=Np.prototype.sendMessageWithUserAction_;Np.prototype.getXsrfToken=Np.prototype.JSC$17404_getXsrfToken_;Np.prototype.isCapabilitySupportedOnConnectedDevices=Np.prototype.isCapabilitySupportedOnConnectedDevices_;var liY=function(V){pp.call(this,"ScreenServiceProxy");this.instance_=V;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.zN)(this.JSC$17407_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.zN)(this.onOnlineScreenChange_,this)))};
_.t(liY,pp);_.B=liY.prototype;_.B.getScreens=function(V){return this.instance_.$_gs(V)};
_.B.contains=function(V){return!!this.instance_.$_c(V)};
_.B.get=function(V){return this.instance_.$_g(V)};
_.B.start=function(){this.instance_.$_st()};
_.B.add=function(V,l,I){this.instance_.$_a(V,l,I)};
_.B.remove=function(V,l,I){this.instance_.$_r(V,l,I)};
_.B.updateName=function(V,l,I,H){this.instance_.$_un(V,l,I,H)};
_.B.disposeInternal=function(){for(var V=this.subscriptionKeys_.length,l=0;l<V;++l)this.instance_.$_ubk(this.subscriptionKeys_[l]);this.subscriptionKeys_.length=0;this.instance_=null;pp.prototype.disposeInternal.call(this)};
_.B.JSC$17407_onScreenChange_=function(){this.publish("screenChange")};
_.B.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
vp.prototype.$_st=vp.prototype.start;vp.prototype.$_gspc=vp.prototype.JSC$17364_getScreenByPairingCode;vp.prototype.$_gsppc=vp.prototype.JSC$17364_getScreenByPollingPairingCode;vp.prototype.$_c=vp.prototype.contains;vp.prototype.$_g=vp.prototype.get;vp.prototype.$_a=vp.prototype.add;vp.prototype.$_un=vp.prototype.updateName;vp.prototype.$_r=vp.prototype.remove;vp.prototype.$_gs=vp.prototype.getScreens;vp.prototype.$_gos=vp.prototype.JSC$17364_getOnlineScreens;vp.prototype.$_s=vp.prototype.subscribe;
vp.prototype.$_ubk=vp.prototype.unsubscribeByKey;var nXu=function(V){KSr();if(!cp||!cp.get("yt-remote-disable-remote-module-for-dev")){V=_.h6("MDX_CONFIG")||V;yz2();xY2();jw||(jw=new DP(V?V.loungeApiHost:void 0),jKr()&&(jw.basePath="/api/loungedev"));Ya||(Ya=_.SN("yt.mdx.remote.deferredProxies_")||[],_.Aq("yt.mdx.remote.deferredProxies_",Ya));Ii2();var l=LL();if(!l){var I=new vp(jw,V?V.disableAutomaticScreenCache||!1:!1);_.Aq("yt.mdx.remote.screenService_",I);l=LL();var H={};V&&(H={appId:V.appId,disableDial:V.disableDial,theme:V.theme,loadCastApiSetupScript:V.loadCastApiSetupScript,
disableCastApi:V.disableCastApi,enableDialLoungeToken:V.enableDialLoungeToken,enableCastLoungeToken:V.enableCastLoungeToken,forceMirroring:V.forceMirroring});_.Aq("yt.mdx.remote.enableConnectWithInitialState_",V?V.enableConnectWithInitialState||!1:!1);uzE(I,function(x){x?ew()&&ilI(ew(),"YouTube TV"):I.subscribe("onlineScreenChange",function(){Tg("yt-remote-receiver-availability-change")})},H)}if(V&&!_.SN("yt.mdx.remote.initialized_")){_.Aq("yt.mdx.remote.initialized_",!0);
ka("Initializing: "+(0,_.PH)(V));Fw.push(_.VC("yt-remote-cast2-api-ready",function(){Tg("yt-remote-api-ready")}));
Fw.push(_.VC("yt-remote-cast2-availability-change",function(){Tg("yt-remote-receiver-availability-change")}));
Fw.push(_.VC("yt-remote-cast2-receiver-selected",function(){Heb();Tg("yt-remote-auto-connect","cast-selector-receiver")}));
Fw.push(_.VC("yt-remote-cast2-receiver-resumed",function(){Tg("yt-remote-receiver-resumed","cast-selector-receiver")}));
Fw.push(_.VC("yt-remote-cast2-session-change",TVE));Fw.push(_.VC("yt-remote-connection-change",function(x){x?ilI(ew(),"YouTube TV"):BVb()||(ilI(null,null),fkP())}));
Fw.push(_.VC("yt-remote-cast2-session-failed",function(){Tg("yt-remote-connection-failed")}));
H=xQP();V.isAuto&&(H.id+="#dial");var T=V.capabilities||[];_.z("desktop_enable_autoplay")&&T.push("atp");T.length>0&&(H.capabilities=T);H.name=V.device;H.app=V.app;(V=V.theme)&&(H.theme=V);ka(" -- with channel params: "+(0,_.PH)(H));H?(_.wd("yt-remote-session-app",H.app),_.wd("yt-remote-session-name",H.name)):(_.Kb("yt-remote-session-app"),_.Kb("yt-remote-session-name"));_.Aq("yt.mdx.remote.channelParams_",H);l.start();ew()||UQE()}}},dQY=function(){var V=LL().instance_.$_gos();
var l=$QE();l&&Xw()&&(lkh(V,l)||V.push(l));return V7V(V)},w96=function(){var V=dQY(),l=$QE();
l||(l=BVb());return _.cy(V,function(I){return l&&S9(l,I.key)?!0:!1})},$QE=function(){var V=ew();
if(!V)return null;var l=LL().getScreens();return RF(l,V)},TVE=function(V){ka("remote.onCastSessionChange_: "+VaE(V));
if(V){var l=$QE();l&&l.id==V.id?(ilI(l.id,"YouTube TV"),V.idType=="shortLived"&&(V=V.token)&&(l=Xw())&&l.setLoungeToken(V)):(l&&NVr(),KBB(V,1))}else Xw()&&NVr()},NVr=function(){mYP()?fp().stopSession():aF("stopSession called before API ready.");
var V=Xw();V&&(V.disconnect(1),jpI(null))},YTb=function(){var V=Xw();
return V&&V.getProxyState()!=3?new BD(Xw(),void 0):null},ka=function(V){qd("remote",V)},LL=function(){if(!LBb){var V=_.SN("yt.mdx.remote.screenService_");
LBb=V?new liY(V):null}return LBb},ew=function(){return _.SN("yt.mdx.remote.currentScreenId_")},ebg=function(V){_.Aq("yt.mdx.remote.currentScreenId_",V)},Heb=function(){_.Aq("yt.mdx.remote.connectData_",null)},Xw=function(){return _.SN("yt.mdx.remote.connection_")},jpI=function(V){var l=Xw();
Heb();V||ebg("");_.Aq("yt.mdx.remote.connection_",V);Ya&&(_.cO(Ya,function(I){I(V)}),Ya.length=0);
l&&!V?Tg("yt-remote-connection-change",!1):!l&&V&&Tg("yt-remote-connection-change",!0)},BVb=function(){var V=TEh();
if(!V)return null;var l=LL();if(!l)return null;l=l.getScreens();return RF(l,V)},KBB=function(V,l){ebg(V.id);
V=new Np(jw,V,xQP(),_.SN("yt.mdx.remote.enableConnectWithInitialState_")||!1);V.connect(l,_.SN("yt.mdx.remote.connectData_"));V.subscribe("beforeDisconnect",function(I){Tg("yt-remote-before-disconnect",I)});
V.subscribe("beforeDispose",function(){Xw()&&jpI(null)});
V.subscribe("browserChannelAuthError",function(){var I=$QE();I&&I.idType=="shortLived"&&(mYP()?fp().handleBrowserChannelAuthError():aF("refreshLoungeToken called before API ready."))});
jpI(V)},UQE=function(){var V=BVb();
V?(ka("Resume connection to: "+VaE(V)),KBB(V,0)):(QB(),fkP(),ka("Skipping connecting because no session screen found."))},jw=null,Ya=null,LBb=null,Ii2=function(){var V=xQP();
if(_.EL.isEmpty(V)){V=Hlu();var l=_.N9("yt-remote-session-name")||"",I=_.N9("yt-remote-session-app")||"";V={device:"REMOTE_CONTROL",id:V,name:l,app:I,mdxVersion:3};V.authuser=String(_.h6("SESSION_INDEX","0"));(l=_.h6("DELEGATED_SESSION_ID"))&&(V.pageId=String(l));_.Aq("yt.mdx.remote.channelParams_",V)}},xQP=function(){return _.SN("yt.mdx.remote.channelParams_")||{}},Fw=[];var kHg=new _.h2("yt-menu"),FBb=function(){},zbg=function(V,l,I){V=l=="right-click"?I.rightClickMenuPopupHint:I.menuPopupHint;
if(!(X9b(l)>10))return l=l||"default",kHg.set(l+"-impression",X9b(l)+1),V},X9b=function(V){return parseInt(kHg.get((V||"default")+"-impression")||0,10)};
_.Bn(FBb);var yd2=function(){this.contexts_=new WeakMap;this.JSC$17413_networkService_=this.activeContext_=null},t0V=function(V,l,I){var H=V.contexts_.get(l);
H||(H=new zDY(V.JSC$17413_networkService_),V.contexts_.set(l,H));V.activeContext_=H;I&&V.activeContext_.reset();V.activeContext_.start();return V.activeContext_};var zz=function(){};
zz.prototype.enqueue=function(){var V=this,l;return _.d(function(I){if(V.isCounterfactual())return(l=V.getCounterfactualData())&&V.shouldLogCounterfactualImpression()&&V.sendImpressionEndpoints(l),I.return();V.doEnqueue();_.FU(I)})};
zz.prototype.sendImpressionEndpoints=function(V){_.WF.getInstance().triggerOptionalAction("yt-service-request",{},V[0])};var yd=function(V,l){this.renderer=V;this.page=l};
_.t(yd,zz);yd.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
yd.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
yd.prototype.shouldLogCounterfactualImpression=function(){return!0};
yd.prototype.doEnqueue=function(){var V=_.AU(this.page);V&&V.pause();this.renderer.impressionCommand&&_.WF.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.RC(_.WF.getInstance(),[this.renderer.promoCommand],this.page)};var rdg=function(V,l){this.renderer=V;this.resolver=_.QN();this.JSC$17425_enforcementCounter=new _.t_0;l?this.JSC$17425_playerManager=_.AU(l):this.JSC$17425_playerManager=null;_.nY(1,!0)};
_.t(rdg,zz);_.B=rdg.prototype;_.B.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var V=[];this.renderer.impressionEndpoints.forEach(function(l){(l=_.to(l))&&V.push(l)});
return V}};
_.B.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.B.shouldLogCounterfactualImpression=function(){var V=_.Y8T();V?(this.JSC$17425_enforcementCounter.increment("POPUP"),_.nY(3)):_.nY(2);return V};
_.B.cancel=function(){this.resolver.promise.cancel()};
_.B.doEnqueue=function(){var V=this;_.Y8T()?(this.JSC$17425_enforcementCounter.increment("POPUP"),_.nY(3),GHQ(this)):this.JSC$17425_playerManager?(this.resolver.promise.then(function(){GHQ(V)}),EXE(this.resolver,this.JSC$17425_playerManager)):_.nY(2)};
var EXE=function(V,l){var I=_.QN();l.getPlayerPromise().then(function(H){I.resolve(H)});
I.promise.then(function(H){H.addEventListener("onAbnormalityDetected",V.resolve);_.Jm(V.promise,function(){H.removeEventListener("onAbnormalityDetected",V.resolve)})});
V.promise.thenCatch(function(){I.promise.cancel()})},GHQ=function(V){_.nY(3);
var l={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:V.renderer}};l=_.WF.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:l},{});Promise.all(l).then(function(){Jd2();V.JSC$17425_playerManager&&V.JSC$17425_playerManager.pause()})},Jd2=function(){$iE(function(V,l){_.Bjb(V,l);
V===0?_.nY(7):_.nY(4)})};var oXE=function(V,l){this.renderer=V;this.page=l;this.resolver=_.QN()};
_.t(oXE,zz);_.B=oXE.prototype;_.B.cancel=function(){this.resolver.promise.cancel()};
_.B.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.B.isCounterfactual=function(){return!this.renderer.isVisible};
_.B.shouldLogCounterfactualImpression=function(){return!0};
_.B.doEnqueue=function(){var V=this;this.resolver.promise.then(function(){var I={popup:{mealbarPromoRenderer:V.renderer},popupType:"MEALBAR"};_.WF.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:I},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var l=_.AU(this.page);l&&hb6(this.resolver,l)}break;default:this.resolver.resolve()}};
var hb6=function(V,l){var I=_.QN();l.getPlayerPromise().then(function(H){I.resolve(H)});
I.promise.then(function(H){H.addEventListener("onAdEnd",V.resolve);_.Jm(V.promise,function(){H.removeEventListener("onAdEnd",V.resolve)})});
V.promise.thenCatch(function(){I.promise.cancel()})};var Ppr=function(V,l){this.renderer=V;this.page=l};
_.t(Ppr,zz);_.B=Ppr.prototype;_.B.cancel=function(){this.JSC$17433_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17433_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17433_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.B.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.B.isCounterfactual=function(){return!this.renderer.isVisible};
_.B.shouldLogCounterfactualImpression=function(){return!0};
_.B.doEnqueue=function(){var V=this,l,I;((l=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(I=l.playbackUpsellDialogTriggerConditionData)==null?void 0:I.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17433_downloadedVideosCountSelectorUnsubscriber=_.Ln(_.v4(),TqY,function(H,T){H>T&&(DQB(V),V.cancel())}):DQB(this)};
var DQB=function(V){var l={popup:{upsellDialogRenderer:V.renderer},popupType:"MODAL"};_.WF.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:l},{});(V=_.AU(V.page))&&V.pause()};var tS={},ZeP=(tS.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",tS.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",tS.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",tS.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",tS.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",tS.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",tS.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",tS),STg=function(V,l){this.renderer=V;this.targetManager=
l};
_.t(STg,zz);_.B=STg.prototype;_.B.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17440_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17440_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17440_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.B.getCounterfactualData=function(){if(this.isCounterfactual()){var V;return(V=this.renderer.promoConfig)==null?void 0:V.impressionEndpoints}};
_.B.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.B.shouldLogCounterfactualImpression=function(){return!0};
_.B.doEnqueue=function(){var V=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17440_downloadedVideosCountSelectorUnsubscriber=_.Ln(_.v4(),TqY,function(l,I){V.renderer.targetId&&l>I&&(f4h(V.targetManager,V.renderer.targetId,RbE(V)),V.cancel())});
break;default:f4h(this.targetManager,this.renderer.targetId,RbE(this))}};
var RbE=function(V){var l;if((l=V.renderer.suggestedPosition)==null?0:l.type)var I=ZeP[V.renderer.suggestedPosition.type];I||(I="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:V.renderer},popupType:"HINT",position:I}}};var Qpb=function(){this.previousPage=null},cdE;
Qpb.prototype.registerPromoCommand=function(V,l){WB6(this,void 0,void 0,_.y(V.roadblock,VAV),void 0,void 0,l)};
var WB6=function(V,l,I,H,T,x,n){V.previousPage!==n&&V.pendingTooltipPromo&&V.pendingTooltipPromo.cancel();V.previousPage=n;T?(V.pendingEnforcementPromo&&V.pendingEnforcementPromo.cancel(),V.pendingEnforcementPromo=new rdg(T,n),V.pendingEnforcementPromo.enqueue()):x?(V.pendingCommandWrapperPromo=new yd(x,n),V.pendingCommandWrapperPromo.enqueue()):H?(V.pendingRoadblockPromo&&V.pendingRoadblockPromo.cancel(),V.pendingRoadblockPromo=new Ppr(H,n),V.pendingRoadblockPromo.enqueue()):l?(V.pendingMealbarPromo&&
V.pendingMealbarPromo.cancel(),V.pendingMealbarPromo=new oXE(l,n),V.pendingMealbarPromo.enqueue()):I&&(V.pendingTooltipPromo&&V.pendingTooltipPromo.cancel(),V.pendingTooltipPromo=new STg(I,_.$6()),V.pendingTooltipPromo.enqueue())},beg=function(){cdE||(cdE=new Qpb);
return cdE};var TlI=!1;var VTu=function(V,l){var I=_.h6("SESSION_INDEX");this.actionToken_=V;this.commonToken_=l;this.sessionIndex_=I},igQ=function(V){var l=_.QN(),I=_.SN("payments.business.integration.bootstrap"),H=_.SN("payments.business.integration"),T=H.Style.create().withMaterialDesignStyle(),x=H.mashupMode.popup("instrument-manager");
I.asMashupMode(x).usingUserIndex(V.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(T).inStandaloneContext(H.standaloneContextAuthId.forUserId()).instrumentManager(V.actionToken_,V.commonToken_.length>0?V.commonToken_:void 0,function(n){var w=n.instrumentId;w?l.resolve(w):(w=_.SN("payments.business.integration.scenario.InstrumentManager"),l.reject(n.errorCode&&n.errorCode===w.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(n){_.Dp(n);
l.reject("instrumentManagerLoadError")});
return l.promise};var lC=function(V,l,I){this.payloadName="transactionFlowFailed";this.payload={errorType:V,serializedTransactionFlowLoggingParams:l,isUserDismiss:I===void 0?!1:I}};
_.Aq("yt.ypc.shared.YpcTransactionFlowError",lC);var qTV=function(){return _.To.apply(this,arguments)||this};
_.t(qTV,_.To);qTV.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
qTV.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
var rr=qTV;rr.prototype.onErrorMessageDismiss=rr.prototype.onErrorMessageDismiss;_.O([_.q({readOnly:!0,observer:"errorRendererChanged"}),_.a("design:type",Object)],rr.prototype,"errorRenderer",void 0);_.O([_.W("yt-live-chat-error-message-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rr.prototype,"onErrorMessageDismiss",null);rr=_.O([_.B1()],rr);var M0r=[rr.prototype];var spb;var p9E;var Adb=new _.h2("yt-live-chat"),uLh=new Map;uLh.set("timestamp_toggle","show-timestamps");uLh.set("reactions_toggle","allow-reactions");var vX6=function(){return _.M.apply(this,arguments)||this};
_.t(vX6,_.M);_.B=vX6.prototype;_.B.menuItemIdentifierChanged=function(){var V;(V=this.data)!=null&&V.menuItemIdentifier&&(V=uLh.get(this.data.menuItemIdentifier))&&(_.z("enable_lwe_web_mute")?(V=Adb.get(V),this.isToggled=!(V===void 0?!this.data.isToggled:!V)):this.isToggled=Adb.get(V))};
_.B.onFocus=function(){this.toggleButton.focus()};
_.B.onTap=function(){var V=this.data.command;V&&this.componentBehavior.resolveCommand(V)};
_.B.computeText=function(V,l,I){return this.componentBehavior.getSimpleString(V?I:l)};
_.B.computeIcon=function(V,l,I){return(V=V?I:l)&&V.iconType?_.mj(V.iconType):""};
var Gz=vX6;Gz.prototype.onTap=Gz.prototype.onTap;Gz.prototype.onFocus=Gz.prototype.onFocus;Gz.prototype.menuItemIdentifierChanged=Gz.prototype.menuItemIdentifierChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Gz.prototype,"componentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Gz.prototype,"data",void 0);
_.O([_.q({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.a("design:type",String)],Gz.prototype,"icon",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],Gz.prototype,"isToggled",void 0);_.O([_.Ij("tp-yt-paper-toggle-button"),_.a("design:type",Object)],Gz.prototype,"toggleButton",void 0);_.O([_.b("data.menuItemIdentifier"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gz.prototype,"menuItemIdentifierChanged",null);
_.O([_.W("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gz.prototype,"onFocus",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gz.prototype,"onTap",null);Gz=_.O([_.Lm({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Gz);
_.u(Gz,"yt-live-chat-toggle-renderer",function(){if(p9E===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;spb===void 0&&(spb=document.createElement("template"));var H=spb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);p9E=V}V=p9E;return V},{mode:_.z("live_chat_enable_sink_wrapper")?2:0});var OeE=new _.Vr("NAVIGATION_PROGRESS_TOKEN");_.ow("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var CpB={},wnh=(CpB.CSI=function(V,l){var I={};I[V]=l;V=_.Zp(_.bD1)(I);Object.keys(V).length>0&&_.P$(V)},CpB.ECATCHER=function(V){return function(l,I){_.h6(V)[l]=I}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),CpB);var aiB={},fiE={},gXb=(fiE[sDI.name]=!0,fiE),hS=function(){var V=_.To.apply(this,arguments)||this;V._noAccessors=!0;V.tabGesturesIsActive=!1;V.actionRouterIsRoot=!0;V.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"};V.pageTitle="";V.titleSuffix="YouTube";V.unseenNotificationCount=
0;V.hasNavigated=!1;V.hasSetScrollTopForNavigation=!1;V.pagePreparer=null;V.zwiebackInitJobId=0;V.dataUpdatePromise=null;V.loadDepsPromise=_.w6();V.hasPendingNavigation=!1;V.pendingPlayerOnResponseReceivedActions=[];return V};
_.t(hS,_.To);hS.prototype.created=function(){this.pendingPlayerOnResponseReceivedActions=[];_.z("enable_browser_cookie_status_monitoring")&&_.et(_.r0,this.reportBrowserCookieSetting)};
hS.prototype.reportBrowserCookieSetting=function(){var V=new mOQ,l="other";_.Lj?l="chrome":_.Yv?l="firefox":_.ov?l="safari":_.Ml&&(l="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(I){V.increment(_.Nl(),I,l)}).catch(function(){V.increment(_.Nl(),!1,l)}):V.increment(_.Nl(),!1,l)};
hS.prototype.attached=function(){mQV(this);document.addEventListener("yt-navigate-cache",_.VP(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var V=PD();V.init();V.dispatchElement=this.hostElement};
var mQV=function(V,l){l=l===void 0?0:l;var I=_.F().resolve(_.Cs(_.nb));if(I)ieE(V,I);else{if(l>=5)throw Error("Zk");setTimeout(function(){mQV(V,l+1)},0)}},ieE=function(V,l){l.addEventListener("yt-navigate-start",_.VP(V,V.onYtNavigateStart));
l.addEventListener("yt-navigate-finish",_.VP(V,V.onYtNavigateFinish));l.addEventListener("yt-navigate-error",_.VP(V,V.onYtNavigateError));l.addEventListener("yt-page-data-fetched",_.VP(V,V.onYtPageDataFetched));l.addEventListener("yt-navigate-redirect",_.VP(V,V.onYtNavigateRedirect))};
_.B=hS.prototype;
_.B.detached=function(){var V=_.F().resolve(_.nb);V.removeEventListener("yt-navigate-start",_.VP(this,this.onYtNavigateStart));V.removeEventListener("yt-navigate-finish",_.VP(this,this.onYtNavigateFinish));V.removeEventListener("yt-navigate-error",_.VP(this,this.onYtNavigateError));V.removeEventListener("yt-page-data-fetched",_.VP(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.VP(this,this.onYtNavigateCache));V.removeEventListener("yt-navigate-redirect",_.VP(this,
this.onYtNavigateRedirect));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.B.setPageOffset=function(V,l){V?_.xB(this.hostElement,"yt-set-page-offset",[V,l]):_.Gr(Error("$k"))};
_.B.setPageOffsetForNavigation=function(V,l){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(V,l))};
_.B.onYtNavigateSetPageOffset=function(V,l){this.setPageOffsetForNavigation(l.page,l.offset)};
_.B.getPageOffset=function(){var V=_.h(this.hostElement).querySelector("#page-manager").getCurrentPage(),l=0;V&&(l=_.xB(this.hostElement,"yt-get-page-offset",[V])[0]);return l};
_.B.onYtHistoryPop=function(V,l){if(_.PO("DISABLE_WARM_LOADS"))V.preventDefault(),window.location.reload();else{var I=_.F().resolve(_.nb);I.hasPendingNavigation()&&V.preventDefault();I.cancelPendingNavigation();_.U4(this.hostElement,"yt-pending-navigation-cancelled");l.errorMsg&&(V=l.errorMsg.split(" - "),l=Error(V[0]),V.length==2&&V[1]&&(_.PF(l,V[1]),_.hF(l)),window.location.reload())}};
_.B.onYtHistoryLoad=function(V,l){var I=this;if(_.PO("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(V=l.endpoint)&&Object.keys(V).length||(V=null);var H=l.historyEntry,T=_.F().resolve(_.nb),x=_.F().resolve(_.pa),n=null;H&&H.rootData&&(n=H.rootData);var w=n&&VCh(n);!n||w||n.filler?V?(T.navigate(V,!0),lQE(this,V)):(l.legacyBorder||w||(l.JSC$26275_savedComponentState==null&&n==null?_.hF(new _.Yd("Incomplete history entry",l.forward)):_.oV(new _.Yd("Malformed history entry",l.JSC$26275_savedComponentState,
l.forward,n))),window.location.reload()):(_.aEt({isHot:!0}),_.P$({webInfo:{navigationReason:"h"}}),_.wZ1(),_.Z8("srt"),_.Z8("pdc"),this.cancelPendingTasks(),IQr(this,l.forward,n),n.player&&(n.player.loaded=!1),lQE(this,V),_.KZN(T,V||{},n,2,{},!1,l).then(function(){I.setPageOffset(x.getCurrentPage(),H.scrollTop||0)}))}};
_.B.initHistoryManager=function(V){if(!this.hasNavigated){this.hasNavigated=!0;var l=_.h(this.hostElement).querySelector("#page-manager").getCurrentData();V=isNaN(V)?this.getPageOffset():V;var I=_.F().resolve(_.nb).currentEndpoint;this.replaceState(I,l,V)}};
_.B.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.B.onYtNavigateStart=function(V,l){this.cancelPendingTasks();l.noProgressBar||(V=_.F().resolve(_.Cs(OeE)))&&V.start();V=this.hasPendingNavigation?null:this.data;this.hasError=!1;var I=_.F().resolve(_.pa),H,T,x;_.z("kevlar_use_vimio_behavior")&&!((H=l.endpoint)==null?0:(T=H.commandMetadata)==null?0:(x=T.webCommandMetadata)==null?0:x.ignoreNavigation)&&(H=I.getCurrentPage())&&H.disconnectVisibilityRoot();I.prepareForNavigation(l.pageType,l.endpoint);_.z("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.vf(1,"pcl"),_.Op(this.pagePreparer,I.preparePage.bind(I,l.pageType,l.endpoint)));H=this.getPageOffset();this.initHistoryManager(H);l.reload||this.hasPendingNavigation?this.replaceState(l.endpoint,V,H):(V==null?void 0:V.page)==="watch"&&l.pageType==="watch"&&_.z("kevlar_replace_watch_to_watch_history_state")?this.replaceState(l.endpoint,V,H):(V==null?void 0:V.page)!=="shorts"||l.pageType!=="shorts"||l.endpoint.reelWatchEndpoint.sequenceParams||_.z("short_to_short_back_nav_killswitch")?l.type!=
"navigate-back"&&l.type!="navigate-forward"&&(l.pageType==="shorts"&&_.B$(this.hostElement,"yt-shorts-reset"),this.saveAndPush(l.url,l.endpoint,V,H)):this.replaceState(l.endpoint,V,0);this.hasPendingNavigation=!0};
var HXh=function(V){V.hasPendingNavigation=!1;(V=_.F().resolve(_.Cs(OeE)))&&V.finish()};
hS.prototype.onYtNavigateError=function(V,l){HXh(this);this.hasError=!0;l&&l.errorMessage?this.errorMessage=l.errorMessage:this.errorMessage=void 0;V=this.get("endpoint.commandMetadata.webCommandMetadata.url",l);var I=_.bt(window.location.href);V&&!I.pbjreload&&(l=l.navigationErrorReason||"10",_.z("kevlar_parent_on_pbjreload")&&(I={csn:_.oa()},this.get("data.endpoint.clickTrackingParams")&&(I.itct=this.data.endpoint.clickTrackingParams),_.f8(V,I)),_.oQ(_.qS(V,{pbjreload:l})))};
hS.prototype.onYtNavigateCache=function(V,l){var I=this,H=l.url,T=l.endpoint,x=l.data;V=!!l.miniplayer;l=!!l.skipHistory;if(H&&T&&x){var n=this.getPageOffset(),w=this.data||null;l||this.saveAndPush(H,T,w,n);H=_.KZN(_.F().resolve(_.nb),T,x,V?4:3,{},V);V&&H.then(function(){I.dataUpdatePromise&&I.dataUpdatePromise.then(function(){var N=_.F().resolve(_.pa);I.setPageOffset(N.getCurrentPage(),0)})})}};
hS.prototype.onYtNavigateFinish=function(V,l){var I=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){TAr(I,l.fromHistory)})};
var TAr=function(V,l){HXh(V);if(V.pendingPlayerOnResponseReceivedActions){for(var I=_.U(V.pendingPlayerOnResponseReceivedActions),H=I.next();!H.done;H=I.next())_.IN(H.value,V.hostElement);V.pendingPlayerOnResponseReceivedActions=[]}I=_.F().resolve(_.pa);!l&&V.hasNavigated&&((l=I.getCurrentPage())?l.is==="ytd-shorts"||V.tabGesturesIsActive||V.setPageOffsetForNavigation(l,0):_.hF(Error("al")));_.r_(function(){_.r_(function(){_.Z8("pda")})})};
hS.prototype.onYtNavigateRedirect=function(V){V.detail.url&&this.replaceUrl(V.detail.url)};
hS.prototype.onYtNavigate=function(V){if(!V.detail.endpoint){var l=new _.Yd("Error: Missing yt-navigate endpoint from target:",V.target,V.target.nodeName);_.Gr(l)}if(l=_.z("cold_missing_history"))l=PD(),l.init(!1),l=!(l.browserHistory.boundHistoryReplaceState&&l.browserHistory.boundHistoryPushState);if(l){_.ow("DISABLE_WARM_LOADS",!0);l=new _.Yd("Failed to initialize history manager",this.getDebugString());var I=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
I?_.hF(l):_.Gr(l)}l=V.detail.endpoint;var H,T;_.z("debug_forward_web_query_parameters")&&((H=l.commandMetadata)==null?0:(T=H.webCommandMetadata)==null?0:T.url)&&(l=JSON.parse(JSON.stringify(l)),l.commandMetadata.webCommandMetadata.url=_.R81(l.commandMetadata.webCommandMetadata.url,window.location.search));V={type:0,command:l,form:{params:V.detail.params,tempData:V.detail.tempData||{},requestType:V.detail.type,createScreenConfig:V.detail.createScreenConfig,reload:V.detail.reload?V.detail.reload:!1}};
_.z("kevlar_yt_navigate_command_handler")?(H=_.F().resolve(_.aw),V.form.skipDefaultElement=!0,H.resolveCommand(l,{form:V.form})):this.handleNavigate(V)};
hS.prototype.handleNavigate=function(V){this.hasSetScrollTopForNavigation=!1;var l=_.F().resolve(_.nb),I=V.form||{};l.navigate(V.command,I.reload,I.params,I.tempData,I.requestType,I.createScreenConfig)&&lQE(this,V.command,I.tempData)};
hS.prototype.onYtPageDataFetched=function(V,l){try{_.HIW().reset();this.data=l.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.F().resolve(_.pa).updatePageData(this.data);var I=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);I&&NlE(I);var H=this.get("response.responseContext.serviceTrackingParams",this.data);H&&NlE(H);var T=
this.get("playerResponse.onResponseReceivedActions",this.data);T&&(T=BAb(this,T));T&&_.d6(this.hostElement,T,this.hostElement);var x=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),n=this.get("response.responseContext.consistencyTokenJar",this.data);if(x||n){var w=_.PLW(),N=(0,_.EL.getValues)(w.tokenJars);x&&w.replace(N,x);n&&w.replace(N,n)}}catch(L){_.Gr(L)}};
var lQE=function(V,l,I){try{V.onYtEndpointChangeHandler(l,I)}catch(H){_.Gr(H)}};
_.B=hS.prototype;_.B.onYtEndpointChangeHandler=function(){};
_.B.setPageTitle=function(V){V=(this.pageTitle=V)?V+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+V};
_.B.onYtUpdateTitle=function(V,l){this.setPageTitle(l)};
_.B.setUnseenNotificationCount=function(V){this.unseenNotificationCount=V;this.setPageTitle(this.pageTitle)};
_.B.handleUpdateNotificationsUnseenCountAction=function(V){_.y(V,X7V)&&((V=_.y(V,X7V).unseenCount)?this.setUnseenNotificationCount(V):this.setUnseenNotificationCount(0))};
_.B.handleClearCookieAction=function(V){var l;(V=(l=_.y(V,LaE))==null?void 0:l.cookieName)&&_.iTN(V)};
_.B.onYtUpdateUnseenNotificationCount=function(V,l){this.setUnseenNotificationCount(l)};
_.B.loadData=function(V){var l=this;this.loadDepsPromise.then(function(){var I=_.F().resolve(_.Cs(_.nb));I||_.Gr(Error("bl"));if(V&&V.response){if(!V.endpoint){var H=_.qz(window.document.location.href)||"/",T="";if(H==="/"||H.startsWith("/?"))T="WEB_PAGE_TYPE_BROWSE";V.endpoint={commandMetadata:{webCommandMetadata:{url:H,webPageType:T,rootVe:3854}}}}_.KZN(I,V.endpoint,V,5,{})}else V.endpoint?I.navigate(V.endpoint):I.navigate(_.Yg);_.r0.cancelJob(l.zwiebackInitJobId);l.zwiebackInitJobId=_.r0.addLowPriorityJob(Blr)})};
var PD=function(){return _.F().resolve(_.Mg3)};
_.B=hS.prototype;_.B.getDebugString=function(){return PD().getDebugString()};
_.B.getThirdPartyManipulationSuspected=function(){return PD().getThirdPartyManipulationSuspected()};
_.B.replaceState=function(V,l,I){PD().saveAndReplace(V,l,I)};
_.B.saveAndPush=function(V,l,I,H){PD().saveAndPush(V,l,I,H)};
_.B.replaceUrl=function(V){PD().replaceUrl(V)};
var VCh=function(V){return _.z("web_honor_cache_for_back")&&(_.y(V.endpoint,_.vU)||_.y(V.endpoint,_.YV))?!0:!V||isNaN(V.expirationTime)?!1:(0,_.O_)()>V.expirationTime},IQr=function(V,l,I){var H=V.get("response.trackingParams",I),T=_.JO(),x=_.oa();
if(H&&T&&x&&(H=V.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",I),!H&&I.rootVe&&(H=I.rootVe),T=l?"forwardButton":"backButton",l=V.get("playerResponse.topbar.desktopTopbarRenderer."+T+".buttonRenderer.command.clickTrackingParams",V.data),V=V.get("response.topbar.desktopTopbarRenderer."+T+".buttonRenderer.command.clickTrackingParams",V.data),l=(V=l||V)?_.dj(V):void 0,V=_.x7(),T=[_.w6(I)],_.xg(V,H,l,{dataPromises:T,csnToClone:I.csn}),I.graftedVes))for(I=
_.U(I.graftedVes),H=I.next();!H.done;H=I.next())_.Ug(V,H.value)};
hS.prototype.onStoreGraftedVeAction=function(V){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(V)):_.hF(Error("cl"))};
var BAb=function(V,l){return l.filter(function(I){for(var H in I)if(gXb[H])return V.pendingPlayerOnResponseReceivedActions.push(I),!0;return!1})};
_.vI.Object.defineProperties(hS.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
var D7=hS;D7.prototype.onStoreGraftedVeAction=D7.prototype.onStoreGraftedVeAction;D7.prototype.loadData=D7.prototype.loadData;D7.prototype.onYtUpdateUnseenNotificationCount=D7.prototype.onYtUpdateUnseenNotificationCount;D7.prototype.handleClearCookieAction=D7.prototype.handleClearCookieAction;D7.prototype.handleUpdateNotificationsUnseenCountAction=D7.prototype.handleUpdateNotificationsUnseenCountAction;D7.prototype.setUnseenNotificationCount=D7.prototype.setUnseenNotificationCount;
D7.prototype.onYtUpdateTitle=D7.prototype.onYtUpdateTitle;D7.prototype.setPageTitle=D7.prototype.setPageTitle;D7.prototype.onYtEndpointChangeHandler=D7.prototype.onYtEndpointChangeHandler;D7.prototype.onYtPageDataFetched=D7.prototype.onYtPageDataFetched;D7.prototype.handleNavigate=D7.prototype.handleNavigate;D7.prototype.onYtNavigate=D7.prototype.onYtNavigate;D7.prototype.onYtNavigateRedirect=D7.prototype.onYtNavigateRedirect;D7.prototype.onYtNavigateFinish=D7.prototype.onYtNavigateFinish;
D7.prototype.onYtNavigateCache=D7.prototype.onYtNavigateCache;D7.prototype.onYtNavigateError=D7.prototype.onYtNavigateError;D7.prototype.onYtNavigateStart=D7.prototype.onYtNavigateStart;D7.prototype.cancelPendingTasks=D7.prototype.cancelPendingTasks;D7.prototype.initHistoryManager=D7.prototype.initHistoryManager;D7.prototype.onYtHistoryLoad=D7.prototype.onYtHistoryLoad;D7.prototype.onYtHistoryPop=D7.prototype.onYtHistoryPop;D7.prototype.onYtNavigateSetPageOffset=D7.prototype.onYtNavigateSetPageOffset;
D7.prototype.setPageOffset=D7.prototype.setPageOffset;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],D7.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],D7.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],D7.prototype,"hasError",void 0);_.O([_.q(),_.a("design:type",Object)],D7.prototype,"errorMessage",void 0);
_.O([_.W("yt-navigate-set-page-offset"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],D7.prototype,"onYtNavigateSetPageOffset",null);_.O([_.W("yt-history-pop"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],D7.prototype,"onYtHistoryPop",null);
_.O([_.W("yt-history-load"),_.a("design:type",Function),_.a("design:paramtypes",[Event,_.Sa3]),_.a("design:returntype")],D7.prototype,"onYtHistoryLoad",null);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],D7.prototype,"onYtNavigate",null);_.O([_.W("yt-update-title"),_.a("design:type",Function),_.a("design:paramtypes",[Event,String]),_.a("design:returntype")],D7.prototype,"onYtUpdateTitle",null);
_.O([_.W("yt-update-unseen-notification-count"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Number]),_.a("design:returntype")],D7.prototype,"onYtUpdateUnseenNotificationCount",null);D7=_.O([_.B1()],D7);aiB.YtdAppBehavior=[_.aU.YtActionHandlerBehavior,D7.prototype];var Z7=function(){var V=_.To.apply(this,arguments)||this;V._noAccessors=!0;return V};
_.t(Z7,_.To);Z7.prototype.ready=function(){var V=this;_.h(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){V.onChange_()})};
Z7.prototype.dataChanged_=function(){_.h(this.hostElement).querySelector("#checkbox").checked=!1};
Z7.prototype.onChange_=function(){var V=_.h(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.B$(this.hostElement,"yt-dismissal-reason-"+V,this.data.feedbackToken)};
var Sw=Z7;Sw.prototype.dataChanged_=Sw.prototype.dataChanged_;_.O([_.q(),_.a("design:type",Object)],Sw.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sw.prototype,"dataChanged_",null);Sw=_.O([_.B1()],Sw);var xkQ=[Sw.prototype];var Rc=function(){var V=_.To.apply(this,arguments)||this;V.timeoutJobId=0;V.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return V};
_.t(Rc,_.To);Rc.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Rc.prototype.startTimeout=function(){var V=this,l=this.data&&this.data.displayDurationSeconds;l&&!this.timeoutJobId&&(this.timeoutJobId=_.et(_.r0,function(){_.xB(V.hostElement,"yt-close-popup-action",[V.is]);V.timeoutJobId=0},l*1E3))};
Rc.prototype.cancelTimeout=function(){_.r0.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
var Qd=Rc;Qd.prototype.ytdHatsSurveyBehaviorDataChanged=Qd.prototype.ytdHatsSurveyBehaviorDataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Qd.prototype,"ytActionHandlerBehavior",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qd.prototype,"ytdHatsSurveyBehaviorDataChanged",null);Qd=_.O([_.B1()],Qd);var Ukg=[_.aU.YtActionHandlerBehavior,Qd.prototype];var n1Y=function(V,l){return V.SHARED_RENDERERS_.hasOwnProperty(l)?"yt":V.prefix},cD={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}};cD.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.z("kevlar_mealbar_above_player"),modern:_.z("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"}};
cD.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};cD.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};cD.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
cD.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)"}};
cD.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};
cD.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};
cD.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};
cD.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};cD.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"}};
cD.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};cD.TOAST={component:null,properties:{}};var $k2=new function(V,l,I){this.supportedPopups=V;this.navigationEndpointPopupMap=l;this.popupTypeMap=I;this.supportedPopups=V;this.navigationEndpointPopupMap=l;this.popupTypeMap=I}({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:_.z("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"}),dkQ=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$17492_popupConfig=cD;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 wsI=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.oH.getInstance()},WD=function(V,l){var I=V.pageNameToElement.get(l);
if(!I){switch(l){case "watch":var H=_.z("web_watch_force_learning_journey_for_testing")?_.u9("ytd-watch-learning-journey"):_.z("kevlar_watch_fixie")?_.u9("ytd-watch-fixie"):_.z("kevlar_watch_grid")?_.u9("ytd-watch-grid"):_.u9("ytd-watch-flexy");break;case "learning-journey-watch":H=_.u9("ytd-watch-learning-journey");break;case "shorts":H=_.u9("ytd-shorts");break;case "search":H=_.u9("ytd-search");break;case "channel":H=_.u9("ytd-browse");H.pageSubtype="channels";break;case "trending":H=_.u9("ytd-browse");
H.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":H=
_.u9("ytd-browse");H.pageSubtype=l;break;case "browse":H=_.u9("ytd-browse");break;default:_.hF(new _.Yd("Error getting page element for type",l))}I=H;V.pageNameToElement.set(l,I)}return I};
wsI.prototype.preparePage=function(V,l,I){I&&(V=np(I)||V);if(V!=="watch"){var H=this.elementPoolPopulator,T=V;T!=H.targetPage_&&H.pendingPages_.indexOf(T)>-1&&(H.targetPage_&&(H.pendingPages_.unshift(H.targetPage_),H.abort()),iHI(H,T),_.z90(H,T))}if((H=WD(this,V))||!_.y(I,_.cF)){H.isAttached||H===l||(H.hidden=!0);if(!(H.data||V==="watch"&&_.z("swatcheroo_page_pool_dont_provide_filler_data"))){var x;if(V=(x=_.h6("FILLER_DATA",{})[V])==null?void 0:x.response)H.data=V}return H}};var NAh=function(V){this.JSC$28199_clientRoot=V;this.playlistHandlerActionMap={"yt-add-to-playlist-command":LMP,"yt-end-playlist-command":efI,"yt-recover-playlist-command":FMP,"yt-refresh-playlist-command":y3g,"yt-playlist-remove-videos-action":Xnu};_.bx(_.WF.getInstance(),this.playlistHandlerActionMap,this.JSC$28199_clientRoot);$OY()},Kzu;var ba=function(V,l,I){this.apiKey=V;this.endpoint=l;this.confidenceThreshold=I===void 0?.5:I;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=l==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||l==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
l==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||l==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new ISh};
_.B=ba.prototype;
_.B.start=function(V){if(this.state===0)if(this.isOnline()){V.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=V.supportsHttpHeadersOverwriteParam);V.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=V.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.D8("voice_assistant");_.S1("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=V.languageCode||"en-US";this.supportsCrossDomainXhr=V.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=V.youtubeAssistantRequest||null;this.listeningHandler=V.listeningHandler||this.listeningHandler;this.audioDetectedHandler=V.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=V.stopHandler||this.stopHandler;this.completeHandler=V.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=V.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=V.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
V.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=V.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=V.accessToken;this.additionalHeaders=V.additionalHeaders||{};var l;this.prefetchResponseTimeoutMs=(l=V.prefetchResponseTimeoutMs)!=null?l:this.prefetchResponseTimeoutMs;jL6(this);this.startAudio();YsB(this)}else this.errorHandler("OFFLINE")};
_.B.stop=function(V){var l=V===void 0?{}:V;V=l.logCancel===void 0?!0:l.logCancel;var I=l.logMicClosed===void 0?!0:l.logMicClosed;var H=l.handleError===void 0?!0:l.handleError;l=l.handleStop===void 0?!0:l.handleStop;this.state!==0&&(V&&qp("voz_cx"),Mp(this,{logMicClosed:I,handleStop:l}),H&&this.errorHandler("ABORTED"))};
_.B.getState=function(){return this.state};
_.B.isSupported=function(){return!0};
_.B.stopAudio=function(V){(V===void 0||V)&&qp("voz_mf")};
_.B.startAudio=function(){qp("voz_vp");return _.w6(null)};
var LzE=function(V,l){V.channelOpen&&(V.state!==2&&(V.state=2,qp("voz_ss"),V.listeningHandler()),l=new Uint8Array(l),l='{ "audioIn": "'+_.rg(l)+'" }',V.channel.send(l))},Mp=function(V,l){var I=l===void 0?{}:l;
l=I.logMicClosed===void 0?!0:I.logMicClosed;I=I.handleStop===void 0?!0:I.handleStop;V.vozEndOfDataTimeout>-1&&(clearTimeout(V.vozEndOfDataTimeout),V.vozEndOfDataTimeout=-1);e2E(V);V.stopAudio(l);V.channel&&(V.channelOpen=!1,V.manuallyClosedChannel=!0,V.channel.close(),V.channel=void 0);V.transcribedSpeechResults=[];V.state=0;I&&V.stopHandler()},jL6=function(V){var l={httpHeadersOverwriteParam:V.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},V.additionalHeaders,V.accessToken&&V.isUsingVoz?{Authorization:"Bearer "+V.accessToken}:{"x-goog-api-key":V.apiKey}),supportsCrossDomainXhr:V.supportsCrossDomainXhr};V.channel=new SI(V.endpoint,l);V.channel.open();_.NR(V.channel,"w",function(){var I=V.channel,H=I.send,T=V.isUsingVoz?"PLACEHOLDER":"example";T={config:{dialogStateIn:{languageCode:V.languageCode},deviceConfig:{deviceId:T,deviceModelId:T},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!V.isUsingVoz)T.config.requestType=4;else if(V.isUsingVoz&&V.youtubeAssistantRequest){var x=JSON.stringify(V.youtubeAssistantRequest);T.config.internalIn={youtubeAssistantS3InputJson:x}}H.call(I,T);V.channelOpen=!0;V.manuallyClosedChannel=!1});
_.NR(V.channel,"x",function(){V.manuallyClosedChannel||(V.channelOpen=!1,V.channel=void 0,Mp(V))});
_.NR(V.channel,"z",function(I){if(I.data){e2E(V);for(var H=0;H<I.data.length;H++){var T=V,x=I.data[H],n=x.speechResults;if(n)a:{var w=[];x=[];var N=!1;n=_.U(n);for(var L=n.next();!L.done;L=n.next()){L=L.value;if(L.noSpeech){Mp(T);T.errorHandler("NO_SPEECH");break a}L.transcript!==void 0&&L.stability!==void 0&&(L.stability<T.confidenceThreshold&&(N=!0),N?x.push(L.transcript):w.push(L.transcript))}if(w.length!==0||x.length!==0)w=w.join(" "),x=x.join(" "),T.receivedEndOfUtterance&&!T.isUsingVoz?T.isUsingVoz||
T.completeHandler([w,x]):(N=T,n=w,L=x,qp("voz_sf"),N.transcriptionUpdateHandler(n,L),N.transcribedSpeechResults=[n,L]),T.receivedEndOfUtterance&&(qp("voz_eou"),T.transcriptionCompleteHandler([w,x]),T.isUsingVoz&&(T.prefetchResponseTimeoutMs===0?Mp(T,{logMicClosed:!1,handleStop:!0}):T.prefetchResponseTimeoutMs>0&&kcE(T)))}else T.isUsingVoz&&(x==null?0:x.internalOut)?(x=JSON.parse(x.internalOut.youtubeAssistantS3OutputJson),x.userHasOptedInToVaa||x.vaaConsent?T.vaaConsentUpdateHandler(!!x.userHasOptedInToVaa,
!!x.vaaConsent):(Fzg(T),x&&(w=T.transcribedSpeechResults,qp("voz_rqf"),T.completeHandler(w,x)))):x.eventType==="END_OF_UTTERANCE"?T.receivedEndOfUtterance=!0:(qp("voz_err"),T.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.hF(Error("dl")))}}});
_.NR(V.channel,"y",function(I){Mp(V);switch(I.status){case 1:I="WEBCHANNEL_NETWORK_ERROR";break;case 2:I="WEBCHANNEL_SERVER_ERROR";break;default:I="WEBCHANNEL_UNKNOWN_ERROR"}V.errorHandler(I);V.logError(Error(I))})};
ba.prototype.logError=function(V){_.Gr(V)};
ba.prototype.isOnline=function(){return!0};
var kcE=function(V){Fzg(V);V.prefetchResponseSetTimeoutId=setTimeout(function(){Mp(V,{logMicClosed:!1,handleStop:!0})},V.prefetchResponseTimeoutMs)},Fzg=function(V){V.prefetchResponseSetTimeoutId>-1&&(clearTimeout(V.prefetchResponseSetTimeoutId),V.prefetchResponseSetTimeoutId=-1)},YsB=function(V){e2E(V);
V.noResponseReceivedTimeout=window.setTimeout(function(){Mp(V);V.errorHandler("NO_SPEECH")},11E3)},e2E=function(V){V.noResponseReceivedTimeout>-1&&(window.clearTimeout(V.noResponseReceivedTimeout),V.noResponseReceivedTimeout=-1)},qp=function(V){_.Z8(V,void 0,"voice_assistant")};var sy=function(){ba.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.t(sy,ba);sy.prototype.isSupported=function(){return tau()};
sy.prototype.startAudio=function(){var V=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.bK(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(H){XsE(V,H)};
this.processor.connect(this.audioContext.destination);var l=function(H){V.stream=H;if(!V.audioContext)return _.w6(null);H=V.audioContext.createMediaStreamSource(H);V.processor&&H.connect(V.processor);return _.w6(null)},I={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?l(this.stream):navigator.mediaDevices.getUserMedia(I).then(l).catch(function(H){Mp(V);H.name&&H.name==="NotAllowedError"?V.errorHandler("NO_MICROPHONE_PERMISSION"):(V.errorHandler("AUDIO_ERROR"),V.logError(H));return _.bK(null)});
return ba.prototype.startAudio.call(this)};
sy.prototype.stopAudio=function(V){V=V===void 0?!0:V;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(l){l.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;ba.prototype.stopAudio.call(this,V)};
sy.prototype.isOnline=function(){return navigator.onLine};
var XsE=function(V,l){if(V.audioContext)if(window.OfflineAudioContext){var I=V.audioContext.sampleRate,H=l.inputBuffer.getChannelData(0);l=new window.OfflineAudioContext(1,H.length,16E3);for(var T=l.createBuffer(1,H.length,I),x=T.getChannelData(0),n=0,w=0;w<H.length;w++)x[w]=H[w],n+=x[w]*x[w];!V.audioDetected&&Math.sqrt(n/H.length)>.01&&(V.audioDetected=!0,V.audioDetectedHandler());H=l.createBufferSource();H.buffer=T;H.connect(l.destination);H.start(0);l.oncomplete=function(N){N=N.renderedBuffer.getChannelData(0);
for(var L=Math.floor(16384E3/I),e=new Int16Array(L),k=0;k<L;++k)e[k]=Math.max(-1,Math.min(1,N[k]))*32767;LzE(V,e.buffer)};
l.startRendering()}else z2B(V,l)},z2B=function(V,l){var I=V.audioContext.sampleRate,H=l.inputBuffer.getChannelData(0),T=Math.floor((I+8E3)/16E3);
I=H.length/T;l=new Float32Array(I);for(var x=0;x<I;++x)l[x]=H[x*T];H=new Int16Array(I);for(T=0;T<I;++T)H[T]=Math.max(-1,Math.min(1,l[T]))*32767;LzE(V,H.buffer)};var yLr={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var tCE=function(){this.JSC$17557_audioEnabled=!0;this.audioFeedbackHolder={}};
tCE.prototype.isPlaying=function(V){return V.currentTime>0&&!V.paused&&!V.ended&&V.readyState>2};
var rLP=function(V){for(var l=_.U(Object.values(yLr)),I=l.next();!I.done;I=l.next())I=I.value,V.audioFeedbackHolder[I]=new Audio,V.audioFeedbackHolder[I].src="/s/search/audio/"+I+".mp3",V.audioFeedbackHolder[I].load()},pL=function(V,l){if(V.JSC$17557_audioEnabled!==!1&&l in V.audioFeedbackHolder){for(var I=_.U(Object.values(V.audioFeedbackHolder)),H=I.next();!H.done;H=I.next())H=H.value,V.isPlaying(H)&&H.pause();
V.audioFeedbackHolder[l].currentTime=0;V.audioFeedbackHolder[l].play().catch(function(){})}};var Gcu=function(V,l){var I=this;this.store=V;this.service=l;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){I.setState("offline");I.stop()};
this.audioPlayer=new tCE;var H;(H=this.audioPlayer)==null||rLP(H)};
_.B=Gcu.prototype;_.B.getService=function(){return this.service};
_.B.isEnabled=function(){return!!this.service};
_.B.isSupported=function(){var V;return(V=this.service)==null?void 0:V.isSupported()};
_.B.start=function(){var V=this,l,I,H,T,x,n,w,N,L,e,k,X,r;return _.d(function(E){switch(E.nextAddress){case 1:V.store.dispatch(jYr("",""));if(!navigator.onLine)return V.setState("offline"),E.return();window.addEventListener("offline",V.handleOfflineEvent);V.stream=null;if(!V.permissionsSupported){E.jumpTo(2);break}_.jd(E,3);return _.K(E,E16(V),5);case 5:l=E.yieldResult;if(!l)return(I=V.audioPlayer)==null||pL(I,"failure"),E.return();V.service.stream=V.stream;V.setState("listening");_.Rv(E,2);break;
case 3:_.kE(E),V.permissionsSupported=!1;case 2:H={context:_.xvc(_.av())},H.youtubeAssistantParams={searchParams:{inlineSearchResponse:V.enableInlineSearchResponse}},T=function(D,Z){V.store.dispatch(YnB("transcribing"));V.store.dispatch(jYr(D,Z))},x=function(){var D;
(D=V.audioPlayer)==null||pL(D,"open");V.setState("listening")},n=function(){V.setState("transcribing")},w=function(D){V.setErrorState(D)},N=function(D,Z){var S;
(S=V.audioPlayer)==null||pL(S,"success");Z&&(_.z("kevlar_voice_search_inline_search")&&(V.responseProcessor=_.F().resolve(_.j4y),V.responseProcessor&&(S=Z.navigationAction,D=Z.prefetchedSearchResponse,S&&D&&(S=(new _.POQ).JSC$11772_getStoreKey(S),_.vA(V.responseProcessor,D,S)))),V.JSC$17575_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",Z))},L=function(){window.removeEventListener("offline",V.handleOfflineEvent)},e=_.Yzq(!1),k=e.Authorization!=null,X=V.enableFirstPartyAuth||
V.enableFPAForSignedInUsers&&k?e:{"X-Goog-Visitor-Id":e["X-Goog-Visitor-Id"]},r={completeHandler:N,
errorHandler:w,listeningHandler:x,audioDetectedHandler:n,stopHandler:L,transcriptionUpdateHandler:T,youtubeAssistantRequest:H,languageCode:JLP(),additionalHeaders:X,supportsCrossDomainXhr:V.enableFirstPartyAuth||V.enableFPAForSignedInUsers&&k,supportsHttpHeadersOverwriteParam:!V.disableHttpHeadersOverwrite},V.service.start(r),_.FU(E)}})};
_.B.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.B.reset=function(){this.store.dispatch(_.IA({type:"RESET_VOICE_SEARCH_STATE"}))};
_.B.setState=function(V){this.store.dispatch(YnB(V))};
_.B.setErrorState=function(V){switch(V){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var l;(l=this.audioPlayer)==null||pL(l,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)E16(this);else{var I;(I=this.audioPlayer)==null||pL(I,"failure");this.setState("permission-denied")}break;case "ABORTED":var H;(H=this.audioPlayer)==null||pL(H,"no_input");break;default:var T;(T=this.audioPlayer)==
null||pL(T,"no_input");this.setState("timeout")}};
var E16=function(V){var l,I;return _.d(function(H){switch(H.nextAddress){case 1:return _.K(H,navigator.permissions.query({name:"microphone"}),2);case 2:l=H.yieldResult;if(l.state==="granted")return H.return(!0);if(l.state==="denied")return V.setState("permission-denied"),H.return(!1);V.setState("permission");I={audio:{sampleSize:16,channelCount:1},video:!1};_.jd(H,3);return _.K(H,navigator.mediaDevices.getUserMedia(I),5);case 5:return V.stream=H.yieldResult,H.return(!0);case 3:return _.kE(H),V.setState("permission-denied"),
H.return(!1)}})},JLP=function(){var V=_.h6("INNERTUBE_CONTEXT_HL"),l=_.h6("INNERTUBE_CONTEXT_GL");
return V.indexOf("-")>-1?V:V+"-"+l};var o16=function(V,l,I){Gcu.call(this,l,I);this.JSC$17575_actionRouter=V;this.enableInlineSearchResponse=_.z("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.z("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.z("kevlar_voice_search_enable_fpa_signedin_users")},h2V;
_.t(o16,Gcu);
var PTE=function(){if(!h2V){var V="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.z("kevlar_voice_search_auth_enabled")||_.z("kevlar_voice_search_use_yt_endpoint")?V="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.z("kevlar_voice_search_use_fp_endpoint")&&(V="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");h2V=
new o16(_.WF.getInstance(),_.v4(),new sy(_.h6("VOZ_API_KEY"),V,.5))}return h2V};var DkY=function(V){this.JSC$17579_clientRoot=V;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$17579_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)]]));V=_.U(this.eventListeners);for(var l=V.next();!l.done;l=V.next()){var I=_.U(l.value);l=I.next().value;I=I.next().value;I=_.U(I);for(var H=I.next();!H.done;H=I.next()){var T=
_.U(H.value);H=T.next().value;T=T.next().value;l.addEventListener(H,T)}}_.bx(_.WF.getInstance(),this.autonavPauseActionMap,this.JSC$17579_clientRoot)},ZXE,SsY=function(V){return _.z("kevlar_autonav_popup_filtering")?(V=_.qv(V))?V.hasAttribute("prevent-autonav"):!0:!0};
_.B=DkY.prototype;_.B.onIronOverlayOpened=function(V){SsY(V)&&(this.autonavPauseReasons.overlayOpen=!0,AS(this))};
_.B.onIronOverlayClosed=function(V){SsY(V)&&(this.autonavPauseReasons.overlayOpen=!1,AS(this))};
_.B.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;AS(this)};
_.B.onYtAutonavPauseBlur=function(){var V=this;_.r0.addJob(function(){V.isInBackground()||(V.autonavPauseReasons.inputBoxFocus=!1,AS(V))},8,0)};
_.B.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;AS(this)};
_.B.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;AS(this)};
_.B.onYtAutonavPauseScroll=function(){var V=_.F().resolve(_.pa);V.isOnWatch()&&(V=V.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=V.getBoundingClientRect().top<-200,AS(this))};
_.B.onYtAutonavPauseUserEngagement=function(V){var l=this;if(_.z("user_engagement_enable_autoplay_pause_feature")){var I=Number(V.lowEngagementThresholdMs);isNaN(I)||I<=0||V.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.C4("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.F().resolve(_.Fp),_.f0()<I?_.et(_.r0,function(){_.C4("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.URY()?(this.userEngagementCsn=_.oa(),_.et(_.r0,function(){_.C4("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
l.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,AS(this)):_.C4("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.zJw(Error("el`"+JSON.stringify(V)))};
_.B.onYtAutonavPausePlayer=function(V){this.autonavPauseReasons.requestedByPlayer=!!V.detail;AS(this)};
_.B.onYtAutonavVisibilityChanged=function(){var V=this,l,I,H;return _.d(function(T){if(T.nextAddress==1)return(l=_.u8())?_.K(T,l.getPlayerPromise(),2):T.return();I=T.yieldResult;H=I.isMuted()||I.getVolume()===0;V.autonavPauseReasons.backgroundAndMute=V.isInBackground()&&H;AS(V);_.FU(T)})};
_.B.onYtAutonavPausePlayerEnded=function(){_.F().resolve(_.Fp);var V=144E5;_.z("user_engagement_enable_autoplay_pause_feature")||_.z("is_part_of_any_user_engagement_experiment")||(V=45E5);this.autonavPauseReasons.longIdle=_.f0()>V;R2P(this);AS(this)};
_.B.onYtUserActivity=function(){var V=this;this.autonavPauseReasons.userEngagement&&(_.et(_.r0,function(){_.C4("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",V.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,AS(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.et(_.r0,function(){_.C4("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",V.userEngagementCsn);_.rT()}),this.autonavPauseReasons.youthereLactExperiment=!1,AS(this));
this.autonavPauseReasons.longIdle&&!_.z("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,AS(this))};
_.B.isInBackground=function(){var V=window.document.visibilityState;return!(!V||V==="visible")};
var AS=function(V){for(var l=!1,I=_.U(Object.values(V.autonavPauseReasons)),H=I.next();!H.done;H=I.next())H=H.value,l=l||H;l?_.f7.getInstance().pause(V.autonavPauseReasons):(V=_.f7.getInstance(),V.autonavState_==3?(V.setState(2,!1,!1),V.autonavPauseReason_=void 0):V.autonavState_==1&&(V.disabledAutonavPauseReason_=void 0))},R2P=function(V){var l=!1;
if(_.z("enable_autoplay_pause_by_lact")){_.F().resolve(_.Fp);l=_.g7("autoplay_pause_by_lact_sec")*1E3;var I=_.g7("autoplay_pause_by_lact_sampling_fraction");(l=_.f0()>=l&&Math.random()<I)&&!_.URY()&&(_.et(_.r0,function(){_.C4("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),l=!1)}l!==V.autonavPauseReasons.youthereLactExperiment&&(V.autonavPauseReasons.youthereLactExperiment=l)&&(V.userEngagementCsn=_.oa(),_.et(_.r0,function(){_.C4("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",V.userEngagementCsn)}));
V.autonavPauseReasons.userEngagement&&_.et(_.r0,function(){_.C4("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",V.userEngagementCsn)})};
DkY.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.C4("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.rT(),this.autonavPauseReasons.youthereLactExperiment=!1,AS(this));this.autonavPauseReasons.userEngagement&&(_.C4("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,AS(this))};
DkY.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var QLI=function(){var V=_.M.apply(this,arguments)||this;V.miniGuideVisible=!1;V.guideOpened=_.z("disable_initial_guide_state_fix")?!1:V.canFitPersistentGuide(V.initialBodyClientWidth);V.guideUserStateOpened=V.getInitialGuideUserStateOpened();V.isFullscreenShorts=!1;V.miniGuideWidthThreshold=_.g7("kevlar_mini_guide_width_threshold",791);V.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");V.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
V.persistentGuideBlockedPagePathRegex=new RegExp(V.persistentGuideBlockedPagesPatterns.join("|"));V.animationTransitionDuration=0;V.lateDataResolver=_.QN();V.serviceEndpoint=GdY;V.initialGuideDataFetchFailed=!1;V.initialLoad=!0;V.guideRenderers=new Set;V.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return V};
_.t(QLI,_.M);_.B=QLI.prototype;_.B.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.B.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.B.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.B.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.B.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.B.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.B.ready=function(){_.F().addProvider({provide:_.W0,useValue:this.hostElement})};
_.B.attached=function(){var V=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.VP(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.VP(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.VP(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.VP(this,this.onYtGuideShow));_.Al(this,function(){V.animationTransitionDuration=200})};
_.B.detached=function(){document.removeEventListener("yt-navigate-finish",_.VP(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.VP(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.VP(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.VP(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.VP(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.VP(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.VP(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.B.getData=function(){return this.data};
_.B.load=function(){var V=this,l,I,H,T;return _.d(function(x){switch(x.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=V.lateDataResolver.resolve.bind(V),x.return(V.lateDataResolver.promise);if(window.ytInitialGuideData)return l=_.QN(),l.resolve(window.ytInitialGuideData),x.return(l.promise);H=!1;_.jd(x,2);return _.K(x,V.fetchGuideData(),4);case 4:I=x.yieldResult;_.Rv(x,3);break;case 2:T=_.kE(x),T.message==="Returned error"&&(H=!0);
case 3:if(I)return x.return(I);V.onYtGuideClose();H||(V.initialGuideDataFetchFailed=!0);return x.return(V.lateDataResolver.promise)}})};
_.B.fetchGuideData=function(){var V=this,l,I,H,T,x,n;return _.d(function(w){if(w.nextAddress==1)return V.guidePromise||(V.guidePromise=_.$B(V.hostElement,[V.serviceEndpoint])),_.K(w,V.guidePromise,2);if(w.nextAddress!=3)return l=w.yieldResult,I=_.F(),H=I.resolve(_.Mb),_.K(w,H(),3);(T=w.yieldResult)&&((x=l)==null?0:x.data)&&((n=l.data.responseContext)==null?void 0:n.maxAgeSeconds)!==0&&T.put("service:guide:fallback",new _.$r({innertubeResponse:l.data}));return w.return(l.data)})};
_.B.initializeGuideDataIfEmpty=function(){var V=this,l,I;return _.d(function(H){if(H.nextAddress==1){if(!V.initialGuideDataFetchFailed||V.data)return H.return();_.jd(H,2);return _.K(H,V.fetchGuideData(),4)}if(H.nextAddress!=2)return(l=H.yieldResult)&&V.lateDataResolver.resolve(l),_.Rv(H,0);I=_.kE(H);_.hF(I);_.FU(H)})};
_.B.initializeGuideData=function(){var V=this,l;return _.d(function(I){switch(I.nextAddress){case 1:return _.e7(v7b(),{mainAppWeb:_.RQ()}),_.jd(I,2),_.K(I,V.load(),4);case 4:V.data=I.yieldResult;_.Rv(I,3);break;case 2:_.kE(I),_.k_(v7b(),"FAILURE");case 3:l=V.data&&V.data.items&&V.data.items.length>0?"SUCCESS":"FAILURE",_.k_(v7b(),l),_.FU(I)}})};
_.B.setGuideData=function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1)return l.disabled?T.return():l.data?(V.data=l.data,l.guideRenderers.add(V),T.return()):_.K(T,l.initializeGuideData(),2);l.graftGuideToPage();I=_.PO("IS_HOMEPAGE_COLD")?"eop":void 0;_.z("disable_element_pool_populator")?l.setGuideDataAfterInit(V):(H=new _.vf(1,I),_.Op(H,l.setGuideDataAfterInit.bind(l,V)));_.FU(T)})};
_.B.setGuideDataAfterInit=function(V){V.data=this.data;V.markDirty();this.guideRenderers.add(V);_.r_(function(){_.Z8("gle")});
_.Al(this,function(){_.Z8("gpe")})};
_.B.graftGuideToPage=function(){if(this.data){var V=this.data&&this.data.trackingParams;V&&(V=_.dj(V),_.nn(_.x7(),V))}};
_.B.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.VP(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.B.onDrawerOpenedChanged=function(V,l){!l.value&&this.guideOpened&&(this.guideOpened=!1)};
_.B.onYtGuideToggle=function(V){var l=this.guideOpened;this.guideOpened=!l;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var I=_.Fu();_.Xu(0,109,!this.guideUserStateOpened);I.save()}this.updateGuideDrawerElementState();if(this.guideElement){var H;this.guideOpened&&((H=V.detail)==null?0:H.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.VP(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.VP(this,
this.onAppDrawerTransitioned))}l||this.initializeGuideDataIfEmpty()};
_.B.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.VP(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.MD(this.guideElement)};
_.B.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.VP(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(NQI(this.guideOpened))};
_.B.guidePersistentAndVisibleChanged=function(){_.U4(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.B.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.IA({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.B.miniGuideVisibleChanged=function(){_.U4(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.B.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(NQI(this.guideOpened)),this.initialLoad=!1);_.U4(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.B.activeEndpointChanged=function(){_.U4(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.B.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.B.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()};
_.B.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var V=this.canFitPersistentGuide(this.cachedClientWidth);V?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=V}this.updateGuideDrawerElementState()};
_.B.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.B.getGuideOpened=function(){return this.guideOpened};
_.B.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.B.getActiveEndpoint=function(){return this.activeEndpoint};
_.B.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.B.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&&_.B$(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.B.computeGuidePersistentAndVisible=function(){var V=this;_.Go(this,"computeGuidePersistentAndVisible",function(){V.guidePersistentAndVisible=V.guideOpened&&V.guidePersistent;V.guideIsVisibleButNotPersistent=!(!V.guideOpened||V.guidePersistent)})};
_.B.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.B.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.B.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.B.startLoadingWatch=function(){this.closeGuide()};
_.B.startLoadingShorts=function(){_.z("web_hide_guide_on_shorts")&&this.closeGuide()};
_.B.onYtNavigateFinish=function(V,l){if(!_.NU||l){this.activeEndpoint=l.endpoint;this.pageType=l.pageType;this.pageUrl=l.response.url;var I,H;V=(H=_.y((I=l.endpoint)==null?void 0:I.commandMetadata,_.mK))==null?void 0:H.url;!this.pageUrl&&V&&(this.pageUrl=V);_.z("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.B.getVisibleGuideRenderer=function(){for(var V=_.U(this.guideRenderers),l=V.next();!l.done;l=V.next())if(l=l.value,this.miniGuideVisible&&l.is==="ytd-mini-guide-renderer"||this.guideOpened&&l.is==="ytd-guide-renderer")return l;return null};
_.B.markGuideRendererDirty=function(V){if(V){typeof V.markDirty==="function"&&V.markDirty();V=_.U([].concat(_.oI(_.h(V).children)));for(var l=V.next();!l.done;l=V.next())this.markGuideRendererDirty(l.value)}};
_.B.persistentGuideEnabled=function(V,l){if(!l||V==="watch"||V==="settings"||V==="shorts"&&this.isFullscreenShorts||_.z("reels_web_disable_persistent_guide_shorts")&&V==="shorts")return!1;var I=_.Bx(l)||"";return _.z("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(H){return I===H}):!this.persistentGuideBlockedPagePathRegex.test(I)};
_.B.canFitPersistentGuide=function(V){var l=_.g7("kevlar_persistent_guide_width_threshold",1312);return l===-1||_.z("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:V>l};
_.B.canFitMiniGuide=function(V){return this.miniGuideWidthThreshold===-1?!1:V>this.miniGuideWidthThreshold};
_.B.onResize=function(){var V=this;_.Go(this,"calculateGuideState",function(){V.onResizeDebounced()})};
_.B.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.B.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.B.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.B.getInitialGuideUserStateOpened=function(){return!_.Fu().getFlag(109)};
_.vI.Object.defineProperties(QLI.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.h6("initialBodyClientWidth")||window.innerWidth}}});
var ua=QLI;ua.prototype.onResize=ua.prototype.onResize;ua.prototype.observeForMiniGuideVisible=ua.prototype.observeForMiniGuideVisible;ua.prototype.computeGuidePersistentAndVisible=ua.prototype.computeGuidePersistentAndVisible;ua.prototype.cachedClientWidthChanged=ua.prototype.cachedClientWidthChanged;ua.prototype.resetGuide=ua.prototype.resetGuide;ua.prototype.activeEndpointChanged=ua.prototype.activeEndpointChanged;ua.prototype.guideOpenedChanged=ua.prototype.guideOpenedChanged;
ua.prototype.miniGuideVisibleChanged=ua.prototype.miniGuideVisibleChanged;ua.prototype.guideIsVisibleButNotPersistentChanged=ua.prototype.guideIsVisibleButNotPersistentChanged;ua.prototype.guidePersistentAndVisibleChanged=ua.prototype.guidePersistentAndVisibleChanged;ua.prototype.onGuideElementChanged=ua.prototype.onGuideElementChanged;ua.prototype.onGuidePersistentChanged=ua.prototype.onGuidePersistentChanged;ua.prototype.onRenderGuideChanged=ua.prototype.onRenderGuideChanged;
ua.prototype.onActiveEndpointChanged=ua.prototype.onActiveEndpointChanged;ua.prototype.onMiniGuideVisibleChanged=ua.prototype.onMiniGuideVisibleChanged;ua.prototype.onGuideIsVisibleButNotPersistentChanged=ua.prototype.onGuideIsVisibleButNotPersistentChanged;ua.prototype.onGuidePersistendAndVisibleChanged=ua.prototype.onGuidePersistendAndVisibleChanged;_.O([_.R(_.Da),_.a("design:type",Object)],ua.prototype,"ironResizableBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ua.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ua.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],ua.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ua.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],ua.prototype,"disabled",void 0);
_.O([_.q(),_.a("design:type",Boolean)],ua.prototype,"guidePersistentAndVisible",void 0);_.O([_.b("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"onGuidePersistendAndVisibleChanged",null);_.O([_.q(),_.a("design:type",Boolean)],ua.prototype,"guideIsVisibleButNotPersistent",void 0);
_.O([_.b("guideIsVisibleButNotPersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.O([_.q(),_.a("design:type",Object)],ua.prototype,"miniGuideVisible",void 0);_.O([_.b("miniGuideVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"onMiniGuideVisibleChanged",null);_.O([_.q(),_.a("design:type",Boolean)],ua.prototype,"forceMiniGuideClose",void 0);
_.O([_.q(),_.a("design:type",Object)],ua.prototype,"activeEndpoint",void 0);_.O([_.b("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"onActiveEndpointChanged",null);_.O([_.q(),_.a("design:type",Boolean)],ua.prototype,"renderGuide",void 0);_.O([_.b("renderGuide"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"onRenderGuideChanged",null);
_.O([_.q(),_.a("design:type",Object)],ua.prototype,"guideOpened",void 0);_.O([_.q(),_.a("design:type",Boolean)],ua.prototype,"guidePersistent",void 0);_.O([_.b("guidePersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"onGuidePersistentChanged",null);_.O([_.q(),_.a("design:type",Object)],ua.prototype,"guideUserStateOpened",void 0);_.O([_.q(),_.a("design:type",String)],ua.prototype,"pageUrl",void 0);
_.O([_.q(),_.a("design:type",String)],ua.prototype,"pageType",void 0);_.O([_.q(),_.a("design:type",Number)],ua.prototype,"cachedClientWidth",void 0);_.O([_.q(),_.a("design:type",Object)],ua.prototype,"guideElement",void 0);_.O([_.q({selector:_.Lv}),_.a("design:type",Object)],ua.prototype,"isFullscreenShorts",void 0);_.O([_.b("guideElement"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"onGuideElementChanged",null);
_.O([_.b("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"guidePersistentAndVisibleChanged",null);_.O([_.xs("guideIsVisibleButNotPersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.O([_.b("miniGuideVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"miniGuideVisibleChanged",null);_.O([_.xs("guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"guideOpenedChanged",null);_.O([_.b("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"activeEndpointChanged",null);
_.O([_.xs("pageUrl"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"resetGuide",null);_.O([_.xs("cachedClientWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"cachedClientWidthChanged",null);_.O([_.b("guideOpened","guidePersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"computeGuidePersistentAndVisible",null);
_.O([_.xs("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"observeForMiniGuideVisible",null);_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ua.prototype,"onResize",null);ua=_.O([_.A({disableElementRegistration:!0,is:"yt-guide-manager"})],ua);var cLE=_.u(ua,"yt-guide-manager",void 0,{mode:_.Cm("kevlar_poly_si_batch_j081")?1:2});var Wz2=function(){var V=_.M.apply(this,arguments)||this;V.JSC$17589_keyboardInUse=!1;V.boundHandleCapturedKeydownEvent=function(l){V.handleCapturedKeydownEvent(l)};
return V};
_.t(Wz2,_.M);_.B=Wz2.prototype;_.B.attached=function(){this.listenToDocument(document)};
_.B.listenToDocument=function(V){V.addEventListener("keydown",_.VP(this,this.onKeyDownEvent));V.addEventListener("keyup",_.VP(this,this.onKeyUpEvent));V.addEventListener("mousedown",_.VP(this,this.onMouseDownEvent));_.z("desktop_keyboard_capture_keydown_killswitch")||V.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);V.addEventListener("yt-page-data-updated",_.VP(this,this.onPageUpdate))};
_.B.detached=function(){this.unlistenFromDocument(document)};
_.B.unlistenFromDocument=function(V){V.removeEventListener("keydown",_.VP(this,this.onKeyDownEvent));V.removeEventListener("keyup",_.VP(this,this.onKeyUpEvent));V.removeEventListener("mousedown",_.VP(this,this.onMouseDownEvent));_.z("desktop_keyboard_capture_keydown_killswitch")||V.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);V.removeEventListener("yt-page-data-updated",_.VP(this,this.onPageUpdate))};
_.B.ready=function(){_.F().addProvider({provide:_.eM,useValue:this})};
_.B.isKeyBoardInUse=function(){return this.JSC$17589_keyboardInUse};
_.B.handleCapturedKeydownEvent=function(V){if(V.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(V)};
_.B.onMouseDownEvent=function(){this.JSC$17589_keyboardInUse=!1};
_.B.onPageUpdate=function(){if(_.z("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.z("web_shorts_keyboard_shortcut_usage_log")){_.VB.clear();for(var V=_.U(_.mZ),l=V.next();!l.done;l=V.next()){var I=_.U(l.value);l=I.next().value;I=I.next().value;I=_.eU(I);_.VB.set(l,I);_.MJ(_.oa(),_.JO(),I)}_.lm.clear();V=_.U(_.io);for(l=V.next();!l.done;l=V.next())I=_.U(l.value),l=I.next().value,I=I.next().value,I=_.eU(I),_.lm.set(l,I),_.MJ(_.oa(),_.JO(),I);_.ah(_.oa(),_.JO(),[].concat(_.oI(_.lm.values()),
_.oI(_.VB.values())));_.pT(_.oa(),[].concat(_.oI(_.lm.values()),_.oI(_.VB.values())))}};
_.B.onMiniplayerActiveChange=function(){var V;(V=_.F().resolve(_.sH).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(V.document):this.unlistenFromDocument(V.document))};
_.B.ignoreKeyEvent=function(V){if(V.ctrlKey||V.altKey)if(_.z("kevlar_macro_markers_keyboard_shortcut")){if(V.keyCode!==37&&V.keyCode!==39)return!0}else return!0;var l=_.b3(V)||[];return _.dR6(l)?!0:V.defaultPrevented?(Y2(V.keyCode,V.shiftKey,this.isShortsPage),!0):V.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(V):!1};
_.B.isSpacebarClick=function(V){var l=V||window.event;var I;l.composedPath&&typeof l.composedPath==="function"?I=l.composedPath():I=l.path;I&&I.length?l=I[0]:(l=l||window.event,l=l.target||l.srcElement,l.nodeType==3&&(l=l.parentNode));return l&&V.keyCode===32&&(V=l.tagName==="BUTTON"||l.tagName==="A"||l.tagName==="INPUT",l=(l=l.getAttribute("role"))&&(l==="option"||l==="button"||l.indexOf("menuitem")===0),V||l)?!0:!1};
_.B.onKeyDownEvent=function(V){if(!this.ignoreKeyEvent(V)&&(V.keyCode===191&&(V.shiftKey||V.metaKey?V.repeat!=null&&V.repeat||(this.openHotkeyDialog(),Y2(V.keyCode,V.shiftKey,this.isShortsPage)):(this.focusSearchBox(),V.preventDefault())),!V.metaKey)){var l=_.F().resolve(_.sH);switch(V.keyCode){case 9:this.JSC$17589_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(V);break;case 84:l.pipController.getWindow()&&window.focus();this.toggleTheaterMode(V.keyCode,V.shiftKey);break;case 73:l.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(V.keyCode,V.shiftKey);break;case 70:if(this.isShortsPage&&_.z("web_fullscreen_shorts")){_.NjQ();break}this.isMiniplayerActive()?l.pipController.getWindow()&&(l.close(!0),window.focus()):this.passEventToPlayer(V);break;case 27:this.closeMiniplayer(V.keyCode,V.shiftKey)||this.passEventToPlayer(V);break;case 13:V.shiftKey&&_.z("web_ephemeral_actions")&&_.F().resolve(_.n$).activate(V);break;default:this.passEventToPlayer(V)}}};
_.B.onKeyUpEvent=function(V){if(!this.ignoreKeyEvent(V))if(_.z("web_speedmaster_spacebar_control")&&V.keyCode===32)this.handlePlayerSpaceKey(V,!0);else{var l=this.getPlayerManager();l&&(l=l.getPlayer())&&l.handleGlobalKeyUp(V.keyCode,V.shiftKey,V.ctrlKey,V.altKey,V.metaKey,V.key,V.code)}};
_.B.getPlayerManager=function(){var V=_.u8(),l=_.F().resolve(_.Cs(_.pa));return V&&l&&l.isOnWatch()?V:null};
_.B.passEventToPlayer=function(V,l){var I=this,H,T,x;return _.d(function(n){if(n.nextAddress==1)return!_.z("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&I.isMiniplayerActive()?H=_.F().resolve(_.sH).getPlayerElement():I.inlinePreviewIsActive?(T=_.U4(I.hostElement,"yt-get-inline-preview-player-action"))&&T[0]&&(H=T[0]):H=_.u8(),H?_.K(n,H.getPlayerPromise(),3):n.jumpTo(0);x=n.yieldResult;l?x.handleGlobalKeyUp(V.keyCode,V.shiftKey,V.ctrlKey,V.altKey,V.metaKey,V.key,V.code,V.repeat):x.handleGlobalKeyDown(V.keyCode,
V.shiftKey,V.ctrlKey,V.altKey,V.metaKey,V.key,V.code,V.repeat);V.keyCode!==38&&V.keyCode!==40&&Y2(V.keyCode,V.shiftKey,I.isShortsPage);_.FU(n)})};
_.B.focusSearchBox=function(){_.B$(this.hostElement,"yt-focus-searchbox")};
_.B.openHotkeyDialog=function(){_.B$(this.hostElement,"yt-open-hotkey-dialog")};
_.B.isMiniplayerActive=function(){return _.F().resolve(_.sH).isMiniplayerActive()};
_.B.closeMiniplayer=function(V,l){return this.isMiniplayerActive()?(_.F().resolve(_.sH).close(),Y2(V,l,this.isShortsPage),!0):!1};
_.B.toggleTheaterMode=function(V,l){var I=_.tk(_.v4().getState()),H=this.getPlayerManager(),T=_.z("disable_theater_mode_keyboard")||_.PO("START_IN_FULL_WINDOW_MODE");H&&!T&&(I=!I,_.iK()&&_.z("external_fullscreen")&&(I=!0),_.xB(this.hostElement,"yt-toggle-theater-mode",[I]),Y2(V,l,this.isShortsPage))};
_.B.toggleMiniplayer=function(V,l){var I=this.getPlayerManager();if(this.isMiniplayerActive()){var H;((H=_.F().resolve(_.Cs(_.pa)))==null?0:H.isOnWatch())?_.F().resolve(_.sH).close(!0):_.L$(_.F().resolve(_.sH));Y2(V,l,this.isShortsPage)}else I&&(_.xB(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Y2(V,l,this.isShortsPage))};
_.B.handlePlayerSpaceKey=function(V,l){var I=!!_.u8()||this.isMiniplayerActive();I=_.z("disable_space_scroll_fix")||I;_.z("global_spacebar_pause")&&!this.isKeyBoardInUse()&&I&&(V.preventDefault(),this.passEventToPlayer(V,l))};
var vD=Wz2;vD.prototype.onMiniplayerActiveChange=vD.prototype.onMiniplayerActiveChange;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],vD.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],vD.prototype,"ytdReduxBehavior",void 0);_.O([_.q({selector:_.ogT}),_.a("design:type",Boolean)],vD.prototype,"inlinePreviewIsActive",void 0);_.O([_.q({selector:_.n7V}),_.a("design:type",Boolean)],vD.prototype,"isShortsPage",void 0);
_.O([_.q({selector:_.h5}),_.a("design:type",Boolean)],vD.prototype,"miniplayerIsActive",void 0);_.O([_.b("miniplayerIsActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vD.prototype,"onMiniplayerActiveChange",null);vD=_.O([_.A({disableElementRegistration:!0,is:"yt-hotkey-manager"})],vD);_.u(vD,"yt-hotkey-manager",void 0,{mode:_.Cm("kevlar_poly_si_batch_j081")?1:2});var bXQ=function(){var V=_.M.apply(this,arguments)||this;V.loopStateEntityKey_=null;V.playlistLoopStateEntity_=null;V.isShuffleNextPlaylist=!1;V.JSC$17592_PLAYER_EVENTS_=new Map;V.playerListenersSetup_=!1;V.videoSkipJob_=0;V.canAutoAdvance_=!1;V.playerManager_=null;V.TEST_ONLY={};return V};
_.t(bXQ,_.M);_.B=bXQ.prototype;_.B.ready=function(){_.F().addProvider({provide:_.cV,useValue:this.hostElement})};
_.B.created=function(){this.JSC$17592_PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.JSC$17592_PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.JSC$17592_PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.JSC$17592_PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.JSC$17592_PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.JSC$17592_PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.B.attached=function(){document.addEventListener("yt-navigate-start",_.VP(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.VP(this,this.onYtNavigateFinish_))};
_.B.detached=function(){document.removeEventListener("yt-navigate-start",_.VP(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.VP(this,this.onYtNavigateFinish_))};
_.B.updatePlaylistEventListeners=function(V,l){l&&!this.playerListenersSetup_?(this.playerManager_=V,this.registerPlaylistEventListeners_(V)):!l&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(V))};
_.B.setPlayer=function(V){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=V};
_.B.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.B.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.B.registerPlaylistEventListeners_=function(V){var l=this;V.getPlayerPromise().then(function(I){l.playerListenersSetup_||(l.ytPlayerListenerBehavior.listenToPlayerEvents(I,l.JSC$17592_PLAYER_EVENTS_),l.playerListenersSetup_=!0)})};
_.B.removePlaylistEventListeners_=function(V){var l=this;V.getPlayerPromise().then(function(I){l.playerListenersSetup_&&(l.ytPlayerListenerBehavior.unlistenFromPlayerEvents(I,l.JSC$17592_PLAYER_EVENTS_),l.playerListenersSetup_=!1)})};
_.B.setPlaylistComponent=function(V){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.VP(this,this.onPlaylistYtNavigate_)),V&&(V.data&&this.playlistComponent.data&&V.data.playlistId==this.playlistComponent.data.playlistId?(V.loopOn=this.playlistComponent.loopOn,V.shuffleOn=this.playlistComponent.shuffleOn):(V.loopOn=!1,V.shuffleOn=!1),this.isShuffleNextPlaylist&&(V.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=V;this.playlistComponent.addEventListener("yt-navigate",
_.VP(this,this.onPlaylistYtNavigate_))};
_.B.setAutoplayRenderer=function(V){this.autoplayData=V};
_.B.setPlaylistData=function(V){this.currentPlaylistData_=V;_.B$(this.hostElement,"yt-playlist-data-updated");_.EL.isEmpty(V)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(V)};
_.B.setPlayerPlaybackControlData=function(V){this.playerManager_&&this.playerManager_.updatePlayerComponents(V.playlistPanelRenderer)};
_.B.getPlaylistData=function(){return this.currentPlaylistData_};
_.B.getTempData_=function(V,l){if(this.playlistComponent==null)return null;V={};this.playlistComponent.shuffleOn&&(V.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(V.loop_on=this.playlistComponent.loopOn);l&&(V.autonav="1",_.F().resolve(_.Fp),l=_.f0(),l>0&&(V.lact=l),this.playerManager_&&(l=this.playerManager_.getPlayer())&&l.shouldSendVisibilityState()&&(l=l.getVisibilityState(),l!=0&&(V.vis=l)));_.z("enable_unknown_lact_fix_on_html5")&&(_.F().resolve(_.Fp),V.lact=_.f0());
return V};
_.B.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.B.setLoopStateEntityKey_=function(V){var l;this.loopStateEntityKey_=((l=this.getPlaylistLoopData_(V))==null?void 0:l.playlistLoopStateEntityKey)||null};
_.B.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.B.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.B.skipVideo=function(){var V=this,l=_.z("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||l)l=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.L6(_.r0,function(){V.onPlaylistNext();V.videoSkipJob_=0},l)};
_.B.cancelVideoSkip=function(){this.videoSkipJob_&&(_.r0.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.B.isInBackground_=function(){var V=window.document.visibilityState;return!(!V||V=="visible")};
_.B.onPlaylistIndex_=function(V){this.playlistComponent&&(V=this.playlistComponent.data.contents[V].playlistPanelVideoRenderer.navigationEndpoint,_.B$(this.hostElement,"yt-navigate",{endpoint:V,tempData:this.getTempData_(V)}))};
_.B.onPlayerStateChange_=function(V){if(V=V==0&&this.playlistComponent&&this.canAutoAdvance_)V=_.f7.getInstance(),V=!(V.autonavState_===3?V.autonavPauseReason_&&V.autonavPauseReason_.inputBoxFocus===!0:V.autonavState_===1&&V.disabledAutonavPauseReason_&&V.disabledAutonavPauseReason_.inputBoxFocus===!0);V&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.B.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.B.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.B.navigateToAutoplayWatchEndpoint_=function(V,l,I){var H=this.playlistComponent.data.currentIndex,T=this.getNumPlayableVideos_();V=="NORMAL"&&l=="autoplayVideo"&&H+1>=T&&I||!(V=this.getVideoEndpoint_(V,l))||(I=this.getTempData_(V,I),_.B$(this.hostElement,"yt-navigate",{endpoint:V,tempData:I}))};
_.B.getNumPlayableVideos_=function(){for(var V=0,l=_.U(this.playlistComponent.data.contents||[]),I=l.next();!I.done;I=l.next())I.value.playlistPanelVideoRenderer&&(V+=1);return V};
_.B.getVideoEndpoint_=function(V,l){if(this.autoplayData&&this.autoplayData.sets)for(var I=0,H=this.autoplayData.sets.length;I<H;I++){var T=this.autoplayData.sets[I];if(T.mode==V){if(T[l])return T[l];break}}else V=new _.Yd("AutoplayData is undefined in playlist manager","Mode: "+V+" endpoint: "+l),_.hF(V)};
_.B.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.B.onPlaylistYtNavigate_=function(V){if(V.detail.endpoint){V.stopPropagation();var l=V.detail;l.tempData=this.getTempData_(V.detail.endpoint);_.B$(this.hostElement,"yt-navigate",l)}};
_.B.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.B.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.B.playlistLoopStateEntityChanged_=function(V){var l=this,I,H,T;return _.d(function(x){if(x.nextAddress==1){if(!V)return x.return();I=V.state==="PLAYLIST_LOOP_STATE_ONE";return l.playerManager_?_.K(x,l.playerManager_.getPlayerPromise(),3):x.jumpTo(2)}x.nextAddress!=2&&(H=x.yieldResult,H.setLoopVideo(I));T=V.state==="PLAYLIST_LOOP_STATE_ALL";l.playlistComponent&&(l.playlistComponent.loopOn=T);_.FU(x)})};
_.B.getPlaylistLoopData_=function(V){var l,I;if(V=V==null?void 0:(l=V.playlistButtons)==null?void 0:(I=l.menuRenderer)==null?void 0:I.topLevelButtons)for(l=_.U(V),I=l.next();!I.done;I=l.next())if(I=I.value,I.playlistLoopButtonRenderer)return I.playlistLoopButtonRenderer};
_.B.getLoopStateCommand_=function(V){var l=this.getPlaylistData(),I;l=((I=this.getPlaylistLoopData_(l))==null?void 0:I.states)||[];var H;V=(H=_.y(l[V?1:2],_.qON))==null?void 0:H.button;var T;return(T=_.y(V,_.RG))==null?void 0:T.command};
_.B.onPlayerLoopChange_=function(V){this.playlistLoopStateEntity_&&(V?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(V=this.getLoopStateCommand_(V))&&this.ytComponentBehavior.resolveCommand(V)};
_.B.onSleepTimerSettingsChanged_=function(V){this.canAutoAdvance_=V!=="End of video"};
var Oy=bXQ;Oy.prototype.onPlaylistLoopStateEntityChanged=Oy.prototype.onPlaylistLoopStateEntityChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Oy.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],Oy.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Oy.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Oy.prototype,"loopStateEntityKey_",void 0);
_.O([_.q({selectorArgs:["loopStateEntityKey_"],selector:_.oKq}),_.a("design:type",Object)],Oy.prototype,"playlistLoopStateEntity_",void 0);_.O([_.b("playlistLoopStateEntity_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"onPlaylistLoopStateEntityChanged",null);Oy=_.O([_.A({disableElementRegistration:!0,is:"yt-playlist-manager"})],Oy);_.u(Oy,"yt-playlist-manager",void 0,{mode:_.Cm("kevlar_poly_si_batch_j081")?1:2});var qsb,MC2=function(){if(qsb!==void 0)return qsb;var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return qsb=V};var sL2=function(){var V=_.M.apply(this,arguments)||this;V.lastCallback=null;V.getAccountLinkPromises={};V.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);V.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return V};
_.t(sL2,_.M);_.B=sL2.prototype;_.B.getLocation=function(){return window.location.href};
_.B.getCompletionUrl=function(){return _.aa(this.getLocation())};
_.B.containsRedirectState=function(V){return(V=_.PA(_.nKq(V)))?(new URLSearchParams(V)).get("redirect_state")!==null:!1};
_.B.createGalConfig=function(V,l){var I=new ZiE;V=I=l?this.getPopupOrRedirectSetting(I,_.h6("LINK_API_KEY"),_.h6("LINK_API_KEY_REDIRECT"),V):SMV(I,_.h6("LINK_API_KEY"));V.authUser=_.h6("SESSION_INDEX")||0;V.supportedFlows=new Set([4]);return V.build()};
_.B.getPopupOrRedirectSetting=function(V,l,I,H){this.isGalInteractionPopupMode(H)?(V.interactionMode=0,V=SMV(V,l)):(V.interactionMode=1,l=this.getCompletionUrl(),V.completionUrl=l,V=SMV(V,I));return V};
_.B.isGalInteractionPopupMode=function(V){if(this.redirectModeProviderAllowlist.has(V))switch(V){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.z("main_web_redirect_integration_riot");default:return!1}return!0};
_.B.getStatusEntityKeyForProviderId=function(V){return _.Ul(V+":all","accountLinkStatusEntity")};
_.B.findNestedPropValue=function(V,l){var I=!1,H=null;JSON.stringify(V,function(T,x){I||T!==l||(I=!0,H=x);return I?null:x});
return H};
_.B.findAccountLinkButtonViewModel=function(V,l){var I=null,H=!1;JSON.stringify(V,function(T,x){H||x.accountLinkStatusEntityKey!==l||x.accountLinkStatusSecondaryEntityKey||(H=!0,I=x);return H?null:x});
return I};
_.B.executeLinkingSuccessOrFailureCommands=function(V,l,I){var H=null,T;(l==null?0:(T=l.url)==null?0:T.includes("account_sharing"))?H=l==null?void 0:l.response:H=l==null?void 0:l.response;(l=this.findAccountLinkButtonViewModel(H,V))?(V=I?this.findNestedPropValue(l,"onSuccessCommand"):this.findNestedPropValue(l,"onFailureCommand"))?_.KT([V],this.hostElement):_.Rw(Error("fl")):_.Rw(Error("gl`"+V))};
_.B.handleInitializeRequest=function(V,l){var I=this,H=wlB(this.createGalConfig(V,!0));this.containsRedirectState(this.getLocation())?m7u(V,H.config,H.galService).then(function(T){var x=I.getStatusEntityKeyForProviderId(V);if(T.statusCode===1)l&&I.executeLinkingSuccessOrFailureCommands(x,l,!0),T=I.getLocation().indexOf("#"),T!==-1&&window.history.pushState(null,"",I.getLocation().substring(0,T));else return l&&I.executeLinkingSuccessOrFailureCommands(x,l,!1),Promise.reject(Error(T.statusMessage))}).catch(function(T){_.hF(T);
_.tF("gamingAccountLinkStatusChanged",{serviceId:V,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(T)}):this.getAccountLinkPromises[V]=H.startLinkingSession({serviceId:V})};
_.B.handleAccountLinkCommand=function(V){_.y(V,QDV)&&this.handleLinkRequest(_.y(V,QDV))};
_.B.handleLinkRequest=function(V){var l=this,I=V.thirdPartyId;if(I)if(this.isGalInteractionPopupMode(I)){var H=function(){l.closeAndFire("ytd-gaming-account-link-setting-renderer",V.onFailureCommand)},T=function(){l.closeAndFire("ytd-gaming-account-link-setting-renderer",V.onSuccessCommand)};
this.lastCallback=T;this.getAccountLinkPromises[I].then(function(x){NtB(x).then(function(n){n.statusCode===1?T():H()})}).catch(function(){H()})}else this.getAccountLinkPromises[I].then(function(x){NtB(x).then(function(n){if(n.statusCode!==1)return Promise.reject(Error(n.statusMessage))})}).catch(function(x){_.hF(x);
_.tF("gamingAccountLinkStatusChanged",{serviceId:I,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(x)})};
_.B.closeAndFire=function(V,l){_.xB(this.hostElement,"yt-close-popup-action",[V]);l&&_.KT([l],this.hostElement)};
_.B.handleAccountUnlinkCommand=function(V){_.y(V,c7g)&&this.handleUnlinkRequest(_.y(V,c7g))};
_.B.handleUnlinkRequest=function(V){var l=this,I=V.thirdPartyId;if(I){var H=function(){l.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",V.onFailureCommand)},T=function(){l.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",V.onSuccessCommand)};
this.lastCallback=T;var x=wlB(this.createGalConfig(I,!1));this.unlinkUserGal(x,I).then(function(n){n.statusCode===1?T():H()}).catch(function(){H()})}};
_.B.unlinkUserGal=function(V,l){return V.deleteLink(l)};
_.B.handleLogAccountLinkingEventCommand=function(V){_.z("enable_gel_log_commands")&&_.y(V,WaP)&&(V=_.y(V,WaP).event)&&_.tF("gamingAccountLinkStatusChanged",V)};
_.vI.Object.defineProperties(sL2,{template:{configurable:!0,enumerable:!0,get:function(){return MC2()}}});
var CL=sL2;_.O([_.R(_.x4.YtOpenPopupBehavior),_.a("design:type",Object)],CL.prototype,"ytOpenPopupBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],CL.prototype,"ytActionHandlerBehavior",void 0);CL=_.O([_.A({disableElementRegistration:!0,is:"ytd-third-party-manager"})],CL);_.u(CL,"ytd-third-party-manager",function(){return MC2()},{mode:_.Cm("kevlar_poly_si_batch_j081")?1:2});var psg,ALu=function(){return psg!==void 0?psg:psg=document.createElement("template")};
document.head.appendChild(ALu().content);var u6V,v1V=function(){if(u6V!==void 0)return u6V;var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(ALu().content.cloneNode(!0),V.content.firstChild);V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return u6V=V};var OXh=_.fl(["\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      "]),CTP=function(){var V=_.M.apply(this,arguments)||this;V.currentPage=void 0;V.renderLoadingStateJobId=0;V.updatePageDataJobId=0;V.pageDisposeJobsets=new WeakMap;V.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"};V.applyZoomTransition=_.m_("web_page_transition_type")==="zoom";V.applySlideTransition=_.m_("web_page_transition_type")==="slide";V.TEST_ONLY=void 0;return V};
_.t(CTP,_.M);_.B=CTP.prototype;_.B.ready=function(){var V=_.F();V.addProvider({provide:_.pa,useValue:this});V.addProvider({provide:_.gnY,useValue:this})};
_.B.created=function(){this.pagePool=new wsI;this.contextSwitcher=new yd2};
_.B.attached=function(){_.B$(this.hostElement,"attached");var V=_.F().resolve(_.Cs(_.kV));V&&(this.contextSwitcher.JSC$17413_networkService_=V);this.viewTransitionManager=_.F().resolve(_.Cs(_.fYE));this.setupPageTransitionAnimation()};
_.B.getPageOffset=function(V){return V.getScrollTop()};
_.B.setPageOffset=function(V,l){try{V.setScrollTop(l)}catch(I){}};
_.B.setPageOffsetForNavigation=function(V,l){_.B$(this.hostElement,"yt-navigate-set-page-offset",{page:V,offset:l===void 0?0:l})};
_.B.pauseActiveContext=function(){var V=this.contextSwitcher;V.activeContext_&&V.activeContext_.pause()};
_.B.getModuleNameForType=function(V){return V==="watch"?_.z("kevlar_watch_fixie")?"watchFixie":_.z("kevlar_watch_grid")?"watchGrid":"watchFlexy":V==="shorts"||V==="search"?V:"browse"};
_.B.attachPage=function(V){var l,I=!_.z("pc_is_attached_ks")&&(V==null?void 0:(l=V.polymerController)==null?void 0:l.isAttached);if(!V.isAttached&&!I)try{_.h(this.hostElement).appendChild(V)}catch(T){var H;_.hF(new _.Yd("Error attaching page element for component",{origin:(H=this.currentPage)==null?void 0:H.is,component:V.is}))}};
_.B.setActivePage=function(V){var l=this,I=!1,H=function(){var T=l.isOnWatch(),x=l.currentPage;if(V)if(V!==l.currentPage){x&&(x.hidden=!0,x.active=!1,x.removeAttribute("role"));l.currentPage=V;var n,w=np((n=l.data)==null?void 0:n.endpoint);x&&_.B$(l.hostElement,"yt-page-type-changed",{oldPageType:x.is,newPageType:V.is,newPageSubtype:w});_.P1().dispatch(_.IA({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:V.is}));_.P1().dispatch(_.IA({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:w||""}));V.hidden=
!1;l.attachPage(V);V.active=!0;V.setAttribute("role","main");x&&l.setPageOffsetForNavigation(V,0);_.z("kevlar_remove_page_dom_on_switch")&&!T&&x&&_.h(l.hostElement).removeChild(x)}else I=!0;else T=new _.Yd("Unable to set active page",x?x.is:"unknown origin",(w=l.data)==null?void 0:w.endpoint),_.Gr(T)};
this.viewTransitionManager?ZhQ(this.viewTransitionManager,H,this.viewTransitionConfigForSetActivePage(this.currentPage,V)):H();return I};
_.B.viewTransitionConfigForSetActivePage=function(V,l){return _.z("web_thumbnail_to_watch_transition")&&(V==null?void 0:V.is)==="ytd-browse"&&this.isWatchPage(l)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(V==null?void 0:V.is)==="ytd-browse"&&(l==null?void 0:l.is)==="ytd-browse"&&V!==l?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.B.updatePageData=function(V){var l=this,I=this.data;this.updatePageDataJobId&&_.r0.cancelJob(this.updatePageDataJobId);this.data=V;return new _.UZ(function(H){var T=function(){V.filler?l.performDataUpdate(V,I):gNg(function(){l.performDataUpdate(V,I)});
var N=_.b1();_.qB(N,"cr")||N.processSignal("cr");H()},x=function(){V&&V.page==="watch"?l.updatePageDataJobId=_.L6(_.r0,T):T()};
if(_.z("kevlar_enable_mss_page_modules_client")&&V){var n=_.F().resolve(_.Ai),w=l.getModuleNameForType(V.page);(n=PDE(n,[w]))?n.then(x):x()}else x()})};
_.B.isDownloadsPage=function(V){var l,I;return(V==null?void 0:(l=V.endpoint)==null?void 0:(I=l.browseEndpoint)==null?void 0:I.browseId)==="FEdownloads"};
_.B.setPlayerSyncInterval=function(V){var l;return _.d(function(I){if(I.nextAddress==1)return _.K(I,_.F().resolve(_.fa),2);l=I.yieldResult;l.setUpPositionSyncInterval(V);_.FU(I)})};
_.B.performDataUpdate=function(V,l){_.z("kevlar_early_popup_close")||_.xB(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var I=!V.filler;I&&(_.Z8("lps"),_.z("config_age_report_killswitch")||GSP());var H=Hp(V),T,x=!1;if(_.z("kevlar_remove_page_dom_on_switch")){var n=l&&Hp(l);H===n&&(T=this.getCurrentPage())}T||(T=WD(this.pagePool,H));I&&VJE(this.pagePool.elementPoolPopulator,H);I&&!this.renderLoadingStateJobId&&(x=this.setActivePage(T));if(T){n=H==="watch";var w=
H==="shorts";_.z("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(T);if(n||w)T.playerData=V.playerResponse;if(w){V.reelWatchSequenceResponse?T.reelWatchSequenceResponse=V.reelWatchSequenceResponse:V.cachedReelWatchSequenceResponse&&(T.reelWatchSequenceResponse=V.cachedReelWatchSequenceResponse);T.currentEndpoint=V.endpoint;var N;T.isPreviousPageShorts=!!(l==null?0:(N=l.endpoint)==null?0:N.reelWatchEndpoint);V.cachedReelWatchSequenceResponse=V.reelWatchSequenceResponse||
V.cachedReelWatchSequenceResponse||(l==null?void 0:l.cachedReelWatchSequenceResponse);T.cachedReelWatchSequenceResponse=V.cachedReelWatchSequenceResponse}N=this.isDownloadsPage(V);var L=this.isDownloadsPage(l);N&&!L?this.setPlayerSyncInterval(6E5):!N&&L&&this.setPlayerSyncInterval();_.z("block_all_player_prefetch_requests")||this.preparePrefetchRequest(V,T,I,n,w);SmB(_.F().resolve(_.sH),l,V);_.jEZ(_.F().resolve(_.Fp));_.z("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(T);
I?(I=typeof T.loadPage,I==="function"?(T.pageContext=t0V(this.contextSwitcher,T,T.data!==V.response),l=function(){T.loadPage(V.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&T.is==="ytd-browse"&&x?this.applySlideTransition?ZhQ(this.viewTransitionManager,l,{transitionName:"slide"}):ZhQ(this.viewTransitionManager,l,{transitionName:"zoom"}):l()):_.oV(new _.Yd("b/38014653 ",[H,
T.is,T.nodeName,I,T.isAttached,l&&Hp(l),this.hostElement.children.length])),_.Z8("pdl")):(T.hidden=!0,V.response.filler=!0,T.data=V.response,this.attachPage(T));_.B$(this.hostElement,"yt-page-data-updated",{pageType:H})}_.et(_.r0,function(){_.z("logging_avoid_blocking_during_navigation")&&_.vFt().transition("none");var e=beg(),k=T;if(V){var X=IVP(V),r=HjI(V),E;a:{if(V.playerResponse){var D=V.playerResponse,Z;if((E=D.auxiliaryUi)==null?0:(Z=E.messageRenderers)==null?0:Z.upsellDialogRenderer){E=D.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(V.response&&(E=V.response,(D=E.overlay)==null?0:D.upsellDialogRenderer)){E=E.overlay.upsellDialogRenderer;break a}E=void 0}var S;var p;Z=(S=V.playerResponse)==null?void 0:(p=S.auxiliaryUi)==null?void 0:p.messageRenderers;S=(Z==null?void 0:Z.enforcementMessageViewModel)||(Z==null?void 0:Z.bkaEnforcementMessageViewModel);S=(S==null?void 0:S.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?S:void 0;var Vf;a:{if(V.response&&(p=V.response,(Vf=p.overlay)==null?0:Vf.commandWrapperPromoRenderer)){Vf=
p.overlay.commandWrapperPromoRenderer;break a}Vf=void 0}WB6(e,X,r,E,S,Vf,k)}})};
_.B.preparePrefetchRequest=function(V,l,I,H,T){var x,n,w,N,L,e,k,X,r,E,D,Z,S,p,Vf;return _.d(function(C){if(C.nextAddress==1)return!I||!H&&!T||_.z("kevlar_disable_background_prefetch")&&_.Zp(_.Wf3)()===0?C.return():(x=_.AU(l))?_.K(C,x.getPlayerPromise(),2):C.return();n=C.yieldResult;w=_.F().resolve(_.Cs(_.kV));if(!w)return C.return();if(T)return N=_.$_(_.Up),UOI(N,(L=V.endpoint)==null?void 0:L.reelWatchEndpoint,l.reelWatchSequenceResponse,n,w),C.return();X=(e=V.response)==null?void 0:(k=e.responseContext)==
null?void 0:k.webResponseContextExtensionData;if(!X)return C.return();S=(r=V.response)==null?void 0:(E=r.contents)==null?void 0:(D=E.twoColumnWatchNextResults)==null?void 0:(Z=D.autoplay)==null?void 0:Z.autoplay;p=_.F().resolve(_.cV);Vf=_.$_(_.Up);nCP(Vf,X,n,w,p,S);_.FU(C)})};
_.B.movePlayerToWatch=function(V){var l=this,I,H;return _.d(function(T){I=WD(l.pagePool,"watch");H=I.getPlayerContainer();V.appendTo(H);_.FU(T)})};
_.B.movePlayerToShorts=function(V){var l=this,I,H,T;return _.d(function(x){I=WD(l.pagePool,"shorts");H=I.getPlayerContainer();(T=V)==null||T.appendTo(H,void 0,!0);_.FU(x)})};
_.B.getPlayerFromWatch=function(){var V=WD(this.pagePool,"watch");return _.AU(V)};
_.B.getPlayerFromShorts=function(){var V=WD(this.pagePool,"shorts");return _.AU(V)};
_.B.startLoadingWatch=function(){var V=WD(this.pagePool,"watch");this.renderLoadingStateJobId?(_.r0.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(V)};
_.B.startLoadingShorts=function(){var V=WD(this.pagePool,"shorts");this.setActivePage(V)};
_.B.getCurrentPage=function(){return this.currentPage};
_.B.getDestinationPageType=function(){return this.destinationPageType};
_.B.getCurrentData=function(){return this.data};
_.B.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.B.isOnShorts=function(){var V;return((V=this.currentPage)==null?void 0:V.is)==="ytd-shorts"};
_.B.isWatchPage=function(V){return!!V&&(V.is==="ytd-watch-flexy"||V.is==="ytd-watch-fixie"||V.is==="ytd-watch-grid")};
_.B.preparePage=function(V,l){var I=this,H=function(){var n=I.pagePool.preparePage(V,I.currentPage,l);n&&I.attachPage(n)},T=function(n){_.PF(n,l);
_.hF(n)};
if(_.z("kevlar_enable_mss_page_modules_client")){var x=this.getModuleNameForType(V);if(x=PDE(_.F().resolve(_.Ai),[x])){x.then(H.bind(this)).catch(T.bind(this));return}}try{H()}catch(n){T(n)}};
_.B.lazyPrepareCriticalPages=function(V,l){V=np(l)||V;_.z("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(V).then(this.maybePrepareWatchPage.bind(this,V)):this.maybePrepareWatchPage(V)};
_.B.maybePrepareWatchPage=function(V){V!=="watch"&&_.et(_.r0,this.preparePage.bind(this,"watch"))};
_.B.downloadPageModules=function(V){V=this.getModuleNameForType(V);var l=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);l.delete(V);var I=_.F().resolve(_.Ai);I.JSC$16154_loadModules(V);return I.JSC$16154_loadModules.apply(I,_.oI(l))};
_.B.renderPageLoadingState=function(V,l){this.preparePage(V,l);var I=WD(this.pagePool,V);I.loadingData&&(I.loadingData.endpoint=l);I.loading=!0;this.setActivePage(I);V==="watch"&&_.B$(this.hostElement,"yt-guide-close")};
_.B.prepareForNavigation=function(V,l){var I=this;if(this.currentPage&&this.data){var H=np(l)||V;this.destinationPageType=H;Hp(this.data)==H&&_.B$(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(V==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.r0.cancelJob(this.renderLoadingStateJobId);_.F().resolve(_.sH).deactivate(l);var T=this.data;this.renderLoadingStateJobId=_.t9(_.r0,function(){if(I.data!=T){var x=WD(I.pagePool,V);I.setActivePage(x)}else I.renderPageLoadingState(V,
l);I.renderLoadingStateJobId=0},150)}};
_.B.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var V=new _.vf(1);this.currentPage.pageDisposeJobs.forEach(function(l){_.Op(V,l)});
this.pageDisposeJobsets.set(this.currentPage,V)}};
_.B.flushPageDisposeJobset=function(V){var l=this.pageDisposeJobsets.get(V);l&&(l.flushJobs(),this.pageDisposeJobsets.delete(V))};
_.B.onYtStopOldPlayer=function(V,l){l=l===void 0?!1:l;var I,H=_.V7("kevlar_new_stop_old_player_logic_pages");if(_.z("kevlar_check_current_page_on_stop_old_player")&&(H.length===0||this.currentPage&&H.includes(this.currentPage.is)))if(this.data&&(I=Hp(this.data)),Hp(V)===I&&this.currentPage&&Hp(this.currentPage.data)!==I)var T=_.AU(this.currentPage);else I=Hp(this.data),T=WD(this.pagePool,I),T=_.AU(T);else this.data&&(I=Hp(this.data),T=WD(this.pagePool,I),T=_.AU(T));if(T)if(V=Hp(V),H=WD(this.pagePool,
V),H=_.AU(H),T==H)l&&!_.z("kevlar_disable_preemptive_player_reset")&&T.resetForNewPlayback();else if(l=I==="watch"&&V!=="watch",!l||V==="shorts"||_.$60()&&!XXE(this.data)&&V!=="yts-products"&&V!="mini_app"&&V!="playables")I=_.F().resolve(_.sH),l&&I.isMiniplayerActive()&&I.pipController.getWindow()||T.stop()};
_.B.setupPageTransitionAnimation=function(){var V=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){KJ(this.viewTransitionManager,"slide",{beforeTransition:function(){V.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){V.hostElement.style.viewTransitionName=""}});
KJ(this.viewTransitionManager,"zoom",{beforeTransition:function(){V.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){V.hostElement.style.viewTransitionName=""}});
var l=_.g7("web_page_transition_exit_ms"),I=_.g7("web_page_transition_wait_ms"),H=_.g7("web_page_transition_enter_ms");if(!isNaN(l)||!isNaN(I)||!isNaN(H))if(l=o7E(OXh,l,I,H))I=document.createElement("style"),I.textContent=_.mV3(l),document.head.appendChild(I)}};
_.vI.Object.defineProperties(CTP,{template:{configurable:!0,enumerable:!0,get:function(){return v1V()}}});
var aQV=CTP;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],aQV.prototype,"ytActionHandlerBehavior",void 0);aQV=_.O([_.A({disableElementRegistration:!0,is:"ytd-page-manager"})],aQV);_.u(aQV,"ytd-page-manager",function(){return v1V()},{mode:_.Cm("kevlar_poly_si_batch_j081")?1:2});var ac=function(V,l,I){I=I===void 0?!1:I;_.XG.call(this);this.draggableElement=V;this.callbacks=l;this.allowClicks=I;this.dragOccurred=!1;this.internalDragger=new _.W_(this.draggableElement);this.dragDelay=new _.aX(this.delayedDrag.bind(this));fQE(this);this.allowClicks&&(_.CGE(this.internalDragger,5),V.addEventListener("click",_.VP(this,this.validateClick),{capture:!0}))};
_.t(ac,_.XG);var fQE=function(V){_.NR(V.internalDragger,"earlycancel",function(){V.allowClicks&&(V.dragOccurred=!1)});
_.NR(V.internalDragger,"start",function(l){var I,H;(H=(I=V.callbacks).onStartDrag)==null||H.call(I,l);!l.defaultPrevented&&V.allowClicks&&(V.dragOccurred=!0)});
_.NR(V.internalDragger,"beforedrag",function(l){l.preventDefault();V.lastOffset=new _.og(l.clientX-V.internalDragger.startX,l.clientY-V.internalDragger.startY);V.dragDelay.start()});
_.NR(V.internalDragger,"end",function(){V.dragDelay.stop();var l,I;(I=(l=V.callbacks).onEndDrag)==null||I.call(l);V.lastOffset=void 0})};
ac.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
ac.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.VP(this,this.validateClick),{capture:!0})};
ac.prototype.validateClick=function(V){this.dragOccurred&&(this.dragOccurred=!1,V.stopPropagation(),V.preventDefault())};var fL=function(V,l){_.XG.call(this);this.JSC$17614_resizeContainer=V;this.callbacks=l;this.aspectRatio=16/9;this.JSC$17614_resizers=[];V=_.U(this.JSC$17614_resizeContainer.children);for(l=V.next();!l.done;l=V.next())g1r(this,l.value)};
_.t(fL,_.XG);fL.prototype.disposeInternal=function(){for(var V=_.U(this.JSC$17614_resizers),l=V.next();!l.done;l=V.next())l.value.dispose();V=_.U(this.JSC$17614_resizeContainer.children);for(l=V.next();!l.done;l=V.next())l.value.setAttribute("disabled","");this.JSC$17614_resizers.length=0};
fL.prototype.setSize=function(V){this.currentMiniplayerSize=V};
fL.prototype.setAspectRatio=function(V){this.aspectRatio=V};
fL.prototype.update=function(V,l){for(var I=_.U(this.JSC$17614_resizeContainer.children),H=I.next();!H.done;H=I.next()){H=H.value;var T=H.getAttribute("alignment");_.gP(H,"disabled",T===V||T===l)}};
var g1r=function(V,l){var I=l.getAttribute("alignment"),H=new ac(l,{onStartDrag:function(T){if(l.hasAttribute("disabled"))T.preventDefault();else{V.dragStartSize=V.currentMiniplayerSize;var x,n;(n=(x=V.callbacks).onStartResize)==null||n.call(x)}},
onDrag:function(T){if(V.dragStartSize){I!=="north"&&I!=="west"||T.scale(-1);var x=I==="north"||I==="south";T=x?T.y:T.x;x&&V.aspectRatio>=1?T*=V.aspectRatio:!x&&V.aspectRatio<1&&(T/=V.aspectRatio);V.callbacks.onResize(V.dragStartSize+T)}}});
V.JSC$17614_resizers.push(H)};var mkE,iXV=function(){return mkE!==void 0?mkE:mkE=document.createElement("template")};
document.head.appendChild(iXV().content);var VLB;var lsQ=_.W1(function(V){var l=_.sZ(),I=V.onDrag,H=V.onDragStart,T=V.onDragEnd,x=_.Rj(V,{allowClicks:!1,dragThreshold:5}),n=x.dragThreshold,w=x.allowClicks;V=x.children;x=x.className;var N=void 0,L=void 0,e=new _.og(0,0),k=!1;_.XW(function(){N=new _.W_(l.value);L=new _.aX(r);X(N,L);if(w()){_.CGE(N,n());var D;(D=l.value)==null||D.addEventListener("click",E,{capture:!0})}_.rx(function(){var Z;(Z=N)==null||Z.dispose();if(w()){var S;(S=l.value)==null||S.removeEventListener("click",E,{capture:!0})}})});
var X=function(D,Z){_.NR(D,"earlycancel",function(){w()&&(k=!1)});
_.NR(D,"start",function(S){H==null||H(S);S.defaultPrevented||w()&&(k=!0)});
_.NR(D,"beforedrag",function(S){N&&L&&(S.preventDefault(),e=new _.og(S.clientX-N.startX,S.clientY-N.startY),L.start())});
_.NR(D,"end",function(){Z.stop();T==null||T();e=new _.og(0,0)})},r=function(){e&&I(e)},E=function(D){k&&(k=!1,D.stopPropagation(),D.preventDefault())};
return _.Y("yt-draggable",{el:l,class:_.ii("ytDraggableComponentHost",x)},V)},"If");var Isg=_.W1(function(V){var l=_.U(_.xi(0,void 0,"Pf10wb")),I=l.next().value,H=l.next().value;l=function(T){var x={},n={};return _.Y(lsQ,{className:_.ii("ytdMiniplayerComponentResizer",(x.ytdMiniplayerComponentResizerDisabled=function(){return T===V.horizontalAlignment()||T===V.verticalAlignment()},x.ytdMiniplayerComponentResizerNorth=T==="north",x.ytdMiniplayerComponentResizerEast=T==="east",x.ytdMiniplayerComponentResizerSouth=T==="south",x.ytdMiniplayerComponentResizerWest=T==="west",x)),
onDragStart:function(){H(V.currentMiniplayerSize())},
onDrag:function(w){T!=="north"&&T!=="west"||w.scale(-1);var N;w=(N=T==="north"||T==="south")?w.y:w.x;var L=V.currentAspectRatio();N&&L>=1?w*=L:!N&&L<1&&(w/=L);N=w;V.onResize(I()+N)}},_.Y("div",{class:_.ii("ytdMiniplayerComponentResizerCorner",(n.ytdMiniplayerComponentResizerNorthCorner=T==="north",n.ytdMiniplayerComponentResizerEastCorner=T==="east",n.ytdMiniplayerComponentResizerSouthCorner=T==="south",n.ytdMiniplayerComponentResizerWestCorner=T==="west",n))}))};
return _.Y("div",{class:"ytdMiniplayerComponentResizers"},l("north"),l("east"),l("south"),l("west"))},"Jf");var HVE=16/9,T2g=_.W1(function(){var V=_.sZ(),l=_.U(_.xi(new _.Yp(NaN,NaN),void 0,"yxHohf")),I=l.next().value,H=l.next().value;l=_.U(_.xi(!1,void 0,"ku1l7c"));var T=l.next().value,x=l.next().value;l=_.U(_.xi(!1,void 0,"pbOm3b"));var n=l.next().value,w=l.next().value;l=_.U(_.xi(!1,void 0,"LqfsYc"));var N=l.next().value,L=l.next().value;l=_.U(_.xi(!1,void 0,"wYZnZe"));var e=l.next().value,k=l.next().value;l=_.U(_.xi(!1,void 0,"KVndGb"));var X=l.next().value,r=l.next().value;l=_.U(_.xi(!1,void 0,"ofTiZe"));
var E=l.next().value,D=l.next().value;l=_.U(_.xi(HVE,void 0,"bpheWd"));var Z=l.next().value,S=l.next().value,p=_.U(_.xi(!1,void 0,"MIV0Jb"));l=p.next().value;var Vf=p.next().value;p=_.U(_.xi(!1,void 0,"Y2idSc"));var C=p.next().value,By=p.next().value;p=_.U(_.xi(void 0,void 0,"IuZWBb"));var lN=p.next().value,wW=p.next().value;p=_.U(_.xi(_.h6("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var o1=p.next().value,h1=p.next().value;p=_.U(_.xi("south",void 0,"mV91if"));var ec=p.next().value,Zg=p.next().value;
p=_.U(_.xi(400,void 0,"OwmImd"));var Va=p.next().value,wb=p.next().value,CK=_.F().resolve(_.sH).miniplayerPropSignalMap[0],CZ=CK.data,ME=CK.externalPlaylistData;p=CK.toastData;var Hw=CK.playabilityStatus,uZ=CK.isDisabled,EN=CK.watchWhile;CK=_.U(_.Ux(CK.isReadyToResume));var ya=CK.next().value,Dv=CK.next().value,Tf;_.XW(function(){H(_.jD());V.value.addEventListener("animationend",function(lZ){lZ.target===V.value&&(r(!1),D(!1))})});
_.M4("yt-window-resized",function(lZ){lZ&&H(lZ)});
var Oq=function(){Tf&&S(Tf.getVideoAspectRatio())},Ut=function(){if(Tf){var lZ=Tf.getPlayerState()===1;
ya()&&lZ&&Dv(!1)}};
_.M4("yt-activate-miniplayer",function(lZ){var st;return _.d(function(jo){if(jo.nextAddress==1)return T()?jo.return():_.K(jo,(st=_.F().resolve(_.sH).getPlayerElement())==null?void 0:st.getPlayerPromise(),2);Tf=jo.yieldResult;if(!Tf)return jo.return();!C()&&_.z("kevlar_watch_while_v2")&&(Zg(lZ&&!_.z("kevlar_watch_while_bottom_align")?"north":"south"),h1(_.h6("HTML_DIR")==="rtl"?"west":"east"));var gb=Tf;gb.addEventListener("onVideoDataChange",Oq);gb.addEventListener("onStateChange",Ut);S(Tf.getVideoAspectRatio());
x(!0);r(!0);_.FU(jo)})});
_.M4("yt-deactivate-miniplayer",function(lZ){return _.d(function(st){x(!1);Dv(!1);D(lZ);r(!0);if(Tf){var jo=Tf;jo.removeEventListener("onVideoDataChange",Oq);jo.removeEventListener("onStateChange",Ut)}_.FU(st)})});
var BY=function(){var lZ=!!CZ(),st=X(),jo=EN();return(jo===void 0?0:jo)&&_.z("kevlar_watch_while_modern")?!1:lZ||st},ON=function(){var lZ;
return!((lZ=ME())==null||!lZ.contents)},vY=function(){var lZ=Va();
var st=I();st=Math.min(Math.min(st.width,st.height)-32,720);var jo=Z(),gb=BY(),Bh=ON()&&n(),Zv=Math.min(lZ,st);lZ=new _.Yp(192,gb?116:192);jo=nNh(new _.Yp(Bh?HVE:jo,1),new _.Yp(Zv,gb?Zv-76:Zv));lZ.width<=jo.width&&lZ.height<=jo.height||(U_E(jo,lZ),jo.width=Math.min(jo.width,st),jo.height=Math.min(jo.height,st));return new _.Yp(jo.width,_.cA(192,jo.height+ovQ(gb,Bh),720))},LZ=function(){var lZ=vY(),st=BY(),jo=ON()&&n();
return new _.Yp(lZ.width,lZ.height-ovQ(st,jo))},oi=function(){var lZ=function(st){st.target===V.value&&e()&&(k(!1),V.value.removeEventListener("transitionend",lZ))};
V.value.addEventListener("transitionend",lZ);k(!0);w(!n())};
CK={};return _.Y("ytd-miniplayer",{el:V,class:_.ii("ytdMiniplayerComponentHost",(CK.ytdMiniplayerComponentVisible=function(){return T()||X()},CK.ytdMiniplayerComponentAnimatingSnap=N,CK.ytdMiniplayerComponentAnimatingPlaylistExpand=e,CK.ytdMiniplayerComponentAnimatingFade=X,CK),function(){if(X()){var lZ=ec();
var st=T(),jo=E();lZ=st?lZ==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":jo?lZ==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":lZ==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else lZ="";return lZ}),
style:_.na({top:function(){return ec()==="north"?"16px":""},
right:function(){return o1()==="east"?"16px":""},
bottom:function(){return ec()==="south"?"16px":""},
left:function(){return o1()==="west"?"16px":""},
width:function(){return vY().width+"px"},
height:function(){return vY().height+"px"},
transform:function(){var lZ=lN();return lZ?"translate("+lZ.x+"px, "+lZ.y+"px)":""}})},_.Y("div",{class:"ytdMiniplayerComponentContent"},_.Y(lsQ,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(lZ){var st=J3I(o1(),ec(),I(),vY(),lN()),jo=LZ();Math.abs(lZ.clientY-(st.y+jo.height))>15?Vf(!0):lZ.preventDefault()},
onDrag:function(lZ){wW(lZ)},
onDragEnd:function(){var lZ=r3Y(J3I(o1(),ec(),I(),vY(),lN()),I(),vY()),st=Evu(o1(),ec(),I(),vY()),jo=Evu(lZ.horizontalAlignment,lZ.verticalAlignment,I(),vY());jo=new _.og(jo.x-st.x,jo.y-st.y);var gb;st=st.y+(((gb=lN())==null?void 0:gb.y)||0)+vY().height/2;var Bh=function(){o1()===lZ.horizontalAlignment&&ec()===lZ.verticalAlignment||By(!0);h1(lZ.horizontalAlignment);Zg(lZ.verticalAlignment);wW(void 0)},Zv=function(sP){sP.target===V.value&&N()&&(L(!1),Bh(),V.value.removeEventListener("transitionend",
Zv))};
Vf(!1);ec()==="south"&&st>I().height?(Bh(),_.F().resolve(_.sH).close()):(V.value.addEventListener("transitionend",Zv),L(!0),wW(jo))}},_.Y(_.NS,{cond:T,
then:function(){return _.Y(_.lBg,{isDisabled:uZ,playabilityStatus:Hw,size:LZ})}}),_.Y(_.NS,{cond:BY,
then:function(){return _.Y(_.iAP,{isReadyToResume:ya,data:CZ,expanded:n,onExpandClick:oi,playlistData:ME})}}),_.Y(_.NS,{cond:l,
then:function(){return _.Y("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.Y(_.NS,{cond:function(){return ON()&&n()||e()},
then:function(){return _.Y(_.yeI,{className:"ytdMiniplayerComponentPlaylistPanel",data:ME,hideHeaderText:!0,withinMiniplayer:!0})}}),_.Y("div",{class:"ytdMiniplayerComponentToast"},_.Y(_.IBE,{toastData:p}))),_.Y(Isg,{onResize:function(lZ){wb(_.cA(192,lZ,720))},
currentAspectRatio:Z,currentMiniplayerSize:Va,horizontalAlignment:o1,verticalAlignment:ec}))},"Kf");_.z("ytd_miniplayer_to_wiz")&&_.MR(T2g,"ytd-miniplayer",{});_.MR(_.IBE,"ytd-miniplayer-toast",{props:{toastData:_.b9}});var B26=16/9,xTg=new _.Yp(400,400/B26),gr=function(){var V=_.M.apply(this,arguments)||this;V.active=!1;V.hasNoData=!1;V.enabled=!1;V.expanded=!1;V.readyToResume=!1;V.isDisabled=!1;V.externalPlaylistData={};V.premiumBadges=[];V.watchWhile=!1;V.playerState=null;V.verticalAttachment="south";V.horizontalAttachment=_.h6("HTML_DIR")==="rtl"?"west":"east";V.isAnimatingFade=!1;V.isAnimatingSnap=!1;V.isAnimatingExpand=!1;V.isDragging=!1;V.playerHidden=!1;V.hasPlaylistData=!1;V.closed=!1;V.expandedClosed=!1;
V.isForReadyToResume=!1;V.watchResponse=null;V.player=null;V.playerVe=null;V.expandVe=null;V.closeVe=null;V.readyToResumeCloseVe=null;V.disabledInitialStateIsPlaying=!1;V.PLAYER_EVENTS=new Map;V.aspectRatio=B26;V.currentMiniplayerSize=400;V.userSetSize=!1;V.userSetPosition=!1;V.userHasDragged=!1;V.maxMiniplayerSize=720;V.transform=new _.og(0,0);V.windowDimensions=new _.Yp(NaN,NaN);V.dimensions=xTg;V.screenLayer=3;V.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return V};
_.t(gr,_.M);_.B=gr.prototype;_.B.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()};
_.B.ready=function(){this.setUpDragging();this.setUpResizing()};
_.B.attached=function(){this.onWindowResized(_.jD());this.hostElement.addEventListener("animationend",_.VP(this,this.resetFadingAnimation))};
_.B.detached=function(){this.hostElement.removeEventListener("animationend",_.VP(this,this.resetFadingAnimation))};
_.B.resetFadingAnimation=function(V){V.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.B.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.B.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.B.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var V=_.oa(this.screenLayer);this.readyToResumeCloseVe&&V&&_.pT(V,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.B.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var V=_.oa(0),l=_.JO(0);V&&l&&(_.MJ(V,l,this.readyToResumeVe),_.pT(V,[this.readyToResumeVe]))}};
_.B.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var V=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=V===-1||V===1||V===3)&&this.player.pauseVideo()}};
_.B.activate=function(V,l){l=l===void 0?!1:l;var I=this,H;return _.d(function(T){if(T.nextAddress==1)return I.setInitialActivatePositioning(l),I.enabled=!0,I.active=!0,I.expanded=!1,I.closed=!1,I.expandedClosed=!1,I.watchWhileHidden||(I.isAnimatingFade=!0),_.F().resolve(_.cV).setPlaylistComponent(I.JSC$17625_playlistPanel),V.appendTo(I.playerContainer),_.K(T,V.getPlayerPromise(),2);H=T.yieldResult;H.setSizeStyle(!1,!0);I.ytPlayerListenerBehavior.listenToPlayerEvents(H,I.PLAYER_EVENTS);I.player=H;
I.watchWhile&&_.z("kevlar_watch_while_minimum_size")&&I.setMiniplayerSize(192);I.setAspectRatio(I.player.getVideoAspectRatio());I.onIsDisabledChanged();_.FU(T)})};
_.B.setInitialActivatePositioning=function(V){if(!this.userSetPosition&&_.z("kevlar_watch_while_v2")){this.verticalAttachment=V&&!_.z("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.h6("HTML_DIR")==="rtl"?"west":"east";var l;(l=this.JSC$17625_resizers)==null||l.update(this.horizontalAttachment,this.verticalAttachment)}};
_.B.deactivate=function(V,l){var I=this;return _.d(function(H){if(!I.active)return H.return();V||(I.expanded?I.expandedClosed=!0:I.closed=!0);I.active=!1;I.isForReadyToResume=!1;l&&_.z("kevlar_watch_while_counterfactual")||(I.isAnimatingFade=!0);I.player&&I.ytPlayerListenerBehavior.unlistenFromPlayerEvents(I.player,I.PLAYER_EVENTS);I.player=null;_.FU(H)})};
_.B.onMetadataTap=function(V){this.expandVe&&(V===void 0||V)&&(V=_.oa(this.screenLayer))&&_.uJ(V,this.expandVe);_.L$(_.F().resolve(_.sH))};
_.B.onDisabledTap=function(V){V.target===_.h(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.B.onPlaylistExpandTap=function(V){if(this.hasPlaylistData){V=_.b3(V)||[];V=_.U(V);for(var l=V.next();!l.done;l=V.next()){l=l.value;if(l===this.hostElement)break;if(l.classList&&l.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.B.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.VP(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.B.animatedResizePlaylist=function(V){V.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.VP(this,this.animatedResizePlaylist)))};
_.B.getExpandIcon=function(V){return V?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.B.onPlayerVideoDataChange=function(){var V,l=(V=this.player)==null?void 0:V.getVideoAspectRatio();l&&l!==this.aspectRatio&&this.setAspectRatio(l)};
_.B.setAspectRatio=function(V){if(this.active){this.aspectRatio=V;this.updateDimensionsAndResize();var l;(l=this.JSC$17625_resizers)==null||l.setAspectRatio(V)}};
_.B.updateDimensionsAndResize=function(){var V=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),l=this.expanded?B26:this.aspectRatio,I=new _.Yp(192,this.showInfoBar?116:192);V=nNh(new _.Yp(l,1),new _.Yp(V,this.showInfoBar?V-76:V));I.width<=V.width&&I.height<=V.height||(U_E(V,I),V.width=Math.min(V.width,this.maxMiniplayerSize),V.height=Math.min(V.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&l<=1?Math.max(V.width,V.height)+76:Math.max(V.width,V.height)));this.dimensions=
new _.Yp(V.width,this.clamp(V.height+this.getNonPlayerHeight()));this.resize()};
_.B.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var V=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=V.height+"px";var l;(l=this.player)==null||l.setInternalSize(V.width,V.height)};
_.B.getPlayerSize=function(V){var l=Math.max(0,V.height-this.getNonPlayerHeight());return new _.Yp(V.width,l)};
_.B.getNonPlayerHeight=function(){var V=0;this.showInfoBar&&(V+=76);this.expanded&&(V+=285);return V};
_.B.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.F().resolve(_.sH).close()};
_.B.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.B.logClosingClick=function(){this.closeVe&&_.uJ(_.oa(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.uJ(_.oa(this.screenLayer),this.readyToResumeCloseVe)};
_.B.onPlayerExpandMiniplayer=function(){if(this.expandVe){var V=_.oa(this.screenLayer);V&&_.uJ(V,this.expandVe)}};
_.B.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var V=this.playerState===1;this.continueWatching&&V&&(this.continueWatching=!1);this.premiumBadges.length&&V&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.B.getScreenLayer=function(){return this.screenLayer};
_.B.logMiniplayer=function(){var V=_.oa(this.screenLayer),l=_.JO(this.screenLayer);V&&l&&this.playerVe&&(_.MJ(V,l,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.ah(V,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.pT(V,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.ah(V,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.B.computePlaylistData=function(V,l){return l};
_.B.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.B.computeExpandButtonHidden=function(V,l,I){return!V||!l||I};
_.B.computePlaylistIndexHidden=function(V,l){return!V||l};
_.B.computePlaylistPanelHidden=function(V,l){return!l&&!V};
_.B.computeExpandButtonLabel=function(V){return V?_.LT("MINIPLAYER_COLLAPSE_LABEL"):_.LT("MINIPLAYER_EXPAND_LABEL")};
_.B.computeDisabledStateCloseButtonLabel=function(){return _.LT("MINIPLAYER_CLOSE",void 0,"Close")};
_.B.onWindowResized=function(V){V&&(V=this.windowDimensions=V,this.maxMiniplayerSize=Math.min(Math.min(V.width,V.height)-32,720),this.updateDimensionsAndResize())};
_.B.setUpResizing=function(){var V=this;this.JSC$17625_resizers||(this.JSC$17625_resizers=new fL(this.JSC$17625_resizeContainer,{onStartResize:function(){V.handleResizeStart()},
onResize:function(l){V.handleResize(l)}}),this.JSC$17625_resizers.setSize(this.currentMiniplayerSize),this.JSC$17625_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.B.handleResizeStart=function(){var V=_.oa(this.screenLayer);this.userSetSize||(this.userSetSize=!0,V&&this.resizeVe&&_.pT(V,[this.resizeVe]));V&&this.resizeVe&&_.uJ(V,this.resizeVe)};
_.B.handleResize=function(V){this.setMiniplayerSize(V);this.updateDimensionsAndResize()};
_.B.setUpDragging=function(){var V=this;this.JSC$17625_dragger||(this.JSC$17625_dragger=new ac(this.draggableContainer,{onStartDrag:function(l){!V.isSafeToDrag(l)||V.isAnimatingSnap?l.preventDefault():V.handleDragStart()},
onDrag:function(l){V.transform=l;V.setTransform(V.transform)},
onEndDrag:function(){V.handleDragEnd()}},!0))};
_.B.handleDragStart=function(){this.isDragging=!0;var V=_.oa(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,V&&this.repositionVe&&_.pT(V,[this.repositionVe]));V&&this.repositionVe&&_.uJ(V,this.repositionVe)};
_.B.handleDragEnd=function(){this.isDragging=!1;var V=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&V>this.windowDimensions.height&&_.F().resolve(_.sH).close();this.animateSnapToCorner()};
_.B.animateSnapToCorner=function(){var V=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),l=this.getNearestAttachments();l=this.getGlobalPositionFromAttachments(l.horizontalAttachment,l.verticalAttachment);V=new _.og(l.x-V.x,l.y-V.y);this.isAnimatingSnap=!0;this.setTransform(V);this.hostElement.addEventListener("transitionend",_.VP(this,this.endSnapAnimation))};
_.B.endSnapAnimation=function(V){V.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.VP(this,this.endSnapAnimation)),this.endDrag())};
_.B.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.B.setTransform=function(V){this.hostElement.style.transform=V?"translate("+V.x+"px, "+V.y+"px)":""};
_.B.getGlobalPositionFromAttachments=function(V,l){return new _.og(V==="west"?16:this.windowDimensions.width-this.dimensions.width-16,l==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.B.updateAttachments=function(){var V=this.getNearestAttachments();if(this.horizontalAttachment!==V.horizontalAttachment||this.verticalAttachment!==V.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=V.horizontalAttachment;this.verticalAttachment=V.verticalAttachment;var l;(l=this.JSC$17625_resizers)==null||l.update(this.horizontalAttachment,this.verticalAttachment)};
_.B.getNearestAttachments=function(){var V=this.getCurrentGlobalPosition();return{horizontalAttachment:V.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:V.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.B.getCurrentGlobalPosition=function(){var V=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return Gp2(V,this.transform)};
_.B.isSafeToDrag=function(V){var l=this.playerContainer.getBoundingClientRect();return Math.abs(V.clientY-(l.y+l.height))>15};
_.B.setMiniplayerSize=function(V){this.currentMiniplayerSize=this.clamp(V);var l;(l=this.JSC$17625_resizers)==null||l.setSize(this.currentMiniplayerSize)};
_.B.clamp=function(V){return _.cA(192,V,720)};
_.B.registerViewTransitionTasks=function(){var V=this,l=_.F().resolve(_.Cs(_.fYE));if(l){var I={beforeTransition:function(){V.hostElement&&(V.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){V.hostElement&&(V.hostElement.style.viewTransitionName="")}};
KJ(l,"slide",I);KJ(l,"zoom",I)}};
_.vI.Object.defineProperties(gr.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.z("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:_.LT("CONTINUE_WATCHING",void 0,"Continue watching")};var V;if((V=this.externalPlaylistData)==null?0:V.contents)return this.externalPlaylistData.titleText;var l;return(l=this.data)==null?void 0:l.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.externalPlaylistData)==null?0:V.contents){var l;return(l=_.jeN(this.externalPlaylistData))==null?void 0:l.title}var I;return(I=this.data)==null?void 0:I.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var V,l,I,H;return((V=this.externalPlaylistData)==null?void 0:V.currentIndex)!==void 0&&((l=this.externalPlaylistData)==null?0:l.totalVideos)&&!((I=this.data)==null?0:(H=I.playlistData)==null?0:H.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.LHW(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.z("kevlar_watch_while_counterfactual")}}});
gr.prototype.onIsDisabledChanged=gr.prototype.onIsDisabledChanged;gr.prototype.readyToResumeVeChanged=gr.prototype.readyToResumeVeChanged;gr.prototype.premiumBrandingChanged=gr.prototype.premiumBrandingChanged;gr.prototype.onPlayerVeChange=gr.prototype.onPlayerVeChange;gr.prototype.hasPlaylistDataChanged=gr.prototype.hasPlaylistDataChanged;_.O([_.R(_.AN.YtPlayerListenerBehavior),_.a("design:type",_.uM)],gr.prototype,"ytPlayerListenerBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],gr.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],gr.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],gr.prototype,"ytdReduxBehavior",void 0);_.O([_.Ij("#draggable"),_.a("design:type",HTMLDivElement)],gr.prototype,"draggableContainer",void 0);
_.O([_.Ij("#resize-container"),_.a("design:type",HTMLDivElement)],gr.prototype,"JSC$17625_resizeContainer",void 0);_.O([_.Ij("#video-container"),_.a("design:type",HTMLDivElement)],gr.prototype,"videoContainer",void 0);_.O([_.Ij("#player-container"),_.a("design:type",HTMLDivElement)],gr.prototype,"playerContainer",void 0);_.O([_.Ij("#playlist"),_.a("design:type",HTMLDivElement)],gr.prototype,"JSC$17625_playlistPanel",void 0);_.O([_.q(),_.a("design:type",Object)],gr.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"active",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"hasNoData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"enabled",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"expanded",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"readyToResume",void 0);
_.O([_.q(),_.a("design:type",Object)],gr.prototype,"isDisabled",void 0);_.O([_.q(),_.a("design:type",Object)],gr.prototype,"externalPlaylistData",void 0);_.O([_.q(),_.a("design:type",Array)],gr.prototype,"premiumBadges",void 0);_.O([_.q(),_.a("design:type",Object)],gr.prototype,"toastData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"watchWhile",void 0);_.O([_.q(),_.a("design:type",Boolean)],gr.prototype,"premiumBranding",void 0);
_.O([_.q(),_.a("design:type",Object)],gr.prototype,"playerState",void 0);_.O([_.q(),_.a("design:type",Boolean)],gr.prototype,"continueWatching",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],gr.prototype,"verticalAttachment",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],gr.prototype,"horizontalAttachment",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"isAnimatingFade",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"isAnimatingSnap",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"isAnimatingExpand",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"isDragging",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"playerHidden",void 0);
_.O([_.q({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.a("design:type",Object)],gr.prototype,"playlistData",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.a("design:type",Object)],gr.prototype,"hasPlaylistData",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"closed",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],gr.prototype,"expandedClosed",void 0);
_.O([_.q({selector:_.Egw}),_.a("design:type",Boolean)],gr.prototype,"isSingleOptionSurveyActive",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.P4}),_.a("design:type",Boolean)],gr.prototype,"isWatchPage",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("watchWhile"),_.a("design:type",Object),_.a("design:paramtypes",[])],gr.prototype,"showInfoBar",null);_.O([_.Q("premiumBadges","showInfoBar"),_.a("design:type",Object),_.a("design:paramtypes",[])],gr.prototype,"showOverlayPremiumBadges",null);
_.O([_.q(),_.a("design:type",Object)],gr.prototype,"watchResponse",void 0);_.O([_.q(),_.a("design:type",Object)],gr.prototype,"miniplayerRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],gr.prototype,"playabilityStatus",void 0);_.O([_.q(),_.a("design:type",Object)],gr.prototype,"playerVe",void 0);_.O([_.q(),_.a("design:type",Object)],gr.prototype,"expandVe",void 0);_.O([_.q(),_.a("design:type",Object)],gr.prototype,"closeVe",void 0);
_.O([_.q(),_.a("design:type",Object)],gr.prototype,"readyToResumeCloseVe",void 0);_.O([_.q(),_.a("design:type",_.EA)],gr.prototype,"readyToResumeVe",void 0);_.O([_.q(),_.a("design:type",_.EA)],gr.prototype,"resizeVe",void 0);_.O([_.q(),_.a("design:type",_.EA)],gr.prototype,"repositionVe",void 0);_.O([_.b("hasPlaylistData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gr.prototype,"hasPlaylistDataChanged",null);
_.O([_.b("playerVe"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gr.prototype,"onPlayerVeChange",null);_.O([_.b("premiumBranding"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gr.prototype,"premiumBrandingChanged",null);_.O([_.b("readyToResumeVe"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gr.prototype,"readyToResumeVeChanged",null);
_.O([_.b("isDisabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gr.prototype,"onIsDisabledChanged",null);_.O([_.Q("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.a("design:type",Object),_.a("design:paramtypes",[])],gr.prototype,"miniplayerSubtitle",null);_.O([_.Q("data.miniplayerTitle","externalPlaylistData"),_.a("design:type",Object),_.a("design:paramtypes",[])],gr.prototype,"miniplayerTitle",null);
_.O([_.Q("externalPlaylistData","continueWatching"),_.a("design:type",Object),_.a("design:paramtypes",[])],gr.prototype,"playlistIndexMessage",null);_.O([_.q({reflectToAttribute:!0}),_.Q("playabilityStatus"),_.a("design:type",Object),_.a("design:paramtypes",[])],gr.prototype,"showErrorScreen",null);_.O([_.q({reflectToAttribute:!0}),_.Q("watchWhile"),_.a("design:type",Object),_.a("design:paramtypes",[])],gr.prototype,"watchWhileHidden",null);
_.z("ytd_miniplayer_to_wiz")||_.u(gr,"ytd-miniplayer",function(){if(VLB===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(iXV().content.cloneNode(!0),V.content.firstChild);V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);VLB=V}V=VLB;return V},{mode:2});var UTP;var mr=function(){var V=_.M.apply(this,arguments)||this;V.useListItemStyles=_.z("web_list_item_style_for_menu_items");V.systemIcons=_.z("kevlar_system_icons");return V};
_.t(mr,_.M);_.B=mr.prototype;_.B.ready=function(){this.hostElement.addEventListener("tap",_.VP(this,this.onEndpointTapExtra))};
_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.B.onFocus=function(){var V;(V=_.h(this.hostElement).querySelector("tp-yt-paper-item"))==null||V.focus()};
_.B.onEndpointTapExtra=function(V){_.B$(this.hostElement,"iron-activate");var l=this.data.navigationEndpoint;l&&_.y(l,_.sMT)&&(V.stopPropagation(),_.d6(this.hostElement,[l],this.hostElement))};
_.B.computeIcon=function(V){return V&&V.iconType?_.mj(V.iconType):""};
_.B.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.B.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.B.forceUpdateStylesOnLegacyBrowsers=function(){_.z("kevlar_legacy_browsers")&&_.i3(this.hostElement)};
mr.prototype.forceUpdateStylesOnLegacyBrowsers=mr.prototype.forceUpdateStylesOnLegacyBrowsers;mr.prototype.onFocus=mr.prototype.onFocus;_.O([_.R(_.u5),_.a("design:type",Object)],mr.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.GLQ.YtConditionalRendererBehavior),_.a("design:type",Object)],mr.prototype,"ytConditionalRendererBehavior",void 0);_.O([_.R(_.Uf.YtEndpointBehavior),_.a("design:type",Object)],mr.prototype,"ytEndpointBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],mr.prototype,"data",void 0);_.O([_.q({computed:"computeIcon(data.icon)",value:""}),_.a("design:type",String)],mr.prototype,"icon",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],mr.prototype,"useIcons",void 0);_.O([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.a("design:type",Boolean)],mr.prototype,"hasSeparator",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],mr.prototype,"useListItemStyles",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],mr.prototype,"systemIcons",void 0);_.O([_.W("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mr.prototype,"onFocus",null);_.O([_.b("useIcons","hasSeparator"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mr.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.u(mr,"ytd-menu-navigation-item-renderer",function(){if(UTP===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);UTP=V}V=UTP;return V},{mode:1});var n$B;var $T2=_.pW(_.LT("DOWNLOAD",{},"Download")),dTE=_.pW(_.LT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),wSb=_.pW(_.LT("RETRY",{},"Retry")),N2V=_.pW(_.LT("PAUSE_DOWNLOADING",{},"Pause downloading")),KUu=_.pW(_.LT("RESUME_DOWNLOAD",{},"Resume download")),ia=function(){var V=_.M.apply(this,arguments)||this;V.primaryText=$T2;V.primaryIconType="OFFLINE_DOWNLOAD";V.hasSecondaryContent=!1;V.hasSeparator=!1;V.transferState="TRANSFER_STATE_UNKNOWN";V.isVideoDeletedByUser=!1;V.isHidden=!1;V.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return V};
_.t(ia,_.M);_.B=ia.prototype;_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.B.onFocus=function(){this.primaryEntry.focus()};
_.B.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.B.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.B.getRemoveAction=function(){return"ACTION_REMOVE"};
_.B.sendOfflineAction=function(V){var l=this.data.serviceEndpoint;if(l){var I=_.y(l,_.xj);I&&V&&(I.action=V);this.ytComponentBehavior.resolveCommand(l)}};
_.B.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=$T2,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=$T2;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=wSb;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=dTE;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=KUu;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=dTE;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
N2V;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=dTE;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=dTE;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=$T2,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.B.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.B.isSecondaryEntryHidden=function(V,l){return V?!0:!l};
_.B.computeHasSeparator=function(){var V;return!((V=this.data)==null||!V.hasSeparator)};
ia.prototype.showHideButton=ia.prototype.showHideButton;ia.prototype.onTransferStateChange=ia.prototype.onTransferStateChange;ia.prototype.onFocus=ia.prototype.onFocus;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],ia.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ia.prototype,"ytComponentBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],ia.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],ia.prototype,"primaryText",void 0);_.O([_.q(),_.a("design:type",String)],ia.prototype,"primaryIconType",void 0);_.O([_.q(),_.a("design:type",String)],ia.prototype,"primaryAction",void 0);_.O([_.q(),_.a("design:type",Object)],ia.prototype,"secondaryText",void 0);_.O([_.q(),_.a("design:type",String)],ia.prototype,"secondaryIconType",void 0);
_.O([_.q(),_.a("design:type",String)],ia.prototype,"secondaryAction",void 0);_.O([_.q(),_.a("design:type",Object)],ia.prototype,"hasSecondaryContent",void 0);_.O([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.a("design:type",Object)],ia.prototype,"hasSeparator",void 0);_.O([_.q({selector:_.Dw,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.a("design:type",String)],ia.prototype,"transferState",void 0);
_.O([_.q({selector:_.OnK,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.a("design:type",Object)],ia.prototype,"isVideoDeletedByUser",void 0);_.O([_.q(),_.a("design:type",Object)],ia.prototype,"isHidden",void 0);_.O([_.q({selector:_.MlJ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.a("design:type",Object)],ia.prototype,"offlineabilityState",void 0);_.O([_.Ij("#primary-entry"),_.a("design:type",Object)],ia.prototype,"primaryEntry",void 0);
_.O([_.W("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ia.prototype,"onFocus",null);_.O([_.xs("transferState","isVideoDeletedByUser"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ia.prototype,"onTransferStateChange",null);_.O([_.xs("offlineabilityState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ia.prototype,"showHideButton",null);
_.u(ia,"ytd-menu-service-item-download-renderer",function(){if(n$B===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);n$B=V}V=n$B;return V},{mode:1});var jy2;var V8=function(){var V=_.M.apply(this,arguments)||this;V.useIcons=!1;V.systemIcons=_.z("kevlar_system_icons");V.useListItemStyles=_.z("web_list_item_style_for_menu_items");return V};
_.t(V8,_.M);_.B=V8.prototype;_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.B.onFocus=function(){var V;(V=_.h(this.hostElement).querySelector("tp-yt-paper-item"))==null||V.focus()};
_.B.onTap=function(){_.U4(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var V=this.data.serviceEndpoint,l=this.data.command;if(V){var I,H=(I=this.data)==null?void 0:I.trackingParams;I=!!_.y(V,_.sRo);H&&I&&_.v4().dispatch(_.IA({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:H}}));this.ytComponentBehavior.resolveCommand(V)||(_.z("web_ytd_menu_service_item_renderer_command_resolver_ks")?_.$B(this.hostElement,[V]):_.F().resolve(_.aw).resolveCommand(V,
{form:{element:this.hostElement}}))}l&&(this.ytComponentBehavior.resolveCommand(l)||_.d6(this.hostElement,[l],this.hostElement))};
_.B.computeIcon=function(V){return V&&V.iconType?_.mj(V.iconType):""};
_.B.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.B.computeHasSeparator=function(){var V;return!((V=this.data)==null||!V.hasSeparator)};
_.B.forceUpdateStylesOnLegacyBrowsers=function(){_.z("kevlar_legacy_browsers")&&_.i3(this.hostElement)};
_.B.computeIsSelected=function(){var V;return!((V=this.data)==null||!V.isSelected)};
V8.prototype.forceUpdateStylesOnLegacyBrowsers=V8.prototype.forceUpdateStylesOnLegacyBrowsers;V8.prototype.onTap=V8.prototype.onTap;V8.prototype.onFocus=V8.prototype.onFocus;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],V8.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],V8.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.GLQ.YtConditionalRendererBehavior),_.a("design:type",Object)],V8.prototype,"ytConditionalRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],V8.prototype,"data",void 0);_.O([_.q({computed:"computeIcon(data.icon)",value:""}),_.a("design:type",String)],V8.prototype,"icon",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],V8.prototype,"useIcons",void 0);
_.O([_.q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.a("design:type",Boolean)],V8.prototype,"hasSeparator",void 0);_.O([_.q({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.a("design:type",Boolean)],V8.prototype,"isSelected",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],V8.prototype,"systemIcons",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],V8.prototype,"useListItemStyles",void 0);
_.O([_.W("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V8.prototype,"onFocus",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],V8.prototype,"onTap",null);_.O([_.b("useIcons","hasSeparator"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V8.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.u(V8,"ytd-menu-service-item-renderer",function(){if(jy2===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);jy2=V}V=jy2;return V},{mode:2});var Y1b;var LUg=function(){return _.M.apply(this,arguments)||this};
_.t(LUg,_.M);_.B=LUg.prototype;_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.onDataChanged=function(){var V=this;_.Al(this,function(){V.postbox.openDialog();V.focus();_.B$(V.hostElement,"yt-refit")})};
_.B.focus=function(){this.postbox.focus()};
_.B.closePopup=function(){_.xB(this.hostElement,"yt-close-popup-action")};
_.B.onYtCommentboxDismiss=function(){this.closePopup()};
var lH=LUg;lH.prototype.onYtCommentboxDismiss=lH.prototype.onYtCommentboxDismiss;lH.prototype.onDataChanged=lH.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],lH.prototype,"data",void 0);_.O([_.q({value:function(){return _.LT("SBOX_INAPPROPRIATE_CANCEL")}}),
_.a("design:type",String)],lH.prototype,"closeButtonAriaLabel",void 0);_.O([_.Ij("#postbox"),_.a("design:type",Object)],lH.prototype,"postbox",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lH.prototype,"onDataChanged",null);_.O([_.W("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lH.prototype,"onYtCommentboxDismiss",null);
lH=_.O([_.A({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],lH);
_.u(lH,"ytd-backstage-post-dialog-popup-renderer",function(){if(Y1b!==void 0)return Y1b;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Y1b=V},{mode:1});var eor;var khV=function(){return _.M.apply(this,arguments)||this};
_.t(khV,_.M);var I3=khV;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],I3.prototype,"data",void 0);I3=_.O([_.A({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],I3);
_.u(I3,"ytd-sender-id-section-renderer",function(){if(eor!==void 0)return eor;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return eor=V},{mode:1});var FU6;var XSE;var zob;var yCE=function(){return _.M.apply(this,arguments)||this};
_.t(yCE,_.M);yCE.prototype.closePopup=function(){_.xB(this.hostElement,"yt-close-popup-action")};
var Ho=yCE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ho.prototype,"data",void 0);Ho=_.O([_.Lm({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Ho);
_.u(Ho,"yt-community-post-section-renderer",function(){if(zob===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;XSE===void 0&&(XSE=document.createElement("template"));var H=XSE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);zob=V}V=zob;return V},{mode:2});var tLE;var rCV;var GhE;var E$B;var JCE;var o$b;var ho2=function(){return _.M.apply(this,arguments)||this};
_.t(ho2,_.M);var Tv=ho2;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Tv.prototype,"data",void 0);Tv=_.O([_.Lm({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Tv);
_.u(Tv,"yt-share-start-time-with-context-renderer",function(){if(o$b===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;JCE===void 0&&(JCE=document.createElement("template"));var H=JCE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);o$b=V}V=o$b;return V},{mode:2});var PdY=function(){return _.M.apply(this,arguments)||this};
_.t(PdY,_.M);PdY.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
var Bo=PdY;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Bo.prototype,"data",void 0);Bo=_.O([_.Lm({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Bo);
_.u(Bo,"yt-share-panel-title-v15-renderer",function(){if(E$B===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;GhE===void 0&&(GhE=document.createElement("template"));var H=GhE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);E$B=V}V=E$B;return V},{mode:2});var DTh=function(){return _.M.apply(this,arguments)||this};
_.t(DTh,_.M);DTh.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
var xM=DTh;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],xM.prototype,"data",void 0);xM=_.O([_.Lm({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],xM);
_.u(xM,"yt-share-panel-header-renderer",function(){if(rCV===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;tLE===void 0&&(tLE=document.createElement("template"));var H=tLE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);rCV=V}V=rCV;return V},{mode:2});var ZVI;var S1B;var RoV=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-open-popup-action":"onOpen"};return V};
_.t(RoV,_.M);_.B=RoV.prototype;_.B.attached=function(){this.onOpen()};
_.B.updateTimeSecs=function(V){this.currentTimeSecs=V};
_.B.computeTimeString=function(V){V=V.toString();var l=Math.floor(Number(V)/3600),I=Math.floor(Number(V)%3600%60);return(l>0?l+":":"")+_.Bi(Math.floor(Number(V)%3600/60),l>0?2:1)+":"+_.Bi(I,2)};
_.B.computeTimeStringA11y=function(V){V=_.a$q({seconds:V});var l=V.hours===void 0?0:V.hours,I=V.minutes===void 0?0:V.minutes,H=V.seconds===void 0?0:V.seconds;V=[];if(l>0){var T=nFV().format({hours:l});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.QH)||l>9999)T=T.replace(l.toString(),_.f$W(l)),_.QH==="km"&&(T=T.replace(".",","));V.push(T)}I>0&&V.push(nFV().format({minutes:I}));H>0&&V.push(nFV().format({seconds:H}));l="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");I=_.QH==
"am"?"{0}\u1363 ":_.QH=="fa"?"{0}\u060c\u200f ":_.QH=="my"?"{0} - ":_.QH=="ne"?"{0},":_.QH=="th"?"{0} ":_.QH=="ur"?"{0}\u060c ":_.QH=="ar"||_.QH=="ar-XB"?"{0} \u0648":_.QH=="ja"||_.QH=="zh-CN"||_.QH=="zh-HK"||_.QH=="zh-TW"?"{0}\u3001":"{0}, ";H=_.QH=="am"?"\u1363 ":_.QH=="fa"?"\u060c\u200f ":_.QH=="my"?" - ":_.QH=="th"?" ":_.QH=="ur"?"\u060c ":_.QH=="ar"||_.QH=="ar-XB"?" \u0648":_.QH=="ja"||_.QH=="zh-CN"||_.QH=="zh-HK"||_.QH=="zh-TW"?"\u3001":", ";T=_.QH=="am"?" \u12a5\u1293 {0}":_.QH=="as"?" \u0986\u09f0\u09c1 {0}":
_.QH=="az"?" v\u0259 {0}":_.QH=="bn"?" \u098f\u09ac\u0982 {0}":_.QH=="cs"?" a\u00a0{0}":_.QH=="de"?" und {0}":_.QH=="el"?" \u03ba\u03b1\u03b9 {0}":_.QH=="eu"?" eta {0}":_.QH=="fa"?"\u060c \u0648 {0}":_.QH=="fil"?", at {0}":_.QH=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.QH=="hi"?", \u0914\u0930 {0}":_.QH=="hu"?" \u00e9s {0}":_.QH=="hy"?" \u0587 {0}":_.QH=="id"?", dan {0}":_.QH=="iw"?" \u05d5-{0}":_.QH=="ja"?"\u3001{0}":_.QH=="ka"?" \u10d3\u10d0 {0}":_.QH=="km"?" \u1793\u17b7\u1784 {0}":_.QH=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.QH=="ko"?" \ubc0f {0}":_.QH=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.QH=="lt"?" ir {0}":_.QH=="lv"?" un {0}":_.QH=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.QH=="mr"?" \u0906\u0923\u093f {0}":_.QH=="ms"?" dan {0}":_.QH=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.QH=="ne"?" \u0930 {0}":_.QH=="or"?", \u0b13 {0}":_.QH=="pa"?" \u0a05\u0a24\u0a47 {0}":_.QH=="ro"?" \u0219i {0}":_.QH=="si"?", \u0dc3\u0dc4 {0}":_.QH=="sk"?" a {0}":_.QH=="sl"?" in {0}":_.QH=="sq"?" dhe {0}":_.QH=="sv"?" och {0}":
_.QH=="sw"?" na {0}":_.QH=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.QH=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.QH=="th"?" \u0e41\u0e25\u0e30{0}":_.QH=="tr"?" ve {0}":_.QH=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.QH=="uz"?" va {0}":_.QH=="vi"?" v\u00e0 {0}":_.QH=="zh-HK"?"\u53ca{0}":_.QH=="zu"?", ne-{0}":_.QH=="af"||_.QH=="nl"?" en {0}":_.QH=="ar"||_.QH=="ar-XB"?" \u0648{0}":_.QH=="be"||_.QH=="uk"?" \u0456 {0}":_.QH=="en-GB"||_.QH=="en-IN"?" and {0}":_.QH=="en"||_.QH=="en-XA"?
", and {0}":_.QH=="et"||_.QH=="fi"?" ja {0}":_.QH=="fr"||_.QH=="fr-CA"?" et {0}":_.QH=="zh-CN"||_.QH=="zh-TW"?"\u548c{0}":_.QH=="da"||_.QH=="is"||_.QH=="no"?" og {0}":_.QH=="es"||_.QH=="es-419"||_.QH=="es-US"?" y {0}":_.QH=="kk"||_.QH=="lo"||_.QH=="mn"?", {0}":_.QH=="bg"||_.QH=="mk"||_.QH=="ru"||_.QH=="sr"?" \u0438 {0}":_.QH=="gl"||_.QH=="it"||_.QH=="pt-BR"||_.QH=="pt-PT"?" e {0}":" i {0}";var x=_.QH=="am"?"{0} \u12a5\u1293 {1}":_.QH=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.QH=="az"?"{0} v\u0259 {1}":
_.QH=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.QH=="de"?"{0} und {1}":_.QH=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.QH=="eu"?"{0} eta {1}":_.QH=="fa"?"{0} \u0648 {1}":_.QH=="fil"?"{0} at {1}":_.QH=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.QH=="hi"?"{0} \u0914\u0930 {1}":_.QH=="hu"?"{0} \u00e9s {1}":_.QH=="hy"?"{0} \u0587 {1}":_.QH=="iw"?"{0} \u05d5-{1}":_.QH=="ja"?"{0}\u3001{1}":_.QH=="ka"?"{0} \u10d3\u10d0 {1}":_.QH=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.QH=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.QH=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.QH=="ko"?"{0} \ubc0f {1}":_.QH=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.QH=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.QH=="lt"?"{0} ir {1}":_.QH=="lv"?"{0} un {1}":_.QH=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.QH=="mn"?"{0}, {1}":_.QH=="mr"?"{0} \u0906\u0923\u093f {1}":_.QH=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.QH=="ne"?"{0} \u0930 {1}":_.QH=="or"?"{0} \u0b13 {1}":_.QH=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.QH=="ro"?"{0} \u0219i {1}":_.QH==
"si"?"{0} \u0dc3\u0dc4 {1}":_.QH=="sl"?"{0} in {1}":_.QH=="sq"?"{0} dhe {1}":_.QH=="sv"?"{0} och {1}":_.QH=="sw"?"{0} na {1}":_.QH=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.QH=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.QH=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.QH=="tr"?"{0} ve {1}":_.QH=="ur"?"{0} \u0627\u0648\u0631 {1}":_.QH=="uz"?"{0} va {1}":_.QH=="vi"?"{0} v\u00e0 {1}":_.QH=="zh-HK"?"{0}\u53ca{1}":_.QH=="zu"?"{0} ne-{1}":_.QH=="af"||_.QH=="nl"?"{0} en {1}":_.QH=="ar"||_.QH==
"ar-XB"?"{0} \u0648{1}":_.QH=="be"||_.QH=="uk"?"{0} \u0456 {1}":_.QH=="cs"||_.QH=="sk"?"{0} a\u00a0{1}":_.QH=="et"||_.QH=="fi"?"{0} ja {1}":_.QH=="fr"||_.QH=="fr-CA"?"{0} et {1}":_.QH=="id"||_.QH=="ms"?"{0} dan {1}":_.QH=="zh-CN"||_.QH=="zh-TW"?"{0}\u548c{1}":_.QH=="da"||_.QH=="is"||_.QH=="no"?"{0} og {1}":_.QH=="es"||_.QH=="es-419"||_.QH=="es-US"?"{0} y {1}":_.QH=="bg"||_.QH=="mk"||_.QH=="ru"||_.QH=="sr"?"{0} \u0438 {1}":_.QH=="en"||_.QH=="en-GB"||_.QH=="en-IN"||_.QH=="en-XA"?"{0} and {1}":_.QH==
"gl"||_.QH=="it"||_.QH=="pt-BR"||_.QH=="pt-PT"?"{0} e {1}":"{0} i {1}";_.QH==="sq"?(T=T.replace("dhe","e"),x=x.replace("dhe","e")):_.QH==="th"?(H=H.replace("{0}"," {0}"),x=x.replace("{0}","{0} "),x=x.replace("{1}"," {1}")):_.QH==="ne"?H=",":_.QH==="zh-CN"?H="":l.includes(_.QH)&&(H=" ");return V.length<2?V.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(_.QH)?V.length===2?
x.replace("{0}",V[0]).replace("{1}",V[1]):I.replace("{0}",V[0])+V.slice(1,-1).join(H)+T.replace("{0}",V[V.length-1]):V.join(H)};
_.B.getTimeParam=function(){return hfu(this.timeString)};
_.B.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var V={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},l;_.dF(_.x7(),(l=this.data)==null?void 0:l.trackingParams,V,7)};
_.B.onChangeStartAtTimestamp=function(){for(var V=this.startAtTimestamp.value.split(":"),l=0,I=1,H=V.length-1;H>=0;H--)l+=Number(V[H])*I,I*=60;this.updateTimeSecs(l);this.setTimestamp()};
_.B.onOpen=function(){var V=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var l=_.u8();l?l.getPlayerPromise().then(function(I){I=I.getCurrentTime();V.updateTimeSecs(I)}):x7Q()&&this.updateTimeSecs(x7Q())};
_.B.setTimestamp=function(){var V=Math.floor(this.currentTimeSecs);_.xB(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!V,timestamp:V||""}])};
var Ue=RoV;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Ue.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ue.prototype,"data",void 0);_.O([_.q({value:!1,notify:!0}),_.a("design:type",Boolean)],Ue.prototype,"isStartAtChecked",void 0);_.O([_.q(),_.a("design:type",Number)],Ue.prototype,"currentTimeSecs",void 0);
_.O([_.q({computed:"computeTimeString(currentTimeSecs)"}),_.a("design:type",String)],Ue.prototype,"timeString",void 0);_.O([_.q({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.a("design:type",String)],Ue.prototype,"timeStringA11y",void 0);_.O([_.Ij("#start-at-timestamp"),_.a("design:type",Object)],Ue.prototype,"startAtTimestamp",void 0);Ue=_.O([_.Lm({is:"yt-start-at-renderer",disableElementRegistration:!0})],Ue);
_.u(Ue,"yt-start-at-renderer",function(){if(S1B===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;ZVI===void 0&&(ZVI=document.createElement("template"));var H=ZVI;I.call(l,H.content.cloneNode(!0),V.content.firstChild);S1B=V}V=S1B;return V},{mode:2});var Qyb;var cCV;var WUY=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"]]),bVE=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"]]),q1b=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var ML2={};ML2.YtBindingExpressionsBehavior={identity:_.Wy,msg:function(V,l){l=l===void 0?{}:l;return _.LT(V,l,V)},
msgPlural:function(V,l){return _.e1(V,l)},
getMusicIconFromType:function(V){if(_.z("music_web_enable_icon_wil"))V=_.mj(V);else if(bVE.has(V))V="yt-sys-icons:"+bVE.get(V);else{var l=WUY.get(V)||_.mj(V).split(":")[1];l=_.ti3(l);var I;V=((I=q1b.get(V))!=null?I:"yt-sys-icons:")+l}return V}};var syg;var pSV;var ACb;var ulu=document.head,v$E=ulu.appendChild,OVE;if(ACb===void 0){var Cd6=document.createElement("template");_.G(Cd6,'\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>');ACb=Cd6}OVE=ACb;v$E.call(ulu,OVE.content);var nf=function(){var V=_.M.apply(this,arguments)||this;V.screenLayer=7;return V};
_.t(nf,_.M);nf.prototype.getScreenLayer=function(){return this.screenLayer};
nf.prototype.onTap=function(V){V&&V.detail&&(V.detail.x||V.detail.y)&&_.h(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.$B(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(V=this.getScreenLayer(),_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:V}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.vI.Object.defineProperties(nf.prototype,{title:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.title)}},
icon:{configurable:!0,enumerable:!0,get:function(){return"socialNetworksRound:"+this.data.serviceName.toLowerCase()}}});
var $M=nf;$M.prototype.onTap=$M.prototype.onTap;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],$M.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$M.prototype,"data",void 0);_.O([_.Q("data.title"),_.a("design:type",Object),_.a("design:paramtypes",[])],$M.prototype,"title",null);
_.O([_.Q("data.serviceName"),_.a("design:type",String),_.a("design:paramtypes",[])],$M.prototype,"icon",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$M.prototype,"onTap",null);$M=_.O([_.Lm({is:"yt-share-target-renderer",disableElementRegistration:!0})],$M);
_.u($M,"yt-share-target-renderer",function(){if(pSV===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;syg===void 0&&(syg=document.createElement("template"));var H=syg;I.call(l,H.content.cloneNode(!0),V.content.firstChild);pSV=V}V=pSV;return V},{mode:2});var asY;var fsP;var g$V=function(){var V=_.M.apply(this,arguments)||this;V.SHARE_TARGET_WIDTH=70;V.SHARE_TARGET_MARGIN_RIGHT=8;V.PAGE_SCROLL_SPEED=9;V.actionMap={"yt-share-panel-reset-action":"onReset_"};return V};
_.t(g$V,_.M);_.B=g$V.prototype;_.B.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.B.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.h(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.h(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.B.onReset_=function(){if(_.h(this.hostElement).querySelector("#list")){var V=_.h(this.hostElement).querySelector("#list");var l=_.h(this.hostElement).querySelector("#list");var I=l.offsetLeft,H=l.offsetParent;H||_.DVN(l)!="fixed"||(H=_.Z3(l).documentElement);if(H){if(_.Kj&&!TYI(58)){var T=_.qqw(H);I+=T.left}else Number(_.qUN)>=8&&!(Number(_.qUN)>=9)&&(T=_.qqw(H),I-=T.left);l=_.Wx0(H)?H.clientWidth-(I+l.offsetWidth):I}else l=I;TQB(V,l);this.updateScrollButtons_()}};
_.B.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.B.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.B.onScrollWheel_=function(V){V.stopPropagation();V.preventDefault();var l=HDE(_.h(this.hostElement).querySelector("#list"));V=Math.abs(V.deltaX)>Math.abs(V.deltaY)?V.deltaX:V.deltaY;TQB(_.h(this.hostElement).querySelector("#list"),l+V);this.updateScrollButtons_()};
_.B.smoothScrollByOnePage_=function(V){var l=_.h(this.hostElement).querySelector("#list"),I=(Math.floor(l.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,H=HDE(l),T=I*(V?1:-1),x=this.PAGE_SCROLL_SPEED,n=this.updateScrollButtons_.bind(this),w=0,N;(function e(){w+=x;N=w/I*2;TQB(l,H+T*(N<1?N*N:-N*N+4*N-2));w<I?window.requestAnimationFrame(e):n()})()};
_.B.updateScrollButtons_=function(){var V=HDE(_.h(this.hostElement).querySelector("#list")),l=_.h(this.hostElement).querySelector("#list").scrollWidth-_.h(this.hostElement).querySelector("#list").clientWidth;_.h(this.hostElement).querySelector("#scroll-button-back").hidden=V<=0;_.h(this.hostElement).querySelector("#scroll-button-forward").hidden=V>=l};
var dC=g$V;dC.prototype.onScrollWheel_=dC.prototype.onScrollWheel_;dC.prototype.onDataChanged_=dC.prototype.onDataChanged_;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],dC.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(ML2.YtBindingExpressionsBehavior),_.a("design:type",Object)],dC.prototype,"ytBindingExpressionsBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],dC.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dC.prototype,"onDataChanged_",null);_.O([_.W("wheel"),_.a("design:type",Function),_.a("design:paramtypes",[WheelEvent]),_.a("design:returntype")],dC.prototype,"onScrollWheel_",null);
dC=_.O([_.Lm({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],dC);
_.u(dC,"yt-third-party-share-target-section-renderer",function(){if(fsP===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;asY===void 0&&(asY=document.createElement("template"));var H=asY;I.call(l,H.content.cloneNode(!0),V.content.firstChild);fsP=V}V=fsP;return V},{mode:2});var mTu=function(){return _.M.apply(this,arguments)||this};
_.t(mTu,_.M);mTu.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
var wC=mTu;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],wC.prototype,"data",void 0);wC=_.O([_.Lm({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],wC);
_.u(wC,"yt-third-party-network-section-renderer",function(){if(cCV===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;Qyb===void 0&&(Qyb=document.createElement("template"));var H=Qyb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);cCV=V}V=cCV;return V},{mode:2});_.MR(_.W1(function(V){return _.Y("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.Y("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.Y(_.rw,{data:function(){return V.data().firstPartyItems}},{listItemViewModel:_.Fg})))},"Lf"),"first-party-network-section-view-model",{props:{data:_.b9}});var iVh=_.fl(["data:image/svg+xml;charset=UTF-8;base64,",""]),Vi2=function(){var V=_.M.apply(this,arguments)||this;V.screenLayer=7;V.qrCodeEnabled=_.z("web_enable_sharing_qr_code");V.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return V};
_.t(Vi2,_.M);_.B=Vi2.prototype;_.B.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"}}}};
_.B.attached=function(){this.JSC$17677_scroller&&(this.JSC$17677_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17677_scroller.attached&&typeof this.JSC$17677_scroller.attached==="function"&&this.JSC$17677_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.B.onDataChanged=function(){var V=this,l;(l=this.data)!=null&&l.contents&&(this.hostElement.setAttribute("links-only","true"),_.gP(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.Al(this,function(){_.B$(V.hostElement,"yt-refit");V.focusSharePanelHeader()}))};
_.B.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.B.handleSetTimestamp=function(V){var l=this.shortUrl();V.isSet&&(l=_.tP(l,"t",V.timestamp));this.maybeRenderQrCode(l)};
_.B.shortUrl=function(){var V,l=(V=this.data)==null?void 0:V.contents;if(l)for(V=0;V<l.length;V++){var I=void 0,H=void 0;if((I=l[V])==null?0:(H=I.thirdPartyNetworkSection)==null?0:H.copyLinkContainer){var T=H=I=void 0;return(T=_.y((I=l[V])==null?void 0:(H=I.thirdPartyNetworkSection)==null?void 0:H.copyLinkContainer,jDh))==null?void 0:T.shortUrl}}};
_.B.maybeRenderQrCode=function(V){var l=this,I,H,T,x,n,w,N,L,e;return _.d(function(k){if(k.nextAddress==1){I=_.h(l.hostElement).querySelector("#qr-code");if(!l.qrCodeEnabled||!V)return I&&(I.style.display="none"),k.return();H=_.MZg(_.F().resolve(_.VI),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});T=document.createElement("div");return typeof H==="function"?(H(T),k.jumpTo(2)):_.K(k,H,3)}k.nextAddress!=2&&(x=k.yieldResult,x(T));N=(n=T)==null?void 0:(w=n.firstChild)==null?void 0:w.firstChild;
L=document.createElement("img");e=_.ch(iVh,btoa(N.outerHTML));L.onload=function(){var X={canvas:I,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:L},r=new hgV;QJP(r,V);cyY(r,!1,WlQ(r));var E=r.modules,D=Object.assign({},C9E,X);E=structuredClone(E);X=E.length;var Z,S=(Z=D.canvas)!=null?Z:document.createElement("canvas");Z=D.cellSize;r=D.logo;var p,Vf=(p=D.logoSize)!=null?p:Math.floor(X/4);X%2!==Vf%2&&Vf++;var C=D.logoPadding,By=D.backgroundColor;p=X*Z;var lN=
D.width,wW=0;lN&&(wW=D.padding,wW=Math.ceil(wW*p/(lN-wW*2)),S.style.width=lN+"px",S.style.height=lN+"px");S.width!==p+wW*2&&(S.width=p+wW*2);S.height!==p+wW*2&&(S.height=p+wW*2);p=S.getContext("2d");D.autoClear&&p.clearRect(0,0,S.width,S.height);p.fillStyle=By;p.beginPath();p.roundRect(0,0,S.width,S.height,D.borderRadius);p.fill();p.save();p.translate(wW,wW);if(r)for(S=Math.floor(X-Vf)/2-C,C=Math.floor(X+Vf)/2+C,By=S;By<C;By++)for(lN=S;lN<C;lN++)E[By][lN]=!1;for(S=0;S<X;S++)for(C=0;C<X;C++)(S<7&&
C<7||S<7&&C>=X-7||S>=X-7&&C<7)&&(E[S][C]=!1);var o1;S=(o1=D.markerColor)!=null?o1:D.color;qJh(p,0,0,Z,S);qJh(p,Z*(X-7),0,Z,S);qJh(p,0,Z*(X-7),Z,S);switch(D.cellStyle){case 0:o1=E;E=o1.length;S=D.cellSize;p.beginPath();for(C=0;C<E;C++)for(By=0;By<E;By++)o1[C][By]&&p.rect(C*S,By*S,S,S);p.fillStyle=D.color;p.fill();break;case 1:o1=E;E=o1.length;S=D.cellSize;C=S*D.relativeCircleSize;p.fillStyle=D.color;p.beginPath();for(D=0;D<E;D++)for(By=0;By<E;By++)o1[D][By]&&(p.beginPath(),p.ellipse((D+.5)*S,(By+.5)*
S,C/2,C/2,0,0,2*Math.PI),p.fill());p.fill();break;case 2:o1=E;E=o1.length;S=D.cellSize;p.fillStyle=D.color;D=[[1,1],[-1,1],[-1,-1],[1,-1]];p.beginPath();for(C=0;C<E;C++)for(By=0;By<E;By++)if(o1[C][By])p.roundRect(C*S,By*S,S,S,S/2),C+1<E&&o1[C+1][By]&&p.rect(C*S+S/2,By*S,S,S),By+1<E&&o1[C][By+1]&&p.rect(C*S,By*S+S/2,S,S);else{lN=C*S+S/2;wW=By*S+S/2;for(var h1=0;h1<4;h1++){var ec=_.U(D[h1]),Zg=ec.next().value;ec=ec.next().value;C+Zg>=0&&C+Zg<E&&By+ec>=0&&By+ec<E&&o1[C+Zg][By]&&o1[C][By+ec]&&o1[C+Zg][By+
ec]&&(Zg=h1*Math.PI/2,ec=S/2,p.moveTo(lN+ec*Math.cos(Zg),wW+ec*Math.sin(Zg)),p.arc(lN,wW,S/2,Zg,Zg+Math.PI/2,!1),p.lineTo(lN+ec*(Math.cos(Zg)-Math.sin(Zg)),wW+ec*(Math.cos(Zg)+Math.sin(Zg))),p.lineTo(lN+ec*Math.cos(Zg),wW+ec*Math.sin(Zg)))}}p.fill()}r&&p.drawImage(r,(X-Vf)*Z/2,(X-Vf)*Z/2,Vf*Z,Vf*Z);p.restore();I.style.removeProperty("display")};
L.src=_.hV(e);_.FU(k)})};
_.B.hasCommunityPostRenderer=function(){var V,l,I,H;return!!((V=this.data)==null?0:(l=V.header)==null?0:(I=l.sharePanelHeaderRenderer)==null?0:(H=I.communityPost)==null?0:H.communityPostSectionRenderer)};
_.B.onTapClose=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.B.getScreenLayer=function(){return this.screenLayer};
_.B.logSharePanelPage=function(){if(!_.z("enable_share_panel_navigation_logging_fix_on_web")){var V;if((V=this.data)!=null&&V.trackingParams){V=this.data.trackingParams;var l=this.parentClickTrackingParams;l=l?_.dj(l):void 0;var I=_.x7();_.xg(I,21760,l,{layer:7,parentLayer:0});I.graftServerVe(V,void 0,7);_.v4().dispatch(_.IA({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
var NF=Vi2;NF.prototype.onDataChanged=NF.prototype.onDataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],NF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],NF.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],NF.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],NF.prototype,"data",void 0);_.O([_.q({value:_.LT("SBOX_INAPPROPRIATE_CANCEL")}),_.a("design:type",String)],NF.prototype,"closeButtonAriaLabel",void 0);_.O([_.Ij("yt-share-panel-header-renderer"),_.a("design:type",HTMLElement)],NF.prototype,"header",void 0);_.O([_.q({selector:function(V){return V.share.parentClickTrackingParams}}),
_.a("design:type",String)],NF.prototype,"parentClickTrackingParams",void 0);_.O([_.q(),_.a("design:type",Object)],NF.prototype,"qrCodeEnabled",void 0);_.O([_.Ij("#scroller"),_.a("design:type",Object)],NF.prototype,"JSC$17677_scroller",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],NF.prototype,"onDataChanged",null);NF=_.O([_.A({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],NF);
_.u(NF,"ytd-unified-share-panel-renderer",function(){if(FU6!==void 0)return FU6;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return FU6=V},{mode:1});var lHE;var Kf=function(){var V=_.M.apply(this,arguments)||this;V.modernModal=_.z("kevlar_sign_in_modal_modernization");return V};
_.t(Kf,_.M);Kf.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Kf.prototype.computeShouldHideOldButtons=function(){var V;return!((V=this.data)==null?0:V.button)};
_.vI.Object.defineProperties(Kf.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var V,l;if(this.modernModal&&((V=this.data)==null?0:(l=V.button)==null?0:l.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var I,H;return(I=this.data)==null?void 0:(H=I.button)==null?void 0:H.buttonRenderer}}});
var jj=Kf;_.O([_.q(),_.a("design:type",Object)],jj.prototype,"data",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],jj.prototype,"ytEventForwardingBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],jj.prototype,"modernModal",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"buttonRendererData",null);
jj=_.O([_.A({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],jj);
_.u(jj,"ytd-modal-with-title-and-button-renderer",function(){if(lHE!==void 0)return lHE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return lHE=V},{mode:1});var IHI;var HIV=function(){return _.M.apply(this,arguments)||this};
_.t(HIV,_.M);HIV.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("page-changed",this.page))};
var YM=HIV;YM.prototype.pageChangedForBinding=YM.prototype.pageChangedForBinding;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],YM.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],YM.prototype,"page",void 0);_.O([_.b("page"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],YM.prototype,"pageChangedForBinding",null);
YM=_.O([_.A({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],YM);
_.u(YM,"ytd-account-item-section-header-renderer",function(){if(IHI!==void 0)return IHI;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return IHI=V},{mode:1});var TZ6;var aZE=function(){return _.M.apply(this,arguments)||this};
_.t(aZE,_.M);aZE.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"}}}};
aZE.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
var Lf=aZE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],Lf.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Lf.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!1}),_.a("design:type",Function)],Lf.prototype,"onAccountItemTap",void 0);
Lf=_.O([_.A({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Lf);
_.u(Lf,"ytd-account-item-section-renderer",function(){if(TZ6!==void 0)return TZ6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return TZ6=V},{mode:1});var fZ2;var guu;var mW6=function(){return _.M.apply(this,arguments)||this};
_.t(mW6,_.M);var ej=mW6;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ej.prototype,"data",void 0);ej=_.O([_.A({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],ej);
_.u(ej,"ytd-accounts-dialog-header-renderer",function(){if(guu!==void 0)return guu;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return guu=V},{mode:1});var iUQ;var VZI=function(){return _.M.apply(this,arguments)||this};
_.t(VZI,_.M);VZI.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
var kM=VZI;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],kM.prototype,"data",void 0);kM=_.O([_.A({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],kM);
_.u(kM,"ytd-google-account-header-renderer",function(){if(iUQ!==void 0)return iUQ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return iUQ=V},{mode:1});var lur=function(){return _.M.apply(this,arguments)||this};
_.t(lur,_.M);lur.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"}}}};
lur.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("page-changed",this.page))};
var Fd=lur;Fd.prototype.pageChangedForBinding=Fd.prototype.pageChangedForBinding;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Fd.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Fd.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],Fd.prototype,"page",void 0);
_.O([_.b("page"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fd.prototype,"pageChangedForBinding",null);Fd=_.O([_.A({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Fd);
_.O7()(Fd,"ytd-account-section-list-renderer",function(){if(fZ2===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);fZ2=V}V=fZ2;return V},{allowedProps:["data"],
mode:1});var Iuu;var HqE=function(){var V=_.M.apply(this,arguments)||this;V.enableHandlesAccountMenuSwitcher=_.z("enable_handles_account_menu_switcher");return V};
_.t(HqE,_.M);HqE.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
var Xd=HqE;Xd.prototype.dataChanged=Xd.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Xd.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Xd.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.O([_.Ij("#avatar"),_.a("design:type",Object)],Xd.prototype,"avatar",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Xd.prototype,"dataChanged",null);Xd=_.O([_.A({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Xd);
_.O7()(Xd,"ytd-active-account-header-renderer",function(){if(Iuu===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);Iuu=V}V=Iuu;return V},{allowedProps:["data"],
mode:1});var TLP;var BLY;var xLQ=function(){return _.M.apply(this,arguments)||this};
_.t(xLQ,_.M);xLQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xLQ.prototype.onBackTap=function(){_.B$(this.hostElement,"yt-menu-back-tapped")};
var zv=xLQ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zv.prototype,"data",void 0);zv=_.O([_.A({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],zv);
_.O7()(zv,"ytd-simple-menu-header-renderer",function(){if(BLY===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);BLY=V}V=BLY;return V},{allowedProps:["data"],
mode:2});var ULh;var nqB=function(){return _.M.apply(this,arguments)||this};
_.t(nqB,_.M);var y8=nqB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],y8.prototype,"data",void 0);y8=_.O([_.A({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],y8);
_.u(y8,"ytd-comment-video-thumbnail-header-renderer",function(){if(ULh!==void 0)return ULh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ULh=V},{mode:1});var $Lu;var dLI=function(){return _.M.apply(this,arguments)||this};
_.t(dLI,_.M);var tp=dLI;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tp.prototype,"data",void 0);tp=_.O([_.A({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],tp);
_.u(tp,"ytd-abuse-type-selector-renderer",function(){if($Lu!==void 0)return $Lu;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return $Lu=V},{mode:1});var wEB;var rC=function(){return _.M.apply(this,arguments)||this};
_.t(rC,_.M);rC.prototype.attached=function(){var V=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){V.additionalContextInput.focusTextInput()})};
rC.prototype.handleAdditionalContextChanged=function(){var V=this;_.Go(this,"ytd-report-channel-additional-context-update",function(){V.ytdReduxBehavior.dispatch(_.IA({type:"ADDITIONAL_CONTEXT_UPDATED",payload:V.additionalContext}))},300)};
rC.prototype.updateAdditionalContextFromBinding=function(V){this.additionalContext=V.detail.value};
var Gv=rC;Gv.prototype.handleAdditionalContextChanged=Gv.prototype.handleAdditionalContextChanged;_.O([_.R(_.DS),_.a("design:type",Object)],Gv.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",String)],Gv.prototype,"additionalContext",void 0);_.O([_.q({selector:function(V){return V.reportChannelAbuse.additionalContext}}),
_.a("design:type",String)],Gv.prototype,"additionalContextRedux",void 0);_.O([_.q(),_.a("design:type",Object)],Gv.prototype,"data",void 0);_.O([_.Ij("yt-text-input-form-field-renderer"),_.a("design:type",Object)],Gv.prototype,"additionalContextInput",void 0);_.O([_.b("additionalContext"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gv.prototype,"handleAdditionalContextChanged",null);
Gv=_.O([_.A({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Gv);
_.u(Gv,"ytd-report-channel-modal-additional-context-renderer",function(){if(wEB!==void 0)return wEB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return wEB=V},{mode:1});var NLQ;var K$6=function(){var V=_.M.apply(this,arguments)||this;V.nextButtonDisabled=null;V.submitEndpoint=null;V.navigationEndpoint=null;V.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return V};
_.t(K$6,_.M);_.B=K$6.prototype;_.B.computeNextButtonData=function(V,l,I){var H={};l&&(H.navigationEndpoint=l);I&&(H.serviceEndpoint=I);V&&V.buttonRenderer&&_.EL.extend(H,V.buttonRenderer);return H};
_.B.handleReportChannelModalDisableNextButtonAction=function(V){this.setNextButtonIsDisabled(V)};
_.B.handleReportFormEndpointUpdateAction=function(V){this.setNextButtonIsDisabled(!!V.disableSubmitButton);this.resetEndpointData();V.submitEndpoint?this.submitEndpoint=V.submitEndpoint:V.submitNavigationEndpoint&&(this.navigationEndpoint=V.submitNavigationEndpoint)};
_.B.handleSignalActionSubmitForm=function(){var V,l=Object.keys(((V=this.reportChannelAbuseForm)==null?void 0:V.selectedVideoIds)||{}),I;V=((I=this.reportChannelAbuseForm)==null?void 0:I.additionalContext)||"";var H;I=((H=this.reportChannelAbuseForm)==null?void 0:H.impersonatedChannelUrl)||"";var T;if((T=this.data)==null?0:T.submitEndpoint)if(l={impersonated_channel_url:I,text:V,video_ids:l},_.z("web_ytd_report_channel_modal_footer_renderer_command_resolver_ks")){var x;_.$B(this.hostElement,[(x=this.data)==
null?void 0:x.submitEndpoint,l])}else{var n;_.F().resolve(_.aw).resolveCommand((n=this.data)==null?void 0:n.submitEndpoint,{form:Object.assign({},l,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.B.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.B.onYtServiceRequestError=function(V){this.setNextButtonIsDisabled(!1);_.oE(this.hostElement,V.detail.error.message)};
_.B.setNextButtonIsDisabled=function(V){this.set("data.nextButton.buttonRenderer.isDisabled",V)};
_.B.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
var Ee=K$6;Ee.prototype.onYtServiceRequestError=Ee.prototype.onYtServiceRequestError;Ee.prototype.onYtServiceRequestCompleted=Ee.prototype.onYtServiceRequestCompleted;_.O([_.q(),_.a("design:type",Object)],Ee.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Ee.prototype,"nextButtonDisabled",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Ee.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Ee.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ee.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ee.prototype,"submitEndpoint",void 0);_.O([_.q(),_.a("design:type",Object)],Ee.prototype,"navigationEndpoint",void 0);_.O([_.q({selector:function(V){return V.reportChannelAbuse}}),
_.a("design:type",Object)],Ee.prototype,"reportChannelAbuseForm",void 0);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ee.prototype,"onYtServiceRequestCompleted",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ee.prototype,"onYtServiceRequestError",null);
Ee=_.O([_.A({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Ee);
_.u(Ee,"ytd-report-channel-modal-footer-renderer",function(){if(NLQ!==void 0)return NLQ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return NLQ=V},{mode:1});var jsY;var Jp=function(){var V=_.M.apply(this,arguments)||this;V.boundOnTapDismissButton=function(){V.closePopup()};
return V};
_.t(Jp,_.M);Jp.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Jp.prototype.handleDataChanged=function(){_.qD(this.hostElement)};
Jp.prototype.closePopup=function(){_.xB(this.hostElement,"yt-close-popup-action")};
var o3=Jp;o3.prototype.handleDataChanged=o3.prototype.handleDataChanged;_.O([_.q(),_.a("design:type",Object)],o3.prototype,"boundOnTapDismissButton",void 0);_.O([_.q(),_.a("design:type",Object)],o3.prototype,"data",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o3.prototype,"handleDataChanged",null);o3=_.O([_.A({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],o3);
_.u(o3,"ytd-report-channel-modal-header-renderer",function(){if(jsY!==void 0)return jsY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return jsY=V},{mode:1});var Y2V;var L$h=function(){var V=_.M.apply(this,arguments)||this;V.autoValidate=!1;V.invalid=!1;V.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return V};
_.t(L$h,_.M);_.B=L$h.prototype;_.B.attached=function(){var V=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){V.channelUrlInput.focusTextInput()})};
_.B.disableNextButton=function(V){_.xB(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[V])};
_.B.handleImpersonatedChannelUrlChanged=function(){var V=this;this.disableNextButton(!0);this.invalid=!1;_.Go(this,"ytd-report-channel-impersonated-channel-update",function(){var l=V.impersonatedChannelUrl.trim();V.ytdReduxBehavior.dispatch(_.IA({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:l}));var I;((I=V.data)==null?0:I.submitEndpoint)&&l&&_.$B(V.hostElement,[V.data.submitEndpoint,{impersonated_channel_url:l}])},500)};
_.B.handleModifyReportFormCommand=function(V){this.invalid=this.get("modifyReportFormCommand.action",V)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.B.updateInvalidFromBinding=function(V){this.invalid=V.detail.value};
_.B.updateImpersonatedChannelUrlFromBinding=function(V){this.impersonatedChannelUrl=V.detail.value};
var hp=L$h;hp.prototype.handleImpersonatedChannelUrlChanged=hp.prototype.handleImpersonatedChannelUrlChanged;_.O([_.R(_.DS),_.a("design:type",Object)],hp.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],hp.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],hp.prototype,"autoValidate",void 0);_.O([_.q(),_.a("design:type",Object)],hp.prototype,"invalid",void 0);
_.O([_.q(),_.a("design:type",String)],hp.prototype,"impersonatedChannelUrl",void 0);_.O([_.q({selector:function(V){return V.reportChannelAbuse.impersonatedChannelUrl}}),
_.a("design:type",String)],hp.prototype,"impersonatedChannelUrlRedux",void 0);_.O([_.q(),_.a("design:type",Object)],hp.prototype,"data",void 0);_.O([_.Ij("#text-input"),_.a("design:type",Object)],hp.prototype,"channelUrlInput",void 0);_.O([_.b("impersonatedChannelUrl"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hp.prototype,"handleImpersonatedChannelUrlChanged",null);
hp=_.O([_.A({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],hp);
_.u(hp,"ytd-report-channel-modal-impersonation-renderer",function(){if(Y2V!==void 0)return Y2V;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Y2V=V},{mode:1});var ehE;var kBE;var Po=function(){return _.M.apply(this,arguments)||this};
_.t(Po,_.M);Po.prototype.onCheckboxToggled=function(V){var l,I,H=(I=_.y((l=this.data)==null?void 0:l.video,_.vUv))==null?void 0:I.videoId;H&&this.ytdReduxBehavior.dispatch(V.target.checked?_.IA({type:"VIDEO_SELECTED",payload:H}):_.IA({type:"VIDEO_UNSELECTED",payload:H}))};
Po.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.vI.Object.defineProperties(Po.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var V,l=(V=this.data)==null?void 0:V.video;if(!l)return{};var I;V=(I=_.y(l,_.vUv))==null?void 0:I.navigationEndpoint;if(!V)return l;_.y(V==null?void 0:V.commandMetadata,_.mK)&&(_.y(V.commandMetadata,_.mK).ignoreNavigation=!0);return l}}});
var DI=Po;_.O([_.q({reflectToAttribute:!0,selector:function(V,l){return l in V.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.a("design:type",Boolean)],DI.prototype,"checked",void 0);_.O([_.q(),_.a("design:type",Object)],DI.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],DI.prototype,"video",null);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],DI.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],DI.prototype,"ytdReduxBehavior",void 0);DI=_.O([_.A({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],DI);
_.u(DI,"ytd-selectable-video-renderer",function(){if(kBE!==void 0)return kBE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return kBE=V},{mode:1});var F$E=function(){var V=_.M.apply(this,arguments)||this;V.monitorScroll=!0;return V};
_.t(F$E,_.M);F$E.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
var ZI=F$E;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ZI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ZI.prototype,"data",void 0);ZI=_.O([_.A({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],ZI);
_.u(ZI,"ytd-selectable-video-list-renderer",function(){if(ehE!==void 0)return ehE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return ehE=V},{mode:1});var XE2;_.yN("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Sj=function(){return _.M.apply(this,arguments)||this};
_.t(Sj,_.M);Sj.prototype.onChange=function(V){if(V=_.qv(V).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.z("kevlar_command_handler_migration_killswitch"))_.d6(this.hostElement,V,this.hostElement);else{V=_.U(V);for(var l=V.next();!l.done;l=V.next())this.ytComponentBehavior.resolveCommand(l.value)}};
Sj.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Sj.prototype.updateDataToggledFromBinding=function(V){this.set("data.toggled",V.detail.value)};
var R3=Sj;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],R3.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],R3.prototype,"data",void 0);_.O([_.q({computed:"isEnabled(data)"}),_.a("design:type",Boolean)],R3.prototype,"enabled",void 0);R3=_.O([_.A({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],R3);
_.u(R3,"ytd-toggle-item-renderer",function(){if(XE2!==void 0)return XE2;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return XE2=V},{mode:1});var zhI;var yGu;var tZB;var Q8=function(){var V=_.M.apply(this,arguments)||this;V.setVisible=!1;V.boundOnSubmitButtonClick=function(){V.onSubmitButtonClick()};
V.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return V};
_.t(Q8,_.M);Q8.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}}}}}};
Q8.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Q8.prototype.onSubmitButtonClick=function(){var V;((V=this.data)==null?0:V.submitEndpoint)&&!_.z("enable_ytc_refunds_submit_form_signal_action")&&_.$B(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Q8.prototype.handleSignalActionSubmitForm=function(){var V;((V=this.data)==null?0:V.submitEndpoint)&&_.$B(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.vI.Object.defineProperties(Q8.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.hiddenByDefault)&&!this.setVisible}}});
var co=Q8;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],co.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],co.prototype,"setVisible",void 0);_.O([_.q(),_.a("design:type",Object)],co.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],co.prototype,"surveyFeedbackData",void 0);_.O([_.q(),_.a("design:type",Object)],co.prototype,"boundOnSubmitButtonClick",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data","setVisible"),_.a("design:type",Object),_.a("design:paramtypes",[])],co.prototype,"visibilityHidden",null);co=_.O([_.Lm({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],co);
_.u(co,"yt-flow-footer-renderer",function(){if(tZB===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;yGu===void 0&&(yGu=document.createElement("template"));var H=yGu;I.call(l,H.content.cloneNode(!0),V.content.firstChild);tZB=V}V=tZB;return V},{mode:2});var rGh=function(){return _.M.apply(this,arguments)||this};
_.t(rGh,_.M);var Wo=rGh;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Wo.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Wo.prototype,"data",void 0);_.O([_.q({selector:function(V){return V.ypc.surveyFeedbackData}}),
_.a("design:type",Object)],Wo.prototype,"surveyFeedbackData",void 0);Wo=_.O([_.A({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Wo);
_.u(Wo,"ytd-flow-footer-renderer",function(){if(zhI!==void 0)return zhI;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return zhI=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var GB2;var EqE;var JGE=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return V};
_.t(JGE,_.M);_.B=JGE.prototype;_.B.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.tU("multiPageMenuSectionItems")}}};
_.B.handleHideEnclosingAction_=function(V){if(this.data&&this.data.items)for(var l=0;l<this.data.items.length;l++){var I=this.data.items[l].notificationRenderer;if(I&&I.notificationId==V.hideEnclosingAction.notificationId){this.splice("data.items",l,1);_.xB(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.B.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.gP(this.hostElement,"hidden",!0)};
_.B.updateMenu_=function(V){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&V&&!V.doNotRefreshInbox){V=this.data.continuations;for(var l=0;l<V.length;l++)if(V[l].invalidationContinuationData){var I=void 0;var H=(I=V[l].invalidationContinuationData)==null?void 0:I.continuation;break}V=_.EL.clone(this.data.continuationUpdateEndpoint||null);V.continuation=H;V.click_tracking_params=this.data.trackingParams;_.$B(this.hostElement,[V])}};
_.B.onServiceRequestCompleted_=function(V,l){if(this.data&&(V=l.actions)){l=0;for(var I=V.length;l<I;l++){var H=_.y(V[l],_.l4a);if(!H)break;if((H.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||H.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&H.continuationItems&&this.data.items){var T=this.data.items.length-1;this.data.items[T].continuationItemRenderer&&this.splice.apply(this,["data.items",T,1].concat(H.continuationItems))}}}};
var bH=JGE;bH.prototype.onServiceRequestCompleted_=bH.prototype.onServiceRequestCompleted_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],bH.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],bH.prototype,"data",void 0);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],bH.prototype,"onServiceRequestCompleted_",null);bH=_.O([_.Lm({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],bH);
_.O7()(bH,"yt-multi-page-menu-section-renderer",function(){if(EqE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;GB2===void 0&&(GB2=document.createElement("template"));var H=GB2;I.call(l,H.content.cloneNode(!0),V.content.firstChild);EqE=V}V=EqE;return V},{allowedProps:["data"],
mode:2});var oqr;var hh2;var PzV=function(){return _.M.apply(this,arguments)||this};
_.t(PzV,_.M);PzV.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.vI.Object.defineProperties(PzV.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.progress)==null?0:this.data.progress*100}}});
var qF=PzV;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],qF.prototype,"data",void 0);_.O([_.Q("data.progress"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qF.prototype,"showProgressBar",null);
_.O([_.Q("data.progress"),_.a("design:type",Number),_.a("design:paramtypes",[])],qF.prototype,"progress",null);qF=_.O([_.Lm({is:"yt-flow-header-renderer",disableElementRegistration:!0})],qF);
_.u(qF,"yt-flow-header-renderer",function(){if(hh2===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;oqr===void 0&&(oqr=document.createElement("template"));var H=oqr;I.call(l,H.content.cloneNode(!0),V.content.firstChild);hh2=V}V=hh2;return V},{mode:2});var DL2;var ZqV;var S22=function(){return _.M.apply(this,arguments)||this};
_.t(S22,_.M);S22.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var MF=S22;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],MF.prototype,"data",void 0);MF=_.O([_.Lm({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],MF);
_.u(MF,"yt-post-confirmation-flow-step-renderer",function(){if(ZqV===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;DL2===void 0&&(DL2=document.createElement("template"));var H=DL2;I.call(l,H.content.cloneNode(!0),V.content.firstChild);ZqV=V}V=ZqV;return V},{mode:2});var RhB;var QsV;var cGB=function(){return _.M.apply(this,arguments)||this};
_.t(cGB,_.M);
cGB.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var se=cGB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],se.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],se.prototype,"data",void 0);se=_.O([_.Lm({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],se);
_.u(se,"yt-refund-confirmation-flow-step-renderer",function(){if(QsV===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;RhB===void 0&&(RhB=document.createElement("template"));var H=RhB;I.call(l,H.content.cloneNode(!0),V.content.firstChild);QsV=V}V=QsV;return V},{mode:2});_.m5(PQg);_.m5(DUI);var ZjE=_.FR({avatarViewModel:_.hy});_.m5(SkQ);var Rfu=_.FR({commentInteractionViewModel:DUI,sharedSubscriptionViewModel:SkQ,buttonViewModel:_.Db});_.m5(Qt2);_.m5(c3E);_.m5(WMY);_.m5(bjg);_.m5(qkg);var MaP=_.FR({profileIdentityInfoViewModel:_.YAr,profileInfoViewModel:qkg});_.m5(stE);_.aN(stE,"yt-profile-card-view-model",{propNames:["data"]});var W$6=function(){var V=_.M.apply(this,arguments)||this;V.enableFocusFix=_.z("music_web_enable_focus_on_setting_menu_fix")&&_.PO("IS_MOBILE_WEB",!1);V.covered=!1;V.hideMenu=!1;V.isCommentNotificationOnProfileCard=!1;V.scrolledByTouch=!1;V.disableBackdropFilter=_.z("web_disable_backdrop_filter");V.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return V};
_.t(W$6,_.M);_.B=W$6.prototype;
_.B.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"}}}};
_.B.ready=function(){var V=this;this.JSC$17786_containerElement.addEventListener("scroll",function(){V.ytRendererBehavior.markDirty()})};
_.B.attributeChanged=function(V,l){V==="menu-style"&&_.xB(this.hostElement,"yt-multi-page-menu-closed-action",[l])};
_.B.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.VP(this,this.focusOnStampFinished))};
_.B.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.VP(this,this.focusOnStampFinished))};
_.B.reset=function(){this.closeJobId&&(_.r0.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.B.focusOnStampFinished=function(V){V.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.VP(this,this.focusOnStampFinished)),this.doFocus())};
_.B.doFocus=function(){var V=_.jKv(this.sectionsElement);V.length&&V[0].focus()};
_.B.computeMenuStyle=function(V){return V?V.toLowerCase().replace(/_/g,"-"):""};
_.B.computeIsCommentNotificationOnProfileCard=function(V){return _.z("enable_profile_cards_on_comments")&&V.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.B.computeHideMenu=function(V,l){return V||!(!l||!l.showLoadingSpinner)};
_.B.onPopupClosed=function(){this.isPopUpOpen=!1;_.xB(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.B.onPopupOpened=function(V,l){this.isPopUpOpen=!0;l.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.B$(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.IA({type:"CHANNEL_REPORT_RESET"})))};
_.B.onYtNavigate=function(V,l){this.shouldCloseOnNavigateEvent(l.endpoint)&&_.xB(this.hostElement,"yt-close-all-popups-action")};
_.B.handleEndpoint=function(V){V=_.y(V,_.Pq);!this.isCommentNotificationOnProfileCard&&V&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17786_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.B.handleActions=function(V){for(var l=0,I=V.length;l<I;l++){var H=_.y(V[l],eS6);H&&this.handleGetMultiPageMenuAction(H);(H=_.y(V[l],_.l4a))&&this.handleAppendContinuationItemsAction(H)}};
_.B.onServiceRequestSentOrCompleted=function(V,l){V.detail&&V.detail.endpoint&&this.handleEndpoint(V.detail.endpoint);l.actions&&this.handleActions(l.actions)};
_.B.handleGetMultiPageMenuAction=function(V){var l=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.h(this.submenuElement).appendChild(l);(V=V.menu.multiPageMenuRenderer)&&this.logSubmenu(V);l.data=V;l.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.B.handleAppendContinuationItemsAction=function(V){if(this.data&&V.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&V.continuationItems&&this.data.sections){var l=this.data.sections.length-1;this.data.sections[l].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),l--);if(this.data.sections[l].multiPageMenuNotificationSectionRenderer&&V.continuationItems){V=_.U(V==null?void 0:V.continuationItems);for(var I=V.next();!I.done;I=V.next())if(I=I.value,_.y(I,OzI)){var H=
void 0,T=void 0,x=void 0,n=void 0,w=void 0;((H=this)==null?0:(T=H.data)==null?0:(x=T.sections)==null?0:(n=x[l])==null?0:(w=n.multiPageMenuNotificationSectionRenderer)==null?0:w.items)&&this.push("data.sections."+l+".multiPageMenuNotificationSectionRenderer.items",I)}else if(_.y(I,_.bHB)||_.y(I,_.nl))this.push("data.sections",I),l++}}};
_.B.logSubmenu=function(V){if(!_.z("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var l=this.ytRendererBehavior.getScreenLayer(),I=_.oa(l),H=_.JO(l);if((V=V.trackingParams)&&I&&H){var T=_.dj(V);_.z("combine_ve_grafts")?_.x7().graftServerVe(V,H,l):_.MJ(I,H,T)}}};
_.B.emptySubmenuContainer=function(){for(var V=_.h(this.submenuElement);V.firstChild;)V.removeChild(V.firstChild)};
_.B.onMenuBackTap=function(V){_.B$(this.hostElement,"yt-submenu-closed");V.stopPropagation()};
_.B.onSubmenuClosed=function(V){_.qv(V)!==this.hostElement&&(this.covered=!1,_.B$(this.hostElement,"yt-refit"),V.stopPropagation())};
_.B.onRetrieveLocation=function(V,l){l.hasComments&&(l.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),V.stopPropagation())};
_.B.shouldCloseOnNavigateEvent=function(V){if(!V)return!0;if(_.y(V,_.Rio)||_.y(V,_.QR3)||_.y(V,_.SMW)||_.y(V,_.cF))return!1;var l;return((l=_.y(V==null?void 0:V.commandMetadata,_.mK))==null?0:l.ignoreNavigation)?!1:!0};
_.B.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.B.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.B.refitAfterRender=function(){var V=this;_.Al(this,function(){_.B$(V.hostElement,"yt-refit")})};
var pf=W$6;pf.prototype.refitAfterRender=pf.prototype.refitAfterRender;pf.prototype.onRetrieveLocation=pf.prototype.onRetrieveLocation;pf.prototype.onSubmenuClosed=pf.prototype.onSubmenuClosed;pf.prototype.onMenuBackTap=pf.prototype.onMenuBackTap;pf.prototype.onServiceRequestSentOrCompleted=pf.prototype.onServiceRequestSentOrCompleted;pf.prototype.onYtNavigate=pf.prototype.onYtNavigate;pf.prototype.onPopupOpened=pf.prototype.onPopupOpened;pf.prototype.onPopupClosed=pf.prototype.onPopupClosed;
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],pf.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],pf.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pf.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],pf.prototype,"enableFocusFix",void 0);_.O([_.q(),_.a("design:type",Object)],pf.prototype,"covered",void 0);_.O([_.q({computed:"computeHideMenu(covered, data)"}),_.a("design:type",Object)],pf.prototype,"hideMenu",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.a("design:type",String)],pf.prototype,"menuStyle",void 0);
_.O([_.q({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.a("design:type",Object)],pf.prototype,"isCommentNotificationOnProfileCard",void 0);_.O([_.q(),_.a("design:type",Boolean)],pf.prototype,"isPopUpOpen",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],pf.prototype,"scrolledByTouch",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],pf.prototype,"disableBackdropFilter",void 0);
_.O([_.Ij("#sections"),_.a("design:type",HTMLElement)],pf.prototype,"sectionsElement",void 0);_.O([_.Ij("#spinner"),_.a("design:type",HTMLElement)],pf.prototype,"spinnerElement",void 0);_.O([_.Ij("#header"),_.a("design:type",HTMLElement)],pf.prototype,"headerElement",void 0);_.O([_.Ij("#container"),_.a("design:type",HTMLElement)],pf.prototype,"JSC$17786_containerElement",void 0);_.O([_.Ij("#submenu"),_.a("design:type",HTMLElement)],pf.prototype,"submenuElement",void 0);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pf.prototype,"onPopupClosed",null);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],pf.prototype,"onPopupOpened",null);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],pf.prototype,"onYtNavigate",null);
_.O([_.W("yt-service-request-completed"),_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],pf.prototype,"onServiceRequestSentOrCompleted",null);_.O([_.W("yt-menu-back-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pf.prototype,"onMenuBackTap",null);
_.O([_.W("yt-submenu-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pf.prototype,"onSubmenuClosed",null);_.O([_.W("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],pf.prototype,"onRetrieveLocation",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pf.prototype,"refitAfterRender",null);
pf=_.O([_.A({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],pf);
_.u(pf,"ytd-multi-page-menu-renderer",function(){if(TLP!==void 0)return TLP;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return TLP=V},{mode:1});var bqb;var q2u=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return V};
_.t(q2u,_.M);_.B=q2u.prototype;_.B.created=function(){this.showTooltips=!0};
_.B.computeAccessibility_=function(V){return this.get("accessibility.accessibilityData",V)||null};
_.B.onTap=function(){var V=_.U4(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(V&&V.length===1&&V[0])_.xB(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var l;if((l=this.data)==null?0:l.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var I;((I=this.data)==null?0:I.menuRequest)&&_.$B(this.hostElement,[this.data.menuRequest])}}};
_.B.handleTopbarMenuClosedAction=function(V){var l,I;(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(V)===((l=this.data)==null?void 0:(I=l.icon)==null?void 0:I.iconType)&&this.toggleIconState(!1)};
_.B.toggleIconState=function(V){_.z("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=V)};
_.B.handleUpdateTopbarAvatarAction=function(V){var l;V=(l=_.y(V,d6g))==null?void 0:l.avatarUrl;var I,H;l=(I=this.data)==null?void 0:(H=I.avatar)==null?void 0:H.thumbnails;V&&l&&(I={thumbnails:[Object.assign({},l[0],{url:V})]},this.set("data.avatar",I))};
_.vI.Object.defineProperties(q2u.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.h(this.hostElement).querySelector("#button")}}});
var Ap=q2u;Ap.prototype.onTap=Ap.prototype.onTap;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Ap.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],Ap.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.xwJ.YtButtonBehavior),_.a("design:type",Object)],Ap.prototype,"ytButtonBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],Ap.prototype,"data",void 0);_.O([_.Ij("yt-icon-button#button"),_.a("design:type",Object)],Ap.prototype,"iconButton",void 0);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ap.prototype,"onTap",null);Ap=_.O([_.A({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Ap);
_.u(Ap,"ytd-topbar-menu-button-renderer",function(){if(bqb!==void 0)return bqb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return bqb=V},{mode:1});var MZr;var ssu=function(){return _.M.apply(this,arguments)||this};
_.t(ssu,_.M);ssu.prototype.getSelected=function(){return this.reasons.selected};
var uH=ssu;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],uH.prototype,"data",void 0);_.O([_.Ij("#reasons"),_.a("design:type",Object)],uH.prototype,"reasons",void 0);uH=_.O([_.A({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],uH);
_.u(uH,"ytd-ad-feedback-content",function(){if(MZr!==void 0)return MZr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return MZr=V},{mode:1});var pEu;var AGE=function(){return _.M.apply(this,arguments)||this};
_.t(AGE,_.M);_.B=AGE.prototype;_.B.onPopupOpened=function(){_.xB(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.B.computeConfirmButton=function(V){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:V.confirmLabel}};
_.B.computeCancelButton=function(V){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:V.cancelLabel}};
_.B.onConfirmTap=function(){var V=this.content.getSelected();V!==void 0&&(V=this.data.reasons[V].endpoint)&&(_.z("web_ytd_ad_feedback_renderer_command_resolver_ks")?_.$B(this.hostElement,[V]):_.F().resolve(_.aw).resolveCommand(V,{form:{element:this.hostElement}}),_.xB(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.B.sendFeedbackSubmitToastAction=function(){var V;(V=this.data)!=null&&V.completionMessage&&_.xB(this.hostElement,"yt-open-popup-action",[_.CW(this.data.completionMessage),this])};
_.B.onCancelTap=function(){_.xB(this.hostElement,"yt-close-popup-action")};
var vo=AGE;vo.prototype.onPopupOpened=vo.prototype.onPopupOpened;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],vo.prototype,"data",void 0);_.O([_.Ij("#content"),_.a("design:type",Object)],vo.prototype,"content",void 0);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],vo.prototype,"onPopupOpened",null);
vo=_.O([_.A({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],vo);
_.u(vo,"ytd-ad-feedback-renderer",function(){if(pEu!==void 0)return pEu;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return pEu=V},{mode:1});var uN2;var vqQ=function(){return _.M.apply(this,arguments)||this};
_.t(vqQ,_.M);var Oe=vqQ;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Oe.prototype,"data",void 0);Oe=_.O([_.A({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Oe);
_.u(Oe,"ytd-ad-info-dialog-content",function(){if(uN2!==void 0)return uN2;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return uN2=V},{mode:1});var OqE;var Cf=function(){return _.M.apply(this,arguments)||this};
_.t(Cf,_.M);Cf.prototype.computeConfirmButton=function(V){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:V.confirmLabel}};
Cf.prototype.onConfirmTap=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Cf.prototype.computeShouldShowTitle=function(){var V;return!((V=this.data)==null||!V.title)};
Cf.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.F().resolve(_.aw).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
var a3=Cf;a3.prototype.onPopupClosed=a3.prototype.onPopupClosed;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],a3.prototype,"data",void 0);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],a3.prototype,"onPopupClosed",null);a3=_.O([_.A({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],a3);
_.u(a3,"ytd-ad-info-dialog-renderer",function(){if(OqE!==void 0)return OqE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return OqE=V},{mode:1});var CzY;var aub=function(){var V=_.M.apply(this,arguments)||this;V.actionButtonClass="action-button";V.dismissButtonId="dismiss-button";V.dialogDismiss=!0;return V};
_.t(aub,_.M);_.B=aub.prototype;_.B.computeInPlayer=function(V){return(V==null?void 0:V.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.B.computedLogo=function(){var V,l;return this.isDarkTheme()?(V=this.data)==null?void 0:V.logoDark:(l=this.data)==null?void 0:l.logo};
_.B.computedHeaderImage=function(){var V,l;return this.isDarkTheme()?(V=this.data)==null?void 0:V.headerImageDark:(l=this.data)==null?void 0:l.headerImage};
_.B.computeLogoIconId=function(){var V,l,I,H=(V=this.computedLogo())==null?void 0:(l=V.sources)==null?void 0:(I=l[0])==null?void 0:I.height;return H&&H%31===0?"logo-icon-with-padding":"logo-icon"};
_.B.computeLogoIconHeight=function(){var V,l,I,H=(V=this.computedLogo())==null?void 0:(l=V.sources)==null?void 0:(I=l[0])==null?void 0:I.height;return H&&H%31===0?"31":"24"};
_.B.onPopupClosed=function(){_.F().resolve(_.NL).dispose()};
_.B.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.B.onShow=function(){this.inPlayer&&_.nY(6)};
_.B.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var V=0;V<this.data.impressionEndpoints.length;V++){var l=_.y(this.data.impressionEndpoints[V],_.yI);l&&this.ytComponentBehavior.resolveCommand(l)}};
_.B.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.xB(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.vI.Object.defineProperties(aub.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var V,l;return!((V=this.data)==null||!V.headerImageDark)&&!((l=this.data)==null||!l.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.secondaryButton)}}});
var ff=aub;ff.prototype.onPopupClosed=ff.prototype.onPopupClosed;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ff.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ff.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.RU.YtVisibilityBehavior),_.a("design:type",Object)],ff.prototype,"ytVisibilityBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ff.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],ff.prototype,"actionButtonClass",void 0);_.O([_.q(),_.a("design:type",Object)],ff.prototype,"dismissButtonId",void 0);_.O([_.q(),_.a("design:type",Object)],ff.prototype,"dialogDismiss",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ff.prototype,"hasHeaderImage",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ff.prototype,"hasPremiumButton",null);
_.O([_.q({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.a("design:type",Boolean)],ff.prototype,"inPlayer",void 0);_.O([_.Ij("#dismiss-button"),_.a("design:type",HTMLElement)],ff.prototype,"dismissButton",void 0);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ff.prototype,"onPopupClosed",null);ff=_.O([_.A({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],ff);
_.u(ff,"ytd-enforcement-message-view-model",function(){if(CzY!==void 0)return CzY;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return CzY=V},{mode:1});var fuh;var gqY;var mLh=function(){var V=_.M.apply(this,arguments)||this;V.TEST_ONLY={immediateValidation:function(){V.immediateValidation()},
onValidationResponse:function(l){V.onValidationResponse(l)},
onGenerateHandleFromNameResponse:function(l){V.onGenerateHandleFromNameResponse(l)}};
return V};
_.t(mLh,_.M);_.B=mLh.prototype;_.B.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.B.validate=function(){this.immediateValidation()};
_.B.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.B.setHandleInputValue=function(V){this.handleDir=this.getHandleDir(V);this.handleInput.value=V;this.validationState={status:"PENDING"};this.immediateValidation()};
_.B.getHandleDir=function(V){var l=V===""&&!1;return(l=_.UKZ.test.call(_.UKZ,V))?"rtl":"ltr"};
_.B.onDataChanged=function(){var V,l;this.handleDir=this.getHandleDir((l=(V=this.data)==null?void 0:V.handle)!=null?l:"");var I;this.validationState=((I=this.data)==null?0:I.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var H;((H=this.data)==null?0:H.validateOnInit)&&this.immediateValidation()};
_.B.stopPropagation=function(V){V.stopPropagation()};
_.B.onInput=function(){var V;this.handleDir=this.getHandleDir((V=this.handleInput.value)!=null?V:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.B.onFocusout=function(V){this.handleInput.contains(V.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.B.delayedValidation=function(){var V,l;this.debouncedValidation((l=(V=this.data)==null?void 0:V.validationDelayMs)!=null?l:1E3)};
_.B.immediateValidation=function(){this.debouncedValidation(0)};
_.B.debouncedValidation=function(V){var l=this;_.Go(this,"debouncedValidation",function(){var I,H=l.staticValidation((I=l.handleInput.value)!=null?I:"");if(H!==void 0)l.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:H};else{var T;if((T=l.data)!=null&&T.validateChannelHandleCommand){l.validationState={status:"LOADING"};var x;l.ytComponentBehavior.resolveCommand(l.data.validateChannelHandleCommand,{form:{handle:(x=l.handleInput.value)!=null?x:""},commandController:{onSuccess:function(n,
w){l.onValidationResponse(w)},
onServerError:function(n,w){l.onValidationServerError(w)}}})}else l.handleUnexpectedValidationError(new _.Yd("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",l.data))}},V)};
_.B.staticValidation=function(V){var l;if(((l=this.data)==null?void 0:l.channelHandleStaticValidationParams)!==void 0){l=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(V)&&l.validValueRegexpErrorMessage!==void 0)return l.validValueRegexpErrorMessage;if(l.minLength!==void 0&&V.length<l.minLength&&l.minLengthErrorMessage!==void 0)return l.minLengthErrorMessage;if(l.maxLength!==void 0&&V.length>l.maxLength&&l.maxLengthErrorMessage!==void 0)return l.maxLengthErrorMessage}};
_.B.onValidationResponse=function(V){var l=_.y(V.result,w7g);l===void 0?this.handleUnexpectedValidationError(new _.Yd("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",V)):this.handleValidationResultRenderer(l)};
_.B.onValidationServerError=function(V){this.handleUnexpectedValidationError(new _.Yd("ValidateChannelHandle request failed.",V))};
_.B.handleValidationResultRenderer=function(V){if(V.handle===void 0)this.handleUnexpectedValidationError(new _.Yd("ChannelHandleValidationResultRenderer does not contain handle.",V));else if(V.handle===this.handleInput.value)switch(V.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:V.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:V.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Yd("Unrecognized ChannelHandleValidationResult",V));break;default:_.AB(V.result)}};
_.B.handleUnexpectedValidationError=function(V){var l;this.validationState={status:"UNKNOWN",handle:(l=this.handleInput.value)!=null?l:""};_.hF(V)};
_.B.stopEventPropagation=function(V){V.stopPropagation()};
_.B.updateHandleOnChannelNameInputChange=function(V){if(!this.wasEdited){var l,I;this.debouncedGenerateHandleFromName(V,(I=(l=this.data)==null?void 0:l.validationDelayMs)!=null?I:1E3)}};
_.B.debouncedGenerateHandleFromName=function(V,l){var I=this;_.Go(this,"debouncedGenerateHandleFromName",function(){var H;(H=I.data)!=null&&H.validateChannelHandleCommand?I.ytComponentBehavior.resolveCommand(I.data.validateChannelHandleCommand,{form:{name:V},commandController:{onSuccess:function(T,x){I.onGenerateHandleFromNameResponse(x)},
onServerError:function(T,x){_.hF(new _.Yd("Error calling GenerateHandleFromName",x))}}}):_.hF(new _.Yd("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",I.data))},l)};
_.B.onGenerateHandleFromNameResponse=function(V){this.wasEdited||((V=_.y(V.result,NcB))?this.setHandleInputValue(V.handle):_.hF(new _.Yd("Invalid results when generate handle from name")))};
_.vI.Object.defineProperties(mLh.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var V;if(V=this.validationState)V=this.validationState,V=V.status==="OK"||V.status==="UNKNOWN";if(V)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var V;if(((V=this.validationState)==null?void 0:V.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 V,l=(V=this.channelHandleEntity)==null?void 0:V.handleEdit;this.handleDir=this.getHandleDir(l!=null?l:"");return l}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var V,l;if(((V=this.data)==null?void 0:(l=V.channelHandleStaticValidationParams)==null?void 0:l.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
var gC=mLh;gC.prototype.stopEventPropagation=gC.prototype.stopEventPropagation;gC.prototype.onDataChanged=gC.prototype.onDataChanged;gC.prototype.applyHandleEdit=gC.prototype.applyHandleEdit;gC.prototype.onValueChanged=gC.prototype.onValueChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],gC.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],gC.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],gC.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Boolean)],gC.prototype,"wasEdited",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],gC.prototype,"handleDir",void 0);_.O([_.Ij("#handle-input"),_.a("design:type",Object)],gC.prototype,"handleInput",void 0);_.O([_.q(),_.Q("validationState"),_.a("design:type",Object),_.a("design:paramtypes",[])],gC.prototype,"value",null);
_.O([_.b("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gC.prototype,"onValueChanged",null);_.O([_.Q("validationState"),_.a("design:type",Object),_.a("design:paramtypes",[])],gC.prototype,"errorIndicator",null);_.O([_.q({reflectToAttribute:!0}),_.Q("errorIndicator"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gC.prototype,"borderErrorIndicator",null);
_.O([_.q({selectorArgs:["data.channelHandleEntityKey"],selector:function(V,l){return _.nW(V.entities,"channelHandle",l)}}),
_.a("design:type",Object)],gC.prototype,"channelHandleEntity",void 0);_.O([_.Q("channelHandleEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],gC.prototype,"handleEdit",null);_.O([_.b("handleEdit"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gC.prototype,"applyHandleEdit",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gC.prototype,"onDataChanged",null);
_.O([_.Q("data.channelHandleStaticValidationParams.validValueRegexp"),_.a("design:type",Object),_.a("design:paramtypes",[])],gC.prototype,"validValueRegexp",null);_.O([_.W("yt-service-request-sent"),_.W("yt-service-request-completed"),_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],gC.prototype,"stopEventPropagation",null);gC=_.O([_.A({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],gC);
_.u(gC,"ytd-channel-handle-input-renderer",function(){if(gqY!==void 0)return gqY;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return gqY=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var iqQ=function(){var V=_.M.apply(this,arguments)||this;V.data=null;V.errorMessage=null;V.isLoading=!0;V.hideContainer=!1;V.enableNewChannelCreationOnIdForAll=_.z("enable_new_channel_creation_for_id4all");V.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"};V.testOnly={setErrorMessage:function(l){V.resetErrorState();
V.setErrorState(l)}};
return V};
_.t(iqQ,_.M);_.B=iqQ.prototype;_.B.created=function(){this.logScreenVe()};
_.B.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")};
_.B.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var V;((V=this.zeroStepErrorMessageEntity)==null?0:V.value)&&this.set("errorMessage",_.pW(this.zeroStepErrorMessageEntity.value))};
_.B.onCreateTap=function(){var V=this;if(this.data&&this.data.channelCreationEndpoint){var l,I;if(!((l=this.data.createChannelButton)==null?0:(I=l.buttonRenderer)==null?0:I.isDisabled)){var H;if((H=this.nameInput)!=null&&H.value){this.setLoadingState();var T,x;l=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(T=this.handleInput)==null?void 0:T.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((x=this.handleInput)==null?void 0:x.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:l,commandController:{onSuccess:function(n,w){V.onChannelCreationEndpointSuccess(w);V.obakeImageSource&&_.tF("channelCreatedWithObakeImage",{imageSourceType:V.obakeImageSource})},
onServerError:function(){V.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.B.endpointRequiresServiceRequestAction=function(V){return!!_.y(V,_.RK)||!!_.y(V,d6g)};
_.B.isNavigateAction=function(V){var l;return!!_.y(V,_.cG)||!!_.y((l=_.y(V,YuE))==null?void 0:l.command,_.cG)};
_.B.isPlaylistAction=function(V){return!!_.y(V,_.D0)||!!_.y(V,_.Wq)};
_.B.onChannelCreationEndpointSuccess=function(V){if(V.createChannelError){var l;this.setErrorState((l=V.createChannelError)==null?void 0:l.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.z("enable_secondary_channel_creation_form")&&V.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(V.navigationEndpoint);if(V.actions){l=_.U(V.actions);for(var I=l.next();!I.done;I=l.next())if(I=I.value,this.endpointRequiresServiceRequestAction(I)&&this.ytComponentBehavior.resolveCommand(I),
this.isNavigateAction(I)){var H=void 0;I=_.y((H=_.y(I,YuE))==null?void 0:H.command,_.cG);H=void 0;this.isPlaylistAction((H=I)==null?void 0:H.endpoint)&&(_.xB(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),H=void 0,this.ytComponentBehavior.resolveCommand((H=I)==null?void 0:H.endpoint))}}V.actions&&V.actions.some(function(T){var x;return _.y(T,_.cG)||_.y((x=_.y(T,YuE))==null?void 0:x.command,_.cG)})||_.xB(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.B.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.B.onCancelTap=function(){var V,l,I;if(!((V=this.data)==null?0:(l=V.cancelButton)==null?0:(I=l.buttonRenderer)==null?0:I.isDisabled)){var H,T,x;V=(H=this.data)==null?void 0:(T=H.cancelButton)==null?void 0:(x=T.buttonRenderer)==null?void 0:x.command;if(!V||!_.y(V,_.FyJ)){var n;this.nameInput&&((n=this.data)==null?0:n.name)&&(this.nameInput.value=this.data.name);var w;this.handleInput&&((w=this.data)==null?0:w.channelHandleInput)&&(this.handleInput.data=_.y(this.data.channelHandleInput,Kah));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.B.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.B.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.B.onClearProfilePhotoTap=function(){var V,l,I;((V=this.data)==null?0:(l=V.clearProfilePhotoButton)==null?0:(I=l.buttonRenderer)==null?0:I.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.B.onEditAvatarTap=function(){var V,l,I;((V=this.data)==null?0:(l=V.editAvatarButton)==null?0:(I=l.buttonRenderer)==null?0:I.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.B.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)};
_.B.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var V;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((V=this.data)==null?0:V.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.B.setErrorState=function(V){this.resetErrorState();if(V)this.set("errorMessage",V);else{var l;if((l=this.zeroStepErrorMessageEntity)==null?0:l.value)this.set("errorMessage",_.pW(this.zeroStepErrorMessageEntity.value));else{var I;((I=this.data)==null?0:I.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.B.fetchImageBlobWithAlr=function(V,l){l=l===void 0?5:l;var I=this,H,T,x,n,w;return _.d(function(N){switch(N.nextAddress){case 1:return _.K(N,fetch(V,{method:"GET",mode:"cors"}),2);case 2:H=N.yieldResult;if(H.ok){N.jumpTo(3);break}if(l===0)throw Error();T=I.addJitter(Math.pow(2,5-l));return _.K(N,new Promise(function(L){setTimeout(L,T*1E3)}),4);
case 4:return N.return(I.fetchImageBlobWithAlr(V,l-1));case 3:if(!_.Ri(H.headers.get("content-type")).split(";").some(function(L){return L.trim()==="text/plain"})){N.jumpTo(5);
break}x=I;n=x.fetchImageBlobWithAlr;return _.K(N,H.text(),6);case 6:return N.return(n.call(x,N.yieldResult,l-1));case 5:return _.K(N,H.blob(),7);case 7:return w=N.yieldResult,N.return(w)}})};
_.B.addJitter=function(V){var l=V*.3*Math.random();Math.random()>.5&&(l*=-1);return V+l};
_.B.openProfilePicturePicker=function(){var V=this,l,I,H,T,x;return _.d(function(n){if(n.nextAddress==1){l=V.data.scottyUploadUrl;if(!l)return n.return();I=document.documentElement.hasAttribute("dark");H=document.body.style.colorScheme;I&&(document.body.style.colorScheme="dark");T=U9V(n6E(x96(inP(I?"dark":"light")),function(w){var N,L,e,k,X;return _.d(function(r){if(r.nextAddress==1)return N=_.tP(rMr(new ED(w.photoUrl,!1)).build(),"alr","yes"),V.obakeImageSource=V.pictureChangeSourceToObakeImageSourceType(w.photoSource),
_.jd(r,2),V.setLoadingState(),_.K(r,V.fetchImageBlobWithAlr(N),4);if(r.nextAddress!=2)return L=r.yieldResult,e=new FileReader,e.addEventListener("load",function(){var E,D,Z,S,p,Vf;return _.d(function(C){if(C.nextAddress==1){if(L.size>15728640)return V.setErrorState((E=V.data)==null?void 0:E.imageSizeErrorMessage),_.hF(Error("kl")),C.return();if(!e.result)return V.setErrorState((D=V.data)==null?void 0:D.genericImageLoadErrorMessage),_.hF(Error("ll")),C.return();Z=e.result;_.jd(C,2);return _.K(C,pnE(L,
l),4)}if(C.nextAddress!=2)return S=C.yieldResult,V.handleImageUpdatedAction(Z,S),V.resetErrorState(),_.Rv(C,0);p=_.kE(C);V.setErrorState((Vf=V.data)==null?void 0:Vf.uploadErrorMessage);if(p instanceof Error)_.Gr(p);else{var By=new _.Yd(JSON.stringify(p));_.Gr(By)}_.FU(C)})}),e.readAsDataURL(L),_.Rv(r,0);
k=_.kE(r);V.setErrorState((X=V.data)==null?void 0:X.genericImageLoadErrorMessage);k instanceof Error?_.Gr(k):_.oV(new _.Yd(JSON.stringify(k)));_.FU(r)})}),function(){V.hideContainer=!1;
document.body.style.colorScheme=H});
_.jd(n,2);return _.K(n,T.openPicker(),4)}if(n.nextAddress!=2)return _.Rv(n,0);_.kE(n);V.setErrorState((x=V.data)==null?void 0:x.selectImageErrorMessage);_.FU(n)})};
_.B.pictureChangeSourceToObakeImageSourceType=function(V){switch(V){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.B.logScreenVe=function(){_.xg(_.x7(),124448)};
_.B.graftServerVe=function(){var V=_.JO(),l,I,H=(l=this.data)==null?void 0:(I=l.loggingDirectives)==null?void 0:I.trackingParams;H&&V&&(this.channelCreationFormVe=_.x7().graftServerVe(H,V),V={visualElement:this.channelCreationFormVe},_.TG().reportShown(V))};
_.B.isNameChanged=function(V){var l;return((l=this.data)==null?void 0:l.name)!==V};
_.B.isHandleChanged=function(V){var l,I=_.y((l=this.data)==null?void 0:l.channelHandleInput,Kah);return I&&V?I.handle!==V:!1};
_.B.handleImageUpdatedAction=function(V,l){this.hideContainer=!1;this.previewDataUrl=V;this.encryptedBlobId=l};
_.B.handleImageSelectionErrorAction=function(V){this.hideContainer=!1;this.setErrorState(V)};
_.B.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.B.showContainer=function(){this.hideContainer=!1};
_.B.maybeWipeZeroStepErrorMessage=function(){var V,l=(V=this.data)==null?void 0:V.zeroStepErrorMessageEntityKey,I;l&&((I=this.zeroStepErrorMessageEntity)==null?0:I.value)&&this.ytdReduxBehavior.dispatch(_.K6("stringEntity",l,{key:l,value:""}))};
_.vI.Object.defineProperties(iqQ.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 V;return((V=this.photoThumbnail)==null?0:V.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 V;return!((V=this.data)==null||!V.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.descriptionInfo}}});
var mP=iqQ;mP.prototype.dataChanged=mP.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],mP.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],mP.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],mP.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],mP.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],mP.prototype,"errorMessage",void 0);
_.O([_.q(),_.a("design:type",Object)],mP.prototype,"isLoading",void 0);_.O([_.q(),_.a("design:type",String)],mP.prototype,"previewDataUrl",void 0);_.O([_.q(),_.a("design:type",Number)],mP.prototype,"obakeImageSource",void 0);_.O([_.q(),_.a("design:type",Object)],mP.prototype,"hideContainer",void 0);_.O([_.Ij("#title-input"),_.a("design:type",Object)],mP.prototype,"nameInput",void 0);_.O([_.Ij("#handle-input"),_.a("design:type",Object)],mP.prototype,"handleInput",void 0);
_.O([_.q(),_.a("design:type",Boolean)],mP.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.O([_.q({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.HBt}),_.a("design:type",Object)],mP.prototype,"zeroStepErrorMessageEntity",void 0);_.O([_.Q("data","data.isDefaultProfilePhoto","previewDataUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],mP.prototype,"photoThumbnail",null);
_.O([_.Q("data","data.isDefaultProfilePhoto","photoThumbnail"),_.a("design:type",Object),_.a("design:paramtypes",[])],mP.prototype,"userSetPhotoThumbnailUrl",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],mP.prototype,"hideProfilePhotoButtonLayer",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],mP.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.O([_.xs("data","zeroStepErrorMessageEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mP.prototype,"dataChanged",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.descriptionInfo","zeroStepErrorMessageEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],mP.prototype,"description",null);mP=_.O([_.A({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],mP);
_.u(mP,"ytd-channel-creation-dialog-renderer",function(){if(fuh!==void 0)return fuh;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return fuh=V},{mode:1});var V2E;var iH=function(){var V=_.M.apply(this,arguments)||this;V.isLoading=!1;V.isDisabled=!1;return V};
_.t(iH,_.M);iH.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
iH.prototype.updateDisabled=function(){var V;this.isDisabled=this.isLoading||((V=this.handleInput)==null?void 0:V.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
iH.prototype.onSaveClick=function(){var V=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var l;((l=this.data)==null?void 0:l.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 I;if((I=V.data)==null?0:I.nextEndpoint){var H;V.ytComponentBehavior.resolveCommand((H=V.data)==null?void 0:H.nextEndpoint)}else V.isLoading=
!1,V.closeDialog()},
onServerError:function(){V.isLoading=!1;V.handleInput.validate();var I;V.errorMessage=(I=V.data)==null?void 0:I.errorMessage}}}))}};
iH.prototype.closeDialog=function(){_.xB(this.hostElement,"yt-close-popup-action",[this.is])};
var Vk=iH;Vk.prototype.updateDisabled=Vk.prototype.updateDisabled;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Vk.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Vk.prototype,"data",void 0);_.O([_.Ij("#handle-input"),_.a("design:type",Object)],Vk.prototype,"handleInput",void 0);_.O([_.b("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vk.prototype,"updateDisabled",null);
Vk=_.O([_.A({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Vk);
_.u(Vk,"ytd-channel-handle-edit-dialog-renderer",function(){if(V2E!==void 0)return V2E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return V2E=V},{mode:1});var lz2;var Iz2=function(){return _.M.apply(this,arguments)||this};
_.t(Iz2,_.M);Iz2.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var ly=Iz2;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ly.prototype,"data",void 0);ly=_.O([_.A({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],ly);
_.u(ly,"ytd-channel-switcher-footer-renderer",function(){if(lz2!==void 0)return lz2;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return lz2=V},{mode:1});var H2g;var TOP;var BOg=function(){return _.M.apply(this,arguments)||this};
_.t(BOg,_.M);BOg.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
var IZ=BOg;IZ.prototype.onIronChange=IZ.prototype.onIronChange;_.O([_.q(),_.a("design:type",Object)],IZ.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!1}),_.a("design:type",Function)],IZ.prototype,"onDontAskAgainChanged",void 0);_.O([_.Ij("#checkbox"),_.a("design:type",Object)],IZ.prototype,"checkbox",void 0);_.O([_.W("iron-change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],IZ.prototype,"onIronChange",null);
IZ=_.O([_.A({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],IZ);
_.u(IZ,"ytd-identity-prompt-footer-renderer",function(){if(TOP!==void 0)return TOP;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return TOP=V},{mode:1});var xn6=function(){var V=_.M.apply(this,arguments)||this;V.dontAskAgain=!1;V.showPopup=!1;V.boundDontAskAgainChanged=function(l){V.dontAskAgainChanged(l)};
V.boundOnAccountItemTap=function(l){V.onAccountItemTap(l)};
return V};
_.t(xn6,_.M);_.B=xn6.prototype;
_.B.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]]"}}}}}};
_.B.ready=function(){var V=this;_.h(this.hostElement).querySelector("#container").addEventListener("scroll",function(){V.ytRendererBehavior.markDirty()})};
_.B.dontAskAgainChanged=function(V){this.dontAskAgain=V};
_.B.onAccountItemTap=function(V){if(V){var l={};this.dontAskAgain&&(l={dont_ask_again:this.dontAskAgain});_.oQ(V,l)}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.B.redirectOnlyAccount=function(V){V.sections&&V.sections.length>0&&(V=_.y(V.sections[0],_.mao),(V==null?0:V.contents)&&(V==null?void 0:V.contents.length)<=1?(V=_.bt(window.location.href),(V==null?0:V.next)&&_.jzy(V.next)?_.oQ(V.next):_.oQ("/")):this.showPopup=!0)};
var He=xn6;He.prototype.dataChanged=He.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],He.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!1}),_.a("design:type",Object)],He.prototype,"dontAskAgain",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],He.prototype,"showPopup",void 0);_.O([_.q({reflectToAttribute:!1}),_.a("design:type",Object)],He.prototype,"boundDontAskAgainChanged",void 0);_.O([_.q({reflectToAttribute:!1}),_.a("design:type",Object)],He.prototype,"boundOnAccountItemTap",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],He.prototype,"dataChanged",null);
He=_.O([_.A({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],He);
_.u(He,"ytd-channel-switcher-renderer",function(){if(H2g!==void 0)return H2g;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return H2g=V},{mode:1});var UnE;var nIb=function(){return _.M.apply(this,arguments)||this};
_.t(nIb,_.M);_.vI.Object.defineProperties(nIb.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
var T$=nIb;_.O([_.q(),_.a("design:type",Object)],T$.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],T$.prototype,"steps",null);T$=_.O([_.A({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],T$);
_.u(T$,"ytd-channel-transfer-stepper-renderer",function(){if(UnE!==void 0)return UnE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return UnE=V},{mode:1});var $n2;var dnV=function(){var V=_.M.apply(this,arguments)||this;V.data=null;V.isError=!1;V.isLoading=!1;return V};
_.t(dnV,_.M);_.B=dnV.prototype;_.B.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"}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.B.computeProfileName=function(V){return V?V.givenNameValue+" "+V.familyNameValue:""};
_.B.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)};
_.B.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
var Be=dnV;Be.prototype.onYtServiceRequestError=Be.prototype.onYtServiceRequestError;Be.prototype.onYtServiceRequestSent=Be.prototype.onYtServiceRequestSent;Be.prototype.dataChanged=Be.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Be.prototype,"data",void 0);
_.O([_.q({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.a("design:type",String)],Be.prototype,"profileName",void 0);_.O([_.q(),_.a("design:type",Object)],Be.prototype,"isError",void 0);_.O([_.q(),_.a("design:type",Object)],Be.prototype,"isLoading",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Be.prototype,"dataChanged",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],Be.prototype,"onYtServiceRequestSent",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],Be.prototype,"onYtServiceRequestError",null);Be=_.O([_.A({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Be);
_.u(Be,"ytd-channel-warm-welcome-cont-renderer",function(){if($n2!==void 0)return $n2;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return $n2=V},{mode:1});var wzg;var NOh=function(){var V=_.M.apply(this,arguments)||this;V.data=null;return V};
_.t(NOh,_.M);NOh.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
NOh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
var x0=NOh;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],x0.prototype,"data",void 0);x0=_.O([_.A({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],x0);
_.u(x0,"ytd-channel-warm-welcome-renderer",function(){if(wzg!==void 0)return wzg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return wzg=V},{mode:1});var KEE;var jME=function(){return _.M.apply(this,arguments)||this};
_.t(jME,_.M);_.vI.Object.defineProperties(jME.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.authorThumbnail)||{}}}});
var Ub=jME;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ub.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ub.prototype,"thumbnailDetails",null);Ub=_.O([_.A({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Ub);
_.u(Ub,"ytd-comment-preview-renderer",function(){if(KEE!==void 0)return KEE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return KEE=V},{mode:1});var Y$u;var LEg=function(){return _.M.apply(this,arguments)||this};
_.t(LEg,_.M);LEg.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vI.Object.defineProperties(LEg.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.submitButton}}});
var nF=LEg;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],nF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],nF.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],nF.prototype,"submitButton",null);nF=_.O([_.A({is:"ytd-notice-renderer",disableElementRegistration:!0})],nF);
_.u(nF,"ytd-notice-renderer",function(){if(Y$u!==void 0)return Y$u;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Y$u=V},{mode:1});var e5u;var kDE=function(){return _.M.apply(this,arguments)||this};
_.t(kDE,_.M);kDE.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
var $0=kDE;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$0.prototype,"data",void 0);$0=_.O([_.A({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],$0);
_.u($0,"ytd-preview-comment-dialog-content",function(){if(e5u!==void 0)return e5u;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return e5u=V},{mode:1});var FEY;var XzE=function(){return _.M.apply(this,arguments)||this};
_.t(XzE,_.M);XzE.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
XzE.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var d5=XzE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],d5.prototype,"data",void 0);d5=_.O([_.A({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],d5);
_.u(d5,"ytd-preview-comment-dialog-renderer",function(){if(FEY!==void 0)return FEY;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return FEY=V},{mode:1});var z5h;var yng=_.z("web_button_rework")&&_.PO("BUTTON_REWORK")||_.z("web_button_rework_with_live"),t2E=function(){var V=_.M.apply(this,arguments)||this;V.selectedAmountIndex=1;V.privacyCheckboxValue=!1;V.useAmsterdamStyle=yng;V.amountPlaceholderIndex=-1;return V};
_.t(t2E,_.M);_.B=t2E.prototype;_.B.onAmountClick=function(V){this.selectedAmountIndex=_.h(this.hostElement).querySelector("#amounts").indexForElement(V.currentTarget)};
_.B.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.xB(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.B.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.xB(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.xB(this.hostElement,"yt-close-popup-action",[this.is]);var V;(V=_.u8())==null||V.getPlayerPromise().then(function(l){l.pauseVideo()})}};
_.B.donationCallback=function(V){V.success?(this.hostElement.hasAttribute("live-chat")&&V.response&&V.response.data&&V.response.data.actions&&_.xB(this.hostElement,"yt-live-chat-open-popup",[V.response.data.actions[0]]),_.xB(this.hostElement,"yt-close-popup-action",[this.is]),_.xB(this.hostElement,"yt-live-chat-close-buy-flow")):V.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(V.errorMessageRenderer)};
_.B.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.h(this.hostElement).querySelector("#custom-amount-input").focus()};
_.B.updateConfirmationDialogTextWithAmount=function(V){var l=this.getConfirmDialogRuns();l&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(l),"text"],this.getFormattedAmount(V))};
_.B.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.B.getAmountPlaceholderIndex=function(V){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=V.findIndex(function(l){return l.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.B.getFormattedAmount=function(V){var l;return(new _.c4(4,((l=this.data)==null?void 0:l.currencyCode)||"")).format(V)};
_.B.isAmountValid=function(V){if(V==="")return!1;V=Number(V)*1E6;var l=this.get("minAmountMicros",this.data),I=this.get("maxAmountMicros",this.data);return l&&V<l||I&&V>I?!1:!0};
_.B.setInputError=function(){this.shouldShowValidationError?_.h(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.h(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.B.setInitialCheckboxValue=function(){var V;this.privacyCheckboxValue=!((V=this.data)==null||!V.privacyCheckboxInitialState)};
_.B.updateCustomAmountInputFromBinding=function(V){this.customAmountInput=V.detail.value};
_.B.updatePrivacyCheckboxValueFromBinding=function(V){this.privacyCheckboxValue=V.detail.value};
_.vI.Object.defineProperties(t2E.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var V=this,l,I;return((l=this.data)==null?void 0:(I=l.suggestedAmounts)==null?void 0:I.map(function(H,T){return{buttonRenderer:{style:V.selectedAmountIndex===T?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:H.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 V;return!((V=this.data)==null||!V.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 V=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(V&&this.amountMicros!==null)return Object.assign({},V,{ypcGetCartEndpoint:Object.assign({},V.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 V=this.get("confirmLargeAmount",this.data);if(V&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),V}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var V=this.get("donateButton.buttonRenderer",this.data);if(V)return Object.assign({},V,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
var w5=t2E;w5.prototype.setInitialCheckboxValue=w5.prototype.setInitialCheckboxValue;w5.prototype.setInputError=w5.prototype.setInputError;w5.prototype.setFocusOnCustomAmountInput=w5.prototype.setFocusOnCustomAmountInput;_.O([_.R(M0r),_.a("design:type",Object)],w5.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],w5.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],w5.prototype,"selectedAmountIndex",void 0);_.O([_.q(),_.a("design:type",String)],w5.prototype,"customAmountInput",void 0);_.O([_.q(),_.a("design:type",Object)],w5.prototype,"privacyCheckboxValue",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],w5.prototype,"useAmsterdamStyle",void 0);_.O([_.b("customAmount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],w5.prototype,"setFocusOnCustomAmountInput",null);_.O([_.Q("data","selectedAmountIndex"),_.a("design:type",Array),_.a("design:paramtypes",[])],w5.prototype,"suggestedAmountButtons",null);
_.O([_.Q("data","selectedAmountIndex"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],w5.prototype,"isCustomAmountSelected",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],w5.prototype,"showPrivacyCheckbox",null);_.O([_.Q("data","selectedAmountIndex","customAmount"),_.a("design:type",Object),_.a("design:paramtypes",[])],w5.prototype,"amountMicros",null);
_.O([_.Q("isCustomAmountSelected","customAmountInput"),_.a("design:type",Object),_.a("design:paramtypes",[])],w5.prototype,"customAmount",null);_.O([_.Q("customAmount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],w5.prototype,"shouldShowValidationError",null);_.O([_.Q("customAmount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],w5.prototype,"isDonateButtonEnabled",null);
_.O([_.Q("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.a("design:type",Object),_.a("design:paramtypes",[])],w5.prototype,"donateCommand",null);_.O([_.Q("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.a("design:type",Object),_.a("design:paramtypes",[])],w5.prototype,"donateCommandWithConfirmation",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],w5.prototype,"largeDonationThreshold",null);
_.O([_.Q("customAmount","donateCommand","amountMicros"),_.a("design:type",Object),_.a("design:paramtypes",[])],w5.prototype,"confirmLargeAmountCommand",null);_.O([_.Q("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.a("design:type",Object),_.a("design:paramtypes",[])],w5.prototype,"donateButtonRenderer",null);_.O([_.b("shouldShowValidationError"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],w5.prototype,"setInputError",null);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],w5.prototype,"setInitialCheckboxValue",null);w5=_.O([_.A({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],w5);
_.u(w5,"ytd-donation-amount-picker-renderer",function(){if(z5h!==void 0)return z5h;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return z5h=V},{mode:1});var rnP;var GD2=function(){return _.M.apply(this,arguments)||this};
_.t(GD2,_.M);var NH=GD2;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],NH.prototype,"ytComponentBehavior",void 0);_.O([_.q({}),_.a("design:type",Object)],NH.prototype,"data",void 0);NH=_.O([_.A({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],NH);
_.u(NH,"ytd-donation-post-transaction-content",function(){if(rnP!==void 0)return rnP;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return rnP=V},{mode:1});var EIP;var JnV=function(){return _.M.apply(this,arguments)||this};
_.t(JnV,_.M);JnV.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var KF=JnV;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.O([_.q({}),_.a("design:type",Object)],KF.prototype,"data",void 0);KF=_.O([_.A({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],KF);
_.u(KF,"ytd-donation-post-transaction-renderer",function(){if(EIP!==void 0)return EIP;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return EIP=V},{mode:1});var oIE;var h56;var PvB=function(){return _.M.apply(this,arguments)||this};
_.t(PvB,_.M);PvB.prototype.computeIsStreamingProvider=function(V){return!!V.isStreamingShelf};
PvB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var jF=PvB;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],jF.prototype,"data",void 0);_.O([_.q({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],jF.prototype,"isStreamingProvider",void 0);
jF=_.O([_.A({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],jF);
_.u(jF,"ytd-media-provider-renderer",function(){if(h56!==void 0)return h56;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return h56=V},{mode:1});var DnB;var Z2P=function(){return _.M.apply(this,arguments)||this};
_.t(Z2P,_.M);Z2P.prototype.observeLightsourcePalette=function(){var V,l=(V=this.data)==null?void 0:V.vibrantsourceColorPaletteData;l&&_.Xp(this.hostElement,l)};
var Y0=Z2P;Y0.prototype.observeLightsourcePalette=Y0.prototype.observeLightsourcePalette;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Y0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Y0.prototype,"data",void 0);
_.O([_.b("data.vibrantsourceColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y0.prototype,"observeLightsourcePalette",null);Y0=_.O([_.A({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Y0);
_.u(Y0,"ytd-streaming-pop-up-dialog",function(){if(DnB!==void 0)return DnB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return DnB=V},{mode:1});var LF=function(){return _.M.apply(this,arguments)||this};
_.t(LF,_.M);LF.prototype.onPopupOpened_=function(){var V;if((V=this.data)==null?0:V.serviceEndpoint)_.z("web_ytd_brandconnect_popup_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.serviceEndpoint]):_.F().resolve(_.aw).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
LF.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
LF.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.content":{id:"content",mapping:{streamingPopUpDialog:{component:"ytd-streaming-pop-up-dialog"}}}}};
var eF=LF;eF.prototype.onPopupOpened_=eF.prototype.onPopupOpened_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.i6),_.a("design:type",Object)],eF.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],eF.prototype,"data",void 0);
_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eF.prototype,"onPopupOpened_",null);eF=_.O([_.A({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],eF);
_.u(eF,"ytd-brandconnect-popup-renderer",function(){if(oIE!==void 0)return oIE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return oIE=V},{mode:1});var S$E;var R56=function(){return _.M.apply(this,arguments)||this};
_.t(R56,_.M);_.B=R56.prototype;_.B.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.dataChanged=function(){for(var V=0;V<this.getOptionRenderers().length;V++)this.notifyPath("data.options."+V+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+V+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.B.updateSubmitButton=function(V){this.set("data.submitButton.buttonRenderer.isDisabled",!V)};
_.B.computeAlt=function(V){return _.A5(V)};
_.B.onDismissTap=function(){_.xB(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.F().resolve(_.aw).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.B.getOptionRenderers=function(V){return(V=V||this.data)&&V.options?V.options.reduce(function(l,I){I.checkboxSurveyOptionRenderer&&l.push(I.checkboxSurveyOptionRenderer);return l},[]):[]};
_.B.onOptionChange=function(V){var l=this,I=!1;if(V.detail.checked)for(var H=this.getOptionRenderers().find(function(w){return w.value===V.detail.value}),T=this.getOptionRenderers(),x=0;x<T.length;x++){var n=T[x];
this.notifyPath("data.options."+x+".checkboxSurveyOptionRenderer.checked");n.checked&&((H==null?0:H.isExclusiveOption)?!n.isExclusiveOption:n.isExclusiveOption)?this.set("data.options."+x+".checkboxSurveyOptionRenderer.checked",!1):n.checked&&(I=!0)}else I=this.getOptionRenderers().some(function(w,N){l.notifyPath("data.options."+N+".checkboxSurveyOptionRenderer.checked");return w.checked});
this.updateSubmitButton(I)};
_.B.onSubmitTap=function(){var V=this.getOptionRenderers().filter(function(x){return x.checked});
if(V.length!==0){var l=V.map(function(x){return x.responseEndpoint});
V=[];for(var I=1;I<l.length;I++){var H=void 0,T=(H=_.y(l[I],_.Q3))==null?void 0:H.feedbackToken;T&&V.push(T)}l=[l[0]];V.length&&l.push({extra_feedback_tokens:V});_.$B(this.hostElement,l);_.xB(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);V=this.data&&this.data.submitActions||[];if(_.z("kevlar_command_handler_migration_killswitch"))_.d6(this.hostElement,V,this.hostElement);else for(V=_.U(V),l=V.next();!l.done;l=V.next())this.ytComponentBehavior.resolveCommand(l.value)}};
var k0=R56;k0.prototype.onOptionChange=k0.prototype.onOptionChange;k0.prototype.dataChanged=k0.prototype.dataChanged;_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],k0.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],k0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],k0.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.O([_.R(Ukg),_.a("design:type",Object)],k0.prototype,"ytdHatsSurveyBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],k0.prototype,"data",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],k0.prototype,"dataChanged",null);
_.O([_.W("ytd-checkbox-survey-option-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],k0.prototype,"onOptionChange",null);k0=_.O([_.A({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],k0);
_.u(k0,"ytd-checkbox-survey-renderer",function(){if(S$E!==void 0)return S$E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return S$E=V},{mode:1});var QMb;var cnh;var WEE=function(){return _.M.apply(this,arguments)||this};
_.t(WEE,_.M);var Fs=WEE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.O([_.R(xkQ),_.a("design:type",Object)],Fs.prototype,"ytdDismissalReasonBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Fs.prototype,"data",void 0);Fs=_.O([_.A({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Fs);
_.u(Fs,"ytd-dismissal-reason-text-renderer",function(){if(cnh!==void 0)return cnh;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return cnh=V},{mode:1});var b2I;var q$h=function(){return _.M.apply(this,arguments)||this};
_.t(q$h,_.M);var Xs=q$h;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.O([_.R(xkQ),_.a("design:type",Object)],Xs.prototype,"ytdDismissalReasonBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Xs.prototype,"data",void 0);Xs=_.O([_.A({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Xs);
_.u(Xs,"ytd-dismissal-reason-video-renderer",function(){if(b2I!==void 0)return b2I;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return b2I=V},{mode:1});var M2V=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(M2V,_.M);_.B=M2V.prototype;_.B.created=function(){this.selectedFeedbackTokens=new po};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.B.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.B.onDismissalReasonSelected=function(V,l){_.B$(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(l);this.hasReasonsSelected=!0};
_.B.onDismissalReasonDeselected=function(V,l){_.B$(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(l);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.B.onCancelTap=function(){_.xB(this.hostElement,"yt-close-popup-action")};
_.B.onSubmitTap=function(){var V={feedback_tokens:Array.from(this.selectedFeedbackTokens.values())};_.$B(this.hostElement,[this.data.submitFeedbackEndpoint,V]);_.xB(this.hostElement,"yt-close-popup-action")};
var z$=M2V;z$.prototype.onDismissalReasonDeselected=z$.prototype.onDismissalReasonDeselected;z$.prototype.onDismissalReasonSelected=z$.prototype.onDismissalReasonSelected;z$.prototype.dataChanged=z$.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],z$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],z$.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Boolean)],z$.prototype,"hasReasonsSelected",void 0);_.O([_.q(),_.a("design:type",po)],z$.prototype,"selectedFeedbackTokens",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],z$.prototype,"darkerDarkTheme",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],z$.prototype,"dataChanged",null);
_.O([_.W("yt-dismissal-reason-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,String]),_.a("design:returntype")],z$.prototype,"onDismissalReasonSelected",null);_.O([_.W("yt-dismissal-reason-deselected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,String]),_.a("design:returntype")],z$.prototype,"onDismissalReasonDeselected",null);z$=_.O([_.A({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],z$);
_.u(z$,"ytd-dismissal-follow-up-renderer",function(){if(QMb!==void 0)return QMb;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return QMb=V},{mode:1});var sMh;var pzE=function(){return _.M.apply(this,arguments)||this};
_.t(pzE,_.M);_.B=pzE.prototype;_.B.onCheckedChange=function(){this.multiselect||_.B$(this.hostElement,"yt-feedback-single-select-changed");_.h(this.hostElement).querySelector("#freeform").focus();_.B$(this.hostElement,"yt-refit")};
_.B.showTextBox=function(V,l){return V&&l};
_.B.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))};
_.B.updateDataCheckedFromBinding=function(V){this.set("data.checked",V.detail.value)};
_.B.updateDataResultTextFromBinding=function(V){this.set("data.resultText",V.detail.value)};
var yk=pzE;yk.prototype.dataChanged=yk.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yk.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],yk.prototype,"multiselect",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yk.prototype,"dataChanged",null);
yk=_.O([_.A({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],yk);
_.u(yk,"ytd-feedback-option-renderer",function(){if(sMh!==void 0)return sMh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return sMh=V},{mode:1});var An6;var u$g=function(){return _.M.apply(this,arguments)||this};
_.t(u$g,_.M);u$g.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
u$g.prototype.onSingleSelectCheckedChanged=function(V){V=_.qv(V);for(var l=0;l<this.data.options.length;l++)if(V.data!==_.y(this.data.options[l],I5h)){var I="data.options."+l+".feedbackOptionRenderer.checked";this.notifyPath(I);this.set(I,!1)}};
var tj=u$g;tj.prototype.onSingleSelectCheckedChanged=tj.prototype.onSingleSelectCheckedChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tj.prototype,"data",void 0);
_.O([_.W("yt-feedback-single-select-changed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],tj.prototype,"onSingleSelectCheckedChanged",null);tj=_.O([_.A({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],tj);
_.u(tj,"ytd-feedback-question-renderer",function(){if(An6!==void 0)return An6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return An6=V},{mode:1});var vI2;var r5=function(){return _.M.apply(this,arguments)||this};
_.t(r5,_.M);r5.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
r5.prototype.getSelectedFeedbackResults=function(){for(var V={},l=0;l<this.data.questions.length;l++)for(var I=_.y(this.data.questions[l],l5b),H=0;H<I.options.length;H++){var T=_.y(I.options[H],I5h);T&&T.checked&&(V[T.optionKey]=T.resultText)}return V};
r5.prototype.onKeyUp=function(){var V=this;_.vX(_.r0,function(){_.B$(V.hostElement,"yt-refit")});
_.r0.start()};
r5.prototype.submitSurvey=function(){var V=this.getSelectedFeedbackResults();Object.keys(V).length>0&&_.$B(this.hostElement,[this.data.submitFeedbackEndpoint,{survey_results:V,is_feedback_token_unencrypted:!0}])};
var G$=r5;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],G$.prototype,"data",void 0);G$=_.O([_.A({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],G$);
_.u(G$,"ytd-feedback-survey-renderer",function(){if(vI2!==void 0)return vI2;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return vI2=V},{mode:1});var O2Q;var CvE;var Eb=function(){return _.M.apply(this,arguments)||this};
_.t(Eb,_.M);Eb.prototype.computeAlt=function(V){return _.A5(V)};
Eb.prototype.submitResponse=function(){var V,l;(V=this.data)!=null&&V.feedbackToken&&((l=this.data)==null?void 0:l.nextStageIndex)!==void 0&&(_.U4(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.U4(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Eb.prototype.onClick=function(){this.submitResponse()};
var Jj=Eb;Jj.prototype.onClick=Jj.prototype.onClick;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Jj.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Jj.prototype,"vertical",void 0);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Jj.prototype,"onClick",null);
Jj=_.O([_.A({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Jj);
_.u(Jj,"ytd-single-select-answer-option-renderer",function(){if(CvE!==void 0)return CvE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return CvE=V},{mode:1});var azu;var oZ=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");V.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return V};
_.t(oZ,_.M);oZ.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
oZ.prototype.dataChanged=function(){var V,l;this.vertical=((l=(V=this.data)==null?void 0:V.answerOrientation)!=null?l:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
oZ.prototype.submitFeedback=function(V){var l;((l=this.data)==null?0:l.responseEndpoint)&&V&&_.$B(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[V]}])};
var hj=oZ;hj.prototype.dataChanged=hj.prototype.dataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],hj.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],hj.prototype,"eventForwardingBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],hj.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],hj.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],hj.prototype,"vertical",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],hj.prototype,"darkerDarkTheme",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hj.prototype,"dataChanged",null);hj=_.O([_.A({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],hj);
_.u(hj,"ytd-single-select-question-renderer",function(){if(azu!==void 0)return azu;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return azu=V},{mode:1});var fzu=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return V};
_.t(fzu,_.M);_.B=fzu.prototype;_.B.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"}}}};
_.B.dataChanged=function(){this.jumpToStage(0)};
_.B.jumpToStage=function(V){var l,I;if((l=this.data)==null?0:(I=l.stages)==null?0:I[V])this.currentStage=this.data.stages[V],this.refitAfterRender()};
_.B.computeAlt=function(V){return _.A5(V)};
_.B.computeSimpleMessage=function(V){var l;return(l=_.y(V,BMY))==null?void 0:l.messageText};
_.B.computeHideDismiss=function(V){var l;return(l=_.y(V,D6E))==null?void 0:l.hideParentDismissButton};
_.B.onDismissTap=function(){_.xB(this.hostElement,"yt-close-popup-action");_.y(this.currentStage,BMY)||this.data.dismissalEndpoint&&(_.z("web_ytd_multi_stage_survey_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.dismissalEndpoint]):_.F().resolve(_.aw).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}}))};
_.B.refitAfterRender=function(){var V=this;_.Al(this,function(){_.B$(V.hostElement,"yt-refit")})};
var Pe=fzu;Pe.prototype.dataChanged=Pe.prototype.dataChanged;_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],Pe.prototype,"eventForwardingBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Pe.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(Ukg),_.a("design:type",Object)],Pe.prototype,"ytdHatsSurveyBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Pe.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Pe.prototype,"currentStage",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pe.prototype,"dataChanged",null);Pe=_.O([_.A({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],Pe);
_.u(Pe,"ytd-multi-stage-survey-renderer",function(){if(O2Q!==void 0)return O2Q;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return O2Q=V},{mode:1});var gIh;var DD=function(){return _.M.apply(this,arguments)||this};
_.t(DD,_.M);DD.prototype.computeAlt=function(V){return _.A5(V)};
DD.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.F().resolve(_.aw).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.xB(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.VXh(!1)))};
DD.prototype.onTap=function(){this.vertical&&this.submitResponse()};
var ZD=DD;ZD.prototype.onTap=ZD.prototype.onTap;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],ZD.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ZD.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],ZD.prototype,"vertical",void 0);
_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZD.prototype,"onTap",null);ZD=_.O([_.A({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],ZD);
_.u(ZD,"ytd-single-option-survey-option-renderer",function(){if(gIh!==void 0)return gIh;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return gIh=V},{mode:1});var mnE;var i2E=function(){return _.M.apply(this,arguments)||this};
_.t(i2E,_.M);_.B=i2E.prototype;_.B.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.dataChanged=function(){var V,l;this.vertical=(((V=this.data)==null?void 0:(l=V.surveyOrientation)==null?void 0:l.type)||"HORIZONTAL")==="VERTICAL"};
_.B.computeAlt=function(V){return _.A5(V)};
_.B.onDismissTap=function(){_.xB(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.F().resolve(_.aw).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.VXh(!1))};
var SF=i2E;SF.prototype.dataChanged=SF.prototype.dataChanged;_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],SF.prototype,"eventForwardingBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(Ukg),_.a("design:type",Object)],SF.prototype,"ytdHatsSurveyBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],SF.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],SF.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],SF.prototype,"vertical",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SF.prototype,"dataChanged",null);SF=_.O([_.A({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],SF);
_.u(SF,"ytd-single-option-survey-renderer",function(){if(mnE!==void 0)return mnE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return mnE=V},{mode:1});var V$6;var RZ=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(RZ,_.M);RZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
RZ.prototype.onDismissTap=function(){_.xB(this.hostElement,"yt-close-popup-action")};
RZ.prototype.onNavigate=function(){_.xB(this.hostElement,"yt-close-popup-action")};
var Qk=RZ;Qk.prototype.onNavigate=Qk.prototype.onNavigate;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],Qk.prototype,"ytEventForwardingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Qk.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Qk.prototype,"darkerDarkTheme",void 0);
_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qk.prototype,"onNavigate",null);Qk=_.O([_.A({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Qk);
_.u(Qk,"ytd-survey-follow-up-renderer",function(){if(V$6!==void 0)return V$6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return V$6=V},{mode:1});var leV;var IeP;var HBP;var TXB=function(){var V=_.M.apply(this,arguments)||this;V.polymer2="Element"in Polymer;return V};
_.t(TXB,_.M);_.B=TXB.prototype;_.B.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.B.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.B.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.B.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("minutes-changed",this.minutes))};
_.B.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("seconds-changed",this.seconds))};
_.B.updateMinutesFromBinding=function(V){this.minutes=V.detail.value};
_.B.updateSecondsFromBinding=function(V){this.seconds=V.detail.value};
var ce=TXB;ce.prototype.secondsChangedForBinding=ce.prototype.secondsChangedForBinding;ce.prototype.minutesChangedForBinding=ce.prototype.minutesChangedForBinding;ce.prototype.secondsChanged=ce.prototype.secondsChanged;_.O([_.q(),_.a("design:type",String)],ce.prototype,"minutes",void 0);_.O([_.q(),_.a("design:type",String)],ce.prototype,"seconds",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],ce.prototype,"polymer2",void 0);
_.O([_.Ij("#seconds"),_.a("design:type",Object)],ce.prototype,"secondsEl",void 0);_.O([_.b("seconds"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ce.prototype,"secondsChanged",null);_.O([_.b("minutes"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ce.prototype,"minutesChangedForBinding",null);
_.O([_.b("seconds"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ce.prototype,"secondsChangedForBinding",null);ce=_.O([_.Lm({is:"yt-timestamp-input",disableElementRegistration:!0})],ce);
_.u(ce,"yt-timestamp-input",function(){if(HBP===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;IeP===void 0&&(IeP=document.createElement("template"));var H=IeP;I.call(l,H.content.cloneNode(!0),V.content.firstChild);HBP=V}V=HBP;return V},{mode:2});var BXQ=function(){return _.M.apply(this,arguments)||this};
_.t(BXQ,_.M);_.B=BXQ.prototype;_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$17959_scroller.dialogElement=this.hostElement.parentNode};
_.B.dataChanged=function(){var V=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.vu().getPlayerPromise().then(function(l){l=l.getCurrentTime();V.minutes=Math.floor(l/60).toString();V.seconds=(Math.floor(l)%60).toString()})};
_.B.onTapSubmit=function(V){V.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(V={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(V.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(V.minutes=this.minutes,V.seconds=this.seconds),_.z("web_ytd_legal_report_details_form_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.serviceEndpoint,V]):_.F().resolve(_.aw).resolveCommand(this.serviceEndpoint,
{form:Object.assign({},V,{element:this.hostElement})}))};
_.B.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.B.onYtServiceRequestCompleted=function(V,l){l=l.actions;if(Array.isArray(l))for(var I=0,H=l.length;I<H;I++)_.y(l[I],_.Ed)&&(V.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(l[I]))};
_.B.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.B.toggleSubmitButton=function(V){this.set("submitButton.isDisabled",!V)};
_.B.handleInput=function(){var V=this.issueType,l=this.affiliation,I=this.minutes,H=this.seconds;I=!this.showTimestamp||!!I&&!!H;this.toggleSubmitButton(!!this.descriptionText&&!!V&&!!l&&I)};
_.B.computeServiceEndpoint=function(V){return this.get("submitButton.buttonRenderer.serviceEndpoint",V)};
_.B.computeSubmitButton=function(V){(V=this.get("submitButton.buttonRenderer",V))&&(V=Object.assign({},V,{serviceEndpoint:void 0}));return V};
_.B.computeShowTimestamp=function(V){return!!V};
_.B.onValueChangedForIssueType=function(V){this.issueType=V.detail.value};
_.B.onValueChangedForAffiliation=function(V){this.affiliation=V.detail.value};
_.B.updateDescriptionTextFromBinding=function(V){this.descriptionText=V.detail.value};
_.B.updateFullNameTextFromBinding=function(V){this.fullNameText=V.detail.value};
_.B.updateMinutesFromBinding=function(V){this.minutes=V.detail.value};
_.B.updateSecondsFromBinding=function(V){this.seconds=V.detail.value};
var We=BXQ;We.prototype.handleInput=We.prototype.handleInput;We.prototype.onYtServiceRequestError=We.prototype.onYtServiceRequestError;We.prototype.onYtServiceRequestCompleted=We.prototype.onYtServiceRequestCompleted;We.prototype.onYtServiceRequestSent=We.prototype.onYtServiceRequestSent;We.prototype.dataChanged=We.prototype.dataChanged;_.O([_.R(_.x4.YtOpenPopupBehavior),_.a("design:type",Object)],We.prototype,"ytOpenPopupBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.O([_.Ij("#scroller"),_.a("design:type",Object)],We.prototype,"JSC$17959_scroller",void 0);_.O([_.Ij("#description"),_.a("design:type",HTMLInputElement)],We.prototype,"description",void 0);_.O([_.Ij("#full-name"),_.a("design:type",Object)],We.prototype,"fullName",void 0);_.O([_.q(),_.a("design:type",Object)],We.prototype,"data",void 0);
_.O([_.q({computed:"computeShowTimestamp(data.timestampLabel)"}),_.a("design:type",Boolean)],We.prototype,"showTimestamp",void 0);_.O([_.q({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.a("design:type",Object)],We.prototype,"serviceEndpoint",void 0);_.O([_.q({computed:"computeSubmitButton(data)"}),_.a("design:type",Object)],We.prototype,"submitButton",void 0);_.O([_.q(),_.a("design:type",String)],We.prototype,"descriptionText",void 0);
_.O([_.q(),_.a("design:type",Number)],We.prototype,"issueType",void 0);_.O([_.q(),_.a("design:type",Number)],We.prototype,"affiliation",void 0);_.O([_.q(),_.a("design:type",String)],We.prototype,"fullNameText",void 0);_.O([_.q(),_.a("design:type",String)],We.prototype,"minutes",void 0);_.O([_.q(),_.a("design:type",String)],We.prototype,"seconds",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],We.prototype,"dataChanged",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],We.prototype,"onYtServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],We.prototype,"onYtServiceRequestCompleted",null);
_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],We.prototype,"onYtServiceRequestError",null);_.O([_.b("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],We.prototype,"handleInput",null);We=_.O([_.A({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],We);
_.u(We,"ytd-legal-report-details-form-renderer",function(){if(leV!==void 0)return leV;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return leV=V},{mode:1});var xfV;var by=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return V};
_.t(by,_.M);by.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
by.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var V=this.formRenderer.getForm();V&&this.data.submitEndpoint&&(_.z("web_ytd_form_popup_content_command_resolver_ks")?_.$B(this.hostElement,[this.data.submitEndpoint,V]):_.F().resolve(_.aw).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},V,{element:this.hostElement})}),_.xB(this.hostElement,"yt-close-popup-action"))}};
by.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.xB(this.hostElement,"yt-close-popup-action"))};
by.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
var qH=by;qH.prototype.onPopupClosed=qH.prototype.onPopupClosed;_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],qH.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],qH.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.O([_.Ij("yt-form-renderer"),_.a("design:type",Object)],qH.prototype,"formRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],qH.prototype,"data",void 0);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qH.prototype,"onPopupClosed",null);qH=_.O([_.A({is:"ytd-form-popup-content",disableElementRegistration:!0})],qH);
_.u(qH,"ytd-form-popup-content",function(){if(xfV!==void 0)return xfV;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return xfV=V},{mode:1});var UfY;var MH=function(){return _.M.apply(this,arguments)||this};
_.t(MH,_.M);MH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
MH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
MH.prototype.onPopupOpened=function(){_.B$(this.hostElement,"yt-invalidate-popup-tabbables")};
MH.prototype.onYtServiceRequestCompleted=function(V,l){l.data&&l.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.B$(this.hostElement,"yt-invalidate-popup-tabbables"))};
var sb=MH;sb.prototype.onYtServiceRequestCompleted=sb.prototype.onYtServiceRequestCompleted;sb.prototype.onPopupOpened=sb.prototype.onPopupOpened;_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],sb.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],sb.prototype,"data",void 0);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sb.prototype,"onPopupOpened",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],sb.prototype,"onYtServiceRequestCompleted",null);sb=_.O([_.A({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],sb);
_.u(sb,"ytd-form-popup-renderer",function(){if(UfY!==void 0)return UfY;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return UfY=V},{mode:1});var nog;var $fI=function(){var V=_.M.apply(this,arguments)||this;V.isLoading=!1;return V};
_.t($fI,_.M);_.B=$fI.prototype;_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");lt2(this.hostElement)};
_.B.onYtServiceRequestSent=function(){this.isLoading=!0};
_.B.onYtServiceRequestCompleted=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.B.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.d6(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.B.closePopupHandler=function(){this.fireOnCloseActions()};
_.B.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var V=this.get("data.headerImage.thumbnails");V&&(V=_.sI(V,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+V+")")}};
_.B.onYtNavigate=function(V){(V=_.qv(V))&&V.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
var pF=$fI;pF.prototype.onYtNavigate=pF.prototype.onYtNavigate;pF.prototype.onHeaderImageChanged=pF.prototype.onHeaderImageChanged;pF.prototype.closePopupHandler=pF.prototype.closePopupHandler;pF.prototype.onYtServiceRequestCompleted=pF.prototype.onYtServiceRequestCompleted;pF.prototype.onYtServiceRequestSent=pF.prototype.onYtServiceRequestSent;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],pF.prototype,"ytEventForwardingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],pF.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],pF.prototype,"isLoading",void 0);_.O([_.Ij("#header"),_.a("design:type",HTMLDivElement)],pF.prototype,"header",void 0);_.O([_.Ij("#confirm-button"),_.a("design:type",_.KR)],pF.prototype,"confirmButton",void 0);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pF.prototype,"onYtServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pF.prototype,"onYtServiceRequestCompleted",null);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],pF.prototype,"closePopupHandler",null);_.O([_.b("data.headerImage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pF.prototype,"onHeaderImageChanged",null);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pF.prototype,"onYtNavigate",null);
pF=_.O([_.A({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],pF);
_.u(pF,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(nog!==void 0)return nog;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return nog=V},{mode:1});var dfh;var wmg=function(){var V=_.M.apply(this,arguments)||this;V.isLoading=!1;return V};
_.t(wmg,_.M);_.B=wmg.prototype;_.B.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"}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);lt2(this.hostElement)};
_.B.onYtServiceRequestCompleted=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.B.onYtServiceRequestError=function(V){_.oE(this.hostElement,V.detail.error.message)};
_.B.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.B.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.xB(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.B.onDataChanged=function(){this.isLoading=!1;var V=this.get("data.headerImage.thumbnails");V&&(V=_.sI(V,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+V+")");V=_.oa();var l=_.JO(),I=this.get("data.trackingParams");I&&l&&V&&_.MJ(V,l,_.dj(I))};
_.vI.Object.defineProperties(wmg.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
var Aj=wmg;Aj.prototype.onDataChanged=Aj.prototype.onDataChanged;Aj.prototype.onDomChange=Aj.prototype.onDomChange;Aj.prototype.onYtServiceRequestError=Aj.prototype.onYtServiceRequestError;Aj.prototype.onYtServiceRequestCompleted=Aj.prototype.onYtServiceRequestCompleted;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],Aj.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Aj.prototype,"isLoading",void 0);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Aj.prototype,"hasDescription",null);_.O([_.Ij("tp-yt-paper-dialog-scrollable"),_.a("design:type",Object)],Aj.prototype,"scrollable",void 0);_.O([_.Ij("#header"),_.a("design:type",HTMLElement)],Aj.prototype,"header",void 0);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Aj.prototype,"onYtServiceRequestCompleted",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Aj.prototype,"onYtServiceRequestError",null);
_.O([_.W("dom-change"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Aj.prototype,"onDomChange",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Aj.prototype,"onDataChanged",null);Aj=_.O([_.A({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Aj);
_.u(Aj,"ytd-gaming-account-link-setting-renderer",function(){if(dfh!==void 0)return dfh;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return dfh=V},{mode:1});var NXE;var Kyg;var jqY=function(){var V=_.M.apply(this,arguments)||this;V.isHeader=!1;V.getEndpointForm=aVB;return V};
_.t(jqY,_.M);_.B=jqY.prototype;_.B.triggerHintActions=function(){var V=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var l=_.U4(V.hostElement,"yt-get-opened-popups-action");!(l&&l.length===1?l[0]:[]).some(function(I){I=I.openPopupAction.popupType;return I==="SURVEY"||I==="MEALBAR"||I==="HINT"})&&V.data.hintActions&&V.guideOpened&&(_.d6(V.hostElement,V.data.hintActions,V.hostElement),V.data.hintActions=void 0)})};
_.B.getBadgeIconType=function(V){return V&&V.liveBroadcasting?"live":null};
_.B.onDown=function(){this.interaction.triggerDown()};
_.B.onUp=function(){this.interaction.triggerUp()};
_.B.onTap=function(V){if(this.data.serviceEndpoint){var l;_.z("shorts_controller_retrieve_seedless_sequence_v2")&&((l=_.y(this.data.serviceEndpoint,_.YV))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):CQu(this.data.serviceEndpoint,this);V.preventDefault()}else this.data.navigationEndpoint&&!_.qi(_.b3(V),this.hostElement,["A".toString()])&&_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.B.computeActive=function(V,l){if(!V)return!1;var I=V.navigationEndpoint;V=V.serviceEndpoint;if(!I&&!V||!l)return!1;if(I){V=(V=np(l))&&["subscriptions","filteredsubscriptions"].includes(V);if(_.y(I,_.$V)&&_.y(l,_.$V)&&!V){var H=_.y(I,_.$V).browseId;l=_.y(l,_.$V).browseId;return H!==void 0&&l!==void 0&&(H===l||H==="VLWL"&&l==="FEwatch_later"||H==="FEwatch_later"&&l==="VLWL")}var T;I=(T=_.y(I.commandMetadata,_.mK))==null?void 0:T.url;l=(H=_.y(l.commandMetadata,_.mK))==null?void 0:H.url;return!(!I||
!l||I!==l&&I!==_.Bx(l))}return this.isActiveShortsTab(V,l)};
_.B.isActiveShortsTab=function(V,l){l=!!_.y(l,_.YV)||!!_.y(l,_.Z0);return(!!_.y(V,_.YV)||!!_.y(V,_.Z0))&&l};
_.B.computeIsPrimary=function(V){return!!V};
_.vI.Object.defineProperties(jqY.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 V=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&V)return V}}});
var uy=jqY;uy.prototype.onTap=uy.prototype.onTap;uy.prototype.onUp=uy.prototype.onUp;uy.prototype.onDown=uy.prototype.onDown;uy.prototype.triggerHintActions=uy.prototype.triggerHintActions;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],uy.prototype,"componentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],uy.prototype,"rendererBehavior",void 0);_.O([_.R(_.AM.YtTaskEmitterBehavior),_.a("design:type",Object)],uy.prototype,"taskEmitterBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],uy.prototype,"activeEndpoint",void 0);_.O([_.q(),_.a("design:type",Object)],uy.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],uy.prototype,"guideOpened",void 0);_.O([_.q(),_.a("design:type",String)],uy.prototype,"type",void 0);_.O([_.Ij("yt-interaction"),_.a("design:type",Object)],uy.prototype,"interaction",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],uy.prototype,"isHeader",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data","activeEndpoint"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uy.prototype,"active",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uy.prototype,"isPrimary",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.count","data.presentationStyle","data.badges.*"),_.a("design:type",String),_.a("design:paramtypes",[])],uy.prototype,"lineEndStyle",null);
_.O([_.Q("lineEndStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],uy.prototype,"ariaLabel",null);_.O([_.b("data.hintActions","guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uy.prototype,"triggerHintActions",null);_.O([_.W("down"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uy.prototype,"onDown",null);
_.O([_.W("up"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uy.prototype,"onUp",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],uy.prototype,"onTap",null);uy=_.O([_.A({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],uy);
_.u(uy,"ytd-guide-entry-renderer",function(){if(Kyg!==void 0)return Kyg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Kyg=V},{mode:1});var YCP=function(){var V=_.M.apply(this,arguments)||this;V.userToggled=!1;return V};
_.t(YCP,_.M);_.B=YCP.prototype;_.B.getItemsPath=function(){return"data.expandableItems"};
_.B.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.B.onExpanderItemTapped=function(V){var l=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.z("kevlar_guide_expandable_items_killswitch")&&_.Al(this,function(){_.MD(l.expandableItems)});
V.preventDefault()};
_.B.onCollapserItemTapped=function(V){var l=this;this._setExpanded(!1);this.userToggled=!0;V.preventDefault();this.expandableItems&&!_.z("kevlar_guide_collapsible_items_killswitch")&&_.Al(this,function(){_.qD(l.hostElement)})};
_.B.observeActiveEndpoint=function(){for(var V=this.activeEndpoint,l=this.data,I=this.expandableItems.children,H=0,T=I.length;H<T;H++)I[H].activeEndpoint=V;l&&l.autoExpandCommand&&V&&!this.userToggled&&(I=this.data.autoExpandCommand,l=!(!_.y(I,_.$V)||!_.y(V,_.$V)||_.y(I,_.$V).browseId!==_.y(V,_.$V).browseId),V=this.get("commandMetadata.webCommandMetadata.url",V),I=this.get("commandMetadata.webCommandMetadata.url",I),l=l||!!(V&&I&&V.includes(I)),this._setExpanded(l),l&&this.ytLazyListBehavior.fillRemainingListItems())};
var ve=YCP;ve.prototype.observeActiveEndpoint=ve.prototype.observeActiveEndpoint;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.lL.YtLazyListBehavior),_.a("design:type",Object)],ve.prototype,"ytLazyListBehavior",void 0);_.O([_.Ij("#expandable-items"),_.a("design:type",HTMLElement)],ve.prototype,"expandableItems",void 0);
_.O([_.q(),_.a("design:type",Object)],ve.prototype,"data",void 0);_.O([_.q({readOnly:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],ve.prototype,"expanded",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],ve.prototype,"initialCount",void 0);_.O([_.q(),_.a("design:type",Object)],ve.prototype,"activeEndpoint",void 0);_.O([_.b("data","activeEndpoint","canShowMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ve.prototype,"observeActiveEndpoint",null);
ve=_.O([_.A({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],ve);
_.u(ve,"ytd-guide-collapsible-entry-renderer",function(){if(NXE!==void 0)return NXE;var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return NXE=V},{mode:_.Cm("kevlar_poly_si_batch_j079")?1:2});var LyI;var e$E;var kng=function(){var V=_.M.apply(this,arguments)||this;V.allVideosCount=0;V.renderGuideEntry=!1;return V};
_.t(kng,_.M);kng.prototype.observeRenderEntry=function(){var V;this.renderGuideEntry=!((V=this.data)==null||!V.alwaysShow)||!!this.allVideosCount};
var Ob=kng;Ob.prototype.observeRenderEntry=Ob.prototype.observeRenderEntry;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Ob.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ob.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Ob.prototype,"activeEndpoint",void 0);_.O([_.q({selector:_.Q7T}),_.a("design:type",Object)],Ob.prototype,"allVideosCount",void 0);
_.O([_.q(),_.a("design:type",Object)],Ob.prototype,"renderGuideEntry",void 0);_.O([_.xs("allVideosCount","data.alwaysShow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ob.prototype,"observeRenderEntry",null);Ob=_.O([_.A({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Ob);
_.u(Ob,"ytd-guide-downloads-entry-renderer",function(){if(e$E===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);e$E=V}V=e$E;return V},{mode:1});var FyE=function(){var V=_.M.apply(this,arguments)||this;V.youtab=_.z("web_enable_youtab");V.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return V};
_.t(FyE,_.M);_.B=FyE.prototype;_.B.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]]"}}}}}};
_.B.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var V=this.sectionItems.children,l=0,I=V.length;l<I;l++)V[l].activeEndpoint=this.activeEndpoint}};
_.B.handleAddToGuideSectionAction=function(V){var l=_.y(V,k9I);if(l&&this.data&&(V=l.items,l=l.handlerData,V&&l&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(l)>-1)){l=0;for(var I=V.length;l<I;l++)V[l].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,V[l])}};
_.B.handleRemoveFromGuideSectionAction=function(V){var l=_.y(V,FaB);l&&this.data&&(V=l.guideEntryId,l=l.handlerData,V&&l&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(l)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(V,this.data.sectionItems),this.removeFromCollapsedSection(V,this.data.sectionItems)))};
_.B.removeFromExpandedSection=function(V,l){V=this.getEntryIndexMatchingId(V,l);V!==-1&&this.splice("data.sectionItems",V,1)};
_.B.removeFromCollapsedSection=function(V,l){var I=l.findIndex(function(H){return!!_.y(H,bzQ)});
I&&I!==-1&&l[I]&&_.y(l[I],bzQ)&&(l=_.y(l[I],bzQ).expandableItems)&&(V=this.getEntryIndexMatchingId(V,l),V!==-1&&this.splice("data.sectionItems."+I+".guideCollapsibleEntryRenderer.expandableItems",V,1))};
_.B.getEntryIndexMatchingId=function(V,l){var I=this;return l.findIndex(function(H){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",H)===V})};
var CF=FyE;CF.prototype.activeEndpointChanged=CF.prototype.activeEndpointChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],CF.prototype,"actionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.Ij("#section-items"),_.a("design:type",HTMLDivElement)],CF.prototype,"sectionItems",void 0);_.O([_.Ij("#header-entry"),_.a("design:type",Object)],CF.prototype,"headerEntry",void 0);_.O([_.q(),_.a("design:type",Object)],CF.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],CF.prototype,"activeEndpoint",void 0);_.O([_.q(),_.a("design:type",Object)],CF.prototype,"youtab",void 0);
_.O([_.b("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CF.prototype,"activeEndpointChanged",null);CF=_.O([_.A({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],CF);
_.u(CF,"ytd-guide-collapsible-section-entry-renderer",function(){if(LyI===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);LyI=V}V=LyI;return V},{mode:1});var XmQ;var z$V;var yZE=function(){var V=_.M.apply(this,arguments)||this;V.modernTypography=_.z("web_modern_typography");V.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 V};
_.t(yZE,_.M);_.B=yZE.prototype;
_.B.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}}}}};
_.B.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var V=_.U4(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);V&&V.length===1&&V[0]&&_.U4(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.B.handleResetChannelUnreadCountCommand=function(V){var l;(V=(l=_.y(V,y7I))==null?void 0:l.channelId)&&this.data&&this.data.items&&(l=this.getPathToEntryMatchingId(V))&&(this.set(l+".guideEntryRenderer.count",0),this.set(l+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.B.handleResetSubscriptionsUnreadDotCommand=function(V){var l,I=(l=_.y(V,tyh))==null?void 0:l.targetId,H;I&&(H=this.data)!=null&&H.items&&(V=this.data.items.findIndex(function(T){var x;return((x=T.guideEntryRenderer)==null?void 0:x.targetId)===I}),V<0||this.set("data.items."+V+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.B.getPathToEntryMatchingId=function(V){if(this.data&&this.data.items){var l=this.getEntryIndexMatchingId(V,this.data.items);if(l>-1)return"data.items."+l;for(var I=0;I<this.data.items.length;I++)if(l=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[I]))if(l=this.getEntryIndexMatchingId(V,l),l>-1)return"data.items."+I+".guideCollapsibleEntryRenderer.expandableItems."+l}};
_.B.handleAddToGuideSectionAction=function(V){var l=this;if(_.y(V,k9I)){var I=_.y(V,k9I).items;V=_.y(V,k9I).handlerData;var H,T;I&&V&&((H=this.data)==null?void 0:(T=H.handlerDatas)==null?void 0:T.indexOf(V))>-1&&(I=I.filter(function(x){return(x=l.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",x))&&!l.isGuideItemPresent(x)}),this.unshift.apply(this,["data.items"].concat(_.oI(I))))}};
_.B.isGuideItemPresent=function(V){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(V,this.data.items)!==-1)return!0;var l=this.data.items.find(function(I){return!!I.guideCollapsibleEntryRenderer});
if((l==null?0:l.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(V,l.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.B.getEntryIndexMatchingId=function(V,l){var I=this;return l.findIndex(function(H){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",H)===V})};
_.B.handleRemoveFromGuideSectionAction=function(V){if(_.y(V,FaB)){var l=_.y(V,FaB).guideEntryId;V=_.y(V,FaB).handlerData;var I,H;l&&V&&((I=this.data)==null?void 0:(H=I.handlerDatas)==null?void 0:H.indexOf(V))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(l,this.data.items),this.removeFromCollapsedSection(l,this.data.items))}};
_.B.removeFromExpandedSection=function(V,l){V=this.getEntryIndexMatchingId(V,l);V!==-1&&this.splice("data.items",V,1)};
_.B.removeFromCollapsedSection=function(V,l){var I=l.findIndex(function(H){return!!H.guideCollapsibleEntryRenderer});
I!==-1&&(l=l[I].guideCollapsibleEntryRenderer.expandableItems)&&(V=this.getEntryIndexMatchingId(V,l),V!==-1&&this.splice("data.items."+I+".guideCollapsibleEntryRenderer.expandableItems",V,1))};
_.B.activeEndpointChanged=function(){for(var V=_.h(this.hostElement).querySelector("#items").children,l=0,I=V.length;l<I;l++)V[l].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.B.guideOpenedChanged=function(){for(var V=_.h(this.hostElement).querySelector("#items").children,l=0,I=V.length;l<I;l++)V[l].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
var aZ=yZE;aZ.prototype.guideOpenedChanged=aZ.prototype.guideOpenedChanged;aZ.prototype.activeEndpointChanged=aZ.prototype.activeEndpointChanged;aZ.prototype.persistentGuideChanged=aZ.prototype.persistentGuideChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],aZ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.lL.YtLazyListBehavior),_.a("design:type",Object)],aZ.prototype,"ytLazyListBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],aZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],aZ.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],aZ.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],aZ.prototype,"modernTypography",void 0);_.O([_.q(),_.a("design:type",String)],aZ.prototype,"type",void 0);_.O([_.q({value:20}),_.a("design:type",Number)],aZ.prototype,"initialCount",void 0);_.O([_.q({value:10}),_.a("design:type",Number)],aZ.prototype,"targetFramerate",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],aZ.prototype,"autoFill",void 0);_.O([_.q({value:50}),_.a("design:type",Number)],aZ.prototype,"renderDelay",void 0);
_.O([_.b("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aZ.prototype,"persistentGuideChanged",null);_.O([_.xs("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aZ.prototype,"activeEndpointChanged",null);_.O([_.xs("guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aZ.prototype,"guideOpenedChanged",null);
aZ=_.O([_.A({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],aZ);
_.u(aZ,"ytd-guide-section-renderer",function(){if(z$V!==void 0)return z$V;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return z$V=V},{mode:_.Cm("kevlar_poly_si_batch_j073")?1:2});var t$2;var rZE=function(){return _.M.apply(this,arguments)||this};
_.t(rZE,_.M);_.vI.Object.defineProperties(rZE.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
var fF=rZE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],fF.prototype,"rendererBehaviors",void 0);_.O([_.q(),_.a("design:type",Object)],fF.prototype,"data",void 0);_.O([_.q(),_.Q("data.signInButton.buttonRenderer.style"),_.a("design:type",Object),_.a("design:paramtypes",[])],fF.prototype,"alignByText",null);fF=_.O([_.A({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],fF);
_.u(fF,"ytd-guide-signin-promo-renderer",function(){if(t$2===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);t$2=V}V=t$2;return V},{mode:1});var g5=function(){var V=_.M.apply(this,arguments)||this;V.showFooter=!1;return V};
_.t(g5,_.M);g5.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}}}}};
g5.prototype.attached=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1){l=_.F().resolve(_.Cs(_.W0));if(!l)return I.jumpTo(0);l.setGuideData(V.hostElement);return _.K(I,0,3)}V.ytLazyListBehavior.initialCount=2;return I.return()})};
g5.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
var mA=g5;mA.prototype.dataChanged=mA.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],mA.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.lL.YtLazyListBehavior),_.a("design:type",Object)],mA.prototype,"ytLazyListBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],mA.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],mA.prototype,"showFooter",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],mA.prototype,"autoFill",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mA.prototype,"dataChanged",null);mA=_.O([_.A({is:"ytd-guide-renderer",disableElementRegistration:!0})],mA);
_.u(mA,"ytd-guide-renderer",function(){if(XmQ!==void 0)return XmQ;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return XmQ=V},{mode:_.Cm("kevlar_poly_si_batch_j073")?1:2});var GnP;var EoE=function(){var V=_.M.apply(this,arguments)||this;V.systemIcons=_.z("kevlar_system_icons");V.frostedGlass=_.z("web_frosted_glass");V.getEndpointForm=aVB;return V};
_.t(EoE,_.M);_.B=EoE.prototype;_.B.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.B.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.A5(this.data.formattedTitle))};
_.B.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.B.onDown=function(){this.interaction.triggerDown()};
_.B.onUp=function(){this.interaction.triggerUp()};
_.B.onTap=function(V){if(this.data.serviceEndpoint){var l;_.z("shorts_controller_retrieve_seedless_sequence_v2")&&((l=_.y(this.data.serviceEndpoint,_.YV))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):CQu(this.data.serviceEndpoint,this);V.preventDefault()}else{var I;((I=this.data)==null?0:I.navigationEndpoint)&&!_.qi(_.b3(V),this.hostElement,["A".toString()])&&_.B$(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.B.computeActive=function(V,l){if(!V)return!1;var I=V.navigationEndpoint;V=V.serviceEndpoint;if(!I&&!V||!l)return!1;if(I){V=_.y(I,_.$V);var H=_.y(l,_.$V);if(V&&H)return V.browseId===H.browseId&&V.params===H.params;var T;I=(T=_.y(I.commandMetadata,_.mK))==null?void 0:T.url;var x;l=(x=_.y(l.commandMetadata,_.mK))==null?void 0:x.url;return!(!I||!l||I!==l&&I!==_.Bx(l))}return this.isActiveShortsTab(V,l)};
_.B.isActiveShortsTab=function(V,l){l=!!_.y(l,_.YV)||!!_.y(l,_.Z0);return(!!_.y(V,_.YV)||!!_.y(V,_.Z0))&&l};
_.B.computeTitle=function(V,l){return l?"":_.A5(V)};
_.vI.Object.defineProperties(EoE.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
var iy=EoE;iy.prototype.onTap=iy.prototype.onTap;iy.prototype.onUp=iy.prototype.onUp;iy.prototype.onDown=iy.prototype.onDown;iy.prototype.onActiveStateChange=iy.prototype.onActiveStateChange;iy.prototype.dataChanged=iy.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],iy.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.Sq),_.a("design:type",Object)],iy.prototype,"ironButtonState",void 0);_.O([_.q(),_.a("design:type",Object)],iy.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],iy.prototype,"activeEndpoint",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],iy.prototype,"noLabels",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.a("design:type",Boolean)],iy.prototype,"isActive",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],iy.prototype,"systemIcons",void 0);_.O([_.Ij("yt-interaction"),_.a("design:type",Object)],iy.prototype,"interaction",void 0);_.O([_.Q("isActive"),_.a("design:type",Object),_.a("design:paramtypes",[])],iy.prototype,"ariaSelected",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],iy.prototype,"frostedGlass",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iy.prototype,"dataChanged",null);_.O([_.b("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iy.prototype,"onActiveStateChange",null);_.O([_.W("down"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iy.prototype,"onDown",null);
_.O([_.W("up"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iy.prototype,"onUp",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],iy.prototype,"onTap",null);iy=_.O([_.A({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],iy);
_.u(iy,"ytd-mini-guide-entry-renderer",function(){if(GnP!==void 0)return GnP;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return GnP=V},{mode:_.Cm("kevlar_poly_si_batch_j063")?1:2});var JZg;var ooE=function(){var V=_.M.apply(this,arguments)||this;V.allVideosCount=0;V.noLabels=_.z("kevlar_mini_guide_no_labels");V.frostedGlass=_.z("web_frosted_glass");return V};
_.t(ooE,_.M);_.B=ooE.prototype;_.B.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.B.visibleChanged=function(){if(this.visible&&!this.data){var V=_.F().resolve(_.Cs(_.W0));V&&V.setGuideData(this.hostElement)}};
_.B.dataChanged=function(){var V=[],l;if((l=this.data)!=null&&l.items){l=_.U(this.data.items);for(var I=l.next();!I.done;I=l.next()){I=I.value;var H=void 0;if((H=I.guideSectionRenderer)==null?0:H.items)for(H=void 0,I=_.U((H=I.guideSectionRenderer)==null?void 0:H.items),H=I.next();!H.done;H=I.next())if(H=H.value,H.guideEntryRenderer)H=H.guideEntryRenderer,H.isPrimary&&V.push({guideEntryRenderer:H});else if(H.guideCollapsibleSectionEntryRenderer){var T=void 0;((T=_.y(H.guideCollapsibleSectionEntryRenderer.headerEntry,
uX))==null?0:T.isPrimary)&&V.push({guideEntryRenderer:_.y(H.guideCollapsibleSectionEntryRenderer.headerEntry,uX)});if(H=H.guideCollapsibleSectionEntryRenderer.sectionItems)for(H=_.U(H),T=H.next();!T.done;T=H.next()){var x=T.value;T=_.y(x,qu6);var n=void 0;((n=_.y(x,uX))==null?0:n.isPrimary)?V.push({guideEntryRenderer:_.y(x,uX)}):T&&(x=void 0,_.y((x=T)==null?void 0:x.entryRenderer,uX)&&(T.alwaysShow||this.allVideosCount)&&V.push({guideEntryRenderer:_.y(T.entryRenderer,uX)}))}}}}this.miniGuideItems=
V};
_.B.activeEndpointChanged=function(){for(var V=this.items.children,l=0;l<V.length;l++)V[l].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
var VD=ooE;VD.prototype.activeEndpointChanged=VD.prototype.activeEndpointChanged;VD.prototype.dataChanged=VD.prototype.dataChanged;VD.prototype.visibleChanged=VD.prototype.visibleChanged;_.O([_.R(_.DS),_.a("design:type",Object)],VD.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],VD.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],VD.prototype,"ytComponentBehavior",void 0);_.O([_.Ij("#items"),_.a("design:type",Object)],VD.prototype,"items",void 0);_.O([_.q(),_.a("design:type",Object)],VD.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],VD.prototype,"visible",void 0);
_.O([_.q(),_.a("design:type",Object)],VD.prototype,"miniGuideItems",void 0);_.O([_.q({selector:_.Q7T}),_.a("design:type",Object)],VD.prototype,"allVideosCount",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VD.prototype,"noLabels",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],VD.prototype,"frostedGlass",void 0);_.O([_.xs("visible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VD.prototype,"visibleChanged",null);
_.O([_.xs("data","allVideosCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VD.prototype,"dataChanged",null);_.O([_.xs("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VD.prototype,"activeEndpointChanged",null);VD=_.O([_.A({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],VD);
_.u(VD,"ytd-mini-guide-renderer",function(){if(JZg===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);JZg=V}V=JZg;return V},{mode:1});var h$V;var Pl2=/^[\x00-\x7F]+$/,DfV=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(DfV,_.M);_.vI.Object.defineProperties(DfV.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var V,l=_.A5((V=this.data)==null?void 0:V.handle);if(l)return _.pW("@"+l)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var V=_.A5(this.displayHandle),l,I=_.A5((l=this.data)==null?void 0:l.handleUrl);if(V&&I)return _.pW(I+V)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var V=_.A5(this.displayHandle);if(V&&!Pl2.test(V)){var l;return(l=this.data)==null?void 0:l.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var V=_.A5(this.displayHandleUrl),l,I=_.A5((l=this.data)==null?void 0:l.urlInfoText);if(V&&I)return _.pW(I+" "+V)}}});
var lV=DfV;_.O([_.q(),_.a("design:type",Object)],lV.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],lV.prototype,"displayHandle",null);_.O([_.Q("displayHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],lV.prototype,"displayHandleUrl",null);_.O([_.Q("displayHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],lV.prototype,"warningText",null);
_.O([_.Q("displayHandleUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],lV.prototype,"urlInfoTextWithUrl",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],lV.prototype,"darkerDarkTheme",void 0);lV=_.O([_.A({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],lV);
_.u(lV,"ytd-handles-claiming-confirm-dialog-content",function(){if(h$V!==void 0)return h$V;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return h$V=V},{mode:1});var ZB6;var SCb=function(){var V=_.M.apply(this,arguments)||this;V.okButtonOverride={style:"mono",type:"outline",size:"M"};return V};
_.t(SCb,_.M);SCb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
SCb.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
var Id=SCb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Id.prototype,"okButtonOverride",void 0);_.O([_.q(),_.a("design:type",Object)],Id.prototype,"data",void 0);Id=_.O([_.A({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Id);
_.u(Id,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(ZB6!==void 0)return ZB6;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return ZB6=V},{mode:1});var R$u;var QqB=/^[\x00-\x7F]+$/,cZV=function(){var V=_.M.apply(this,arguments)||this;V.isLoading=!1;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(cZV,_.M);cZV.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var V;this.selectedHandle=(V=this.handleInput)==null?void 0:V.value;this.onSelectedHandleChanged(this.selectedHandle);_.U4(this.hostElement,"yt-refit-popups-action")}};
_.vI.Object.defineProperties(cZV.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var V;return(V=this.data)==null?void 0:V.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.pW("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.pW(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!QqB.test(this.selectedHandle)){var V;return(V=this.data)==null?void 0:V.warningText}}}});
var Hr=cZV;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Hr.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Hr.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],Hr.prototype,"selectedHandle",void 0);_.O([_.q(),_.a("design:type",Object)],Hr.prototype,"isLoading",void 0);_.O([_.q(),_.a("design:type",Function)],Hr.prototype,"onSelectedHandleChanged",void 0);
_.O([_.Ij("#channel-handle-input"),_.a("design:type",Object)],Hr.prototype,"handleInput",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"handleUrlPrefix",null);_.O([_.Q("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"displayHandle",null);_.O([_.Q("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"displayHandleUrl",null);
_.O([_.Q("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hr.prototype,"warningText",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"darkerDarkTheme",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);Hr=_.O([_.A({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Hr);
_.u(Hr,"ytd-handles-claiming-edit-dialog-content",function(){if(R$u!==void 0)return R$u;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return R$u=V},{mode:1});var Wy6;var bBE=function(){var V=_.M.apply(this,arguments)||this;V.actionButtonOverride={style:"mono",type:"filled",size:"M"};V.cancelButtonOverride={style:"mono",type:"text",size:"M"};V.selectButtonDisabled=!1;V.isLoading=!1;V.hasSelectedHandleEventListener=!1;V.selectedHandleChanged=function(l){V.selectedHandle=l};
return V};
_.t(bBE,_.M);_.B=bBE.prototype;_.B.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.B.onDataChanged=function(){var V,l;this.selectedHandle=(l=_.y((V=this.data)==null?void 0:V.inputField,Kah))==null?void 0:l.handle};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.onCancel=function(){this.selectedHandle="";_.xB(this.hostElement,"yt-close-popup-action",[this.is])};
_.B.onSelectHandle=function(){var V=this;if(this.selectedHandle!==void 0){var l;((l=this.data)==null?void 0:l.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,H){if(H.newHandleUpdateStatus!==void 0&&H.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&H.newHandleUpdateStatus.errorMessage)_.oE(V.hostElement,_.A5(H.newHandleUpdateStatus.errorMessage)),
V.isLoading=!1;else{var T;if((T=V.data)==null?0:T.onChannelUpdateSuccess){I=V.data.onChannelUpdateSuccess;var x,n;if(H=(x=_.y(I,_.Ed))==null?void 0:(n=x.popup)==null?void 0:n.handlesClaimingConfirmDialogRenderer)H.handle=_.pW(V.selectedHandle);V.ytComponentBehavior.resolveCommand(I);_.xB(V.hostElement,"yt-close-popup-action",[V.is])}else V.isLoading=!1}},
onServerError:function(){var I;V.content&&((I=V.content)==null?0:I.handleInput)&&V.content.handleInput.validate();V.isLoading=!1;_.oE(V.hostElement,_.LT("TRY_AGAIN_LATER"))}}}))}};
_.B.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
var TI=bBE;TI.prototype.onDataChanged=TI.prototype.onDataChanged;TI.prototype.onSelectedHandleChanged=TI.prototype.onSelectedHandleChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],TI.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],TI.prototype,"actionButtonOverride",void 0);_.O([_.q(),_.a("design:type",Object)],TI.prototype,"cancelButtonOverride",void 0);_.O([_.q(),_.a("design:type",Object)],TI.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",String)],TI.prototype,"selectedHandle",void 0);_.O([_.q(),_.a("design:type",Object)],TI.prototype,"selectButtonDisabled",void 0);_.O([_.q(),_.a("design:type",Object)],TI.prototype,"isLoading",void 0);_.O([_.q(),_.a("design:type",Object)],TI.prototype,"hasSelectedHandleEventListener",void 0);_.O([_.q(),_.a("design:type",Object)],TI.prototype,"handleInput",void 0);
_.O([_.b("selectedHandle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TI.prototype,"onSelectedHandleChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TI.prototype,"onDataChanged",null);_.O([_.Ij("ytd-handles-claiming-edit-dialog-content"),_.a("design:type",Object)],TI.prototype,"content",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],TI.prototype,"ytRendererstamperBehavior",void 0);TI=_.O([_.A({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],TI);
_.u(TI,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Wy6!==void 0)return Wy6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Wy6=V},{mode:1});var qCg;var M$Y=function(){return _.M.apply(this,arguments)||this};
_.t(M$Y,_.M);_.vI.Object.defineProperties(M$Y.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null?0:V.handle){var l;return _.pW("@"+_.A5((l=this.data)==null?void 0:l.handle))}}}});
var Br=M$Y;_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Br.prototype,"formattedHandle",null);_.O([_.q(),_.a("design:type",Object)],Br.prototype,"data",void 0);Br=_.O([_.A({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Br);
_.u(Br,"ytd-handles-claiming-radio-option-renderer",function(){if(qCg!==void 0)return qCg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return qCg=V},{mode:1});var sqb;var pmE=/^[\x00-\x7F]+$/,xH=function(){var V=_.M.apply(this,arguments)||this;V.initialRadioIndex="-1";V.isLoading=!1;V.darkerDarkTheme=_.z("web_darker_dark_theme");V.maybeSubmitFeedback=function(){V.feedbackSurveyRenderer.submitSurvey()};
return V};
_.t(xH,_.M);xH.prototype.updateSelectedHandleIndexFromBinding=function(V){this.selectedRadioIndex=+V.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(V)};
xH.prototype.selectedHandleChanged=function(V){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var l;this.selectedHandle=(l=this.handleInput)==null?void 0:l.value;this.onSelectedHandleChanged(V)}};
_.vI.Object.defineProperties(xH.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var V;return this.ytRendererBehavior.getSimpleString((V=this.data)==null?void 0:V.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.pW("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.pW(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!pmE.test(this.selectedHandle)){var V;return(V=this.data)==null?void 0:V.warningText}}}});
var Uv=xH;_.O([_.q(),_.a("design:type",Object)],Uv.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Uv.prototype,"initialRadioIndex",void 0);_.O([_.q(),_.a("design:type",Number)],Uv.prototype,"selectedRadioIndex",void 0);_.O([_.q(),_.a("design:type",String)],Uv.prototype,"selectedHandle",void 0);_.O([_.q(),_.a("design:type",Object)],Uv.prototype,"isLoading",void 0);_.O([_.q(),_.a("design:type",Function)],Uv.prototype,"onSelectedHandleChanged",void 0);
_.O([_.q(),_.a("design:type",Function)],Uv.prototype,"onSelectedRadioIndexChanged",void 0);_.O([_.Ij("#channel-handle-input"),_.a("design:type",Object)],Uv.prototype,"handleInput",void 0);_.O([_.Ij("ytd-feedback-survey-renderer"),_.a("design:type",Object)],Uv.prototype,"feedbackSurveyRenderer",void 0);_.O([_.Q("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],Uv.prototype,"radioButtonLength",null);
_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uv.prototype,"handleUrlPrefix",null);_.O([_.Q("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uv.prototype,"displayHandle",null);_.O([_.Q("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uv.prototype,"displayHandleUrl",null);_.O([_.Q("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uv.prototype,"warningText",null);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Uv.prototype,"darkerDarkTheme",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);Uv=_.O([_.A({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Uv);
_.u(Uv,"ytd-handles-claiming-select-dialog-content",function(){if(sqb!==void 0)return sqb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return sqb=V},{mode:1});var AZY;var uyE=function(){var V=_.M.apply(this,arguments)||this;V.actionButtonOverride={style:"mono",type:"filled",size:"M"};V.cancelButtonOverride={style:"mono",type:"text",size:"M"};V.initialRadioIndex="-1";V.selectButtonDisabled=!1;V.isLoading=!1;V.selectedRadioIndexChanged=function(l){V.selectedRadioIndex=Number(l.detail.value)};
V.selectedHandleChanged=function(l){V.selectedHandle=l.detail.value};
V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(uyE,_.M);_.B=uyE.prototype;_.B.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.B.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.B.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.U4(this.hostElement,"yt-refit-popups-action")};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.xB(this.hostElement,"yt-close-popup-action",[this.is])};
_.B.onSelectHandle=function(){var V=this;if(this.selectedHandle!==void 0){var l;((l=this.data)==null?void 0:l.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,H){if(H.newHandleUpdateStatus!==void 0&&H.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&H.newHandleUpdateStatus.errorMessage)_.oE(V.hostElement,_.A5(H.newHandleUpdateStatus.errorMessage)),
V.isLoading=!1;else{var T;if((T=V.data)==null?0:T.onChannelUpdateSuccess){I=V.data.onChannelUpdateSuccess;H=_.y(I,_.Ed);var x;if(H==null?0:(x=H.popup)==null?0:x.handlesClaimingConfirmDialogRenderer)H.popup.handlesClaimingConfirmDialogRenderer.handle=_.pW(V.selectedHandle);V.ytComponentBehavior.resolveCommand(I);_.xB(V.hostElement,"yt-close-popup-action",[V.is])}else V.isLoading=!1}},
onServerError:function(){if(V.selectedRadioIndex===V.radioButtonLength){var I;V.content&&((I=V.content)==null?0:I.handleInput)&&V.content.handleInput.validate()}V.isLoading=!1;_.oE(V.hostElement,_.LT("TRY_AGAIN_LATER"))}}}))}};
_.B.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var V,l;this.selectedHandle=(V=this.content)==null?void 0:(l=V.handleInput)==null?void 0:l.value}else this.selectedRadioIndex>=0&&((V=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(V==null?void 0:V.handle):this.selectedHandle=void 0)};
_.B.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.B.getRadioItem=function(V){if(this.radioButtonLength>V&&V>=0)return _.y(this.data.radioButton[V],ZzE)};
_.vI.Object.defineProperties(uyE.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var V;return(((V=this.data)==null?void 0:V.radioButton)||[]).length}}});
var n_=uyE;n_.prototype.onSelectedHandleChanged=n_.prototype.onSelectedHandleChanged;n_.prototype.onSelectedHandleIndexChanged=n_.prototype.onSelectedHandleIndexChanged;n_.prototype.onDataChanged=n_.prototype.onDataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],n_.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],n_.prototype,"actionButtonOverride",void 0);_.O([_.q(),_.a("design:type",Object)],n_.prototype,"cancelButtonOverride",void 0);
_.O([_.q(),_.a("design:type",Object)],n_.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],n_.prototype,"initialRadioIndex",void 0);_.O([_.q(),_.a("design:type",Number)],n_.prototype,"selectedRadioIndex",void 0);_.O([_.q(),_.a("design:type",String)],n_.prototype,"selectedHandle",void 0);_.O([_.q(),_.a("design:type",Object)],n_.prototype,"selectButtonDisabled",void 0);_.O([_.q(),_.a("design:type",Object)],n_.prototype,"isLoading",void 0);
_.O([_.Q("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],n_.prototype,"radioButtonLength",null);_.O([_.Ij("ytd-handles-claiming-select-dialog-content"),_.a("design:type",Object)],n_.prototype,"content",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],n_.prototype,"onDataChanged",null);
_.O([_.b("selectedRadioIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],n_.prototype,"onSelectedHandleIndexChanged",null);_.O([_.b("selectedHandle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],n_.prototype,"onSelectedHandleChanged",null);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],n_.prototype,"darkerDarkTheme",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);n_=_.O([_.A({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],n_);
_.u(n_,"ytd-handles-claiming-select-dialog-renderer",function(){if(AZY!==void 0)return AZY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return AZY=V},{mode:1});var vo6;var OBB;var Clr=function(){return _.M.apply(this,arguments)||this};
_.t(Clr,_.M);Clr.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
var $H=Clr;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],$H.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$H.prototype,"data",void 0);$H=_.O([_.A({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],$H);
_.u($H,"ytd-hotkey-dialog-section-option-renderer",function(){if(OBB!==void 0)return OBB;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return OBB=V},{mode:1});var aeE;var fe2=function(){return _.M.apply(this,arguments)||this};
_.t(fe2,_.M);fe2.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
var dk=fe2;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],dk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],dk.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],dk.prototype,"data",void 0);dk=_.O([_.A({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],dk);
_.u(dk,"ytd-hotkey-dialog-section-renderer",function(){if(aeE!==void 0)return aeE;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return aeE=V},{mode:1});var goE=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(goE,_.M);goE.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
var wk=goE;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],wk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],wk.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wk.prototype,"darkerDarkTheme",void 0);wk=_.O([_.A({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],wk);
_.u(wk,"ytd-hotkey-dialog-content",function(){if(vo6!==void 0)return vo6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return vo6=V},{mode:1});var mfV;var iBV=function(){return _.M.apply(this,arguments)||this};
_.t(iBV,_.M);iBV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var V=document.querySelector("ytd-hotkey-dialog-content #scrollable");V&&(V.dialogElement=this.hostElement.parentElement)};
iBV.prototype.onCloseTap=function(){_.xB(this.hostElement,"yt-close-popup-action")};
var N8=iBV;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],N8.prototype,"data",void 0);N8=_.O([_.A({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],N8);
_.u(N8,"ytd-hotkey-dialog-renderer",function(){if(mfV!==void 0)return mfV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return mfV=V},{mode:1});var VvQ;var K_=function(){return _.M.apply(this,arguments)||this};
_.t(K_,_.M);K_.prototype.onYtServiceRequestError=function(){if(this.blocked){var V;var l=(V=this.data)==null?void 0:V.defaultServiceEndpoint}else{var I;l=(I=this.data)==null?void 0:I.toggledServiceEndpoint}var H;(l=(H=_.y(l,_.p63))==null?void 0:H.onFailureAction)&&this.ytComponentBehavior.resolveCommand(l);this.updateBlockState(!this.blocked)};
K_.prototype.onYtToggleButton=function(V){this.updateBlockState(V.detail.toggled)};
K_.prototype.updateBlockState=function(V){if(V!==this.blocked){var l=this.blockedEntityKey;l&&this.ytdReduxBehavior.dispatch(_.K6("blockStateEntity",l,{key:l,blocked:V}));this.set("data.isToggled",V)}};
_.vI.Object.defineProperties(K_.prototype,{blocked:{configurable:!0,enumerable:!0,get:function(){return this.blockStateEntity?(this.set("data.isToggled",this.blocked),!!this.blockStateEntity.blocked):!(!this.data||!this.data.isToggled)}}});
var jH=K_;jH.prototype.onYtToggleButton=jH.prototype.onYtToggleButton;jH.prototype.onYtServiceRequestError=jH.prototype.onYtServiceRequestError;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],jH.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],jH.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],jH.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],jH.prototype,"blockedEntityKey",void 0);
_.O([_.q({selectorArgs:["blockedEntityKey"],selector:function(V,l){return _.nW(V.entities,"blockStateEntity",l)}}),
_.a("design:type",Object)],jH.prototype,"blockStateEntity",void 0);_.O([_.Q("data","blockStateEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jH.prototype,"blocked",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],jH.prototype,"onYtServiceRequestError",null);
_.O([_.W("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],jH.prototype,"onYtToggleButton",null);jH=_.O([_.A({is:"ytd-block-button",disableElementRegistration:!0})],jH);
_.u(jH,"ytd-block-button",function(){if(VvQ!==void 0)return VvQ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return VvQ=V},
{mode:1});var lo6;var Io2;var HE6=function(){return _.M.apply(this,arguments)||this};
_.t(HE6,_.M);var YH=HE6;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],YH.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],YH.prototype,"data",void 0);YH=_.O([_.A({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],YH);
_.u(YH,"ytd-kids-blocklist-picker-item-renderer",function(){if(Io2!==void 0)return Io2;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Io2=V},{mode:1});var T1Y=function(){return _.M.apply(this,arguments)||this};
_.t(T1Y,_.M);T1Y.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
var L_=T1Y;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],L_.prototype,"data",void 0);L_=_.O([_.A({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],L_);
_.u(L_,"ytd-kids-blocklist-picker-content",function(){if(lo6!==void 0)return lo6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return lo6=
V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var B1h;var xb6=function(){var V=_.M.apply(this,arguments)||this;V.hasAnyRequestSucceeded=!1;V.hasAnyRequestFailed=!1;V.numPendingRequests=0;return V};
_.t(xb6,_.M);_.B=xb6.prototype;_.B.attached=function(){this.hostElement.setAttribute("dialog","")};
_.B.onDoneButtonTap=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.B.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.B.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.B.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.B.onPopupClosed=function(V){var l,I;if(((l=V.detail)==null?void 0:(I=l.popup)==null?void 0:I.is)==="tp-yt-paper-dialog"){var H;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((H=this.data)==null?0:H.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.CW(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
var eH=xb6;eH.prototype.onPopupClosed=eH.prototype.onPopupClosed;eH.prototype.onYtServiceRequestError=eH.prototype.onYtServiceRequestError;eH.prototype.onYtServiceRequestCompleted=eH.prototype.onYtServiceRequestCompleted;eH.prototype.onYtServiceRequestSent=eH.prototype.onYtServiceRequestSent;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],eH.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],eH.prototype,"data",void 0);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eH.prototype,"onYtServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eH.prototype,"onYtServiceRequestCompleted",null);
_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eH.prototype,"onYtServiceRequestError",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],eH.prototype,"onPopupClosed",null);eH=_.O([_.A({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],eH);
_.u(eH,"ytd-kids-blocklist-picker-renderer",function(){if(B1h!==void 0)return B1h;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return B1h=V},{mode:1});var UbV;var nKE;var kH=function(){return _.M.apply(this,arguments)||this};
_.t(kH,_.M);kH.prototype.setTip=function(V){var l=this;this.data&&(this.tip=zbg(FBb.getInstance(),V,this.data),_.Al(this,function(){_.B$(l.hostElement,"yt-refit")}))};
kH.prototype.clearTip=function(){this.tip=void 0};
kH.prototype.computeHidden=function(V){return!V};
var F_=kH;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],F_.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.a("design:type",Boolean)],F_.prototype,"hidden",void 0);_.O([_.q(),_.a("design:type",Object)],F_.prototype,"tip",void 0);F_=_.O([_.A({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],F_);
_.u(F_,"ytd-menu-popup-tip-renderer",function(){if(nKE!==void 0)return nKE;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);
return nKE=V},{mode:1});var $bY;var dbV=function(){var V=_.M.apply(this,arguments)||this;V.useIcons=!1;V.systemIcons=_.z("kevlar_system_icons");V.useListItemStyles=_.z("web_list_item_style_for_menu_items");return V};
_.t(dbV,_.M);_.B=dbV.prototype;_.B.onFocus=function(){var V;(V=_.h(this.hostElement).querySelector("tp-yt-paper-item"))==null||V.focus()};
_.B.onTap=function(){var V=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(V&&_.y(V,_.NJ))this.componentBehavior.resolveCommand(V),this.updateToggledStateInEntity();else if(V){this.componentBehavior.resolveCommand(V)||(_.z("web_ytd_toggle_menu_service_item_renderer_command_resolver_ks")?_.$B(this.hostElement,[V]):_.F().resolve(_.aw).resolveCommand(V,{form:{element:this.hostElement}}));var l;((l=_.y(V,_.j1))==null?void 0:l.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.B.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.B.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.B.updateToggledStateInEntity=function(){var V=this.data.toggleMenuServiceItemEntityKey,l=!this.data.isToggled;V&&this.ytdReduxBehavior.dispatch(_.K6("toggleMenuServiceItemEntity",V,{key:V,isToggled:l}))};
_.B.computeIcon=function(V,l,I){return(V=V?I:l)&&V.iconType?_.mj(V.iconType):""};
_.B.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.B.isIconActive=function(V){return!_.z("toggle_menu_active_icon_killswitch")&&V};
_.vI.Object.defineProperties(dbV.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((V=this.data)==null?0:V.isToggled)?(l=this.data)==null?void 0:l.toggledText:(I=this.data)==null?void 0:I.defaultText}}});
var X_=dbV;X_.prototype.toggledStateEntityChanged=X_.prototype.toggledStateEntityChanged;X_.prototype.onYtServiceRequestCompleted=X_.prototype.onYtServiceRequestCompleted;X_.prototype.onTap=X_.prototype.onTap;X_.prototype.onFocus=X_.prototype.onFocus;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],X_.prototype,"componentBehavior",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],X_.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],X_.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],X_.prototype,"useIcons",void 0);_.O([_.q({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.a("design:type",String)],X_.prototype,"icon",void 0);
_.O([_.q({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(V,l){return _.nW(V.entities,"toggleMenuServiceItemEntity",l)}}),
_.a("design:type",Object)],X_.prototype,"toggleMenuServiceItemEntity",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],X_.prototype,"systemIcons",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],X_.prototype,"useListItemStyles",void 0);_.O([_.W("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X_.prototype,"onFocus",null);
_.O([_.Q("data.isToggled"),_.a("design:type",Object),_.a("design:paramtypes",[])],X_.prototype,"toggleButtonText",null);_.O([_.W("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X_.prototype,"onTap",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X_.prototype,"onYtServiceRequestCompleted",null);
_.O([_.b("toggleMenuServiceItemEntity.isToggled","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X_.prototype,"toggledStateEntityChanged",null);X_=_.O([_.A({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],X_);
_.u(X_,"ytd-toggle-menu-service-item-renderer",function(){if($bY!==void 0)return $bY;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return $bY=V},{mode:1});var wZu;var N12=function(){return _.M.apply(this,arguments)||this};
_.t(N12,_.M);N12.prototype.onFocus=function(){var V;(V=_.h(this.hostElement).querySelector("tp-yt-paper-item"))==null||V.focus()};
_.vI.Object.defineProperties(N12.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.S6(this.data.iconUrl)}}});
var zI=N12;zI.prototype.onFocus=zI.prototype.onFocus;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zI.prototype,"rendererBehavior",void 0);_.O([_.R(_.Uf.YtEndpointBehavior),_.a("design:type",Object)],zI.prototype,"ytEndpointBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],zI.prototype,"data",void 0);_.O([_.W("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zI.prototype,"onFocus",null);
_.O([_.Q("data.iconUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],zI.prototype,"imageSource",null);zI=_.O([_.A({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],zI);
_.u(zI,"ytd-menu-custom-icon-item-renderer",function(){if(wZu!==void 0)return wZu;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return wZu=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});_.MR(_.Fg,"yt-list-item-view-model",{props:{data:_.b9,isMenuItem:_.b9,isCompact:_.b9,onTap:_.qR,trailingAccessory:_.b9,hideSelectionTextChevron:_.b9,disabled:_.b9,inPopup:_.b9,disableHorizontalPadding:_.b9,isOverlay:_.b9}});var K0g=function(){var V=_.M.apply(this,arguments)||this;V.disableBackdropFilter=_.z("web_disable_backdrop_filter");return V};
_.t(K0g,_.M);_.B=K0g.prototype;
_.B.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"}}}};
_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.B.computeAriaLabel=function(V){return V};
_.B.onPopupOpened=function(){this.items.selected=0;for(var V=_.U(_.h(this.items).children),l=V.next();!l.done;l=V.next())l.value.popupPositionTarget=this.positionTarget;if(V=this.popupTip||void 0)V.setTip(this.source||""),this.source=void 0;this.veData&&(V=_.oa())&&_.pT(V,[this.veData])};
_.B.onPopupClosed=function(){var V=this.popupTip||void 0;V&&V.clearTip()};
_.B.onIronActivate=function(V){this.shouldPersist(V)||_.xB(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(V=_.oa())&&_.uJ(V,this.veData)};
_.B.shouldPersist=function(V){var l,I;if(((l=V.detail)==null?void 0:l.selected)===void 0||(I=this.data)==null||!I.items)return!1;var H,T;return!((T=(H=this.data.items[V.detail.selected])==null?void 0:H.toggleMenuServiceItemRenderer)==null||!T.persistentOnMenuPopup)};
_.B.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(V){return V.menuNavigationItemRenderer?!!V.menuNavigationItemRenderer.icon:V.menuServiceItemRenderer?!!V.menuServiceItemRenderer.icon:V.menuConditionalServiceItemRenderer?!!V.menuConditionalServiceItemRenderer.icon:V.menuConditionalNavigationItemRenderer?!!V.menuConditionalNavigationItemRenderer.icon:V.toggleMenuServiceItemRenderer?!!V.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
var yD=K0g;yD.prototype.onPopupClosed=yD.prototype.onPopupClosed;yD.prototype.onPopupOpened=yD.prototype.onPopupOpened;_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],yD.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],yD.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],yD.prototype,"veData",void 0);_.O([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.a("design:type",String)],yD.prototype,"ariaLabel",void 0);_.O([_.q({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],yD.prototype,"useIcons",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],yD.prototype,"disableBackdropFilter",void 0);_.O([_.Ij("#items"),_.a("design:type",Object)],yD.prototype,"items",void 0);_.O([_.Ij("ytd-menu-popup-tip-renderer"),_.a("design:type",Object)],yD.prototype,"popupTip",void 0);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yD.prototype,"onPopupOpened",null);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yD.prototype,"onPopupClosed",null);yD=_.O([_.A({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],yD);
_.u(yD,"ytd-menu-popup-renderer",function(){if(UbV!==void 0)return UbV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return UbV=V},{mode:1});var jlQ;var Ycr=_.W1(function(V){V=_.Rj(V,{icon:void 0});var l=V.data;V=V.icon;var I=function(){return l().iconBadgeText},H={},T=_.ii("yt-spec-icon-badge-shape",function(){a:switch(l().iconBadgeType){case "notification":var x="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":x="yt-spec-icon-badge-shape--type-cart";break a;default:x=""}return x},function(){a:switch(l().iconBadgeStyle){case "overlay":var x="yt-spec-icon-badge-shape--style-overlay";
break a;default:x=""}return x},(H["yt-spec-icon-badge-shape--text-size-small"]=function(){var x=I();
return!!((x==null?0:x.length)&&x.length>2)},H));
return _.Y("yt-icon-badge-shape",null,_.Y(_.NS,{cond:V,then:function(x){return _.Y("div",{class:T},_.Y("div",{class:"yt-spec-icon-badge-shape__icon"},_.Y(_.dq,{icon:x})),_.Y(_.NS,{cond:I,then:function(n){return _.Y("div",{class:"yt-spec-icon-badge-shape__badge"},n)}}))}}))},"Mf");
Ycr.idomCompat=!0;_.MR(Ycr,"yt-icon-badge-shape",{props:{data:_.b9,icon:_.b9}});var L0I=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};V.unseenCount=0;V.isOverlay=!1;return V};
_.t(L0I,_.M);_.B=L0I.prototype;_.B.attached=function(){var V=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(l){V.onServiceWorkerMessage(l)})};
_.B.onDataChanged=function(){this.isAttached&&!this.JSC$18089_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18089_lastData=this.data};
_.B.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.B.computeIcon=function(){var V,l;return(V=this.data)==null?void 0:(l=V.icon)==null?void 0:l.iconType};
_.B.onServiceWorkerMessage=function(V){V.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.B.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.y(this.data.updateUnseenCountEndpoint,_.j1)&&_.y(this.data.updateUnseenCountEndpoint,_.j1).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.B.handleUpdateNotificationsUnseenCountAction=function(V){var l=this;V=_.y(V,X7V);V!=null&&V.unseenCount&&V.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(V.unseenCount),_.r0.addLowPriorityJob(function(){l.data.updateUnseenCountEndpoint&&l.ytComponentBehavior.resolveCommand(l.data.updateUnseenCountEndpoint)},V.timeoutMs))};
_.B.onClick=function(){_.B$(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var V=_.U4(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),l=this.data.menuRequest;V&&V.length===1&&V[0]?_.xB(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):l&&this.ytComponentBehavior.resolveCommand(l)};
_.B.handleTopbarMenuClosedAction=function(V){V==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.B.toggleIconState=function(V){this.iconButton&&(this.iconButton.pressed=V)};
_.B.sendUnseenCountRequest=function(V){var l=this;_.et(_.r0,function(){l.ytComponentBehavior.resolveCommand(V)})};
_.B.updateCountUI=function(V){this.set("unseenCount",V<9?V:"9+")};
_.vI.Object.defineProperties(L0I.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
var t$=L0I;t$.prototype.handleUpdateNotificationsUnseenCountAction=t$.prototype.handleUpdateNotificationsUnseenCountAction;t$.prototype.onDataChanged=t$.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],t$.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.u5),_.a("design:type",Object)],t$.prototype,"ytdOpenPopupBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],t$.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],t$.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],t$.prototype,"unseenCount",void 0);_.O([_.q(),_.a("design:type",Object)],t$.prototype,"isOverlay",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],t$.prototype,"showTooltips",void 0);_.O([_.Ij("yt-icon-button"),_.a("design:type",Object)],t$.prototype,"iconButton",void 0);
_.O([_.Q("unseenCount"),_.a("design:type",Object),_.a("design:paramtypes",[])],t$.prototype,"showNotificationCount",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],t$.prototype,"onDataChanged",null);_.O([_.W("yt-update-notifications-unseen-count-action"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],t$.prototype,"handleUpdateNotificationsUnseenCountAction",null);
t$=_.O([_.A({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],t$);
_.u(t$,"ytd-notification-topbar-button-renderer",function(){if(jlQ!==void 0)return jlQ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return jlQ=V},{mode:_.Cm("kevlar_poly_si_batch_j025")?1:2});var e9Q;var rk=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return V};
_.t(rk,_.M);rk.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}}}}}};
rk.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
rk.prototype.onDarkModeToggled=function(V){this.dark=V};
var GI=rk;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],GI.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],GI.prototype,"data",void 0);_.O([_.q({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],GI.prototype,"dark",void 0);
GI=_.O([_.A({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],GI);
_.u(GI,"yt-pdg-buy-flow-header-renderer",function(){if(e9Q!==void 0)return e9Q;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return e9Q=V},{mode:1});var kCE;var F0B;var XZE=function(){var V=_.M.apply(this,arguments)||this;V.immediateValue=0;V.isDarkTheme=!1;V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(XZE,_.M);_.B=XZE.prototype;_.B.created=function(){_.Mh.requestAvailability()};
_.B.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.B.dataChanged=function(){var V=_.h(this.hostElement).querySelector("#color-slider");V.immediateValue&&this.updateSliderKnobAndGradientStyles(V.immediateValue);this.data.notches[0].knobColorArgb&&_.i3(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.rP(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.h6("HTML_DIR")==="rtl"&&_.h(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.B.onSliderImmediateChange=function(){var V=_.h(this.hostElement).querySelector("#color-slider");V.dragging&&(V.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(V.immediateValue),this.updateSliderKnobAndGradientStyles(V.immediateValue)),this.updateSliderAria())};
_.B.onSliderChange=function(){var V=_.h(this.hostElement).querySelector("#color-slider");V.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(V.immediateValue),this.updateSliderKnobAndGradientStyles(V.immediateValue));this.updateSliderAria()};
_.B.updateSliderAria=function(){var V=_.h(this.hostElement).querySelector("#color-slider"),l=_.h(this.hostElement).querySelector("#color-slider");l=_.A5(this.data.notches[l.immediateValue].tierValue);_.$qc()&&_.B$(this.hostElement,"iron-announce",{text:l});V.setAttribute("aria-valuetext",l)};
_.B.updateSuperThanksSelectedTierEntity=function(V){if(V!==this.immediateValue){var l,I,H=this==null?void 0:(l=this.data)==null?void 0:(I=l.superThanksSelectedTierEntity)==null?void 0:I.key;H&&H.length>0&&this.ytdReduxBehavior.dispatch(_.K6("superThanksSelectedTierEntity",H,{key:H,index:V}))}};
_.B.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.B.updateSliderKnobAndGradientStyles=function(V){this.immediateValue=V;V=this.data.notches[V];if(V==null?0:V.knobColorArgb)var l={"--ytd-pdg-color-slider-knob-color":_.rP(V.knobColorArgb)};(V==null?0:V.linearGradientCssStyle)&&l!==null&&(l=Object.assign({},l,{"--ytd-pdg-color-slider-active-color":V==null?void 0:V.linearGradientCssStyle}));l!==null&&_.i3(this.hostElement,l)};
var Ev=XZE;Ev.prototype.onSliderChange=Ev.prototype.onSliderChange;Ev.prototype.onSliderImmediateChange=Ev.prototype.onSliderImmediateChange;Ev.prototype.dataChanged=Ev.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],Ev.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Ev.prototype,"immediateValue",void 0);_.O([_.q(),_.a("design:type",Number)],Ev.prototype,"maxMarkers",void 0);
_.O([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:$7E}),_.a("design:type",Object)],Ev.prototype,"superThanksSelectedTierEntity",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Ev.prototype,"isDarkTheme",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Ev.prototype,"ytdReduxBehavior",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ev.prototype,"dataChanged",null);
_.O([_.W("immediate-value-change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ev.prototype,"onSliderImmediateChange",null);_.O([_.W("change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ev.prototype,"onSliderChange",null);Ev=_.O([_.A({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Ev);
_.u(Ev,"ytd-pdg-color-slider-renderer",function(){if(F0B!==void 0)return F0B;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return F0B=V},{mode:1});var z9E;var ya6;var J$=null;
_.Ne({is:"ytd-comment-input",_template:function(){if(ya6!==void 0)return ya6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ya6=V},
behaviors:[_.za1.YtHostElementBehavior,_.yn,_.DX.YtComponentBehavior,_.Cb.YtRendererstamperBehavior,_.W0v.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 _.Q2}},
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",_.VP(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;_.KD();this.focus()},
detached:function(){document.removeEventListener("tap",_.VP(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(V){V=V.detail;V=V.isCustomEmoji?V.shortcuts[0]:V.emojiId;var l=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(l,V);this.maybeUpdateTextDirection_();_.B$(this.hostElement,"input")},
getInputRange_:function(){var V=_.zK();if(V){V=V.getBrowserRangeObject();for(var l=V.commonAncestorContainer;l;){if(l===this.getEditableTextArea_())return V;l=l.parentNode}}V=this.getEditableTextArea_();V=_.cJ(V,V.childNodes.length);V.select();return V.getBrowserRangeObject()},
insertTextWithEmojis_:function(V,l,I){(l=this.emojiManager.createDocumentFragment(l,!0,!1,I===void 0?!0:I))&&l.childNodes.length!==0&&(V.collapsed||V.deleteContents(),I=l.lastChild,V.insertNode(l),_.jjZ(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var V=_.zK();if(V){var l=V.JSC$9102_getStartNode(),I=V.JSC$9102_getEndNode();if(fVB(l)&&fVB(I)){var H=V.JSC$9102_getStartOffset(),T;if(_.Yv&&l.nodeType===Node.ELEMENT_NODE&&(T=_.IC0(l)))_.cJ(T,0).select();else{T=im(l)?l:_.Rg(l,im);var x=im(I)?I:_.Rg(I,im);if(T||x)if(V.isCollapsed()){if(l.nodeType===Node.TEXT_NODE){V=!0;H===l.length&&(V=!1);if(J$==="end"||J$==="right")V=!1;l=l.parentNode;V=[].concat(_.oI(l.parentNode.childNodes)).indexOf(l)+(V?0:1);_.cJ(l.parentNode,V).select()}}else T?
T.previousSibling&&T.previousSibling.length>0?_.WJ(I,V.JSC$9102_getEndOffset(),T.previousSibling,T.previousSibling.length-1).select():(l=document.createTextNode("\u200b"),T.parentNode.insertBefore(l,T),_.WJ(I,V.JSC$9102_getEndOffset(),l,0).select()):x&&(x.nextSibling&&x.nextSibling.length>0?_.WJ(l,V.JSC$9102_getStartOffset(),x.nextSibling,1).select():(I=document.createTextNode("\u200b"),x.parentNode.insertBefore(I,x.nextSibling),_.WJ(l,V.JSC$9102_getStartOffset(),I,I.length).select()));J$=null}}else J$=
null}else J$=null},
leftKeyPressed_:function(){J$="left"},
rightKeyPressed_:function(){J$="right"},
endKeyPressed_:function(){J$="end"},
maybeDeleteChip_:function(){var V=INV(!0);if(V){var l=_.zK(),I=l.JSC$9102_getStartNode();l=l.JSC$9102_getStartOffset();_.DE(I,l,V,V.childNodes.length).select()}},
maybeBackspaceChip_:function(){var V=INV(!1);if(V){var l=_.zK(),I=l.JSC$9102_getStartNode();l=l.JSC$9102_getStartOffset();_.DE(I,l,V,0).select()}},
maybeBackspaceChipWordMode_:function(V){var l=_.zK();if(l.isCollapsed()){var I=l.JSC$9102_getStartNode();l=l.JSC$9102_getStartOffset();var H=Hu2(I,l,!0);H&&(_.DE(I,l,H,0).select(),document.execCommand("delete"),V.preventDefault(),V.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(V){var l=_.zK();if(l.isCollapsed()){var I=l.JSC$9102_getStartNode();l=l.JSC$9102_getStartOffset();var H=Hu2(I,l,!1);H&&(_.DE(I,l,H,H.childNodes.length).select(),document.execCommand("delete"),V.preventDefault(),V.stopImmediatePropagation())}},
onContentClick:function(V){V.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(V){V.defaultPrevented||V.currentTarget.tagName==="YTD-COMMENT-INPUT"&&im(V.target)&&V.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.h(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.h(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(V,l){V=mUP(V,this.emojiManager,l).cloneNode(!0);for(l=V.firstChild;l;)if(l.nodeType!==1)l=l.nextSibling;else switch(l.tagName){case "BR":var I=_.Rk();_.dVW(I,l);l=I.nextSibling;break;case "DIV":(I=l.lastChild)&&l.nextSibling&&_.b_(_.Rk(),I);l.previousSibling&&(l.previousSibling.nodeType===1||l.previousSibling.nodeType===3&&!l.previousSibling.textContent.endsWith("\n"))&&_.Wi(_.Rk(),l);I&&I.nodeName==="BR"&&_.Yw(I);I=l;l.hasChildNodes()?(l=l.firstChild,
_.who(I)):(l=l.nextSibling,_.Yw(I));break;default:l=l.nextSibling}return TUb(V)},
setTextAreaValue:function(V){V||(V="");var l=this.getEditableFormattedString_();l.text="";this.getEditableTextArea_().innerText="";typeof V==="string"&&(V={runs:[{text:V}]});l.text=V},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();J$=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var V=this.getEditableTextArea_();V&&(_.cJ(V,V.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.h6("HTML_DIR")==="rtl"){var V=this.getEditableTextArea_(),l=this.getTextAreaValue()!==""?"auto":"rtl";V.setAttribute("dir",l)}},
handleInputEvent_:function(){var V=null;if(this.isEmojiButtonDisplayed){var l=this.getInputRange_();l&&(V=this.emojiInput.retrieveTextBeforeRange(l))}this.insertText_(V,!0);this.updateCharCount_();V=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=V.scrollHeight>V.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var V=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:V})},
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(V){this.isEmojiButtonDisplayed&&(V.preventDefault(),V.stopImmediatePropagation(),V=V.clipboardData.getData("text/plain"),this.insertText_(V,!1,!1),_.B$(this.hostElement,"input"))},
insertText_:function(V,l,I){l=l===void 0?!1:l;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&V){var H=this.getInputRange_().cloneRange();this.emojiManager&&H&&(l&&this.emojiInput.offsetStartOfRangeBy(H,V.length),this.insertTextWithEmojis_(H,V,I),gvP(this.getEditableTextArea_().lastChild)||(H=this.getInputRange_().cloneRange()),H&&(this.emojiInput.updateSuggestions(H,V),this.updateSuggestionOffset_(H)))}},
getSimpleString:_.A5,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(V){return V?"focused":"not-focused"},
computePlaceholderText_:function(V){return this.getSimpleString(V)},
computeEditableText_:function(V){return this.getSimpleString(V)},
onPrefilledContentDismissed_:function(V){V.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(V,l){V?this.fire("yt-autonav-pause-focus"):l!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(V){var l=this.getEditableTextArea_();[].concat(_.oI(V.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(H){l.appendChild(document.createTextNode(H))})});
V.preventDefault()},
preventDefault_:function(V){V.preventDefault()},
onSuggestionInsert_:function(V){this.insertTextWithEmojis_(V.detail.range,V.detail.text)},
onEmojiSuggestionClick_:function(V){this.emojiInput.insertSuggestion(V.detail)},
updateSuggestionOffset_:function(V){if(this.emojiInput&&_.h(this.emojiInput).querySelector("#dropdown")){var l=this.getEditableTextArea_().getBoundingClientRect().bottom,I=V.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(l-I)+5;l=this.getEditableTextArea_().getBoundingClientRect().left;V=V.getBoundingClientRect().left-l;_.h(this.emojiInput).querySelector("#dropdown").style.marginLeft=V+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.h2("yt-post"));return this.localStorage}});var tvI=function(){var V=_.M.apply(this,arguments)||this;V.currentCommentOptionIndex=0;V.isEmojiPickerDisplayed=!1;V.emojiManager=_.Q2;V.isUgcEmpty=!1;V.userGeneratedCommentChangedHandler=function(){_.B$(V.hostElement,"ytd-pdg-user-generated-comment-changed");V.isEmojiYtdCommentInputEnabled&&(V.isUgcEmpty=!V.ytdCommentInputEl.getTextAreaValue())};
V.pasteHandler=function(l){l.preventDefault();l.stopImmediatePropagation();var I;if(l=(I=l.clipboardData)==null?void 0:I.getData("text/plain"))I=document.getSelection().getRangeAt(0),I.collapsed||I.deleteContents(),l=document.createTextNode(l),I.insertNode(l),I.selectNodeContents(l),I.collapse(!1),l=window.getSelection(),l.removeAllRanges(),l.addRange(I)};
V.onDocumentClick=function(l){if(V.isEmojiPickerDisplayed){var I,H,T;!(l.target instanceof Node)||(I=l.composedPath())!=null&&I.includes(V.editableTextEl)||(H=l.composedPath())!=null&&H.includes(V.emojiButtonEl)||(T=l.composedPath())!=null&&T.includes(V.emojiPickerEl)||(V.isEmojiPickerDisplayed=!1)}};
return V};
_.t(tvI,_.M);_.B=tvI.prototype;_.B.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.B.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.B.detached=function(){var V;(V=this.contentEl)==null||V.removeEventListener("input",this.userGeneratedCommentChangedHandler);var l;(l=this.contentEl)==null||l.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.B.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.B.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var V;this.contentEl.textContent=this.rendererBehavior.getSimpleString((V=this.data)==null?void 0:V.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.B.reloadEmojis=function(){this.emojiPickerEl&&_.y(this.emojiPicker,_.VS0)&&this.emojiPickerEl.updateEmojiCategories()};
_.B.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.i3(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.B.handleBackgroundColorStyling=function(){var V;if((V=this.currentCommentOption)==null?0:V.commentBackgroundColorArgb){var l;_.i3(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.rP((l=this.currentCommentOption)==null?void 0:l.commentBackgroundColorArgb)})}else _.i3(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.B.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var V;(V=this.contentEl)==null||V.focus()}};
_.B.onEditButtonClick=function(V){var l=document.getSelection();l&&this.contentEl&&(V.stopPropagation(),V.preventDefault(),l.selectAllChildren(this.contentEl),l.collapseToEnd())};
_.B.onContentDrop=function(V){var l=this;if(V.dataTransfer){V=_.U(V.dataTransfer.items);for(var I=V.next();!I.done;I=V.next())I=I.value,I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(H){var T;(T=l.contentEl)==null||T.appendChild(document.createTextNode(H))})}};
_.B.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.B.getUserGeneratedCommentText=function(){var V,l=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(V=this.contentEl)==null?void 0:V.textContent;return l?l.trim():""};
_.B.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.B.onEmojiSelect=function(V){this.ytdCommentInputEl.onEmojiSelect(V)};
_.vI.Object.defineProperties(tvI.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.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 V;return!((V=this.currentCommentOption)==null||!V.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var V;if(_.y((V=this.currentCommentOption)==null?void 0:V.chipRenderer,_.d$W)){var l;return _.y((l=this.currentCommentOption)==null?void 0:l.chipRenderer,_.d$W)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var V,l;return((V=this.data)==null?0:V.commentOptionRenderers)?_.y((l=this.data)==null?void 0:l.commentOptionRenderers[this.superThanksSelectedTierEntity.index],fmE):void 0}var I,H;return((I=this.data)==null?0:I.commentOptionRenderers)?_.y((H=this.data)==null?void 0:H.commentOptionRenderers[this.currentCommentOptionIndex],fmE):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var V;return this.rendererBehavior.getSimpleString((V=this.data)==null?void 0:V.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var V;return this.rendererBehavior.getSimpleString((V=this.data)==null?void 0:V.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=_.y((V=this.data)==null?void 0:V.commentDialog,_.axa))==null?void 0:l.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=_.y((V=this.data)==null?void 0:V.commentDialog,_.axa))==null?void 0:l.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=_.y((V=this.data)==null?void 0:V.commentDialog,_.axa))==null?void 0:l.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(l=_.y((V=this.data)==null?void 0:V.commentDialog,_.axa))==null?void 0:l.emojiPicker;if(!_.y(I,_.VS0)||!_.y(I,_.VS0).categories)return!1;V=function(x){return x.emojiPickerCategoryRenderer?x.emojiPickerCategoryRenderer.emojiIds&&x.emojiPickerCategoryRenderer.emojiIds.length>0:x.emojiPickerUpsellCategoryRenderer?x.emojiPickerUpsellCategoryRenderer.emojis&&x.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var H,T;return((H=_.y(I,_.VS0))==null?0:(T=H.categories)==null?0:T.find(V))?!0:!1}}});
var od=tvI;od.prototype.onEmojiSelect=od.prototype.onEmojiSelect;od.prototype.dataChanged=od.prototype.dataChanged;od.prototype.currentCommentOptionChanged=od.prototype.currentCommentOptionChanged;_.O([_.R(_.DS),_.a("design:type",Object)],od.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],od.prototype,"rendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.Ij("#content-dom-if"),_.a("design:type",_.j5)],od.prototype,"contentDomIfEl",void 0);_.O([_.Ij("#content-no-emojis"),_.a("design:type",HTMLElement)],od.prototype,"contentEl",void 0);_.O([_.Ij("#container"),_.a("design:type",HTMLElement)],od.prototype,"containerEl",void 0);_.O([_.Ij("#comment-chip-container"),_.a("design:type",HTMLElement)],od.prototype,"paidCommentChipContainerEl",void 0);_.O([_.Ij("#text-input"),_.a("design:type",HTMLElement)],od.prototype,"editableTextEl",void 0);
_.O([_.Ij("#emoji-button"),_.a("design:type",HTMLElement)],od.prototype,"emojiButtonEl",void 0);_.O([_.Ij("#emoji-picker > yt-emoji-picker-renderer"),_.a("design:type",Object)],od.prototype,"emojiPickerEl",void 0);_.O([_.Ij("#text-input > ytd-comment-input"),_.a("design:type",Object)],od.prototype,"ytdCommentInputEl",void 0);_.O([_.q(),_.a("design:type",Object)],od.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],od.prototype,"currentCommentOptionIndex",void 0);
_.O([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:$7E}),_.a("design:type",Object)],od.prototype,"superThanksSelectedTierEntity",void 0);_.O([_.q(),_.a("design:type",Object)],od.prototype,"isEmojiPickerDisplayed",void 0);_.O([_.q(),_.a("design:type",Object)],od.prototype,"emojiManager",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],od.prototype,"isUgcEmpty",void 0);
_.O([_.b("currentCommentOption"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],od.prototype,"currentCommentOptionChanged",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],od.prototype,"dataChanged",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],od.prototype,"isEmojiYtdCommentInputEnabled",null);
_.O([_.Q("data.title"),_.a("design:type",Object),_.a("design:paramtypes",[])],od.prototype,"title",null);_.O([_.Q("data.authorText"),_.a("design:type",Object),_.a("design:paramtypes",[])],od.prototype,"channelName",null);_.O([_.Q("data.commentOptionRenderers","currentCommentOption"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],od.prototype,"shouldShowPaidCommentChipRenderer",null);
_.O([_.Q("data.commentOptionRenderers","currentCommentOption"),_.a("design:type",Object),_.a("design:paramtypes",[])],od.prototype,"paidCommentChipRenderer",null);_.O([_.Q("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],od.prototype,"currentCommentOption",null);
_.O([_.Q("data.defaultCommentText","superThanksSelectedTierEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],od.prototype,"commentText",null);_.O([_.Q("data.placeholderText"),_.a("design:type",Object),_.a("design:paramtypes",[])],od.prototype,"placeholderText",null);_.O([_.Q("data.commentDialog.commentDialogRenderer.editableText"),_.a("design:type",Object),_.a("design:paramtypes",[])],od.prototype,"editableText",null);
_.O([_.Q("data.commentDialog.commentDialogRenderer.emojiButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],od.prototype,"emojiButton",null);_.O([_.Q("data.commentDialog.commentDialogRenderer.emojiPicker"),_.a("design:type",Object),_.a("design:paramtypes",[])],od.prototype,"emojiPicker",null);
_.O([_.Q("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],od.prototype,"isEmojiButtonDisplayed",null);_.O([_.W("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],od.prototype,"onEmojiSelect",null);od=_.O([_.A({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],od);
_.u(od,"ytd-pdg-comment-preview-renderer",function(){if(z9E!==void 0)return z9E;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return z9E=V},{mode:2});var rab;var GCh=function(){var V=_.M.apply(this,arguments)||this;V.selected=!1;return V};
_.t(GCh,_.M);_.B=GCh.prototype;_.B.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.B.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.B.dataChanged=function(){this.data&&(_.aQ(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.i3(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.rP(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.rP(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.B.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.B.onClick=function(){this.logClick()};
_.B.onKeyboardSelect=function(){_.B$(this.hostElement,"tap");this.onClick()};
_.B.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var h$=GCh;h$.prototype.onClick=h$.prototype.onClick;h$.prototype.selectedChanged=h$.prototype.selectedChanged;h$.prototype.dataChanged=h$.prototype.dataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],h$.prototype,"componentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.yn),_.a("design:type",Object)],h$.prototype,"ironA11yKeysBehavior",void 0);
_.O([_.R(_.JT),_.a("design:type",Object)],h$.prototype,"ironSelectableBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],h$.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],h$.prototype,"shownThumbnail",void 0);_.O([_.q(),_.a("design:type",Object)],h$.prototype,"basePriceText",void 0);_.O([_.q(),_.a("design:type",Object)],h$.prototype,"purchaseCommand",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],h$.prototype,"selected",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h$.prototype,"dataChanged",null);_.O([_.b("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h$.prototype,"selectedChanged",null);_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h$.prototype,"onClick",null);
h$=_.O([_.A({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],h$);
_.u(h$,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(rab!==void 0)return rab;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return rab=V},{mode:1});var EKu=function(){var V=_.M.apply(this,arguments)||this;V.selectedItemIndex=0;V.buyButtonDisabled=!1;return V};
_.t(EKu,_.M);_.B=EKu.prototype;
_.B.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]]"}}}}}};
_.B.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var V;var l=(V=_.y(this.data.colorSlider,amg))==null?void 0:V.notches[this.selectedItemIndex].purchaseCommand}else{var I;l=(I=_.y(this.data.selectableItemButtons[this.selectedItemIndex],m6P))==null?void 0:I.purchaseCommand}if(l){V=_.y(l,_.E6B);V.productData||(V.productData={});var H;V.productData={pdgData:{commentMessageText:(H=this.commentPreviewRenderer)==null?void 0:H.getUserGeneratedCommentText()}};
_.B$(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(l)}}};
_.B.dataChanged=function(){if(this.data){_.Q2.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.XjZ(_.Q2,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Q2.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var V;this.buyButtonDisabled=!((V=_.y(this.data.commentPreview,gru))==null||!V.placeholderText);this.updatePriceSelectorStatus();var l;if((l=this.data)==null?0:l.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;V=[];this.data.preloadImages&&(V=this.data.preloadImages);
V=V.map(function(I){return _.sI(I.thumbnails,1920)});
V=_.U(V);for(l=V.next();!l.done;l=V.next())(l=l.value)&&_.Plw(l).thenCatch(function(){_.hF(Error("ml"))})}};
_.B.superThanksSelectedTierEntityChanged=function(){var V;(this==null?void 0:(V=this.superThanksSelectedTierEntity)==null?void 0:V.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.B.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.B.updatePriceSelectorStatus=function(){this.isColorSlider?(_.h(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.h(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.h(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.h(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.B.closeBuyFlow=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.B.onUserGeneratedContentChanged=function(){var V;this.buyButtonDisabled=!((V=this.commentPreviewRenderer)==null?0:V.getUserGeneratedCommentText())};
_.B.updateSelectedItemIndexFromBinding=function(V){this.selectedItemIndex=V.detail.value};
_.vI.Object.defineProperties(EKu.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var V;return!((V=this.data)==null||!V.disclaimerText)}}});
var Pr=EKu;Pr.prototype.onUserGeneratedContentChanged=Pr.prototype.onUserGeneratedContentChanged;Pr.prototype.closeBuyFlow=Pr.prototype.closeBuyFlow;Pr.prototype.selectedItemIndexChanged=Pr.prototype.selectedItemIndexChanged;Pr.prototype.superThanksSelectedTierEntityChanged=Pr.prototype.superThanksSelectedTierEntityChanged;Pr.prototype.dataChanged=Pr.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Pr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Pr.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Pr.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Pr.prototype,"selectedItemIndex",void 0);_.O([_.q(),_.a("design:type",Boolean)],Pr.prototype,"isColorSlider",void 0);
_.O([_.q(),_.a("design:type",Object)],Pr.prototype,"buyButtonDisabled",void 0);_.O([_.q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:$7E}),_.a("design:type",Object)],Pr.prototype,"superThanksSelectedTierEntity",void 0);_.O([_.Ij("ytd-pdg-comment-preview-renderer"),_.a("design:type",Object)],Pr.prototype,"commentPreviewRenderer",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Pr.prototype,"ytdReduxBehavior",void 0);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pr.prototype,"dataChanged",null);_.O([_.b("superThanksSelectedTierEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pr.prototype,"superThanksSelectedTierEntityChanged",null);_.O([_.b("selectedItemIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pr.prototype,"selectedItemIndexChanged",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pr.prototype,"closeBuyFlow",null);_.O([_.W("ytd-pdg-user-generated-comment-changed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pr.prototype,"onUserGeneratedContentChanged",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Pr.prototype,"isDisclaimerTextShown",null);
Pr=_.O([_.A({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Pr);
_.u(Pr,"yt-super-vod-buy-flow-content-renderer",function(){if(kCE!==void 0)return kCE;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return kCE=V},{mode:1});var JaI;var oKE=function(){var V=_.M.apply(this,arguments)||this;V.lottieAnimationRef={};return V};
_.t(oKE,_.M);_.B=oKE.prototype;_.B.created=function(){_.Mh.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.VP(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.B.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.B$(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.B.detached=function(){this.autoCloseJobId&&_.r0.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.VP(this,this.onPopupIronOverlayOpened))};
_.B.dataChanged=function(){var V=this;this.data&&this.data.autoCloseDelay&&(_.xB(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.vX(_.r0,function(){V.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.i3(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.B.onDOMLoadedLottie=function(){var V=this,l,I,H=Number((l=this.data)==null?void 0:(I=l.autoCloseDelay)==null?void 0:I.seconds)||0;this.fadeOutJobId=_.vX(_.r0,function(){V.lottiePlayerEl.classList.add("fadeout")},(H-.25)*1E3);
this.autoCloseJobId=_.vX(_.r0,function(){V.closePopup()},H*1E3)};
_.B.openPopup=function(){this.ironOverlayBehavior.open()};
_.B.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.xB(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.d6(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&(_.z("web_ytd_desktop_image_overlay_renderer_command_resolver_ks")?_.$B(this.hostElement,[this.data.onCloseSurveyCommand]):_.F().resolve(_.aw).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}})),
this.autoCloseJobId&&_.r0.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.r0.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&this.lottiePlayerEl.classList.remove("fadeout"))};
_.B.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var V,l;(V=this.lottieAnimationRef)==null||(l=V.lottieEl)==null||l.destroy();V=this.data.lottie;var I,H;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:V.url+"_"+Math.random(),path:V.url,autoplay:!0,loop:(H=(I=V.settings)==null?void 0:I.loop)!=null?H:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.vI.Object.defineProperties(oKE.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var V,l;return!!((V=this.data)==null?0:(l=V.lottie)==null?0:l.url)}}});
var uV=oKE;uV.prototype.maybeInitializeLottie=uV.prototype.maybeInitializeLottie;uV.prototype.dataChanged=uV.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],uV.prototype,"rendererBehavior",void 0);_.O([_.R(_.vd),_.a("design:type",Object)],uV.prototype,"ironOverlayBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],uV.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],uV.prototype,"lottiePlayerProps",void 0);
_.O([_.q(),_.a("design:type",Object)],uV.prototype,"lottieAnimationRef",void 0);_.O([_.Ij("ytd-lottie-player"),_.a("design:type",HTMLElement)],uV.prototype,"lottiePlayerEl",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uV.prototype,"dataChanged",null);_.O([_.Q("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uV.prototype,"hasLottieAnimation",null);
_.O([_.b("data.lottie.url"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uV.prototype,"maybeInitializeLottie",null);uV=_.O([_.A({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],uV);
_.u(uV,"ytd-desktop-image-overlay-renderer",function(){if(JaI!==void 0)return JaI;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return JaI=V},{mode:1});var h9h;var PAB=function(){return _.M.apply(this,arguments)||this};
_.t(PAB,_.M);_.B=PAB.prototype;_.B.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"}}}}};
_.B.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",_.VP(this,this.closePopup))};
_.B.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.VP(this,this.closePopup))};
_.B.dataChanged=function(){_.U4(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.y(this.data.header,CLE)&&(this.hasBackgroundBanner=!!_.y(this.data.header,CLE).backgroundBanner)};
_.B.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.VP(this,this.closePopup))};
_.B.closePopup=function(){this.data&&this.data.onCloseCommand&&_.$B(this.hostElement,[this.data.onCloseCommand])};
var vr=PAB;vr.prototype.handleBuyflowSelectionSubmitted=vr.prototype.handleBuyflowSelectionSubmitted;vr.prototype.dataChanged=vr.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],vr.prototype,"data",void 0);
_.O([_.q({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],vr.prototype,"hasBackgroundBanner",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vr.prototype,"dataChanged",null);_.O([_.W("yt-pdg-buy-flow-selection-submitted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vr.prototype,"handleBuyflowSelectionSubmitted",null);
vr=_.O([_.A({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],vr);
_.u(vr,"ytd-pdg-buy-flow-renderer",function(){if(h9h!==void 0)return h9h;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return h9h=V},{mode:1});var Db6;var ZEr=function(){var V=_.M.apply(this,arguments)||this;V.isOpen=!1;V.isPlaylistCreated=!1;return V};
_.t(ZEr,_.M);_.B=ZEr.prototype;_.B.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.B.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.B$(this.hostElement,"yt-refit")};
_.B.onCreateTap=function(){var V=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.$B(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(l,I){if(!_.z("killswitch_ep_in_create_playlist_response")&&(I==null?0:I.actions))for(l=_.U(I.actions),I=l.next();!I.done;I=l.next())I=I.value,_.y(I,_.RK)&&V.ytComponentBehavior.resolveCommand(I)}}]),this.isPlaylistCreated=!0)};
_.B.onKeydown=function(V){if(V.keyCode===13)this.onCreateTap()};
_.B.onServiceRequestCompleted=function(V){V.stopPropagation();_.xB(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.B.computePrivacyBadge=function(V){return V?[{metadataBadgeRenderer:V}]:[]};
var Ov=ZEr;Ov.prototype.onServiceRequestCompleted=Ov.prototype.onServiceRequestCompleted;Ov.prototype.onKeydown=Ov.prototype.onKeydown;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Ov.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ov.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Ov.prototype,"isOpen",void 0);
_.O([_.q(),_.a("design:type",Object)],Ov.prototype,"isPlaylistCreated",void 0);_.O([_.q({value:{REQUIRED_LABEL:_.LT("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.LT("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.a("design:type",Object)],Ov.prototype,"addToStrings",void 0);_.O([_.q({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.a("design:type",Array)],Ov.prototype,"privacyBadge",void 0);
_.O([_.Ij("#privacy-input"),_.a("design:type",Object)],Ov.prototype,"privacyInput",void 0);_.O([_.Ij("#name-input"),_.a("design:type",Object)],Ov.prototype,"nameInput",void 0);_.O([_.W("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],Ov.prototype,"onKeydown",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ov.prototype,"onServiceRequestCompleted",null);
Ov=_.O([_.A({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Ov);
_.u(Ov,"ytd-add-to-playlist-create-renderer",function(){if(Db6!==void 0)return Db6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Db6=V},{mode:1});var ScQ;var R9Q;var C_=function(){var V=_.M.apply(this,arguments)||this;V.transferState="TRANSFER_STATE_UNKNOWN";return V};
_.t(C_,_.M);C_.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
C_.prototype.onCheckboxChange=function(V){var l=this;this.data&&_.Go(this,"yt-playlist-checkbox-changed",function(){var I=_.qv(V).checked?l.data.addToPlaylistServiceEndpoint:l.data.removeFromPlaylistServiceEndpoint;I&&(_.z("web_ytd_playlist_add_to_option_renderer_command_resolver_ks")?_.$B(l.hostElement,[I]):_.F().resolve(_.aw).resolveCommand(I,{form:{element:l.hostElement}}));_.z("dl_playlist_killswitch")||l.transferState!=="TRANSFER_STATE_UNKNOWN"&&l.transferState!=="TRANSFER_STATE_FAILED"&&l.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:l.data.playlistId,
action:"ACTION_SYNC"}})},100)};
C_.prototype.computeIconType=function(V){return V?"yt-icons:"+V.toLowerCase():null};
var ad=C_;ad.prototype.dataChanged=ad.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ad.prototype,"data",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],ad.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ad.prototype,"ytComponentBehavior",void 0);_.O([_.Ij("#checkbox"),_.a("design:type",HTMLInputElement)],ad.prototype,"checkbox",void 0);
_.O([_.q({selector:_.Zw,selectorArgs:["data.playlistId"]}),_.a("design:type",String)],ad.prototype,"transferState",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ad.prototype,"dataChanged",null);ad=_.O([_.A({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],ad);
_.u(ad,"ytd-playlist-add-to-option-renderer",function(){if(R9Q!==void 0)return R9Q;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return R9Q=V},{mode:1});_.m5(BUg);_.aN(BUg,"ytd-menu-title-renderer",{propNames:["data"]});var QlP=function(){var V=_.M.apply(this,arguments)||this;V.addToStrings={ADD_TO_DROPDOWN_LABEL:_.LT("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};V.closeButtonAriaLabel=_.LT("SBOX_INAPPROPRIATE_CANCEL");V.dialog=_.z("desktop_add_to_playlist_renderer_dialog_popup");return V};
_.t(QlP,_.M);_.B=QlP.prototype;_.B.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"}}}};
_.B.onPopupOpened=function(){_.fY(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.B.onPopupClosed=function(){_.fY(this.playlists,"scrollable",!1)};
_.B.computeAriaLabel=function(){var V;if(this==null?0:(V=this.data)==null?0:V.actions){V=_.U(this.data.actions);for(var l=V.next();!l.done;l=V.next())if(l=l.value,l.menuTitleRenderer)return _.A5(l.menuTitleRenderer.title)}};
_.B.onTapClose=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.vI.Object.defineProperties(QlP.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var V;if(this==null?0:(V=this.data)==null?0:V.actions){V=_.U(this.data.actions);for(var l=V.next();!l.done;l=V.next())if(l=l.value,l.menuTitleRenderer)return l.menuTitleRenderer}return!1}}});
var f_=QlP;f_.prototype.onPopupClosed=f_.prototype.onPopupClosed;f_.prototype.onPopupOpened=f_.prototype.onPopupOpened;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],f_.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],f_.prototype,"ytRendererStamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],f_.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],f_.prototype,"addToStrings",void 0);_.O([_.q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.a("design:type",String)],f_.prototype,"ariaLabel",void 0);_.O([_.q(),_.a("design:type",String)],f_.prototype,"closeButtonAriaLabel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],f_.prototype,"dialog",void 0);
_.O([_.Ij("#playlists"),_.a("design:type",HTMLElement)],f_.prototype,"playlists",void 0);_.O([_.Ij("ytd-add-to-playlist-create-renderer"),_.a("design:type",Object)],f_.prototype,"createRenderer",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],f_.prototype,"menuTitleRenderer",null);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],f_.prototype,"onPopupOpened",null);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],f_.prototype,"onPopupClosed",null);f_=_.O([_.A({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],f_);
_.u(f_,"ytd-add-to-playlist-renderer",function(){if(ScQ!==void 0)return ScQ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ScQ=V},{mode:1});var caQ;var W0r=function(){var V=_.M.apply(this,arguments)||this;V.isPlaylistEditComplete=!1;V.isCollabEngagementDisabled=!1;V.closeButtonAriaLabel=_.LT("SBOX_INAPPROPRIATE_CANCEL");V.saveButton={title:_.LT("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"};V.onValueChanged=function(){V.updateSaveButtonState();V.computeCollabEngagementDisabled()};
return V};
_.t(W0r,_.M);_.B=W0r.prototype;_.B.attached=function(){this.JSC$18145_scroller&&(this.JSC$18145_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18145_scroller.attached&&typeof this.JSC$18145_scroller.attached==="function"&&this.JSC$18145_scroller.attached())};
_.B.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.B.onPopupClosed=function(){this.reset()};
_.B.close=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.B.onClickSave=function(){var V=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var l=[];this.nameInput.value!==null&&l.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&l.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var I=Number(this.privacyInput.value);isNaN(I)||l.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:I})}this.votingInput.value!==null&&(I=this.votingInput.value)&&l.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:I});if(l.length>0){var H;_.y((H=this.data)==null?void 0:H.updateSettingsEndpoint,_.D0).actions=l;var T;if((T=this.data)==null?0:T.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){V.close()}}}),this.isPlaylistEditComplete=!0}}};
_.B.computePrivacyBadge=function(V){return V?[{metadataBadgeRenderer:V}]:[]};
_.B.computeEditorData=function(V){var l,I;return V==null?void 0:(l=V.sections)==null?void 0:(I=l[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer};
_.B.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.B.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}}}}}};
_.B.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"}))};
_.B.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.B.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.B.isNameChanged=function(){var V,l,I;return(((V=this.editorData)==null?void 0:(l=V.name)==null?void 0:(I=l.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.nameInput.value||"")};
_.B.isDescriptionChanged=function(){var V,l,I;return(((V=this.editorData)==null?void 0:(l=V.description)==null?void 0:(I=l.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.descriptionInput.value||"")};
_.B.isPrivacyChanged=function(){var V,l,I,H,T,x,n,w;return((n=(V=this.editorData)==null?void 0:(l=V.privacy)==null?void 0:(I=l.dropdownFormFieldRenderer)==null?void 0:(H=I.dropdown)==null?void 0:(T=H.dropdownRenderer)==null?void 0:(x=T.entries)==null?void 0:x.find(function(N){var L;return N==null?void 0:(L=N.privacyDropdownItemRenderer)==null?void 0:L.isSelected}))==null?void 0:(w=n.privacyDropdownItemRenderer)==null?void 0:w.int32Value)!==this.privacyInput.value};
_.B.isVotingChanged=function(){var V,l,I,H,T,x,n,w;return((n=(V=this.editorData)==null?void 0:(l=V.voting)==null?void 0:(I=l.dropdownFormFieldRenderer)==null?void 0:(H=I.dropdown)==null?void 0:(T=H.dropdownRenderer)==null?void 0:(x=T.entries)==null?void 0:x.find(function(N){var L;return N==null?void 0:(L=N.privacyDropdownItemRenderer)==null?void 0:L.isSelected}))==null?void 0:(w=n.privacyDropdownItemRenderer)==null?void 0:w.int32Value)!==this.votingInput.value};
var gk=W0r;gk.prototype.onPopupClosed=gk.prototype.onPopupClosed;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gk.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],gk.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],gk.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],gk.prototype,"ytRendererStamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],gk.prototype,"data",void 0);_.O([_.q({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.a("design:type",Array)],gk.prototype,"privacyBadge",void 0);_.O([_.q({computed:"computeEditorData(data)"}),_.a("design:type",Object)],gk.prototype,"editorData",void 0);_.O([_.q(),_.a("design:type",Object)],gk.prototype,"isPlaylistEditComplete",void 0);_.O([_.q(),_.a("design:type",Object)],gk.prototype,"isCollabEngagementDisabled",void 0);
_.O([_.q({value:{REQUIRED_LABEL:_.LT("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.LT("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.a("design:type",Object)],gk.prototype,"addToStrings",void 0);_.O([_.q(),_.a("design:type",String)],gk.prototype,"closeButtonAriaLabel",void 0);_.O([_.q(),_.a("design:type",Object)],gk.prototype,"saveButton",void 0);_.O([_.Ij("#name-input"),_.a("design:type",Object)],gk.prototype,"nameInput",void 0);
_.O([_.Ij("#description-input"),_.a("design:type",Object)],gk.prototype,"descriptionInput",void 0);_.O([_.Ij("#privacy-input"),_.a("design:type",Object)],gk.prototype,"privacyInput",void 0);_.O([_.Ij("#voting-input"),_.a("design:type",Object)],gk.prototype,"votingInput",void 0);_.O([_.Ij("#scroller"),_.a("design:type",Object)],gk.prototype,"JSC$18145_scroller",void 0);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gk.prototype,"onPopupClosed",null);_.O([_.q(),_.a("design:type",Object)],gk.prototype,"onValueChanged",void 0);gk=_.O([_.A({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],gk);
_.u(gk,"ytd-playlist-settings-editor-renderer",function(){if(caQ===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);caQ=V}V=caQ;return V},{mode:1});var bEr;_.yN("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var qcb=function(){return _.M.apply(this,arguments)||this};
_.t(qcb,_.M);_.B=qcb.prototype;_.B.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}}}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.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 V=this.get("data.nextButton.buttonRenderer.navigationEndpoint");V&&(this.nextNavigationEndpoint=V,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.B.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 V={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",V)}}};
_.B.onPopupOpened=function(V){V.detail!==this&&V.detail!==this.hostElement||!_.z("enable_premium_voluntary_pause")||_.xB(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.B.onNextButtonTap=function(){var V=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);V&&this.ytdOpenPopupBehavior.openPopup(V)};
_.B.updateSelectedResponseIndexFromBinding=function(V){this.selectedResponseIndex=V.detail.value};
var mT=qcb;mT.prototype.onPopupOpened=mT.prototype.onPopupOpened;mT.prototype.onSelectedResponseIndexChange=mT.prototype.onSelectedResponseIndexChange;mT.prototype.dataChanged=mT.prototype.dataChanged;_.O([_.R(_.u5),_.a("design:type",Object)],mT.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],mT.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Number)],mT.prototype,"selectedResponseIndex",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mT.prototype,"dataChanged",null);_.O([_.b("selectedResponseIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mT.prototype,"onSelectedResponseIndexChange",null);
_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],mT.prototype,"onPopupOpened",null);mT=_.O([_.A({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],mT);
_.u(mT,"ytd-red-cancel-survey-renderer",function(){if(bEr!==void 0)return bEr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return bEr=V},{mode:1});var MvV;var slh=function(){var V=_.M.apply(this,arguments)||this;V.closeButtonAriaLabel=_.LT("SBOX_INAPPROPRIATE_CANCEL");return V};
_.t(slh,_.M);slh.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
slh.prototype.onClickClose=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
var iV=slh;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],iV.prototype,"rendererStamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],iV.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],iV.prototype,"closeButtonAriaLabel",void 0);iV=_.O([_.A({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],iV);
_.u(iV,"ytd-search-filter-options-dialog-renderer",function(){if(MvV!==void 0)return MvV;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return MvV=V},{mode:1});var pZP;var nD6=function(){return function(V){V=V.availabilityType;return V===void 0||V==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||V==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Aah=function(){var V=_.M.apply(this,arguments)||this;V.qualityOptions=[];V.upsellOptions=[];V.showUpsellSection=!1;V.darkerDarkTheme=_.z("web_darker_dark_theme");V.rememberSettingsChecked=!1;return V};
_.t(Aah,_.M);_.B=Aah.prototype;_.B.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}}}}};
_.B.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.B.updateQualityOptions=function(){if(this.formats===void 0)_.xB(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var V=[],l=[];this.showUpsellSection=!1;for(var I=_.U(this.formats),H=I.next();!H.done;H=I.next())(H=H.value)&&(H.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?l.push(H):V.push(H));V.length&&(this.qualityOptions=UaE(V));l.length&&(this.showUpsellSection=!0,this.upsellOptions=UaE(l))}};
_.B.updateRememberString=function(){if(this.downloadQualityPickerEntity)var V=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var l;V=(l=this.data)==null?void 0:l.premiumRememberSettingString}else{var I;V=(I=this.data)==null?void 0:I.rememberSettingString}V=V===void 0?_.LT("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):V;this.rememberSettingsCheckboxRenderer={title:_.iJ(V),disabled:!1}};
_.B.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.vI.Object.defineProperties(Aah.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var V;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(V=this.data)==null?void 0:V.qualityFormats}}});
var Vw=Aah;Vw.prototype.updateRememberString=Vw.prototype.updateRememberString;Vw.prototype.updateQualityOptions=Vw.prototype.updateQualityOptions;Vw.prototype.dataChanged=Vw.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Vw.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Vw.prototype,"data",void 0);
_.O([_.R(_.DS),_.a("design:type",Object)],Vw.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Boolean)],Vw.prototype,"selectedUpsellQuality",void 0);_.O([_.q({computed:"computeIcon_(data.premiumIcon)",value:""}),_.a("design:type",String)],Vw.prototype,"premiumIcon",void 0);_.O([_.q({selector:Bqg,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.a("design:type",Object)],Vw.prototype,"downloadQualityPickerEntity",void 0);
_.O([_.q(),_.a("design:type",Array)],Vw.prototype,"qualityOptions",void 0);_.O([_.q(),_.a("design:type",Array)],Vw.prototype,"upsellOptions",void 0);_.O([_.q(),_.a("design:type",Object)],Vw.prototype,"showUpsellSection",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Vw.prototype,"darkerDarkTheme",void 0);_.O([_.q(),_.a("design:type",Object)],Vw.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.O([_.Ij("#remember-settings"),_.a("design:type",HTMLInputElement)],Vw.prototype,"rememberSettingsCheckbox",void 0);_.O([_.q(),_.a("design:type",Object)],Vw.prototype,"rememberSettingsChecked",void 0);_.O([_.q(),_.a("design:type",Function)],Vw.prototype,"onRememberSettingsCheckedChanged",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vw.prototype,"dataChanged",null);
_.O([_.b("downloadQualityPickerEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vw.prototype,"updateQualityOptions",null);_.O([_.b("selectedUpsellQuality"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vw.prototype,"updateRememberString",null);Vw=_.O([_.A({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Vw);
_.u(Vw,"ytd-download-quality-selector-content",function(){if(pZP!==void 0)return pZP;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return pZP=V},{mode:1});var uKI;var vK2=function(){var V=_.M.apply(this,arguments)||this;V.selectedUpsellQuality=!1;V.qualityOptions=[];V.darkerDarkTheme=_.z("web_darker_dark_theme");V.useUpsellDismissAlternate=_.z("use_not_now_dl_upsell_dismiss_cta");V.shouldShowAlternateUpsellDimiss=!1;V.rememberSettings=!1;V.rememberSettingsChecked=!1;V.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};V.rememberSettingsCheckedChanged=function(l){V.rememberSettingsChecked=l};
return V};
_.t(vK2,_.M);_.B=vK2.prototype;
_.B.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iJ(_.LT("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iJ(_.LT("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iJ(_.LT("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iJ(_.LT("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.B.updateQualityOptions=function(){this.formats===void 0?_.xB(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=UaE(this.formats)};
_.B.onQualityOptionsSelect=function(V){if(this.qualityOptions&&V){V!==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 l=_.U(this.qualityOptions.entries()),I=l.next();!I.done;I=
l.next()){I=_.U(I.value);var H=I.next().value;I=I.next().value;var T=void 0,x=void 0;if(((T=I)==null?void 0:(x=T.settingsRadioOptionRenderer)==null?void 0:x.id)===V){this.selectedQualityIndex=H;V=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((V=this.formats[H])==null?void 0:V.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.B.onClickSubmit=function(){var V;if((V=this.downloadButtonRenderer)==null||!V.isDisabled){var l,I;V=(I=(l=this.data)==null?void 0:l.onSubmitEndpoint)!=null?I:{};var H,T;if(this.formats&&(((H=_.y(V,_.xj))==null?0:H.videoId)||((T=_.y(V,_.UB))==null?0:T.playlistId))){var x,n,w,N,L,e;l={formatType:(N=(x=this.formats)==null?void 0:(n=x[(w=this.selectedQualityIndex)!=null?w:0])==null?void 0:n.format)!=null?N:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(L=this.getOfflineEndpoint(V))==null?void 0:(e=L.actionParams)==null?void 0:e.settingsAction)};this.getOfflineEndpoint(V).actionParams=l;this.ytComponentBehavior.resolveCommand(V)}_.xB(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.B.onClickUpsell=function(){var V;if((V=this.upsellButtonRenderer)==null||!V.isDisabled){var l,I;V=(I=(l=this.data)==null?void 0:l.upsellEndpoint)!=null?I:{};this.ytComponentBehavior.resolveCommand(V);_.xB(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);l="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var H,T,x,n;l=(n=(H=this.formats)==null?void 0:(T=H[(x=this.selectedQualityIndex)!=null?x:0])==null?void 0:T.format)!=null?n:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:l}})}};
_.B.onClickClose=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.B.getOfflineSettingsAction=function(V,l){return V?l===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":l:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.B.getOfflineEndpoint=function(V){return _.y(V,_.xj)?_.y(V,_.xj):_.y(V,_.UB)};
_.vI.Object.defineProperties(vK2.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.iJ(_.LT("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var V;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(V=this.data)==null?void 0:V.qualityFormats}}});
var lu=vK2;lu.prototype.updateQualityOptions=lu.prototype.updateQualityOptions;lu.prototype.dataChanged=lu.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],lu.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],lu.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],lu.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Number)],lu.prototype,"selectedQualityIndex",void 0);_.O([_.q(),_.a("design:type",Object)],lu.prototype,"selectedUpsellQuality",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],lu.prototype,"ytdReduxBehavior",void 0);
_.O([_.q({selector:Bqg,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.a("design:type",Object)],lu.prototype,"downloadQualityPickerEntity",void 0);_.O([_.q(),_.a("design:type",Array)],lu.prototype,"qualityOptions",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],lu.prototype,"darkerDarkTheme",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],lu.prototype,"useUpsellDismissAlternate",void 0);
_.O([_.q(),_.a("design:type",Object)],lu.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.O([_.q(),_.a("design:type",Object)],lu.prototype,"downloadButtonRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],lu.prototype,"upsellButtonRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],lu.prototype,"cancelButtonRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],lu.prototype,"upsellCancelButtonRenderer",void 0);_.O([_.q(),_.a("design:type",Object)],lu.prototype,"rememberSettings",void 0);
_.O([_.q(),_.a("design:type",Object)],lu.prototype,"rememberSettingsChecked",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lu.prototype,"dataChanged",null);_.O([_.b("downloadQualityPickerEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lu.prototype,"updateQualityOptions",null);lu=_.O([_.A({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],lu);
_.u(lu,"ytd-download-quality-selector-renderer",function(){if(uKI!==void 0)return uKI;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return uKI=V},{mode:1});var OEg;var CA2=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(CA2,_.M);CA2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
CA2.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
var IW=CA2;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],IW.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],IW.prototype,"darkerDarkTheme",void 0);_.O([_.q({computed:"computeIcon_(data.infoIcon)"}),_.a("design:type",Object)],IW.prototype,"infoIcon",void 0);
_.O([_.q({computed:"computeIcon_(data.warningIcon)"}),_.a("design:type",Object)],IW.prototype,"warningIcon",void 0);IW=_.O([_.A({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],IW);
_.u(IW,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(OEg!==void 0)return OEg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return OEg=V},{mode:1});var aob;var foI=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(foI,_.M);foI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
foI.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var HP=foI;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],HP.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],HP.prototype,"darkerDarkTheme",void 0);HP=_.O([_.A({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],HP);
_.u(HP,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(aob!==void 0)return aob;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return aob=V},{mode:1});var gKQ;var Tt=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(Tt,_.M);Tt.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Tt.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"}}}}};
Tt.prototype.onServiceRequestSentOrCompleted=function(V,l){l&&l.actions&&l.actions.length>0&&_.xB(this.hostElement,"yt-close-popup-action",[this.is])};
var BP=Tt;BP.prototype.onServiceRequestSentOrCompleted=BP.prototype.onServiceRequestSentOrCompleted;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],BP.prototype,"darkerDarkTheme",void 0);_.O([_.q(),_.a("design:type",Object)],BP.prototype,"data",void 0);
_.O([_.W("yt-service-request-completed"),_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],BP.prototype,"onServiceRequestSentOrCompleted",null);BP=_.O([_.A({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],BP);
_.u(BP,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(gKQ!==void 0)return gKQ;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return gKQ=V},{mode:1});var mbB;var iEu=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");V.submitButtonDisabled=!0;return V};
_.t(iEu,_.M);_.B=iEu.prototype;_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.B.onDataChanged=function(){var V,l,I;if(((V=this.data)==null?void 0:(l=V.confirmButton)==null?void 0:(I=l.buttonRenderer)==null?void 0:I.isDisabled)!==void 0){var H,T,x;this.submitButtonDisabled=(H=this.data)==null?void 0:(T=H.confirmButton)==null?void 0:(x=T.buttonRenderer)==null?void 0:x.isDisabled}};
_.B.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.B.updateSubmitButtonDisabledFromBinding=function(V){this.submitButtonDisabled=V.detail.value};
_.B.updateSubmitButtonDisabledFromConfirmCheckbox=function(V){this.submitButtonDisabled=!V.detail.value};
var xm=iEu;xm.prototype.onDataChanged=xm.prototype.onDataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],xm.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],xm.prototype,"darkerDarkTheme",void 0);
_.O([_.q(),_.a("design:type",Object)],xm.prototype,"submitButtonDisabled",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xm.prototype,"onDataChanged",null);xm=_.O([_.A({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],xm);
_.u(xm,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(mbB!==void 0)return mbB;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return mbB=V},{mode:1});var VgE;var ld2=function(){return _.M.apply(this,arguments)||this};
_.t(ld2,_.M);_.vI.Object.defineProperties(ld2.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var V,l,I;return((V=this.data)==null?void 0:V.title)+" "+((l=this.data)==null?void 0:l.metadataPrimary)+" "+((I=this.data)==null?void 0:I.metadataSecondary)}}});
var U8=ld2;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],U8.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],U8.prototype,"data",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],U8.prototype,"ariaLabel",null);U8=_.O([_.A({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],U8);
_.u(U8,"ytd-compact-product-list-item-renderer",function(){if(VgE!==void 0)return VgE;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return VgE=V},{mode:1});var Idh;var H$E=function(){return _.M.apply(this,arguments)||this};
_.t(H$E,_.M);H$E.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]]"}}}}}};
_.vI.Object.defineProperties(H$E.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
var n1=H$E;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],n1.prototype,"data",void 0);n1=_.O([_.A({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],n1);
_.u(n1,"ytd-compact-product-list-renderer",function(){if(Idh!==void 0)return Idh;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Idh=V},{mode:1});var Tzg;var BzI=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(BzI,_.M);_.B=BzI.prototype;_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.B.getBackgroundUrl=function(){var V=this.get("data.headerImage.thumbnails");return V?"url("+_.sI(V,this.hostElement.clientWidth)+")":""};
_.B.onDataChanged=function(){var V=this.getBackgroundUrl();V&&(this.header.style.backgroundImage=V);V=_.oa();var l=_.JO(),I=this.get("data.trackingParams");I&&l&&V&&_.MJ(V,l,_.dj(I));V=_.U(this.hostElement.querySelectorAll("yt-img-shadow"));for(l=V.next();!l.done;l=V.next())l.value.onShow()};
_.B.onPopupClosed=function(V){_.qv(V).localName==="ytd-membership-post-cancel-renderer"&&_.xB(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
var $m=BzI;$m.prototype.onPopupClosed=$m.prototype.onPopupClosed;$m.prototype.onDataChanged=$m.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$m.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],$m.prototype,"darkerDarkTheme",void 0);
_.O([_.Ij("#header"),_.a("design:type",HTMLDivElement)],$m.prototype,"header",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$m.prototype,"onDataChanged",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$m.prototype,"onPopupClosed",null);$m=_.O([_.A({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],$m);
_.u($m,"ytd-membership-post-cancel-renderer",function(){if(Tzg!==void 0)return Tzg;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Tzg=V},{mode:1});var x2P;var U2E=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(U2E,_.M);U2E.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
U2E.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
var dG=U2E;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],dG.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],dG.prototype,"darkerDarkTheme",void 0);_.O([_.Ij("ytd-feedback-survey-renderer"),_.a("design:type",Object)],dG.prototype,"feedbackSurveyRenderer",void 0);dG=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],dG);
_.u(dG,"ytd-sponsorship-confirm-cancel-content",function(){if(x2P!==void 0)return x2P;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return x2P=V},{mode:1});var nSg;var $2I=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");V.maybeSubmitFeedback=function(){V.content&&V.content.maybeSubmitFeedback()};
return V};
_.t($2I,_.M);_.B=$2I.prototype;_.B.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.B.onYtPopupOpened=function(V,l){l===this&&this.data&&this.data.onOpenCommands&&_.d6(this.hostElement,this.data.onOpenCommands,this.hostElement);_.xB(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.B.onYtPopupClosed=function(V,l){(l&&l.canceled===!0||l&&l.canceled===!1&&l.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.d6(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.B.onYtServiceRequestCompleted=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.B.onYtServiceRequestError=function(V){_.oE(this.hostElement,V.detail.error.message)};
_.B.onDataChanged=function(){if(this.isAttached){var V=this.backgroundUrl;V&&(_.h(this.hostElement).querySelector("#header").style.backgroundImage=V)}};
_.vI.Object.defineProperties($2I.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var V=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return V?"url("+_.sI(V,this.hostElement.clientWidth)+")":""}}});
var wG=$2I;wG.prototype.onDataChanged=wG.prototype.onDataChanged;wG.prototype.onYtServiceRequestError=wG.prototype.onYtServiceRequestError;wG.prototype.onYtServiceRequestCompleted=wG.prototype.onYtServiceRequestCompleted;wG.prototype.onYtPopupClosed=wG.prototype.onYtPopupClosed;wG.prototype.onYtPopupOpened=wG.prototype.onYtPopupOpened;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],wG.prototype,"data",void 0);_.O([_.q({value:function(){return _.LT("SBOX_INAPPROPRIATE_CANCEL")}}),
_.a("design:type",String)],wG.prototype,"closeButtonAriaLabel",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],wG.prototype,"darkerDarkTheme",void 0);_.O([_.Ij("#scrollable"),_.a("design:type",Object)],wG.prototype,"scrollable",void 0);_.O([_.Ij("ytd-sponsorship-confirm-cancel-content"),_.a("design:type",Object)],wG.prototype,"content",void 0);
_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],wG.prototype,"onYtPopupOpened",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],wG.prototype,"onYtPopupClosed",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wG.prototype,"onYtServiceRequestCompleted",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wG.prototype,"onYtServiceRequestError",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wG.prototype,"onDataChanged",null);
wG=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],wG);
_.u(wG,"ytd-sponsorship-confirm-cancel-renderer",function(){if(nSg!==void 0)return nSg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return nSg=V},{mode:_.Cm("kevlar_poly_si_batch_j081")?1:2});var d2E;var wGr=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(wGr,_.M);wGr.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
var Nu=wGr;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Nu.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Nu.prototype,"darkerDarkTheme",void 0);Nu=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Nu);
_.u(Nu,"ytd-sponsorships-celebration-content",function(){if(d2E!==void 0)return d2E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return d2E=
V},{mode:1});var Nzg;var Ki6=_.fl(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),jEQ=function(){var V=_.M.apply(this,arguments)||this;V.scriptsAppended=!1;V.buttonOverrides={type:"tonal",style:"overlay-dark"};return V};
_.t(jEQ,_.M);_.B=jEQ.prototype;
_.B.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:_.z("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}}}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.onDataChanged=function(){var V;(V=this.header)==null||V.style.setProperty("background-color",this.backgroundColor);if(V=this.headerImageUrl){var l;(l=this.header)==null||l.style.setProperty("background-image",V)}l=_.oa(4);V=_.JO(4);var I=this.get("data.trackingParams");if(I&&V&&l){var H=_.dj(I);_.MJ(l,V,H);_.z("combine_ve_grafts")?_.x7().graftServerVe(I,V,4):_.MJ(l,V,H)}l=_.U(this.hostElement.querySelectorAll("yt-img-shadow"));for(V=l.next();!V.done;V=l.next())V.value.onShow();if(l=this.get("data.gtmId"))_.k6(l,
_.h6("GL","")),this.setupConversionTracking()};
_.B.setupConversionTracking=function(){if(!this.scriptsAppended){var V=document.createElement("script");var l=_.aO(Ki6.join(""));_.fd(V,l);document.head.appendChild(V);V=document.createElement("noscript");V.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(V);this.scriptsAppended=!0}};
_.B.onPopupClosed=function(V){if(_.qv(V).localName==="ytd-sponsorships-celebration-renderer"){_.xB(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var l;this.data&&((l=this.data)==null?0:l.dismissCommand)&&_.li.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.vI.Object.defineProperties(jEQ.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var V=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.rP(V)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var V=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return V?"url("+_.sI(V,this.hostElement.getBoundingClientRect().width)+")":""}}});
var K1=jEQ;K1.prototype.onPopupClosed=K1.prototype.onPopupClosed;K1.prototype.onDataChanged=K1.prototype.onDataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],K1.prototype,"data",void 0);_.O([_.Ij("#header"),_.a("design:type",HTMLElement)],K1.prototype,"header",void 0);
_.O([_.q(),_.a("design:type",Object)],K1.prototype,"scriptsAppended",void 0);_.O([_.q(),_.a("design:type",Object)],K1.prototype,"buttonOverrides",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],K1.prototype,"onDataChanged",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],K1.prototype,"onPopupClosed",null);
K1=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],K1);
_.u(K1,"ytd-sponsorships-celebration-renderer",function(){if(Nzg!==void 0)return Nzg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Nzg=V},{mode:1});var Yab;var jm=function(){var V=_.M.apply(this,arguments)||this;V.isToggleChecked=!1;return V};
_.t(jm,_.M);jm.prototype.onDataChanged=function(){var V;this.isToggleChecked=((V=this.data)==null?void 0:V.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
jm.prototype.close=function(){var V;((V=this.data)==null?0:V.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
jm.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var V,l=_.y((V=this.data)==null?void 0:V.switchButton,izV);l&&(this.isToggleChecked&&l.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(l.switchOnInnertubeCommand),!this.isToggleChecked&&l.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(l.switchOffInnertubeCommand))};
jm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var Ym=jm;Ym.prototype.onDataChanged=Ym.prototype.onDataChanged;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Ym.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ym.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Ym.prototype,"isToggleChecked",void 0);
_.O([_.q({value:_.LT("CLOSE")}),_.a("design:type",String)],Ym.prototype,"closeButtonAriaLabel",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ym.prototype,"onDataChanged",null);Ym=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Ym);
_.u(Ym,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(Yab!==void 0)return Yab;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Yab=V},{mode:1});var Lib;var eYE=function(){return _.M.apply(this,arguments)||this};
_.t(eYE,_.M);_.B=eYE.prototype;_.B.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"}}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.detached=function(){this.playerElement.stop()};
_.B.onYtServiceRequestCompleted=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.B.onYtServiceRequestError=function(V){_.oE(this.hostElement,V.detail.error.message)};
_.B.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.B.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.B.getTier=function(V,l){return!V||!V.tiers||l<0?null:_.y(V.tiers[l],Hw2)};
_.B.moreThanOne=function(V){return!!(V&&V.length>1)};
_.B.tierOverviewTap=function(V){var l=this;this.selectedTier=V.model.index;_.Al(this,function(){_.B$(l.hostElement,"yt-refit")})};
_.B.computeSelectedClass=function(V,l){return this.isSelected(V,l)?"selected":""};
_.B.computeButtonAriaPressed=function(V,l){return this.isSelected(V,l)?"true":"false"};
_.B.isSelected=function(V,l){return V===l};
_.B.onDataChanged=function(){_.h(this.hostElement).querySelector("#header-overlay").style.visibility="";_.h(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 V=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),
l=V.next();!l.done;l=V.next())l.value.onShow();var I;this.set("selectedTier",(I=this.get("data.targetTierIndex"))!=null?I:0);var H;(V=(H=this.data)==null?void 0:H.onVisible)&&this.ytComponentBehavior.resolveCommand(V)};
_.B.initializeVe=function(V){var l=_.oa(),I=_.JO(),H=this.get("data.trackingParams");I&&l&&(this.screenLayer=4,l=_.Zp(_.$hJ)(void 0,69877,{clientScreenNonce:l,visualElement:I},void 0,void 0,void 0),_.N31(l,69877,4),I=_.JO(4),H&&I&&(H=_.dj(H),_.MJ(l,I,H),V&&(this.offerVideoVe=_.eU(74659),_.MJ(l,H,this.offerVideoVe))))};
_.B.setHeaderBackground=function(){var V=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.h(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.rP(V);if(V=this.getHeaderImage())V=_.sI(V,screen.width),_.h(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+V+")"};
_.B.getHeaderImage=function(){var V=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&V?V:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.B.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.B.setupVideoPlayer=function(V){var l=this,I,H,T,x;return _.d(function(n){if(n.nextAddress==1)return I=l.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),H=l.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.z("kevlar_player_update_killswitch")?l.playerElement.update({args:{autoplay:I,video_id:V,player_params:H}}):l.playerElement.loadVideoWithPlayerVars({autoplay:I,video_id:V,player_params:H}),
_.K(n,l.playerElement.getPlayerPromise(),2);T=n.yieldResult;T.addEventListener("onStateChange",function(w){l.onPlayerStateChange(w)});
T.setScreenLayer(l.screenLayer);(x=_.oa(4))&&l.offerVideoVe&&_.s4(x,l.offerVideoVe);I&&(l.pauseOtherPlayers(),l.playerElement.focusOnPlayer(),l.playerElement.getPlayer().hideControls(),_.et(_.r0,function(){l.fadeOutHeaderOverlay()},4E3));
_.FU(n)})};
_.B.onPlayerStateChange=function(V){V===1?this.backgroundPlayerElement&&(V=this.backgroundPlayerElement.player_.getPlayerState(),V!==1&&V!==3||this.backgroundPlayerElement.pause()):V===0&&(_.h(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.h(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.B.fadeOutHeaderOverlay=function(){_.h(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.B.onHeaderTap=function(){if(this.offerVideo){_.h(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var V;((V=this.playerElement.player_)==null?void 0:V.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(V=_.oa(4))&&this.offerVideoVe&&_.uJ(V,this.offerVideoVe)}};
_.B.getBackgroundImageLayerClass=function(V){return V?"background-image-layer-with-video":""};
_.B.getHeaderClass=function(V){return V?"header-with-video":""};
_.B.getHeaderOverlayClass=function(V){return V?"header-overlay-with-video":""};
_.B.getTitleContainerClass=function(V,l){return V?"title-container-with-video":l?"title-container-without-video-flexible":"title-container-without-video"};
_.B.tierTitleDisplayStatus=function(V){return this.moreThanOne(V)?"hide":"show"};
_.B.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.F().resolve(_.sH).getPlayerElement():this.backgroundPlayerElement=_.u8();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var V=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=V===1||V===3;this.backgroundPlayerElement.pause()}};
_.B.isMiniplayerActive=function(){return _.F().resolve(_.sH).isMiniplayerActive()};
_.B.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("selected-tier-changed",this.selectedTier))};
var L1=eYE;L1.prototype.selectedTierChangedForBinding=L1.prototype.selectedTierChangedForBinding;L1.prototype.onDataChanged=L1.prototype.onDataChanged;L1.prototype.onYtPopupClosed=L1.prototype.onYtPopupClosed;L1.prototype.onYtPopupOpened=L1.prototype.onYtPopupOpened;L1.prototype.onYtServiceRequestError=L1.prototype.onYtServiceRequestError;L1.prototype.onYtServiceRequestCompleted=L1.prototype.onYtServiceRequestCompleted;
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],L1.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],L1.prototype,"data",void 0);_.O([_.q({value:0}),_.a("design:type",Number)],L1.prototype,"selectedTier",void 0);
_.O([_.q({value:""}),_.a("design:type",String)],L1.prototype,"offerVideo",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],L1.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.O([_.q({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.iN(this)}}),
_.a("design:type",String)],L1.prototype,"playerId",void 0);_.O([_.Ij("tp-yt-paper-dialog-scrollable"),_.a("design:type",Object)],L1.prototype,"scrollable",void 0);_.O([_.Ij("ytd-sponsorships-tier-renderer"),_.a("design:type",Object)],L1.prototype,"tierRenderer",void 0);_.O([_.Ij("#player"),_.a("design:type",Object)],L1.prototype,"playerElement",void 0);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],L1.prototype,"onYtServiceRequestCompleted",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],L1.prototype,"onYtServiceRequestError",null);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L1.prototype,"onYtPopupOpened",null);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L1.prototype,"onYtPopupClosed",null);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L1.prototype,"onDataChanged",null);_.O([_.b("selectedTier"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L1.prototype,"selectedTierChangedForBinding",null);
L1=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],L1);
_.u(L1,"ytd-sponsorships-offer-renderer",function(){if(Lib!==void 0)return Lib;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return Lib=V},{mode:_.Cm("kevlar_poly_si_batch_j077")?1:2});var kWr;var em=function(){var V=_.M.apply(this,arguments)||this;V.buttonOverrides={type:"filled",style:"mono"};return V};
_.t(em,_.M);em.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}}}}}};
em.prototype.backgroundColorChanged=function(){var V,l,I,H=(l=_.y((V=this.data)==null?void 0:V.content,TMu))==null?void 0:(I=l.backgroundColor)==null?void 0:I.backgroundColor;H&&(V=_.tv(H),_.h(this.hostElement).querySelector("#banner").style.backgroundColor=V,_.h(this.hostElement).querySelector("#abstract-art").style.backgroundColor=V)};
em.prototype.attached=function(){this.JSC$18231_scroller&&(this.JSC$18231_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18231_scroller.attached&&typeof this.JSC$18231_scroller.attached==="function"&&this.JSC$18231_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var km=em;km.prototype.backgroundColorChanged=km.prototype.backgroundColorChanged;_.O([_.q(),_.a("design:type",Object)],km.prototype,"data",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Ij("#scroller"),_.a("design:type",Object)],km.prototype,"JSC$18231_scroller",void 0);_.O([_.q(),_.a("design:type",Object)],km.prototype,"buttonOverrides",void 0);
_.O([_.b("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],km.prototype,"backgroundColorChanged",null);km=_.O([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],km);
_.u(km,"ytd-sponsorships-promotion-celebration-renderer",function(){if(kWr!==void 0)return kWr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return kWr=V},{mode:_.Cm("kevlar_poly_si_batch_j077")?1:2});var Fi6;var XGb;var zYI=function(){return _.M.apply(this,arguments)||this};
_.t(zYI,_.M);zYI.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
zYI.prototype.computeIsInitiallyChecked=function(V){return V===1};
var FD=zYI;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],FD.prototype,"data",void 0);_.O([_.Ij("#checkbox"),_.a("design:type",Object)],FD.prototype,"checkbox",void 0);FD=_.O([_.A({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],FD);
_.u(FD,"ytd-subscription-toggle-option-renderer",function(){if(XGb!==void 0)return XGb;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return XGb=V},{mode:1});var XD=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");V.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return V};
_.t(XD,_.M);XD.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"}}}};
XD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
XD.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var V=_.h(this.hostElement).querySelector("#options").selected;V=this.data.options[V].subscriptionRadioOptionRenderer.serviceEndpoint;var l=_.h(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");l&&V&&V.modifyChannelNotificationPreferenceEndpoint&&(l=l.getValue())&&(V.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[l]);_.F().resolve(_.aw).resolveCommand(V,{form:{element:this.hostElement}});
_.xB(this.hostElement,"yt-close-popup-action")};
_.vI.Object.defineProperties(XD.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var V=this.data.options,l=0;l<V.length;l++){var I=V[l].subscriptionRadioOptionRenderer;if(I&&I.selected)return l}return null}}});
var zt=XD;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],zt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],zt.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],zt.prototype,"eventForwardingBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],zt.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],zt.prototype,"darkerDarkTheme",void 0);_.O([_.Q("data.options"),_.a("design:type",Object),_.a("design:paramtypes",[])],zt.prototype,"initialIndex",null);zt=_.O([_.A({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],zt);
_.u(zt,"ytd-subscription-notification-options-renderer",function(){if(Fi6!==void 0)return Fi6;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return Fi6=V},{mode:1});var ykg;var tgE=function(){return _.M.apply(this,arguments)||this};
_.t(tgE,_.M);var yw=tgE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],yw.prototype,"data",void 0);yw=_.O([_.A({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],yw);
_.u(yw,"ytd-tvfilm-offer-groups-renderer",function(){if(ykg!==void 0)return ykg;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return ykg=V},{mode:1});var rk6;var GW2=function(){var V=_.M.apply(this,arguments)||this;V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(GW2,_.M);_.B=GW2.prototype;_.B.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"}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.B.computeThumbnailClass=function(V){return V.thumbnailOverlays?V.isShow?"thumbnail-show":"thumbnail-movie":V.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.B.computeCommerceSectionClass=function(V){return V.offers&&V.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.B.computeTitleClass=function(V){return V.offers&&V.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.B.onDataChanged=function(){[].concat(_.oI(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(V){V.onShow()})};
var tA=GW2;tA.prototype.onDataChanged=tA.prototype.onDataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],tA.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],tA.prototype,"darkerDarkTheme",void 0);
_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tA.prototype,"onDataChanged",null);tA=_.O([_.A({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],tA);
_.u(tA,"ytd-ypc-offers-overlay-renderer",function(){if(rk6!==void 0)return rk6;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return rk6=V},{mode:_.Cm("kevlar_poly_si_batch_j028")?1:2});var ES6;var Jku=function(){this.usedMethods=new Set};
Jku.prototype.add=function(V){this.usedMethods.add(V)};
Jku.prototype.reset=function(){this.usedMethods.clear()};var P7P=function(V,l){this.query=V;this.previousSearchQuery=l;this.id=oSE++;if(!hYY){l=_.h6("SBOX_SETTINGS");V="https://"+((l==null?void 0:l.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var I=l==null?void 0:l.REQUEST_LANGUAGE;I&&(V+="&hl="+I);(I=l==null?void 0:l.REQUEST_DOMAIN)&&(V+="&gl="+I);V+="&client=youtube&gs_ri=youtube";(I=l==null?void 0:l.SUGG_EXP_ID)&&(V+="&sugexp="+encodeURIComponent(I));(I=l==null?void 0:l.PSUGGEST_TOKEN)&&(V+="&tok="+I);(l=
l==null?void 0:l.SESSION_INDEX)&&(V+="&authuser="+l);_.z("desktop_enable_visual_suggest")&&(V+="&h=180&w=320&ytvs=1");hYY=V}},D2Y=function(V){var l="q="+encodeURIComponent(V.query);
V.previousSearchQuery&&(l+="&pq="+encodeURIComponent(V.previousSearchQuery));return l},Z$I=function(){var V=_.h6("SBOX_SETTINGS"),l={};
if(V==null?0:V.SEND_VISITOR_DATA)l["X-Goog-Visitor-Id"]=V==null?void 0:V.VISITOR_DATA;return l},SaB=function(V){var l=hYY;
l+="&gs_id="+V.id.toString(36);l+="&q="+encodeURIComponent(V.query);l+="&cp="+V.query.length;V.previousSearchQuery&&(l+="&pq="+encodeURIComponent(V.previousSearchQuery));(V=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(l+="&video_id="+V);return l},oSE=0,hYY="";var RYP=function(V,l){this.text=V;this.bold=l},QEP=function(V,l,I){this.input=l;
this.index=I;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=V[0];this.type=V[1];this.subtypes=V[2];var H;this.displayText=daQ((H=V[3])==null?void 0:H.b);var T;this.ignoredPrefix=daQ((T=V[3])==null?void 0:T.a);var x,n;this.hasNewVideo=((x=V[3])==null?void 0:(n=x.zam)==null?void 0:n.toString())==="true"?!0:!1;var w;this.visualSuggestUrl=(w=V[3])==null?void 0:w.zai},ck6=function(V){var l=[],I,H=(I=V.displayText)!=null?I:V.text;
if(V.type===33)return l.push(new RYP(H,!1)),l;if(H.length>=V.input.length&&H.substring(0,V.input.length)===V.input)l.push(new RYP(V.input,!1)),l.push(new RYP(H.substring(V.input.length),!0));else{var T=new Set(V.input.split(/\s/)),x=H.split(/\s/);l=x.map(function(n,w){return new RYP(n.trim()+(w===x.length-1?"":" "),!T.has(n))})}return l};var WiY=function(V){this.rawResponse=["",[],{}];this.suggestions=[];try{var l=JSON.parse(wih(V));if(typeof l==="object"&&l!==null)this.rawResponse=l;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(H){console.log("Suggest: Failed to parse SuggestResponse!");return}var I=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(H,T){return new QEP(H,I,T)})};var b$u=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new Jku;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18267_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},qab,MgB=function(){qab||(qab=new b$u);
return qab};
b$u.prototype.updateSuggestions=function(V){var l=this;this.availableSuggestions.forEach(function(I){l.previousSuggestions[I]=!0});
this.availableSuggestions=V.map(function(I){var H=I.type.toString();I.subtypes.length>0&&(H+="i"+I.subtypes.join("i"),H+="k"+I.suggestionSources.COMPLETE_SERVER.toString());return H})};
var sEY=function(V,l){var I=Date.now();V.firstEditTime<0&&(V.firstEditTime=I);l&&(V.lastQueryBuildTime=I);V.lastEditTime=I};
b$u.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18267_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var pGr=function(V){var l="";V.availableSuggestions.forEach(function(T){delete V.previousSuggestions[T]});
for(var I=_.U(Object.keys(V.previousSuggestions)),H=I.next();!H.done;H=I.next())H=H.value,V.previousSuggestions[H]&&(l+=(l?"j":"")+H);return l},AkB=function(V,l){var I=[];
l&&(I[1]=l.toString());I[0]="youtube";I[7]=Date.now()-V.startTime;I[6]=V.sessionNumber;V.zeroPrefixSuggestionCount>=0&&(I[33]=V.zeroPrefixSuggestionCount);I[13]=V.outOfSyncResponseCount;if(V.availableSuggestions.length>0){for(var H=l="",T=0,x=_.U(V.availableSuggestions),n=x.next();!n.done;n=x.next())n=n.value,n!==H&&(T>1&&(l+="l"+T),l+=(H?"j":"")+n,T=0,H=n),T+=1;T>1&&(l+="l"+T);I[3]=l}I[35]=pGr(V);V.selectedSuggestionIndex>=0&&(I[2]=V.selectedSuggestionIndex);var w;if(l=(w=_.h6("SBOX_SETTINGS"))==
null?void 0:w.SUGG_EXP_ID)I[19]=V.normalize(l),w=0,V.experimentTriggeredBeforeFinal&&(w|=1),V.experimentTriggeredFinal&&(w|=2),I[20]=w;I[26]=Array.from(V.inputMethodsTracker.usedMethods).join("j");if(V.JSC$18267_totalRoundTripTime>0){I[15]=V.JSC$18267_totalRoundTripTime;I[14]=V.maxRoundTripTime;w=[];for(T=l=0;T<10;T++)H=V.roundTripTimeHistogram[T],H===0?l++:(l>1?w.push(T+"-"+H):l===1?w.push("0j"+H):w.push(H.toString()),l=0);w=w.join("j");I[16]=w}V.zeroPrefixRoundTripTime>0&&(I[36]=V.zeroPrefixRoundTripTime);
V.lastQueryBuildTime>0&&(I[18]=V.lastQueryBuildTime-V.startTime);V.firstEditTime>0&&(I[4]=V.firstEditTime-V.startTime);V.lastEditTime>0&&(I[5]=V.lastEditTime-V.startTime);return I.join(".")};
b$u.prototype.normalize=function(V){return V.replaceAll(".","-")};
var uPg=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var vSQ=function(){var V=_.M.apply(this,arguments)||this;V.microphoneSpinnerActive=!1;V.noAnimations=!1;V.boundExitClick=function(){V.onExitButtonClick()};
V.speechOverlayClassName="";V.isLevelAnimating=!1;V.playCloseDialogAudioFeedback=!0;V.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return V};
_.t(vSQ,_.M);_.B=vSQ.prototype;_.B.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.B.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=PTE()};
_.B.dataChanged=function(){this.logDialog()};
_.B.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var V;(V=this.manager.audioPlayer)!=null&&(V.JSC$17557_audioEnabled=!1)}this.manager.stop();(V=this.manager.audioPlayer)!=null&&(V.JSC$17557_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.B.handleSpeechQueryCompleteAction=function(V){var l=V.navigationAction;l&&(V.trackingParams&&_.x7().graftServerVe(V.trackingParams,this.dialogVe,5),_.B$(this.hostElement,"yt-navigate",{endpoint:l,tempData:this.getNavigationParams(l),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.B.onExitButtonClick=function(){this.closeDialog()};
_.B.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var V;if((V=this.manager)!=null){var l;(l=V.audioPlayer)==null||pL(l,"failure");V.setState("microphone-off");V.stop()}}else(V=this.manager)==null||V.start()};
_.B.transcriptionChanged=function(){var V,l;(((V=this.transcription)==null?0:V.low)||((l=this.transcription)==null?0:l.high))&&this.setState("transcribing",this.transcription)};
_.B.stateChanged=function(){this.setState(this.state,this.transcription)};
_.B.logDialog=function(){var V;(V=this.data)!=null&&V.trackingParams&&(V=_.x7(),_.xg(V,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=V.graftServerVe(this.data.trackingParams,void 0,5))};
_.B.getNavigationParams=function(V){var l={};if(_.z("web_yt_searchbox")){var I=MgB();I.inputMethodsTracker.add(6);I=AkB(I,15);l.gs_l=I;var H;l.oq=((H=_.y(V,_.Nv))==null?void 0:H.query)||""}else if(V=window.ytvoicesearchloggingparams){if(V=V())l.oq=V.oq,l.gs_l=V.gs_l}else _.Rw(Error("nl"));return l};
_.B.closeDialog=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.B.setState=function(V,l){if(this.data){var I=this.data,H={};switch(V){case "listening":H={headerText:I.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "timeout":H={headerText:I.promptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,microphoneAriaLabel:I.promptMicrophoneLabel};break;case "microphone-off":H={headerText:I.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,
microphoneAriaLabel:I.promptMicrophoneLabel};break;case "transcribing":(l==null?0:l.low)||(l==null?0:l.high)?H={transcriptionLow:l==null?void 0:l.low,transcriptionHigh:l==null?void 0:l.high,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel}:H={headerText:I.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "processing":H={headerText:I.loadingHeader,microphoneState:"processing",microphoneAriaLabel:I.microphoneButtonAriaLabel};
break;case "offline":H={headerText:I.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:I.connectionErrorMicrophoneLabel,microphoneAriaLabel:I.connectionErrorMicrophoneLabel};break;case "permission":H={headerText:I.permissionsHeader,bodyLine1:I.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:I.permissionsSubtext};break;case "permission-denied":H={headerText:I.disabledHeader,bodyLine1:I.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:I.disabledSubtext}}H.className=
V;this.speechOverlayState=H;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.B.setMicrophoneState=function(V){var l=this.isLevelAnimating;this.isLevelAnimating=V==="speaking";!l&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=V==="processing"&&!this.noAnimations};
_.B.setClass=function(V){this.speechOverlayClassName&&_.fY(this.hostElement,this.speechOverlayClassName,!1);V&&(this.speechOverlayClassName=V,_.fY(this.hostElement,V,!0))};
_.B.runLevelAnimation=function(){var V=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var l=1+Math.random()*.75,I=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+I/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+l+")");_.r0.addJob(function(){V.runLevelAnimation()},3,I)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
var rG=vSQ;rG.prototype.stateChanged=rG.prototype.stateChanged;rG.prototype.transcriptionChanged=rG.prototype.transcriptionChanged;rG.prototype.onPopupClosed=rG.prototype.onPopupClosed;rG.prototype.dataChanged=rG.prototype.dataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],rG.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],rG.prototype,"rendererStamperBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],rG.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],rG.prototype,"eventForwardingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],rG.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],rG.prototype,"speechOverlayState",void 0);
_.O([_.q(),_.a("design:type",Object)],rG.prototype,"microphoneSpinnerActive",void 0);_.O([_.q({type:_.z("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.a("design:type",Object)],rG.prototype,"noAnimations",void 0);_.O([_.q({selector:function(V){var l;return(l=V.voiceSearch)==null?void 0:l.transcription}}),
_.a("design:type",Object)],rG.prototype,"transcription",void 0);_.O([_.q({selector:function(V){var l;return(l=V.voiceSearch)==null?void 0:l.overlay}}),
_.a("design:type",String)],rG.prototype,"state",void 0);_.O([_.q(),_.a("design:type",Object)],rG.prototype,"boundExitClick",void 0);_.O([_.Ij("#microphone-levels"),_.a("design:type",HTMLElement)],rG.prototype,"level",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rG.prototype,"dataChanged",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rG.prototype,"onPopupClosed",null);
_.O([_.xs("transcription"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rG.prototype,"transcriptionChanged",null);_.O([_.xs("state"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rG.prototype,"stateChanged",null);rG=_.O([_.A({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],rG);
_.u(rG,"ytd-voice-search-dialog-renderer",function(){if(ES6!==void 0)return ES6;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return ES6=V},{mode:1});var O$E;var C7B=function(){var V=_.M.apply(this,arguments)||this;V.isOverlay=!1;V.hidden=!1;return V};
_.t(C7B,_.M);_.B=C7B.prototype;_.B.onPopupClosed=function(){this.toggleIconState(!1)};
_.B.computeIcon=function(){var V,l,I;return(l=_.y((V=this.data)==null?void 0:V.icon,$CI))==null?void 0:(I=l.icon)==null?void 0:I.iconType};
_.B.computeIconBadgeShape=function(){var V;return{iconBadgeType:"cart",iconBadgeText:(V=this.iconBadgeEntity)==null?void 0:V.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.B.onClick=function(){var V;(V=this.data)!=null&&V.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.B.computeHidden=function(V){return!V};
_.B.toggleIconState=function(V){this.iconButton&&(this.iconButton.pressed=V)};
var Gt=C7B;Gt.prototype.onPopupClosed=Gt.prototype.onPopupClosed;_.O([_.R(_.DS),_.a("design:type",Object)],Gt.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Gt.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Gt.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Gt.prototype,"isOverlay",void 0);
_.O([_.q({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.a("design:type",Object)],Gt.prototype,"hidden",void 0);_.O([_.q({selectorArgs:["data.iconBadgeEntityKey"],selector:function(V,l){return _.nW(V.entities,"iconBadgeEntity",l)}}),
_.a("design:type",Object)],Gt.prototype,"iconBadgeEntity",void 0);_.O([_.Ij("yt-icon-button"),_.a("design:type",HTMLButtonElement)],Gt.prototype,"iconButton",void 0);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gt.prototype,"onPopupClosed",null);Gt=_.O([_.A({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Gt);
_.u(Gt,"ytd-icon-badge-topbar-button-renderer",function(){if(O$E!==void 0)return O$E;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return O$E=V},{mode:1});var adr;var fd2=function(){var V=_.M.apply(this,arguments)||this;V.premiumOptions=[];V.darkerDarkTheme=_.z("web_darker_dark_theme");return V};
_.t(fd2,_.M);fd2.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.vI.Object.defineProperties(fd2.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
var E8=fd2;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],E8.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Array)],E8.prototype,"premiumOptions",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],E8.prototype,"darkerDarkTheme",void 0);_.O([_.Q("premiumOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],E8.prototype,"hasPremiumOptions",null);
E8=_.O([_.A({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],E8);
_.u(E8,"ytd-offline-promo-content",function(){if(adr!==void 0)return adr;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return adr=V},{mode:1});var gSP;var JA=function(){var V=_.M.apply(this,arguments)||this;V.premiumOptions=[];return V};
_.t(JA,_.M);JA.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var V;this.premiumOptions=$ag((V=this.data)==null?void 0:V.formats)};
JA.prototype.onClickSubmit=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var V;(V=_.u8())==null||V.pause()};
JA.prototype.attached=function(){this.JSC$18287_scroller&&(this.JSC$18287_scroller.dialogElement=this.hostElement.parentNode)};
_.vI.Object.defineProperties(JA.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
var oW=JA;oW.prototype.dataChanged=oW.prototype.dataChanged;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],oW.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],oW.prototype,"data",void 0);
_.O([_.q({computed:"computeIcon_(data.headersIcon)",value:""}),_.a("design:type",String)],oW.prototype,"headersIcon",void 0);_.O([_.q(),_.a("design:type",Array)],oW.prototype,"premiumOptions",void 0);_.O([_.Ij("#scroller"),_.a("design:type",Object)],oW.prototype,"JSC$18287_scroller",void 0);_.O([_.Q("headersIcon"),_.a("design:type",Object),_.a("design:paramtypes",[])],oW.prototype,"showIcon",null);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oW.prototype,"dataChanged",null);oW=_.O([_.A({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],oW);
_.u(oW,"ytd-offline-promo-renderer",function(){if(gSP!==void 0)return gSP;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return gSP=V},{mode:1});var m2E;var i$V=function(){var V=_.M.apply(this,arguments)||this;V.playbackPauseInterval=NaN;V.isLoading=!1;V.hasError=!1;V.dialogClass="";V.youtubeLabel=_.LT("LOGO_ALT_LABEL",{},"YouTube Home");V.logoName="yt-logos-ext:yt-logo-updated";V.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return V};
_.t(i$V,_.M);_.B=i$V.prototype;_.B.onDataChange=function(){var V;if(this.showEOMV1Text=!((V=this.data)==null||!V.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.B.attached=function(){this.pausePlayer()};
_.B.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.B.handleLangSelect=function(V){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[V.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.B.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.B.handleSaveConsent=function(V){var l=this;this.showLoadingSpinner();this.showLoadingSpinner();Ci2(_.y(V,U6u)).catch(function(I){_.hF(new _.Yd("Something went wrong when save consent "+(I.message?I.message:I)+"."));l.hideLoadingSpinner();l.showErrorMessage()})};
_.B.handleDisablePersonalization=function(V){var l=this;this.showLoadingSpinner();aAP(_.y(V,x6P)).then(function(){l.dialog.close();l.resumePlayer()}).catch(function(I){_.hF(new _.Yd("Something went wrong when disable personalization "+(I.message?I.message:I)+"."));
l.hideLoadingSpinner();l.showErrorMessage()})};
_.B.showLoadingSpinner=function(){var V=this;this.showSpinnerJobId=_.r0.addLowPriorityJob(function(){V.isLoading=!0},500)};
_.B.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.r0.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.B.showErrorMessage=function(){var V=this;this.hasError=!0;_.r0.addLowPriorityJob(function(){V.hasError=!1},2E3)};
_.B.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Hx(function(){try{var V=_.u8();V&&V.pause()}catch(l){}},100))};
_.B.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var V=_.u8();V&&V.play()}catch(l){}};
_.vI.Object.defineProperties(i$V.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.eomV1Text)return[];V=[];for(var l=["SHIELD","WARNING","BAR_CHART"],I=this.data.eomV1Text.essentialCookieMsg.items,H=0;H<l.length&&H<I.length;H++)V.push({icon:l[H],text:I[H]});return V}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var V;if((V=this.data)==null||!V.eomV1Text)return[];V=[];for(var l=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],I=this.data.eomV1Text.nonEssentialCookieMsg.items,H=0;H<l.length&&H<I.length;H++)V.push({icon:l[H],text:I[H]});return V}}});
var hA=i$V;hA.prototype.onDataChange=hA.prototype.onDataChange;_.O([_.q(),_.a("design:type",Object)],hA.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],hA.prototype,"showEOMV1Text",void 0);_.O([_.q(),_.a("design:type",Object)],hA.prototype,"isLoading",void 0);_.O([_.q(),_.a("design:type",Object)],hA.prototype,"hasError",void 0);_.O([_.q(),_.a("design:type",Number)],hA.prototype,"showSpinnerJobId",void 0);_.O([_.q(),_.a("design:type",Object)],hA.prototype,"dialogClass",void 0);
_.O([_.Ij("#dialog"),_.a("design:type",Object)],hA.prototype,"dialog",void 0);_.O([_.Ij("#cb-header"),_.a("design:type",HTMLElement)],hA.prototype,"header",void 0);_.O([_.Ij("#lang-select"),_.a("design:type",HTMLElement)],hA.prototype,"langSelect",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],hA.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],hA.prototype,"ytComponentBehavior",void 0);
_.O([_.q(),_.a("design:type",String)],hA.prototype,"youtubeLabel",void 0);_.O([_.q(),_.a("design:type",Object)],hA.prototype,"logoName",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hA.prototype,"onDataChange",null);_.O([_.Q("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],hA.prototype,"eomEssentialCookieMsgItems",null);
_.O([_.Q("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],hA.prototype,"eomNonEssentialCookieMsgItems",null);hA=_.O([_.A({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],hA);
_.u(hA,"ytd-consent-bump-v2-lightbox",function(){if(m2E!==void 0)return m2E;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return m2E=V},{mode:1});var VB6;var l26=function(){return _.M.apply(this,arguments)||this};
_.t(l26,_.M);l26.prototype.ready=function(){if(!_.Nl()||wJE)var V=!0;else wJE=!0,V=!1;V||(V=document.querySelector("ytd-app"),V||(V=document.body),this.internalLightBox=_.h(V).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
var I2Y=l26;_.O([_.q(),_.a("design:type",Object)],I2Y.prototype,"data",void 0);_.O([_.Ij("#lightbox"),_.a("design:type",Object)],I2Y.prototype,"lightBox",void 0);I2Y=_.O([_.A({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],I2Y);
_.u(I2Y,"ytd-consent-bump-v2-renderer",function(){if(VB6!==void 0)return VB6;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return VB6=V},{mode:1});var H4Q;var Tih;var Big;var xPh=function(){var V=_.M.apply(this,arguments)||this;V.ephemeralActionsEnabled=_.z("web_ephemeral_actions");return V};
_.t(xPh,_.M);_.B=xPh.prototype;_.B.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&ECE(this.toastManager,this.toastType)};
_.B.open=function(V){this.toast&&(this.ephemeralAction&&_.F().resolve(_.n$).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=V!=null?V:0,this.toastManager.enqueue(this.toast,V)):this.toast.open())};
_.B.close=function(V){var l;(l=this.toast)==null||l.close();this.toastManager&&V===1&&ECE(this.toastManager,V)};
_.B.refit=function(){var V;(V=this.toast)==null||V.refit()};
_.B.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var V;(V=this.toast)==null||V.close()}};
_.B.setVerticalOffset=function(V){this.toast&&(this.toast.verticalOffset=V,this.toast.fit())};
_.B.computeButtonClass_=function(V){return V?"toast-button":""};
_.B.computeText_=function(V){return _.A5(V)};
_.B.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.qX("toast-opened-changed",this.toastOpened))};
_.B.updateToastOpenedFromBinding=function(V){this.toastOpened=V.detail.value};
_.vI.Object.defineProperties(xPh.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var V,l,I=(V=this.data)==null?void 0:(l=V.actionButton)==null?void 0:l.buttonRenderer;return(I==null?void 0:I.command)||(I==null?void 0:I.serviceEndpoint)||(I==null?void 0:I.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 V=[],l;((l=this.data)==null?0:l.responseText)&&V.push(_.A5(this.data.responseText));var I;((I=this.data)==null?0:I.subText)&&V.push(_.A5(this.data.subText));var H,T;if((H=this.data)==null?0:(T=H.actionButton)==null?0:T.buttonRenderer){var x,n;V.push(((x=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(n=x.accessibilityData)==null?void 0:n.label)||_.A5(this.data.actionButton.buttonRenderer.text))}return V.filter(function(w){return w}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var V,l;return(l=(V=this.toast)==null?void 0:V.opened)!=null?l:!1}}});
var PP=xPh;PP.prototype.toastOpenedChangedForBinding=PP.prototype.toastOpenedChangedForBinding;PP.prototype.toastOpenedChanged=PP.prototype.toastOpenedChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],PP.prototype,"ytEventForwardingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],PP.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],PP.prototype,"duration",void 0);_.O([_.q(),_.a("design:type",Number)],PP.prototype,"toastType",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],PP.prototype,"useCloseButton",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],PP.prototype,"closeToastOnActionButtonClick",void 0);_.O([_.q({value:function(){return _.LT("SBOX_INAPPROPRIATE_CANCEL")}}),
_.a("design:type",String)],PP.prototype,"closeButtonAriaLabel",void 0);_.O([_.q(),_.a("design:type",Boolean)],PP.prototype,"toastOpened",void 0);_.O([_.q(),_.a("design:type",Boolean)],PP.prototype,"hasOpened",void 0);_.O([_.q(),_.a("design:type",Object)],PP.prototype,"ephemeralActionsEnabled",void 0);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],PP.prototype,"command",null);
_.O([_.Q("ephemeralActionsEnabled","labelText","command","duration"),_.a("design:type",Object),_.a("design:paramtypes",[])],PP.prototype,"ephemeralAction",null);_.O([_.Q("ephemeralAction"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PP.prototype,"hasEphemeralAction",null);_.O([_.Ij("#toast"),_.a("design:type",Object)],PP.prototype,"toast",void 0);_.O([_.q({value:function(){return{style:"call-to-action-inverse"}}}),
_.a("design:type",Object)],PP.prototype,"buttonOverrides",void 0);_.O([_.q({value:{style:"mono-inverse"}}),_.a("design:type",Object)],PP.prototype,"closeButtonOverrides",void 0);_.O([_.q({value:function(){return _.F().resolve(_.Cs(_.vig))}}),
_.a("design:type",Object)],PP.prototype,"toastManager",void 0);_.O([_.Q("data.responseText","data.subText","data.actionButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],PP.prototype,"labelText",null);_.O([_.b("toastOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PP.prototype,"toastOpenedChanged",null);
_.O([_.b("toastOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PP.prototype,"toastOpenedChangedForBinding",null);PP=_.O([_.Lm({is:"yt-notification-action-renderer",disableElementRegistration:!0})],PP);
_.u(PP,"yt-notification-action-renderer",function(){if(Big===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Tih===void 0&&(Tih=document.createElement("template"));var H=Tih;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Big=V}V=Big;return V},{mode:2});var UPY=function(){var V=_.M.apply(this,arguments)||this;V.duration=4E3;V.downloadingCount=0;V.downloadedCount=0;V.downloadingOnlySmartDownloads=!1;V.sessionTotalDownloads=0;V.sessionDownloaded=0;V.previousSessionsDownloaded=0;V.totalDownloadPercentage=0;V.currentDownloadProgress=0;V.currentDownloadPercentage=0;V.isLeaderTab=!0;V.isFullScreen=!1;V.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};V.boundBeforeUnload=function(l){V.isLeaderTab&&V.downloadingCount>0&&(l.preventDefault(),
l.returnValue=!0)};
return V};
_.t(UPY,_.M);_.B=UPY.prototype;
_.B.open=function(){this.updateDownloadState();if(this.data){var V=this.sessionDownloaded+1,l=this.sessionTotalDownloads>1?_.LT("VIDEOS_DOWNLOADING_RATIO",{downloaded:V.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+V+"/"+this.sessionTotalDownloads):_.LT("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(l=this.sessionTotalDownloads>1?_.LT("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:V.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
V+"/"+this.sessionTotalDownloads):_.LT("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));V=this.isLeaderTab?_.LT("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.A5(this.data.responseText)!==l||_.A5(this.data.subText)!==V)this.set("data.responseText",_.pW(l)),this.set("data.subText",_.pW(V)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.B.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.B.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.B.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.B.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var V=this.downloadedCount-this.previousSessionsDownloaded;V<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-V);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.B.handleFullscreenChange=function(V){(this.isFullScreen=V)||this.updatePopup()};
var DT=UPY;DT.prototype.updateCurrentDownloadProgress=DT.prototype.updateCurrentDownloadProgress;DT.prototype.updatePopup=DT.prototype.updatePopup;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],DT.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],DT.prototype,"ytEventForwardingBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],DT.prototype,"actionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],DT.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],DT.prototype,"duration",void 0);_.O([_.q({selector:function(V){return _.QGy(V.entities).length}}),
_.a("design:type",Object)],DT.prototype,"downloadingCount",void 0);_.O([_.q({selector:TqY}),_.a("design:type",Object)],DT.prototype,"downloadedCount",void 0);_.O([_.q({selector:function(V){var l=_.QGy(V.entities);return HaE(V.entities,l)}}),
_.a("design:type",Object)],DT.prototype,"downloadingOnlySmartDownloads",void 0);_.O([_.q(),_.a("design:type",Object)],DT.prototype,"sessionTotalDownloads",void 0);_.O([_.q(),_.a("design:type",Object)],DT.prototype,"sessionDownloaded",void 0);_.O([_.q(),_.a("design:type",Object)],DT.prototype,"previousSessionsDownloaded",void 0);_.O([_.q(),_.a("design:type",Object)],DT.prototype,"totalDownloadPercentage",void 0);
_.O([_.q({selector:function(V){var l;V=(l=_.QGy(V.entities))!=null?l:[];return V.length>0?_.rry(V.slice(-1)):0}}),
_.a("design:type",Object)],DT.prototype,"currentDownloadProgress",void 0);_.O([_.q(),_.a("design:type",Object)],DT.prototype,"currentDownloadPercentage",void 0);_.O([_.q({selector:_.qgt}),_.a("design:type",Object)],DT.prototype,"isLeaderTab",void 0);_.O([_.Ij("yt-notification-action-renderer"),_.a("design:type",Object)],DT.prototype,"notificationActionRenderer",void 0);
_.O([_.xs("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DT.prototype,"updatePopup",null);_.O([_.xs("currentDownloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DT.prototype,"updateCurrentDownloadProgress",null);DT=_.O([_.A({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],DT);
_.u(DT,"ytd-video-download-toast-renderer",function(){if(H4Q!==void 0)return H4Q;var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return H4Q=V},{mode:1});var n56;var $Pg;var dPE=function(){return _.M.apply(this,arguments)||this};
_.t(dPE,_.M);dPE.prototype.computeIsRedLogo=function(V,l){!V&&l&&(V=l);return V==="YOUTUBE_RED_LOGO"||V==="YOUTUBE_PREMIUM_LOGO"};
dPE.prototype.computeLogoName=function(V){V=this.componentBehavior.computeIcon_(V);return V===""?"yt-logos-ext:yt-logo-updated":V};
var ZT=dPE;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],ZT.prototype,"componentBehavior",void 0);_.O([_.q({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.a("design:type",Boolean)],ZT.prototype,"isRedLogo",void 0);_.O([_.q({computed:"computeLogoName(data)"}),_.a("design:type",String)],ZT.prototype,"logoName",void 0);_.O([_.q({value:{}}),_.a("design:type",Object)],ZT.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],ZT.prototype,"logoType",void 0);ZT=_.O([_.A({disableElementRegistration:!0,is:"ytd-logo"})],ZT);
_.u(ZT,"ytd-logo",function(){if($Pg!==void 0)return $Pg;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return $Pg=V},{mode:_.Cm("kevlar_poly_si_batch_j074")?1:2});var wMV=function(){var V=_.M.apply(this,arguments)||this;V.animationRef={};return V};
_.t(wMV,_.M);_.B=wMV.prototype;_.B.attached=function(){document.addEventListener("yt-navigate-finish",_.VP(this,this.logYoodle))};
_.B.detached=function(){document.removeEventListener("yt-navigate-finish",_.VP(this,this.logYoodle))};
_.B.logYoodle=function(){var V,l;if((V=this.data)==null?0:(l=V.loggingDirectives)==null?0:l.trackingParams)this.ytRendererBehavior.markDirty(),_.x7().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.B.computeHideImg=function(V,l){return!!V||!!l};
_.B.computeHideYtdLogo=function(V,l){return!V||!!l};
_.B.computeHideLottie=function(V){return!V};
_.B.computeIsRedLogo=function(V){return V==="YOUTUBE_RED_LOGO"||V==="YOUTUBE_PREMIUM_LOGO"};
_.B.renderLogoEntity=function(){var V=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),l=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),I=this.getLogoTitleText(this.data),H=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==V&&(this.url=V);this.animatedUrl!==l&&(this.animatedUrl=l);this.logoTitleText!==I&&(this.logoTitleText=I);this.lottieUrl!==H&&(this.lottieUrl=H,this.lottiePlayerProps=this.computeLottiePlayerProps(H))};
_.B.getSanitizedThumbnail=function(V){return V&&V.thumbnails?_.aZN(V.thumbnails,122)||"":""};
_.B.getThumbnailUrl=function(V,l){if(!l)return"";var I,H;V=V?(I=l.darkThemeLogo)==null?void 0:I.thumbnail:(H=l.lightThemeLogo)==null?void 0:H.thumbnail;return this.getSanitizedThumbnail(V)};
_.B.getAnimatedThumbnailUrl=function(V,l){return l?this.getSanitizedThumbnail(V?l.darkThemeAnimatedLogo:l.lightThemeAnimatedLogo):""};
_.B.getLogoTitleText=function(V){if(V)return _.A5(V.tooltipText)};
_.B.computeLogoIcon=function(V,l){if(l){var I,H;return V?(I=l.darkThemeLogo)==null?void 0:I.icon:(H=l.lightThemeLogo)==null?void 0:H.icon}};
_.B.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.B.getLottieUrl=function(V,l){var I,H,T,x;return V?l==null?void 0:(I=l.darkThemeLogo)==null?void 0:(H=I.lottieAnimation)==null?void 0:H.url:l==null?void 0:(T=l.lightThemeLogo)==null?void 0:(x=T.lottieAnimation)==null?void 0:x.url};
_.B.computeLottiePlayerProps=function(V){if(V){var l;if((l=this.animationRef)==null?0:l.lottieEl){var I;(I=this.animationRef)==null||I.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:V,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.B.onLottieError=function(){this.data&&this.lottieUrl&&_.B$(this.hostElement,"yoodle-error")};
_.B.onImgError=function(){this.data&&!this.lottieUrl&&_.B$(this.hostElement,"yoodle-error")};
var Sm=wMV;Sm.prototype.playAnimation=Sm.prototype.playAnimation;Sm.prototype.renderLogoEntity=Sm.prototype.renderLogoEntity;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Sm.prototype,"data",void 0);_.O([_.q({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.a("design:type",Boolean)],Sm.prototype,"hideImg",void 0);
_.O([_.q({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.a("design:type",Boolean)],Sm.prototype,"hideYtdLogo",void 0);_.O([_.q({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.a("design:type",Boolean)],Sm.prototype,"hideLottie",void 0);_.O([_.q({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.a("design:type",Boolean)],Sm.prototype,"isRedLogo",void 0);
_.O([_.q(),_.a("design:type",Boolean)],Sm.prototype,"useDarkThemeYoodle",void 0);_.O([_.q(),_.a("design:type",String)],Sm.prototype,"url",void 0);_.O([_.q(),_.a("design:type",String)],Sm.prototype,"animatedUrl",void 0);_.O([_.q(),_.a("design:type",String)],Sm.prototype,"logoTitleText",void 0);_.O([_.q({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.a("design:type",Object)],Sm.prototype,"logoIcon",void 0);_.O([_.q(),_.a("design:type",Object)],Sm.prototype,"logoType",void 0);
_.O([_.q(),_.a("design:type",String)],Sm.prototype,"lottieUrl",void 0);_.O([_.q(),_.a("design:type",Object)],Sm.prototype,"lottiePlayerProps",void 0);_.O([_.q(),_.a("design:type",Object)],Sm.prototype,"animationRef",void 0);_.O([_.b("data"),_.b("useDarkThemeYoodle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sm.prototype,"renderLogoEntity",null);
_.O([_.W("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Sm.prototype,"playAnimation",null);Sm=_.O([_.A({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Sm);
_.u(Sm,"ytd-yoodle-renderer",function(){if(n56!==void 0)return n56;var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return n56=V},{mode:_.Cm("kevlar_poly_si_batch_j074")?1:2});var NiV;var KZP;var jhB=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return V};
_.t(jhB,_.M);_.B=jhB.prototype;_.B.onYoodleError=function(){_.z("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.B.computeLogoName=function(V){V=this.componentBehavior.computeIcon_(V);return V===""?"yt-logos-ext:yt-logo-updated":V};
_.B.computeTitle=function(V,l,I){return I&&(l==null?0:l.tooltipText)?_.A5(l.tooltipText):_.A5(V)};
_.B.computeAriaLabel=function(V,l,I){return I&&(l==null?0:l.tooltipText)?_.A5(V):""};
_.B.computeShowYoodle=function(V,l,I){return!V||!l&&!!I&&!_.EL.isEmpty(I)};
_.B.onNavigateHomeAction=function(){if(_.z("kevlar_miniplayer_navigate_home_from_app_killswitch")){var V;(V=_.h(this.hostElement).querySelector(".yt-simple-endpoint"))==null||V.click()}};
_.B.computeLogoHref=function(V,l,I){var H;(I==null?0:I.onTapCommand)?H=this.componentBehavior.computeHref_(I.onTapCommand):V&&(H=this.componentBehavior.computeHref_(V));return H?H:l};
_.B.computeCommand=function(V,l){return(l==null?void 0:l.onTapCommand)||V};
_.B.getEndpointForm=function(){if(_.z("kevlar_topbar_disable_cache_only_home")){var V=_.F().resolve(_.oU),l=d7E(V.getState())||"";V=_.KXy(V.getState())||"";return{disableCache:l==="ytd-browse"&&V==="home"}}return{disableCache:!0}};
var RW=jhB;RW.prototype.onYoodleError=RW.prototype.onYoodleError;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],RW.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],RW.prototype,"componentBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],RW.prototype,"ytdReduxBehavior",void 0);
_.O([_.q(),_.a("design:type",Object)],RW.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],RW.prototype,"countryCode",void 0);_.O([_.q({selectorArgs:["data.overrideEntityKey"],selector:function(V,l){return _.nW(V.entities,"logoEntity",l)}}),
_.a("design:type",Object)],RW.prototype,"logoEntity",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.a("design:type",Boolean)],RW.prototype,"showYoodle",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],RW.prototype,"yoodleError",void 0);_.O([_.q({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.a("design:type",String)],RW.prototype,"titleText",void 0);
_.O([_.q({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.a("design:type",String)],RW.prototype,"ariaLabelText",void 0);_.O([_.q({value:"/"}),_.a("design:type",String)],RW.prototype,"defaultEndpointUrl",void 0);_.O([_.q({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.a("design:type",String)],RW.prototype,"endpointUrl",void 0);
_.O([_.q({computed:"computeCommand(data.endpoint, logoEntity)"}),_.a("design:type",String)],RW.prototype,"command",void 0);_.O([_.q(),_.a("design:type",Object)],RW.prototype,"logoType",void 0);_.O([_.q({}),_.a("design:type",Boolean)],RW.prototype,"useDarkThemeYoodle",void 0);_.O([_.W("yoodle-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],RW.prototype,"onYoodleError",null);RW=_.O([_.A({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],RW);
_.u(RW,"ytd-topbar-logo-renderer",function(){if(KZP!==void 0)return KZP;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return KZP=V},{mode:_.Cm("kevlar_poly_si_batch_j027")?1:2});var YK6=0;var LZ2=_.A_.SEARCH_APPEND_LABEL,eVb=_.A_.SUGGESTION_NEW_VIDEOS_TEXT,kkP=_.A_.SUGGESTION_THUMBNAIL_LABEL,FZr=_.W1(function(V){function l(oi){var lZ,st;return _.d(function(jo){if(jo.nextAddress==1)return lZ=new Request(oi),_.jd(jo,2),_.K(jo,fetch(lZ,{credentials:"include"}),4);if(jo.nextAddress!=2)return uZ(!0),_.Rv(jo,0);st=_.kE(jo);_.hF(st);_.FU(jo)})}
var I=V.isHighlighted;var H=V.suggestion;var T=V.onClickCallback;var x=V.onHoverUpdateCallback;var n=V.labels;var w=V.queryBuilderFunction;var N=V.onRemoveCallback;var L=V.suggestionIndex;var e=V.generateUniqueId;var k=V.highlightedId;var X=V.useScrollMargin;var r=V.isKeyboardMode;var E=null,D=null,Z=_.sZ(),S=_.sZ(),p=_.pO(function(oi){oi&&_.WA(237477,oi,D,function(lZ){D=lZ})}),Vf=_.pO(function(oi){oi&&_.WA(237477,oi,D,function(lZ){D=lZ})}),C=_.Bu(function(oi){if((oi==null?void 0:oi.button)===2)return oi.preventDefault(),
!1;
var lZ=_.oa();lZ&&E&&_.v$(lZ,E,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var st;T(oi,H().text,H().index,oi==null?void 0:(st=oi.detail)==null?void 0:st.wasSelectedByKeyboard);return!1}),By=function(){return H().type===35},lN=function(){return _.z("desktop_enable_single_suggestion_highlight")},wW=function(){return _.g7("desktop_suggestions_panel_row_height")||0},o1=function(){var oi;
return _.z("desktop_enable_new_video_metadata")&&((oi=H())==null?void 0:oi.hasNewVideo)===!0},h1=function(){return _.z("desktop_enable_visual_suggest")},ec=function(){return lN()?(I==null?void 0:I())||Dv()&&!(r==null?0:r()):(I==null?void 0:I())||Dv()},Zg=function(){var oi=_.h6("SBOX_SETTINGS");
return By()&&!(oi==null?0:oi.HIDE_REMOVE_LINK)},Va=function(){return ck6(H())},wb,CK=!((wb=_.F().resolve(_.Cs(_.DA)))==null||!wb()),CZ=function(){return By()?"ARROW_TIME":"SEARCH"},ME=function(){return n==null?void 0:n().SUGGESTION_DISMISS_LABEL},Hw=function(){return n==null?void 0:n().SUGGESTION_DISMISSED_LABEL};
wb=_.U(_.xi(!1,void 0,"l3epFd"));V=wb.next().value;var uZ=wb.next().value;wb=_.U(_.xi(!1,void 0,"IdYnHc"));var EN=wb.next().value,ya=wb.next().value,Dv=EN,Tf=_.Bu(function(){w(S.value.innerText);return!1}),Oq=_.Bu(function(oi){oi.preventDefault();
return!1}),Ut=_.Bu(function(oi){var lZ=H().text,st=_.h6("SBOX_SETTINGS"),jo="https://"+(st.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
jo+="&delq="+encodeURIComponent(lZ);(lZ=st==null?void 0:st.PSUGGEST_TOKEN)&&(jo+="&tok="+lZ);(st=st==null?void 0:st.SESSION_INDEX)&&(jo+="&authuser="+st);l(jo);oi.preventDefault();(oi=_.oa())&&D&&_.v$(oi,D,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");N(L==null?void 0:L());return!1}),BY=_.Bu(function(){if(lN()&&(r==null?0:r()))return!1;
ya(!0);x(!0);return!1}),ON=_.Bu(function(){ya(!1);
x(!1);return!1});
wb=_.U(_.xi("",void 0,"bHTG2e"));var vY=wb.next().value,LZ=wb.next().value;_.kG(function(){Zg()&&LZ(e==null?void 0:e(L==null?void 0:L()));Z.value&&_.WA(12453,Z.value,E,function(oi){E=oi})});
return _.Y(_.NS,{cond:V,then:function(){var oi={};return _.Y("div",{class:_.ii("ytSuggestionComponentRemovedText",(oi.ytSuggestionComponentLargerRemovedText=function(){return h1()},oi)),
style:function(){return wW()>0?"height: "+wW()+"px;":""},
role:"button"},Hw)},
else:function(){var oi={},lZ={};return _.Y("div",{class:_.ii("ytSuggestionComponentSuggestion",(oi.ytSuggestionComponentSuggestionHover=function(){return!lN()},oi.ytSuggestionComponentHighlighted=ec,oi.ytSuggestionComponentPersonalizedSuggestion=By,oi.ytSuggestionComponentMweb=!1,oi.ytSuggestionComponentLargerSuggestion=function(){return o1()||h1()},oi.ytSuggestionComponentThumbnailSuggestion=function(){return h1()},oi.ytSuggestionComponentRoundedSuggestion=function(){return _.z("desktop_enable_scrollable_suggestions_panel")&&
_.z("desktop_enable_suggestions_panel_padding")},oi)),
style:function(){return wW()>0?"height: "+wW()+"px;":""},
role:"presentation","on:mousedown":C,"on:mouseover":BY,"on:mouseout":ON,el:Z},_.Y("div",{class:_.ii("ytSuggestionComponentText",(lZ.ytSuggestionComponentScrollMargin=X,lZ)),"aria-label":function(){return o1()?H().text+" "+eVb:H().text},
id:function(){return e==null?void 0:e(L==null?void 0:L())},
"on:mousedown":C,role:"option"},_.Y(_.NS,{cond:function(){return H().type!==33},
then:function(){return _.Y(_.dq,{icon:CZ,className:"ytSuggestionComponentIcon"})}}),_.Y("div",{class:"ytSuggestionComponentLeftContainer"},_.Y("span",{el:S,
role:"button",tabindex:0},_.Y(_.Ks,{each:Va},function(st){return st.bold?_.Y("span",{class:"ytSuggestionComponentBold"},st.text):_.Y("span",null,st.text)})),_.Y(_.NS,{cond:function(){return o1()},
then:function(){return _.Y("div",{class:"ytSuggestionComponentNewVideoContainer"},_.Y("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.Y("div",{class:"ytSuggestionComponentNewVideoText"},eVb))}}))),_.Y("div",{class:"ytSuggestionComponentRightContainer"},_.Y(_.NS,{cond:function(){return h1()&&H().visualSuggestUrl!==void 0},
then:function(){return _.Y("img",{"aria-label":kkP,class:"ytSuggestionComponentvisualSuggestThumbnail",src:function(){return H().visualSuggestUrl}})}}),_.Y(_.YG,null,_.Y(_.jN,{when:function(){return h1()&&Zg()}},function(){var st={};
return _.Y("button",{class:_.ii("ytSuggestionComponentRemoveLinkClearButton",(st.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return vY()&&vY()===(k==null?void 0:k())},st.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!ec()},st)),
el:Vf,"on:mousedown":Ut,"aria-label":ME,id:function(){return vY()}},_.Y(_.dq,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.Y(_.jN,{when:function(){return!(h1()&&H().visualSuggestUrl!==void 0)&&Zg()}},function(){var st={};
return _.Y("a",{class:_.ii("ytSuggestionComponentRemoveLink",(st.ytSuggestionComponentRemoveLinkDark=CK,st.ytSuggestionComponentRemoveLinkSelected=function(){return vY()&&vY()===(k==null?void 0:k())},st)),
el:p,"on:mousedown":Ut,"aria-label":ME,tabindex:0,role:"button",id:function(){return vY()}},ME)}),_.Y(_.jN,{when:function(){return!1}},function(){return _.Y("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Tf,"on:mousedown":Oq,role:"button","aria-label":LZ2},_.Y(_.dq,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Nf");var XMI=_.W1(function(){var V=_.Bu(function(){MgB().inputMethodsTracker.add(3);var l,I=(l=_.h6("SBOX_SETTINGS"))==null?void 0:l.REQUEST_LANGUAGE;if(I)return _.Ra("//www.google.com/textinputassistant/14/"+I+"_tia.js"),!1});
return _.Y("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.Y("button",{class:"ytdTextInputAssistantButton","on:click":V},_.Y("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Of");var zVE=function(){this.cache=new Map},y_g=function(V){for(var l=_.U(V.cache.entries()),I=l.next();!I.done;I=l.next()){var H=_.U(I.value);
I=H.next().value;H=H.next().value;H.suggestions.some(function(T){return T.type===35})&&V.cache.delete(I)}};var tBg=_.A_.SEARCH,r_6=_.A_.SEARCH_CLEAR_LABEL,GkE=new _.Vr("FAKE_SUGGEST_RESPONSE");_.MR(_.W1(function(V){function l(){st||(st=setTimeout(function(){gb()},1E3))}
function I(xJ,$J){if(xJ.trim()){lZ=xJ;_.ow("REFINEMENTS_TUPLE",void 0);LZ=!0;var vw;$J=AkB(Oq,$J);var zE=(vw=V.searchEndpoint)==null?void 0:vw.call(V);vw=EN.value.value;zE||(zE=ruE);var y5;(y5=_.y(zE.commandMetadata,_.mK))!=null&&y5.url||(y5=Error("ol`"+JSON.stringify(zE)),_.Gr(y5),zE=ruE);y5=_.EL.unsafeClone(zE);zE=_.Z1(_.y(y5.commandMetadata,_.mK).url,"search_query",xJ);_.Qo(location.href,"sv")==="1"&&(_.y(y5,_.Nv).params="EgOAAgE%3D",zE=_.Z1(zE,"sv","1"));_.y(y5,_.Nv)&&(_.y(y5,_.Nv).query=xJ);
zE=zE.replace(/%20/g,"+");_.y(y5.commandMetadata,_.mK).url=zE;_.F().resolve(_.aw).resolveCommand(y5,{form:{tempData:{gs_l:$J,oq:vw!=null?vw:xJ}}});gb();EN.value.value=xJ;EN.value.blur();Oq.reset()}}
function H(xJ){return _.d(function($J){return $J.return(new Promise(function(vw){var zE=new XMLHttpRequest;zE.open("GET",SaB(xJ),!0);zE.withCredentials=!0;var y5=_.h6("SBOX_SETTINGS");(y5==null?0:y5.SEND_VISITOR_DATA)&&zE.setRequestHeader("X-Goog-Visitor-Id",y5==null?void 0:y5.VISITOR_DATA);zE.onload=function(){vw(zE.responseText)};
zE.onerror=function(){_.hF(Error("pl"));vw(null)};
setTimeout(function(){zE.abort()},1E4);
zE.send(null)}))})}
function T(xJ){var $J,vw,zE,y5;return _.d(function(g$){switch(g$.nextAddress){case 1:return $J={credentials:"include",headers:Z$I()},window.AbortController&&(vw=new AbortController,setTimeout(function(){vw.abort("ytsbox-suggest-timeout")},1E4),$J.signal=vw.signal),_.jd(g$,2),_.K(g$,fetch(SaB(xJ),$J),4);
case 4:zE=g$.yieldResult.text();_.Rv(g$,3);break;case 2:return y5=_.kE(g$),y5!=="ytsbox-abort-last"&&y5!=="ytsbox-suggest-timeout"&&_.hF(y5),g$.return(null);case 3:return g$.return(zE)}})}
function x(xJ){var $J,vw,zE;return _.d(function(y5){switch(y5.nextAddress){case 1:if($J=_.F().resolve(_.Cs(GkE)))return y5.return($J);vw=Date.now();l();return _.z("yt_searchbox_xhr")?_.K(y5,H(xJ),5):_.K(y5,T(xJ),4);case 4:zE=y5.yieldResult;y5.jumpTo(3);break;case 5:zE=y5.yieldResult;case 3:if(zE){st&&(clearTimeout(st),st=null);var g$=Oq,JB=vw,xz=xJ.query.length===0;JB=Date.now()-JB;xz?g$.zeroPrefixRoundTripTime=JB:(g$.JSC$18267_totalRoundTripTime+=JB,g$.maxRoundTripTime=Math.max(g$.maxRoundTripTime,
JB),xz=Math.floor(JB/100),xz>=uPg.length?++g$.roundTripTimeHistogram[9]:++g$.roundTripTimeHistogram[uPg[xz]])}return y5.return(zE)}})}
function n(xJ){var $J,vw,zE;return _.d(function(y5){if(y5.nextAddress==1)return($J=Tf.cache.get(D2Y(xJ)))?y5.return($J):_.K(y5,x(xJ),2);vw=y5.yieldResult;if(vw===null)return y5.return(null);zE=new WiY(vw);xJ.query.length===0&&zE.suggestions.length===0||Tf.cache.set(D2Y(xJ),zE);return y5.return(zE)})}
function w(xJ){var $J,vw;return _.d(function(zE){if(zE.nextAddress==1){oi=!1;var y5=lZ;y5=_.gxK()==="search"?(_.Qo(location.href,"search_query")||_.Qo(location.href,"q"))===y5:!1;$J=new P7P(xJ,y5?lZ:null);return _.K(zE,n($J),2)}vw=zE.yieldResult;if(vw===null)return zE.return();$J.query.length===0&&(Oq.zeroPrefixSuggestionCount=vw.suggestions.length);if($J.id<=jo)return Oq.outOfSyncResponseCount++,zE.return();if(document.activeElement!==EN.value)return zE.return();jo=$J.id;var g$=Oq,JB=vw.rawResponse[2]||
{};g$.experimentTriggeredBeforeFinal||(g$.experimentTriggeredBeforeFinal=g$.experimentTriggeredFinal);g$.experimentTriggeredFinal=!!JB.e;Oq.updateSuggestions(vw.suggestions);Z(-1);CZ([]);vw.suggestions!==r()&&s_(vw.suggestions.length);E(vw.suggestions);o1(vw.suggestions.length>0&&vw.suggestions[0].type===33);Dv&&(Dv.hidden=vw.suggestions.length===0,wW()?(Dv.style.minWidth="",g$=Dv.style,JB=(y5=r()[0])==null?void 0:y5.ignoredPrefix,g$.marginLeft=(JB?Math.min(JB.length*6,ya.value.offsetWidth):0).toString()+
"px"):(Dv.style.minWidth=ya.value.offsetWidth+"px",Dv.style.marginLeft="0"),kl());_.FU(zE)})}
function N(){if(!LZ)return!1;var xJ=_.h6("REFINEMENTS_TUPLE");return xJ?(xJ=xJ[1].map(function($J,vw){return new QEP([$J,0,[71]],EN.value.value,vw)}),r()!==xJ&&s_(xJ.length),CZ([]),E(xJ),Oq.updateSuggestions(xJ),LZ=!1,Dv.hidden=xJ.length===0,oi=xJ.length>0,!0):!1}
function L(){var xJ=EN.value.value;(typeof xJ==="string"||xJ instanceof String)&&xJ!==""?C(!0):C(!1)}
function e(){if(_.gxK()==="search"){var xJ=window.location.href;try{var $J=_.Qo(xJ,"search_query")||_.Qo(xJ,"q")||""}catch(vw){$J=""}$J&&(EN.value.value=$J,C(!0))}}
var k=_.U(_.xi([],void 0,"nfrtkb")),X=k.next().value;k=k.next().value;var r=X,E=k;X=_.U(_.xi(-1,void 0,"cRyFvd"));var D=X.next().value,Z=X.next().value;X=_.U(_.xi(-1,void 0,"EriPWe"));var S=X.next().value,p=X.next().value;X=_.U(_.xi(!1,void 0,"UK7opd"));var Vf=X.next().value,C=X.next().value;X=_.U(_.xi(!1,void 0,"ego0bc"));var By=X.next().value,lN=X.next().value;k=_.U(_.xi(!1,void 0,"lRwSBb"));X=k.next().value;k=k.next().value;var wW=X,o1=k;k=_.U(_.xi(!1,void 0,"gLkpXb"));X=k.next().value;var h1=
k.next().value;k=_.U(_.xi(!1,void 0,"In4Zlb"));var ec=k.next().value,Zg=k.next().value;k=_.U(_.xi(1,void 0,"pQNR0c"));var Va=k.next().value,wb=k.next().value;k=_.U(_.xi([],void 0,"EFteUe"));var CK=k.next().value,CZ=k.next().value;k=_.U(_.xi(!1,void 0,"fnEGyd"));var ME=k.next().value,Hw=k.next().value;k=_.z("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var uZ=_.sZ(),EN=_.sZ(),ya=_.sZ(),Dv,Tf=new zVE,Oq=
MgB(),Ut=_.F().resolve(_.Cs(_.DA)),BY=function(){var xJ;return((xJ=V.forceDarkMode)==null?void 0:xJ.call(V))||!(Ut==null||!Ut())},ON=function(){return _.z("desktop_enable_scrollable_suggestions_panel")},vY="i"+YK6++,LZ=!1,oi=!1,lZ="",st=null,jo=-1,gb=function(){CZ([]);
E([]);o1(!1);Dv&&(Dv.hidden=!0);st&&(clearTimeout(st),st=null);Z(-1)},Bh=function(xJ,$J){xJ.preventDefault();
Hw(!0);Dv&&(Dv.hidden=!1);var vw=D();xJ=r();var zE=CK();$J=NUb($J);vw+=$J;for(vw>=xJ.length?vw=-1:vw<-1&&(vw=xJ.length-1);vw!==-1&&(zE.includes(vw)||vw>=xJ.length||vw<0);)vw+=$J,vw>=xJ.length&&(vw=-1);Z(vw);D()>=0&&(EN.value.value=r()[D()].text,p(0),L(),xJ=D(),zE=S(),(zE=document.getElementById(zf[xJ][zE]))&&ON()&&(xJ===r().length-1?Dv.scrollTop=Dv.scrollHeight:zE.scrollIntoView({block:"nearest",inline:"start"})))};
_.AF(EN,"focus",function(xJ){if(!(xJ.relatedTarget instanceof Element&&xJ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){lN(!0);var $J;($J=V.focusCallback)==null||$J.call(V,!0);N()||(oi?Dv.hidden=!1:(_.B$(uZ.value,"yt-autonav-pause-focus",{}),w(xJ.target.value)))}});
_.AF(EN,"blur",function(xJ){if(!(xJ.relatedTarget instanceof Element&&xJ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){lN(!1);var $J;($J=V.focusCallback)==null||$J.call(V,!1);Dv.scrollTop=0;Dv.hidden=!0;_.B$(uZ.value,"yt-autonav-pause-blur",{})}});
var Zv=function(xJ){xJ=NUb(xJ);var $J;(($J=zf[D()])==null?0:$J[S()+xJ])&&p(S()+xJ)},sP=_.Bu(function(xJ){var $J=xJ.target;
switch(xJ.keyCode){case 13:xJ.preventDefault();var vw;if((vw=zf[D()])==null?0:vw[S()]){var zE;(zE=document.getElementById(zf[D()][S()]))==null||zE.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}xJ=xJ.shiftKey?4:3;vw=Oq;zE=D();vw.selectedSuggestionIndex=zE;I($J.value,xJ);break;case 27:Dv&&(Dv.hidden=!0);break;case 40:Bh(xJ,40);break;case 38:Bh(xJ,38);break;case 39:Zv(39);break;case 37:Zv(37);break;case 229:Oq.inputMethodsTracker.add(4);break;default:Oq.inputMethodsTracker.add(1),
sEY(Oq)}return!1}),JV=_.Bu(function(xJ){w(xJ.target.value);
L();ON()&&Dv&&(Dv.scrollTop=0);return!1}),sw=_.Bu(function(){Oq.inputMethodsTracker.add(2);
sEY(Oq);return!1});
_.kG(function(){if(Dv){Oq.reset();if(window.ResizeObserver){var xJ=new ResizeObserver(function(){wW()||(Dv.style.minWidth=ya.value.offsetWidth+"px")});
xJ.observe(ya.value);(new ResizeObserver(function(){kl()})).observe(Dv);
_.rx(function(){xJ.disconnect()})}e();
window.addEventListener("yt-navigate-finish",e);window.addEventListener("yt-focus-searchbox",function(){EN.value.focus()});
var $J;h1(($J=_.h6("SBOX_SETTINGS"))==null?void 0:$J.HAS_ON_SCREEN_KEYBOARD)}else _.Gr(new _.Yd("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var dp=_.Bu(function(xJ){xJ.preventDefault();I(EN.value.value,12);return!1}),PN=_.Bu(function(xJ){xJ.preventDefault();
var $J,vw;($J=EN)==null||(vw=$J.value)==null||vw.focus();var zE,y5;((zE=EN)==null?void 0:(y5=zE.value)==null?void 0:y5.value)!==""&&(EN.value.value="",EN.value.dispatchEvent(new Event("input")));return!1}),uK=_.Bu(function(){var xJ=wK6(EN.value.value,r().filter(function($J){return $J.type!==35}).map(function($J){return{label:$J.text}}));
_.xB(uZ.value,"yt-open-popup-action",[{openPopupAction:xJ},document.body]);return!1}),r$=_.Bu(function(){EN.value.focus();
return!1}),$i=function(xJ,$J,vw,zE){Oq.selectedSuggestionIndex=vw;
I($J,zE?3:1)},r7=function(xJ){EN.value.value=xJ;
EN.value.dispatchEvent(new Event("input"));Oq.inputMethodsTracker.add(5);sEY(Oq,!0)},zf=[[]],CT=function(xJ){var $J="searchbox-suggestion"+_.Sn(_.RJ);
zf[xJ].push($J);return $J},s_=function(xJ){if(r()){zf=[[]];
for(var $J=0;$J<xJ;$J++)zf.push([])}},kl=function(){if(ON()){var xJ=Dv,$J=xJ.scrollTop;
xJ=xJ.scrollHeight-xJ.clientHeight;Zg($J>=xJ);$J=Math.abs(xJ-$J);$J<=40?wb(1-(40-$J)/40):wb(1)}},Oo=function(){return"opacity: "+Va()*100+"%"},vk=_.Bu(function(){kl();
return!1}),aA=_.Bu(function(){Hw(!1);
return!1}),FJ,Sc={},bN={},eo={},xh={};
return _.Y("yt-searchbox",{class:_.ii("ytSearchboxComponentHost",(Sc.ytSearchboxComponentMweb=!1,Sc.ytSearchboxComponentDesktop=!0,Sc["yt-searchbox-filled-query"]=function(){return Vf()},Sc["ytd-masthead"]=function(){return!By()},Sc.ytSearchboxComponentHostDark=BY,Sc)),
role:"search",el:uZ,"client-ve-type":10349},_.Y("div",{el:ya,"on:click":r$,class:_.ii("ytSearchboxComponentInputBox",(bN.ytSearchboxComponentInputBoxDark=BY,bN.ytSearchboxComponentInputBoxHasFocus=By,bN))},_.Y("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":dp},_.Y(_.NS,{cond:By,then:function(){return _.Y("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.Y(_.dq,{icon:"SEARCH"}))}}),_.Y("input",{el:EN,
class:_.ii("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":vY,"aria-expanded":!((FJ=Dv)==null?0:FJ.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:input":JV,"on:keydown":sP,"on:paste":sw,placeholder:V.placeholderText,"aria-activedescendant":function(){var xJ;return(xJ=zf[D()])==null?void 0:xJ[S()]},
"aria-autocomplete":"list",role:"combobox"})),_.Y(_.NS,{cond:X,then:function(){return _.Y("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.Y(XMI,null))}}),_.Y(_.NS,{cond:Vf,
then:function(){return _.Y("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.Y("button",{class:"ytSearchboxComponentClearButton","on:click":PN,"aria-label":V.clearButtonAriaLabel||r_6},_.Y(_.dq,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.Y(_.Ka,{model:{}})))}})),_.Y("button",{class:_.ii("ytSearchboxComponentSearchButton",(eo.ytSearchboxComponentSearchButtonDark=BY,eo)),
"on:click":dp,"aria-label":tBg,title:V.placeholderText},_.Y(_.dq,{icon:"SEARCH"})),_.Y(_.NS,{cond:function(){if(tau()&&_.z("mweb_voice_search")&&V.voiceSearchButton)return V.voiceSearchButton()},
then:function(xJ){var $J={};return _.Y("div",{class:_.ii("ytSearchboxComponentVoiceSearchWrapper",($J.ytSearchboxComponentHideVoiceSearchButton=function(){return Vf()},$J))},_.Y(_.rw,{data:xJ},{buttonRenderer:function(vw){return _.Y(_.iS,{data:vw.data,
onButtonClickCallback:function(){}})}}))}}),_.Y("div",{el:_.ouT(function(xJ){return void(Dv=xJ)}),
id:vY,class:_.ii("ytSearchboxComponentSuggestionsContainer",(xh.ytSearchboxComponentSuggestionsContainerDark=BY,xh["yt-searchbox-suggestions-container"]=!1,xh.ytSearchboxComponentSuggestionsContainerScrollable=ON(),xh.ytSearchboxComponentSuggestionsContainerAnimated=k,xh)),"on:scroll":vk,"on:mousemove":aA,role:"listbox",hidden:!0},_.Y(_.Ks,{each:r},function(xJ,$J){return _.Y(FZr,{suggestion:xJ,isHighlighted:function(){return $J()===D()},
onClickCallback:$i,onHoverUpdateCallback:function(vw){if(_.z("desktop_enable_single_suggestion_highlight")){var zE=$J();vw&&(p(0),Z(zE))}},
onRemoveCallback:function(vw){y_g(Tf);vw===void 0||vw<0||CK().includes(vw)||CZ([].concat(_.oI(CK()),[vw]))},
labels:V.labels,queryBuilderFunction:r7,suggestionIndex:$J,generateUniqueId:CT,highlightedId:function(){var vw;return(vw=zf[D()])==null?void 0:vw[S()]},
useScrollMargin:ON(),isKeyboardMode:ME})}),_.Y(_.NS,{cond:function(){return!wW()&&r().find(function(xJ){return xJ.type!==35})&&_.z("searchbox_reporting")},
then:function(){return _.Y("button",{class:"ytSearchboxComponentReportButton","on:mousedown":uK},_.LT("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.Y(_.NS,{cond:function(){return!ec()&&ON()},
then:function(){return _.Y("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.Y("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Oo}))}})))},"Pf"),"yt-searchbox",{props:{searchEndpoint:_.b9,
placeholderText:_.b9,labels:_.b9,voiceSearchButton:_.b9,focusCallback:_.qR,clearButtonAriaLabel:_.b9,forceDarkMode:_.b9}});var E5b=function(){var V=_.M.apply(this,arguments)||this;V.menuButtonTargetId="topbar-guide-menu";V.narrow=!1;V.menuStrings={BACK_ALT_LABEL:_.LT("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.LT("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.LT("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.LT("SBOX_PLACEHOLDER",void 0,"Search")};V.pageDarkTheme=document.documentElement.hasAttribute("dark");V.watchPageScrollTop=0;V.theater=!1;V.fullscreen=!1;V.desktopUnifiedSearchPanelMode=_.z("desktop_enable_unified_search_panel");
V.cinematicTheaterMode=_.z("web_cinematic_theater_mode");V.ytSearchboxFocused=!1;V.searchboxLabels=_.h6("SBOX_LABELS");V.topbarIsAboveChipbar=!1;V.isDarkThemeForced=!1;V.areGhostCardsHidden=!1;V.guideKeyboardToggle=!1;V.voiceSearchManager=PTE();V.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};V.setYtSearchboxFocused=function(l){V.ytSearchboxFocused=l};
return V};
_.t(E5b,_.M);_.B=E5b.prototype;_.B.computeSimpleText=function(V){return _.A5(V)};
_.B.onDarkChanged=function(){for(var V=_.U(this.buttons||[]),l=V.next();!l.done;l=V.next())l.value.isOverlay=!!this.dark;V=_.U(this.buttonRenderers||[]);for(l=V.next();!l.done;l=V.next())l.value.overrides=this.computeButtonOverride()};
_.B.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.B.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"}}}};
_.B.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var V=_.qB(_.b1(),"aa");_.fY(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||V||(this.isDarkThemeForced=this.dark=!0);this.logoType?(V=this.hostElement.querySelector("#masthead-logo"))&&(_.z("polymer_on_demand_shady_dom")?V.setAttribute("slot","masthead-logo-old"):_.Yw(V)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.VP(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.VP(this,this.onSetTheaterModeEnabled))};
_.B.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.VP(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.VP(this,this.onSetTheaterModeEnabled))};
_.B.dataChanged=function(){var V=this.data;V&&(this.voiceEnabled=V.voiceSearchButton?PTE().isSupported():!1,_.iPW(_.$6(),this.menuButtonTargetId,this.guideButton),V.onReceivedActions&&V.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.d6(this.hostElement,V.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&V&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.fY(this.hostElement,"dark",!1),_.fY(this.hostElement,"theater",!1),
(V=this.hostElement.querySelector("#masthead-logo"))&&(_.z("polymer_on_demand_shady_dom")?V.setAttribute("slot","masthead-logo-old"):_.Yw(V))))};
_.B.computeCenterHidden=function(){var V;return this.data&&!((V=this.data.searchbox)==null?0:V.fusionSearchboxRenderer)};
_.B.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.fY(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.B.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.B.onWatchScroll=function(V){this.watchPageScrollTop=V.detail||0;this.updateMastheadBackgroundOpacity()};
_.B.onFullscreenChangeAction=function(V){V||(this.watchPageScrollTop=0);this.fullscreen=V;this.updateMastheadBackgroundOpacity()};
_.B.onSetTheaterModeEnabled=function(V){this.theater=V.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.B.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.B.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.B.setBackgroundOpacity=function(V){V=this.calculateBackgroundOpacity(V);this.background.style.opacity=""+V};
_.B.calculateBackgroundOpacity=function(V){var l=this.theater&&this.cinematicTheaterMode?.6:0,I=this.hostElement.clientHeight/2;return Math.min(Math.max(V,0),I)/I*(1-l)+l};
_.B.shouldShowCinematicMastHead=function(){var V=_.z("kevlar_watch_grid")&&!_.z("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(V||this.pageDarkTheme)};
_.B.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.B.focusGuide=function(){this.guideButton.focus()};
_.B.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.B$(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.B.onGuideToggleTap=function(){_.B$(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.B.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.B.onGuideToggleHover=function(){_.B$(this.hostElement,"yt-guide-hover")};
_.B.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.B.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.B.closeOnOutsideClickCondition=function(V){for(V=_.b3(V);V[0];){var l=V.shift();if(l instanceof Element&&l.id==="kbd")return!1}return!0};
_.B.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.B.pausePlayer=function(){var V;(V=_.u8())==null||V.pause();this.pauseMiniplayer()};
_.B.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var V;(V=_.F().resolve(_.sH).getPlayerElement())==null||V.pause()}};
_.B.isMiniplayerActive=function(){return _.F().resolve(_.sH).isMiniplayerActive()};
_.B.updateNarrowFromBinding=function(V){this.narrow=V.detail.value};
_.B.onYtSendFeedbackAction=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.vI.Object.defineProperties(E5b.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var V;return(V=this.data)==null?void 0:V.voiceSearchButton}}}});
var Qw=E5b;Qw.prototype.narrowChanged=Qw.prototype.narrowChanged;Qw.prototype.onIronResize=Qw.prototype.onIronResize;Qw.prototype.onWatchPageChange=Qw.prototype.onWatchPageChange;Qw.prototype.onRendererStamperFinished=Qw.prototype.onRendererStamperFinished;Qw.prototype.dataChanged=Qw.prototype.dataChanged;Qw.prototype.onDarkChanged=Qw.prototype.onDarkChanged;_.O([_.R(_.Da),_.a("design:type",Object)],Qw.prototype,"ironResizableBehavior",void 0);
_.O([_.R(_.cl6),_.a("design:type",Object)],Qw.prototype,"ytdExpandableInputBehavior",void 0);_.O([_.R(_.bM.YtdGuideStateAwareBehavior),_.a("design:type",Object)],Qw.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Qw.prototype,"ytComponentBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Qw.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DS),_.a("design:type",Object)],Qw.prototype,"ytdReduxBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Qw.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],Qw.prototype,"narrow",void 0);_.O([_.q(),_.a("design:type",Object)],Qw.prototype,"logoType",void 0);
_.O([_.q(),_.a("design:type",Boolean)],Qw.prototype,"voiceEnabled",void 0);_.O([_.q(),_.a("design:type",Object)],Qw.prototype,"menuStrings",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Qw.prototype,"dark",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Qw.prototype,"pageDarkTheme",void 0);_.O([_.q(),_.a("design:type",Object)],Qw.prototype,"watchPageScrollTop",void 0);
_.O([_.q({reflectToAttribute:!0,selector:_.P4}),_.a("design:type",Boolean)],Qw.prototype,"isWatchPage",void 0);_.O([_.q({reflectToAttribute:!0,selector:_.Jtf}),_.a("design:type",Boolean)],Qw.prototype,"isShortsPage",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Qw.prototype,"theater",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Qw.prototype,"fullscreen",void 0);
_.O([_.q({reflectToAttribute:!0,selector:_.Znq}),_.a("design:type",String)],Qw.prototype,"frostedGlassMode",void 0);_.O([_.q(),_.a("design:type",Object)],Qw.prototype,"ytSearchboxFocused",void 0);_.O([_.H1("#buttons > *"),_.a("design:type",Array)],Qw.prototype,"buttons",void 0);_.O([_.H1("ytd-button-renderer"),_.a("design:type",Array)],Qw.prototype,"buttonRenderers",void 0);_.O([_.Ij("#background"),_.a("design:type",HTMLDivElement)],Qw.prototype,"background",void 0);
_.O([_.Ij("#guide-button"),_.a("design:type",Object)],Qw.prototype,"guideButton",void 0);_.O([_.Ij("#logo"),_.a("design:type",Object)],Qw.prototype,"logo",void 0);_.O([_.q({computed:"computeButtonOverride(dark)"}),_.a("design:type",Object)],Qw.prototype,"buttonOverrides",void 0);_.O([_.xs("dark"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qw.prototype,"onDarkChanged",null);_.O([_.q({value:function(){return this.onVoiceTap.bind(this)}}),
_.a("design:type",Function)],Qw.prototype,"boundOnTapVoiceButton",void 0);_.O([_.q(),_.a("design:type",Object)],Qw.prototype,"topbarIsAboveChipbar",void 0);_.O([_.Q("voiceEnabled"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Qw.prototype,"shouldShowVoiceSearchButton",null);_.O([_.Q("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Qw.prototype,"voiceSearchButton",null);
_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qw.prototype,"dataChanged",null);_.O([_.W("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qw.prototype,"onRendererStamperFinished",null);_.O([_.xs("isWatchPage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qw.prototype,"onWatchPageChange",null);
_.O([_.W("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qw.prototype,"onIronResize",null);_.O([_.xs("narrow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qw.prototype,"narrowChanged",null);Qw=_.O([_.A({disableElementRegistration:!0,is:"ytd-masthead"})],Qw);
_.u(Qw,"ytd-masthead",function(){if(NiV!==void 0)return NiV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return NiV=V},{mode:_.Cm("kevlar_poly_si_batch_j036")?1:2});var J_h;var o5P={},hVu={},PoE={},DPr={},Z4E=(DPr.OFFLINE=(o5P["publicytnetworkstatus-online"]="BACK_ONLINE",o5P),DPr.ONLINE=(hVu["publicytnetworkstatus-offline"]="OFFLINE",hVu),DPr.BACK_ONLINE=(PoE["publicytnetworkstatus-offline"]="OFFLINE",PoE.TIMER_TRIGGER="ONLINE",PoE),DPr),SKu=function(){var V=_.M.apply(this,arguments)||this;V.currentState="ONLINE";V.scheduledJobId=0;V.bannerString="";V.bannerVe=null;V.networkStatusManagerInstance=new _.ca;return V};
_.t(SKu,_.M);_.B=SKu.prototype;_.B.attached=function(){var V=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){V.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){V.stateChangeHandler("publicytnetworkstatus-offline")})};
_.B.detached=function(){var V=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){V.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){V.stateChangeHandler("publicytnetworkstatus-offline")})};
_.B.enterState=function(V){var l=this;this.scheduledJobId&&_.r0.cancelJob(this.scheduledJobId);V==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):V==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.LT("NO_INTERNET_CONNECTION",void 0,"No internet connection")):V==="BACK_ONLINE"&&(this.bannerString=_.LT("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.et(_.r0,function(){l.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=V};
_.B.stateChangeHandler=function(V){(V=Z4E[this.currentState][V])&&this.enterState(V)};
_.B.logVisibility=function(V){var l=_.oa();this.createBannerVe(V);l&&this.bannerVe&&(V?_.pT(l,[this.bannerVe]):_.Ac(l,[this.bannerVe]))};
_.B.createBannerVe=function(V){!this.bannerVe&&V&&(this.bannerVe=_.eU(37929),_.nn(_.x7(),this.bannerVe))};
var cP=SKu;_.O([_.q({reflectToAttribute:!0}),_.a("design:type",String)],cP.prototype,"currentState",void 0);_.O([_.q(),_.a("design:type",Object)],cP.prototype,"scheduledJobId",void 0);_.O([_.q(),_.a("design:type",Object)],cP.prototype,"bannerString",void 0);cP=_.O([_.A({disableElementRegistration:!0,is:"ytd-network-status-banner"})],cP);
_.u(cP,"ytd-network-status-banner",function(){if(J_h!==void 0)return J_h;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return J_h=
V},{mode:1});var RVV;var QhP=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};V.hidden=!0;V.frostedGlass=_.z("web_frosted_glass");return V};
_.t(QhP,_.M);QhP.prototype.computeHidden=function(V){return V&&V.status?!1:!0};
QhP.prototype.handleUpdatePermissionRoleCommand=function(V){if(V=_.y(V,_.Nt3))if(V=_.y(V.renderer,_.wqZ))this.data=V};
var WP=QhP;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],WP.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],WP.prototype,"componentBehavior",void 0);_.O([_.q({value:!0,computed:"computeHidden(data)"}),_.a("design:type",Object)],WP.prototype,"hidden",void 0);_.O([_.q(),_.a("design:type",Object)],WP.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],WP.prototype,"frostedGlass",void 0);
WP=_.O([_.A({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],WP);
_.u(WP,"ytd-permission-role-bottom-bar-renderer",function(){if(RVV!==void 0)return RVV;var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);return RVV=V},{mode:1});var c_Y;var WZB;var KJE={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var b4Q=function(){return _.M.apply(this,arguments)||this};
_.t(b4Q,_.M);_.B=b4Q.prototype;_.B.attached=function(){this.JSC$18369_scroller&&(this.JSC$18369_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18369_scroller.attached&&typeof this.JSC$18369_scroller.attached==="function"&&this.JSC$18369_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(I){I.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var V=_.h(this.hostElement);V.querySelector("tp-yt-paper-radio-group").selected="";var l=V.querySelector("#reason-text");l&&(l.value="");V.querySelector("#description-text").value=""}};
_.B.canSubmit=function(V,l){_.B$(this.hostElement,"yt-invalidate-popup-tabbables");return!(V&&l)};
_.B.onCancel=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.B.onSubmit=function(){var V=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(x){return x.active}).map(function(x){return x.innerText.trim()}),l=this.hostElement.querySelector("tp-yt-paper-radio-group"),I=l.selectedItem,H=I.name;
I=I.innerText.trim();var T=l.querySelector("#reason-text");l=void 0;T&&(l=T.value);(T=this.descriptionText.value)&&(T=T.trim());jkE(this.data.searchQuery,V,H,I,T,l);_.xB(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.B.sendFormSubmitToast=function(){var V=_.fW(_.LT("SBOX_INAPPROPRIATE_TOAST"));_.xB(this.hostElement,"yt-open-popup-action",[V,this])};
_.B.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(V){return V.active})};
_.B.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
var bu=b4Q;bu.prototype.onIronSelect=bu.prototype.onIronSelect;bu.prototype.onIronChange=bu.prototype.onIronChange;bu.prototype.dataChanged=bu.prototype.dataChanged;_.O([_.q(),_.a("design:type",Object)],bu.prototype,"data",void 0);_.O([_.q({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.a("design:type",Boolean)],bu.prototype,"submitDisabled",void 0);_.O([_.q(),_.a("design:type",Boolean)],bu.prototype,"suggestionSelected",void 0);
_.O([_.q(),_.a("design:type",Boolean)],bu.prototype,"catagorySelected",void 0);_.O([_.Ij("#scroller"),_.a("design:type",Object)],bu.prototype,"JSC$18369_scroller",void 0);_.O([_.Ij("#description-text"),_.a("design:type",Object)],bu.prototype,"descriptionText",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bu.prototype,"dataChanged",null);
_.O([_.W("iron-change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bu.prototype,"onIronChange",null);_.O([_.W("iron-select"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bu.prototype,"onIronSelect",null);bu=_.O([_.A({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],bu);
_.u(bu,"ytd-search-suggestion-report-dialog",function(){if(WZB!==void 0)return WZB;var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return WZB=V},{mode:1});var qu=function(V){var l=V.openPopupAction;var I=V.target;var H=V.container;var T=V.popupContainerConfig;var x=V.getElement;V=V.removeWhenClosed===void 0?!1:V.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=l;this.target=I;this.container=H;this.popupContainerConfig=T;this.getElement=x;this.JSC$18375_popupConfig=this.popupContainerConfig.JSC$17492_popupConfig[this.openPopupAction.popupType];this.rendererName=(l=this.getName())?_.J9w(l,n1Y(this.popupContainerConfig,
l)):"";_.z("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=V);this.createPopup()};
qu.prototype.updatePopup=function(V){this.openPopupAction=V;this.JSC$18375_popupConfig=this.popupContainerConfig.JSC$17492_popupConfig[this.openPopupAction.popupType];qKP(this);_.z("reorder_popup_updates_killswitch")&&MBP(this);_.z("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var A_g=function(V,l,I){V.target=I;var H;I=((H=V.target.polymerController)!=null?H:V.target).popupPositionTarget||V.target;V.JSC$18375_popupConfig.targetContainer&&(I=V.container);V.popup.positionTarget=I;V.popupContent.positionTarget=I;_.z("reorder_popup_updates_killswitch")||MBP(V);V.JSC$18375_popupConfig.forceFocus&&(V.popupContent.style.outline="none");V.popupContent.tabIndex=-1;V.JSC$18375_popupConfig.narrowProperties&&(V.popup.style.position="static");V.JSC$18375_popupConfig.preventAutonav&&
V.popup.setAttribute("prevent-autonav",!0);V.JSC$18375_popupConfig.forceCloseOnOutsideClick&&V.popup.setAttribute("force-close-on-outside-click",!0);shY(V,l);pME(V,V.JSC$18375_popupConfig.styles);V.isRtl()&&pME(V,V.JSC$18375_popupConfig.rtlStyles);if(!V.openPopupAction.shouldStopParentSignal){var T;l=(T=V.target.polymerController)!=null?T:V.target;(V.popupContent.startForwardingEvents||V.popupContainerConfig.forwardingEnabledPopups.has(V.rendererName))&&l.parentComponent!==V.popupContent&&V.popupContent!==
V.target&&V.target!==document.body&&(V.popupContent.startForwardingEvents?V.popupContent.startForwardingEvents(V.popupContainerConfig.forwardedEvents,V.target):(V.JSC$18375_eventForwarder||(V.JSC$18375_eventForwarder=new _.Ll(V.popupContent)),V.JSC$18375_eventForwarder.start(V.popupContainerConfig.forwardedEvents,V.target)))}};
qu.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var shY=function(V,l){uhE(V,l&&V.JSC$18375_popupConfig.narrowProperties?V.JSC$18375_popupConfig.narrowProperties:V.JSC$18375_popupConfig.properties);V.isRtl()&&uhE(V,V.JSC$18375_popupConfig.rtlProperties);MBP(V)};
qu.prototype.createPopup=function(){var V=this.JSC$18375_popupConfig.component;if(this.popupContent=v5E(this,this.rendererName)){if(V){this.popup=v5E(this,V);var l=this.popupContent;_.z("web_enable_wrapper_for_cow_component_in_popup")&&(l=document.createElement("div"),l.appendChild(this.popupContent));_.z("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18375_popupConfig.slotName&&l.setAttribute("slot",this.JSC$18375_popupConfig.slotName);V=this.popup;var I=this.container.tagName.toLowerCase(),
H=_.Mv(l);_.LQT(_.pY(V),_.vb(l,I,H));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.z("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.h(this.container).appendChild(this.popup)}};
var qKP=function(V){var l,I,H=(l=V.openPopupAction.accessibilityData)==null?void 0:(I=l.accessibilityData)==null?void 0:I.label;H&&(V.popup.ariaLabel=H);var T;((T=V.popupContent.polymerController)!=null?T:V.popupContent).data=(0,_.EL.unsafeClone)(V.openPopupAction.popup[V.getName()]);V.popupContent.duration=O4u(V);V.popupContent.positionType=V.openPopupAction.position;var x=V.openPopupAction.properties;x&&Object.keys(x).forEach(function(n){V.popupContent[n]=x[n]})},uhE=function(V,l){if(l)for(var I=
_.U(Object.keys(l)),H=I.next();!H.done;H=I.next())H=H.value,V.popup[H]=l[H]},MBP=function(V){if(V.openPopupAction.position){var l=V.JSC$18375_popupConfig.positionalProperties&&V.JSC$18375_popupConfig.positionalProperties[V.openPopupAction.position],I=V.JSC$18375_popupConfig.rtlPositionalProperties&&V.JSC$18375_popupConfig.rtlPositionalProperties[V.openPopupAction.position];
l=V.isRtl()&&I?I:l;l.shiftedHorizontalOffset&&(I=V.popup.style.display,V.popup.style.display="block",V.popupContent&&V.popup.positionTarget&&V.popupContent.clientWidth>V.popup.positionTarget.clientWidth&&(l.horizontalOffset=V.popup.positionTarget.clientWidth/2-l.shiftedHorizontalOffset),V.popup.style.display=I);uhE(V,l)}},pME=function(V,l){if(l)for(var I=_.U(Object.keys(l)),H=I.next();!H.done;H=I.next())H=H.value,V.popup.style[H]=l[H]};
qu.prototype.getName=function(){return _.GY(this.openPopupAction.popup,"renderer")||_.GY(this.openPopupAction.popup,"dialog")||_.GY(this.openPopupAction.popup,"model")||void 0};
var O4u=function(V){V=V.openPopupAction.durationHintMs;return V===0?V:Math.max(4E3,V||4E3)};
qu.prototype.isRtl=function(){return _.h6("HTML_DIR")==="rtl"};
var v5E=function(V,l){V=V.getElement(l,V.target);V==null&&_.hF(new _.Yd("popup getElement returned null",l));return V};var CoI={};
CoI.YtPopupContainerBehavior=[_.DX.YtComponentBehavior,_.aU.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_);_.lJ(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Iz(this.hostElement)},
closePopup:function(V){var l=this.createCacheKey(void 0,V);this.popups_[l]&&this.handleClosePopupAction_(void 0,V)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.r0.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.r0.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(V){V.opened&&V.keepBelowPlayer&&this.ensurePopupBelowPlayer(V)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var V in this.popups_){var l=this.popups_[V];if(l.popup.scrollAction==="refit"){var I=l.popup.positionTarget.getBoundingClientRect(),H=l.popup;I=I.top;var T=l;if(!T.naturalHeight){T.popup.hidden=!1;T.popup.style.position="fixed";T.popup.style.top="0px";T.popup.style.left="0px";var x=T.popup.getBoundingClientRect();T.naturalHeight=x.bottom-x.top;T.popup.refit()}H.hidden=!(I>=T.naturalHeight+60);l.popupContent.clientHeight===0&&l.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(V){this.popupContainerConfig=V},
handleOpenPopupAction:function(V,l){var I=V.openPopupAction,H=_.F().resolve(_.Cs(_.vig))&&I.popupType==="TOAST";H&&!I.uniqueId&&(I.uniqueId=_.rz());if(!_.z("popup_container_parent_target_killswitch")){var T;l=(T=this.getParentTarget(l))!=null?T:l}var x=this.ensurePopup_(I,l);return new _.UZ(function(n){x.then(function(w){if(!w)return n();this.maybeCreateNarrowMediaQuery_();var N=this.createCacheKey(w.rendererName,w.openPopupAction.uniqueId);if(I.showOncePerUniqueId){if(this.shownPopupKeys_.has(N))return n();
this.shownPopupKeys_.add(N)}N=this.popups_[N];var L=!(!N||!N.openPopupAction.beReused);L=!!I.reusePopup||L;if(w.popup.opened&&!L){H&&!w.openPopupAction.replacePopup||this.handleClosePopupAction_(w.rendererName,w.openPopupAction.uniqueId);L=I.popupType==="DIALOG"&&!_.z("popup_container_dialog_reopen_killswitch");if(!H&&!L&&N&&N.target==l&&!w.openPopupAction.replacePopup)return n();_.Al(w.popup,function(){this.completeOpenPopupAction_(I,l,w);n()}.bind(this))}else w.popup.opened?w.updatePopup(I):this.completeOpenPopupAction_(I,
l,w),n()}.bind(this))}.bind(this))},
getParentTarget:function(V){if(V&&V instanceof HTMLElement)for(var l=_.U(Object.entries(this.popups_)),I=l.next();!I.done;I=l.next())if(I=_.U(I.value),I.next(),I=I.next().value,I.popup.tagName==="TP-YT-IRON-DROPDOWN"&&I.popup.opened&&V.closest(I.rendererName))return I.target},
completeOpenPopupAction_:function(V,l,I){_.z("reorder_popup_updates_killswitch")?(A_g(I,this.narrowMediaQuery_.queryMatches,l),I.updatePopup(V)):(I.updatePopup(V),A_g(I,this.narrowMediaQuery_.queryMatches,l));V=I.popup;V.addEventListener("iron-overlay-opened",_.VP(this,this.onPopupIronOverlayOpened_));V.addEventListener("iron-overlay-closed",_.VP(this,this.onPopupIronOverlayClosed_));V.addEventListener("iron-overlay-canceled",_.VP(this,this.onPopupIronOverlayCanceled_));V.addEventListener("yt-refit",
_.VP(this,this.refitPopup_));V.addEventListener("yt-invalidate-popup-tabbables",_.VP(this,this.handleInvalidatePopupTabbables_));V.open()},
getPopupDurationMs_:function(V){return V.durationHintMs===0?V.durationHintMs:Math.max(4E3,V.durationHintMs||4E3)},
handleClosePopupAction_:function(V,l){var I=_.z("web_popup_cache_key_killswitch")||!!l;if(V||I){var H=this.createCacheKey(V,l);V=(V=this.popups_[H])&&V.popup}else V=_.ejN(_.Aw);if(V&&V.close){if(l=_.F().resolve(_.Cs(_.eM)))V.restoreFocusOnClose=l.isKeyBoardInUse();V.close();this.removePopup_(V,H)}},
handleClosePopupCommand_:function(V){V.closePopupCommand&&V.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,V.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(V){var l={},I;for(I in this.popups_)if(l={key$jscomp$1157:l.key$jscomp$1157},l.key$jscomp$1157=I,!V||!V.some(function(x){return function(n){return n==x.key$jscomp$1157}}(l))){var H=this.popups_[l.key$jscomp$1157],T=H.popup;
_.F().resolve(_.Cs(_.vig))&&H.openPopupAction.popupType==="TOAST"||(T&&T.close&&T.close(),this.removePopup_(T,l.key$jscomp$1157))}},
handleClosePopupsAction_:function(V){V.forEach(function(l){var I=this.popups_[l];I&&((I=I.popup)&&I.close&&I.close(),this.removePopup_(I,l))}.bind(this))},
handleGetPopupOpenedAction_:function(V,l){return(l=this.createCacheKey(V,l))&&this.popups_[l]?this.popups_[V].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var V=[],l;for(l in this.popups_){var I=this.popups_[l];I.popup.opened&&V.push(I)}return V},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(V,l){_.z("ytpopup_disable_default_html_caching")&&V&&V.removeWhenClosed&&(_.h(this.hostElement).removeChild(V),l&&this.popups_[l]&&delete this.popups_[l])},
shouldReusePopup_:function(V){return!(!V||!V.reusePopup)||!(!V||!V.beReused)},
ensurePopup_:function(V,l){this.maybeCreateNarrowMediaQuery_();var I=_.GY(V.popup,"renderer")||_.GY(V.popup,"dialog")||_.GY(V.popup,"model");if(!I)return _.w6();I=_.J9w(I,n1Y(this.popupContainerConfig,I));return _.w6(this.getAndMaybeCreatePopup_(V,I,l))},
getAndMaybeCreatePopup_:function(V,l,I){var H=this.createCacheKey(l,V.uniqueId);if(this.popups_[H])return this.popups_[H];V=new qu({openPopupAction:V,target:I,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(l)});return this.popups_[H]=V},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(V){return _.z("ytpopup_disable_default_html_caching")?V&&V.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",_.VP(this,this.openPopupQueryMatchesChanged_)),_.h(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(V){V=V.detail.value;for(var l in this.popups_)shY(this.popups_[l],V)},
onPopupIronOverlayClosed_:function(V){var l=V.currentTarget,I=_.cDt(l);I=I.length>0?I[0]:l;if(I.is!=="ytd-reel-watch-while-dialog-renderer"||V.target.is!=="tp-yt-iron-dropdown"){V.detail.popup=l;V.detail.popupRenderer=I;var H,T={context:{openingElement:((H=this.popups_[(I==null?void 0:I.is)||""])==null?void 0:H.target)||void 0}};Object.assign(T,V.detail);var x;_.B$((x=I.hostElement)!=null?x:I,"yt-popup-closed",T);l.removeEventListener("yt-refit",_.VP(this,this.refitPopup_));l.removeEventListener("yt-invalidate-popup-tabbables",
_.VP(this,this.handleInvalidatePopupTabbables_));l.removeEventListener("iron-overlay-canceled",_.VP(this,this.onPopupIronOverlayCanceled_));l.removeEventListener("iron-overlay-closed",_.VP(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(l)}},
onPopupIronOverlayCanceled_:function(V,l){var I=V.currentTarget,H=_.cDt(I);H=H.length>0?H[0]:I;if(H.is!=="ytd-reel-watch-while-dialog-renderer"||V.target.is!=="tp-yt-iron-dropdown"){var T;_.B$((T=H.hostElement)!=null?T:H,"yt-popup-canceled",V.detail);T=l?_.b3(l):null;(!l||["click","tap"].includes(l.type))&&!I.hasAttribute("force-close-on-outside-click")&&I.positionTarget&&T&&T.includes(I.positionTarget)&&V.preventDefault();I.restoreFocusOnClose=_.yn.keyboardEventMatchesKeys(l,"esc")}},
onPopupIronOverlayOpened_:function(V){V=V.currentTarget;var l=_.cDt(V);l=l.length>0?l[0]:V;var I,H;_.B$((I=l.hostElement)!=null?I:l,"yt-popup-opened",(H=l.hostElement)!=null?H:l);V.keepBelowPlayer&&(this.ensurePopupBelowPlayer(V,!0),this.dynamicallyPositionedElements_.add(V));I=_.F().resolve(_.Cs(_.eM));H=!!l.querySelector("#toast");I&&I.isKeyBoardInUse()&&!H&&(typeof l.focusFirstItem==="function"?l.focusFirstItem():(l=_.jKv(V),l.length&&l[0].focus()));V.removeEventListener("iron-overlay-opened",
_.VP(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(V){V=V.currentTarget;V.refit&&V.refit()},
refitPopups_:function(){for(var V in this.popups_)this.popups_[V].refit()},
handleInvalidatePopupTabbables_:function(V){V=V.currentTarget;V.invalidateTabbables&&V.invalidateTabbables()},
createCacheKey:function(V,l){return _.z("web_popup_cache_key_killswitch")?l?V+"#"+l:V:l?"#"+l:V},
openSheet:function(V,l){var I=V==null?void 0:V.openPopupActionCommand;!I&&(V==null?0:V.viewModel)&&(I={openPopupAction:{popup:{sheetViewModel:V.viewModel},popupType:"CONTEXTUAL_SHEET"}});I&&this.handleOpenPopupAction(I,l)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var V=this;return _.d(function(l){return l.return(V.handleGetOpenedPopupsAction_().filter(function(I){var H;return((H=I.openPopupAction)==null?void 0:H.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(V,l,I){if(_.z("web_dialog_utils_killswitch")){var H=V==null?void 0:V.openPopupActionCommand,T=(I==null?0:I.ariaLabel)?{accessibilityData:{accessibilityData:{label:I.ariaLabel}}}:void 0;!H&&(V==null?0:V.viewModel)&&(H={openPopupAction:Object.assign({},{popup:{dialogViewModel:V.viewModel},popupType:(I==null?0:I.isModal)?"MODAL":"DIALOG"},T&&T)});H&&this.handleOpenPopupAction(H,l)}else{if(T=V==null?void 0:V.viewModel){var x=I=I===void 0?{}:I;I=x.ariaLabel;T={popup:{dialogViewModel:T},
popupType:x.isModal?"MODAL":"DIALOG"};x={accessibilityData:{label:I}};I&&(T.accessibilityData=x);T={openPopupAction:T}}else T=void 0;(T=(H=T)!=null?H:V==null?void 0:V.openPopupActionCommand)&&this.handleOpenPopupAction(T,l)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var V=this;return _.d(function(l){return l.return(V.handleGetOpenedPopupsAction_().filter(function(I){var H;return((H=I.openPopupAction)==null?void 0:H.popupType)==="DIALOG"}).length>0)})}}];var a2h;var f26;var g5E=_.fl(["about:blank"]),mPh=function(){var V=_.M.apply(this,arguments)||this;V.isMuted=!1;V.pageLoadTimeoutId=void 0;return V};
_.t(mPh,_.M);_.B=mPh.prototype;_.B.dataChanged=function(){var V=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var l=this.data.url,I=_.GQ(l);_.z("enable_yt_ata_iframe_authuser")?(I=_.GQ(l),_.AV(this.iframe,YYg(I))):_.AV(this.iframe,I);this.pageLoadTimeoutId=_.et(_.Dk(),function(){return void V.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Ik({destination:window,iframe:this.iframe,origin:_.KVa(I.toString()),channelName:"ataiframe",onMessage:_.qtE(nru,function(H){$6E(H.data)?(H=_.WY(H.data,1,_.V6,_.i4()),H.length!==1?_.hF(Error("ql")):(H=H[0],H===3?(V.isMuted=!0,V.logStateChanged({adMuteRequested:!0})):H===1&&V.close())):_.hF(Error("rl"))}),
onEstablished:function(){V.cancelPageLoadTimeout();V.logStateChanged({pageLoadSucceeded:!0})}})}};
_.B.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Dk().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.B.logStateChanged=function(V){var l;if((l=this.data)==null?0:l.trackingParams)V={adsClientData:{aboutThisAdData:V}},_.x7().stateChanged(this.data.trackingParams,V)};
_.B.close=function(){_.xB(this.hostElement,"yt-close-popup-action",[this.is])};
_.B.handlesPopupClosed=function(V,l){var I=this,H,T;return _.d(function(x){if(x.nextAddress==1)return _.h6("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.xB(I.hostElement,"on-about-this-ad-popup-closed",[I.isMuted,l]),x.jumpTo(0)):V&&LJB(V)?_.K(x,eKB(V),4):(I.isMuted&&_.xB(I.hostElement,"yt-mute-ad-action",[I.is,I]),x.jumpTo(0));if(H=x.yieldResult){var n=T=new _.SG(H),w=I.isMuted;n.getOptions().includes("onAboutThisAdPopupClosed")?_.Gvo(n,"onAboutThisAdPopupClosed",{isMuted:w,layoutId:l}):_.Hl("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.FU(x)})};
_.B.onPopupClosed=function(V){var l=this,I,H;return _.d(function(T){I=_.TP(g5E);_.AV(l.iframe,I);l.cancelPageLoadTimeout();if(!l.data)return T.jumpTo(0);l.ytRendererBehavior.markDirty();H=V.detail.context.openingElement;return _.K(T,l.handlesPopupClosed(H,l.data.layoutId),0)})};
_.B.detached=function(){this.cancelPageLoadTimeout()};
_.B.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var Mu=mPh;Mu.prototype.onPopupClosed=Mu.prototype.onPopupClosed;Mu.prototype.dataChanged=Mu.prototype.dataChanged;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.O([_.Ij("#iframe"),_.a("design:type",HTMLIFrameElement)],Mu.prototype,"iframe",void 0);_.O([_.q(),_.a("design:type",Object)],Mu.prototype,"data",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mu.prototype,"dataChanged",null);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype",Promise)],Mu.prototype,"onPopupClosed",null);Mu=_.O([_.Lm({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Mu);
_.u(Mu,"yt-about-this-ad-renderer",function(){if(f26===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;a2h===void 0&&(a2h=document.createElement("template"));var H=a2h;I.call(l,H.content.cloneNode(!0),V.content.firstChild);f26=V}V=f26;return V},{mode:2});var i4b;var V9I;var lPu=function(V){var l=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=l.message;"stack"in l&&(this.stack=l.stack);this.maxFileSizeMB=V;Object.setPrototypeOf(this,lPu.prototype)};
_.t(lPu,Error);var IPh=function(V,l){var I=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=I.message;"stack"in I&&(this.stack=I.stack);this.minWidth=V;this.minHeight=l;Object.setPrototypeOf(this,IPh.prototype)};
_.t(IPh,Error);var HpI=function(V){this.requirements=V;this.JSC$18403_maxFileSize=V.maxFileSizeMB*1024*1024},TKP=function(V,l){if(l.size>V.JSC$18403_maxFileSize)throw new lPu(V.requirements.maxFileSizeMB);
};var BKu=function(V,l){this.canvas=V;this.imageEditorBuilder=l};
BKu.prototype.addEventListeners=function(V){var l=function(T){xdE(V,T)};
this.JSC$18409_mouseDownEvent=l;var I=function(T){Udu(V,T)};
this.JSC$18409_mouseMoveEvent=I;var H=function(){n2P(V)};
this.JSC$18409_mouseUpEvent=H;this.canvas.addEventListener("mousedown",l);this.canvas.addEventListener("mousemove",I);document.addEventListener("mouseup",H)};
BKu.prototype.removeEventListeners=function(){this.JSC$18409_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18409_mouseDownEvent);this.JSC$18409_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18409_mouseMoveEvent);this.JSC$18409_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18409_mouseUpEvent)};
var $dh=function(V,l){V.removeEventListeners();return new Promise(function(I){var H=new Image;H.crossOrigin="anonymous";H.onload=function(){var T=V.imageEditorBuilder(V.canvas,H);V.addEventListeners(T);I(T)};
H.src=l})},s8=function(V,l,I,H,T,x,n,w){this.canvas=V;
this.image=l;this.requiredRatio=I;this.minImageCropDimension=H;this.minOutputImageResolution=T;this.component=x;this.styleFocusedCorner=w===void 0?!0:w;this.action=2;this.focusedCorner=this.resizeCorner=0;V=this.canvas.getContext("2d");if(!V)throw Error("sl");this.ctx=V;this.canvasMargin=n!=null?n:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;n=this.image;V=this.canvasInnerWidth/n.width;n.height*V>912&&(V=n.width/n.height*912/n.width);n=V;this.scaledImageWidth=this.canvas.width%2?
FJP(this.image.width*n):keE(this.image.width*n);this.scaledImageHeight=Math.round(this.image.height*n);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18412_overlayMarginBottom=this.JSC$18412_overlayMarginTop=this.canvasMargin;this.JSC$18412_overlayMarginRight=this.JSC$18412_overlayMarginLeft=this.horizontalMargin;this.JSC$18412_overlayWidth=this.scaledImageWidth;this.JSC$18412_overlayHeight=this.scaledImageHeight;
V=this.image.width/this.image.height;V>this.requiredRatio?(this.JSC$18412_overlayWidth=this.canvas.width%2?FJP(this.scaledImageHeight*this.requiredRatio):keE(this.scaledImageHeight*this.requiredRatio),this.JSC$18412_overlayMarginRight=this.JSC$18412_overlayMarginLeft=(this.canvas.width-this.JSC$18412_overlayWidth)/2):V<this.requiredRatio&&(this.JSC$18412_overlayHeight=this.canvas.height%2?FJP(this.scaledImageWidth/this.requiredRatio):keE(this.scaledImageWidth/this.requiredRatio),this.JSC$18412_overlayMarginBottom=
this.JSC$18412_overlayMarginTop=(this.canvas.height-this.JSC$18412_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*n,this.scaledImageWidth);ddV(this)};
s8.prototype.getContext=function(){return this.ctx};
var xdE=function(V,l){l={x:Math.round(l.pageX-V.canvas.getBoundingClientRect().left),y:Math.round(l.pageY-V.canvas.getBoundingClientRect().top)};V.dragStart=l;wpr(V,l)!==0?(V.action=1,NKE(V,l),V.resizeCorner=wpr(V,l)):l.x>V.JSC$18412_overlayMarginLeft&&l.x<V.JSC$18412_overlayMarginLeft+V.JSC$18412_overlayWidth&&l.y>V.JSC$18412_overlayMarginTop&&l.y<V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight&&(V.action=0)},Keu=function(V,l){switch(l){case 1:return{x:V.JSC$18412_overlayMarginLeft,
y:V.JSC$18412_overlayMarginTop};case 2:return{x:V.JSC$18412_overlayMarginLeft,y:V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight};case 3:return{x:V.JSC$18412_overlayMarginLeft+V.JSC$18412_overlayWidth,y:V.JSC$18412_overlayMarginTop};case 4:return{x:V.JSC$18412_overlayMarginLeft+V.JSC$18412_overlayWidth,y:V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight};default:throw Error("tl");}},YDY=function(V,l){if(V.focusedCorner!==0){V.dragStart=Keu(V,V.focusedCorner);
V.action=1;V.resizeCorner=V.focusedCorner;var I=V.dragStart.x,H=V.dragStart.y;switch(l){case 0:V.focusedCorner===1||V.focusedCorner===4?(I-=10,H-=10):(I-=10,H+=10);break;case 1:V.focusedCorner===1||V.focusedCorner===4?(I+=10,H+=10):(I+=10,H-=10);break;case 2:I=V.focusedCorner===1||V.focusedCorner===4?I-10:I+10;H-=10;break;case 3:I=V.focusedCorner===1||V.focusedCorner===4?I+10:I-10;H+=10;break;default:throw Error("ul");}jFB(V,{x:I,y:H});ddV(V);V.action=2;V.dragStart=void 0}},Udu=function(V,l){l={x:Math.round(l.pageX-
V.canvas.getBoundingClientRect().left),
y:Math.round(l.pageY-V.canvas.getBoundingClientRect().top)};NKE(V,l);switch(V.action){case 1:jFB(V,l);break;case 0:V.dragStart&&(V.JSC$18412_overlayMarginLeft=Math.max(V.horizontalMargin,Math.min(V.JSC$18412_overlayMarginLeft-(V.dragStart.x-l.x),V.horizontalMargin+V.scaledImageWidth-V.JSC$18412_overlayWidth)),V.JSC$18412_overlayMarginRight=V.canvas.width-V.JSC$18412_overlayMarginLeft-V.JSC$18412_overlayWidth,V.JSC$18412_overlayMarginTop=Math.max(V.canvasMargin,Math.min(V.JSC$18412_overlayMarginTop-
(V.dragStart.y-l.y),V.scaledImageHeight-V.JSC$18412_overlayHeight+V.canvasMargin)),V.JSC$18412_overlayMarginBottom=V.canvas.height-(V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight));break;default:return}ddV(V);V.dragStart=l},n2P=function(V){V.action=2;
V.dragStart=void 0;document.body.style.cursor="auto"},NKE=function(V,l){switch(wpr(V,l)){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:V.action!==1&&(document.body.style.cursor="auto")}},wpr=function(V,l){var I=V.JSC$18412_overlayMarginLeft-5,H=V.JSC$18412_overlayMarginTop-5,T=V.JSC$18412_overlayMarginLeft+V.JSC$18412_overlayWidth-5;
V=V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight-5;return Leb(l,{x:I,y:H})?1:Leb(l,{x:T,y:H})?3:Leb(l,{x:I,y:V})?2:Leb(l,{x:T,y:V})?4:0},Leb=function(V,l){return V.x>=l.x&&V.x<=l.x+10&&V.y>=l.y&&V.y<=l.y+10},jFB=function(V,l){if(V.dragStart)switch(V.resizeCorner){case 2:Math.abs((V.JSC$18412_overlayMarginLeft+V.JSC$18412_overlayWidth-l.x)/(l.y-V.JSC$18412_overlayMarginTop))>=V.requiredRatio?eOg(V,l.x):kg2(V,l.y);
break;case 1:Math.abs((V.JSC$18412_overlayMarginLeft+V.JSC$18412_overlayWidth-l.x)/(V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight-l.y))>=V.requiredRatio?FeE(V,l.x):kg2(V,l.y);break;case 4:Math.abs((l.x-V.JSC$18412_overlayMarginLeft)/(l.y-V.JSC$18412_overlayMarginTop))>=V.requiredRatio?eOg(V,l.x):XpE(V,l.y);break;case 3:Math.abs((l.x-V.JSC$18412_overlayMarginLeft)/(V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight-l.y))>=V.requiredRatio?FeE(V,l.x):XpE(V,l.y);break;default:throw Error("vl");
}},eOg=function(V,l){var I=V.JSC$18412_overlayMarginTop;
V.JSC$18412_overlayMarginBottom=zOP(V,l);V.JSC$18412_overlayHeight=V.canvas.height-V.JSC$18412_overlayMarginBottom-I;V.JSC$18412_overlayWidth=Math.round(V.JSC$18412_overlayHeight*V.requiredRatio);ygP(V)},FeE=function(V,l){var I=V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight;
V.JSC$18412_overlayMarginTop=zOP(V,l);V.JSC$18412_overlayHeight=I-V.JSC$18412_overlayMarginTop;V.JSC$18412_overlayWidth=Math.round(V.JSC$18412_overlayHeight*V.requiredRatio);ygP(V)},ygP=function(V){switch(V.resizeCorner){case 2:case 1:V.JSC$18412_overlayMarginLeft=V.canvas.width-V.JSC$18412_overlayMarginRight-V.JSC$18412_overlayWidth;
break;case 4:case 3:V.JSC$18412_overlayMarginRight=V.canvas.width-V.JSC$18412_overlayMarginLeft-V.JSC$18412_overlayWidth;break;default:throw Error("vl");}},kg2=function(V,l){var I=V.JSC$18412_overlayMarginLeft+V.JSC$18412_overlayWidth;
V.JSC$18412_overlayMarginLeft=t9E(V,l);V.JSC$18412_overlayWidth=I-V.JSC$18412_overlayMarginLeft;V.JSC$18412_overlayHeight=Math.round(V.JSC$18412_overlayWidth/V.requiredRatio);rgb(V)},XpE=function(V,l){var I=V.JSC$18412_overlayMarginLeft;
V.JSC$18412_overlayMarginRight=t9E(V,l);V.JSC$18412_overlayWidth=V.canvas.width-V.JSC$18412_overlayMarginRight-I;V.JSC$18412_overlayHeight=Math.round(V.JSC$18412_overlayWidth/V.requiredRatio);rgb(V)},rgb=function(V){switch(V.resizeCorner){case 2:case 4:V.JSC$18412_overlayMarginBottom=V.canvas.height-V.JSC$18412_overlayMarginTop-V.JSC$18412_overlayHeight;
break;case 1:case 3:V.JSC$18412_overlayMarginTop=V.canvas.height-V.JSC$18412_overlayMarginBottom-V.JSC$18412_overlayHeight;break;default:throw Error("vl");}},zOP=function(V,l){switch(V.resizeCorner){case 2:l=V.canvas.height-(V.JSC$18412_overlayMarginTop+GgB(V,l));
break;case 4:l=V.canvas.height-(V.JSC$18412_overlayMarginTop+E2b(V,l));break;case 1:l=V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight-GgB(V,l);break;case 3:l=V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight-E2b(V,l);break;default:throw Error("vl");}return Math.max(l,V.canvasMargin)},GgB=function(V,l){l=V.JSC$18412_overlayMarginLeft+V.JSC$18412_overlayWidth-Math.max(l,V.horizontalMargin);
l=l<0?V.JSC$18412_overlayWidth:Math.max(l,V.minOverlayWidth);return Math.round(l/V.requiredRatio)},E2b=function(V,l){l=V.canvas.width-Math.max(V.canvas.width-l,V.horizontalMargin)-V.JSC$18412_overlayMarginLeft;
l=l<0?V.JSC$18412_overlayWidth:Math.max(l,V.minOverlayWidth);return Math.round(l/V.requiredRatio)},t9E=function(V,l){switch(V.resizeCorner){case 2:l=V.canvas.width-V.JSC$18412_overlayMarginRight-JgP(V,l);
break;case 4:l=V.canvas.width-V.JSC$18412_overlayMarginLeft-JgP(V,l);break;case 1:l=V.canvas.width-V.JSC$18412_overlayMarginRight-o26(V,l);break;case 3:l=V.canvas.width-V.JSC$18412_overlayMarginLeft-o26(V,l);break;default:throw Error("vl");}return Math.max(l,V.horizontalMargin)},JgP=function(V,l){l=V.canvas.height-Math.max(V.canvas.height-l,V.canvasMargin)-V.JSC$18412_overlayMarginTop;
return l<0?V.JSC$18412_overlayWidth:Math.max(Math.round(l*V.requiredRatio),V.minOverlayWidth)},o26=function(V,l){l=V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight-Math.max(l,V.canvasMargin);
return l<0?V.JSC$18412_overlayWidth:Math.max(Math.round(l*V.requiredRatio),V.minOverlayWidth)},ddV=function(V){V.ctx.clearRect(0,0,V.canvas.width,V.canvas.height);
V.ctx.drawImage(V.image,0,0,V.image.width,V.image.height,V.horizontalMargin,V.canvasMargin,V.canvas.width-2*V.horizontalMargin,V.scaledImageHeight);V.ctx.fillStyle="rgba(0, 0, 0, 0.7)";V.ctx.fillRect(V.horizontalMargin,V.JSC$18412_overlayMarginTop,V.JSC$18412_overlayMarginLeft-V.horizontalMargin,V.JSC$18412_overlayHeight);V.ctx.fillRect(V.JSC$18412_overlayMarginLeft+V.JSC$18412_overlayWidth,V.JSC$18412_overlayMarginTop,V.JSC$18412_overlayMarginRight-V.horizontalMargin,V.JSC$18412_overlayHeight);V.ctx.fillRect(V.horizontalMargin,
V.canvasMargin,V.scaledImageWidth,V.JSC$18412_overlayMarginTop-V.canvasMargin);V.ctx.fillRect(V.horizontalMargin,V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight,V.scaledImageWidth,V.JSC$18412_overlayMarginBottom-V.canvasMargin);V.drawOverlay();V.component&&_.B$(V.component,"image-updated")};
s8.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18412_overlayMarginLeft,this.JSC$18412_overlayMarginTop,this.JSC$18412_overlayWidth,this.JSC$18412_overlayHeight);hOQ(this)};
var hOQ=function(V){var l=V.JSC$18412_overlayMarginLeft-5,I=V.JSC$18412_overlayMarginTop-5,H=V.JSC$18412_overlayMarginLeft+V.JSC$18412_overlayWidth-5,T=V.JSC$18412_overlayMarginTop+V.JSC$18412_overlayHeight-5;V.ctx.fillStyle="#FFF";V.ctx.fillRect(l,I,10,10);V.ctx.strokeRect(l,I,10,10);V.ctx.fillRect(H,I,10,10);V.ctx.strokeRect(H,I,10,10);V.ctx.fillRect(l,T,10,10);V.ctx.strokeRect(l,T,10,10);V.ctx.fillRect(H,T,10,10);V.ctx.strokeRect(H,T,10,10);if(V.focusedCorner!==0&&V.styleFocusedCorner){V.ctx.lineWidth=
4;V.ctx.strokeStyle="#3EA6FF";switch(V.focusedCorner){case 1:--l;--I;break;case 2:--l;I=T-1;break;case 3:l=H-1;--I;break;case 4:l=H-1;I=T-1;break;default:return}V.ctx.strokeRect(l,I,12,12)}};
s8.prototype.crop=function(V,l){l=l===void 0?!0:l;var I=this.image.width/this.scaledImageWidth,H=document.createElement("canvas"),T=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],x=this.JSC$18412_overlayWidth*I,n=this.JSC$18412_overlayHeight*I;H.width=Math.max(x,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);H.height=Math.max(n,T);V&&(H.width=Math.min(H.width,H.height),H.height=Math.min(H.width,H.height));
V=H.getContext("2d");if(!V)throw Error("jl");T=(this.JSC$18412_overlayMarginLeft-this.horizontalMargin)*I;I*=this.JSC$18412_overlayMarginTop-this.canvasMargin;l||(V.fillStyle="white",V.fillRect(0,0,H.width,H.height));V.drawImage(this.image,T,I,x,n,0,0,H.width,H.height);return H};var Pmb=function(V,l,I,H,T){s8.call(this,V,l,I,H,void 0,T,8,!1)};
_.t(Pmb,s8);Pmb.prototype.drawOverlay=function(){var V=this.getContext(),l=this.JSC$18412_overlayWidth,I=this.JSC$18412_overlayHeight,H=this.JSC$18412_overlayMarginTop,T=this.JSC$18412_overlayMarginLeft;V.lineWidth=2;V.strokeStyle="#3EA6FF";V.beginPath();V.arc(T+l/2,H+I/2,l/2,0,2*Math.PI);V.stroke();V.strokeRect(T,H,l,I);hOQ(this)};
var DdV={maxFileSizeMB:15,minWidth:98,minHeight:98},ZpQ=["image/png","image/jpeg","image/gif"],SDV=function(){var V=_.M.apply(this,arguments)||this;V.fileSelectorFocusListener=null;V.errorMessage=null;V.isLoading=!0;V.hideContainer=!0;V.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return V};
_.t(SDV,_.M);_.B=SDV.prototype;_.B.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.B.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.B.computePlaylistThumbnail=function(V){return V==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.B.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.xB(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.B.setErrorState=function(V){this.resetErrorState();V&&(this.errorMessage=V)};
_.B.showPopup=function(){var V=this;this.hideContainer=!1;_.et(_.r0,function(){_.B$(V.hostElement,"yt-refit")});
this.isLoading=!1};
_.B.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.B.closePopup=function(){this.resetFileSelector();_.xB(this.hostElement,"yt-close-popup-action",[this.is])};
_.B.onCancelTap=function(){this.isPlaylistThumbnail||_.xB(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.B.openFileSelector=function(){var V=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.et(_.r0,function(){setTimeout(function(){if(!V.fileSelector.files||V.fileSelector.files.length===0)V.onCancelTap();V.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(l){l instanceof Error?_.Gr(l):_.oV(new _.Yd(JSON.stringify(l)))}};
_.B.handleFileSelection=function(){var V=this,l,I,H,T,x,n;return _.d(function(w){switch(w.nextAddress){case 1:_.jd(w,2);if(!V.fileSelector.files||!V.imageEditorCanvas)return V.onCancelTap(),w.return();l=V.fileSelector.files[0];TKP(V.imageChecker,l);_.jd(w,4);return _.K(w,ur6(l),6);case 6:V.mimeType=w.yieldResult;_.Rv(w,5,2);break;case 4:_.kE(w,2),_.xB(V.hostElement,"yt-image-selection-error-action",[(I=V.data)==null?void 0:I.genericImageLoadErrorMessage]),V.onCancelTap();case 5:H=new FileReader;H.addEventListener("load",
function(){var N,L;return _.d(function(e){if(e.nextAddress==1){if(!H.result)return _.hF(Error("ll")),e.return();N=H.result;L=new Image;L.src=N;L.onload=function(){try{var k=V.imageChecker;if(L.width<k.requirements.minWidth||L.height<k.requirements.minHeight)throw new IPh(k.requirements.minWidth,k.requirements.minHeight);}catch(r){if(r instanceof IPh){var X;_.xB(V.hostElement,"yt-image-selection-error-action",[(X=V.data)==null?void 0:X.imageDimensionErrorMessage]);V.logImageDimensionErrorVe()}else r instanceof
Error?_.Gr(r):(k=new _.Yd(JSON.stringify(r)),_.Gr(k));V.onCancelTap()}V.showPopup()};
L.onerror=function(){var k;_.xB(V.hostElement,"yt-image-selection-error-action",[(k=V.data)==null?void 0:k.genericImageLoadErrorMessage]);V.onCancelTap()};
return _.K(e,$dh(V.imageEditorCanvas,N),2)}V.imageEditor=e.yieldResult;V.updatePositionOfAllCorners();V.addEventListeners(V.imageEditor);_.FU(e)})},!1);
H.readAsDataURL(l);_.Rv(w,0);break;case 2:T=_.kE(w),T instanceof lPu?_.xB(V.hostElement,"yt-image-selection-error-action",[(x=V.data)==null?void 0:x.imageSizeErrorMessage]):(T instanceof Error?_.Gr(T):_.oV(new _.Yd(JSON.stringify(T))),_.xB(V.hostElement,"yt-image-selection-error-action",[(n=V.data)==null?void 0:n.genericImageLoadErrorMessage])),V.onCancelTap(),_.FU(w)}})};
_.B.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var V=_.BX(_.x7(),{veType:232707,visualElement:_.eU(232707)});V&&(V={visualElement:V},_.TG().reportShown(V))}};
_.B.handleImageSelectionErrorAction=function(V){this.isPlaylistThumbnail&&_.Ahf(this.hostElement,V)};
_.B.convertToImageFormatBundle=function(V){var l=this,I,H,T;return _.d(function(x){switch(x.nextAddress){case 1:return I=V.toDataURL(l.outputMimeType,1),_.K(x,vvI(I),2);case 2:H=x.yieldResult;_.jd(x,3);TKP(l.imageChecker,H);_.Rv(x,4);break;case 3:T=_.kE(x);if(!(T instanceof lPu))throw T;_.hF(new _.Yd("Output size is bigger than input size for image",l.mimeType,l.outputMimeType,H.size));I=V.toDataURL("image/jpeg",.95);return _.K(x,vvI(I),6);case 6:H=x.yieldResult;case 4:return x.return({dataUrl:I,
imageFile:H})}})};
_.B.handleUploadImageToScottyCommand=function(V){var l=this,I,H,T,x,n,w,N,L,e,k;return _.d(function(X){switch(X.nextAddress){case 1:if(!l.imageEditor||!_.y(V,ErI))return X.return();I=_.y(V,ErI).scottyUploadUrl;if(!I){var r=new _.Yd("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Gr(r);return X.return()}_.jd(X,2);l.setLoadingState();H=l.imageEditor.crop(!1,!1);return _.K(X,l.convertToImageFormatBundle(H),4);case 4:return T=X.yieldResult,_.K(X,pnE(T.imageFile,I),5);case 5:x=
X.yieldResult;((n=l.data)==null?0:n.onUploadEndpoint)?(w=l.buildUploadServiceEndpoint(x),l.ytComponentBehavior.resolveCommand(w),N=_.y(w,_.D0),((L=N)==null?0:L.params)?l.closePopup():l.resetFileSelector()):(_.xB(l.hostElement,"yt-image-updated-action",[T.dataUrl,x]),l.closePopup());_.Rv(X,0);break;case 2:e=_.kE(X),l.setErrorState((k=l.data)==null?void 0:k.uploadErrorMessage),e instanceof Error?_.Gr(e):(r=new _.Yd(JSON.stringify(e)),_.Gr(r)),_.FU(X)}})};
_.B.buildUploadServiceEndpoint=function(V){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",V),this.data.onUploadEndpoint):null};
_.B.dataChanged=function(){var V=this,l;return _.d(function(I){if(I.nextAddress==1){if(!V.data||!V.canvasElement)return I.return();V.data.imageRatio&&V.data.minImageCropWidth||_.oV(new _.Yd("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));l=function(H,T){return V.data.imageType==="IMAGE_TYPE_AVATAR"?new Pmb(H,T,V.data.imageRatio,[V.data.minImageCropWidth,V.data.minImageCropWidth/V.data.imageRatio],V.hostElement):new s8(H,T,V.data.imageRatio,[V.data.minImageCropWidth,
V.data.minImageCropWidth/V.data.imageRatio],void 0,V.hostElement,8,!1)};
V.imageEditorCanvas=new BKu(V.canvasElement,l);return V.data.url?_.K(I,$dh(V.imageEditorCanvas,V.data.url),3):(V.hideContainer=!0,V.openFileSelector(),I.jumpTo(0))}V.imageEditor=I.yieldResult;V.showPopup();V.addEventListeners(V.imageEditor);_.FU(I)})};
_.B.addEventListeners=function(V){this.removeEventListeners();var l=function(T){xdE(V,T)};
this.JSC$18420_mouseDownEvent=l;var I=function(T){Udu(V,T)};
this.JSC$18420_mouseMoveEvent=I;var H=function(){n2P(V)};
this.JSC$18420_mouseUpEvent=H;this.topLeftCorner.addEventListener("mousedown",l);this.topLeftCorner.addEventListener("mousemove",I);this.topLeftCorner.addEventListener("mouseup",H);this.topRightCorner.addEventListener("mousedown",l);this.topRightCorner.addEventListener("mousemove",I);this.topRightCorner.addEventListener("mouseup",H);this.bottomLeftCorner.addEventListener("mousedown",l);this.bottomLeftCorner.addEventListener("mousemove",I);this.bottomLeftCorner.addEventListener("mouseup",H);this.bottomRightCorner.addEventListener("mousedown",
l);this.bottomRightCorner.addEventListener("mousemove",I);this.bottomRightCorner.addEventListener("mouseup",H)};
_.B.removeEventListeners=function(){this.JSC$18420_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18420_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18420_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18420_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18420_mouseDownEvent));this.JSC$18420_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18420_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18420_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18420_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18420_mouseMoveEvent));this.JSC$18420_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18420_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18420_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18420_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18420_mouseUpEvent))};
_.B.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var V=document.activeElement;V&&V.shadowRoot&&V.shadowRoot.activeElement;)V=V.shadowRoot.activeElement;switch(V){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};
_.B.updatePositionOfCorner=function(V,l){var I=V.y-l.offsetHeight/2+4;l.style.left=V.x-l.offsetWidth/2+16+"px";l.style.top=I+"px"};
_.B.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var V=_.U([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),l=V.next();!l.done;l=V.next()){l=l.value;var I=Keu(this.imageEditor,l.corner);this.updatePositionOfCorner(I,l.div)}};
_.B.onLeft=function(V){this.imageEditor&&this.setFocusInImageEditor()&&(YDY(this.imageEditor,0),this.updatePositionOfAllCorners(),V.preventDefault())};
_.B.onRight=function(V){this.imageEditor&&this.setFocusInImageEditor()&&(YDY(this.imageEditor,1),this.updatePositionOfAllCorners(),V.preventDefault())};
_.B.onUp=function(V){this.imageEditor&&this.setFocusInImageEditor()&&(YDY(this.imageEditor,2),this.updatePositionOfAllCorners(),V.preventDefault())};
_.B.onDown=function(V){this.imageEditor&&this.setFocusInImageEditor()&&(YDY(this.imageEditor,3),this.updatePositionOfAllCorners(),V.preventDefault())};
_.B.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.vI.Object.defineProperties(SDV.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&ZpQ.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var V,l,I;((l=this.data)==null?0:l.imageRatio)&&((I=this.data)==null?0:I.minImageCropWidth)?V={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:V=DdV;return new HpI(V)}}});
var p1=SDV;p1.prototype.updatePositionOfAllCorners=p1.prototype.updatePositionOfAllCorners;p1.prototype.dataChanged=p1.prototype.dataChanged;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],p1.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],p1.prototype,"ytComponentBehavior",void 0);_.O([_.R(_.yn),_.a("design:type",Object)],p1.prototype,"ironA11yKeysBehavior",void 0);
_.O([_.Ij("#canvas"),_.a("design:type",HTMLCanvasElement)],p1.prototype,"canvasElement",void 0);_.O([_.Ij("#file-selector"),_.a("design:type",HTMLInputElement)],p1.prototype,"fileSelector",void 0);_.O([_.Ij("#top-left-corner"),_.a("design:type",HTMLDivElement)],p1.prototype,"topLeftCorner",void 0);_.O([_.Ij("#top-right-corner"),_.a("design:type",HTMLDivElement)],p1.prototype,"topRightCorner",void 0);
_.O([_.Ij("#bottom-left-corner"),_.a("design:type",HTMLDivElement)],p1.prototype,"bottomLeftCorner",void 0);_.O([_.Ij("#bottom-right-corner"),_.a("design:type",HTMLDivElement)],p1.prototype,"bottomRightCorner",void 0);_.O([_.q(),_.a("design:type",Object)],p1.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],p1.prototype,"errorMessage",void 0);_.O([_.q(),_.a("design:type",Object)],p1.prototype,"isLoading",void 0);_.O([_.q(),_.a("design:type",Object)],p1.prototype,"hideContainer",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.a("design:type",Boolean)],p1.prototype,"isPlaylistThumbnail",void 0);_.O([_.xs("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],p1.prototype,"dataChanged",null);_.O([_.W("image-updated"),_.W("yt-refit"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p1.prototype,"updatePositionOfAllCorners",null);
p1=_.O([_.Lm({is:"yt-image-editor-renderer",disableElementRegistration:!0})],p1);
_.u(p1,"yt-image-editor-renderer",function(){if(V9I===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;i4b===void 0&&(i4b=document.createElement("template"));var H=i4b;I.call(l,H.content.cloneNode(!0),V.content.firstChild);V9I=V}V=V9I;return V},{mode:2});var ROr;var QFP;var cgE=function(){return _.M.apply(this,arguments)||this};
_.t(cgE,_.M);cgE.prototype.updateMinutesFromBinding=function(V){this.handleMinutesChanged&&this.handleMinutesChanged(V)};
cgE.prototype.updateSecondsFromBinding=function(V){this.handleSecondsChanged&&this.handleSecondsChanged(V)};
cgE.prototype.updateDescriptionFromBinding=function(V){this.handleDescriptionChanged&&this.handleDescriptionChanged(V)};
var AA=cgE;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],AA.prototype,"ytComponentBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],AA.prototype,"data",void 0);_.O([_.q(),_.a("design:type",String)],AA.prototype,"minutes",void 0);_.O([_.q(),_.a("design:type",String)],AA.prototype,"seconds",void 0);_.O([_.q(),_.a("design:type",String)],AA.prototype,"description",void 0);_.O([_.q(),_.a("design:type",Function)],AA.prototype,"handleMinutesChanged",void 0);
_.O([_.q(),_.a("design:type",Function)],AA.prototype,"handleSecondsChanged",void 0);_.O([_.q(),_.a("design:type",Function)],AA.prototype,"handleDescriptionChanged",void 0);_.O([_.q(),_.a("design:type",Number)],AA.prototype,"characterLimit",void 0);_.O([_.q(),_.a("design:type",Number)],AA.prototype,"textNumRows",void 0);AA=_.O([_.Lm({is:"yt-report-details-form-content",disableElementRegistration:!0})],AA);
_.u(AA,"yt-report-details-form-content",function(){if(QFP===void 0){var V=document.createElement("template");_.G(V,'\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>');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;ROr===void 0&&(ROr=document.createElement("template"));var H=ROr;I.call(l,H.content.cloneNode(!0),V.content.firstChild);QFP=V}V=QFP;return V},{mode:2});var Wer;var bpB;var qDV=function(){var V=_.M.apply(this,arguments)||this;V.updateMinutesFromBinding=function(l){V.minutes=l.detail.value};
V.updateSecondsFromBinding=function(l){V.seconds=l.detail.value};
V.updateDescriptionFromBinding=function(l){V.description=l.detail.value};
return V};
_.t(qDV,_.M);_.B=qDV.prototype;_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.B.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"}}}};
_.B.ready=function(){_.h(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.B.onSubmitYtAction=function(V){var l=V.detail;l.actionName==="yt-service-request"&&(l=l.args[1],l.flagEndpoint&&(V.stopPropagation(),this.refireAction(l)))};
_.B.refireAction=function(V){var l={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(l.vss_id=this.vssId);_.$B(this.hostElement,[V,l]);this.submitDisabled=!0};
_.B.dataChanged=function(){var V=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var l=_.u8();l&&l.getPlayerPromise().then(function(I){var H=I.getOption("cc","track")||I.getOption("captions","track");H&&(V.vssId=H.vss_id);I=I.getCurrentTime();V.minutes=Math.floor(I/60).toString();V.seconds=(Math.floor(I)%60).toString()})};
_.B.updateSubmitButtonState=function(){var V;((V=this.data)==null?0:V.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==="")};
_.B.onYtServiceRequestCompleted=function(){_.xB(this.hostElement,"yt-close-popup-action")};
_.B.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.vI.Object.defineProperties(qDV.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var V;return((V=this.data)==null?void 0:V.textNumRows)||4}}});
var uu=qDV;uu.prototype.onYtServiceRequestError=uu.prototype.onYtServiceRequestError;uu.prototype.onYtServiceRequestCompleted=uu.prototype.onYtServiceRequestCompleted;uu.prototype.updateSubmitButtonState=uu.prototype.updateSubmitButtonState;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],uu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);
_.O([_.q({observer:"dataChanged"}),_.a("design:type",Object)],uu.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Boolean)],uu.prototype,"submitDisabled",void 0);_.O([_.q(),_.a("design:type",String)],uu.prototype,"minutes",void 0);_.O([_.q(),_.a("design:type",String)],uu.prototype,"seconds",void 0);_.O([_.q(),_.a("design:type",String)],uu.prototype,"description",void 0);_.O([_.q(),_.a("design:type",String)],uu.prototype,"vssId",void 0);
_.O([_.q({value:_.h6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.a("design:type",Boolean)],uu.prototype,"isMusic",void 0);_.O([_.Q("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],uu.prototype,"characterLimit",null);_.O([_.Q("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],uu.prototype,"textNumRows",null);
_.O([_.xs("minutes","seconds","description","submitDisabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uu.prototype,"updateSubmitButtonState",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uu.prototype,"onYtServiceRequestCompleted",null);
_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uu.prototype,"onYtServiceRequestError",null);uu=_.O([_.Lm({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],uu);
_.u(uu,"yt-report-details-form-renderer",function(){if(bpB===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Wer===void 0&&(Wer=document.createElement("template"));var H=Wer;I.call(l,H.content.cloneNode(!0),V.content.firstChild);bpB=V}V=bpB;return V});var M92;var sFB;var ppV;var Agu;var uCV=function(){return _.M.apply(this,arguments)||this};
_.t(uCV,_.M);
uCV.prototype.onCheckedChanged_=function(){if(this.data){var V=_.h(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.xB(this.hostElement,"yt-additional-detail-checkbox-update",[V]):this.data.identifier==="yt-hide-user-checkbox"?_.xB(this.hostElement,"yt-hide-user-checkbox-update",[V]):V&&this.data.enableCommand?_.xB(this.hostElement,"yt-modify-report-form-command",[_.y(this.data.enableCommand,RSu)]):!V&&this.data.disableCommand&&_.xB(this.hostElement,
"yt-modify-report-form-command",[_.y(this.data.enableCommand,RSu)])}};
uCV.prototype.onLabelTap_=function(V){V.target.tagName!="A"&&(_.h(this.hostElement).querySelector("#checkbox").checked=!_.h(this.hostElement).querySelector("#checkbox").checked)};
var v2u=uCV;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],v2u.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],v2u.prototype,"data",void 0);v2u=_.O([_.Lm({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],v2u);
_.u(v2u,"yt-boolean-form-field-v2-renderer",function(){if(Agu===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;ppV===void 0&&(ppV=document.createElement("template"));var H=ppV;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Agu=V}V=Agu;return V});var OpE=function(){var V=_.M.apply(this,arguments)||this;V.canShowAdditionalDetailCheckbox=!1;V.canShowCheckbox=!1;V.keepDropdownFocusedAfterSelection=!0;return V};
_.t(OpE,_.M);OpE.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
var vP=OpE;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],vP.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],vP.prototype,"canShowAdditionalDetailCheckbox",void 0);_.O([_.q(),_.a("design:type",Object)],vP.prototype,"canShowCheckbox",void 0);_.O([_.q(),_.a("design:type",Object)],vP.prototype,"keepDropdownFocusedAfterSelection",void 0);
vP=_.O([_.Lm({is:"yt-report-form-modal-content",disableElementRegistration:!0})],vP);
_.u(vP,"yt-report-form-modal-content",function(){if(sFB===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;M92===void 0&&(M92=document.createElement("template"));var H=M92;I.call(l,H.content.cloneNode(!0),V.content.firstChild);sFB=V}V=sFB;return V},{mode:2});var CmE;var aPI;var fPB=function(){var V=_.M.apply(this,arguments)||this;V.submitting=!1;V.submitButtonDisabled=!0;V.command=null;V.canShowCheckbox=!1;V.canShowAdditionalDetailCheckbox=!1;V.canShowNextButton=!1;V.additionalDetailCheckboxChecked=!1;V.refitJob=0;V.keepDropdownFocusedAfterSelection=!0;V.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 V};
_.t(fPB,_.M);_.B=fPB.prototype;_.B.created=function(){this.refitJob=0};
_.B.attached=function(){this.JSC$18443_scroller&&(this.JSC$18443_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18443_scroller.attached&&typeof this.JSC$18443_scroller.attached==="function"&&this.JSC$18443_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.dataChanged=function(V){V&&(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,V.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),V.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.B.onYtPopupOpened=function(){var V=_.u8();V&&V.getPlayerPromise().then(function(l){l.pauseVideo()})};
_.B.onYtNavigate=function(V){_.y(V.detail.endpoint,_.PUB)&&(V.stopPropagation(),this.hideReportForm=!0)};
_.B.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.B.onYtServiceRequestCompleted=function(V,l){var I=l.actions;if(I){if(I.length===1&&_.y(I[0],_.NJ)){var H;I=((H=_.y(I[0],_.NJ))==null?void 0:H.commands)||[]}H=0;for(var T=I.length;H<T;H++)_.y(I[H],_.Ed)&&(V.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(I[H]))}if(l.data&&(V=this.get("feedbackResponses",l.data)))for(l=0;l<V.length;l++)if(V[l].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.B.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.B._onDescendantIronResize=function(V){V.stopPropagation();return!1};
_.B.handleReportFormEndpointUpdateAction=function(V){if(V.submitEndpoint){var l=this.command=V.submitEndpoint;l=_.y(l,_.jC0);if(l==null?0:l.additionalDetailCheckboxChecked)l.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else V.submitNavigationEndpoint?(this.command=V.submitNavigationEndpoint,this.toggleSubmitButton(!1)):V.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:V.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;V.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",V));this.refit()};
_.B.handleConfirmDialogCloseAction=function(V){V.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.B.submitButtonDisabledChanged=function(){var V=this.hostElement.parentElement;V&&V.invalidateTabbables&&V.invalidateTabbables()};
_.B.handleModifyReportFormCommand=function(V){V=this.get("action",V);V==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:V==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:V==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:V==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:V==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:V==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.B.updateDialogStyling=function(){var V,l,I,H,T,x=((T=(V=this.data)==null?void 0:(l=V.optionsSupportedRenderers)==null?void 0:(I=l.optionsRenderer)==null?void 0:(H=I.items)==null?void 0:H.length)!=null?T:0)<=2?0:240;_.i3(this.hostElement,{"--yt-report-form-modal-renderer-min-width":x+"px"})};
_.B.toggleSubmitButton=function(V){this.submitButtonDisabled=!V;this.submitButtonDisabled=V};
_.B.computeSubmitButtonData=function(V,l){var I={};_.y(l,_.PUB)?I.navigationEndpoint=l:I.command=l||void 0;V&&V.buttonRenderer&&_.EL.extend(I,V.buttonRenderer);return I};
_.B.computeNextButtonData=function(V,l){var I={};if(!V||!V.buttonRenderer)return I;_.EL.extend(I,V.buttonRenderer);if(!l)return I;if(_.y(l,_.PUB))I.navigationEndpoint=QCE(l);else if(I.command=QCE(l),V=_.y(I.command,_.jC0))V.legalCheckboxChecked=!0;return I};
_.B.computeShowNextButton=function(V,l,I){return!!V&&l&&I};
_.B.refit=function(){var V=this;this.refitJob||(this.refitJob=_.r0.addLowPriorityJob(function(){_.B$(V.hostElement,"yt-refit");V.refitJob=0}))};
_.B.handleAdditionalDetailCheckboxUpdateAction=function(V){this.additionalDetailCheckboxChecked=V;_.y(this.command,_.jC0).additionalDetailCheckboxChecked=V};
_.vI.Object.defineProperties(fPB,{template:{configurable:!0,enumerable:!0,get:function(){if(aPI===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;CmE===void 0&&(CmE=document.createElement("template"));var H=CmE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);aPI=V}V=aPI;return V}}});
var O8=fPB;O8.prototype.onYtServiceRequestError=O8.prototype.onYtServiceRequestError;O8.prototype.onYtServiceRequestCompleted=O8.prototype.onYtServiceRequestCompleted;O8.prototype.onYtServiceRequestSent=O8.prototype.onYtServiceRequestSent;O8.prototype.onYtNavigate=O8.prototype.onYtNavigate;O8.prototype.onYtPopupOpened=O8.prototype.onYtPopupOpened;_.O([_.R(_.x4.YtOpenPopupBehavior),_.a("design:type",Object)],O8.prototype,"openPopupBehavior",void 0);
_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],O8.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],O8.prototype,"eventForwardingBehavior",void 0);_.O([_.R(_.Da),_.a("design:type",Object)],O8.prototype,"ironResizableBehavior",void 0);_.O([_.q({observer:"dataChanged"}),_.a("design:type",Object)],O8.prototype,"data",void 0);
_.O([_.q(),_.a("design:type",Object)],O8.prototype,"submitting",void 0);_.O([_.q({observer:"submitButtonDisabledChanged"}),_.a("design:type",Object)],O8.prototype,"submitButtonDisabled",void 0);_.O([_.q(),_.a("design:type",Object)],O8.prototype,"command",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],O8.prototype,"hideReportForm",void 0);_.O([_.q(),_.a("design:type",Object)],O8.prototype,"canShowCheckbox",void 0);
_.O([_.q(),_.a("design:type",Object)],O8.prototype,"canShowAdditionalDetailCheckbox",void 0);_.O([_.q(),_.a("design:type",Object)],O8.prototype,"canShowNextButton",void 0);_.O([_.q(),_.a("design:type",Object)],O8.prototype,"additionalDetailCheckboxChecked",void 0);_.O([_.q(),_.a("design:type",Object)],O8.prototype,"refitJob",void 0);_.O([_.q(),_.a("design:type",Object)],O8.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.O([_.Ij("#scroller"),_.a("design:type",Object)],O8.prototype,"JSC$18443_scroller",void 0);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],O8.prototype,"onYtPopupOpened",null);_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],O8.prototype,"onYtNavigate",null);
_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],O8.prototype,"onYtServiceRequestSent",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],O8.prototype,"onYtServiceRequestCompleted",null);
_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],O8.prototype,"onYtServiceRequestError",null);O8=_.O([_.Lm({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],O8);var g26;var mdP;var ipg=function(){return _.M.apply(this,arguments)||this};
_.t(ipg,_.M);_.B=ipg.prototype;_.B.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.B.onVisible=function(){if(_.z("web_ephemeral_actions_focus")){var V,l;(l=_.F().resolve(_.Cs(_.n$)))==null||l.enqueue({label:_.A5((V=this.data)==null?void 0:V.messageTitle),elementToFocus:this.hostElement})}};
_.B.onThumbnailLoaded=function(){_.B$(this.hostElement,"yt-refit")};
_.B.onDismissTap=function(){_.xB(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.B.computeAlternateIcon=function(V){return V?V==="BACKSTAGE_ARTWORK"?"backstage:artwork":V:null};
_.B.computeFontFamily=function(V){return V==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.B.computeBackgroundStyle=function(V,l){if(V=this.computeBackgroundImage(V,l))if(V=_.pt(V.thumbnails))return'background-image: url("'+V+'");'};
_.B.computeHasFullHeightImage=function(V){return!(!(V&&V.thumbnails&&V.thumbnails.length>0)||this.modern)};
_.B.isModernStyle=function(V){return V.style==="STYLE_MODERN"};
_.B.computeIcon=function(V,l){if(V&&V.icon)return l?V.iconDark:V.icon};
_.B.computeBackgroundImage=function(V,l){if(V&&V.backgroundImage)return l?V.backgroundImageDark:V.backgroundImage};
_.B.computeLogo=function(V,l){if(V&&V.logo)return l?V.logoDark:V.logo};
_.B.computeShouldShowModernIcon=function(V,l){return V&&!!l};
_.B.getLogoContainerClassName=function(V){return this.logoWithPadding(V)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.B.getLogoImageId=function(V){return this.logoWithPadding(V)?"mealbar-logo-with-padding":"mealbar-logo"};
_.B.logoWithPadding=function(V){var l,I,H;return(V=(l=this.computeLogo(V,this.isDarkTheme))==null?void 0:(I=l.thumbnails)==null?void 0:(H=I[0])==null?void 0:H.height)&&V%31===0?!0:!1};
var C1=ipg;C1.prototype.onThumbnailLoaded=C1.prototype.onThumbnailLoaded;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.O([_.q({}),_.a("design:type",Object)],C1.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.a("design:type",Boolean)],C1.prototype,"modern",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],C1.prototype,"isDarkTheme",void 0);
_.O([_.q({computed:"computeIcon(data, isDarkTheme)"}),_.a("design:type",Object)],C1.prototype,"icon",void 0);_.O([_.q({computed:"computeLogo(data, isDarkTheme)"}),_.a("design:type",Object)],C1.prototype,"logo",void 0);_.O([_.q({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.a("design:type",Object)],C1.prototype,"backgroundStyle",void 0);_.O([_.q({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.a("design:type",Object)],C1.prototype,"alternateIcon",void 0);
_.O([_.q({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.a("design:type",Boolean)],C1.prototype,"hasFullHeightImage",void 0);_.O([_.q({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.a("design:type",Boolean)],C1.prototype,"useYoutubeSans",void 0);_.O([_.q({computed:"computeShouldShowModernIcon(modern, icon)"}),_.a("design:type",Boolean)],C1.prototype,"shouldShowModernIcon",void 0);
_.O([_.W("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C1.prototype,"onThumbnailLoaded",null);C1=_.O([_.Lm({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],C1);
_.u(C1,"yt-mealbar-promo-renderer",function(){if(mdP===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;g26===void 0&&(g26=document.createElement("template"));var H=g26;I.call(l,H.content.cloneNode(!0),V.content.firstChild);mdP=V}V=mdP;return V},{mode:2});var Vpu;var l_Y;var I_P=function(){return _.M.apply(this,arguments)||this};
_.t(I_P,_.M);_.B=I_P.prototype;_.B.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]]"}}}}}};
_.B.computeHasButtons_=function(V){return!(!V.dismissButton&&!V.acceptButton)};
_.B.computeStyle_=function(V){return V||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.B.observeImpressionEndpoints_=function(){var V=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(l){l.clickTrackingParams&&delete l.clickTrackingParams;_.$B(V.hostElement,[l])})};
_.B.onTap_=function(){_.xB(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
var aW=I_P;aW.prototype.observeImpressionEndpoints_=aW.prototype.observeImpressionEndpoints_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],aW.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],aW.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],aW.prototype,"positionType",void 0);_.O([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.a("design:type",Boolean)],aW.prototype,"hasButtons_",void 0);_.O([_.q({value:function(){return this.onTap_.bind(this)}}),
_.a("design:type",Function)],aW.prototype,"boundOnTap_",void 0);_.O([_.q({value:{style:"mono-inverse"}}),_.a("design:type",Object)],aW.prototype,"buttonOverride",void 0);_.O([_.b("data.promoConfig.impressionEndpoints"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aW.prototype,"observeImpressionEndpoints_",null);aW=_.O([_.Lm({is:"yt-tooltip-renderer",disableElementRegistration:!0})],aW);
_.u(aW,"yt-tooltip-renderer",function(){if(l_Y===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;Vpu===void 0&&(Vpu=document.createElement("template"));var H=Vpu;I.call(l,H.content.cloneNode(!0),V.content.firstChild);l_Y=V}V=l_Y;return V},{mode:2});var HJY;var TaE;var BaE={},xj6=(BaE.WEB_REMIX="music.youtube.com",BaE),UjP=function(){var V=_.M.apply(this,arguments)||this;V.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return V};
_.t(UjP,_.M);_.B=UjP.prototype;_.B.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.created=function(){this.embedHost_=xj6[_.h6("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.B.ready=function(){_.h(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.B.computeEmbedCode_=function(V,l,I,H,T){if(!V)return"";var x=V.videoId,n=V.fullListId,w=[];V.attributionId&&w.push("si="+V.attributionId);H||w.push("controls=0");I&&Number(l)>0&&w.push("start="+l);n&&(x="videoseries",w.push("list="+n));I="https://"+(T?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+x;V.clipId&&(w.push("clip="+V.clipId),w.push("clipt="+V.clipTiming));l=w.length>0?I+"?"+w.join("&amp;"):I;V.encryptedEmbedConfig&&w.push("embed_config="+JSON.stringify({enc:V.encryptedEmbedConfig}));
w=w.length>0?I+"?"+w.join("&amp;"):I;_.z("web_sharing_embed_preview_killswitch")?_.h(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(w,V.previewWidth||854,V.previewHeight||480):(_.ci(this.videoPreviewContainer),_.h(this.videoPreviewContainer).appendChild(this.buildIframeElement(w)));return this.getEmbedCode_(l,V.width||560,V.height||315)};
_.B.buildIframeElement=function(V){var l=document.createElement("iframe"),I,H;l.width=""+((H=(I=this.data)==null?void 0:I.previewWidth)!=null?H:854);var T,x;l.height=""+((x=(T=this.data)==null?void 0:T.previewHeight)!=null?x:480);_.vnt(l,2,V);l.title="YouTube video player";l.frameBorder="0";l.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";l.referrerPolicy="strict-origin-when-cross-origin";l.allowFullscreen=!0;return l};
_.B.computeIsSquareAspectRatio_=function(V){return V.previewHeight&&V.previewWidth?V.previewHeight==V.previewWidth:!1};
_.B.computeShowEmbedOptions_=function(V){return!!V.enablePrivacyModeOptionLabel||!!V.showPlayerControlsOptionLabel};
_.B.getEmbedCode_=function(V,l,I){return'<iframe width="'+l+'" height="'+I+'" src="'+V+'" 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>'};
_.B.handleSignalActionCopyShareEmbedUrl_=function(){_.h(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.B.handleSetTimestamp_=function(V){this.startAtTimeStamp_=(this.startAtChecked_=V.isSet)?V.timestamp:0};
_.B.closePanel_=function(){_.xB(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.B.onEmbedCode_=function(){_.h(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.B.onYtPopupClosed_=function(){_.ci(_.h(this.hostElement).querySelector("#video-preview"))};
_.B.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.y(this.data.actionButtons[0],_.RG)&&this.ytRendererBehavior.logExplicitClick(_.y(this.data.actionButtons[0],_.RG))};
var f1=UjP;f1.prototype.onYtPopupClosed_=f1.prototype.onYtPopupClosed_;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],f1.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],f1.prototype,"data",void 0);
_.O([_.q({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.a("design:type",String)],f1.prototype,"embedCode_",void 0);_.O([_.q({value:!0}),_.a("design:type",Boolean)],f1.prototype,"isPlayerControlsOptionChecked_",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],f1.prototype,"isPrivacyModeOptionChecked_",void 0);_.O([_.q({value:!1,notify:!0}),_.a("design:type",Boolean)],f1.prototype,"startAtChecked_",void 0);
_.O([_.q({value:0}),_.a("design:type",Number)],f1.prototype,"startAtTimeStamp_",void 0);_.O([_.q({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],f1.prototype,"isSquareAspectRatio_",void 0);_.O([_.Ij("#video-preview"),_.a("design:type",HTMLElement)],f1.prototype,"videoPreviewContainer",void 0);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],f1.prototype,"onYtPopupClosed_",null);
f1=_.O([_.Lm({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],f1);
_.u(f1,"yt-sharing-embed-renderer",function(){if(TaE===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;HJY===void 0&&(HJY=document.createElement("template"));var H=HJY;I.call(l,H.content.cloneNode(!0),V.content.firstChild);TaE=V}V=TaE;return V},{mode:2});var nWh={};
nWh.YtUnlimitedFamilyInterstitialBehavior=[_.x4.YtOpenPopupBehavior,_.aU.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(V){V=_.Gfo(_.qv(V),"yt-button-renderer");return V?V.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(V){this.dialogHistory_.push(V)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var V=this.popFromHistory();if(V){var l={openPopupAction:{popupType:"DIALOG",popup:{}}};l.openPopupAction.popup[V.renderer]=V.data;this.showingPreviousDialog_=!0;this.openPopup(l)}},
handleOpenPopupAction_:function(V){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var l=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(H){return!!V.openPopupAction.popup[H]}),I=this.getElementName_();
l&&this.data&&(this.pushToHistory({renderer:I,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(V){if(V=_.y(V,nQP))this.loading=!0,_.xB(this.hostElement,"yt-open-create-family-dialog",[V,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var V=this.hostElement.nodeName.split("-").slice(1).map(function(l){return""+l[0].toUpperCase()+l.slice(1).toLowerCase()}).join("");
return V[0].toLowerCase()+V.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var $jY;var djg;var w8u=function(){return _.M.apply(this,arguments)||this};
_.t(w8u,_.M);_.B=w8u.prototype;_.B.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}}}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.xB(this.hostElement,"yt-register-create-family-dialog");_.h(this.hostElement).querySelector("#thumbnail").onShow()};
_.B.fireOnCloseCommand_=function(){var V;((V=this.data)==null?0:V.onCloseCommand)&&_.d6(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.B.onYtServiceRequestSent_=function(V,l){l&&l.endpoint&&_.y(l.endpoint,_.j1)||(this.loading=!0)};
_.B.onYtServiceRequestCompleted_=function(){var V=this.hostElement.parentElement;V.close&&V.close();this.loading=!1};
_.B.openPopupHandler_=function(V){if(V.detail==this){var l;((l=this.data)==null?0:l.onOpenCommands)&&_.d6(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.B.closePopupHandler_=function(V,l){this.fireOnCloseCommand_();if(l&&l.canceled===!0||l&&l.canceled===!1&&l.confirmed===!1){var I;((I=this.data)==null?0:I.onDismissCommands)&&_.d6(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.B.dataChanged_=function(){this.loading=!1};
var gG=w8u;gG.prototype.dataChanged_=gG.prototype.dataChanged_;gG.prototype.closePopupHandler_=gG.prototype.closePopupHandler_;gG.prototype.openPopupHandler_=gG.prototype.openPopupHandler_;gG.prototype.onYtServiceRequestCompleted_=gG.prototype.onYtServiceRequestCompleted_;gG.prototype.onYtServiceRequestSent_=gG.prototype.onYtServiceRequestSent_;_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],gG.prototype,"ytEventForwardingBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(nWh.YtUnlimitedFamilyInterstitialBehavior),_.a("design:type",Object)],gG.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],gG.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],gG.prototype,"loading",void 0);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],gG.prototype,"onYtServiceRequestSent_",null);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],gG.prototype,"onYtServiceRequestCompleted_",null);
_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],gG.prototype,"openPopupHandler_",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],gG.prototype,"closePopupHandler_",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gG.prototype,"dataChanged_",null);
gG=_.O([_.Lm({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],gG);
_.u(gG,"yt-unlimited-family-message-interstitial-renderer",function(){if(djg===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;$jY===void 0&&($jY=document.createElement("template"));var H=$jY;I.call(l,H.content.cloneNode(!0),V.content.firstChild);djg=V}V=djg;return V},{mode:2});var Na2;var KXY;var mN=function(){return _.M.apply(this,arguments)||this};
_.t(mN,_.M);mN.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"}}}};
mN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.h(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(V){V.onShow()});
_.h(this.hostElement).querySelector("#main-thumbnail").onShow()};
mN.prototype.onButtonTap_=function(V){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(V)};
mN.prototype.computeMainThumbnailWidth_=function(V){return V&&V.length!==0?72:96};
var iu=mN;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.O([_.R(nWh.YtUnlimitedFamilyInterstitialBehavior),_.a("design:type",Object)],iu.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],iu.prototype,"data",void 0);
_.O([_.q({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.a("design:type",Number)],iu.prototype,"mainThumbnailWidth_",void 0);_.O([_.q({value:function(){return this.onButtonTap_.bind(this)}}),
_.a("design:type",Function)],iu.prototype,"boundButtonTap_",void 0);iu=_.O([_.Lm({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],iu);
_.u(iu,"yt-unlimited-family-profile-interstitial-renderer",function(){if(KXY===void 0){var V=document.createElement("template");_.G(V,'\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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;Na2===void 0&&(Na2=document.createElement("template"));var H=Na2;I.call(l,H.content.cloneNode(!0),V.content.firstChild);KXY=V}V=KXY;return V},{mode:2});var jfP;var Yi6;var LXg=function(){var V=_.M.apply(this,arguments)||this;V.sliderAriaValueText_=null;V.selectedIndex_=0;V.messages={PAUSE_SLIDER:_.LT("PAUSE_SLIDER",void 0,"Pause Duration")};return V};
_.t(LXg,_.M);_.B=LXg.prototype;_.B.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_]]"}}}}}};
_.B.onPopupOpened_=function(V){V.detail==this&&_.z("enable_premium_voluntary_pause")&&(_.xB(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.B.setDialogData=function(V){this.data=V;this.resetSlider_()};
_.B.dataChanged_=function(){this.data&&this.resetSlider_()};
_.B.onSubmitTap_=function(){if(this.data.confirmCommand){var V=this.data.confirmCommand;_.y(V,_.wfJ)&&_.$B(this.hostElement,[V,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.B.onExitButtonTap_=function(){_.xB(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.B.closePopupHandler_=function(V,l){(l&&l.canceled===!0||l.canceled===!1&&l.confirmed===!1)&&this.handleOnDismissCommands_()};
_.B.onSliderChange_=function(){this.selectedIndex_=_.h(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.B.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.B.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.B.resetSlider_=function(){if(this.data){var V=this.data.defaultEndOptionIndex||0,l=_.h(this.hostElement).querySelector("#id-pause-slider");if(l.immediateValue<V)for(;l.immediateValue!=V;)l.increment();else if(V<l.immediateValue)for(;l.immediateValue!=V;)l.decrement();this.selectedIndex_=V;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.B.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.d6(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.B.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.d6(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.B.onYtServiceRequestSent=function(){this.loading=!0};
_.B.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
var VF=LXg;VF.prototype.onYtServiceRequestCompleted=VF.prototype.onYtServiceRequestCompleted;VF.prototype.onYtServiceRequestSent=VF.prototype.onYtServiceRequestSent;VF.prototype.closePopupHandler_=VF.prototype.closePopupHandler_;VF.prototype.dataChanged_=VF.prototype.dataChanged_;VF.prototype.onPopupOpened_=VF.prototype.onPopupOpened_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],VF.prototype,"data",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],VF.prototype,"loading",void 0);_.O([_.q(),_.a("design:type",Number)],VF.prototype,"selectIndexMax_",void 0);_.O([_.q(),_.a("design:type",Object)],VF.prototype,"selectedData_",void 0);
_.O([_.q(),_.a("design:type",Object)],VF.prototype,"sliderAriaValueText_",void 0);_.O([_.q({value:function(){return this.onSubmitTap_.bind(this)}}),
_.a("design:type",Function)],VF.prototype,"onButtonTap_",void 0);_.O([_.q({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.a("design:type",Function)],VF.prototype,"onSecondaryTap_",void 0);_.O([_.q(),_.a("design:type",Object)],VF.prototype,"messages",void 0);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],VF.prototype,"onPopupOpened_",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VF.prototype,"dataChanged_",null);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],VF.prototype,"closePopupHandler_",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],VF.prototype,"onYtServiceRequestSent",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],VF.prototype,"onYtServiceRequestCompleted",null);VF=_.O([_.Lm({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],VF);
_.u(VF,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Yi6===void 0){var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[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>');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;jfP===void 0&&(jfP=document.createElement("template"));var H=jfP;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Yi6=V}V=Yi6;return V},{mode:2});var ey6;var k7g;var FXh=function(){return _.M.apply(this,arguments)||this};
_.t(FXh,_.M);FXh.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.tU("vcBalanceRenderer")}}};
var ls=FXh;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ls.prototype,"data",void 0);ls=_.O([_.Lm({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],ls);
_.u(ls,"yt-vc-offer-layout-header-renderer",function(){if(k7g===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;ey6===void 0&&(ey6=document.createElement("template"));var H=ey6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);k7g=V}V=k7g;return V},{mode:2});var X8h;var zyr;var ysE;var tp2;var rsP=function(){return _.M.apply(this,arguments)||this};
_.t(rsP,_.M);rsP.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.vI.Object.defineProperties(rsP.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
var IP=rsP;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],IP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.$EQ.YtTappableItemBehavior),_.a("design:type",Object)],IP.prototype,"ytTappableItemBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],IP.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.Q("data.accessibilityText"),_.a("design:type",String),_.a("design:paramtypes",[])],IP.prototype,"ariaLabel",null);_.O([_.q({reflectToAttribute:!0}),_.Q("data.style"),_.a("design:type",String),_.a("design:paramtypes",[])],IP.prototype,"vcOfferStyle",null);_.O([_.Q("data.style","data.titleText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],IP.prototype,"showTitleText",null);IP=_.O([_.Lm({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],IP);
_.u(IP,"yt-vc-offer-renderer",function(){if(tp2===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;ysE===void 0&&(ysE=document.createElement("template"));var H=ysE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);tp2=V}V=tp2;return V},{mode:2});var G7b=function(){return _.M.apply(this,arguments)||this};
_.t(G7b,_.M);G7b.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var Ht=G7b;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ht.prototype,"data",void 0);Ht=_.O([_.Lm({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Ht);
_.u(Ht,"yt-vc-offer-layout-renderer",function(){if(zyr===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;X8h===void 0&&(X8h=document.createElement("template"));var H=X8h;I.call(l,H.content.cloneNode(!0),V.content.firstChild);zyr=V}V=zyr;return V},{mode:2});var EWY;var Js6;var oWh;var hyI;var PCh=function(){return _.M.apply(this,arguments)||this};
_.t(PCh,_.M);PCh.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
var TJ=PCh;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],TJ.prototype,"data",void 0);TJ=_.O([_.Lm({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],TJ);
_.u(TJ,"yt-ypc-offers-modal-top-bar-renderer",function(){if(hyI===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;oWh===void 0&&(oWh=document.createElement("template"));var H=oWh;I.call(l,H.content.cloneNode(!0),V.content.firstChild);hyI=V}V=hyI;return V},{mode:2});var Djh=function(){return _.M.apply(this,arguments)||this};
_.t(Djh,_.M);Djh.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"}}}}};
Djh.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Djh.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var V=this.scrollable;V.attached&&typeof V.attached==="function"&&V.attached()};
var Bt=Djh;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Ij("#scrollable"),_.a("design:type",Object)],Bt.prototype,"scrollable",void 0);_.O([_.q(),_.a("design:type",Object)],Bt.prototype,"data",void 0);Bt=_.O([_.Lm({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Bt);
_.u(Bt,"yt-ypc-offers-modal-renderer",function(){if(Js6===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;EWY===void 0&&(EWY=document.createElement("template"));var H=EWY;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Js6=V}V=Js6;return V},{mode:2});var ZJE;var SiE;var RyI=function(){return _.M.apply(this,arguments)||this};
_.t(RyI,_.M);_.B=RyI.prototype;_.B.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}}}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.h(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.B.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.xB(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.B.onYtPopupOpened_=function(V,l){(l==null?void 0:l.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.d6(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.B.onYtPopupClosed_=function(V,l){this.continueButtonTapped||l&&(l.canceled===!0||l.canceled===!1&&l.confirmed===!1)&&this.data.onDismissCommands&&_.d6(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.B.onYtServiceRequestError_=function(V){this.set("showSpinner",!1);_.oE(this.hostElement,V.detail.error.message)};
_.B.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.z("enable_ypc_spinners")?_.xB(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
var x8=RyI;x8.prototype.onYtServiceRequestError_=x8.prototype.onYtServiceRequestError_;x8.prototype.onYtPopupClosed_=x8.prototype.onYtPopupClosed_;x8.prototype.onYtPopupOpened_=x8.prototype.onYtPopupOpened_;x8.prototype.onYtServiceRequestCompleted_=x8.prototype.onYtServiceRequestCompleted_;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],x8.prototype,"data",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],x8.prototype,"showSpinner",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],x8.prototype,"continueButtonTapped",void 0);_.O([_.q({value:function(){return this.onContinueTapped_.bind(this)}}),
_.a("design:type",Function)],x8.prototype,"bindOnContinueTapped_",void 0);_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],x8.prototype,"onYtServiceRequestCompleted_",null);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],x8.prototype,"onYtPopupOpened_",null);
_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],x8.prototype,"onYtPopupClosed_",null);_.O([_.W("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],x8.prototype,"onYtServiceRequestError_",null);x8=_.O([_.Lm({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],x8);
_.u(x8,"yt-ypc-upgrade-dialog-renderer",function(){if(SiE===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;ZJE===void 0&&(ZJE=document.createElement("template"));var H=ZJE;I.call(l,H.content.cloneNode(!0),V.content.firstChild);SiE=V}V=SiE;return V},{mode:2});var Qfr;var csg;var WXE=function(){return _.M.apply(this,arguments)||this};
_.t(WXE,_.M);WXE.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
WXE.prototype.computeHasButtons_=function(V){return!(!V.dismissButton&&!V.confirmButton)};
WXE.prototype.computeStyle_=function(V){return V||"BUBBLE_HINT_STYLE_UNKNOWN"};
var UQ=WXE;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],UQ.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],UQ.prototype,"data",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],UQ.prototype,"positionType",void 0);_.O([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.a("design:type",Boolean)],UQ.prototype,"hasButtons_",void 0);_.O([_.q({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.a("design:type",Boolean)],UQ.prototype,"style_",void 0);UQ=_.O([_.Lm({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],UQ);
_.u(UQ,"yt-bubble-hint-renderer",function(){if(csg===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;Qfr===void 0&&(Qfr=document.createElement("template"));var H=Qfr;I.call(l,H.content.cloneNode(!0),V.content.firstChild);csg=V}V=csg;return V},{mode:2});var bJ6;var qiE;var Mpu=function(){var V=_.Ow.apply(this,arguments)||this;V.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return V};
_.t(Mpu,_.Ow);_.B=Mpu.prototype;_.B.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.B.attached=function(){var V=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){V.$.thumbnail.onShow();V.$["header-image"].onShow()})};
_.B.handleCheckBoxUpdateAction_=function(V){this.canShowCheckboxEnabledConfirmButton=V};
_.B.computeUseOverlayForSpinner_=function(V,l){return!!V&&l};
_.B.computeShowSpinner_=function(V,l){return V||!!l};
_.B.fireOnCloseActions_=function(){var V,l=_.U(((V=this.data)==null?void 0:V.onClosedActions)||[]);for(V=l.next();!V.done;V=l.next())this.ytRendererBehavior.resolveCommand(V.value)};
_.B.fireOnOpenCommands_=function(V){var l,I=(l=this.data)==null?void 0:l.onOpenCommands;if(I)for(V.stopImmediatePropagation(),V=_.U(I),l=V.next();!l.done;l=V.next())this.ytRendererBehavior.resolveCommand(l.value)};
_.B.fireOnDismissCommands_=function(V){var l,I=(l=this.data)==null?void 0:l.onDismissCommands;if(I)for(V.stopImmediatePropagation(),V=_.U(I),l=V.next();!l.done;l=V.next())this.ytRendererBehavior.resolveCommand(l.value)};
_.B.openPopupHandler_=function(V){V.detail==this&&this.fireOnOpenCommands_(V)};
_.B.closePopupHandler_=function(V,l){_.U4(this,"yt-confirm-dialog-close-action",[l]);this.fireOnCloseActions_();(l&&l.canceled===!0||l&&l.canceled===!1&&l.confirmed===!1)&&this.fireOnDismissCommands_(V)};
_.B.onHeaderImageChanged_=function(){var V;((V=this.data)==null?0:V.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.B.computeHasHeaderImageWidth_=function(V){return V!=void 0};
_.B.computeHasLoadingMessage=function(V){return!!V};
_.B.onHeaderImageWidthChanged_=function(){var V,l=(V=this.data)==null?void 0:V.headerImageWidth;if(l){if(V=1.25*l*2+l,this.$.main.style.width=V+"px",l=this.$.scroller.firstElementChild)l.style.minWidth=V+"px"}else this.$.main.style.width="100%"};
_.B.onThumbnailChanged_=function(){var V;((V=this.data)==null?0:V.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")};
_.B.onYtNavigate_=function(V){V=_.qv(V);V instanceof Node&&_.aQ(this.$["confirm-button"]).contains(V)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.B.computePrimaryIsCancel_=function(V){return V};
_.B.computeIsCancelButtonHidden_=function(V){return V.skipCancelButton||!V.cancelButton};
_.B.computeIsCheckboxHidden_=function(V){return!V.checkbox};
_.B.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.B.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.B.onYtServiceRequestCompleted_=function(){var V;((V=this.data)==null?0:V.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.vI.Object.defineProperties(Mpu,{template:{configurable:!0,enumerable:!0,get:function(){if(qiE===void 0){var V=document.createElement("template");_.G(V,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;bJ6===void 0&&(bJ6=document.createElement("template"));var H=bJ6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);qiE=V}V=qiE;return V}}});
var ny=Mpu;ny.prototype.onYtServiceRequestCompleted_=ny.prototype.onYtServiceRequestCompleted_;ny.prototype.onYtServiceRequestSent_=ny.prototype.onYtServiceRequestSent_;ny.prototype.onThumbnailLoaded_=ny.prototype.onThumbnailLoaded_;ny.prototype.onYtNavigate_=ny.prototype.onYtNavigate_;ny.prototype.onThumbnailChanged_=ny.prototype.onThumbnailChanged_;ny.prototype.onHeaderImageWidthChanged_=ny.prototype.onHeaderImageWidthChanged_;ny.prototype.onHeaderImageChanged_=ny.prototype.onHeaderImageChanged_;
ny.prototype.closePopupHandler_=ny.prototype.closePopupHandler_;ny.prototype.openPopupHandler_=ny.prototype.openPopupHandler_;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],ny.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],ny.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);
_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],ny.prototype,"ytEventForwardingBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],ny.prototype,"data",void 0);_.O([_.q({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.a("design:type",Boolean)],ny.prototype,"primaryIsCancel",void 0);_.O([_.q({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.a("design:type",Boolean)],ny.prototype,"isCancelButtonHidden",void 0);
_.O([_.q({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.a("design:type",Boolean)],ny.prototype,"isCheckboxHidden",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],ny.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.O([_.q({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.a("design:type",Boolean)],ny.prototype,"useOverlayForSpinner_",void 0);
_.O([_.q({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.a("design:type",Boolean)],ny.prototype,"showSpinner_",void 0);_.O([_.q({value:!1}),_.a("design:type",Boolean)],ny.prototype,"isActionInProgress_",void 0);_.O([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.a("design:type",Boolean)],ny.prototype,"hasHeaderImageWidth_",void 0);
_.O([_.q({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.a("design:type",Boolean)],ny.prototype,"hasLoadingMessage",void 0);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],ny.prototype,"openPopupHandler_",null);_.O([_.W("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],ny.prototype,"closePopupHandler_",null);
_.O([_.b("data.headerImage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ny.prototype,"onHeaderImageChanged_",null);_.O([_.b("data.headerImageWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ny.prototype,"onHeaderImageWidthChanged_",null);_.O([_.b("data.thumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ny.prototype,"onThumbnailChanged_",null);
_.O([_.W("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ny.prototype,"onYtNavigate_",null);_.O([_.W("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ny.prototype,"onThumbnailLoaded_",null);_.O([_.W("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.Pu]),_.a("design:returntype")],ny.prototype,"onYtServiceRequestSent_",null);
_.O([_.W("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.b8]),_.a("design:returntype")],ny.prototype,"onYtServiceRequestCompleted_",null);ny=_.O([_.Lm({is:"yt-confirm-dialog-renderer",noInjection:!0})],ny);var sfh;var p8P;var Asb=function(){return _.M.apply(this,arguments)||this};
_.t(Asb,_.M);Asb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.h(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Asb.prototype.computeConfirmButton_=function(V){var l={text:V.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};V.confirmNavigationEndpoint?l.navigationEndpoint=V.confirmNavigationEndpoint:V.confirmServiceEndpoint&&(l.serviceEndpoint=V.confirmServiceEndpoint);return l};
Asb.prototype.computeShowTitle_=function(V){return!(V==null||!V.title)};
var $8=Asb;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],$8.prototype,"data",void 0);_.O([_.q({computed:"computeShowTitle_(data)"}),_.a("design:type",Boolean)],$8.prototype,"showTitle",void 0);$8=_.O([_.Lm({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],$8);
_.u($8,"yt-fancy-dismissible-dialog-renderer",function(){if(p8P===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;sfh===void 0&&(sfh=document.createElement("template"));var H=sfh;I.call(l,H.content.cloneNode(!0),V.content.firstChild);p8P=V}V=p8P;return V});var uqQ;var vWr;var OJh=function(){var V=_.M.apply(this,arguments)||this;V.spinnerActive=!1;return V};
_.t(OJh,_.M);OJh.prototype.created=function(){YOE(2201)};
OJh.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
OJh.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
var df=OJh;df.prototype.onIronOverlayClosed=df.prototype.onIronOverlayClosed;df.prototype.onIronOverlayOpened=df.prototype.onIronOverlayOpened;_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.vd),_.a("design:type",Object)],df.prototype,"tpYtIronOverlayBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],df.prototype,"data",void 0);_.O([_.q(),_.a("design:type",Object)],df.prototype,"spinnerActive",void 0);
_.O([_.W("iron-overlay-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],df.prototype,"onIronOverlayOpened",null);_.O([_.W("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],df.prototype,"onIronOverlayClosed",null);df=_.O([_.Lm({is:"yt-loading-renderer",disableElementRegistration:!0})],df);
_.u(df,"yt-loading-renderer",function(){if(vWr===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;uqQ===void 0&&(uqQ=document.createElement("template"));var H=uqQ;I.call(l,H.content.cloneNode(!0),V.content.firstChild);vWr=V}V=vWr;return V},{mode:2});var CCB;var a_6;var f_E=function(){var V=_.M.apply(this,arguments)||this;V.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);V.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);V.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";V.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return V};
_.t(f_E,_.M);_.B=f_E.prototype;_.B.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.B.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.B.onDarkModeToggledAction=function(V){this.isDarkTheme=V};
_.B.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.B.openPopupHandler_=function(V){V.detail===this.hostElement&&this.hostElement.hidden&&_.xB(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.B.onDismissButtonTap_=function(){var V;this.closeOnDismissButton_.has(((V=this.data)==null?void 0:V.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.xB(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.B.onAcceptButtonTap_=function(){var V;this.closeOnAcceptButton_.has(((V=this.data)==null?void 0:V.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.xB(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.B.computeHasHeader_=function(V){return!!V.headerBackgroundImage};
_.B.computeLayoutStyle_=function(V){return V};
_.B.computePopupSize_=function(V){return V};
_.B.computeIconType_=function(V){return V.dialogIcon&&V.dialogIcon.iconType?V.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":V.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":V.dialogIcon.iconType:""};
_.B.computeIsLogo_=function(V){return!!V.dialogIcon&&!!V.dialogIcon.iconType&&(V.dialogIcon.iconType==="YOUTUBE_LOGO"||V.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||V.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.B.computeHasCustomLogo=function(V){return!(V==null||!V.headerForegroundImage)};
_.B.computeCustomLogo=function(V,l){if(V!=null&&V.headerForegroundImage)return V.headerForegroundImageDark?l?V.headerForegroundImageDark:V.headerForegroundImage:V.headerForegroundImage};
_.B.computeHeaderBackgroundImage=function(V,l){if(V!=null&&V.headerBackgroundImage)return l&&(V==null?0:V.headerBackgroundImageDark)?V.headerBackgroundImageDark:V.headerBackgroundImage};
_.B.shouldShowIconContainer=function(V,l){return V&&!l};
_.B.shouldShowNonYouTubeIcon=function(V,l){return!V&&!l};
_.B.getLogoImageId=function(V){var l,I,H;return(V=(l=this.computeCustomLogo(V,this.isDarkTheme))==null?void 0:(I=l.thumbnails)==null?void 0:(H=I[0])==null?void 0:H.height)&&V%31===0?"custom-logo-with-padding":"custom-logo"};
var wf=f_E;wf.prototype.openPopupHandler_=wf.prototype.openPopupHandler_;wf.prototype.dataChanged_=wf.prototype.dataChanged_;_.O([_.R(_.Cb.YtRendererstamperBehavior),_.a("design:type",Object)],wf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.O([_.q(),_.a("design:type",Boolean)],wf.prototype,"isDarkTheme",void 0);
_.O([_.q({computed:"computeCustomLogo(data, isDarkTheme)"}),_.a("design:type",Object)],wf.prototype,"customLogo",void 0);_.O([_.q({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.a("design:type",Object)],wf.prototype,"headerBackgroundImage",void 0);_.O([_.q(),_.a("design:type",Object)],wf.prototype,"data",void 0);_.O([_.q({computed:"computeHasHeader_(data)"}),_.a("design:type",Boolean)],wf.prototype,"hasHeader",void 0);
_.O([_.q({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.a("design:type",Object)],wf.prototype,"layoutStyle",void 0);_.O([_.q({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.a("design:type",Object)],wf.prototype,"popupSize",void 0);_.O([_.q({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],wf.prototype,"hasLogo",void 0);
_.O([_.q({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],wf.prototype,"hasCustomLogo",void 0);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wf.prototype,"dataChanged_",null);_.O([_.W("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wf.prototype,"openPopupHandler_",null);
wf=_.O([_.Lm({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],wf);
_.u(wf,"yt-upsell-dialog-renderer",function(){if(a_6===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;CCB===void 0&&(CCB=document.createElement("template"));var H=CCB;I.call(l,H.content.cloneNode(!0),V.content.firstChild);a_6=V}V=a_6;return V},{mode:2});var gWQ=_.W1(function(V){return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.Y(_.NS,{cond:V.title,then:function(l){return _.Y("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},l)}}))},"Qf"),mjQ=_.W1(function(V){return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.Y(_.rw,{data:V.closeButton},{buttonViewModel:function(l){return _.Y("div",null,_.Y(_.Db,{data:l.data}))}}))},"Rf"),iJu=_.W1(function(V){var l=
V.data;
return _.Y(_.CN,null,_.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.Y(_.NS,{cond:function(){return!!l().image&&!!l().title},
then:function(){return _.Y(_.cX,{data:function(){return l().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.Y(_.NS,{cond:function(){return l().title},
then:function(I){return _.Y("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},I)}}),_.Y(_.NS,{cond:function(){return l().primaryGenre},
then:function(I){return _.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},I)}}))),_.Y(_.NS,{cond:function(){var I=l().description;
return I&&I.length<=150},
then:function(){return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return l().description}))}}))},"Sf"),VI6=_.W1(function(V){V=V.infoRows;
var l=_.F().resolve(_.MW),I=_.z("enable_displaying_ppn");return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.Y(_.Ks,{each:V},function(H){return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.Y(_.NS,{cond:function(){return H.label},
then:function(T){return _.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},T)}}),_.Y(_.NS,{cond:function(){return H.attributedLabel},
then:function(T){return _.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.Y(_.Ni,{text:T,noPreWrap:!0}))}}),_.Y(_.NS,{cond:function(){return H.value},
then:function(T){return _.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},T)}}),_.Y(_.NS,{cond:function(){return H.attributedValue},
then:function(T){return _.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.Y(_.Ni,{text:T,noPreWrap:!0}))}}))}),_.Y(_.NS,{cond:function(){return I&&l.clientData.has("post_play_nonce")},
then:function(){return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},l.getData("post_play_nonce")))}}))},"Tf"),lOB=_.W1(function(V){var l=V.data;
return _.Y("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.Y(gWQ,{title:function(){return l().dialogTitle}}),_.Y(iJu,{data:l}),_.Y(_.NS,{cond:function(){return l().infoRow},
then:function(I){return _.Y(VI6,{infoRows:I})}}),_.Y(mjQ,{closeButton:function(){return l().closeButton}}))},"Uf");
lOB.idomCompat=!0;_.MR(lOB,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;return _.Y("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.Y(_.cX,{data:function(){return l().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.Y("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.Y("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.Y(_.NS,{cond:function(){var I=l().ytLogo;return I?I.iconType:null},
then:function(I){return _.Y(_.dq,{icon:I,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.Y("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.Y("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.Y(_.Ni,{text:function(){return l().body}})),_.Y("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.Y(_.Ni,{text:function(){return l().verifyStateText}}))),
_.Y("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.Y("div",null,_.Y(_.rw,{data:function(){return l().dismissButton}},{buttonViewModel:_.Db})),_.Y("div",null,_.Y(_.rw,{data:function(){return l().linkParentButton}},{buttonViewModel:_.Db})))))},"Vf"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.b9}});var IOP=_.W1(function(V){var l=V.data;return _.Y("installment-agreements-view-model",{class:_.ii("ytInstallmentAgreementsViewModelHost")},_.Y(_.Ks,{each:_.S5(function(){return l().agreements},[])},function(I){return _.Y("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.Y("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.Y(_.Ni,{text:I.label})),_.Y("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.Y(_.rw,{data:function(){return I.openButton}},{buttonViewModel:_.Db})))}))},
"Wf");
IOP.idomCompat=!0;var HoV=_.W1(function(V){return _.Y("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.Y(_.Ni,{text:function(){return V.data().inviteMessage}})),_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.Y(_.Ni,{text:function(){return V.data().attributedAccountSectionHeaderText}})),_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.Y(_.rw,{data:function(){return V.data().accountAvatar}},{avatarViewModel:_.SA}),_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.Y(_.Ni,{text:function(){return V.data().accountName}}),_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.Y(_.Ni,{text:function(){return V.data().handle}}))),_.Y(_.rw,{data:function(){return V.data().trailingButton}},{buttonViewModel:_.Db})),_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.Y(_.Ni,{text:function(){return V.data().termsOfService}})))},"Xf");var TBE=_.W1(function(V){var l=_.U(_.Ux(function(){var lN,wW;return((lN=V.data().createPlaylistDialogFormSchema)==null?0:(wW=lN.initialValues)==null?0:wW.title)?V.data().createPlaylistDialogFormSchema.initialValues.title:""})),I=l.next().value,H=l.next().value;
l=_.U(_.Ux(function(){V.data();return!1}));
var T=l.next().value,x=l.next().value;l=_.U(_.Ux(function(){V.data();return!1}));
var n=l.next().value,w=l.next().value;l=_.U(_.Ux(function(){var lN,wW;return(lN=V.data().createPlaylistDialogFormSchema)==null?void 0:(wW=lN.initialValues)==null?void 0:wW.visibility}));
var N=l.next().value,L=l.next().value;l=_.U(_.Ux(function(){V.data();return!1}));
var e=l.next().value,k=l.next().value;l=_.U(_.Ux(function(){var lN,wW;return(lN=V.data().createPlaylistDialogFormSchema)==null?void 0:(wW=lN.initialValues)==null?void 0:wW.isCollaborative}));
var X=l.next().value,r=l.next().value,E=_.sZ();_.t0(function(){var lN=E.value.querySelector("textarea");lN&&(lN.value=I())});
_.XW(function(){var lN;_.O8B((lN=V.data().createPlaylistDialogFormSchema)==null?void 0:lN.id,{onSubmit:function(){var wW=I();var o1=N(),h1=X(),ec=V.data();wW={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:wW,privacyStatus:o1,videoIds:ec.videoIds,sourcePlaylistId:ec.sourcePlaylistId,params:h1?ec.createPlaylistParamsCollaborationEnabled:ec.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.F().resolve(_.aw).resolveCommand(wW)},
isValid:function(){return T()&&!n()&&!e()}})});
var D=function(lN){if(lN!==void 0&&(H(lN),!T()&&lN.length>0&&x(!0),T())){var wW=XiI(V.data());if(wW){var o1=wW.minLength;wW=wW.maxLength;o1&&lN.length<o1?w(!0):wW&&lN.length>wW?w(!0):w(!1)}}},Z=function(){var lN=!(!X()||N()!=="PRIVATE");
k(lN)},S=function(lN){lN!==void 0&&(L(lN),Z())},p=function(){if(e())return yP6(V.data())},Vf=function(){r(!X());
Z()},C=function(){return{validate:function(lN){if(T()){var wW=XiI(V.data());
if(wW){var o1=wW.minLength;wW=wW.translations;if(o1&&lN.length<o1)return wW==null?void 0:wW.minLengthErrorMessage}}}}},By=function(){var lN=XiI(V.data()),wW=lN==null?void 0:lN.maxLength,o1;
lN=lN==null?void 0:(o1=lN.translations)==null?void 0:o1.maxLengthErrorMessage;if(wW&&lN)return{maxChars:wW,errorMessage:lN}};
return _.Y("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.Y("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:E},_.Y(_.rw,{data:function(){return V.data().playlistTitle}},{textFormFieldViewModel:function(lN){return _.Y(_.deE,{data:lN.data,
text:I,onInput:D,validation:C,characterLimit:By})},
textFieldViewModel:function(lN){return _.Y(_.$eb,{data:lN.data,text:I,onInput:D,validation:C,characterLimit:By})}})),_.Y("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.Y(_.rw,{data:function(){return V.data().playlistVisibility}},{dropdownViewModel:function(lN){return _.Y(_.yTh,{data:lN.data,
onSelected:S,error:p})}})),_.Y(_.NS,{cond:function(){return!!V.data().playlistCollaborate},
then:function(){return _.Y("div",null,_.Y(_.rw,{data:function(){return V.data().playlistCollaborate}},{switchListItemViewModel:function(lN){return _.Y(_.pcb,{data:lN.data,
onTap:Vf})}}))}}))},"Yf");var BBQ=_.W1(function(V){var l=_.S5(V.noPadding,!1),I=function(){var T,x;return(x=(T=V.data().logo.accessibilityData)==null?void 0:T.label)!=null?x:""},H={};
return _.Y("upsell-view-model",{class:_.ii("ytUpsellViewModelHost",(H.ytUpsellViewModelHostNoPadding=function(){return l()},H))},_.Y("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.Y(_.NS,{cond:function(){return _.iP(V.data().logo)},
then:function(T){return _.Y(_.cX,{data:T,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:I})}})),_.Y("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.Y(_.Ni,{text:function(){return V.data().title}})),_.Y("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.Y(_.Ks,{each:function(){var T;
return(T=V.data().subtitles)!=null?T:[]},
keyBy:"INDEX"},function(T){return _.Y("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.Y(_.Ni,{text:T}))})),_.Y("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.Y(_.Ks,{each:function(){var T;
return(T=V.data().benefitInfos)!=null?T:[]},
keyBy:"INDEX"},function(T){return _.Y(_.NS,{cond:function(){return T().info},
then:function(x){return _.Y("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.Y(_.dq,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.Y(_.Ni,{text:x}))}})})),_.Y("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.Y(_.Ks,{each:function(){var T;
return(T=V.data().legalInfos)!=null?T:[]},
keyBy:"INDEX"},function(T){return _.Y("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.Y(_.Ni,{text:T}))})))},"Zf");var x5g=_.W1(function(V){var l=V.data;V={};V=(V.ytMiniAppScoreChallengeViewModelScoreRadial=!0,V.ytMiniAppScoreChallengeViewModelDarkScoreRadial=tur(),V);return _.Y("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.Y("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return l().title}),_.Y("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return l().subtitle}),_.Y("div",{class:_.l8(V)},_.Y("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return l().score})),_.Y("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return l().prompt}))},"$f");var U5Y=function(){this.store=_.P1();this.formId=""};var nxE=_.W1(function(V){function l(w){if(w&&(w=_.y(w,_.Yj)))return Object.assign({},w,{isSelected:x()})}
var I=_.U(_.Ux(function(){var w,N;return(N=(w=_.y(V.data().option,_.Yj))==null?void 0:w.isSelected)!=null?N:!1})),H=I.next().value,T=I.next().value,x=H;
_.XW(function(){var w;_.O8B((w=V.data().formSchema)==null?void 0:w.id,{onSubmit:function(){var N=_.F().resolve(_.aw),L=!!V.data().selectedCommand,e=!!V.data().unselectedCommand;if(x()){if(L)var k=V.data().selectedCommand}else e&&(k=V.data().unselectedCommand);k=_.to(k);l(V.data().option)&&!k?(N="",!L&&e?N="selected ":L&&!e&&(N="unselected "),L=new _.Yd("No "+N+"command found for SelectionListItemFormViewModel"),_.Gr(L)):k&&N.resolveCommand(k)},
isValid:function(){return!0}})});
var n=function(){T(!x())};
_.rx(function(){var w,N,L=(w=V.data())==null?void 0:(N=w.formSchema)==null?void 0:N.id;L&&_.ubI()().delete(L)});
return _.Y("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.Y("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.Y(_.Ni,{text:function(){return V.data().paragraph}})),_.Y(_.NS,{cond:function(){return l(V.data().option)},
then:function(w){return _.Y(_.Fg,{data:w,isCompact:!0,hideSelectionTextChevron:!0,onTap:n,disableHorizontalPadding:!0})}}))},"ag");var ED6=_.FR({avatarStackViewModel:_.BBZ}),$5g=_.I2(JPB);_.m5(JPB);var d5P=_.W1(function(V){var l=_.CKb(function(){return V.data().formId}),I=l.onSubmit,H=l.isValid;
return _.Y("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.Y(_.rw,{data:function(){return V.data().panelFooter}},{panelFooterViewModel:function(T){return _.Y(_.qP,{data:T.data,
disablePadding:!0,disablePrimaryButton:function(){return!H()},
onClickPrimaryButton:function(){I()}})}}))},"bg");var KgE=_.W1(function(V){var l=_.Rj(V,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),I=l.elRefCallback;V=l.iconWiz;var H=l.assetWiz,T=l.assetType,x=l.titleWiz,n=l.leadingActionHeaderWiz,w=l.trailingActionHeaderWiz,N=l.headerPosition,L=l.contentWiz,e=l.buttonLayout,k=l.buttonStyle,X=l.primaryButtonWiz,r=l.secondaryButtonWiz,E=l.contentAlignment,D=l.isFullscreen,Z=l.width,S=l.maxHeight,p=l.isHeaderWizDefined,
Vf=l.headerWiz,C=l.isFooterWizDefined,By=l.footerWiz;l=_.sZ(function(CK){I==null||I(CK)});
var lN=H?function(){return H({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,wW=X?function(){var CK={};
return X({buttonOverrides:function(){return{style:(k==null?void 0:k())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.ii((CK["yt-spec-dialog-layout__dialog-layout-button"]=!0,CK["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(e==null?void 0:e())===0||(e==null?void 0:e())===2},CK))})}:void 0,o1=r?function(){var CK={};
return r({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.ii((CK["yt-spec-dialog-layout__dialog-layout-button"]=!0,CK["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(e==null?void 0:e())===0||(e==null?void 0:e())===2},CK))})}:void 0,h1=function(){return(!!x||!!n||!!w)&&N()===0},ec={},Zg={},Va={},wb={};
return _.Y("dialog-layout",{el:l,class:_.ii((ec["yt-spec-dialog-layout"]=!0,ec["yt-spec-dialog-layout--dialog-layout-fullscreen"]=D,ec["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!D()},ec["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return S()===1},ec["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(T==null?void 0:T())===1},ec)),
style:function(){return(Z==null?void 0:Z())!==void 0?"width: "+Z+"px;":""}},V?_.Y("div",{class:_.ii((Zg["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Zg["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!H&&N()===1},Zg["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return E()===1},Zg))},_.Y(V,null)):null,_.Y(_.NS,{cond:p,
then:function(){return Vf?_.Y("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.Y(Vf,null)):null},
else:function(){return _.Y(_.CN,null,_.Y(_.NS,{cond:h1,then:function(){return _.Y(wLb,{contentAlignment:E,LeadingActionHeader:n,TrailingActionHeader:w,Title:x,isAboveAsset:!!lN})}}),lN?_.Y("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.Y(lN,null)):null)}}),_.Y("div",{class:_.ii((Va["yt-spec-dialog-layout__dialog-layout-container"]=!0,Va["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(E==null?void 0:E())===1},Va["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!x&&!Vf||!!lN&&(N==null?void 0:N())===0},Va))},_.Y(_.NS,{cond:function(){return x&&!Vf&&(N==null?void 0:N())===1},
then:function(){return _.Y(wLb,{contentAlignment:E,LeadingActionHeader:n,TrailingActionHeader:w,Title:x,isAboveAsset:!1})}}),L?_.Y("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.Y("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.Y(L,null))):null,_.Y(_.NS,{cond:C,
then:function(){return By?_.Y("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.Y(By,null)):null}}),wW||o1?_.Y(NBE,{footerClasses:_.ii((wb["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,wb["yt-spec-dialog-layout__dialog-layout-footer"]=!0,wb["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(e==null?void 0:e())===2},wb["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(e==null?void 0:e())===1},wb)),
PrimaryButton:wW,SecondaryButton:o1}):null))},"cg"),wLb=_.W1(function(V){var l=_.Rj(V,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),I=l.contentAlignment,H=l.LeadingActionHeader;V=l.Title;var T=l.TrailingActionHeader,x=l.isAboveAsset,n=l.enableLeadingActionHeader;l={};return _.Y("div",{class:_.ii((l["yt-spec-dialog-layout__dialog-header-container"]=!0,l["yt-spec-dialog-layout__dialog-header"]=!0,l["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=x,l["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(I==null?void 0:I())===1&&n()},l))},_.Y(_.NS,{cond:function(){return n()},
then:function(){return H?_.Y("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.Y(H,null)):null}}),V?_.Y("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.Y(V,null)):null,T?_.Y("div",null,_.Y(T,null)):null)},"dg"),NBE=_.W1(function(V){var l=V.footerClasses;
var I=V.PrimaryButton;V=V.SecondaryButton;return _.Y("div",{class:l},V?_.Y(V,null):null,I?_.Y(I,null):null)},"eg");var jTV=_.W1(function(V){var l=V.data;return _.Y("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.Y("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.Y(_.rw,{data:function(){return l().avatar}},{avatarViewModel:_.SA})),_.Y("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y(_.Ni,{text:function(){return l().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"fg");var YWu=_.W1(function(V){var l=V.data;return _.Y("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.Y("div",{class:"ytAccessConfirmationViewModelContent"},_.Y(_.rw,{data:function(){return l().dualAvatar}},{dualAvatarViewModel:function(I){return _.Y("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.Y(_.nEP,{data:I.data}))}}),_.Y("h2",{class:"ytAccessConfirmationViewModelTitle"},_.Y(_.Ni,{text:function(){return l().title}})),_.Y(_.Ni,{text:function(){return l().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"gg");var LgP=_.W1(function(V){var l=V.data;var I=void 0;V=_.U(_.xi("",void 0,"O14qgc"));var H=V.next().value,T=V.next().value,x,n=function(){T("");var L;(L=I)!=null&&L.store.dispatch(_.IA({type:"RESET_COMMAND_MAP"}))};
_.XW(function(){I=new U5Y;window.addEventListener("yt-popup-closed",n)});
_.t0(function(){if(I&&x!==l().formId){var L=I,e=l();e.formId&&(L.formId=e.formId,L.store.dispatch(_.IA({type:"SET_CURRENT_FORM_ID",payload:{formId:L.formId}})));x=l().formId}});
_.rx(function(){window.removeEventListener("yt-popup-closed",n)});
var w=function(L,e,k){e.key&&k&&e.key!==H()&&(T(e.key),I&&e.command&&I.store.dispatch(_.IA({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:k,command:e.command}})))},N=function(){if(_.y(l().content,_.UrP))return!(H==null?0:H())};
return _.Y("yt-dialog-view-model",{class:_.ii("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.Y(KgE,{headerWiz:function(){return _.Y("span",{skip:!0},_.Y(_.rw,{data:function(){return l().header}},{dialogHeaderViewModel:function(L){return _.Y($5g,{data:L.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!l().header},
contentWiz:function(){return _.Y("span",{skip:!0},_.Y(_.rw,{data:function(){return l().customContent?l().customContent:l().content}},{basicContentViewModel:_.C$P,
createPlaylistDialogFormViewModel:TBE,collaborativePlaylistInviteMessageViewModel:HoV,miniAppScoreChallengeViewModel:x5g,radioButtonGroupViewModel:function(L){return _.Y(_.Fj6,{data:L.data,selectedKey:H,onSelected:w})},
selectionListItemFormViewModel:nxE,upsellViewModel:function(L){return _.Y(BBQ,{data:L.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:jTV,installmentAgreementsViewModel:IOP,accessConfirmationViewModel:YWu,listViewModel:_.fqN}))},
footerWiz:function(){return _.Y("span",{skip:!0},_.Y(_.rw,{data:function(){return l().footer}},{panelFooterViewModel:function(L){return _.Y(_.qP,{data:L.data,
disablePadding:!0,disablePrimaryButton:N})},
formPanelFooterViewModel:d5P,formFooterViewModel:function(L){return _.Y(_.xeg,{data:L.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!l().footer}}))},"hg");
LgP.idomCompat=!0;_.MR(LgP,"yt-dialog-view-model",{props:{data:_.b9},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var eQ6=_.W1(function(V){var l=V.data;V={};return _.Y("yt-panel-header-view-model",{class:_.ii("yt-panel-header-view-model-wiz",(V["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!l().shouldHideDivider},V["yt-panel-header-view-model-wiz--compact"]=function(){return!!l().subtitle},V))},_.Y("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.Y(_.NS,{cond:function(){return l().title},
then:function(I){return _.Y(_.Ni,{text:I,className:"yt-panel-header-view-model-wiz__title"})}}),_.Y(_.NS,{cond:function(){return l().subtitle},
then:function(I){return _.Y(_.Ni,{text:I,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.Y("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.Y(_.rw,{data:function(){return l().trailingButtons}},{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"ig");
eQ6.idomCompat=!0;var k_I=_.W1(function(V){var l=_.Bu(function(x){var n;if((n=V.skipContentClick)==null?0:n.call(V))return!1;V.onContentWrapperClick(x);return!0}),I,H,T;
return _.Y("div",{class:_.ii("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return V.isAnimating()?"transform: translateY("+V.currentY()+"px);transition: 0.2s":""}},(I=V.header)==null?void 0:I.call(V),_.Y("div",{id:V.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.na({"max-height":(0,_.kR)(V.maxHeightForContentWrapper)}),"on:scroll":Dag(V.onScroll),"on:touchmove":Dag(function(x){return void x.stopPropagation()})},_.Y("div",{el:{onRender:V.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":l},(H=V.body)==null?void 0:H.call(V))),(T=V.footer)==null?void 0:T.call(V))},"jg");
k_I.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var Fg2=_.W1(function(V){var l=_.S5(V.leadingLabel),I=_.S5(V.trailingLabel),H=_.S5(V.footerButtonType),T=function(){return l()||I()||V.hasPrimaryButton()||V.hasSecondaryButton()},x={},n=_.ii("yt-spec-bottom-sheet-layout__primary-button",(x["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return H()===0&&V.hasPrimaryButton()},x["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return H()===1&&V.hasPrimaryButton()},x["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return H()===2&&V.hasPrimaryButton()},x["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return H()===3&&V.hasPrimaryButton()},x));
x={};var w=_.ii("yt-spec-bottom-sheet-layout__secondary-button",(x["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return H()===1&&V.hasSecondaryButton()},x["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return H()===2&&V.hasSecondaryButton()},x["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return H()===3&&V.hasPrimaryButton()},x));
return _.Y(_.NS,{cond:V.hasFooterOverride,then:function(){var N;return _.Y(_.CN,null,(N=V.footerOverride)==null?void 0:N.call(V))},
else:function(){return _.Y(_.NS,{cond:T,then:function(){return _.Y("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.Y(_.NS,{cond:function(){return l()||I()},
then:function(){var N={};return _.Y("div",{class:_.ii("yt-spec-bottom-sheet-layout__footer-label-wrapper",(N["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!V.hasPrimaryButton()},N))},_.Y(_.NS,{cond:l,
then:function(){return _.Y("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},l)}}),_.Y(_.NS,{cond:I,
then:function(){return _.Y("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},I)}}))}}),_.Y(_.NS,{cond:function(){return V.hasPrimaryButton()||V.hasSecondaryButton()},
then:function(){var N={};return _.Y("div",{class:_.ii("yt-spec-bottom-sheet-layout__footer-button-wrapper",(N["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.pSW,N))},_.Y(_.NS,{cond:function(){return V.hasSecondaryButton()&&H()!==0},
then:function(){var L;return _.Y("div",{class:w},(L=V.secondaryButton)==null?void 0:L.call(V))}}),_.Y(_.NS,{cond:V.hasPrimaryButton,
then:function(){var L;return _.Y("div",{class:n},(L=V.primaryButton)==null?void 0:L.call(V))}}))}}))}})}})},"kg");
Fg2.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var XLV=_.W1(function(V){var l=_.S5(V.title),I=_.S5(V.subtitle),H=_.Bu(function(n){var w;(w=V.touchstart)==null||w.call(V,n);return!1}),T=_.Bu(function(n){var w;
(w=V.touchmove)==null||w.call(V,n);return!1}),x=_.Bu(function(n){var w;
(w=V.touchend)==null||w.call(V,n);return!1});
return _.Y("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:V.headerId,"on:touchstart":H,"on:touchmove":T,"on:touchend":x},_.Y("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.Y(_.NS,{cond:V.hasHeaderOverride,then:function(){var n;return _.Y(_.CN,null,(n=V.headerOverride)==null?void 0:n.call(V))},
else:function(){var n={};return _.Y("div",{class:_.ii((n["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,n["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=l,n))},_.Y("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.Y(_.NS,{cond:l,then:function(){return _.Y(_.CN,null,_.Y("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},l),_.Y(_.NS,{cond:I,then:function(){return _.Y("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
I)}}))}})),_.Y(_.NS,{cond:function(){return l()&&V.hasActionHeader()},
then:function(){var w;return _.Y("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(w=V.actionHeader)==null?void 0:w.call(V))}}))}}))},"lg");
XLV.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.W1(function(V){var l={stack:[],error:void 0,hasError:!1};try{var I=function(){Va().dispatch("Close Sheet",{clientHeight:X(),maxHeight:0});setTimeout(function(){ZuQ()},250)},H=function(){document.body.style.overscrollBehavior="";
Zg.isFullScreen[0]()?Zg.currentY[0]()>=60?Va().dispatch("Snap To Neutral Position",{maxHeight:lN()}):Va().dispatch("Snap To Full Screen",{maxHeight:o1()}):Zg.currentY[0]()>=60?I():Zg.currentY[0]()<=-60&&S()>lN()?Va().dispatch("Snap To Full Screen",{maxHeight:o1()}):Va().dispatch("Snap To Neutral Position",{maxHeight:lN()})},T=function(CK){CK.preventDefault();
Va().dispatch("Touch Move",{event:CK,contentScrollable:S()>lN(),fullContentWrapperHeight:o1(),contentWrapperHeight:lN(),contentHeightMap:ec,contentWrapperId:"content-wrapper",header:SYP(V),footer:SYP(V)})},x=function(CK){document.body.style.overscrollBehavior="none";
CK.preventDefault();Va().dispatch("Touch Start",{event:CK})},n=function(){r(window.innerHeight);
S()>lN()||wW(S());Zg.isFullScreen[0]()&&S()>lN()?Va().dispatch("Snap To Full Screen",{maxHeight:o1()}):Va().dispatch("Snap To Neutral Position",{maxHeight:lN()})},w=function(CK){typeof h1!=="undefined"&&(ec["content-wrapper"]===void 0&&(ec["content-wrapper"]=CK.children[0].clientHeight),p(ec["content-wrapper"]),S()>lN()||wW(S()))},N=function(CK){if(!h1&&typeof MutationObserver!=="undefined"){var CZ={childList:!0};
"MutationObserver"in window&&(h1=new MutationObserver(w.bind(void 0,CK)),h1.observe(CK,CZ))}};
_.QP(l,_.a8(_.vv));var L=_.U(_.xi(window.innerHeight,void 0,"Knpls")),e=L.next().value,k=L.next().value,X=e,r=k,E=_.U(_.xi(0,void 0,"N0qFo")),D=E.next().value,Z=E.next().value,S=D,p=Z,Vf=_.U(_.Ux(function(){var CK=SYP(V);return.6*X()-oD2(CK)-hKg(CK)})),C=Vf.next().value,By=Vf.next().value,lN=C,wW=By,o1=function(){var CK=SYP(V);
return X()-oD2(CK)-hKg(CK)-24-24},h1=null,ec={},Zg={initialY:_.xi(0,void 0,"r4ch9"),
currentY:_.xi(0,void 0,"CvvHV"),isAnimating:_.xi(!1,void 0,"FxET1b"),isFullScreen:_.xi(!1,void 0,"vBIcVe"),maxHeightForContentWrapper:_.Ux(lN)},Va=function(){var CK=null;return function(){if(!CK){var CZ={initialY:Zg.initialY[0](),currentY:Zg.currentY[0](),isAnimating:Zg.isAnimating[0](),isFullScreen:Zg.isFullScreen[0](),maxHeightForContentWrapper:Zg.maxHeightForContentWrapper[0]()};CK=P_I(CZ)}return CK}}();
_.XW(function(){window.addEventListener("resize",n);Va().subscribe(function(CK){Zg.initialY[1](CK.initialY);Zg.currentY[1](CK.currentY);Zg.isAnimating[1](CK.isAnimating);Zg.isFullScreen[1](CK.isFullScreen);Zg.maxHeightForContentWrapper[1](CK.maxHeightForContentWrapper)})});
_.rx(function(){window.removeEventListener("resize",n);h1&&(h1.disconnect(),h1=null)});
var wb=_.ii({"bottom-sheet-content-without-icon":function(){var CK;return!((CK=V.shouldShowIcons)==null?0:CK.call(V))}});
return _.Y("bottom-sheet-layout",null,_.Y(k_I,{contentWrapperId:"content-wrapper",isAnimating:function(){return Zg.isAnimating[0]()},
currentY:function(){return Zg.currentY[0]()},
maxHeightForContentWrapper:function(){return Zg.maxHeightForContentWrapper[0]()},
shouldShowIcons:V.shouldShowIcons,skipContentClick:V.skipContentClick,onScroll:function(){var CK=document.getElementById("header-wrapper"),CZ=document.getElementById("content-wrapper");if(CK&&CZ){var ME={};ME=(ME["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,ME["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,ME);CK.className=CZ.scrollTop>1?_.l8(ME):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:ZuQ,contentWrapperEl:function(CK){N(CK);requestAnimationFrame(function(){w(CK)})},
header:function(){return _.Y(XLV,{touchstart:x,touchmove:T,touchend:H,title:V.headerTitle,subtitle:V.headerSubtitle,headerId:"header-wrapper",headerOverride:V.headerFn,hasHeaderOverride:V.hasHeaderFn,actionHeader:V.headerActionHeader,hasActionHeader:V.hasHeaderActionHeader})},
footer:function(){return _.Y(Fg2,{footerButtonType:V.footerButtonType,leadingLabel:V.footerLeadingLabel,trailingLabel:V.footerTrailingLabel,primaryButton:V.footerPrimaryButton,hasPrimaryButton:V.hasFooterPrimaryButton,secondaryButton:V.footerSecondaryButton,hasSecondaryButton:V.hasFooterSecondaryButton,footerOverride:V.footerFn,hasFooterOverride:V.hasFooterFn})},
body:function(){return _.Y(_.NS,{cond:V.hasContentFn,then:function(){var CK;return _.Y("div",{class:wb},(CK=V.contentFn)==null?void 0:CK.call(V))}})}}))}catch(CK){l.error=CK,l.hasError=!0}finally{_.c1(l)}},"mg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var zQV=_.W1(function(V){var l=_.F().resolve(_.J7),I=_.Bu(function(){return void l.closeSheet()});
return _.Y("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":I},_.Y(_.NS,{cond:function(){return!!V.header},
then:function(){return _.Y("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},V.header())}}),_.Y(_.NS,{cond:function(){return!!V.content},
then:function(){return _.Y("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},V.content())}}),_.Y(_.NS,{cond:function(){return!!V.footer},
then:function(){return _.Y("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},V.footer())}}))},"ng");
zQV.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var yhI=_.W1(function(V){V=V.data;var l={};return _.Y("yt-sheet-view-model",{class:_.ii("yt-sheet-view-model-wiz",(l["yt-sheet-view-model-wiz--contextual"]=!0,l["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.z("web_disable_backdrop_filter"),l))},_.Y(_.NS,{cond:V,then:function(I){return _.Y(zQV,{header:function(){return _.Y(_.rw,{data:function(){return I().header}},{panelHeaderViewModel:eQ6})},
content:function(){return _.Y(_.rw,{data:function(){return I().content}},{listViewModel:function(H){return _.Y(_.fqN,{data:H.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:BBQ,miniAppScoreChallengeViewModel:x5g})},
footer:function(){return _.Y(_.rw,{data:function(){return I().footer}},{panelFooterViewModel:_.qP})}})}}))},"og");
yhI.idomCompat=!0;_.MR(yhI,"yt-sheet-view-model",{props:{data:_.b9}});var rhB=_.W1(function(V){var l=function(){var I;return(I=V.data().enableDebuggingFeatures)!=null?I:!1};
return _.Y("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.Y(_.Ks,{each:function(){var I;return(I=V.data().stickers)!=null?I:[]}},function(I){return _.Y(tIQ,{data:function(){return I},
debugMode:l})}))},"pg"),tIQ=_.W1(function(V){var l=_.Rj(V,{debugMode:!1}).debugMode,I=_.S5(function(){var N;
return(N=V.data().region)==null?void 0:N.w},0),H=_.S5(function(){var N;
return(N=V.data().region)==null?void 0:N.h},0),T=_.S5(function(){var N;
return(N=V.data().region)==null?void 0:N.x},0),x=_.S5(function(){var N;
return(N=V.data().region)==null?void 0:N.y},0),n=_.Bu(function(){var N=V.data().onTap;
N&&_.EI(N)}),w={};
return _.Y("div",{class:_.ii("ytStoriesStickerLayerViewModelSticker",(w.ytStoriesStickerLayerViewModelDebugMode=l,w)),style:_.na({width:function(){return 100*I()+"%"},
height:function(){return 100*H()+"%"},
left:function(){return 100*T()+"%"},
top:function(){return 100*x()+"%"},
"flex-direction":function(){return RKP(V.data().flexDirection)},
"justify-content":function(){return Qk2(V.data().justifyContent)},
"align-items":function(){return cP2(V.data().alignItems)}}),
"on:click":n},_.Y(_.rw,{data:function(){return V.data().button||V.data().toggleButton}},{buttonViewModel:function(N){return _.Y(_.Db,{data:N.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(N){return _.Y(_.o6,{data:N.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"qg");var ExI=_.W1(function(V){var l=function(){return V.data()},I=_.S5(function(){return l().backgroundColor},0),H=_.S5(function(){return l().actionButtons},[]),T=_.S5(function(){return l().stickerLayer},{}),x={},n=function(){var N,L;
return{animationRef:x,animationConfig:{autoplay:!1,loop:!1,path:(L=(N=l().foregroundAnimation)==null?void 0:N.url)!=null?L:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){V.navigateToNextItemOnLottieComplete()}}}},w=function(){var N,L,e,k,X,r,E,D;
return{animationConfig:{autoplay:(r=(N=l().backgroundAnimation)==null?void 0:(L=N.settings)==null?void 0:L.autoplay)!=null?r:!1,loop:(E=(e=l().backgroundAnimation)==null?void 0:(k=e.settings)==null?void 0:k.loop)!=null?E:!1,path:(D=(X=l().backgroundAnimation)==null?void 0:X.url)!=null?D:"",name:"stories_item_background_animation"}}};
_.t0(function(){if(V.isVisible()){var N;(N=x.lottieEl)==null||N.play()}else{var L;(L=x.lottieEl)==null||L.stop()}});
return _.Y("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.na({"background-color":function(){return _.rP(I())+";"}})},_.Y("div",{class:"ytStoriesItemViewModelAssetContent"},_.Y(_.NS,{cond:function(){return!!l().backgroundAnimation},
then:function(){return _.Y(_.VN,{data:w,animationName:function(){return w().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Y(_.NS,{cond:function(){return!!l().backgroundImage},
then:function(){return _.Y(_.cX,{data:function(){return l().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.Y(_.NS,{cond:function(){return!!l().foregroundAnimation},
then:function(){return _.Y(_.VN,{data:n,animationName:function(){return n().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Y(_.NS,{cond:function(){return!!l().foregroundImage},
then:function(){return _.Y(_.cX,{data:function(){return l().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.Y("div",{class:"ytStoriesItemViewModelTopShadow"}),_.Y(_.rw,{data:function(){return T()}},{storiesStickerLayerViewModel:rhB})),_.Y("div",{class:"ytStoriesItemViewModelBottomShadow"},_.Y("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.Bu(V.pauseAutoNavigation)},_.Y(_.Ks,{each:H},function(N){return _.Y(G_g,{data:function(){return N}})}))))},"rg"),G_g=_.W1(function(V){var l={};
return _.Y("div",{class:_.ii("ytStoriesItemViewModelActionButton",(l.ytStoriesItemViewModelStretchedActionButton=function(){return V.data().size==="STORIES_BUTTON_SIZE_STRETCH"},l))},_.Y(_.rw,{data:function(){return V.data().button}},{buttonViewModel:function(I){return _.Y(_.Db,{data:I.data,
className:"ytStoriesItemViewModelButton"})}}))},"sg");_.MR(_.W1(function(V){var l=_.U(_.Ux(function(){var p;return(p=V.data().startIndex)!=null?p:0})),I=l.next().value,H=l.next().value;
l=_.U(_.xi(!1,void 0,"klmjc"));var T=l.next().value,x=l.next().value,n=function(){var p;return(p=V.data().storyItems)!=null?p:[]},w=function(){return V.data().dismissButton},N=function(){var p;
return _.y((p=_.y(w(),_.Gb))==null?void 0:p.onTap,_.yI)},L=_.sZ(),e,k=function(){var p;
(p=e)==null||p.cancel();e=X(I()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});e.onfinish=function(){X(I()).style.width="100%";var Vf=_.y(n()[I()],p7h),C,By;Vf!=null&&Vf.foregroundAnimation&&((Vf==null?0:(C=Vf.foregroundAnimation)==null?0:C.url)||(Vf==null?0:(By=Vf.foregroundAnimation)==null?0:By.payload))||(I()!==n().length-1?(H(I()+1),k()):N()&&_.rj(N()))}},X=function(p){return L.value.children[p].children[0]},r=function(){for(var p=0;p<I();p++)X(p).style.width="100%"};
l=_.Bu(function(){T()?x(!1):(I()===n().length-1&&N()&&_.rj(N()),X(I()).style.width="100%",I()!==n().length-1&&(H(I()+1),k()))});
var E=_.Bu(function(){T()?x(!1):(X(I()).style.width="0%",I()!==0?H(I()-1):H(I()),k())}),D=function(){x(!0)},Z=function(){X(I()).style.width="100%";
I()!==n().length-1?(H(I()+1),k()):N()&&_.rj(N())},S=_.Bu(function(){var p;
(p=e)==null||p.pause()});
_.t0(function(){if(T()){var p;(p=e)==null||p.pause()}else{var Vf;(Vf=e)==null||Vf.play()}});
_.t0(function(){r();I()===V.data().startIndex&&k()});
_.XW(function(){r();k()});
return _.Y("yt-stories-viewer-view-model",{class:_.ii("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.Y("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.Y("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":E,"on:mousedown":S}),_.Y("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":l,"on:mousedown":S})),_.Y(_.rw,{data:n},{storiesItemViewModel:function(p,Vf){var C=p.data;return _.Y(_.NS,{cond:function(){return Math.abs(Vf()-
I())<=1},
then:function(){var By={};return _.Y("div",{class:_.ii("ytStoriesViewerViewModelStoryItem",(By.ytStoriesViewerViewModelHiddenStoryItem=function(){return Vf()!==I()},By))},_.Y(ExI,{data:C,
pauseAutoNavigation:D,navigateToNextItemOnLottieComplete:Z,isVisible:function(){return Vf()===I()}}))}})}}),_.Y("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:L},_.Y(_.Ks,{each:n},function(){return _.Y("div",{class:"ytStoriesViewerViewModelProgressBar"},_.Y("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.Y("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.Y(_.rw,{data:w},{buttonViewModel:_.Db})))},"tg"),"yt-stories-viewer-view-model",{props:{data:_.b9}});_.MR(_.W1(function(V){var l=V.data;var I=_.sZ(),H=[];return _.Y("yt-gen-ai-feedback-form-view-model",{el:I,class:"ytGenAiFeedbackFormViewModelHost"},_.Y(_.Ni,{text:function(){return l().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.Y("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.Y(_.rw,{data:function(){return l().feedbackChips}},{toggleButtonViewModel:function(T){var x=T.data;
return _.Y(_.o6,{data:x,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(n){var w=x();w=_.y(w,_.EB);w=_.y(w==null?void 0:w.defaultButtonViewModel,_.Gb).trackingParams;n?H.push(w):(n=H.indexOf(w),n>-1&&H.splice(n,1))}})}})),_.Y(_.Ni,{text:function(){return l().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.Y("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.Y(_.rw,{data:function(){return l().submitButton}},{buttonViewModel:function(T){return _.Y(_.Db,{data:T.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){WJV(I.value,H,l().uniqueId)}})}}),_.Y(_.rw,{data:function(){return l().moreFeedbackButton}},{buttonViewModel:function(T){return _.Y(_.Db,{data:T.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ug"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.b9},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var N1=function(){return _.M.apply(this,arguments)||this};
_.t(N1,_.M);N1.prototype.created=function(){YOE(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(dkQ);var V=_.F().resolve(_.J0u);V&&(V.container=this.ytPopupContainerBehavior);if(V=_.F().resolve(_.J7))V.container=this.ytPopupContainerBehavior;if(V=_.F().resolve(_.oD)){var l=this.ytPopupContainerBehavior;V.containerWasInjected?_.hF(Error("ej")):V.container=l}};
N1.prototype.ensurePopupBelowPlayer=function(V,l){var I=_.F().resolve(_.Cs(_.pa));if(!I||!I.isOnWatch()||!_.u8())return!1;I=I.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.jD().height>I+this.getPopupHeight(V,l)?(V.style.top="auto",V.style.bottom="0px"):(V.style.top=I+"px",V.style.bottom="auto");return!0};
N1.prototype.getPopupHeight=function(V,l){l&&(V.cachedPopupHeight=0);if(!V.cachedPopupHeight){l=0;var I=V.clientHeight,H=window.getComputedStyle(V);l+=parseInt(H.marginTop,10);l+=parseInt(H.marginBottom,10);V.cachedPopupHeight=I+l}return V.cachedPopupHeight};
N1.prototype.getElement=function(V){return document.createElement(V)};
var Jhg=N1;_.O([_.R(CoI.YtPopupContainerBehavior),_.a("design:type",Object)],Jhg.prototype,"ytPopupContainerBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Jhg.prototype,"ytComponentBehavior",void 0);Jhg=_.O([_.A({disableElementRegistration:!0,is:"ytd-popup-container"})],Jhg);
_.u(Jhg,"ytd-popup-container",function(){if(c_Y!==void 0)return c_Y;var V=document.createElement("template");_.G(V,"\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");V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);return c_Y=V},{mode:1});var oxE;var hQE={};hQE.YtLogYpcFlowCommandsBehavior=[_.aU.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(V){_.y(V,UCQ)&&(V=_.y(V,UCQ))&&(V.serializedTransactionFlowLoggingParams?_.Wat(V.serializedTransactionFlowLoggingParams):V.serializedYpcCancelFlowLoggingParams?(V=V.serializedYpcCancelFlowLoggingParams)&&_.Jk("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",V):V.serializedYpcResumeFlowLoggingParams?(V=V.serializedYpcResumeFlowLoggingParams)&&_.Jk("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",V):V.serializedYpcPauseFlowLoggingParams?(V=V.serializedYpcPauseFlowLoggingParams)&&
_.Jk("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",V):V.serializedYpcRefundFlowLoggingParams?(V=V.serializedYpcRefundFlowLoggingParams)&&lbV("YPC_EVENT_TYPE_START",V):V.serializedYpcDeactivateFlowLoggingParams?(V=V.serializedYpcDeactivateFlowLoggingParams)&&_.Jk("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",V):V.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(V=V.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Jk("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",V))},
handleLogYpcFlowDismiss_:function(V){_.y(V,xCE)&&(V=_.y(V,xCE),V.serializedTransactionFlowLoggingParams?_.bzK(V.serializedTransactionFlowLoggingParams):V.serializedYpcCancelFlowLoggingParams?(V=V.serializedYpcCancelFlowLoggingParams)&&_.Jk("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",V):V.serializedYpcResumeFlowLoggingParams?(V=V.serializedYpcResumeFlowLoggingParams)&&_.Jk("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",V):V.serializedYpcPauseFlowLoggingParams?(V=
V.serializedYpcPauseFlowLoggingParams)&&_.Jk("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",V):V.serializedYpcRefundFlowLoggingParams&&(V=V.serializedYpcRefundFlowLoggingParams)&&lbV("YPC_EVENT_TYPE_CANCEL",V))}}];var PXP={};PXP.YtCancelRecurrenceBehavior=[_.DX.YtComponentBehavior,_.aZZ,{attached:function(){var V=this;m_I(this,function(l,I){return V.ypcCancelRecurrenceHandler(l,I)})},
ypcCancelRecurrenceHandler:function(V,l){var I=this;if(!l||!l.ypcCancelRecurrenceEndpoint)return!1;if(!l.ypcCancelRecurrenceEndpoint.params)return _.Dp(Error("wl")),!0;_.gv(this.hostElement);var H=_.Zt.instance,T=_.F().resolve(_.Cs(_.kV));H&&_.SU(H,l)?_.R2(H,l).then(function(x){I.ypcCancelRecurrenceSuccess_(V,l,{data:x})},function(x){I.ypcCancelRecurrenceFailure_(V,l,x)}).thenCatch(function(){_.Dp(Error("xl"))}):T?T.requestDataForServiceEndpoint(l).then(function(x){I.ypcCancelRecurrenceSuccess_(V,
l,x)},function(x){I.ypcCancelRecurrenceFailure_(V,l,x)}).thenCatch(function(){_.Dp(Error("xl"))}):_.Dp(Error("yl"));
return!0},
ypcCancelRecurrenceSuccess_:function(V,l,I){_.ml(this.hostElement);I.data||(I={data:I});I.data&&I.data.actions&&_.d6(this.hostElement,I.data.actions,this.hostElement);I.data.messageRenderer?H6Q(l.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(l=l.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Jk("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",l);_.B$(V,"yt-service-request-completed",I)},
ypcCancelRecurrenceFailure_:function(V,l,I){_.ml(this.hostElement);H6Q(l.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.B$(V,"yt-service-request-error",{error:I,params:[V,l]})}}];var D5b=function(V,l){_.I1.call(this,l)};
_.t(D5b,rzP);var ZoE={};ZoE.YtCompleteTransactionBehavior=[_.DX.YtComponentBehavior,_.aZZ,{attached:function(){var V=this;m_I(this,function(l,I){return V.ypcCompleteTransactionHandler(l,I)})},
completeTransaction:function(V,l){var I=this;l={payments_payload:window.btoa(l.integratorData),buybucket_params:V.data.buybucketParams,offer_params:V.data.offerParams};var H=_.F().resolve(_.kV),T=V.data.completeTransactionEndpoint,x=this.get("ypcCompleteTransactionEndpoint.actions",T);x&&_.d6(this.hostElement,x,this.hostElement);return(x=_.Zt.instance)&&_.SU(x,T)?_.R2(x,T,l).then(function(n){return!n||(n==null?0:n.error)?(n=I.get("data.serializedTransactionFlowLoggingParams",V),_.bK(new lC("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
n))):{data:n}}).then(function(n){return I.handleCompleteTransactionSuccess_(n,V)},function(){return I.handleCompleteTransactionFailure_(V)}):H.requestDataForServiceEndpoint(T,l).then(function(n){return I.handleCompleteTransactionSuccess_(n,V)},function(){return I.handleCompleteTransactionFailure_(V)})},
handleCompleteTransactionSuccess_:function(V,l){V.data||(V={data:V});if(V.data.messageRenderer)return _.bK(new D5b(V.data.messageRenderer));if(V.data.trackingParams){var I=_.oa(),H=_.JO();I&&H&&_.MJ(I,H,_.dj(V.data.trackingParams))}l=this.get("data.serializedTransactionFlowLoggingParams",l);IbQ(l);return _.w6(V)},
handleCompleteTransactionFailure_:function(V){V=this.get("data.serializedTransactionFlowLoggingParams",V);_.cb("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",V);return _.bK(new lC("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",V))},
ypcCompleteTransactionHandler:function(V,l){var I=this;if(!l.ypcCompleteTransactionEndpoint)return!1;if(!l.ypcCompleteTransactionEndpoint.transactionParams)return _.Dp(Error("zl")),!0;l.ypcCompleteTransactionEndpoint&&l.ypcCompleteTransactionEndpoint.gtmData&&_.FB(l.ypcCompleteTransactionEndpoint.gtmData);var H=_.F().resolve(_.Cs(_.kV));if(H){_.gv(this.hostElement);var T=_.Zt.instance;T&&_.SU(T,l)?_.R2(T,l).then(function(x){return!x||(x==null?0:x.error)?(x=I.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
l),_.bK(new lC("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",x))):{data:x}}).then(function(x){_.B$(V,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(l,x)},function(){return I.ypcCompleteTransactionFailure_(l)}):H.requestDataForServiceEndpoint(l).then(function(x){_.B$(V,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(l,x)},function(){return I.ypcCompleteTransactionFailure_(l)})}return!0},
ypcCompleteTransactionSuccess_:function(V,l){_.ml(this.hostElement);l.data||(l={data:l});_.xB(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);l.data.messageRenderer||l.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(V):(_.FB('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",V));l.data.actions&&(V=$UB(l.data.actions),l=dUg(l.data.actions),V.length&&_.$B(this.hostElement,
V),l.length&&_.d6(this.hostElement,l,this.hostElement))},
ypcCompleteTransactionFailure_:function(V){_.ml(this.hostElement);_.xB(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",V,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(V,l,I){if(l=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",l))l={serializedTransactionFlowLoggingParams:l},I&&(l.errorType=I),_.tF(V,l),_.rT()}}];var SWE={};SWE.YtEndpointHandlerWithYpcBehavior=[_.aZZ,_.aU.YtActionHandlerBehavior,[{openWalletDialog:function(V,l,I,H,T,x,n){var w=this,N=_.QN();l=l.replace(/-/g,"+").replace(/_/g,"/");var L=_.Fu().get("hl");_.e_t(_.$_(_.Wb),l,N.resolve,T,function(e){x&&x();N.reject(e)},L,function(e){return w.onServerBackendAnalyticEvent_(V,I,e)},this.onDialogClose_.bind(this),H,n);
return N.promise},
openFixFlowDialog:function(V,l,I,H){V=V.replace(/-/g,"+").replace(/_/g,"/");_.$_(_.Wb).openFixFlowDialog(V,l,I,H)},
onDialogClose_:function(){_.xB(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(V,l,I){V.fire("yt-commerce-action-init-done");l&&_.$B(this.hostElement,[l,{backend_analytics:I}])}}],
_.x4.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(V,l){V=this.get("data.nativeFlowEndpoint",l);l=this.get("data.fallbackEndpoint",l);V?_.$B(this.hostElement,[V]):l&&_.B$(this.hostElement,"yt-navigate",{endpoint:l})}}],
PXP.YtCancelRecurrenceBehavior,ZoE.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 V=this;m_I(this,function(l,I,H){return V.handleYPCEndpoint(l,I,H)});
this.ypcRegisterActionMapJobId_=_.et(_.r0,function(){V.registerActionMap(V.buyFlowActionMap_)})},
detached:function(){var V=this;_.r0.cancelJob(this.ypcRegisterActionMapJobId_);_.et(_.r0,function(){V.unregisterActionMap(V.buyFlowActionMap_)})},
handleYPCEndpoint:function(V,l,I){var H=l.ypcGetCartEndpoint;if(H){_.D8("commerce_transaction");var T=H.gtmId;T&&_.k6(T);(H=H.gtmData)&&_.FB(H)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",l)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(V,l),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",l)!=null?(this.handleYPCFixInstrumentEndpoint_(V,l),!0):l.ypcPauseSubscriptionCommand?(Oug(this.hostElement,V,l,I),
!0):l.ypcResumeSubscriptionCommand?(fNh(this.hostElement,V,l),!0):l.getPaymentInstrumentsParamsCommand?(APh(this.hostElement,V,l),!0):l.ypcHandleTransactionEndpoint?(skP(this.hostElement,V,l,I),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(V,l){var I=this;_.Z8("ttcr",void 0,"commerce_transaction");l=l.ypcGetCartEndpoint;var H=l.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,T=H.encryptedPurchaseParams,x=H.serializedTransactionFlowLoggingParams,n=H.serializedPaymentsClientParams,w=this.createGetCartResponseFromParams_(H,l.offerParams,x);this.changeButtonState(V,!0);_.Jm(this.openWalletDialog(V,T,H.ypcLogWalletAnalyticDataEndpoint,x,function(){I.changeButtonState(V,!1)},function(){I.changeButtonState(V,
!1)},n).then(function(N){return I.handleBuyFlowCompleteCallback_(V,w,N)},function(){return I.handleOnLoadError(w)}).then(function(N){return void I.handlePostPurchaseSuccess_(V,w,N)},function(N){return void I.handlePostPurchaseError_(N)}),function(){I.changeButtonState(V,!1);
V instanceof Element&&_.B$(V,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(V,l,I){var H=V.completeTransactionEndpoint,T=V.handleTransactionEndpoint;l={data:{offerParams:window.btoa(l),serializedTransactionFlowLoggingParams:I}};T?l.data.handleTransactionEndpoint=T:l.data.completeTransactionEndpoint=H;V.onCartDismissCommand&&(l.data.onCartDismissCommand=V.onCartDismissCommand);return l},
onGetCartServiceRequestCompleted_:function(V,l){var I=this,H=V.target;if(l&&l.data&&l.data.messageRenderer)_.ml(this.hostElement),this.handleMessageRenderer_(l.data.messageRenderer),this.changeButtonState(H,!1);else{var T=this.get("data.encryptedPurchaseParams",l),x=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",l),n=this.get("data.ypcLogWalletAnalyticDataEndpoint",l),w=this.get("data.serializedPaymentsClientParams",l),N=this.getLoggingParams_(l);if(N||T||x)V.stopPropagation(),_.Z8("ttcr",
void 0,"commerce_transaction"),T||_.ml(this.hostElement),this.changeButtonState(H,!1),x?_.xB(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.h6("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:x}}},this]):T&&(this.changeButtonState(H,!0),V=null,V=this.openWalletDialog(H,T,n,N,function(){_.ml(I.hostElement);I.changeButtonState(H,!1)},function(){_.ml(I.hostElement);
I.changeButtonState(H,!1)},w),_.Jm(V.then(function(L){return I.handleBuyFlowCompleteCallback_(H,l,L)},function(){return I.handleOnLoadError(l)}).then(function(L){return I.handlePostPurchaseSuccess_(H,l,L)},function(L){return I.handlePostPurchaseError_(L)}),function(){I.changeButtonState(H,!1);
_.B$(H,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(V,l){l&&l.endpoint&&l.endpoint.ypcGetCartEndpoint&&!l.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",l.endpoint.ypcGetCartEndpoint)&&_.d6(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",l.endpoint.ypcGetCartEndpoint)],V.target),_.gv(this.hostElement),this.changeButtonState(V.target,!0))},
onServiceRequestError_:function(V,l){if(l&&l.params&&l.params.length){l=_.U(l.params);for(var I=l.next();!I.done;I=l.next())if((I=I.value)&&I.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)&&_.d6(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)],V.target);_.ml(this.hostElement);this.changeButtonState(V.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(V,l,I){var H=I.integratorData;return H==null||H===""||I.error!=null?(H=this.getLoggingParams_(l),String(I.error)==="-1"?(l.data.onCartDismissCommand&&_.d6(this.hostElement,[l.data.onCartDismissCommand],V),_.bK(new lC("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",H,!0))):_.bK(new lC("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",H))):l.data.handleTransactionEndpoint?piY(this.hostElement,l.data.handleTransactionEndpoint,{payments_payload:H,funds_guarantee_callback_client_data:I.integratorClientCallbackData}):
this.completeTransaction(l,I)},
handlePostPurchaseSuccess_:function(V,l,I){l=I.data;var H=!1,T,x;if(l&&((T=l.command)==null?0:(x=T.commandExecutorCommand)==null?0:x.commands)){var n,w;T=(n=l.command)==null?void 0:(w=n.commandExecutorCommand)==null?void 0:w.commands;for(n=0;n<T.length;n++)if(_.y(T[n],_.$9a)){H=!0;break}}H||(l&&l.gtmDatas&&l.gtmDatas.length?_.FB(l.gtmDatas[0]):_.FB('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));I.data&&I.data.actions&&(l=$UB(I.data.actions),I=dUg(I.data.actions),l.length&&
_.$B(this.hostElement,l),I.length&&_.d6(this.hostElement,I,V))},
handlePostPurchaseError_:function(V){V&&V.payload&&V.payload.isUserDismiss||_.Gr(Error("Bl"))},
handleOnLoadError:function(V){V=this.getLoggingParams_(V);return _.bK(new lC("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",V))},
getLoggingParams_:function(V){return this.get("data.serializedTransactionFlowLoggingParams",V)},
handleMessageRenderer_:function(V){var l=_.GY(V,"renderer"),I=_.h6("openPopupConfig");l==="confirmDialogRenderer"&&I&&_.xB(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:I.popupTypeMap[l],popup:V}},this])},
handleYPCFixInstrumentEndpoint_:function(V,l){var I=this,H=l.ypcFixInstrumentEndpoint;l=H.encryptedFixInstrumentParameters;this.logFixFopEvent_(H,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(V,!0);this.openFixFlowDialog(l,function(T,x){I.onFixFlowCompleteCallback_(H,T,x)},function(){return I.changeButtonState(V,!1)},function(){I.changeButtonState(V,!1);
I.logFixFopEvent_(H,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(V,l,I){var H=_.SN("payments.business.integration.scenario.FixInstrument");if(l==H.IntegratorCallbackType.ON_COMPLETE){l="FIX_FOP_EVENT_TYPE_CANCEL";var T=null;I.error!=null?I.error!=H.OnCompleteCallbackError.USER_CANCELLED&&(_.d6(this.hostElement,[V.errorAction],this.hostElement),l="FIX_FOP_EVENT_TYPE_FAILURE",T="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.d6(this.hostElement,[V.successAction],this.hostElement),l="FIX_FOP_EVENT_TYPE_SUCCESS");_.d6(this.hostElement,[V.onFinishAction],
this.hostElement);this.logFixFopEvent_(V,l,T)}},
logFixFopEvent_:function(V,l,I){(V=V.serializedFixFopLoggingParams)?(l={eventType:l,serializedFixFopLoggingParams:V},I!=null&&(l.errorType=I),_.tF("fixFopFlow",l),_.rT()):_.Gr(Error("Cl"))},
changeButtonState:function(V,l){_.z("enable_ypc_spinners")&&V&&(V.is==="yt-button-renderer"||V.is==="ytd-button-renderer")&&(V.disabled=l)}}];var RQb=function(V){this.JSC$28499_clientRoot=V;this.feedbackCollectorActionMap={"yt-help-dialog-requested":mab,"yt-feedback-dialog-requested":gDE,"yt-signal-action-help":iu2,"yt-signal-action-send-feedback":V36,"yt-send-feedback-action":Ixh,"yt-user-feedback-endpoint":HgY};_.bx(_.WF.getInstance(),this.feedbackCollectorActionMap,this.JSC$28499_clientRoot)},QTE;var chI=function(V){this.JSC$28504_clientRoot=V;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":TRQ.bind(null,this.JSC$28504_clientRoot),"yt-signal-action-delete-all-downloads":xIY,"yt-signal-action-delete-download":UIY,"yt-signal-action-delete-playlist-download":$IB,"yt-signal-action-install-pwa":YRP,"yt-signal-action-refresh-downloads":KCr,"yt-offline-video-endpoint":eqr,"yt-offline-playlist-endpoint":FCE,"yt-update-local-app-setting-command":zqP,"yt-offline-orchestration-action-command":t3u,
"yt-signal-action-undo-delete-download":wHu,"yt-local-watch-history-command":ELE};_.bx(_.WF.getInstance(),this.downloadManagerActionMap,this.JSC$28504_clientRoot);_.Zf.instance=new _.Zf},Wgh;var boE=function(){var V=_.M.apply(this,arguments)||this;V.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_"};V.remoteApi_=null;return V};
_.t(boE,_.M);_.B=boE.prototype;
_.B.ready=function(){_.z("polymer_enable_mdx")&&(nXu({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.z("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.z("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.z("enable_cast_short_lived_lounge_token")}),_.VC("yt-remote-connection-change",this.handleConnectionChange_,this),_.VC("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=YTb())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.B.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.B.handleConnectionChange_=function(V){(this.mdxConnected=V)?(V=w96(),!V&&CRI()&&akg()&&(V={key:"cast-selector-receiver",name:akg()}),V=V.name):V=null;this.receiverName=V;_.ag(this.remoteApi_);(this.remoteApi_=YTb())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.B.handleReceiverAvailabilityChange_=function(){var V=dQY();CRI()&&_.N9("yt-remote-cast-available")&&V.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=V.length>0};
_.B.handleRemoteQueueChange_=function(){var V=this.currentVideoId_,l=this.currentListId_,I=xa(this.remoteApi_);this.currentVideoId_=I.videoId;this.currentListId_=I.listId;this.currentVideoId_&&_.xB(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.z("polymer_enable_mdx_queue")?this.currentListId_:null,V,l])};
_.B.handleAddToQueueAction_=function(V){V=_.y(V,A7E);this.remoteApi_&&(V.videoId?this.remoteApi_.addVideo(V.videoId):V.playlistId&&this.remoteApi_.addPlaylist(V.playlistId))};
_.B.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.B.handleInsertInQueueAction_=function(V){V=_.y(V,uAQ);this.remoteApi_&&V.videoId&&this.remoteApi_.JSC$17394_insertVideo(V.videoId)};
_.B.handleRemoveFromQueueAction_=function(V){V=_.y(V,vrV);this.remoteApi_&&V.videoId&&this.remoteApi_.JSC$17394_removeVideo(V.videoId)};
var Ky=boE;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Ky.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q(),_.a("design:type",Object)],Ky.prototype,"appId",void 0);_.O([_.q(),_.a("design:type",Boolean)],Ky.prototype,"mdxConnected",void 0);_.O([_.q(),_.a("design:type",Boolean)],Ky.prototype,"receiverAvailable",void 0);_.O([_.q(),_.a("design:type",Object)],Ky.prototype,"receiverName",void 0);_.O([_.q(),_.a("design:type",Object)],Ky.prototype,"currentVideoId_",void 0);
_.O([_.q(),_.a("design:type",Object)],Ky.prototype,"currentListId_",void 0);Ky=_.O([_.Lm({is:"yt-mdx-manager",disableElementRegistration:!0})],Ky);_.u(Ky,"yt-mdx-manager",void 0,{mode:2});var qWb;var MIE;var sT2=function(){var V=_.M.apply(this,arguments)||this;V.APP_IDS={ytr:3,ytm:5};V.JSC$18632_timeoutId_=0;V.actionMap={"yt-open-create-family-dialog":"open"};return V};
_.t(sT2,_.M);_.B=sT2.prototype;_.B.created=function(){YOE(2200)};
_.B.detached=function(){this.observer_&&this.observer_.disconnect()};
_.B.open=function(V,l){var I=this,H=V.serializedYpcFamilyCreateLoggingParams;this.JSC$18632_timeoutId_=setTimeout(this.abort_.bind(this,V.postFlowErrorEndpoint,H),3E4);l&&(this.onReadyCallback_=l);var T=_.h(this.hostElement).querySelector("#unicorn-iframe");H&&H&&VME("ypcFamilyCreateFlowStarted",H);_.UAJ("family_creation",function(){var x=_.SN("gapi.family_creation.render");_.SN("gapi.config.update")("iframes/family_creation/url",I.getFamilyCreationUrlWithUnicornParams_());var n=3;V.appId&&V.appId in
I.APP_IDS&&(n=I.APP_IDS[V.appId]);n={authUser:_.h6("SESSION_INDEX")||0,clientId:n,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.h6("HL"),initialflow:[4,5,6,7],m:I.isMobile?1:0,onFlowComplete:I.onUnicornFlowComplete_.bind(I,V.postFlowSuccessEndpoint,H),onError:I.onUnicornFlowError_.bind(I,V.postFlowErrorEndpoint,H),onReady:I.onUnicornFlowReady_.bind(I,V.referencePcidParams)};x(T,n)})};
_.B.close=function(){_.h(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.B.onUnicornFlowComplete_=function(V,l){this.close();l&&l&&VME("ypcFamilyCreateFlowSucceeded",l);_.B$(this.hostElement,"yt-navigate",{endpoint:V})};
_.B.onUnicornFlowError_=function(V,l){this.close();l&&VME("ypcFamilyCreateFlowCancelled",l);_.B$(this.hostElement,"yt-navigate",{endpoint:V})};
_.B.onUnicornFlowReady_=function(V){var l=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();V&&_.SN("gapi.family_creation.setConfig")(0,V);this.observer_=new MutationObserver(function(){_.h(l.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.h(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.h(this.hostElement).querySelector("#dialog").open()};
_.B.getFamilyCreationUrlWithUnicornParams_=function(){return _.h6("YTR_FAMILY_CREATION_URL")};
_.B.getCurrentUrl_=function(){return document.location.href};
_.B.abort_=function(V,l){this.clearTimeout_();this.onUnicornFlowError_(V,l)};
_.B.clearTimeout_=function(){clearTimeout(this.JSC$18632_timeoutId_)};
var jV=sT2;_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],jV.prototype,"ytActionHandlerBehavior",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],jV.prototype,"isMobile",void 0);_.O([_.q(),_.a("design:type",Object)],jV.prototype,"onReadyCallback_",void 0);_.O([_.q(),_.a("design:type",Object)],jV.prototype,"observer_",void 0);jV=_.O([_.Lm({is:"yt-create-family-dialog",disableElementRegistration:!0})],jV);
_.u(jV,"yt-create-family-dialog",function(){if(MIE===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);var l=V.content,I=l.insertBefore;qWb===void 0&&(qWb=document.createElement("template"));var H=qWb;I.call(l,H.content.cloneNode(!0),V.content.firstChild);MIE=V}V=MIE;return V},{mode:2});var pL6;var Ah6;var u9b=function(){var V=_.M.apply(this,arguments)||this;V.STEP=1;V.BLOCK_ON=80;V.MIN_PROGESS=0;V.MAX_PROGESS=100;return V};
_.t(u9b,_.M);_.B=u9b.prototype;_.B.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.B.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));_.F().addProvider({provide:OeE,useValue:this})};
_.B.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.B.finish=function(){var V=this;this.progress=this.MAX_PROGESS;JmE(function(){V.progress==V.MAX_PROGESS&&(V.hostElement.hidden=!0)})};
_.B.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.vI.Object.defineProperties(u9b.prototype,{progress:{configurable:!0,enumerable:!0,set:function(V){this.progress_=V;var l="scaleX("+V/this.MAX_PROGESS+")",I=_.h(this.hostElement).querySelector("#progress").style;I.transform=l;I.webkitTransform=l;this.hostElement.setAttribute("aria-valuenow",String(V))},
get:function(){return this.progress_}}});
var vxE=u9b;_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],vxE.prototype,"ytComponentBehavior",void 0);vxE=_.O([_.Lm({is:"yt-page-navigation-progress",disableElementRegistration:!0})],vxE);
_.u(vxE,"yt-page-navigation-progress",function(){if(Ah6===void 0){var V=document.createElement("template");_.G(V,'\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');V.content.insertBefore(_.g().content.cloneNode(!0),
V.content.firstChild);var l=V.content,I=l.insertBefore;pL6===void 0&&(pL6=document.createElement("template"));var H=pL6;I.call(l,H.content.cloneNode(!0),V.content.firstChild);Ah6=V}V=Ah6;return V},{mode:2});var Oou={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"},CXE={"font-size":"12px","font-style":"italic"},aOr={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.DIr=function(){return _.d(function(V){_.FU(V)})};_.MR(_.W1(function(){var V=_.rq(_.ptT);return _.Y("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var l;return(l=V())==null?void 0:l.announcement})},"vg"),"yt-ephemeral-actions");var fxE=new Map;var SIY=function(V,l){var I=this;this.handleError=V;this.logEventInternal=l;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){I.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
SIY.prototype.logError=function(V){this.handleError(V)};
SIY.prototype.logEvent=function(V,l){switch(V){case "IDB_DATA_CORRUPTED":_.z("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",l);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",l);break;case "IS_SUPPORTED_COMPLETED":_.z("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",l);break;case "QUOTA_EXCEEDED":fOh(this,l);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",l);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":V=Object.assign({},l,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",V)}};
var fOh=function(V,l){_.dz.getInstance().estimate().then(function(I){I=Object.assign({},l,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:mI2(I==null?void 0:I.usage),deviceStorageQuotaMbytes:mI2(I==null?void 0:I.quota)});V.logEventInternal("idbQuotaExceeded",I)})};var gxQ=function(){var V=_.M.apply(this,arguments)||this;V.tabGesturesIsActive=!1;V.deprecateFullerscreenUi=_.z("web_watch_fullerscreen_deprecation_ui");V.hasDelegation=!1;V.darkerDarkTheme=_.z("web_darker_dark_theme");V.isFrostedGlassInitialized=!1;V.frostedGlassExp=_.z("web_frosted_glass");V.mastheadHiddenFocusWithinKillswitch=_.z("web_masthead_hidden_focus_within_killswitch");V.ephemeralActionsEnabled=_.z("web_ephemeral_actions");V.scrollAtTop=!0;V.guideScrollTop=0;V.isTheaterModeSession=_.PO("START_IN_THEATER_MODE");
V.isFullWindowSession=_.PO("START_IN_FULL_WINDOW_MODE");V.hasCreateFamilyDialog=!1;V.mastheadHeight=56;V.networkStatusManager=new _.ca;V.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen",
"yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleSelectCountryCommand","yt-select-language-command":"handleSelectLanguageCommand","yt-clear-url-param-command":"handleClearUrlParamCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction",
"yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage",
"yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-persist-subscriptions-display-preferences-command":"handlePersistSubscriptionsDisplayPreferencesCommand","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleWebNativeShareCommand","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};V.dynamicActionMap={"yt-run-attestation-command":function(l){var I=_.U3Q.instance,H=_.y(l,_.C_v);return H?_.z("use_rta_manager_for_async")&&
enI()?T3E(I,H,l.clickTrackingParams):HhP(I,H,l.clickTrackingParams):_.bK(Error("oi"))}};
V.isFrostedGlassDisabled=!1;V.isChannelOrPlaylistPage=!1;return V};
_.t(gxQ,_.M);_.B=gxQ.prototype;_.B.created=function(){var V=_.F();_.z("kevlar_clear_duplicate_pref_cookie")&&_.et(_.r0,function(){var l=_.dm.get("PREF");l&&!/f\d=/.test(l)&&(l=_.m_("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=l?"PREF=null;domain="+l+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.z("gzip_gel_with_worker")&&_.zeN();_.z("jspb_serialize_with_worker")&&AoQ();_.z("web_worker_availability_check")&&gLY();_.z("nwl_init_killswitch")||sNY().then(function(){_.r0.addLowPriorityJob(lVP)});
this.pageManagerAttachedPromise=_.QN();this.ytdAppBehavior.loadDepsPromise=_.ER([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.le(this.onThrottledScroll,200,this);_.z("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=V.resolve(_.nz);this.boundOnTouchStart=this.onTouchStart.bind(this);RnI();tSh=!!_.SN("ytappsettings.initialized");j9=_.SN("ytappsettings.previousValue");RLQ=_.SN("ytappsettings.previousSnapshotTime");tSh||
(tSh=!0,Q2I());UU2();nvh();_.ow("DEFERRED_DETACH",_.z("kevlar_tuner_should_defer_detach"));_.ow("REUSE_COMPONENTS",!0);_.ow("STAMPER_STABLE_LIST",!0);_.ow("SCHEDULED_LAZY_LIST",!0);_.ow("openPopupConfig",$k2);_.ow("useClickHandler",!0);_.z("kevlar_shell_cleanup")&&_.r0.addLowPriorityJob(tUE.bind(this,_.nK.caches));_.PO("IS_SHELL_LOAD")&&_.P$({shellStartupDurationMs:Math.round((0,_.O_)()-_.Gq())});QmB(this.networkStatusManager);_.z("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",oLu(Oou)),
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!",oLu(CXE)),console.log("%cVisit http://go/join-youtube-web to apply today.",oLu(aOr)));_.gBg(V.resolve(_.xS),1E3)};
_.B.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var V=VUV();V&&!_.z("external_fullscreen_killswitch")&&document.addEventListener(V,this.setFullscreen.bind(this));(V=window.matchMedia("(prefers-color-scheme: dark)"))&&V.addEventListener&&V.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.B.attached=function(){var V=this;_.b1().processSignal("ci");_.z("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.St3?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.k_(_.zNw(),"SUCCESS");this.updateIconSet();_.lJ(this.guideInnerContent,!1);_.$6().initVisibilityObserver();this.guideService.guideElement=this.guide;var l=document.createElement("ytd-miniplayer"),I=_.h(this.hostElement).querySelector("#content");
_.h(this.hostElement).insertBefore(l,I);_.b1().processSignal("ma");_.F().resolve(_.sH).init(l);_.PO("IS_SHELL_LOAD")&&(I=document.createElement("ytd-network-status-banner"),_.h(this.hostElement).insertBefore(I,l));_.z("kevlar_right_click_on_lockups")&&_.Aw._onCaptureClick&&document.addEventListener("contextmenu",_.Aw._onCaptureClick.bind(_.Aw),!0);var H=function(){var T=_.u9("yt-page-navigation-progress");_.h(V.hostElement).appendChild(T)};
setTimeout(function(){_.b1().parkOrScheduleJob(H,0,"eocs",16)},0);
_.z("service_worker_push_enabled")&&_.et(_.r0,iag);_.bx(_.WF.getInstance(),this.dynamicActionMap,this.hostElement);_.B$(this.hostElement,"ytd-app-attached");_.b1().processSignal("aa");LsE(this.hostElement);_.Aq("gapi.load",_.UAJ);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.et(_.r0,
function(){var T=document.createElement("ytd-video-preview");_.h(_.h(V.hostElement).querySelector("#video-preview")).appendChild(T)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.et(_.r0,function(){ZgB();V.registerViewTransitionTasks()});
if(_.Df()&&this.isAppDarkTheme()!==_.hv())this.onDarkModeToggledAction();else l=_.Pb()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==l&&(_.z("enable_dark_theme_only_on_shorts")?_.oQ(_.z("enable_dark_theme_only_on_shorts_control")?window.location.href:_.qS(window.location.href,{theme:"dark"})):_.hF(new _.Yd("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(Kzu=new NAh(this.hostElement)),Wgh=new chI(this.hostElement),QTE=new RQb(this.hostElement),ZXE=new DkY(this.hostElement)};
_.B.getThemeSettingsToLog=function(){var V=_.Pb()==="USER_INTERFACE_THEME_DARK";V=_.Df()?_.hv()?"os-dark":"os-light":V?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:V,cookiesEnabled:_.Nl()}};
_.B.detached=function(){_.Iz(this.guideInnerContent);_.r0.cancelJob($2);$2=0;_.r0.cancelJob(wK);wK=0;_.Rn1(Yxg);Yxg.length=0;Nqu=_.k8q=null;_.$6().dispose();_.z("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.q4(_.WF.getInstance(),Kzu.playlistHandlerActionMap,Kzu.JSC$28199_clientRoot);_.q4(_.WF.getInstance(),Wgh.downloadManagerActionMap,Wgh.JSC$28504_clientRoot);_.q4(_.WF.getInstance(),QTE.feedbackCollectorActionMap,QTE.JSC$28499_clientRoot);
for(var V=_.U(ZXE.eventListeners),l=V.next();!l.done;l=V.next()){var I=_.U(l.value);l=I.next().value;I=I.next().value;I=_.U(I);for(var H=I.next();!H.done;H=I.next()){var T=_.U(H.value);H=T.next().value;T=T.next().value;l.removeEventListener(H,T)}}_.q4(_.WF.getInstance(),ZXE.autonavPauseActionMap,ZXE.JSC$17579_clientRoot)};
_.B.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Fu().getFlag(186)};
_.B.computeIsInlinePreviewEnabled=function(V,l,I){return!I&&_.OT2({miniplayerIsActive:V,miniplayerPlaybackState:l})};
_.B.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.IA({type:"SET_FROSTED_GLASS_MODE",payload:!_.z("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"}))};
_.B.computeIsFrostedGlassDisabled=function(V,l,I,H){return V||l||I||H&&_.z("web_frosted_glass_disable_watch")};
_.B.computeIsHomePage=function(V,l){if(!V||l==null||!l.endpoint)return!1;var I;return((I=_.y(l.endpoint,_.$V))==null?void 0:I.browseId)==="FEwhat_to_watch"};
_.B.updateIsChannelOrPlaylistPage=function(){if(_.z("web_frosted_glass")){var V,l,I=(l=(V=_.F().resolve(_.Cs(_.pa)))==null?void 0:V.getCurrentPage())==null?void 0:l.pageSubtype;this.isChannelOrPlaylistPage=I?["channel","channels","playlist"].includes(I):!1}};
_.B.scheduleFrostedGlassInitialization=function(){var V=this;_.z("web_frosted_glass")&&_.b1().parkOrScheduleJob(function(){V.isFrostedGlassInitialized=!0},0,_.hk(["eocs",
"cr"]),300)};
_.B.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.TMi(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.IA({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.IA({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.B.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(KfB(!0))};
_.B.onYtSignalActionRequestPersistentStorage=function(){if(!_.z("request_persistent_storage_killswitch")){var V=_.F().resolve(_.pTE);V.cachedPersistStatePromise||(V.cachedPersistStatePromise=hNQ())}};
_.B.handleYtChannelCreationFormEndpoints=function(V){V&&this.ytComponentBehavior.resolveCommand(V)};
_.B.handleShowEngagementPanelEndpoint=function(V){V&&this.ytComponentBehavior.resolveCommand(V)};
_.B.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(KfB(!1))};
_.B.initIconDefs=function(V,l,I){var H=document.createElement("iron-iconset-svg");H.name=V;V=document.createElementNS("http://www.w3.org/2000/svg","svg");H.appendChild(V);V.appendChild(l);if(I)for(var T in I)H[T]=I[T];document.body.appendChild(H);return H};
_.B.onWindowResized=function(){_.xB(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var V=_.KnZ.getInstance();V.documentWidth_=document.body.clientWidth;Pnr(V)};
_.B.onWindowScrolled=function(){var V=_.F().resolve(_.pa).getCurrentPage();if(V!=null&&V.getScrollTop){var l=this.ytdReduxBehavior,I=l.dispatch;V=V.getScrollTop()<=0;I.call(l,_.IA({type:"SET_SCROLL_AT_TOP",payload:V}))}};
_.B.guideIsVisibleButNotPersistentSelectorChanged=function(){var V=_.F().resolve(_.pa).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=V.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"),
V.setScrollTop(this.guideScrollTop));_.U4(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.B.getCurrentPageScrollableElementType=function(){var V=_.F().resolve(_.pa).getCurrentPage();if(V&&V.getPageScrollingElement())return V.getPageScrollingElement().nodeName};
_.B.observeGuideVisibility=function(){var V=_.KnZ.getInstance(),l=this.miniGuideVisible;V.guidePersistentAndVisible_=this.guidePersistentAndVisible;V.miniGuideVisible_=l;Pnr(V)};
_.B.handleEduDismissAction=function(V){V&&V.eduDismissAction&&(_.xB(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.n3J.getInstance(),_.m8.set(V.eduDismissAction.key+"-dismissed",!0))};
_.B.handleEduImpressionAction=function(V){if(V&&V.eduImpressionAction){var l=_.n3J.getInstance();V=V.eduImpressionAction.key;l.JSC$10739_eduDisplayedThisLoad_[_.UsW[V].setKey||V]=!0;_.m8.set(V+"-impression",parseInt(_.m8.get(V+"-impression")||0,10)+1)}};
_.B.onYtSignalActionConfirmMentionsEdu=function(){_.xB(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.l9.getInstance();_.VZ.set("edu-dismissed",!0)};
_.B.onYtSignalActionRecordMentionsEduImpression=function(){_.l9.getInstance();var V=_.VZ.set,l=parseInt(_.VZ.get("edu-impressions"),10);V.call(_.VZ,"edu-impressions",(isFinite(l)?l:0)+1)};
_.B.onYtPageManagerAttached=function(V){var l;((l=_.qv(V))==null?void 0:l.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.B.onInvokeInstrumentManagerAction=function(V,l){I4V(l,V)};
_.B.updateIconSet=function(){var V=this.hostElement.querySelector("#masthead");if(V){var l=_.aQ(V),I=l.querySelector("g#yt-logo-updated");I&&(V=document.createElementNS("http://www.w3.org/2000/svg","defs"),V.appendChild(I.cloneNode(!0)),(l=l.querySelector("g#yt-logo-red-updated"))&&V.appendChild(l.cloneNode(!0)),this.initIconDefs("yt-logos-ext",V))}};
_.B.updateMastheadData=function(){var V=this,l,I,H,T;return _.d(function(x){if(x.nextAddress==1){l=V.data;I=V.hostElement.querySelector("#masthead");if(!I)return x.return();_.Al(V,function(){I.data=V.topbarData});
return V.get("response.topbar",l)&&V.get("response.topbar.responseContext.maxAgeSeconds",l)!==0?(H=_.F().resolve(_.Mb))?_.K(x,H(),7):V.ephemeralResponseStore?_.K(x,V.ephemeralResponseStore.put("service:topbar:fallback",new _.$r({innertubeResponse:V.get("response.topbar",l)})),0):x.jumpTo(0):x.jumpTo(0)}return(T=x.yieldResult)?_.K(x,T.put("service:topbar:fallback",new _.$r({innertubeResponse:V.get("response.topbar",l)})),0):x.jumpTo(0)})};
_.B.computeTopbarData=function(V){if(!V)return null;var l;return this.isShortsPage&&this.topbarData&&!_.y((l=V.response)==null?void 0:l.topbar,PLg)?this.topbarData:V.response&&"topbar"in V.response?_.y(V.response.topbar,PLg)||null:null};
_.B.onSetTheaterModeEnabled=function(V,l){this.isTheaterModeSession=l.enabled;this.setTheaterModeStyles(l.enabled)};
_.B.setTheaterModeStyles=function(){this.setMastheadTheme()};
_.B.onDarkModeToggledAction=function(){var V=_.Bx(window.location.href);if(!_.J7q(V)){(V=!!_.bt(window.location.href).themeRefresh)&&_.hF(new _.Yd("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!V){Q2I();V={themeRefresh:1};var l=_.F().resolve(_.pa);if(l.isOnWatch()){var I,H;l=((I=l.getPlayerFromWatch())==null?void 0:(H=I.getPlayer())==null?void 0:H.getCurrentTime())||0;l>=1&&(V.time_continue=Math.floor(l))}_.Nl()||_.Pb()!=="USER_INTERFACE_THEME_DARK"||(V.theme="dark");_.oQ(_.qS(window.location.href,
V))}_.z("web_appshell_refresh_trigger")&&_.nK.caches&&this.refreshAppShellResponse();I=_.qz(window.location.href);_.F().resolve(_.Mg3).replaceUrl(_.gS(I,"theme"))}};
_.B.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.B.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.B.onPlayerFullscreen=function(V){_.iK();this.playerFullscreen=V};
_.B.setRestrictedMode=function(V){var l=_.Fu();_.Xu(0,58,V);l.save();_.F().resolve(_.nb).reload()};
_.B.onPageChanged=function(V){V.detail.newPageType==="ytd-watch-flexy"||V.detail.newPageType==="ytd-watch-fixie"||V.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Zk("WEB_PAGE_TYPE_WATCH")):V.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Zk("WEB_PAGE_TYPE_SHORTS")):V.detail.newPageType==="ytd-browse"&&V.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Zk("WEB_PAGE_TYPE_MINI_APP")):_.z("web_frosted_glass")&&V.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Zk("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Zk("WEB_PAGE_TYPE_UNKNOWN"));V.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.B.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.B.onGuideToggleTap=function(){_.B$(this.hostElement,"yt-guide-toggle")};
_.B.onGuideToggleHover=function(){_.B$(this.hostElement,"yt-guide-hover")};
_.B.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.B.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.B.setMastheadTheme=function(){var V=_.aQ(this.hostElement).querySelector("#masthead");V&&(V.dark=V.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),V.isDarkThemeForced=!1)};
_.B.onRequestPanelModeChange=function(V,l){this.hideHeaderShadow=l.mode!=="seamed"};
_.B.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.B.onDrawerIronSelect=function(V){_.qv(V).id==="guide"&&this.processDrawerIronSelect()};
_.B.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var V="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(V="opened"));_.B$(this.hostElement,"yt-autonav-pause-guide-"+V)};
_.B.onAddElementToApp=function(V){_.h(this.hostElement).appendChild(V.detail)};
_.B.onThrottledScroll=function(){var V=_.F().resolve(_.pa).getCurrentPage();V&&(this.scrollAtTop=V.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.B.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.B.setFullscreen=function(){if(_.z("external_fullscreen")||!this.isWatchPage){var V=_.z("kevlar_fullerscreen_root_only_killswitch")?!!_.iK():!!_.iK()&&_.iK()===document.documentElement;V=(this.isWatchPage||_.z("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(V||this.isFullWindowSession);this.fullscreen!==V&&((this.fullscreen=V)&&_.U4(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.v4().dispatch(_.wXB(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.toggleFullscreenStyles(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen),_.xB(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.B.setFullscreenLoggingForShorts=function(V){var l,I,H;return _.d(function(T){if(T.nextAddress==1)return _.K(T,(l=_.u8())==null?void 0:l.getPlayerPromise(),2);I=T.yieldResult;(H=I)==null||H.setAppFullscreen(V);_.FU(T)})};
_.B.updateMastheadCssHeight=function(){var V=this.mastheadHeight;this.fullscreen&&(V=0);_.i3(this.hostElement,{"--ytd-masthead-height":V+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.B.updateNetworkStatusBannerDisplayStatus=function(){var V="unset";this.fullscreen&&(V="none");_.i3(this.hostElement,{"--ytd-network-status-banner-display":V})};
_.B.updateNetworkStatusBannerCssHeight=function(){var V="unset";this.fullscreen&&(V="0px");_.i3(this.hostElement,{"--ytd-network-status-banner-max-height":V})};
_.B.toggleFullscreenStyles=function(V,l,I){var H=_.F().resolve(_.pa).getCurrentPage();V||l?(document.body.classList.add("no-scroll"),H.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.VP(this,this.onScroll)),H.setScrollTop(0),_.i3(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.GW()+"px"})):I?_.B$(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.B$(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),H.pageScrollElement=
null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.VP(this,this.onScroll)));this.mastheadHidden=V||l||I;this.updateMastheadCssHeight();_.z("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.B.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.B.onYtMastheadHeightChanged=function(V,l){this.mastheadHeight=l.height;this.updateMastheadCssHeight()};
_.B.onYtNavigateAction=function(V){V=this.get("navigateAction.endpoint",V);_.B$(this.hostElement,"yt-navigate",{endpoint:V})};
_.B.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var V=document.createElement("yt-create-family-dialog");_.h(this.hostElement).appendChild(V);this.hasCreateFamilyDialog=!0}};
_.B.onSetPushNotificationsEnabledCommand=function(V){var l=this,I=_.y(V,hSr);I&&typeof I.enabled==="boolean"&&(Notification.permission!=="granted"?C82().then(function(){Notification.permission==="granted"?(P8P(!I.enabled).then(SxE),I.successAction&&_.$B(l.hostElement,[I.successAction])):I.failureAction&&_.$B(l.hostElement,[I.failureAction])}):(P8P(!I.enabled).then(SxE),I.successAction&&_.$B(this.hostElement,[I.successAction])))};
_.B.onYtSignalActionEnableChromeNotifications=function(){atQ(!0)};
_.B.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.y(this.topbarData.hotkeyDialog,SuE)}}})};
_.B.onYtSignalActionShowKeyboardShortcutDialog=function(){_.xB(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.B.onYtEndpointChangeHandler=function(V,l){var I=_.$_(_.Up);I.pendingPrefetchJob_&&(l=!(!l||l.autonav!="1"),I.pendingPrefetchJob_.resolve(V&&_.FGN(V)?_.X0K(V,l):""),I.pendingPrefetchJob_=null);_.xB(this.hostElement,"yt-pause-active-page-context");_.xB(this.hostElement,"ytd-log-youthere-nav");_.xB(this.hostElement,"yt-prepare-page-dispose")};
_.B.handleClearUrlParamCommand=function(V){if(V.clearUrlParamCommand&&V.clearUrlParamCommand.paramKeys){var l=V.clearUrlParamCommand.paramKeys;V=_.Wv(window.location.href);l=_.U(l);for(var I=l.next();!I.done;I=l.next())V.JSC$7896_queryData_.remove(I.value);window.history.replaceState(window.history.state,document.title,V.toString())}};
_.B.handleCommandWithCommandHandler=function(V,l){_.li.instance.resolveCommand(V,{form:{element:l}})};
_.B.onYtTimedCommand=function(V){var l=this;V=_.y(V,YuE);var I=V.command;I&&_.t9(_.r0,function(){var H=_.y(I,_.a0N);H?(_.li.instance.resolveCommand(I),l.maybeLogGetAnswerRequestTick(H)):_.d6(l.hostElement,[I],l.hostElement)},V.timeoutMs||0)};
_.B.maybeLogGetAnswerRequestTick=function(V){V&&V.isFirstRequest&&(_.D8("search_overview_answer"),_.Z8("so_rq",void 0,"search_overview_answer"))};
_.B.onYtSignalActionSkipNavigation=function(){var V=_.F().resolve(_.pa).getCurrentPage();_.MD(V)};
_.B.onYtSignalActionCopyDebugData=function(){njr()};
_.B.handleEntityUpdateCommand=function(V){_.js(_.y(V,_.VJN).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.B.logFlowLoggingEventCommand=function(V){if(V=_.y(V,_.pg1))if(V.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var l=V.flowEventNamespace,I=V.flowEventType,H=V.flowType;H&&l&&I&&_.w0w(_.Bb(l,I,V.flowEventMetadata),H)}else{l=_.Uz();I=V.flowEventNamespace;H=V.flowEventType;var T=V.flowType;T&&I&&H&&_.xV(l,_.Bb(I,H,V.flowEventMetadata),T,V.flowNonce)}};
_.B.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.B.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.B.onTouchStart=function(){var V=_.dd();_.oa()&&_.Dt(V.JSC$10892_screenManager,{visualElement:V.ve})};
_.B.handleWebNativeShareCommand=function(V){navigator.share({url:_.y(V,J7E).url}).catch(function(){})};
_.B.handleSelectCountryCommand=function(V){if(V=_.y(V,r7E).gl){var l={persist_gl:1,gl:V},I=_.Fu();I.set("gl",V);I.save();V=ajB(l);_.oQ(V)}};
_.B.handlePersistSubscriptionsDisplayPreferencesCommand=function(V){if(V=_.y(V,zSh)){var l=_.Fu();_.Xu(0,155,V.useListView);l.save()}};
_.B.handleSelectLanguageCommand=function(V){if(V=_.y(V,G9P).hl){var l=_.Fu();l.set("hl",V);l.save();_.F().resolve(_.nb).reload()}};
_.B.handleConfirmDialogEndpoint=function(V){(V=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(V))&&this.ytOpenPopupBehavior.openPopup(V)};
_.B.handleOpenPopupNavigationEndpoints=function(V,l){_.z("web_button_rework")&&(V=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(V))&&this.ytOpenPopupBehavior.openPopup(V,l)};
_.B.handleSaveCommandToSessionStorage=function(V){if(V=_.y(V,_.V3a)){var l=V.key;l&&V.command&&window.sessionStorage.setItem(l,JSON.stringify(V.command))}};
_.B.hardReloadWithShellPurge=function(V){V=V===void 0?{}:V;V=Object.assign({},V,{purge_shell:1});V=ajB(V);_.oQ(V)};
_.B.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(V){V&&V.active&&V.active.postMessage({type:"refresh_shell"})}).catch(function(V){V.name!=="SecurityError"&&_.Gr(V)})};
_.B.onDeviceThemeChanged=function(){var V=_.hv();_.Xu(_.Fu(),185,V);_.Fu().save()};
_.B.handleYtRegisterPromoCommand=function(V){if(_.y(V,org)){var l=_.F().resolve(_.pa).getCurrentPage()||this.hostElement;beg().registerPromoCommand(_.y(V,org),l)}};
_.B.onYtNavigateHomeAction=function(){if(!_.z("kevlar_miniplayer_navigate_home_from_app_killswitch")){var V,l,I,H,T=(H=(V=this.topbarData)==null?void 0:(l=V.logo)==null?void 0:(I=l.topbarLogoRenderer)==null?void 0:I.endpoint)!=null?H:_.Yg;this.ytComponentBehavior.resolveCommand(T)}};
_.B.onYtLocationCollectionCommand=function(V){PUI(_.y(V,sDI))};
_.B.onYtGetLocationCommand=function(V){jtE(_.y(V,MyE),this)};
_.B.updateRenderGuideFromBinding=function(V){this.renderGuide=V.detail.value};
_.B.updateGuidePersistentAndVisibleFromBinding=function(V){this.guidePersistentAndVisible=V.detail.value};
_.B.updateMiniGuideVisibleFromBinding=function(V){this.miniGuideVisible=V.detail.value};
_.B.onThemeSelected=function(V,l){var I=_.Fu(),H=V||l?V:_.hv(),T=(H&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!H&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.J7q(_.Bx(window.location.href));_.Xu(0,165,V);_.Xu(0,174,l);I.save();T&&_.xB(this.hostElement,"yt-dark-mode-toggled-action",[H]);_.xB(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.B.getCurrentTheme=function(){return _.Df()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Pb()};
_.B.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.B.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.B.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.B.handleShowConsentPrimitive=function(V){var l=this,I,H;return _.d(function(T){if(T.nextAddress==1){try{I=(H=_.u8())==null?void 0:H.getPlayerPromise()}catch(x){}return _.K(T,ax6(V,I),2)}_.xB(l.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.FU(T)})};
_.B.handleSelectActiveIdentityEndpointInternal=function(V){_.Ez();V=_.y(V,_.$BB);if(V!=null&&V.supportedTokens){V=_.U(V.supportedTokens);for(var l=V.next();!l.done;l=V.next())l=l.value,l.accountSigninToken&&_.oQ(l.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.B.handleUpdatePermissionRoleCommand=function(V){if(V=_.y(V,_.Nt3)){var l;this.hasDelegation=!((l=_.y(V.renderer,_.wqZ))==null||!l.status)}};
_.B.registerViewTransitionTasks=function(){var V=this,l=_.F().resolve(_.Cs(_.fYE));if(l){var I,H=(I=this.guide)==null?void 0:I.querySelector("#scrim"),T,x=(T=this.guide)==null?void 0:T.querySelector("#contentContainer");H&&x&&(I={beforeTransition:function(){var n;(n=V.guide)!=null&&n.persistent||(H.style.viewTransitionName="app-drawer-scrim",x.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var n;(n=V.guide)!=null&&n.persistent||(H.style.viewTransitionName="",x.style.viewTransitionName="")}},KJ(l,"slide",I),KJ(l,"zoom",I))}};
_.vI.Object.defineProperties(gxQ.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.z("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.vI.Object.defineProperties(gxQ,{template:{configurable:!0,enumerable:!0,get:function(){if(oxE===void 0){var V=document.createElement("template");_.G(V,'\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');
V.content.insertBefore(_.g().content.cloneNode(!0),V.content.firstChild);oxE=V}V=oxE;return V}}});
var Y8=gxQ;Y8.prototype.onOpenHotkeyDialog=Y8.prototype.onOpenHotkeyDialog;Y8.prototype.onYtMastheadHeightChanged=Y8.prototype.onYtMastheadHeightChanged;Y8.prototype.setFullscreen=Y8.prototype.setFullscreen;Y8.prototype.onAddElementToApp=Y8.prototype.onAddElementToApp;Y8.prototype.onDrawerIronSelect=Y8.prototype.onDrawerIronSelect;Y8.prototype.onGuideOpenButtonHover=Y8.prototype.onGuideOpenButtonHover;Y8.prototype.onRequestPanelModeChange=Y8.prototype.onRequestPanelModeChange;
Y8.prototype.onPageDataUpdated=Y8.prototype.onPageDataUpdated;Y8.prototype.onPageChanged=Y8.prototype.onPageChanged;Y8.prototype.onSetTheaterModeEnabled=Y8.prototype.onSetTheaterModeEnabled;Y8.prototype.updateMastheadData=Y8.prototype.updateMastheadData;Y8.prototype.onYtPageManagerAttached=Y8.prototype.onYtPageManagerAttached;Y8.prototype.observeGuideVisibility=Y8.prototype.observeGuideVisibility;Y8.prototype.guideIsVisibleButNotPersistentSelectorChanged=Y8.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Y8.prototype.isInlinePreviewEnabledChanged=Y8.prototype.isInlinePreviewEnabledChanged;Y8.prototype.dispatchFrostedGlassMode=Y8.prototype.dispatchFrostedGlassMode;_.O([_.R(_.DS),_.a("design:type",Object)],Y8.prototype,"ytdReduxBehavior",void 0);_.O([_.R(_.rM.YtEventForwardingBehavior),_.a("design:type",Object)],Y8.prototype,"ytEventForwardingBehavior",void 0);_.O([_.R(_.x4.YtOpenPopupBehavior),_.a("design:type",Object)],Y8.prototype,"ytOpenPopupBehavior",void 0);
_.O([_.R(_.aU.YtActionHandlerBehavior),_.a("design:type",Object)],Y8.prototype,"ytActionHandlerBehavior",void 0);_.O([_.R({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.WF.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.z("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var V;((V=this.actionRouterNode.hostElement)!=null?V:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var V;((V=this.actionRouterNode.hostElement)!=null?V:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(V){this.actionRouter_.handleAction(V.detail)}}),
_.a("design:type",Object)],Y8.prototype,"ytActionRouterBehavior",void 0);_.O([_.R(aiB.YtdAppBehavior),_.a("design:type",Object)],Y8.prototype,"ytdAppBehavior",void 0);_.O([_.R(_.Uf.YtEndpointBehavior),_.a("design:type",Object)],Y8.prototype,"ytEndpointBehavior",void 0);_.O([_.R(SWE.YtEndpointHandlerWithYpcBehavior),_.a("design:type",Object)],Y8.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.O([_.R(hQE.YtLogYpcFlowCommandsBehavior),_.a("design:type",Object)],Y8.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.O([_.R(_.m.YtRendererBehavior),_.a("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.O([_.R(_.DX.YtComponentBehavior),_.a("design:type",Object)],Y8.prototype,"ytComponentBehavior",void 0);_.O([_.q({selector:_.ylI}),_.a("design:type",Object)],Y8.prototype,"tabGesturesIsActive",void 0);_.O([_.q(),_.a("design:type",Boolean)],Y8.prototype,"renderGuide",void 0);
_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y8.prototype,"guidePersistentAndVisible",void 0);_.O([_.q({selector:_.zwB}),_.a("design:type",Boolean)],Y8.prototype,"guideIsVisibleButNotPersistent",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Y8.prototype,"standalone",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y8.prototype,"miniGuideVisible",void 0);
_.O([_.q({selector:_.P1N}),_.a("design:type",Number)],Y8.prototype,"miniplayerPlaybackState",void 0);_.O([_.q({selector:_.h5,reflectToAttribute:!0}),_.a("design:type",Boolean)],Y8.prototype,"miniplayerIsActive",void 0);_.O([_.q({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.a("design:type",Boolean)],Y8.prototype,"isInlinePreviewEnabled",void 0);_.O([_.q(),_.a("design:type",Boolean)],Y8.prototype,"isInlinePreviewDisabled",void 0);
_.O([_.q({reflectToAttribute:!0,value:function(){return _.PO("START_IN_FULL_WINDOW_MODE")}}),
_.a("design:type",Boolean)],Y8.prototype,"mastheadHidden",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y8.prototype,"playerFullscreen",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Y8.prototype,"deprecateFullerscreenUi",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y8.prototype,"fullscreen",void 0);_.O([_.q({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Y8.prototype,"hideHeaderShadow",void 0);
_.O([_.q({value:{GUIDE_ALT_LABEL:_.LT("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.a("design:type",Object)],Y8.prototype,"menuStrings",void 0);_.O([_.q({computed:"computeTopbarData(data)"}),_.a("design:type",Object)],Y8.prototype,"topbarData",void 0);_.O([_.q({selector:_.P4}),_.a("design:type",Boolean)],Y8.prototype,"isWatchPage",void 0);_.O([_.q({selector:_.Jtf,reflectToAttribute:!0}),_.a("design:type",Boolean)],Y8.prototype,"isShortsPage",void 0);
_.O([_.q({selector:function(V){return V.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.a("design:type",Boolean)],Y8.prototype,"isMiniAppPage",void 0);_.O([_.q({selector:function(V){return V.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.a("design:type",Boolean)],Y8.prototype,"isBrowsePage",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y8.prototype,"scrolling",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Y8.prototype,"hasDelegation",void 0);_.O([_.q({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Y8.prototype,"guideScrolledByTouch",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Y8.prototype,"darkerDarkTheme",void 0);
_.O([_.q(),_.a("design:type",Object)],Y8.prototype,"isFrostedGlassInitialized",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Y8.prototype,"frostedGlassExp",void 0);_.O([_.q({selector:function(V){return V.ui.chipBarIsSticky}}),
_.a("design:type",Boolean)],Y8.prototype,"chipBarIsSticky",void 0);_.O([_.q({computed:"computeIsHomePage(isBrowsePage, data)"}),_.a("design:type",Boolean)],Y8.prototype,"isHomePage",void 0);_.O([_.q({reflectToAttribute:!0}),_.a("design:type",Object)],Y8.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.O([_.q(),_.a("design:type",Object)],Y8.prototype,"ephemeralActionsEnabled",void 0);_.O([_.f4("guide"),_.a("design:type",Object)],Y8.prototype,"guide",void 0);
_.O([_.f4("guide-service"),_.a("design:type",cLE)],Y8.prototype,"guideService",void 0);_.O([_.f4("guide-inner-content"),_.a("design:type",HTMLDivElement)],Y8.prototype,"guideInnerContent",void 0);_.O([_.q({selector:_.Znq}),_.a("design:type",String)],Y8.prototype,"frostedGlassMode",void 0);
_.O([_.b("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y8.prototype,"dispatchFrostedGlassMode",null);_.O([_.q({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.a("design:type",Object)],Y8.prototype,"isFrostedGlassDisabled",void 0);
_.O([_.Q("isHomePage","chipBarIsSticky"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Y8.prototype,"applyFrostedGlassToChipBar",null);_.O([_.q(),_.a("design:type",Object)],Y8.prototype,"isChannelOrPlaylistPage",void 0);_.O([_.xs("isInlinePreviewEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y8.prototype,"isInlinePreviewEnabledChanged",null);
_.O([_.b("guideIsVisibleButNotPersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y8.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.O([_.b("guidePersistentAndVisible","miniGuideVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y8.prototype,"observeGuideVisibility",null);
_.O([_.W("attached"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Y8.prototype,"onYtPageManagerAttached",null);_.O([_.b("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],Y8.prototype,"updateMastheadData",null);_.O([_.W("yt-set-theater-mode-enabled"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Y8.prototype,"onSetTheaterModeEnabled",null);
_.O([_.W("yt-page-type-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y8.prototype,"onPageChanged",null);_.O([_.W("yt-page-data-updated"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y8.prototype,"onPageDataUpdated",null);_.O([_.W("yt-request-panel-mode-change"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Object]),_.a("design:returntype")],Y8.prototype,"onRequestPanelModeChange",null);
_.O([_.W("yt-guide-hover"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y8.prototype,"onGuideOpenButtonHover",null);_.O([_.W("app-drawer-transitioned"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Y8.prototype,"onDrawerIronSelect",null);_.O([_.W("yt-add-element-to-app"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y8.prototype,"onAddElementToApp",null);
_.O([_.W("yt-set-fullerscreen-styles"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y8.prototype,"setFullscreen",null);_.O([_.W("yt-masthead-height-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Y8.prototype,"onYtMastheadHeightChanged",null);_.O([_.W("yt-open-hotkey-dialog"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y8.prototype,"onOpenHotkeyDialog",null);
Y8=_.O([_.A({is:"ytd-app"})],Y8);_.b1().processSignal("eor");
_.o8();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
